/* danitaro.ai - 2026, draft 2
   Concept: a stage. The house lights are on at the start, they go down when the
   showreel opens, every project re-lights the room in its own colours, and the
   lights come back up for the conversation at the end.
   Type: Archivo (variable width). Condensed for display, normal width for reading.
   Shape: the pill. Clips in the headline, buttons, the logo dot. */

@import url("vendor/lenis.css");

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* live theme, tweened by site.js as chapters enter */
  --bg: #D9DAD4;
  --fg: #0A0A0A;
  --accent: #2533D6;

  --muted: color-mix(in srgb, var(--fg) 62%, var(--bg));
  --faint: color-mix(in srgb, var(--fg) 16%, transparent);
  --raise: color-mix(in srgb, var(--fg) 7%, var(--bg));

  --pad: clamp(18px, 4vw, 64px);
  --cond: 64%;
  --disp-w: 650;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --f-14: .875rem;
  --f-17: 1.0625rem;
  --f-21: 1.3125rem;
  --f-28: 1.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  font-size: var(--f-17);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: var(--pad); top: -80px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 14px; }

/* display family */
.hero-title, .work-title, .ch-title, .ch-ghost, .metric b, .stat b, .reel-big,
.marquee-row li, .process-head h2, .card-n, .card h3, .vis-story, .about-lead, .about-hi,
.contact-q, .contact-mail, .player-title, .cards-title {
  font-stretch: var(--cond);
  font-weight: var(--disp-w);
  letter-spacing: -.018em;
}

/* split-text masks (filled by site.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid currentColor; border-radius: 999px;
  background: transparent; color: var(--fg);
  font-size: var(--f-17); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .35s var(--ease), border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid::before { background: var(--accent); }
.btn-solid:hover { color: #fff; border-color: var(--accent); }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-light::before { background: var(--accent); }
.btn-light:hover { color: #fff; border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--f-14); }
[data-magnetic] { will-change: transform; }

/* ---------- intro ---------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: #0A0A0A; color: #EEE9E1;
}
.intro-inner { display: grid; justify-items: center; gap: 18px; }
.intro-logo { width: min(220px, 40vw); height: auto; color: #EEE9E1; --accent: #8E9BFF; }
.intro-tc { margin: 0; font-size: var(--f-14); font-variant-numeric: tabular-nums; letter-spacing: .08em; color: #8b877f; }
.intro.is-done { pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  color: var(--fg);
  transition: transform .5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; width: max-content; text-decoration: none; color: var(--fg); }
.brand-word { width: 92px; height: 30px; }
.brand-by { width: 54px; height: 10px; margin-right: 2px; }
.brand-word, .brand-by, .intro-logo { fill: currentColor; } /* logo follows the text colour: dark on light sections, light on dark */
.dot { fill: var(--accent); transition: fill .6s; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { position: relative; text-decoration: none; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.menu-btn {
  display: none; min-height: 40px; padding: 0 18px;
  border: 1.5px solid currentColor; border-radius: 999px; background: none; color: var(--fg);
  font-size: var(--f-14); cursor: pointer;
}
.menu {
  position: fixed; inset: 0; z-index: 85;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
  padding: 100px var(--pad) 40px;
  background: var(--bg); color: var(--fg);
}
.menu[hidden] { display: none; }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  text-decoration: none; font-stretch: var(--cond); font-weight: var(--disp-w);
  font-size: clamp(2.8rem, 13vw, 5rem); line-height: 1.02; letter-spacing: -.015em;
  border-bottom: 1px solid var(--faint); padding: 6px 0;
}
.menu .btn { align-self: flex-start; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 9px; font-size: var(--f-14); color: var(--muted); }
.status i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.status i::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) clamp(28px, 4vw, 56px);
}
.hero-title {
  margin: 0;
  font-size: clamp(3.1rem, 13vw, 15.5rem);
  line-height: .86;
  letter-spacing: -.022em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line-in { display: inline-block; white-space: nowrap; will-change: transform; }
.pill-slot { display: inline-block; vertical-align: baseline; }
.pill {
  position: relative; display: inline-block; vertical-align: baseline;
  height: .71em; width: 0; margin: 0; padding: 0; border: 0;
  border-radius: 999px; overflow: hidden; background: var(--raise);
  cursor: pointer;
  transition: width 1s var(--ease), margin 1s var(--ease);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.pill video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pill:hover video { transform: scale(1.12); }
.hero.is-open .pill { width: 1.62em; margin: 0 .04em; }
.hero.is-open .pill-slot[data-hero="1"] .pill { transition-delay: .14s; }
.hero.is-open .pill-slot[data-hero="2"] .pill { transition-delay: .28s; }

.hero-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
  margin-top: clamp(32px, 4.5vw, 64px);
}
.hero-intro { margin: 0; max-width: 37ch; font-size: var(--f-21); line-height: 1.42; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-hint {
  position: absolute; right: var(--pad); top: 50%; margin: 0;
  display: flex; align-items: center; gap: 10px;
  writing-mode: vertical-rl; font-size: 12px; letter-spacing: .14em; color: var(--muted);
}
.scroll-hint span { width: 1px; height: 56px; background: var(--faint); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: drip 2s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- reel ---------- */
.reel { position: relative; height: 260vh; }
.reel-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reel-frame {
  position: absolute; inset: 0;
  clip-path: inset(41% 30% 41% 30% round 999px);
  background: #000;
  will-change: clip-path;
}
.reel-video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75)); opacity: 0; }
.reel-over {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px 28px;
  color: #fff; opacity: 0;
}
.reel-big { margin: 0; font-size: clamp(5rem, 16vw, 15rem); line-height: .8; }
.reel-cap { margin: 0 0 .6em; max-width: 26ch; font-size: var(--f-21); line-height: 1.3; }

