/* ============================================================
   hyper — page-specific styles (home / work / team)
   ============================================================ */

/* ============ HOME / REEL ============ */
.reel {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.reel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.reel-slide.active { opacity: 1; }
.reel-slide .frame {
  position: absolute; inset: 0;
  transform-origin: center;
  animation: kenburns 9s var(--ease) both;
}
@keyframes kenburns {
  0%   { transform: scale(1.06) translate(-1%, -1%); }
  100% { transform: scale(1.16) translate(2%, 1.5%); }
}
.reel-slide .vignette {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.85) 100%);
}
.reel .hud-top {
  position: absolute;
  top: calc(var(--pad-y) + 56px);
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px;
  z-index: 5;
}
.reel .hud-bottom {
  position: absolute; bottom: calc(var(--pad-y) + 48px); left: var(--pad-x);
  right: var(--pad-x);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  z-index: 5;
}
.reel .hero-block {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: calc(var(--pad-y) + 130px);
  z-index: 4;
  max-width: 70%;
}
.reel h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 8.4vw, 148px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-wrap: balance;
  max-width: 16ch;
}
.reel h1 .it { font-style: italic; font-weight: 500; color: var(--accent); }
.reel .meta {
  display: flex; flex-direction: column; gap: 6px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.reel .ticker {
  display: flex; gap: 16px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  flex-wrap: wrap;
  max-width: 60%;
}
.reel .ticker .idx { color: var(--accent); }
.reel .progress {
  display: flex; gap: 6px; flex: 1;
  margin: 0 32px 4px;
  max-width: 360px;
  min-width: 120px;
}
.reel .watch-btn { white-space: nowrap; flex-shrink: 0; }
.reel .watch-btn-meta { white-space: nowrap; flex-shrink: 0; }
.reel .progress .tick {
  flex: 1; height: 2px;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.reel .progress .tick.active::after {
  content: ""; position: absolute; inset: 0;
  background: var(--fg);
  animation: fill 5s linear forwards;
}
.reel .progress .tick.played { background: rgba(255,255,255,0.6); }
@keyframes fill { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* tile placeholder — animated grayscale "video" */
.tile-bg {
  position: absolute; inset: 0;
  background: #111;
  overflow: hidden;
}
.tile-bg::before, .tile-bg::after {
  content: "";
  position: absolute; inset: -20%;
}
.tile-bg::before {
  background:
    radial-gradient(60% 80% at 30% 40%, rgba(255,255,255,0.18) 0%, transparent 60%),
    radial-gradient(40% 60% at 80% 70%, rgba(255,255,255,0.12) 0%, transparent 65%),
    linear-gradient(120deg, #0a0a0a 0%, #2a2a2a 50%, #0a0a0a 100%);
  animation: drift 14s linear infinite;
}
.tile-bg::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: .8;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(0,0) scale(1); }
}

/* per-slide flavor */
.tile-bg.v-halcyon::before { background:
  radial-gradient(70% 90% at 25% 30%, rgba(255,255,255,0.22) 0%, transparent 55%),
  radial-gradient(50% 70% at 75% 75%, rgba(255,255,255,0.10) 0%, transparent 60%),
  linear-gradient(135deg, #050505 0%, #1f1f1f 60%, #050505 100%); }
.tile-bg.v-sound::before { background:
  radial-gradient(35% 60% at 50% 50%, rgba(255,255,255,0.35) 0%, transparent 50%),
  radial-gradient(80% 40% at 50% 100%, rgba(255,255,255,0.10) 0%, transparent 60%),
  linear-gradient(180deg, #0d0d0d 0%, #1c1c1c 100%); }
.tile-bg.v-atlas::before { background:
  conic-gradient(from 45deg at 60% 40%, rgba(255,255,255,0.20), transparent 30%, rgba(255,255,255,0.10), transparent 70%, rgba(255,255,255,0.18)),
  linear-gradient(180deg, #060606 0%, #181818 100%); }
.tile-bg.v-verdant::before { background:
  radial-gradient(55% 75% at 40% 65%, rgba(255,255,255,0.18) 0%, transparent 60%),
  linear-gradient(160deg, #030303 0%, #161616 50%, #030303 100%); }
.tile-bg.v-coda::before { background:
  linear-gradient(110deg, #0a0a0a 0%, #2e2e2e 40%, #0a0a0a 80%),
  radial-gradient(60% 80% at 70% 30%, rgba(255,255,255,0.22) 0%, transparent 60%); }
.tile-bg.v-mosaic::before { background:
  radial-gradient(40% 55% at 60% 50%, rgba(255,255,255,0.25) 0%, transparent 55%),
  linear-gradient(225deg, #060606 0%, #1d1d1d 100%); }

/* simulated bars suggesting motion */
.scanlines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    180deg, rgba(0,0,0,0.0) 0 2px, rgba(0,0,0,0.18) 2px 3px
  );
  pointer-events: none;
}

/* ---------------- after-hero sections on home ---------------- */
.home-grid {
  padding: 120px var(--pad-x) 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}
.home-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
  max-width: 18ch;
}
.home-grid h2 em {
  font-style: italic; font-weight: 400; color: var(--accent);
}
.home-grid p {
  font-size: 18px; line-height: 1.5;
  color: var(--fg-dim);
  max-width: 56ch;
}
.home-grid .col-meta {
  display: flex; flex-direction: column; gap: 28px;
}
.home-grid .kpi {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.home-grid .kpi .num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.home-grid .kpi .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  max-width: 22ch;
  text-align: right;
}

/* services strip */
.services {
  padding: 100px var(--pad-x);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 320px 1fr; gap: 60px;
}
.services .lead {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
}
.services .list {
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.services .item {
  display: grid; grid-template-columns: 80px 1fr 220px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--line-2);
}
.services .item:last-child { border-bottom: 1px solid var(--line-2); }
.services .item .n {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.16em;
}
.services .item .name {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.services .item .desc {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim);
  line-height: 1.5;
}
.services .item:hover .name { color: var(--accent); }
.services .item { transition: background .3s var(--ease); }
.services .item:hover { color: var(--fg); }

/* marquee */
.marquee {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
  white-space: nowrap;
  user-select: none;
}
.marquee .track {
  display: inline-flex; align-items: center; gap: 60px;
  animation: marquee 38s linear infinite;
  padding-right: 60px;
}
.marquee .track span {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 140px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  display: inline-flex; align-items: center; gap: 60px;
}
.marquee .track .star {
  width: 32px; height: 32px;
  color: var(--accent);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- scroll-snap scenes (HOME) ---- */
.scenes-host {
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.scenes-host::-webkit-scrollbar { display: none; }
.scene {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #000;
}
.scenes-host .pipeline,
.scenes-host .cta {
  /* not snap targets — free scroll after scenes */
}
.scenes {
  /* legacy noop for the inner wrapper */
}
.scene .stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* pause background motion until in view */
.scene .stage .tile-bg::before {
  animation-play-state: paused;
}
.scene.in-view .stage .tile-bg::before {
  animation-play-state: running;
}
.scene .stage .ken {
  position: absolute;
  inset: 0;
  transform-origin: center;
}
.scene.in-view .stage .ken {
  animation: kenburns 14s var(--ease) forwards;
}

.scene .scrim {
  position: absolute; inset: 0;
  /* very subtle — just enough to keep small mono HUD/title readable on bright frames */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,0) 64%, rgba(0,0,0,0.45) 100%);
  z-index: 2;
  pointer-events: none;
}

.scene .overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: calc(var(--pad-y) + 64px) var(--pad-x) calc(var(--pad-y) + 60px);
  pointer-events: none;
}
.scene .overlay > * { pointer-events: auto; }
.scene .overlay .top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s;
}
.scene .overlay .top .tc {
  display: inline-flex; align-items: center; gap: 8px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.scene .overlay .bot .tc { text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.scene .overlay .mid .slogan { text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.scene .overlay .top .rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s steps(2,end) infinite;
}
.scene .overlay .bot .open-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.scene .overlay .bot .open-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.scene .overlay .mid {
  align-self: end;
  max-width: 22ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s;
}
.scene .overlay .bot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s;
}
.scene.in-view .overlay .top,
.scene.in-view .overlay .mid,
.scene.in-view .overlay .bot {
  opacity: 1;
  transform: none;
}

.scene .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.scene .stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 12px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.scene .stamp .rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: blink 1.4s steps(2, end) infinite;
}
.scene .title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  font-size: clamp(56px, 9.5vw, 168px);
  color: #fff;
  text-wrap: balance;
  /* soft shadow so the big title stays readable on bright frames now that the scrim is light */
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 0 1px rgba(0,0,0,0.6);
}
.scene .title em { font-style: italic; font-weight: 400; color: var(--accent); }
.scene .tc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.scene .meta {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.scene .meta .lg {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  margin-bottom: 4px;
}

/* progress / paginator dots on right edge */
.scenes-nav {
  position: fixed;
  right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  mix-blend-mode: difference;
}
.scenes-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  transition: color .3s var(--ease);
}
.scenes-nav button .dot {
  width: 18px; height: 1px;
  background: rgba(255,255,255,0.45);
  transition: all .35s var(--ease);
}
.scenes-nav button.active { color: #fff; }
.scenes-nav button.active .dot {
  width: 32px;
  background: var(--accent);
  height: 2px;
}

/* center cinema mark */
.scene .center-mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  z-index: 2;
}
.scene .center-mark::before,
.scene .center-mark::after {
  content: ""; position: absolute;
  width: 12px; height: 12px;
  border: 1px solid rgba(255,255,255,0.4);
}
.scene .center-mark::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.scene .center-mark::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* progress fill at top */
.scene .playbar {
  position: absolute; left: 0; right: 0; top: calc(var(--pad-y) + 56px);
  height: 1px;
  background: rgba(255,255,255,0.18);
  z-index: 2;
}
.scene .playbar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  background: #fff;
  transform: scaleX(0); transform-origin: left;
}
.scene.in-view .playbar::after {
  animation: playFill 9s linear forwards;
}

/* product hero scene (intro) */
.scene-intro .stage {
  background: #000;
}
.scene-intro .vfield {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 50% 60%, rgba(255,255,255,0.18) 0%, transparent 60%),
    radial-gradient(40% 60% at 30% 30%, rgba(255,255,255,0.12) 0%, transparent 65%),
    linear-gradient(120deg, #050505 0%, #1a1a1a 60%, #050505 100%);
  filter: blur(2px);
}
.scene-intro .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 0%, transparent 80%);
}

.intro-headline {
  position: absolute;
  left: var(--pad-x); right: var(--pad-x);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.intro-headline .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 14px;
}
.intro-headline .eyebrow::before,
.intro-headline .eyebrow::after {
  content: ""; width: 36px; height: 1px; background: var(--mute);
}
.intro-headline h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.88;
  font-size: clamp(56px, 9vw, 168px);
  text-wrap: balance;
  max-width: 16ch;
  margin: 0 auto;
}
.intro-headline h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.intro-headline .sub {
  margin-top: 28px;
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
  margin-left: auto; margin-right: auto;
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: calc(var(--pad-y) + 80px);
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-hint .line::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: 0;
  height: 12px;
  background: var(--accent);
  animation: scrollDown 1.8s var(--ease) infinite;
}
@keyframes scrollDown {
  0%   { transform: translateY(-100%); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(400%); opacity: 0; }
}

/* pipeline + cta sections (compact, after scenes) */
.pipeline {
  padding: 140px var(--pad-x) 120px;
  border-top: 1px solid var(--line);
}
.pipeline .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.pipeline h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(40px, 5.4vw, 88px);
  text-wrap: balance;
  max-width: 16ch;
}
.pipeline h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.pipeline .lede {
  font-size: 18px; line-height: 1.55; color: var(--fg-dim);
  max-width: 52ch;
  margin-bottom: 36px;
}
.pipeline .steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-2);
}
.pipeline .step {
  display: grid;
  grid-template-columns: 56px 1.2fr 1fr 100px;
  align-items: baseline;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
}
.pipeline .step .n {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mute);
}
.pipeline .step .nm {
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}
.pipeline .step .desc {
  font-family: var(--font-body); font-size: 13px; line-height: 1.5;
  color: var(--fg-dim);
}
.pipeline .step .t {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); text-align: right;
}

