/* ============================================================
   AUDENCE — cinematic 3D scroll
   Violet · Black · White  (palette from template refs)
   Inter Tight display · Inter UI
   ============================================================ */

:root {
  --black:  #050507;
  --ink:    #0b0b10;
  --violet-deep:   #4c1d95;
  --violet:        #6d28d9;
  --violet-bright: #7c3aed;
  --lavender: #c4b5fd;
  --glow:     #e9d5ff;
  --white:  #ffffff;
  --grey:   #a3a3b2;
  --grey-dark: #52525e;

  --font-display: "Inter Tight", "Helvetica Neue", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;

  /* scroll length per pinned scene — one consistent rhythm.
     A "stage" is how long a sticky scene holds before the next begins. */
  --stage-short: 190vh;   /* card wall */
  --stage-long:  330vh;   /* work reel — needs more travel for 5 panels */

  --z-content: 2;
  --z-cards: 5;
  --z-nav: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
::selection { background: var(--violet-bright); color: var(--white); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- nav (white pill, template-style) ---------- */
.nav {
  position: fixed;
  top: 1.1rem; left: 0; right: 0;
  z-index: var(--z-nav);
  display: flex; justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 0.25rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 8px 32px rgba(5, 5, 7, 0.25), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.nav-logo {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 999px;
}
.nav-logo svg { width: 1.15rem; height: 1.15rem; }
.nav-logo path { fill: #050507; }
.nav-links { display: flex; }
.nav-links a {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem; font-weight: 500;
  color: #17171c;
  border-radius: 999px;
  transition: background-color 180ms var(--ease);
}
.nav-links a:hover { background: rgba(5, 5, 7, 0.06); }
.nav-cta {
  padding: 0.55rem 1.15rem;
  background: #0a0a0d;
  color: var(--white);
  font-size: 0.9rem; font-weight: 500;
  border-radius: 999px;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.nav-cta:hover { background: var(--violet-bright); }
.nav-cta:active { transform: scale(0.96); }

/* ============================================================
   S1 · HERO — headline over footage
   ============================================================ */
.sc-hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06); /* head-room for scroll drift */
}
.hero-wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 9, 46, 0.60) 0%, rgba(45, 17, 92, 0.42) 45%, rgba(23, 9, 46, 0.78) 100%),
    radial-gradient(62% 42% at 50% 50%, rgba(5, 5, 7, 0.55) 0%, rgba(5, 5, 7, 0.18) 60%, transparent 85%);
}
.hero-glow {
  position: absolute; inset: auto 0 -20% 0;
  height: 55%;
  background: radial-gradient(58% 90% at 50% 100%, rgba(196, 181, 253, 0.5) 0%, rgba(124, 58, 237, 0.18) 45%, transparent 72%);
  filter: blur(10px);
}
.hero-title {
  position: relative; z-index: var(--z-content);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(3.15rem, 10.2vw, 9.75rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-align: center;
  color: var(--white);
  /* drop-shadow, not text-shadow: it respects gradient-clipped text
     instead of rendering a grey ghost behind it */
  filter: drop-shadow(0 2px 14px rgba(5, 5, 7, 0.55)) drop-shadow(0 1px 3px rgba(5, 5, 7, 0.4));
}
.hero-title .line { display: block; }
.hero-title i { font-style: normal; background: linear-gradient(100deg, #ffffff 0%, var(--glow) 45%, var(--lavender) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-title em { font-style: normal; }
/* words are animated in by Motion; they just need to be transformable */
.hero-title .word { display: inline-block; will-change: transform, opacity; }

.hero-tag {
  position: absolute; bottom: 5.5rem;
  z-index: var(--z-content);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 18px rgba(5, 5, 7, 0.8);
}
/* small rectangular "watch full video" button, hero corner */
.watch-full {
  position: absolute;
  right: clamp(1.25rem, 3.5vw, 2.5rem);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 10;
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  background: rgba(10, 10, 13, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.watch-full:hover { background: rgba(124, 58, 237, 0.75); border-color: rgba(255,255,255,0.55); }
.watch-full:active { transform: scale(0.97); }
.watch-full svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }

/* ---------- full-video lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(3, 3, 6, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: lb-fade 260ms var(--ease) both;
}
.lightbox-inner {
  position: relative;
  width: min(1200px, 100%);
  animation: lb-rise 320ms var(--ease) both;
}
.lightbox-inner video {
  width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute; top: -3rem; right: 0;
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background-color 180ms var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close svg { width: 1.1rem; height: 1.1rem; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

.hero-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 48px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
  z-index: var(--z-content);
}
.hero-cue span {
  display: block; width: 100%; height: 45%;
  background: var(--white);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-110%); } 60%, 100% { transform: translateY(260%); } }

/* ============================================================
   S2 · WALL — floating cards over marquee + orbs
   ============================================================ */
.sc-wall { height: var(--stage-short); background: var(--black); position: relative; }
/* the particle ring: a full-section backdrop, out of normal flow.
   Without this the <canvas> sits inline at its default 300x150 and pushes
   the gallery down — that was the mystery gap on phones. */
#vortex-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* vortex.js never loads in flat mode, so don't reserve anything for it */
body.flat #vortex-canvas { display: none; }

.wall-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.wall-marquee {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 16vw, 15rem);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(163, 163, 178, 0.22);
  will-change: transform;
  user-select: none;
  z-index: 2;
}
.wall-orb {
  position: absolute;
  width: 44vw; height: 44vw;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}
.wall-orb-a { left: -12%; top: 8%;  background: radial-gradient(circle, rgba(109, 40, 217, 0.55) 0%, transparent 65%); }
.wall-orb-b { right: -14%; bottom: 4%; background: radial-gradient(circle, rgba(124, 58, 237, 0.45) 0%, rgba(196, 181, 253, 0.12) 40%, transparent 68%); }
/* label sits top-left as a section eyebrow */
.wall-label {
  position: absolute; top: 6.5rem; left: clamp(1.25rem, 4vw, 3rem);
  z-index: 3;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--grey);
}
.wall-hint {
  position: absolute; bottom: 2.2rem; left: clamp(1.25rem, 4vw, 3rem);
  z-index: 3;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: rgba(163, 163, 178, 0.55);
}
.wall { position: absolute; inset: 0; z-index: 4; perspective: 1400px; }

/* ---- scattered live cards ----
   The rAF loop writes --tx/--ty/--rx/--ry (drift, parallax, tilt).
   Motion writes --scale (entrance + hover spring).
   Both meet here, so neither overwrites the other. */
.wcard {
  --scale: 1;
  position: absolute;
  translate: -50% -50%;
  /* resting state; the scroll loop overwrites `transform` each frame and
     keeps scale(var(--scale)) in the chain so Motion still owns --scale */
  transform: scale(var(--scale));
  will-change: transform, opacity;
  cursor: pointer;
  text-decoration: none;
}
/* five size tiers — deliberately uneven, so nothing reads as a grid */
.wcard-xs { width: clamp(84px,  8vw,  132px); }
.wcard-sm { width: clamp(116px, 11vw, 178px); }
.wcard-md { width: clamp(150px, 15vw, 240px); }
.wcard-lg { width: clamp(190px, 19vw, 300px); }
.wcard-xl { width: clamp(232px, 24vw, 380px); }

.wcard-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 22px 55px rgba(5, 5, 7, 0.62);
  transition: box-shadow 320ms var(--ease);
}
.wcard-xl .wcard-media, .wcard-lg .wcard-media { aspect-ratio: 4 / 5; }
.wcard-xs .wcard-media { aspect-ratio: 1 / 1; }
.wcard-media img,
.wcard-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* the poster stays on top until the video has real frames — `.ready` is added
   by main.js on the video's own `playing`/`loadeddata` event. Fading in on
   hover alone showed an empty (black) video element first: the flicker. */
.wcard-media video { opacity: 0; transition: opacity 420ms var(--ease); }
.wcard.is-hot .wcard-media video.ready { opacity: 1; }
.wcard.is-hot .wcard-media {
  box-shadow: 0 30px 80px rgba(124, 58, 237, 0.5), 0 0 0 1px rgba(196, 181, 253, 0.35);
}

/* caption only surfaces on hover — keeps the scatter quiet at rest */
.wcard-cap {
  display: block;
  padding-top: 0.6rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.wcard.is-hot .wcard-cap { opacity: 1; transform: none; }
.wcard-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}
.wcard-meta {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lavender);
}
/* Deliberately no sibling dimming: toggling every other card's opacity as the
   pointer crossed the scatter read as flickering. The hovered card already
   lifts, plays and reveals its caption — that is enough emphasis. */