/* ---------- marquee ---------- */
.marquee { padding: clamp(40px, 6vw, 96px) 0 clamp(24px, 3vw, 40px); overflow: hidden; }
.marquee-lab { margin: 0 var(--pad) 18px; font-size: var(--f-14); color: var(--muted); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-row { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); margin: 0; padding: 0 clamp(10px, 1.5vw, 24px); list-style: none; }
.marquee-row li { font-size: clamp(3.2rem, 9vw, 9rem); line-height: 1; white-space: nowrap; }
.marquee-row .dotpill { width: 1.5em; height: .62em; border-radius: 999px; overflow: hidden; background: var(--raise); font-size: clamp(3.2rem, 9vw, 9rem); }
.dotpill video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- chapters (shared) ---------- */
.chapter { position: relative; padding: clamp(80px, 10vw, 160px) var(--pad); overflow-x: clip; }
.ch-ghost {
  position: absolute; left: 0; top: clamp(40px, 6vw, 90px); z-index: 0;
  display: flex; gap: .4em; white-space: nowrap;
  font-size: clamp(8rem, 26vw, 30rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--faint);
  pointer-events: none; user-select: none; will-change: transform;
}
.ch-head, .ch-body, .ch-films, .cards { position: relative; z-index: 1; }
.ch-title { margin: 0; font-size: clamp(3.6rem, 11vw, 12.5rem); line-height: .86; max-width: 11ch; }
.ch-kind { margin: 14px 0 0; font-size: var(--f-21); }
.ch-meta { margin: 4px 0 0; font-size: var(--f-14); color: var(--muted); }
.metric { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 0; }
.metric b { font-size: clamp(3rem, 5vw, 5rem); line-height: .9; color: var(--accent); }
.metric span { font-size: var(--f-14); line-height: 1.35; color: var(--muted); max-width: 18ch; }
.ch-text { margin: 22px 0 0; max-width: 40ch; }
.ch-link { display: inline-block; margin-top: 18px; font-size: var(--f-14); text-decoration: none; border-bottom: 1px solid var(--faint); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.ch-link:hover { color: var(--accent); border-color: var(--accent); }

/* tiles */
.tile {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
  transition: opacity .5s var(--ease);
}
.frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 9 / 16; border-radius: 14px;
  background: var(--raise);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .55);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}
