/* ====================================================================
   FILMISTRY PICTURES — premium scroll-driven film production site
   ==================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --yellow: #ffcb05;
  --ink: #f5f3ec;
  --bg: #06070d;
  --bg-2: #0c0e15;
  --muted: #9b958a;
  --line: rgba(255, 255, 255, 0.10);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-wheel: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Page — guaranteed vertical scroll; touch-action prevents pull-to-refresh
   and pinch-zoom (we drive navigation manually). */
html {
  overflow-x: hidden;
  overflow-y: scroll;
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: visible;
  min-height: 100vh;
  overscroll-behavior: none;
}

/* Tall spacer that provides the scroll range */
.scroller {
  height: 560vh;
  position: relative;
  z-index: 0
}

/* ====================== FIXED STAGE ====================== */
/* 100dvh on mobile dodges the iOS/Android URL-bar resize jump */
.stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  background: #000;
  overflow: hidden;
  pointer-events: none;
}

.video-wrap {
  position: absolute;
  inset: 0;
  transition: opacity 1s var(--ease-out);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.1) brightness(.85);
}

body.wheel-on .video-wrap {
  opacity: 0
}

.carousel-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 13, .78) 0%, rgba(6, 7, 13, .65) 40%, rgba(6, 7, 13, .75) 70%, rgba(6, 7, 13, .92) 100%),
    radial-gradient(ellipse at 25% 35%, rgba(255, 203, 5, .10), transparent 55%),
    url('../assets/wheel-bg.jpg');
  background-size: cover;
  background-position: center;
  transition: opacity 1s var(--ease-out);
  filter: saturate(.95) brightness(.88);
}

.carousel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Vignette + extra atmospheric depth */
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, .6) 100%),
    radial-gradient(ellipse at 80% 70%, rgba(180, 90, 40, .08), transparent 50%);
}

body.wheel-on .carousel-bg {
  opacity: 1
}

/* Cinematic grade + grain + bars */
.grade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 25%, rgba(255, 203, 5, .06), transparent 60%),
    radial-gradient(140% 100% at 50% 100%, rgba(0, 0, 0, .55), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bars {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
  height: 7vh;
  background: #000;
  transition: transform 1.2s var(--ease-out);
}

.bars.top {
  top: 0
}

.bars.bot {
  bottom: 0
}

body.wheel-on .bars {
  transform: translateY(110%)
}

body.wheel-on .bars.top {
  transform: translateY(-110%)
}

/* Progress bar */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--yellow);
  z-index: 9;
  width: 0%;
  box-shadow: 0 0 16px var(--yellow);
  transition: width .1s linear;
}

/* ====================== TOP NAV BAR ====================== */
.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 1480px;
  z-index: 20;
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(10, 12, 18, .28), rgba(10, 12, 18, .14));
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.topbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 26px;
  gap: 18px;
}

.topbar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 26px;
}

.topbar__nav--left {
  justify-self: start
}

.topbar__nav--right {
  justify-self: end
}

.topbar__nav a {
  color: rgba(245, 243, 236, .78);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  padding: 8px 2px;
  position: relative;
  transition: color .25s ease;
  white-space: nowrap;
}

.topbar__nav a:hover {
  color: var(--ink)
}

.topbar__nav a.is-active {
  color: var(--ink)
}

.topbar__nav a.is-active::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: var(--yellow);
}

.topbar__ext {
  font-size: 11px;
  opacity: .7;
  margin-left: 2px
}

.topbar__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  text-decoration: none;
  line-height: 1;
  padding: 2px 8px;
}

.topbar__brand-name {
  font-family: 'Anton', sans-serif;
  font-size: 30px;
  letter-spacing: 3.5px;
  color: var(--ink);
  text-transform: uppercase;
}

.topbar__brand-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 3px;
  color: rgba(245, 243, 236, .65);
  margin-top: 3px;
  text-transform: uppercase;
}

.topbar__cta {
  background: var(--yellow);
  color: #0a0a0a !important;
  padding: 9px 22px !important;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 203, 5, 0.35);
  font-weight: 700 !important;
  letter-spacing: .8px;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow:
    0 4px 16px -4px rgba(255, 203, 5, 0.5),
    0 0 16px rgba(255, 203, 5, 0.25);
}

