/* ============ KRIS RATTUS — THE TIMELINE ============
   Paper + ink editorial, one REC-red accent, dark "screening room" sections
   for anything that plays. Variable-width Archivo is the motion signature:
   type compresses, stretches and snaps with the scroll.
   ==================================================== */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo-italic.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-normal.woff2") format("woff2");
  font-weight: 400 700; font-display: swap; }

:root {
  --paper: #ece6da;
  --paper-2: #e2dacb;
  --ink: #15130f;
  --ink-soft: #5a554c;
  --rule: #15130f;
  --rec: #ff3b1c;
  --screen: #0e0d0b;
  --screen-ink: #ebe5d9;
  --screen-soft: #9d978b;
  --screen-rule: #2c2924;
  --gut: clamp(18px, 4vw, 64px);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html:not(.lenis):not(.still) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.55; font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
/* paper tooth — very faint, never on top of media */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .top, .foot { position: relative; z-index: 1; }
h1, h2, h3, p, figure, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--rec); color: #fff; }
:focus-visible { outline: 2px solid var(--rec); outline-offset: 4px; }
kbd { font-family: var(--mono); font-size: .78em; border: 1px solid currentColor; border-bottom-width: 2px;
  border-radius: 4px; padding: 0 .38em; line-height: 1.3; display: inline-block; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--rec); color: #fff; padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- split type (chars built by site.js) ---------- */
.w { display: inline-flex; justify-content: center; white-space: nowrap; } /* width locked by site.js: letters stretch without reflowing */
.ch { display: inline-block; }

/* ---------- top bar (scrolls away; the dock is the real nav) ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; padding: 20px var(--gut); }
.mark { font-weight: 800; font-variation-settings: "wdth" 72, "wght" 800; font-size: 19px; letter-spacing: .01em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; justify-self: start; }
.mark i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.6s steps(1, end) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.top-role { font-family: var(--mono); font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-soft); text-align: center; }
.top-actions { justify-self: end; display: flex; align-items: baseline; gap: 22px; }
.top-cta { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.top-cta:hover { color: var(--rec); border-color: var(--rec); }
/* replays the intro reel (js/intro.js) */
.top-intro { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: baseline; gap: 7px; }
.top-intro b { color: var(--rec); font-size: 9px; transition: transform .3s var(--out); }
.top-intro:hover { color: var(--rec); }
.top-intro:hover b { transform: scale(1.35); }