.tile.is-wide .frame { aspect-ratio: 16 / 9; }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; }
.tile:hover .frame video, .tile:hover .frame img { transform: scale(1.06); }
.frame .fallback { position: absolute; inset: 0; display: grid; place-items: start; padding: 18px; font-stretch: var(--cond); font-weight: var(--disp-w); font-size: var(--f-28); line-height: 1; }
.cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: var(--f-14); }
.cap .note { color: var(--accent); white-space: nowrap; }
.tag {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
/* hovering one clip dims its neighbours */
.rail-track:has(.tile:hover) .tile:not(:hover),
.ch-films:has(.tile:hover) .tile:not(:hover) { opacity: .42; }

/* rail */
.ch-rail { padding-left: 0; padding-right: 0; }
.rail-pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 5vh; overflow: hidden; }
.rail-head { padding: 0 var(--pad); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.rail-head .ch-title { max-width: none; white-space: nowrap; font-size: clamp(3.4rem, 8.4vw, 9.5rem); }
.rail-head .ch-title.is-long { font-size: clamp(3rem, 6.1vw, 7.6rem); }
.rail-pin.is-static { height: auto; padding-bottom: 0; }
.rail-pin.is-static .rail-progress { display: none; }
.rail-head .rail-info { max-width: 380px; padding-bottom: 10px; }
.rail-head .ch-text { margin-top: 10px; }
.rail-track { display: flex; gap: clamp(14px, 1.6vw, 24px); padding: clamp(28px, 4vh, 48px) var(--pad) 0; width: max-content; will-change: transform; }
.rail-track .tile { width: auto; }
.rail-track .frame { height: min(52vh, 600px); width: auto; }
.rail-cover .frame { aspect-ratio: 9 / 16; }
.rail-cover .cover-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  font-stretch: var(--cond); font-weight: var(--disp-w); font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: .95; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.rail-progress { margin: 26px var(--pad) 0; height: 2px; background: var(--faint); position: relative; overflow: hidden; }
.rail-progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* world (Lumori) */
.ch-world { min-height: 100vh; overflow: clip; }
.world-bg { position: sticky; top: 0; height: 100vh; height: 100svh; margin: calc(-1 * clamp(80px, 10vw, 160px)) calc(-1 * var(--pad)) 0; margin-bottom: -100vh; z-index: 0; overflow: hidden; }
.world-bg video { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; opacity: .42; will-change: transform; }
.world-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 40%, transparent) 30%, color-mix(in srgb, var(--bg) 40%, transparent) 70%, var(--bg) 100%); }
.world-top { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.world-cast { position: relative; height: clamp(420px, 46vw, 680px); }
.cast {
  position: absolute; width: clamp(130px, 13vw, 210px); margin: 0;
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
  will-change: transform;
}
.cast video, .cast img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cast figcaption { position: absolute; left: 10px; bottom: 8px; color: #222; font-size: 12px; font-weight: 600; }
.cast:nth-child(1) { left: 6%; top: 4%; rotate: -5deg; }
.cast:nth-child(2) { left: 46%; top: 0; rotate: 4deg; width: clamp(150px, 15vw, 240px); }
.cast:nth-child(3) { left: 18%; top: 46%; rotate: 3deg; }
.cast:nth-child(4) { left: 58%; top: 44%; rotate: -4deg; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 96px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--faint); }
.stat b { display: block; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: .9; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: var(--f-14); color: var(--muted); }
.ch-films { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 96px); }
.ch-films .cap { flex-direction: column; gap: 2px; }

/* cards (brand films) */
.cards-wrap { margin-top: clamp(40px, 5vw, 80px); }
.cards { display: flex; gap: clamp(12px, 1.4vw, 20px); height: clamp(320px, 38vw, 560px); }
.cards .tile { flex: 1 1 0; min-width: 0; height: 100%; transition: flex-grow .8s var(--ease), opacity .5s; }
.cards .tile:hover, .cards .tile:focus-visible { flex-grow: 2.4; }
.cards .frame { height: 100%; aspect-ratio: auto; }
.cards .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.7)); }
.cards .fallback { display: none; }
.cards-title { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.6rem); line-height: .95; }
.cards-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 96px); align-items: end; }