.topbar__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px -4px rgba(255, 203, 5, 0.75), 0 0 24px rgba(255, 203, 5, 0.4);
}

.topbar__cta::after {
  display: none !important
}

.topbar__cta::after {
  display: none !important
}

/* Burger (mobile only) */
.topbar__burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  justify-self: end;
}

.topbar__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s ease, opacity .3s ease;
}

.topbar.is-open .topbar__burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg)
}

.topbar.is-open .topbar__burger span:nth-child(2) {
  opacity: 0
}

.topbar.is-open .topbar__burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg)
}

.topbar__drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  margin-top: 6px;
}

.topbar__drawer a {
  color: rgba(245, 243, 236, .85);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 8px;
  border-radius: 10px;
}

.topbar__drawer a:hover {
  background: rgba(255, 255, 255, .04)
}

.topbar__drawer a.topbar__cta {
  text-align: center;
  margin-top: 8px;
}

.topbar.is-open .topbar__drawer {
  display: flex
}

/* Premium panel style when mobile menu is open */
.topbar.is-open {
  border-radius: 24px !important;
  background: rgba(8, 9, 14, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Clapperboard brand text */
.cb-brand {
  text-align: center;
  padding: 4px 0;
  line-height: 1.1
}

.cb-brand-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(40px, 3.8vw, 58px);
  color: var(--yellow);
  letter-spacing: 4px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 28px rgba(255, 203, 5, .3);
}

.cb-brand-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(245, 243, 236, .6);
  margin-top: 5px;
  text-transform: uppercase;
}

/* ====================== HERO ====================== */
.hero-cap {
  position: fixed;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: auto;
  padding: 90px 24px 110px;
  /* reserve bottom space so continue-hint never collides */
  transition: opacity .8s var(--ease-out);
}

body.wheel-on .hero-cap {
  opacity: 0;
  pointer-events: none
}

/* Eyebrow */
.hero-cap__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 26px;
  font-weight: 600;
}

.hero-cap__eyebrow .bar {
  display: inline-block;
  width: 42px;
  height: 2px;
  background: var(--yellow)
}

/* Stacked Anton headline */
.hero-cap__stack {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -.5px;
  text-transform: uppercase;
  margin: 0;
  font-weight: 400;
}

.hero-cap__stack .line {
  display: block
}

.hero-cap__stack .line--fill {
  color: var(--ink)
}

.hero-cap__stack .line--out {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 203, 5, .85);
  text-shadow: none;
}

.hero-cap__stack .line--accent {
  color: var(--yellow);
  text-shadow: 0 0 36px rgba(255, 203, 5, .18)
}

/* Lede paragraph */
.hero-cap__lede {
  max-width: 560px;
  margin: 24px auto 0;
  color: #e8e3d6;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.65;
  font-weight: 300;
}

/* Hero CTA — yellow fill, red rim glow */
.hero-cap__cta {
  display: inline-block;
  margin-top: 26px;
  background: var(--yellow);
  color: #0a0a0a !important;
  text-decoration: none;
  padding: 18px 90px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 203, 5, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow:
    0 6px 20px -4px rgba(255, 203, 5, 0.5),
    0 0 24px rgba(255, 203, 5, 0.25);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.hero-cap__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 8px 26px -4px rgba(255, 203, 5, 0.75),
    0 0 32px rgba(255, 203, 5, 0.45);
}