/* =================== HERO =================== */
.hero { position: relative; height: 340vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.viewer { --t: 24%; --r: 30%; --b: 26%; --l: 30%; --rad: 6px;
  position: absolute; inset: 0; background: var(--screen);
  clip-path: inset(var(--t) var(--r) var(--b) var(--l) round var(--rad)); }
.viewer canvas, .viewer-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer.live .viewer-poster { visibility: hidden; }
.burn { position: absolute; top: var(--t); right: var(--r); bottom: var(--b); left: var(--l); padding: 14px 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: rgba(255,255,255,.86);
  text-shadow: 0 1px 2px rgba(0,0,0,.6); pointer-events: none; }
.burn > span { position: absolute; white-space: nowrap; }
.burn-rec { top: 14px; left: 16px; display: flex; align-items: center; gap: 7px; }
.burn-rec b { width: 8px; height: 8px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(1, end) infinite; }
.burn-file { top: 14px; left: 50%; transform: translateX(-50%); opacity: .75; }
.burn-tc { top: 14px; right: 16px; font-variant-numeric: tabular-nums; }
.burn-meta { bottom: max(14px, calc(84px - var(--b))); left: 16px; opacity: .7; }
.safe { bottom: max(10%, calc(84px - var(--b))); }
/* broadcast title-safe corners */
.safe { position: absolute; inset: 10%; pointer-events: none; opacity: .55;
  background:
    linear-gradient(#fff,#fff) top left / 14px 1px no-repeat, linear-gradient(#fff,#fff) top left / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) top right / 14px 1px no-repeat, linear-gradient(#fff,#fff) top right / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom left / 14px 1px no-repeat, linear-gradient(#fff,#fff) bottom left / 1px 14px no-repeat,
    linear-gradient(#fff,#fff) bottom right / 14px 1px no-repeat, linear-gradient(#fff,#fff) bottom right / 1px 14px no-repeat; }
.subtitle { position: absolute; left: 0; right: 0; bottom: calc(var(--b) + 11%); text-align: center; pointer-events: none;
  font-size: clamp(17px, 2vw, 26px); font-weight: 500; color: #fff; opacity: 0; transition: opacity .25s; }
.subtitle span { background: rgba(0,0,0,.72); padding: .12em .45em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.subtitle.on { opacity: 1; }

.hero-title { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: var(--paper); mix-blend-mode: difference;
  font-weight: 900; text-transform: uppercase; line-height: .8; font-size: clamp(76px, 16.5vw, 300px); letter-spacing: -.01em; }
.hl { position: absolute; white-space: nowrap; }
.hl-1 { top: 13vh; left: var(--gut); }
.hl-2 { bottom: 15vh; right: var(--gut); }
.hero-title .ch { font-variation-settings: "wdth" 100, "wght" 900; will-change: transform; }

.hero-foot { position: absolute; left: var(--gut); right: var(--gut); bottom: 92px; z-index: 4; display: flex;
  justify-content: space-between; align-items: flex-end; gap: 24px; pointer-events: none; }
.hero-intro { max-width: 390px; font-size: 15px; line-height: 1.5; pointer-events: auto; }
.hero-hint { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 10px; }
.hero-hint i { width: 46px; height: 1px; background: var(--ink); position: relative; overflow: hidden; }
.hero-hint i::after { content: ""; position: absolute; inset: 0; background: var(--rec); transform: translateX(-100%); animation: hint 1.8s var(--out) infinite; }
@keyframes hint { to { transform: translateX(100%); } }

/* =================== SHARED SECTION HEAD =================== */
section { position: relative; }
.dark { background: var(--screen); color: var(--screen-ink); }
.sec-head { padding: 0 var(--gut); display: grid; grid-template-columns: 1fr minmax(260px, 420px); column-gap: 6vw; row-gap: 28px; align-items: end; margin-bottom: 64px; }
.tc-label { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 14px; align-items: center; }
.tc-label .tc { color: var(--rec); font-variant-numeric: tabular-nums; }
.tc-label .tc::before { content: "IN "; opacity: .6; }
h2 { font-size: clamp(44px, 7.2vw, 124px); line-height: .9; font-weight: 800; letter-spacing: -.012em; }
h2 .ch { font-variation-settings: "wdth" 76, "wght" 800; }
.sec-lede { font-size: 17px; line-height: 1.55; color: var(--ink-soft); padding-bottom: .4em; }
.dark .sec-lede { color: var(--screen-soft); }
.sec-lede em { font-style: italic; color: var(--rec); }

/* entrance: letters arrive wide and light, then compress into place */
html:not(.still) [data-split]:not(.hero-title *) .ch {
  opacity: 0; transform: translateY(.18em); font-variation-settings: "wdth" 125, "wght" 200;
  transition: opacity .5s, transform 1s var(--out), font-variation-settings 1.1s var(--out);
  transition-delay: calc(var(--i) * 16ms); }
html:not(.still) [data-split].in .ch { opacity: 1; transform: none; font-variation-settings: "wdth" 76, "wght" 800; }
html:not(.still) .contact-title.in .ch { font-variation-settings: "wdth" 88, "wght" 900; }
html:not(.still) [data-split].measure .ch { transition: none !important; opacity: 1; transform: none; font-variation-settings: "wdth" 76, "wght" 800; }
html:not(.still) .contact-title.measure .ch { font-variation-settings: "wdth" 88, "wght" 900; }

/* =================== VAULT =================== */
.vault { padding: 130px 0 110px; }
.vault h2 { max-width: 14ch; }
.rail { display: flex; gap: 40px; overflow-x: auto; padding: 10px var(--gut) 40px; scroll-snap-type: x proximity;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-status { color: var(--screen-soft); }
.item { flex: 0 0 300px; scroll-snap-align: start; }
.item:nth-child(even) { margin-top: 56px; }
.phone { position: relative; width: 300px; height: 600px; border-radius: 42px; background: #050504;
  box-shadow: 0 0 0 1px #3a362f, 0 40px 80px -30px rgba(0,0,0,.8); overflow: hidden; }
.phone::after { content: ""; position: absolute; top: 14px; left: 50%; width: 84px; height: 22px; margin-left: -42px;
  border-radius: 14px; background: #050504; z-index: 3; pointer-events: none; }
.phone iframe { position: absolute; top: 8px; left: 8px; border: 0; background: #fff; }
.cover { position: absolute; inset: 8px; border-radius: 34px; overflow: hidden; z-index: 2; cursor: pointer; background: #1a1814; }
.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.75) brightness(.72);
  transform: scale(1.02); transition: filter .6s, transform 1.2s var(--out); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 55%, rgba(0,0,0,.8)); }
.cover-fmt { position: absolute; top: 46px; left: 16px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; background: var(--paper); color: var(--ink); padding: 4px 7px; border-radius: 3px; }
.cover-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%;
  background: var(--rec); color: #fff; display: grid; place-items: center; font-size: 20px; padding-left: 4px;
  box-shadow: 0 10px 40px rgba(255,59,28,.45); transition: transform .5s var(--out); }
.cover-cta { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; text-align: center; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.cover:hover img { filter: saturate(1) brightness(.9); transform: scale(1.06); }
.cover:hover .cover-play { transform: scale(1.12); }
.cover.off { visibility: hidden; }
.phone-hint { position: absolute; left: 50%; bottom: 26px; z-index: 4; transform: translateX(-50%); pointer-events: none; opacity: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  background: var(--rec); color: #fff; padding: 7px 12px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.phone.running .phone-hint { animation: phint 5.5s var(--out) forwards; }
@keyframes phint { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  45% { transform: translate(-50%, -6px); } 100% { opacity: 0; transform: translate(-50%, 0); } }
.meta { padding: 24px 4px 0; }
.meta-fmt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--rec); }
.meta h3 { font-size: 22px; line-height: 1.15; font-weight: 700; font-variation-settings: "wdth" 88, "wght" 700; margin: 8px 0 8px; }
.meta p { font-size: 14px; line-height: 1.5; color: var(--screen-soft); }
.meta .meta-tech { font-family: var(--mono); font-size: 11px; margin-top: 12px; }
.rail-foot { padding: 20px var(--gut) 0; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; }
.rail-meter { height: 2px; background: var(--screen-rule); position: relative; }
.rail-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--rec); }
.rail-count { font-family: var(--mono); font-size: 12px; color: var(--screen-soft); }
.rail-count b { color: var(--screen-ink); font-weight: 600; }
.rail-btns { display: flex; gap: 8px; }
.rail-btns button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #4a453d; font-size: 18px; transition: background .2s, color .2s, border-color .2s; }
.rail-btns button:hover { background: var(--screen-ink); color: var(--screen); border-color: var(--screen-ink); }

/* =================== FILMS =================== */
.films { padding: 150px 0 140px; }
.reels { padding: 0 var(--gut); display: grid; grid-template-columns: 7fr 5fr; gap: 44px 32px; }
.reel { display: block; }
.reel-a { grid-row: span 2; }
.reel-media { position: relative; display: block; overflow: hidden; background: var(--screen); aspect-ratio: 16 / 9; cursor: ew-resize; }
.reel-a .reel-media { aspect-ratio: 4 / 3.4; }
.reel-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.2s var(--out), filter .6s; }
.reel:hover .reel-media img { transform: scale(1.035); filter: saturate(1.05); }
.reel-head { position: absolute; top: 0; bottom: 0; left: calc(var(--x, 0) * 100%); width: 2px; margin-left: -1px; background: var(--rec);
  opacity: 0; transition: opacity .2s; }
.reel-head::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top: 8px solid var(--rec); }
.reel:hover .reel-head { opacity: 1; }
.reel-tc { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; background: var(--ink); color: var(--paper);
  padding: 3px 7px; font-variant-numeric: tabular-nums; }
.reel-play { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border-radius: 50%; background: var(--paper); color: var(--ink);
  display: grid; place-items: center; font-size: 14px; padding-left: 3px; transition: background .3s, color .3s, transform .5s var(--out); }
.reel:hover .reel-play { background: var(--rec); color: #fff; transform: scale(1.08); }
.reel-bar { display: block; height: 3px; background: var(--paper-2); position: relative; }
.reel-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--x, 0) * 100%); background: var(--rec); }
.reel-info { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding-top: 14px; align-items: baseline; }
.reel-info b { font-size: clamp(22px, 2.3vw, 34px); line-height: 1.05; font-weight: 800; font-variation-settings: "wdth" 80, "wght" 800;
  transition: font-variation-settings .8s var(--out); }
.reel:hover .reel-info b { font-variation-settings: "wdth" 112, "wght" 800; }
.reel-info span { grid-row: 2; font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
.reel-info em { grid-row: 1 / span 2; font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }

/* =================== CRAFT (services as timing functions) =================== */
.craft { padding: 140px 0 150px; background: var(--paper-2); }
.curves { list-style: none; margin: 0 var(--gut); border-bottom: 1px solid var(--rule); }
.curve { display: grid; grid-template-columns: 70px 1fr 300px; gap: 32px; align-items: center; padding: 38px 0; border-top: 1px solid var(--rule); }
.c-num { font-family: var(--mono); font-size: 12px; color: var(--rec); align-self: start; padding-top: 14px; }
.c-text h3 { font-size: clamp(34px, 4.6vw, 78px); line-height: .95; font-weight: 800; letter-spacing: -.01em;
  font-variation-settings: "wdth" 70, "wght" 800; transition: font-variation-settings 1.1s var(--ease); transform-origin: left; }
.curve.go h3 { font-variation-settings: "wdth" 118, "wght" 800; }
.c-text p { max-width: 520px; margin-top: 16px; color: var(--ink-soft); font-size: 16px; }
.c-text .c-tools { font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; margin-top: 12px; color: var(--ink); }
.c-graph { position: relative; }
.c-graph svg { width: 100%; height: auto; display: block; overflow: visible; background: var(--screen); border-radius: 6px; }
.c-graph figcaption { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); margin-top: 10px; }
.c-track { display: block; position: relative; height: 12px; margin-top: 12px; }
.c-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--ink); opacity: .35; }
.c-track i { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--rec); }
.g-grid { stroke: #2c2924; stroke-width: 1; }
.g-base { stroke: #4a453d; stroke-width: 1; stroke-dasharray: 3 4; }
.g-curve { fill: none; stroke: var(--screen-ink); stroke-width: 2.2; stroke-linecap: round; }
.g-handle { stroke: var(--rec); stroke-width: 1; }
.g-knob { fill: var(--screen); stroke: var(--rec); stroke-width: 1.4; }
.g-key { fill: var(--screen-ink); }
.g-head { stroke: var(--rec); stroke-width: 1; opacity: .8; }
.g-dot { fill: var(--rec); }

/* =================== PLAY =================== */
.play { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; text-align: center;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse at 50% 60%, #2a1510 0%, #120d0b 45%, var(--screen) 75%); }
#playCanvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.no-gl #playCanvas, .still #playCanvas { display: none; }
.play-copy { position: relative; z-index: 2; pointer-events: none; padding: 0 var(--gut); }
.play-copy::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1100px, 130vw); height: 150%; transform: translate(-50%, -50%);
  z-index: -1; background: radial-gradient(ellipse at center, rgba(14,13,11,.6), rgba(14,13,11,.25) 45%, transparent 70%); }
.play-copy .tc-label { justify-content: center; margin-bottom: 26px; }
.play h2 { font-size: clamp(60px, 12vw, 210px); }
.play-copy > p:last-child { max-width: 440px; margin: 26px auto 0; color: var(--screen-ink); opacity: .85; }
.play-hint { position: absolute; bottom: 90px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .12em; color: var(--screen-soft); pointer-events: none; transition: opacity .6s; }
.play.touched .play-hint { opacity: 0; }

/* =================== ABOUT =================== */
.about { padding: 150px var(--gut); display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: start; }
.about-still img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 48% 50%; filter: saturate(.9); }
.about-still figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); max-width: 36ch; }
.about-still figcaption span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--rec); margin-right: 8px; }
.about-copy .tc-label { margin-bottom: 26px; }
.about-copy h2 { margin-bottom: 30px; }
.about-lede { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; margin-bottom: 20px; max-width: 24ch; }
.about-copy > p:not(.tc-label):not(.about-lede) { color: var(--ink-soft); font-size: 17px; max-width: 56ch; }
.keys { position: relative; height: 150px; margin: 54px 0 40px; }
.keys-line { position: absolute; left: 0; right: 0; top: 62px; height: 1px; background: var(--ink); }
.keys-line::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: var(--kp, 0%); background: var(--rec); transition: width 1.6s var(--out); }
.keys.in .keys-line::after { --kp: 100%; }
.key { position: absolute; left: var(--at); top: 0; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.key b { display: block; height: 46px; font-size: clamp(28px, 3vw, 44px); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 78, "wght" 800;
  font-variant-numeric: tabular-nums; }
.key::before { content: ""; position: absolute; left: 50%; top: 56px; width: 12px; height: 12px; margin-left: -6px; background: var(--paper);
  border: 1.5px solid var(--ink); transform: rotate(45deg); transition: background .4s; }
.keys.in .key::before { background: var(--rec); border-color: var(--rec); }
.key span { display: block; margin-top: 34px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.ul-link { font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }
.ul-link:hover { color: var(--rec); border-color: var(--rec); }

/* =================== CREDITS =================== */
.credits { height: 300vh; }
.credits-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 78%, transparent); }
.credits-roll { position: absolute; left: 0; right: 0; top: 0; text-align: center; padding: 0 var(--gut); will-change: transform; }
.credits-title { font-size: clamp(40px, 6vw, 92px); text-transform: uppercase; font-weight: 900; letter-spacing: .06em;
  font-variation-settings: "wdth" 125, "wght" 900; }