@media (max-width: 900px) {
  .pipeline .row { grid-template-columns: 1fr; gap: 40px; }
  .pipeline .step { grid-template-columns: 40px 1fr; }
  .pipeline .step .desc, .pipeline .step .t { grid-column: 2 / 3; }
  .scene .title { font-size: clamp(40px, 12vw, 80px); }
  .intro-headline h1 { font-size: clamp(48px, 14vw, 96px); }
  .scenes-nav { display: none; }
}
/* Each section is a big standalone "video" stage. Vary aspect ratios + insets. */

.feat {
  position: relative;
  background: #000;
  padding: 80px var(--pad-x) 80px;
}
.feat.full { padding: 0; }
.feat.letterbox { padding: 80px 0; }

.feat-head {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 32px;
  padding: 0 0 28px;
  align-items: baseline;
}
.feat.full .feat-head { padding: 32px var(--pad-x) 22px; }
.feat-head .num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--mute);
}
.feat-head .title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.94;
}
.feat-head .title em { font-style: italic; font-weight: 400; color: var(--accent); }
.feat-head .meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  text-align: right;
  line-height: 1.7;
  max-width: 220px;
}

.feat-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  isolation: isolate;
}
.feat-stage.ratio-21x9  { aspect-ratio: 21 / 9; }
.feat-stage.ratio-16x9  { aspect-ratio: 16 / 9; }
.feat-stage.ratio-3x2   { aspect-ratio: 3 / 2; }
.feat-stage.ratio-4x5   { aspect-ratio: 4 / 5; }