.continue-hint {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(10px);
  z-index: 9;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.continue-hint span {
  white-space: nowrap
}

.continue-hint.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.continue-hint::before {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(transparent, var(--yellow));
  animation: flow 1.8s ease-in-out infinite;
}

@keyframes flow {

  0%,
  100% {
    opacity: .3;
    transform: scaleY(.7)
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

/* ====================== 3D ROTATING WHEEL ====================== */
.wheel-stage {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 6vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
  perspective: 1800px;
  perspective-origin: 50% 50%;
}

body.wheel-on .wheel-stage {
  opacity: 1
}

.wheel {
  position: relative;
  width: 280px;
  height: 400px;
  transform-style: preserve-3d;
  /* match page-snap rhythm so wheel rotates with the scroll, not after it */
  transition: transform .85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  margin-left: 22vw;
  transform: rotateY(0deg) rotateX(-5deg);
}

.wheel[data-r="0"] {
  transform: rotateY(0deg) rotateX(-5deg)
}

.wheel[data-r="1"] {
  transform: rotateY(-90deg) rotateX(-5deg)
}

.wheel[data-r="2"] {
  transform: rotateY(-180deg) rotateX(-5deg)
}

.wheel[data-r="3"] {
  transform: rotateY(-270deg) rotateX(-5deg)
}

.wheel-card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center 45%;
  background-color: #0e0f15;
  backface-visibility: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  transition: filter .8s var(--ease-out), box-shadow .8s var(--ease-out);
  filter: saturate(.85) brightness(.65);
}

.wheel-card[data-i="0"] {
  transform: rotateY(0deg) translateZ(360px)
}

.wheel-card[data-i="1"] {
  transform: rotateY(90deg) translateZ(360px)
}

.wheel-card[data-i="2"] {
  transform: rotateY(180deg) translateZ(360px)
}

.wheel-card[data-i="3"] {
  transform: rotateY(270deg) translateZ(360px)
}

.wheel-card.front {
  filter: saturate(1.1) brightness(1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .8), 0 0 0 1.5px rgba(255, 203, 5, .55);
}

/* Video card — like card 03 (Territory) — silent looping video as background */
.wheel-card--video {
  background: #000
}

.wheel-card__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Portrait card (e.g. owner photo on card 04) — face stays clean, no label overlay */
.wheel-card--portrait {
  background-position: center top;
  /* keep face/head visible */
  filter: saturate(.95) brightness(.78) contrast(1.05);
  /* cinematic warm look */
}

.wheel-card--portrait.front {
  filter: saturate(1.05) brightness(.95) contrast(1.08)
}

.wheel-card--portrait::after {
  background: linear-gradient(180deg, transparent 60%, rgba(8, 9, 15, .7));
}

.wheel-card--portrait .num {
  top: 14px;
  left: auto;
  right: 18px;
  /* number top-right, out of face area */
  font-size: 26px;
}

.wheel-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 9, 15, .95));
}

.wheel-card .num {
  display: none !important
}

.wheel-card .label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 2;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}

.wheel-card .label-k {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ====================== DETAILS PANELS ====================== */
.details-stage {
  position: fixed;
  top: 0;
  right: 0;
  width: 48vw;
  height: 100vh;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s var(--ease-out);
}

body.wheel-on .details-stage {
  opacity: 1;
  pointer-events: auto
}

.detail {
  position: absolute;
  inset: 0;
  padding: 14vh 6vw 8vh 4vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  transform: translateY(24px);
  /* lighter, faster — sits in lockstep with the wheel transition */
  transition: opacity .6s cubic-bezier(0.22, 1, 0.36, 1), transform .7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.detail.on {
  opacity: 1;
  transform: none
}

.detail .k {
  font-size: 11px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500
}

/* hidden by request — side dots + big watermark numbers removed */
.dots {
  display: none !important
}

.detail .num-big {
  display: none !important
}

.detail h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -.5px;
}

.detail h2 .ital {
  font-style: italic;
  color: var(--yellow);
  font-weight: 500
}

.detail .lead {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 26px);
  color: var(--yellow);
  font-weight: 500;
}

.detail p {
  color: #e8e3d6;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
  max-width: 460px;
  font-weight: 300;
}

.detail .stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 6px
}

.detail .pair {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.detail .pair b {
  font-family: 'Anton', sans-serif;
  font-size: clamp(34px, 3.4vw, 52px);
  color: var(--ink);
  letter-spacing: 1px;
  line-height: 1;
}

.detail .pair span {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase
}

.detail .list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: #e8e3d6;
  font-weight: 300;
  margin-top: 6px
}