.credits-note { font-style: italic; color: var(--screen-soft); margin-top: 10px; font-size: 17px; }
.credits dl { margin-top: 40px; }
.credits dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rec); margin: 54px 0 14px; }
.credits dd { font-size: clamp(20px, 2vw, 28px); line-height: 1.55; font-variation-settings: "wdth" 92, "wght" 420; }
.credits-and { margin-top: 80px; font-size: clamp(22px, 2.4vw, 34px); font-style: italic; }
.credits-no { margin-top: 60px; padding-bottom: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--screen-soft); }

/* =================== CONTACT =================== */
.contact { padding: 150px var(--gut) 130px; }
.cut { text-align: right; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 16px); letter-spacing: .1em; text-transform: uppercase; }
.contact-title { font-size: clamp(76px, 17vw, 310px); line-height: .82; font-weight: 900; letter-spacing: -.02em; margin: 30px 0 60px; }
.contact-title .ch { font-variation-settings: "wdth" 88, "wght" 900; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.mail { font-size: clamp(22px, 3.2vw, 48px); font-weight: 700; font-variation-settings: "wdth" 84, "wght" 700;
  border-bottom: 3px solid var(--ink); line-height: 1.15; overflow-wrap: anywhere; transition: color .2s, border-color .2s; }
.mail:hover { color: var(--rec); border-color: var(--rec); }
.copy { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--ink);
  border-radius: 999px; padding: 10px 16px; transition: background .2s, color .2s; }