.feat-stage .hud {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(20px, 2.4vw, 36px);
  pointer-events: none;
  z-index: 3;
}
.feat-stage .hud .top,
.feat-stage .hud .bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px;
}
.feat-stage .hud .top { align-items: flex-start; }
.feat-stage .hud .stamp {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff;
  padding: 6px 10px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}
.feat-stage .hud .stamp .rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: blink 1.4s steps(2,end) infinite;
}
.feat-stage .hud .tc {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.85);
}
.feat-stage .hud .center-mark {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: 56px; height: 56px;
}
.feat-stage .hud .center-mark::before,
.feat-stage .hud .center-mark::after {
  content: ""; border: 1px solid rgba(255,255,255,0.35);
}
.feat-stage .hud .center-mark::before {
  grid-area: 1 / 1 / 2 / 2;
  border-right: 0; border-bottom: 0;
  width: 12px; height: 12px;
}
.feat-stage .hud .center-mark::after {
  grid-area: 2 / 2 / 3 / 3;
  border-left: 0; border-top: 0;
  width: 12px; height: 12px; justify-self: end; align-self: end;
}

/* big floating title overlay on full-bleed sections */
.feat-stage .overlay-title {
  position: absolute;
  left: clamp(20px, 3vw, 56px);
  bottom: clamp(40px, 5vw, 80px);
  z-index: 4;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  font-size: clamp(56px, 10vw, 180px);
  max-width: 14ch;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.feat-stage .overlay-title em { font-style: italic; font-weight: 400; }

.feat-stage .corner-meta {
  position: absolute;
  right: clamp(20px, 3vw, 56px);
  bottom: clamp(40px, 5vw, 80px);
  z-index: 4;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.feat-stage .corner-meta .lg {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 600;
  margin-bottom: 4px;
}

/* footer info under stage */
.feat-foot {
  display: grid;
  grid-template-columns: 88px 1fr 1fr auto;
  gap: 32px;
  padding-top: 28px;
  align-items: start;
  border-top: 1px solid var(--line-2);
  margin-top: 28px;
}
.feat.full .feat-foot { padding: 28px var(--pad-x) 80px; margin: 0; }
.feat-foot .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.feat-foot .val { font-family: var(--font-body); font-size: 16px; color: var(--fg-dim); line-height: 1.5; }
.feat-foot .open-btn {
  align-self: end;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.feat-foot .open-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* two-up split */
.feat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px 0;
  background: #000;
}
.feat-split .feat-stage.ratio-4x5 { aspect-ratio: 4 / 5; }

/* a "playing reel" indicator (subtle drift line on bottom) */
.feat-stage .playhead {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: rgba(255,255,255,0.12);
  z-index: 4;
}
.feat-stage .playhead::after {
  content: ""; position: absolute; inset: 0;
  background: var(--fg);
  transform-origin: left;
  animation: playFill 24s linear infinite;
}
@keyframes playFill {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@media (max-width: 900px) {
  .feat-head { grid-template-columns: 1fr; gap: 12px; }
  .feat-head .meta { text-align: left; }
  .feat-foot { grid-template-columns: 1fr; }
  .feat-stage .overlay-title { font-size: clamp(40px, 12vw, 80px); }
  .feat-split { grid-template-columns: 1fr; }
}

/* ============ WORK ============ */
.work {
  padding: 140px 0 0;
}
.work-stack { padding-bottom: 80px; }

/* cinema rows on /work */
.work-cinema {
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cinema-row {
  display: flex; flex-direction: column;
  padding: 60px var(--pad-x) 80px;
  border-bottom: 1px solid var(--line);
}
.cinema-row:last-child { border-bottom: 0; }
.cinema-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 32px;
}
.cinema-meta .left { display: flex; flex-direction: column; gap: 18px; }
.cinema-meta .right { display: flex; flex-direction: column; gap: 18px; max-width: 38ch; justify-self: end; text-align: right; }
.cinema-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 160px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  margin: 0;
}
.cinema-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.cinema-tags .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.cinema-blurb {
  font-family: var(--font-body);
  font-size: 18px; line-height: 1.5;
  color: var(--fg-dim);
}
.cinema-creds {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em;
}
.cinema-creds > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.cinema-creds span:first-child { color: var(--mute); text-transform: uppercase; letter-spacing: 0.16em; }
.cinema-creds span:last-child { color: var(--fg); }
.cinema-open {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.cinema-open:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.cinema-stage {
  display: block;
  transition: transform .6s var(--ease-out);
}
.cinema-stage:hover { transform: scale(1.005); }

@media (max-width: 900px) {
  .cinema-meta { grid-template-columns: 1fr; }
  .cinema-meta .right { text-align: left; justify-self: start; }
  .cinema-open { align-self: flex-start; }
}
.work-head {
  padding: 0 var(--pad-x) 100px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}
.work-head h1 {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 240px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.82;
}
.work-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.work-head .filters {
  display: flex; gap: 8px;
  flex-wrap: wrap; justify-content: flex-end;
  max-width: 460px;
}
.work-head .filters button {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-dim);
  transition: all .25s var(--ease);
}
.work-head .filters button:hover { border-color: var(--fg); color: var(--fg); }
.work-head .filters button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.work-stack {
  display: flex; flex-direction: column;
}
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1.4fr 1fr 200px 120px;
  align-items: center;
  gap: 32px;
  padding: 40px var(--pad-x);
  border-bottom: 1px solid var(--line);
  cursor: none;
  isolation: isolate;
  overflow: hidden;
}
.work-row .idx {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mute);
}
.work-row .title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  transition: transform .6s var(--ease-out), opacity .4s var(--ease);
}
.work-row .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.work-row .tag {
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.work-row .client { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); }
.work-row .year { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-align: right; color: var(--mute); }