.detail .list li {
  list-style: none;
  padding-left: 22px;
  position: relative
}

.detail .list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--yellow);
  font-size: 18px;
  font-weight: bold
}

.detail .mail {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 4px;
  align-self: flex-start;
  text-decoration: none;
  pointer-events: auto;
  transition: color .3s;
}

.detail .mail:hover {
  color: var(--yellow)
}

/* ====================== CLAPPERBOARD ====================== */
.clapperboard {
  position: relative;
  width: min(26vw, 300px);
  aspect-ratio: 5/4;
  background: #0e0f15;
  border-radius: 6px;
  margin-top: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
}

/* Slate (chapter 4) — more compact so everything fits in one viewport */
.detail[data-i="3"] {
  gap: 12px
}

.detail[data-i="3"] .num-big {
  display: none
}

.detail[data-i="3"] h2 {
  font-size: clamp(30px, 3.6vw, 54px);
  margin-bottom: 0
}

.detail[data-i="3"] .mail {
  font-size: clamp(18px, 1.8vw, 26px);
  margin: 4px 0 8px
}

.clapperboard__sticks {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 32%;
  background: repeating-linear-gradient(110deg, #f5f3ec 0 18px, #0e0f15 18px 36px);
  border-radius: 6px 6px 0 0;
  transform-origin: left bottom;
  transform: rotate(-22deg);
  transition: transform .8s var(--ease-snap) .4s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.detail.on .clapperboard__sticks {
  transform: rotate(0deg)
}

.clapperboard__slate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68%;
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.cb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: rgba(245, 243, 236, .55);
  text-transform: uppercase;
  font-weight: 500;
}

.cb-row b {
  color: var(--yellow);
  font-weight: 500
}

.cb-line {
  height: 1px;
  background: rgba(245, 243, 236, .15)
}

.cb-brand {
  text-align: center;
  line-height: 0;
  padding: 4px 0
}

.cb-tag {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink);
  opacity: .7;
}

/* ====================== DOTS ====================== */
.dots {
  position: fixed;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  transition: opacity .6s;
  pointer-events: none;
}

body.wheel-on .dots {
  opacity: 1;
  pointer-events: auto
}

.dot-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: all .4s var(--ease-out);
  display: block;
  cursor: pointer;
  position: relative;
}

.dot-item.on {
  background: var(--yellow);
  transform: scale(1.4);
  box-shadow: 0 0 14px var(--yellow)
}

.dot-item::after {
  content: attr(data-label);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .3s;
  font-weight: 500;
}

.dot-item:hover::after,
.dot-item.on::after {
  opacity: 1;
  color: var(--ink)
}

/* ====================== FOOTER — cinematic video bg + centered content ====================== */
.site-footer {
  position: relative;
  z-index: 11;
  min-height: 100vh;
  min-height: 100dvh;
  background: #000;
  color: var(--ink);
  overflow: hidden;
  padding: 12vh 6vw 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.site-footer__vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05) brightness(.78);
}

.site-footer__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(180deg, rgba(6, 7, 13, .45) 0%, rgba(6, 7, 13, .25) 35%, rgba(6, 7, 13, .45) 65%, rgba(6, 7, 13, .85) 100%);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 6vw;
  right: 6vw;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .22), transparent);
}

.site-footer__inner {
  position: relative;
  z-index: 3;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 60px;
}

.site-footer__inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  justify-content: center;
  flex: 1;
}

.site-footer__inner>* {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7)
}

.site-footer__bottom {
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7);
  position: relative;
  z-index: 3
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center
}

.site-footer__inner--center .site-footer__tag {
  margin: 0 auto
}

/* Highlighted closing line */
.site-footer__awaiting {
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1.25;
  letter-spacing: .2px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4em;
}

.site-footer__awaiting-line {
  color: rgba(245, 243, 236, .85);
  font-weight: 500
}

.site-footer__awaiting-hi {
  color: var(--yellow);
  font-weight: 700;
  text-shadow: 0 0 28px rgba(255, 203, 5, .45), 0 2px 14px rgba(0, 0, 0, .7);
  background: linear-gradient(180deg, #ffe066, var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
}

.site-footer__awaiting-hi::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  opacity: .7;
}