.copy:hover { background: var(--ink); color: var(--paper); }
.contact-note { margin-top: 34px; max-width: 520px; color: var(--ink-soft); font-size: 17px; }

/* =================== FOOTER =================== */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding: 26px var(--gut) 100px;
  border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); }
.motion-btn { text-decoration: underline; text-underline-offset: 3px; }
.motion-btn:hover { color: var(--rec); }

/* =================== DOCK =================== */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 60; width: min(1060px, calc(100% - 24px)); height: 52px;
  transform: translateX(-50%); display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px;
  padding: 0 10px; border-radius: 12px; background: rgba(20, 18, 15, .92); color: var(--screen-ink);
  box-shadow: 0 0 0 1px #34302a, 0 18px 50px -12px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dock-play { width: 34px; height: 34px; border-radius: 50%; background: var(--rec); color: #fff; display: grid; place-items: center;
  font-size: 12px; position: relative; }
.dock-play .i-play { padding-left: 2px; }
.dock-play .i-pause, .dock-play[aria-pressed="true"] .i-play { display: none; }
.dock-play[aria-pressed="true"] .i-pause { display: inline; font-size: 10px; letter-spacing: -2px; }
.dock-play[data-speed]::after { content: attr(data-speed); position: absolute; top: -8px; right: -12px; font-family: var(--mono); font-size: 9px;
  background: var(--screen-ink); color: var(--screen); border-radius: 3px; padding: 1px 3px; }