.work-row .preview {
  position: absolute;
  pointer-events: none;
  width: 360px; height: 220px;
  opacity: 0; transform: scale(0.9);
  transition: opacity .35s var(--ease), transform .55s var(--ease-out);
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line-2);
}
.work-row:hover .preview { opacity: 1; transform: scale(1); }
.work-row:hover .title { transform: translateX(-8px); }
.work-row:hover .idx { color: var(--accent); }
.work-row:hover { background: #050505; }
.work-row .corner-mark {
  position: absolute;
  top: 50%; right: var(--pad-x);
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--mute);
  transition: all .25s var(--ease);
}
.work-row:hover .corner-mark { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ============ TEAM ============ */
.team {
  padding: 140px var(--pad-x) 120px;
}
.team-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--line);
}
.team-head h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 168px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
}
.team-head h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.team-head .intro {
  font-size: 18px; line-height: 1.55;
  color: var(--fg-dim);
  max-width: 48ch;
  align-self: end;
}
.team-grid {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px;
}
.member {
  display: flex; flex-direction: column; gap: 16px;
  cursor: none;
}
.member .portrait {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--line-2);
  filter: grayscale(1) contrast(1.05);
  transition: filter .5s var(--ease);
}
.member:hover .portrait { filter: grayscale(0.4) contrast(1.1); }
.member .portrait .silhouette {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 38%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 65%),
    radial-gradient(70% 55% at 50% 95%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #0a0a0a 0%, #151515 100%);
}
.member .portrait .badge {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.member .portrait .accent-strip {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-out);
}
.member:hover .portrait .accent-strip { transform: scaleX(1); }
.member .name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.member .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.member .bio {
  font-size: 13px; line-height: 1.5;
  color: var(--fg-dim);
  max-width: 32ch;
}