/* Footer text wordmark — bold Anton, no box */
.site-footer__name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(54px, 5.4vw, 82px);
  letter-spacing: 5px;
  color: var(--ink);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .6);
}

.site-footer__namesub {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 5px;
  color: rgba(245, 243, 236, .8);
  margin-top: 8px;
  text-transform: uppercase;
}

.site-footer__tag {
  color: #e8e3d6;
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
  font-weight: 300
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.site-footer__cols--single {
  display: flex;
  justify-content: flex-end
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start
}

.site-footer__col--cta {
  gap: 16px
}

.site-footer__callcta {
  display: inline-block;
  margin-top: 8px;
  background: var(--yellow);
  color: #0a0a0a !important;
  padding: 18px 88px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 203, 5, 0.35);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow:
    0 6px 20px -4px rgba(255, 203, 5, 0.5),
    0 0 24px rgba(255, 203, 5, 0.25);
}

.site-footer__callcta:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 28px -4px rgba(255, 203, 5, 0.75), 0 0 36px rgba(255, 203, 5, 0.45)
}

.site-footer__k {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 500;
  margin-bottom: 6px;
}

.site-footer__mail {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 3px;
  text-decoration: none;
  transition: color .3s;
}

.site-footer__mail:hover {
  color: var(--yellow)
}

.site-footer__line {
  color: #f0ebde;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: color .3s;
}

a.site-footer__line:hover {
  color: var(--yellow)
}

.site-footer__socials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px
}

.site-footer__socials a {
  color: #f0ebde;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .3s;
}

.site-footer__socials a span {
  font-size: 10px;
  opacity: .6;
  transition: transform .3s, opacity .3s
}

.site-footer__socials a:hover {
  color: var(--yellow)
}

.site-footer__socials a:hover span {
  transform: translate(2px, -2px);
  opacity: 1
}

.site-footer__bottom {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
}

/* Smooth cross-fade — fixed cinematic elements fade as user enters the footer.
   Uses filter:opacity which MULTIPLIES with element's own opacity property
   (so wheel-stage opacity:0 in hero phase stays at 0, only fades during transition). */
.stage,
.wheel-stage,
.details-stage,
.grade,
.grain,
.bars,
.dots,
.topbar,
.continue-hint {
  filter: opacity(var(--stage-fade, 1));
  transition: filter .15s linear;
  will-change: filter;
}

/* When fully in footer — disable pointer events on fixed layers */
body.in-footer .stage,
body.in-footer .wheel-stage,
body.in-footer .details-stage,
body.in-footer .dots,
body.in-footer .topbar,
body.in-footer .continue-hint {
  pointer-events: none !important;
}

/* ============================================================
   MOBILE OPTIMIZATION — fully responsive layouts
   ============================================================ */