/* ---------- process: stacking cards ---------- */
.process { padding: clamp(100px, 12vw, 200px) var(--pad) clamp(60px, 8vw, 120px); }
.process-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.process-head h2 { margin: 0; font-size: clamp(3.2rem, 8vw, 8.5rem); line-height: .88; max-width: 10ch; }
.process-head p { margin: 0; max-width: 32ch; color: var(--muted); }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 4vh; }
.card {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px);
  min-height: min(62vh, 560px);
  padding: clamp(24px, 3.4vw, 52px);
  border-radius: 22px;
  background: color-mix(in srgb, var(--fg) calc(6% + var(--i) * 1.6%), var(--bg));
  border: 1px solid var(--faint);
  transform-origin: 50% 0;
  will-change: transform;
}
@media (min-width: 901px) { .card { position: sticky; top: calc(14vh + var(--i) * 22px); } }
.card-text { display: flex; flex-direction: column; }
.card-n { font-size: clamp(3rem, 6vw, 6rem); line-height: .8; color: var(--accent); }
.card h3 { margin: auto 0 10px; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: .9; }
.card p { margin: 0; color: var(--muted); max-width: 34ch; }
.card-vis { position: relative; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--fg) 5%, var(--bg)); min-height: 260px; }
.vis-story { display: flex; flex-direction: column; justify-content: center; padding: clamp(20px, 3vw, 44px); font-size: clamp(2.2rem, 4.4vw, 4.6rem); line-height: .95; }
.vis-story span:nth-child(2) { padding-left: .8em; }
.vis-story span:nth-child(3) { padding-left: 1.6em; color: var(--muted); }
.vis-story span:nth-child(4) { padding-left: 2.4em; color: var(--accent); }
.vis-look { display: flex; align-items: center; justify-content: center; }
.vis-look img { position: absolute; width: 34%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.vis-look img:nth-child(1) { left: 14%; rotate: -7deg; top: 12%; }
.vis-look img:nth-child(2) { left: 34%; rotate: 2deg; top: 6%; z-index: 1; aspect-ratio: 4 / 5; width: 36%; background: #fff; }
.vis-look img:nth-child(3) { left: 54%; rotate: 8deg; top: 14%; }
.vis-motion video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vis-sound { display: grid; place-items: center; }
.wave { display: flex; align-items: center; gap: 5px; height: 60%; width: 80%; }
.wave i { flex: 1; border-radius: 4px; background: var(--accent); height: 20%; animation: bar 1.2s ease-in-out infinite; animation-delay: calc(var(--d) * -1s); }
.wave i:nth-child(3n) { background: var(--fg); opacity: .8; }
@keyframes bar { 0%, 100% { height: 12%; } 50% { height: var(--h, 70%); } }
.vis-edit { display: flex; align-items: center; }
.strip-film { display: flex; gap: 6px; padding: 0 20px; animation: slide 14s linear infinite; }
.strip-film img { height: 70%; max-height: 280px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; flex: none; width: auto; height: 240px; }
.playhead { position: absolute; top: 8%; bottom: 8%; left: 50%; width: 2px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
@keyframes slide { to { transform: translateX(-40%); } }

/* ---------- about ---------- */
.about { padding: clamp(80px, 10vw, 160px) var(--pad) clamp(100px, 12vw, 200px); }
.about-lead { margin: 0; font-size: clamp(2.4rem, 6.2vw, 6.8rem); line-height: .96; max-width: 18ch; }

.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 96px); margin-top: clamp(56px, 8vw, 120px); align-items: start; }
.about-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.about-photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.about-hi { margin: 0 0 20px; font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: .9; }
.about-text > p:not(.about-hi) { max-width: 52ch; margin: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 32px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--faint); }
.facts dt { font-size: var(--f-14); color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; max-width: 48ch; }

/* ---------- contact ---------- */
.contact { padding: clamp(100px, 12vw, 200px) var(--pad) clamp(60px, 8vw, 120px); }
.contact-q { margin: 0; font-size: clamp(3.2rem, 10.5vw, 12rem); line-height: .88; letter-spacing: -.025em; max-width: 12ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(20px, 3vw, 56px); margin-top: clamp(48px, 6vw, 88px); padding-top: 24px; border-top: 1px solid var(--faint); }
.contact-note { margin: 0; max-width: 30ch; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--f-14); color: var(--muted); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea {
  font: inherit; font-size: var(--f-17); color: var(--fg); background: transparent;
  border: 0; border-bottom: 1.5px solid var(--fg); border-radius: 0; padding: 10px 0; resize: vertical;
  transition: border-color .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin: 0; font-size: var(--f-14); }