.dock-tc { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 11ch; }
.dock-track { position: relative; height: 32px; cursor: ew-resize; touch-action: none; }
.dock-track::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; opacity: .5;
  background: repeating-linear-gradient(90deg, var(--screen-soft) 0 1px, transparent 1px 2%); }
.dock-clips { position: absolute; left: 0; right: 0; top: 8px; bottom: 0; }
.dock-clip { position: absolute; top: 0; bottom: 0; border-radius: 3px; overflow: hidden; padding: 0 7px; font-size: 11px; line-height: 24px;
  white-space: nowrap; text-overflow: ellipsis; color: rgba(255,255,255,.88); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), -1px 0 0 var(--screen);
  cursor: pointer; transition: filter .2s; }
.dock-clip.cur { filter: brightness(1.35); }
.dock-clip:hover { filter: brightness(1.5); }
.dock-head { position: absolute; top: 0; bottom: -3px; left: 0; width: 2px; margin-left: -1px; background: var(--rec); pointer-events: none; }
.dock-head::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 9px; background: var(--rec);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.dock-keys { display: flex; gap: 4px; font-size: 13px; color: var(--screen-soft); }

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .reels { grid-template-columns: 1fr; }
  .reel-a { grid-row: auto; }
  .reel-a .reel-media { aspect-ratio: 16 / 10; }
  .curve { grid-template-columns: 44px 1fr; }
  .c-graph { grid-column: 2; max-width: 360px; }
  .about { grid-template-columns: 1fr; gap: 50px; }
  .about-still { max-width: 520px; }
}
@media (max-width: 700px) {
  body { font-size: 15px; }
  .top { grid-template-columns: 1fr auto; padding: 16px var(--gut); }
  .top-role { display: none; }
  .hero { height: 260vh; }
  .hero-title { font-size: 23vw; }
  .hl-1 { top: 12vh; }
  .hl-2 { bottom: 25vh; }
  .hero-foot { bottom: 78px; }
  .hero-intro { font-size: 14px; max-width: 32ch; }
  .hero-hint { display: none; }
  .burn { font-size: 9px; padding: 10px; }
  .burn-rec { top: 10px; left: 10px; } .burn-tc { top: 10px; right: 10px; } .burn-meta { bottom: 10px; left: 10px; }
  .burn-file { display: none; }
  .vault, .films, .craft { padding-top: 96px; padding-bottom: 96px; }
  .sec-head { margin-bottom: 44px; row-gap: 20px; }
  .item { flex-basis: 270px; }
  .item:nth-child(even) { margin-top: 0; }
  .phone { width: 270px; height: 540px; }
  .rail { gap: 22px; }
  .rail-foot { grid-template-columns: 1fr auto; }
  .rail-meter { grid-column: 1 / -1; }
  .curve { padding: 30px 0; gap: 16px 18px; }
  .c-text h3 { font-size: 38px; }
  .play-hint { bottom: 76px; }
  .about { padding: 96px var(--gut); }
  .keys { height: 140px; }
  .key b { font-size: 26px; }
  .credits { height: 260vh; }
  .contact { padding: 110px var(--gut) 100px; }
  .contact-title { font-size: 21vw; }
  .foot { padding-bottom: 86px; }
  .dock { bottom: 8px; height: 46px; gap: 10px; width: calc(100% - 16px); }
  .dock-keys { display: none; }
  .dock-tc { font-size: 11px; min-width: 0; }
  .dock-clip { font-size: 0; padding: 0; }
  .dock-play { width: 30px; height: 30px; }
}

/* =================== STILL (reduced motion) =================== */
.still .hero { height: auto; }
.still .hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; }
.still .viewer { clip-path: none; }
.still .viewer canvas { display: none; }
.still .viewer .viewer-poster { visibility: visible; }
.still .hero-title .ch { opacity: 1; }
.still .hero-hint, .still .dock-play, .still .dock-keys { display: none; }
.still .hero-intro { color: var(--screen-ink); text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.still .play-tip { display: none; }
@media (hover: none) { .play-tip { display: none; } }
.still .dock { grid-template-columns: auto 1fr; }
.still .credits { height: auto; padding: 120px 0; }
.still .credits-stage { position: static; height: auto; mask-image: none; -webkit-mask-image: none; }
.still .credits-roll { position: static; transform: none !important; }
.still .play { background: radial-gradient(ellipse at 30% 40%, #5a1d10 0%, transparent 55%), radial-gradient(ellipse at 70% 65%, #3a2410, transparent 55%), var(--screen); }
.still *, .still *::before, .still *::after { animation: none !important; transition-duration: 0s !important; }