/* TABLET (≤ 900px) — wheel top half, details bottom half */
@media (max-width:900px) {
  .scroller {
    height: 620vh
  }

  /* Top nav — collapse nav into burger, brand stays centred */
  .topbar {
    top: 10px;
    width: calc(100% - 16px);
    border-radius: 32px
  }

  .topbar__inner {
    grid-template-columns: auto 1fr auto;
    padding: 8px 14px;
    gap: 8px
  }

  .topbar__nav {
    display: none
  }

  .topbar__brand {
    justify-self: center;
    padding: 2px 4px
  }

  .topbar__brand-name {
    font-size: 22px;
    letter-spacing: 2.5px
  }

  .topbar__brand-sub {
    font-size: 7.5px;
    letter-spacing: 2.5px;
    margin-top: 2px
  }

  .topbar__burger {
    display: flex
  }

  /* burger sits on the left so brand is visually centred */
  .topbar__burger {
    justify-self: start;
    order: 0
  }

  .topbar__brand {
    order: 1
  }

  /* placeholder spacer on the right keeps brand centred */
  .topbar__inner::after {
    content: '';
    width: 38px;
    height: 38px;
    justify-self: end;
    order: 2
  }

  .bars {
    height: 5vh
  }

  /* Hero */
  .hero-cap {
    padding: 0 22px
  }

  .hero-cap__eyebrow {
    font-size: 10px;
    letter-spacing: 3.5px;
    margin-bottom: 16px
  }

  .hero-cap__eyebrow .bar {
    width: 28px
  }

  .hero-cap__stack {
    font-size: clamp(34px, 8.8vw, 64px);
    line-height: 1
  }

  .hero-cap__lede {
    font-size: 13px;
    max-width: 90vw;
    margin-top: 18px
  }

  .hero-cap__cta {
    padding: 13px 30px;
    font-size: 12px;
    margin-top: 20px
  }

  /* Wheel — sized to fit comfortably in the TOP half (45vh).
     padding-top must clear the fixed topbar (top:10 + h:~50 = ~60px) so the
     3D-rotated cards on the sides never visually overlap the brand. */
  .wheel-stage {
    justify-content: center;
    align-items: flex-start;
    padding: 88px 0 0 0;
    perspective: 1600px;
    height: 46vh;
    inset: auto 0 auto 0;
    top: 0;
    /* no overflow clip — let the full card render */
  }

  .wheel {
    margin-left: 0;
    width: 150px;
    height: 190px;
    transform: rotateY(0deg) rotateX(-2deg) scale(.92);
  }

  /* Slight Y tilt so the side card peeks → reads as a 3D wheel */
  .wheel[data-r="0"] {
    transform: rotateY(-10deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="1"] {
    transform: rotateY(-100deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="2"] {
    transform: rotateY(-190deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="3"] {
    transform: rotateY(-280deg) rotateX(-2deg) scale(.92)
  }

  .wheel-card[data-i="0"] {
    transform: rotateY(0deg) translateZ(165px)
  }

  .wheel-card[data-i="1"] {
    transform: rotateY(90deg) translateZ(165px)
  }

  .wheel-card[data-i="2"] {
    transform: rotateY(180deg) translateZ(165px)
  }

  .wheel-card[data-i="3"] {
    transform: rotateY(270deg) translateZ(165px)
  }

  .wheel-card .num {
    font-size: 22px;
    top: 12px;
    left: 12px
  }

  .wheel-card .label {
    bottom: 12px;
    left: 12px;
    right: 12px;
    font-size: 14px
  }

  .wheel-card .label-k {
    font-size: 8px;
    letter-spacing: 2.5px;
    margin-bottom: 4px
  }

  /* Details — BOTTOM HALF cleanly separated from wheel (no visible divider) */
  .details-stage {
    width: 100vw;
    height: 54vh;
    top: auto;
    bottom: 0;
    padding: 0;
    pointer-events: none;
  }

  body.wheel-on .details-stage {
    pointer-events: auto
  }

  .detail {
    /* big top padding so text never collides with the wheel area */
    padding: 30px 22px 22px;
    justify-content: flex-start;
    gap: 10px;
  }

  .detail .k {
    font-size: 9px;
    letter-spacing: 3px;
    margin: 0
  }

  .detail .num-big {
    font-size: 54px;
    line-height: .85;
    margin: -2px 0
  }

  .detail h2 {
    font-size: clamp(22px, 5.2vw, 30px);
    line-height: 1.04;
    margin: 0
  }

  .detail .lead {
    font-size: 14px;
    margin: 0
  }

  .detail p {
    font-size: 13px;
    line-height: 1.55;
    max-width: none;
    margin: 0
  }

  .detail .stats {
    gap: 18px;
    margin-top: 4px
  }

  .detail .pair b {
    font-size: 24px
  }

  .detail .pair span {
    font-size: 9px;
    letter-spacing: 2px
  }

  .detail .list {
    gap: 5px;
    font-size: 13px;
    margin-top: 2px
  }

  .detail .mail {
    font-size: 17px;
    margin: 0
  }

  /* Slate (chapter 4) — clapperboard fits */
  .clapperboard {
    width: min(56vw, 220px);
    margin-top: 6px
  }

  .clapperboard__slate {
    padding: 10px 12px 12px;
    gap: 4px
  }

  .cb-brand-name {
    font-size: 30px;
    letter-spacing: 2px
  }

  .cb-brand-sub {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-top: 3px
  }

  .cb-tag {
    font-size: 10px
  }

  .cb-row {
    font-size: 7px;
    letter-spacing: 1.2px
  }

  .detail[data-i="3"] h2 {
    font-size: 22px
  }

  .detail[data-i="3"] .mail {
    font-size: 15px;
    margin-top: 2px
  }

  .detail[data-i="3"] {
    gap: 8px
  }

  /* DOTS — hide tooltips (they overlap with details text) */
  .dots {
    left: 10px;
    gap: 10px;
    top: 25vh;
    transform: none
  }

  .dot-item {
    width: 8px;
    height: 8px
  }

  .dot-item::after {
    display: none !important
  }

  /* Continue hint smaller */
  .continue-hint {
    font-size: 9px;
    letter-spacing: 3px;
    bottom: calc(5vh + 30px)
  }

  .continue-hint::before {
    height: 32px
  }

  /* Footer — full mobile viewport, centered content */
  .site-footer {
    padding: 90px 22px 18px;
    min-height: 100vh;
    min-height: 100dvh
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .site-footer__inner--center {
    gap: 22px;
    padding: 8px 0
  }

  .site-footer__name {
    font-size: 42px;
    letter-spacing: 3px
  }

  .site-footer__namesub {
    font-size: 9px;
    letter-spacing: 3.5px;
    margin-top: 6px
  }

  .site-footer__tag {
    font-size: 13px;
    max-width: 90vw;
    line-height: 1.6
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px
  }

  .site-footer__mail {
    font-size: 16px
  }

  .site-footer__callcta {
    padding: 14px 48px;
    font-size: 13px;
    letter-spacing: 1px
  }

  .site-footer__awaiting {
    font-size: clamp(18px, 5.8vw, 28px);
    margin-top: 6px
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-top: 18px;
    font-size: 9.5px;
    letter-spacing: 1.5px;
    padding-top: 18px;
  }
}

/* SMALL MOBILE (≤ 560px) — tighter still */
@media (max-width:560px) {
  .topbar__brand-name {
    font-size: 20px;
    letter-spacing: 2px
  }

  .topbar__brand-sub {
    font-size: 7px;
    letter-spacing: 2px
  }

  .hero-cap {
    padding: 0 18px
  }

  .hero-cap__eyebrow {
    font-size: 9px;
    letter-spacing: 3px;
    margin-bottom: 14px
  }

  .hero-cap__stack {
    font-size: clamp(36px, 13vw, 62px);
    line-height: .97
  }

  .hero-cap__lede {
    font-size: 12.5px;
    margin-top: 18px
  }

  .hero-cap__cta {
    padding: 14px 32px;
    font-size: 12px;
    margin-top: 20px;
    letter-spacing: .9px
  }

  /* Wheel — compact for small phones, full card always visible */
  .wheel-stage {
    padding-top: 82px;
    perspective: 1400px;
    height: 44vh
  }

  .wheel {
    width: 140px;
    height: 178px;
    transform: rotateY(0deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="0"] {
    transform: rotateY(-10deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="1"] {
    transform: rotateY(-100deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="2"] {
    transform: rotateY(-190deg) rotateX(-2deg) scale(.92)
  }

  .wheel[data-r="3"] {
    transform: rotateY(-280deg) rotateX(-2deg) scale(.92)
  }

  .wheel-card[data-i="0"] {
    transform: rotateY(0deg) translateZ(154px)
  }

  .wheel-card[data-i="1"] {
    transform: rotateY(90deg) translateZ(154px)
  }

  .wheel-card[data-i="2"] {
    transform: rotateY(180deg) translateZ(154px)
  }

  .wheel-card[data-i="3"] {
    transform: rotateY(270deg) translateZ(154px)
  }

  .wheel-card .num {
    font-size: 18px
  }

  .wheel-card .label {
    font-size: 13px
  }

  .wheel-card .label-k {
    font-size: 7.5px
  }

  /* Details — pushed down to clear card area */
  .details-stage {
    height: 56vh
  }

  .detail {
    padding: 22px 18px 16px;
    gap: 6px
  }

  .detail .num-big {
    font-size: 42px
  }

  .detail h2 {
    font-size: 20px
  }

  .detail .lead {
    font-size: 13px
  }

  .detail p {
    font-size: 12px;
    line-height: 1.55
  }

  .detail .stats {
    gap: 12px
  }

  .detail .pair b {
    font-size: 20px
  }

  .detail .pair span {
    font-size: 8.5px
  }

  .detail .list {
    font-size: 12px;
    gap: 4px
  }

  .detail .mail {
    font-size: 15px
  }

  /* Slate clapperboard on small mobile — extra compact */
  .clapperboard {
    width: min(60vw, 200px);
    margin-top: 4px
  }

  .clapperboard__slate {
    padding: 8px 10px 10px;
    gap: 3px
  }

  .cb-brand-name {
    font-size: 26px;
    letter-spacing: 1.5px
  }

  .cb-brand-sub {
    font-size: 6.5px;
    letter-spacing: 1.2px;
    margin-top: 2px
  }

  .cb-tag {
    font-size: 9px
  }

  .cb-row {
    font-size: 6.5px;
    letter-spacing: 1px
  }

  .detail[data-i="3"] h2 {
    font-size: 20px
  }

  /* Footer single column */
  .site-footer {
    padding: 36px 16px 18px
  }

  .site-footer__name {
    font-size: 40px;
    letter-spacing: 3px
  }

  .site-footer__namesub {
    font-size: 9px;
    letter-spacing: 3.5px
  }

  .site-footer__cols {
    grid-template-columns: 1fr;
    gap: 22px
  }

  .site-footer__mail {
    font-size: 15px
  }

  .site-footer__k {
    font-size: 10px;
    letter-spacing: 3px
  }

  .site-footer__line {
    font-size: 12.5px
  }

  .site-footer__socials a {
    font-size: 12.5px
  }

  .bars {
    height: 3.5vh
  }

  .dots {
    left: 8px;
    gap: 9px;
    top: 22vh
  }

  .dot-item {
    width: 7px;
    height: 7px
  }
}

/* TOUCH DEVICES — slightly larger hit areas */
@media (hover:none) and (pointer:coarse) {
  .dot-item {
    width: 10px;
    height: 10px
  }

  .site-footer__socials a,
  .site-footer__mail,
  .site-footer__line {
    padding: 4px 0
  }
}

/* ====================== CONTACT MODAL ====================== */
.contact-modal {
  position: fixed; inset: 0; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.contact-modal.is-open { opacity: 1; pointer-events: auto; }
.contact-modal__overlay {
  position: absolute; inset: 0; background: rgba(6, 7, 13, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact-modal__content {
  position: relative; width: 90%; max-width: 500px;
  background: rgba(10, 12, 18, 0.95); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px; padding: 40px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.95); transition: transform 0.4s ease;
}
.contact-modal.is-open .contact-modal__content { transform: translateY(0) scale(1); }
.contact-modal__close {
  position: absolute; top: 20px; right: 24px; background: none; border: none;
  color: #9b958a; font-size: 28px; cursor: pointer; transition: color 0.2s ease;
}
.contact-modal__close:hover { color: #f5f3ec; }
.contact-modal__header { margin-bottom: 24px; }
.contact-modal__title {
  font-family: 'Anton', sans-serif; font-size: 32px; color: #f8fafc;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px;
}
.contact-modal__subtitle { color: #9b958a; font-size: 14px; line-height: 1.5; }
.contact-modal__subtitle a { color: #ffe57f; text-decoration: underline; }
.contact-modal__form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #9b958a;
}
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px;
  padding: 12px 16px; color: #f8fafc; font-family: 'Inter', sans-serif;
  font-size: 15px; transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #ffe57f; background: rgba(255, 255, 255, 0.08);
}
.contact-modal__submit { margin-top: 8px; padding: 16px; width: 100%; }