.wcard { transition: opacity 320ms var(--ease); }

/* ============================================================
   S3 · REEL — horizontal work carousel
   ============================================================ */
.sc-reel { height: var(--stage-long); background: var(--black); }
.reel-sticky {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.reel-track {
  display: flex;
  height: 100%;
  will-change: transform;
}
.panel {
  position: relative;
  flex: 0 0 88vw;
  height: 82vh;
  margin: 9vh 2vw;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
}
.panel > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(5,5,7,0) 45%, rgba(5,5,7,0.6) 100%);
  pointer-events: none;
}
.panel-meta {
  position: absolute; top: 1.6rem; left: 1.8rem; z-index: 2;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
}
.panel-name {
  position: absolute; bottom: 1.2rem; left: 1.8rem; z-index: 2;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 6rem);
  letter-spacing: -0.03em;
  color: var(--white);
}
.panel-actions {
  position: absolute; right: 1.6rem; bottom: 1.6rem; z-index: 3;
  display: flex; align-items: center; gap: 0.6rem;
}
.panel-open {
  padding: 0.7rem 1.3rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0a0a0d;
  font-size: 0.88rem; font-weight: 500;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}
.panel-open:hover { background: var(--white); transform: translateY(-2px); }
.panel-sound {
  display: grid; place-items: center;
  width: 2.8rem; height: 2.8rem;
  border-radius: 999px;
  background: rgba(10, 10, 13, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease);
}
.panel-sound:hover { background: rgba(124, 58, 237, 0.65); border-color: rgba(255,255,255,0.5); }
.panel-sound svg { width: 1.2rem; height: 1.2rem; }
.panel-sound .snd-on { display: none; }
.panel-sound .snd-off { display: block; }
.panel-sound[aria-pressed="true"] .snd-on { display: block; }
.panel-sound[aria-pressed="true"] .snd-off { display: none; }
.panel-brand { background: linear-gradient(160deg, #17092e, #4c1d95); }
.panel-brand .panel-name { font-size: clamp(4rem, 10vw, 9rem); left: 50%; bottom: 50%; transform: translate(-50%, 50%); }

/* ============================================================
   S4 · CONTACT — violet return
   ============================================================ */
.sc-contact {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(200deg, #17092e 0%, #4c1d95 55%, #6d28d9 100%);
}
.contact-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.sc-contact::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 42%, rgba(11, 4, 24, 0.55) 0%, rgba(11, 4, 24, 0.25) 55%, transparent 80%),
    radial-gradient(90% 70% at 50% 30%, transparent 30%, rgba(11, 4, 24, 0.6) 100%);
}
.contact-inner { position: relative; z-index: var(--z-content); padding: 10vh 5vw; }
.sc-contact h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 9vw, 8.5rem);
  line-height: 0.97;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 50px rgba(5, 5, 7, 0.6);
}
.sc-contact em { font-style: normal; background: linear-gradient(100deg, #fff 30%, var(--glow) 70%, var(--lavender) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
  margin-top: 3rem;
}
.pill-white {
  padding: 0.95rem 1.9rem;
  background: var(--white); color: #0a0a0d;
  font-weight: 500; font-size: 0.95rem;
  border-radius: 999px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.pill-white:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(5,5,7,0.35); }
.pill-ghost {
  padding: 0.95rem 1.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-weight: 500; font-size: 0.95rem;
  border-radius: 999px;
  transition: border-color 180ms var(--ease), background-color 180ms var(--ease);
}
.pill-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.contact-foot { margin-top: 3.5rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

/* ============================================================
   PROJECT PAGE (project.html)
   ============================================================ */
.pp {
  min-height: 100vh;
  background: var(--black);
  padding: 7.5rem 5vw 4rem;
  max-width: 74rem;
  margin-inline: auto;
}
.pp-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--grey);
  margin-bottom: 2rem;
  transition: color 180ms var(--ease);
}
.pp-back:hover { color: var(--white); }
.pp-meta {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--lavender);
}
.pp-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0.5rem 0 2.2rem;
}
.pp-player {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(5, 5, 7, 0.6);
}
.pp-player video { width: 100%; max-height: 78vh; object-fit: contain; background: var(--black); }
.pp-player.pp-tall video { max-height: 82vh; }
.pp-story {
  margin: 3rem 0 3.5rem;
  max-width: 46rem;
}
.pp-story h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.pp-story p { color: var(--grey); font-size: 1.02rem; line-height: 1.75; white-space: pre-line; }
.pp-frames {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pp-frames img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  background: var(--ink);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.pp-frames img:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(124, 58, 237, 0.35); }
.pp-next {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pp-next a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 180ms var(--ease);
}
.pp-next a:hover { color: var(--lavender); }
.pp-next .pp-next-label { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--grey); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links a { padding: 0.55rem 0.8rem; font-size: 0.85rem; }
  .panel { flex-basis: 92vw; height: 70vh; margin: 15vh 1.5vw; }
  .wcard { width: clamp(110px, 24vw, 180px); }
  .wcard-lg { width: clamp(150px, 32vw, 240px); }
  .wcard-sm { width: clamp(80px, 17vw, 130px); }
  .pp-frames { grid-template-columns: 1fr 1fr; }
}