/* footer-ish CTA on home & team */
.cta {
  padding: 140px var(--pad-x);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  align-items: end;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 160px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.86;
  max-width: 12ch;
}
.cta h2 em { font-style: italic; font-weight: 400; color: var(--accent); }
.cta .contact {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cta .contact a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.cta .contact a:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cta .contact .meta { color: var(--mute); }

/* utilities */
.divider { height: 1px; background: var(--line); }
.fade-in { animation: fadeIn .7s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* small / responsive */
@media (max-width: 900px) {
  .home-grid, .services, .cta { grid-template-columns: 1fr; }
  .work-row { grid-template-columns: 48px 1fr 100px; }
  .work-row .tags, .work-row .client { display: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-head { grid-template-columns: 1fr; }
}

/* ============================================================
   Real-video integrations (added)
   ============================================================ */

/* filmic tint over real footage — keeps HUD text legible */
.tile-tint {
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%),
    radial-gradient(80% 60% at 50% 0%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%);
  mix-blend-mode: normal;
}

/* video element should not show controls/poster ui */
.tile-video {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
}

/* slogan under hero title in home scene */
.scene .overlay .mid .slogan {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  max-width: 28ch;
  line-height: 1.5;
}

/* portrait scene: 9:16 video letterboxed in landscape stage,
   side rails get a subtle ambient blur */
.scene-portrait .stage {
  background: #000;
}
.scene-portrait .stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--portrait-ambient, none);
  filter: blur(60px) saturate(0.7);
  opacity: 0.55;
  transform: scale(1.4);
  pointer-events: none;
  z-index: 0;
}
/* fall-back ambient that uses the poster as a blurred bed (set inline if needed) */