.form-status.is-error { color: #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer ---------- */
.foot { padding: 0 var(--pad); overflow: hidden; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 22px 0; border-top: 1px solid var(--faint); font-size: var(--f-14); color: var(--muted); }
.foot-row p { margin: 0; }
.foot-links { display: flex; gap: 24px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--fg); }
.foot .old { font-size: 11px; opacity: .55; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: #070707; color: #fff; }
.player[hidden] { display: none; }
.player-stage { position: relative; display: grid; place-items: center; padding: 28px; min-height: 0; }
.player-stage video, .player-stage iframe { display: block; border: 0; border-radius: 10px; background: #111; max-width: 100%; }
.player-stage .v-tall { height: min(calc(100vh - 56px), calc((100vw - 380px - 56px) * 16 / 9)); aspect-ratio: 9 / 16; }
.player-stage .v-wide { width: min(100%, calc((100vh - 56px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; }
.player-side { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; overflow-y: auto; border-left: 1px solid rgba(255,255,255,.12); }
.player-top { display: flex; gap: 8px; align-self: stretch; justify-content: flex-end; }
.pbtn { min-height: 40px; padding: 0 16px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; background: none; color: #fff; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pbtn:hover { background: #fff; color: #000; border-color: #fff; }
.pbtn[hidden] { display: none; }
.player-kind { margin: 48px 0 0; font-size: var(--f-14); color: rgba(255,255,255,.6); }
.player-title { margin: 6px 0 0; font-size: clamp(2.4rem, 3.6vw, 3.8rem); line-height: .88; }
.player-clip { margin: 16px 0 0; font-size: var(--f-21); line-height: 1.3; }
.player-text { margin: 14px 0 0; color: rgba(255,255,255,.75); max-width: 36ch; }
.player-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.player-thumbs button { position: relative; width: 58px; aspect-ratio: 9 / 16; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #222; cursor: pointer; opacity: .45; transition: opacity .2s; }
.player-thumbs button.is-wide { width: 104px; aspect-ratio: 16 / 9; }
.player-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.player-thumbs button:hover, .player-thumbs button[aria-current="true"] { opacity: 1; }
.player-thumbs button[aria-current="true"] { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor {
    position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
    display: grid; place-items: center;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--fg); color: var(--bg);
    transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s, opacity .3s;
    will-change: transform;
  }
  .has-cursor .cursor span { font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .25s; white-space: nowrap; }
  .has-cursor .cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); color: #fff; }
  .has-cursor .cursor.is-big span { opacity: 1; }
  .has-cursor .cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; border: 1.5px solid var(--fg); }
  .has-cursor .cursor.is-off { opacity: 0; }
  .has-cursor .tile, .has-cursor .pill, .has-cursor .cards .tile { cursor: none; }
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 130; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .22; mix-blend-mode: overlay;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.noscript { padding: 0 var(--pad); color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .status { display: none; }
  .nav-links { gap: 22px; }
}
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .menu-btn { display: inline-flex; align-items: center; }
}
@media (max-width: 1000px) {
  .player { display: block; overflow-y: auto; }
  .player-stage { display: flex; justify-content: center; padding: 70px 14px 14px; }
  .player-stage .v-tall { height: min(72vh, calc((100vw - 28px) * 16 / 9)); }
  .player-stage .v-wide { width: 100%; }
  .player-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); overflow: visible; }
  .player-top { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 2; }
  .pbtn { background: rgba(0,0,0,.55); backdrop-filter: blur(8px); }
  .player-kind { margin-top: 0; }
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card-vis { min-height: 220px; aspect-ratio: 16 / 9; }
  .world-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
  .ch-info { position: static; }
  /* rail becomes a swipe strip */
  .rail-pin { height: auto; display: block; overflow: visible; padding: 0; }
  .rail-head { display: block; }
  .rail-head .ch-title, .rail-head .ch-title.is-long { white-space: normal; font-size: clamp(3rem, 13vw, 5.5rem); }
  .rail-head .rail-info { max-width: none; padding-top: 18px; }
  .rail-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; }
  .rail-track .tile { scroll-snap-align: start; }
  .rail-track .frame { height: min(62vh, 520px); }
  .rail-progress { display: none; }
  .ch-films { grid-template-columns: 1fr; }
  .cards { flex-direction: column; height: auto; }
  .cards .tile { flex: none; height: auto; }
  .cards .frame { aspect-ratio: 16 / 9; height: auto; }
  .cards-top { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .reel-over { grid-template-columns: 1fr; }
  .reel-cap { margin: 0; }
  .world-cast { height: 120vw; max-height: 560px; }
  .cast { width: 38vw; }
  .cast:nth-child(2) { width: 40vw; left: 52%; }
  .cast:nth-child(4) { left: 54%; }
}

@media (max-width: 520px) {
  .nav { padding-top: 12px; padding-bottom: 12px; }
  .hero-title { font-size: 15vw; }
  .hero { min-height: 92svh; justify-content: center; padding-top: 96px; }
  .hero.is-open .pill { width: 1.25em; }
  .brand-word { width: 78px; height: 25px; }
  .brand-by { width: 46px; height: 9px; }
  .hero { padding-top: 110px; }
  .hero-intro { font-size: 1.1875rem; }
  .form { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .stats { gap: 20px 16px; }
}

/* without the scroll engine the rail becomes a normal sideways scroller */
.no-motion .rail-pin { height: auto; overflow: visible; padding-bottom: 0; }
.no-motion .rail-track { width: auto; overflow-x: auto; scroll-snap-type: x proximity; }
.no-motion .rail-track .tile { scroll-snap-align: start; }
.no-motion .rail-progress { display: none; }

/* ---------- reduced motion: everything still works, nothing flies ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .strip-film, .wave i, .status i::after, .scroll-hint span::after { animation: none; }
  .pill, .pill video, .btn::before, .frame video, .frame img, .cards .tile { transition: none; }
  .reel { height: auto; }
  .reel-pin { position: relative; height: 80vh; }
  .reel-frame { clip-path: none; }
  .reel-video { transform: none; }
  .reel-shade, .reel-over { opacity: 1; }
  .card { position: relative; top: auto; }
}