/* flat mode: reduced motion or weak devices */
/* ============================================================
   MOBILE GALLERY — one uniform portrait grid.
   Every film is shown portrait here regardless of its native shape; mixing
   orientations in a small grid looked accidental. Landscape work gets its
   proper treatment in the film reel below, which is 16:9.
   ============================================================ */
body.flat .sc-wall { height: auto; }
body.flat .wall-sticky { position: relative; height: auto; padding: 3rem 1.25rem 3.5rem; }
body.flat .wall-marquee,
body.flat .wall-hint { display: none; }
body.flat .wall-label {
  position: static;
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
}
body.flat .wall {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 0.85rem;
  perspective: none;
}
body.flat .wcard {
  position: static;
  width: auto !important;
  translate: none;
  transform: none !important;
  opacity: 1 !important;
  touch-action: manipulation;   /* removes the 300ms tap delay */
}
/* uniform portrait, no exceptions — this is the "impressive" part */
body.flat .wcard-media,
body.flat .wcard-xl .wcard-media,
body.flat .wcard-lg .wcard-media,
body.flat .wcard-xs .wcard-media { aspect-ratio: 3 / 4 !important; }

/* captions can't hide behind hover on a touch screen */
body.flat .wcard-cap { opacity: 1; transform: none; padding-top: 0.55rem; }
body.flat .wcard-title { font-size: 0.85rem; }
body.flat .wcard-meta { font-size: 0.68rem; }
body.flat .wall.has-hover .wcard:not(.is-hot) { opacity: 1; }
/* posters only on phones — no inline playback means nothing to flicker */
body.flat .wcard-media video { display: none; }
body.flat .wcard:active .wcard-media { transform: scale(0.975); }
body.flat .wcard-media { transition: transform 180ms var(--ease); }