/* portrait ratios for work + case + featured */
.feat-stage.ratio-9x16 { aspect-ratio: 9 / 16; }
.feat-stage.ratio-3x4  { aspect-ratio: 3 / 4; }
.feat-stage.is-portrait {
  max-height: 88vh;
  margin: 0 auto;
  background: #000;
}

/* work cinema row — center portrait stage with side ambient strips */
.cinema-stage.is-portrait {
  max-width: 540px;
  width: 100%;
  align-self: center;
}
.cinema-row:has(.is-portrait) { align-items: center; }

/* in the scenes-nav (right rail), make portrait scene marker visible */
.scenes-nav button.active .dot { background: var(--accent); }

/* ============================================================
   Focus mode: click a video scene → hide title/HUD/scrim/chrome,
   keep only the video + Open Case button + audio toggle + hint
   ============================================================ */

/* fade scene decoration (added on the scenes-host root) */
.scenes-host.focus-mode .scene .scrim,
.scenes-host.focus-mode .scene .overlay .top,
.scenes-host.focus-mode .scene .overlay .mid,
.scenes-host.focus-mode .scene .overlay .bot > .tc {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
/* keep Open Case visible + readable on its own */
.scenes-host.focus-mode .scene .overlay .bot {
  opacity: 1;
  justify-content: flex-end;
}
.scenes-host.focus-mode .scene .overlay .bot .open-link {
  opacity: 1;
  padding: 10px 16px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.scenes-host.focus-mode .scene .overlay .bot .open-link:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* fade global chrome via body class */
body.hyper-focus .nav,
body.hyper-focus .status,
body.hyper-focus .scenes-nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}


/* focus-mode "click or ESC to exit" hint */
.focus-hint {
  position: fixed;
  left: 50%;
  bottom: calc(var(--pad-y) + 14px);
  transform: translateX(-50%);
  z-index: 70;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 16px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  pointer-events: none;
  animation: focusHintIn .45s var(--ease-out) .12s both;
}
.focus-hint kbd {
  display: inline-block;
  margin: 0 2px 0 6px;
  padding: 1px 6px 2px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #fff;
}
@keyframes focusHintIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}


