:root {
  --bg: #ececea;
  --fg: #111111;
  --pill: #0d0d0d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

/* Full-page background — keep path in sync with preload in index.html */
.viewport {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: url("./assets/New-Main-background.png") center center / cover no-repeat;
}

.hud-top {
  position: fixed;
  z-index: 20;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
  width: 132px;
  color: #fff;
  line-height: 0;
}

.logo-image {
  display: block;
  width: 100%;
  height: auto;
  color: #fff;
}

.hud-about-link {
  display: inline-flex;
  width: clamp(32px, 3.6vw, 48px);
  height: clamp(32px, 3.6vw, 48px);
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
}

.hud-about-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-stage {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  perspective: 1000px;
}

.orbit-stage:active {
  cursor: grabbing;
}

.orbit-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 2.35rem);
  letter-spacing: -0.02em;
  will-change: transform, opacity, width, height;
  overflow: hidden;
  --hover-scale: 1;
  --hover-tilt-x: 0deg;
  --hover-tilt-y: 0deg;
  --hover-lift: 0px;
  --item-inertia-y: 0px;
  transform: translate(-50%, -50%)
    translateY(calc(var(--hover-lift) + var(--item-inertia-y)))
    rotateX(var(--hover-tilt-x)) rotateY(var(--hover-tilt-y))
    scale(var(--hover-scale));
  transform-style: preserve-3d;
  transition: filter 120ms linear;
  background: transparent;
}

.orbit-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.orbit-item.has-image::before {
  background: var(--bg-image) center / cover no-repeat;
}

.orbit-item.has-image.orbit-emblem-contain::before {
  inset: 6%;
  background-size: contain;
  background-position: center center;
}

.orbit-item.lookbook::before {
  background: var(--bg-image) center / contain no-repeat;
}

.orbit-item.lookbook {
  background: transparent;
}

.orbit-item span {
  position: relative;
  z-index: 1;
  padding: 0 10%;
  text-align: center;
}

.orbit-item:not(.is-active) span {
  opacity: 0;
}

.orbit-item.is-active span {
  opacity: 1;
}

.nav-arrow {
  position: fixed;
  z-index: 15;
  top: 50%;
  translate: 0 -50%;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  color: #f2f2f2;
  font-size: 18px;
  cursor: pointer;
}

#prevButton,
#nextButton {
  background-color: rgba(255, 255, 255, 0.3);
}

.nav-left {
  left: 18px;
}

.nav-right {
  right: 18px;
}

.active-title {
  position: fixed;
  z-index: 12;
  left: 50%;
  bottom: clamp(56px, 8vh, 72px);
  transform: translateX(-50%);
  width: 100%;
  height: 1.28em;
  overflow: hidden;
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.02em;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 1) 28%,
    rgba(0, 0, 0, 1) 72%,
    rgba(0, 0, 0, 0) 100%
  );
}

.active-title-line {
  position: absolute;
  inset: 0;
  display: block;
  white-space: nowrap;
  text-align: center;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.24);
  will-change: transform, opacity, filter;
}

.active-title-line.is-next {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(5px);
}

.pager {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pager-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #111;
  opacity: 0.28;
}

.pager-dot.is-active {
  opacity: 1;
}

@media (max-width: 820px) {
  .hud-top {
    inset: 12px 12px auto;
  }

  .logo {
    width: 132px;
  }

  .nav-arrow {
    width: 38px;
    height: 38px;
  }

  .nav-left {
    left: 10px;
  }

  .nav-right {
    right: 10px;
  }

  .active-title {
    bottom: 44px;
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .pager {
    right: 12px;
    bottom: 18px;
  }
}