body.flat .sc-reel { height: auto; }
body.flat .reel-sticky { position: relative; height: auto; overflow: visible; }
body.flat .reel-track { flex-direction: column; gap: 4vh; height: auto; }
/* films stay landscape on phones — a 60vh box on a narrow screen was
   forcing 16:9 footage into a portrait crop */
body.flat .panel {
  flex-basis: auto;
  width: 92vw;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}
body.flat .panel-name { font-size: clamp(1.8rem, 8vw, 2.8rem); }
body.flat .panel-meta { font-size: 0.72rem; }
body.flat .panel-actions { right: 1rem; bottom: 1rem; }
body.flat .hero-cue { display: none; }

/* ============================================================
   PHONES — the hero becomes a landscape band with the headline
   beneath it, instead of a full-height crop of a 16:9 frame
   ============================================================ */
@media (max-width: 820px) {
  .sc-hero {
    min-height: auto;
    display: block;
    padding: 5.25rem 0 2.5rem;
    overflow: visible;
  }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .hero-media video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;               /* source is 16:9, so this crops nothing */
    transform: none !important;
  }
  .hero-glow { display: none; }
  .hero-wash {
    background: linear-gradient(180deg, rgba(23,9,46,0.25) 0%, rgba(5,5,7,0.10) 55%, rgba(5,5,7,0.55) 100%);
  }

  .hero-title {
    position: static;
    padding: 1.6rem 1.25rem 0;
    text-align: left;
    font-size: clamp(2.6rem, 12.5vw, 4rem);
    filter: none;                    /* no video behind it now */
  }
  .hero-tag {
    position: static;
    padding: 0.9rem 1.25rem 0;
    text-shadow: none;
    color: var(--grey);
  }
  .watch-full {
    position: static;
    margin: 1.4rem 1.25rem 0;
  }

  /* the gap between hero and Selected Work came from this padding */
  body.flat .wall-sticky { padding: 3rem 1.25rem 3rem; }
  body.flat .sc-reel { padding-bottom: 1rem; }
  body.flat .reel-track { gap: 1.25rem; }

  .sc-contact { min-height: auto; }
  .contact-inner { padding: 5rem 1.25rem; }
  .contact-foot { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cue { display: none; }
  .hero-title .word { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}
