/* Abdullah Isnan, video editor. The page takes its colour from the footage on screen: a living background
   (the showreel's own patterns, one per section) behind real work, plain copy, and movement borrowed from editing:
   cuts, wipes, punch-ins, a timeline. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --l { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --c { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --r { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --y { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --w { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --h { syntax: "<length>"; inherits: false; initial-value: 0px; }

:root {
  color-scheme: dark;
  --ground: #06070b;
  --ground-2: #0c0e14;
  --ink: #f5f7fa;
  --muted: #a7b0c0;
  --faint: #a1aabb;
  --line: rgb(245 247 250 / 0.1);
  --line-2: rgb(245 247 250 / 0.18);
  --accent: #c7ff3d;
  --accent-ink: #0b0f02;
  --glass: rgb(14 16 23 / 0.5);
  --glass-line: rgb(255 255 255 / 0.14);
  --r-media: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --head-h: 64px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-emph: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-in: cubic-bezier(0.3, 0, 0.8, 0.15);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --d-quick: 140ms;
  --d-base: 260ms;
  --d-slow: 520ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: transparent; font: 400 16px/1.55 var(--font-ui); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
html.pl-lock { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

#bg { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -1; display: block; pointer-events: none; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transform: translateY(-160%); transition: transform var(--d-quick) var(--ease); }
.skip:focus-visible { transform: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.05); color: var(--ink); font: 500 14px/1 var(--font-ui); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--d-quick) var(--ease), border-color var(--d-quick) var(--ease), transform var(--d-quick) var(--ease); }
.btn:hover { background: rgb(255 255 255 / 0.1); border-color: rgb(245 247 250 / 0.28); }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-accent:hover { background: #d4ff66; border-color: #d4ff66; }

/* ---------- header with the sequence nav ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--head-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 var(--gutter); border-bottom: 1px solid transparent; transition: background-color var(--d-base) var(--ease), border-color var(--d-base) var(--ease); }
.top.is-scrolled { background: rgb(6 7 11 / 0.55); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--font-display); white-space: nowrap; }
.brand b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-size: 14px; }
.top-cta { justify-self: end; height: 36px; padding: 0 14px; font-size: 13.5px; }

.seq { position: relative; width: min(560px, 46vw); }
.seq ol { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; }
.seq li { flex: var(--grow, 1) 1 0; min-width: max-content; }
.seq a { position: relative; display: flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 5px; font: 500 12px/1 var(--font-display); letter-spacing: 0.01em; color: var(--muted); text-decoration: none; white-space: nowrap; background: color-mix(in srgb, var(--clip, #8892a6) 14%, rgb(255 255 255 / 0.04)); transition: color var(--d-base) var(--ease), background-color var(--d-base) var(--ease); }
.seq a:hover { color: var(--ink); background: color-mix(in srgb, var(--clip, #8892a6) 22%, rgb(255 255 255 / 0.06)); }
.seq a[aria-current="true"] { color: var(--ink); background: color-mix(in srgb, var(--clip, #8892a6) 34%, rgb(255 255 255 / 0.06)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--clip, #8892a6) 65%, transparent); }
.seq-head { position: absolute; top: -7px; left: 0; width: 2px; height: 38px; border-radius: 2px; background: var(--accent); transform: translateX(var(--px, 0px)); will-change: transform; pointer-events: none; }
.seq-head::before { content: ""; position: absolute; top: 0; left: -3px; width: 8px; height: 6px; border-radius: 2px; background: var(--accent); }

@media (max-width: 1080px) {
  .top { grid-template-columns: minmax(0, 1fr) auto; }
  .seq { position: absolute; left: 0; right: 0; bottom: -1px; width: auto; height: 2px; }
  .seq ol { height: 2px; gap: 2px; }
  .seq li { min-width: 0; }
  .seq a { height: 2px; padding: 0; border-radius: 0; font-size: 0; color: transparent; box-shadow: none; background: color-mix(in srgb, var(--clip, #8892a6) 55%, transparent); }
  .seq-head { top: -3px; height: 8px; }
  .seq-head::before { display: none; }
}
@media (max-width: 520px) { .brand span { display: none; } }

/* ---------- player controls (banner and pop-up) ---------- */
.ctl { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px 0 6px; border-radius: 999px; background: rgb(12 14 20 / 0.72); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); transition: opacity var(--d-base) var(--ease), transform var(--d-base) var(--ease); }
.is-idle .ctl { opacity: 0; transform: translateY(8px); pointer-events: none; }
.is-idle { cursor: none; }
.ctl-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background-color var(--d-quick) var(--ease); }
.ctl-btn:hover { background: rgb(255 255 255 / 0.1); }
.ctl-btn svg { width: 16px; height: 16px; fill: var(--ink); }
.ctl-play .i-play, .is-paused .ctl-play .i-pause { display: none; }
.is-paused .ctl-play .i-play { display: block; }
.ctl-mute .i-muted, .is-muted .ctl-mute .i-vol { display: none; }
.is-muted .ctl-mute .i-muted { display: block; }
.ctl-time { flex: none; min-width: 84px; padding: 0 4px; font: 500 12.5px/1 var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.ctl-cur { color: var(--ink); }
.ctl-scrub { position: relative; flex: 1; height: 36px; cursor: pointer; touch-action: none; }
.ctl-rail { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 0.16); transition: height var(--d-quick) var(--ease), margin var(--d-quick) var(--ease); }
.ctl-scrub:hover .ctl-rail, .ctl-scrub.is-drag .ctl-rail { height: 6px; margin-top: -3px; }
.ctl-buf, .ctl-prog { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); }
.ctl-buf { background: rgb(255 255 255 / 0.22); }
.ctl-prog { background: var(--accent); }
.ctl-thumb { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); translate: var(--tx, 0px) 0; scale: 0; transition: scale var(--d-quick) var(--ease); }
.ctl-scrub:hover .ctl-thumb, .ctl-scrub.is-drag .ctl-thumb, .ctl-scrub:focus-visible .ctl-thumb { scale: 1; }
.ctl-tip { position: absolute; bottom: 34px; left: 0; padding: 5px 8px; border-radius: 6px; background: rgb(10 12 18 / 0.9); border: 1px solid var(--glass-line); font: 500 12px/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; transform: translateX(calc(var(--hx, 0px) - 50%)); opacity: 0; pointer-events: none; transition: opacity var(--d-quick) var(--ease); }
.ctl-scrub:hover .ctl-tip, .ctl-scrub.is-drag .ctl-tip { opacity: 1; }
.ctl-flash { position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(10 12 18 / 0.55) center / 22px no-repeat; opacity: 0; pointer-events: none; }

/* ---------- showreel banner ---------- */
/* default (no JS, phones, reduced motion): the reel sits on top of the page, caption below */
.reel { position: relative; padding-top: var(--head-h); }
.reel-sticky { position: relative; }
.reel-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: pointer; }
.reel-frame > img, .reel-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-video { opacity: 0; transition: opacity 300ms linear; }
.reel-video.is-on { opacity: 1; }
.reel-shade { position: absolute; inset: 0 0 auto; height: 170px; background: linear-gradient(rgb(4 5 8 / 0.62), transparent); pointer-events: none; opacity: 0; }
.reel-ui { position: absolute; left: clamp(12px, 2.2vw, 28px); right: clamp(12px, 2.2vw, 28px); bottom: clamp(12px, 2.2vw, 28px); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: opacity var(--d-base) var(--ease); }
.reel-sound { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 12px 30px -12px rgb(0 0 0 / 0.6); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); font: 600 16px/1 var(--font-display); cursor: pointer; transition: background-color var(--d-quick) var(--ease), transform var(--d-quick) var(--ease); }
.reel-sound svg { width: 15px; height: 15px; fill: var(--accent); }
.reel-sound .i-pause { display: none; }
.reel-sound:hover { background: rgb(30 33 44 / 0.72); }
.reel-sound:active { transform: scale(0.97); }
.reel-dur { color: var(--muted); font: 500 13px/1 var(--font-ui); font-variant-numeric: tabular-nums; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); font: 500 13px/1 var(--font-ui); cursor: pointer; transition: background-color var(--d-quick) var(--ease); }
.motion-toggle:hover { background: rgb(30 33 44 / 0.72); }
.motion-toggle svg { width: 11px; height: 11px; fill: currentColor; }
.motion-toggle .i-play, .motion-toggle.is-off .i-pause { display: none; }
.motion-toggle.is-off .i-play { display: block; }
.reel-frame .ctl { display: none; }
.reel-frame.has-sound .ctl { display: flex; }
.reel-frame.has-sound .reel-ui { opacity: 0; pointer-events: none; }
.reel-caption { display: grid; gap: 24px; padding: 28px var(--gutter) 0; }
.reel-caption h1 { font: 700 clamp(44px, 4.8vw, 80px)/0.94 var(--font-display); letter-spacing: -0.04em; text-wrap: balance; }
.lede { margin-top: 14px; max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.facts dt { font: 500 12.5px/1.3 var(--font-ui); color: var(--faint); }
.facts dd { margin-top: 4px; font: 500 14.5px/1.4 var(--font-ui); color: var(--ink); }

/* folding banner (JS, wide screens): full screen at the top, framed after the first part of the scroll */
.reel.is-fold { padding-top: 0; }
.reel.is-fold .reel-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.reel.is-fold .reel-frame { position: absolute; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; contain: layout paint; }
.reel.is-fold .reel-shade { opacity: 1; }
.reel.is-fold .reel-caption { position: absolute; padding: 0; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 24px 56px; visibility: hidden; will-change: opacity, transform; }
.reel.is-fold .facts { grid-template-columns: repeat(3, minmax(0, auto)); justify-content: end; gap: 16px 32px; padding-bottom: 6px; }

.reel.is-fold .reel-sticky { pointer-events: none; }
.reel.is-fold .reel-frame, .reel.is-fold .reel-caption { pointer-events: auto; }

/* ---------- filmstrip: stills from every piece, two rows travelling in opposite directions with the scroll ---------- */
.strip { --th: clamp(104px, 12.5vw, 184px); position: relative; z-index: 1; display: grid; gap: 12px; overflow: hidden; padding-top: clamp(24px, 3vw, 40px); }
.strip-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.strip-tile { position: relative; flex: none; display: block; height: var(--th); width: calc(var(--th) * var(--ar)); overflow: hidden; border-radius: 10px; background: var(--ground-2); }
.strip-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); pointer-events: none; transition: box-shadow var(--d-base) var(--ease); }
.strip-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.strip-tile:hover img { transform: scale(1.07); }
.strip-tile:hover::after { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.45); }
.strip + .work { padding-top: clamp(80px, 9vw, 130px); }

/* ---------- work sections ---------- */
.work { position: relative; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(90px, 12vw, 170px) var(--gutter) 0; }
.work-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 48px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.work-head h2 { font: 700 clamp(min(52px, 13.5vw), 9vw, 150px)/0.86 var(--font-display); letter-spacing: -0.05em; overflow-wrap: anywhere; }
.work-head p { max-width: 30ch; padding-bottom: 0.55em; color: var(--muted); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; }
.kin .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.02em 0.16em; margin: -0.06em -0.02em -0.16em; }
.kin .w > span { display: inline-block; padding: 0.06em 0.02em 0.16em; margin: -0.06em -0.02em -0.16em; }  /* the box covers descenders: the gradient is clipped to it */

/* gradient titles: light tints of the section's own footage colours (set by app.js on the section), gliding when the
   row on air changes and drifting slowly across the letters while the title is on screen */
@property --t1 { syntax: "<color>"; inherits: true; initial-value: #f5f7fa; }
@property --t2 { syntax: "<color>"; inherits: true; initial-value: #d7dceb; }
@property --t3 { syntax: "<color>"; inherits: true; initial-value: #f5f7fa; }
main > section { transition: --t1 1.2s linear, --t2 1.2s linear, --t3 1.2s linear; }
.kin .w > span, .reel-caption h1 {
  background: linear-gradient(100deg, var(--t1), var(--t2) 33%, var(--t3) 66%, var(--t1)) 0 50% / 200% 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
@keyframes title-drift { to { background-position: 200% 50%; } }
@media (prefers-reduced-motion: no-preference) {
  .kin .w > span, .reel-caption h1 { animation: title-drift 16s linear infinite; animation-delay: calc(var(--w, 0) * -2.3s); animation-play-state: paused; }
  .kin.is-drift .w > span, .reel-caption h1.is-drift { animation-play-state: running; }
}
@media (prefers-reduced-motion: reduce) { main > section { transition: none; } }
@media (forced-colors: active) { .kin .w > span, .reel-caption h1 { background: none; -webkit-text-fill-color: currentColor; color: CanvasText; } }

/* justified rows (mixed shapes): every card in a row gets the same height and keeps its true aspect ratio */
.grid { --row: 430px; display: flex; flex-wrap: wrap; gap: 30px 16px; list-style: none; margin: 0; padding: 0; }
.card { flex: calc(var(--ar) * 1000) 1 calc(var(--ar) * var(--row)); min-width: 0; max-width: calc(var(--ar) * var(--row) * 1.6); }
#motion-graphics .grid { --row: 500px; }
#documentary .grid { --row: 470px; }
#vsl-ads .card { max-width: none; }
/* all-vertical sections: a fixed number of reels per row */
.grid-v { --n: 4; }
.grid-v .card { flex: 0 0 calc((100% - (var(--n) - 1) * 16px) / var(--n)); max-width: none; }
.grid-v .card-media { aspect-ratio: 9 / 16; }
.is-side .grid-v { --n: 3; }
#ai-video .grid-v { --n: 5; }
.work.is-side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(24px, 4vw, 72px); align-items: start; }
.work.is-side .work-head { display: block; position: sticky; top: calc(var(--head-h) + 32px); margin-bottom: 0; }
.work.is-side .work-head h2 { font-size: clamp(48px, 6.4vw, 110px); }
.work.is-side .work-head p { margin-top: 18px; padding: 0; }

.card-media { position: relative; display: block; aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--r-media); background: var(--ground-2); cursor: pointer; }
.card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); pointer-events: none; transition: box-shadow var(--d-base) var(--ease); }
.card-media:hover::after, .card-media:focus-visible::after { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.4); }
.card-zoom { position: absolute; inset: 0; display: block; }
.card-zoom img, .card-zoom video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.card-zoom video { opacity: 0; transition: opacity 120ms linear, transform 700ms var(--ease); }
.card-zoom video.is-on { opacity: 1; }
/* hover: a punch-in, the editor's zoom */
.card-media:hover .card-zoom img, .card-media:hover .card-zoom video { transform: scale(1.05); }
.card-pill { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); font: 600 13px/1 var(--font-display); opacity: 0; transform: translateY(4px) scale(0.96); transform-origin: left bottom; transition: opacity var(--d-quick) var(--ease), transform var(--d-quick) var(--ease); }
.card-pill svg { width: 12px; height: 12px; fill: var(--accent); }
.card-media:hover .card-pill, .card-media:focus-visible .card-pill { opacity: 1; transform: none; }
.is-lent { visibility: hidden; }
.card-text { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; }
.card-title { min-width: 0; font: 500 15px/1.35 var(--font-display); color: var(--ink); }
.card-dur { flex: none; font: 500 13px/1 var(--font-ui); color: var(--faint); font-variant-numeric: tabular-nums; }

@media (max-width: 1180px) { .grid { --row: 380px; } #motion-graphics .grid { --row: 420px; } #documentary .grid { --row: 390px; } }
@media (max-width: 1100px) { .grid-v, #ai-video .grid-v { --n: 3; } }
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; }
  .work-head p { padding: 0; }
  .work.is-side { display: block; }
  .work.is-side .work-head { position: static; margin-bottom: 28px; }
}
@media (max-width: 760px) {
  .grid { --row: 260px; gap: 24px 10px; }
  #motion-graphics .grid, #documentary .grid { --row: 230px; }
  .grid-v .card { flex-basis: calc((100% - (var(--n) - 1) * 10px) / var(--n)); }
  .card { max-width: none; }
  .card-text { margin-top: 9px; flex-direction: column; gap: 4px; }
  .card-title { font-size: 14px; }
  .reel-sound { height: 44px; padding: 0 16px 0 14px; font-size: 14.5px; }
  .motion-toggle .motion-label { display: none; }
  .motion-toggle { width: 36px; padding: 0; justify-content: center; }
}
@media (max-width: 640px) { .grid-v, .is-side .grid-v, #ai-video .grid-v { --n: 2; } .facts { grid-template-columns: 1fr 1fr; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: center; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(120px, 14vw, 200px) var(--gutter) 0; }
.about-photo { aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; border-radius: var(--r-media); background: var(--ground-2); box-shadow: 0 0 0 1px var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2, .contact h2 { font: 700 clamp(52px, 8vw, 130px)/0.86 var(--font-display); letter-spacing: -0.05em; margin-bottom: 26px; }
.about-text > p { max-width: 50ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.about-text > p + p { margin-top: 12px; }
.about-text > p:first-of-type { color: var(--ink); }
.facts-about { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 600px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } .about-photo { max-width: 260px; } }

/* ---------- contact ---------- */
.contact { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: clamp(120px, 14vw, 200px) var(--gutter) clamp(80px, 9vw, 120px); }
.contact-line { color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); max-width: 48ch; }
.contact-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.mail { font: 600 clamp(28px, 5.2vw, 72px)/1.05 var(--font-display); letter-spacing: -0.03em; text-decoration: none; overflow-wrap: anywhere; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 3px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 6px; transition: background-size var(--d-slow) var(--ease); }
.mail:hover, .mail:focus-visible { background-size: 100% 3px; }
.copy { min-width: 84px; }
.copy.is-done { border-color: var(--accent); color: var(--accent); }
.contact-more { margin-top: 28px; font-weight: 500; }
.contact-more a { text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.contact-more a:hover { text-decoration-color: var(--ink); }
.clock { margin-top: 14px; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---------- entrances (only with JS and without reduced motion) ---------- */
.js-reveal .kin .w > span { transform: translateY(108%); transition: transform 900ms var(--ease-emph) calc(var(--w, 0) * 70ms); }
.js-reveal .kin.is-in .w > span { transform: none; }
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease) 160ms, transform 800ms var(--ease-emph) 160ms; }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
/* cards wipe up out of the dark like a transition, the picture settles from a slight punch-in */
.js-reveal .card .card-media { clip-path: inset(100% 0 0 0 round var(--r-media)); transition: clip-path 950ms var(--ease-emph) calc(var(--i, 0) * 80ms); }
.js-reveal .card.is-in .card-media { clip-path: inset(0 0 0 0 round var(--r-media)); }
.js-reveal .card .card-zoom { transform: scale(1.18); transition: transform 1400ms var(--ease-emph) calc(var(--i, 0) * 80ms); }
.js-reveal .card.is-in .card-zoom { transform: none; }
.js-reveal .card .card-text { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease) calc(320ms + var(--i, 0) * 80ms), transform 500ms var(--ease) calc(320ms + var(--i, 0) * 80ms); }
.js-reveal .card.is-in .card-text { opacity: 1; transform: none; }

/* ---------- pop-up player ---------- */
.player { position: fixed; inset: 0; z-index: 80; overscroll-behavior: contain; touch-action: none; }
.player[hidden] { display: none; }
.pl-scrim { position: absolute; inset: 0; background: #040508; }
.pl-amb { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 700ms var(--ease), --l 560ms linear, --c 560ms linear, --r 560ms linear;
  background:
    radial-gradient(calc(var(--w) * 0.5 + 110px) calc(var(--h) * 0.62 + 60px) at calc(var(--x) - var(--w) * 0.5) var(--y), var(--l), color-mix(in srgb, var(--l) 35%, transparent) 42%, transparent 76%),
    radial-gradient(calc(var(--w) * 0.5 + 110px) calc(var(--h) * 0.62 + 60px) at calc(var(--x) + var(--w) * 0.5) var(--y), var(--r), color-mix(in srgb, var(--r) 35%, transparent) 42%, transparent 76%),
    radial-gradient(calc(var(--w) * 0.75 + 80px) calc(var(--h) * 0.3 + 80px) at var(--x) calc(var(--y) + var(--h) * 0.5), var(--c), color-mix(in srgb, var(--c) 35%, transparent) 42%, transparent 76%); }
.player.is-lit .pl-amb { opacity: 1; }
.pl-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 56px var(--gutter) 24px; }
.player.is-land .pl-stage { flex-direction: column; gap: 18px; }
.pl-frame { position: relative; flex: none; width: var(--fw); height: var(--fh); overflow: hidden; border-radius: 14px; background: #000; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); transform-origin: 0 0; }
.pl-poster, .pl-bridge, .pl-bridge video, .pl-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pl-video { opacity: 0; }
.pl-frame.is-live .pl-video { opacity: 1; }
.pl-frame.is-live .pl-bridge { visibility: hidden; }
.pl-frame:fullscreen, .reel-frame:fullscreen { width: 100vw; height: 100vh; border-radius: 0; box-shadow: none; }
.reel-frame:fullscreen > video { object-fit: contain; }
.pl-info { flex: none; width: 320px; touch-action: pan-y; }
.player.is-land .pl-info { width: var(--fw); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; }
.player.is-land .pl-info > :not(.pl-nav) { grid-column: 1; }
.player.is-land .pl-nav { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
.pl-section { font: 500 13px/1.3 var(--font-display); color: var(--muted); }
.pl-title { margin-top: 6px; font: 600 clamp(22px, 2vw, 30px)/1.12 var(--font-display); letter-spacing: -0.02em; }
.pl-note { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.pl-meta { margin-top: 10px; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.pl-nav { display: flex; gap: 8px; margin-top: 22px; }
.pl-nav .btn { height: 36px; font-size: 13.5px; }
.pl-keys { margin-top: 18px; color: var(--faint); font-size: 12.5px; }
.player.is-land .pl-keys { display: none; }
.pl-close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgb(20 22 30 / 0.8); cursor: pointer; transition: background-color var(--d-quick) var(--ease); }
.pl-close:hover { background: rgb(40 44 56 / 0.9); }
.pl-close svg { width: 15px; height: 15px; }
.pl-spinner { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.18); border-top-color: var(--ink); opacity: 0; transition: opacity var(--d-base) var(--ease); pointer-events: none; }
.player.is-waiting .pl-spinner { opacity: 1; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.pl-end, .pl-error { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgb(4 5 8 / 0.62); text-align: center; padding: 20px; }
.pl-end { flex-direction: row; flex-wrap: wrap; }
.pl-end[hidden], .pl-error[hidden] { display: none; }

@media (max-width: 760px) {
  .pl-stage, .player.is-land .pl-stage { flex-direction: column; justify-content: flex-start; gap: 14px; padding: 60px 0 16px; }
  .pl-frame { border-radius: 0; box-shadow: none; }
  .pl-info, .player.is-land .pl-info { width: auto; padding: 0 var(--gutter); display: block; }
  .player.is-land .pl-nav { margin-top: 16px; }
  .pl-keys { display: none; }
  .ctl-time { min-width: 0; }
  .ctl-sep, .ctl-dur { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-amb { transition-duration: 0ms !important; }
  .card-zoom video, .reel-video { transition: none; }
  .card-media:hover .card-zoom img, .card-media:hover .card-zoom video { transform: none; }
}

/* ---------- intro: first visit only (html.is-intro comes from the inline gate in <head>) ---------- */
@property --u { syntax: "<length>"; inherits: true; initial-value: 1px; }
@property --t { syntax: "<length>"; inherits: true; initial-value: 1px; }

/* no scrollbar gutter while the intro is up: a reserved gutter would paint a dark strip down the right edge on
   classic-scrollbar systems (Windows). The page gets its gutter back when the intro ends (intro.js glides what moves). */
html:not(.is-intro, .is-leaving) { scrollbar-gutter: stable; }
html:is(.is-intro, .is-leaving) { overflow: hidden; }
html.is-intro :is(.top, #main, .foot, .skip) { visibility: hidden; }
html.is-leaving :is(.top, #main, .foot) { animation: intro-page-in var(--in-dur, 200ms) linear var(--in-delay, 0ms) backwards; }
@keyframes intro-page-in { from { opacity: 0; } }
#bg { transition: opacity 900ms linear; }
html.is-intro #bg:not(.is-on) { opacity: 0; }                 /* the room light comes up on WebGL's first frame */

.intro { position: fixed; inset: 0; z-index: 60; flex-direction: column; overflow: hidden auto; overscroll-behavior: contain;
  touch-action: pinch-zoom; padding: max(10px, env(safe-area-inset-top)) var(--gutter) max(16px, env(safe-area-inset-bottom)); }
html:is(.is-intro, .is-leaving) .intro { display: flex; }      /* no class = UA [hidden] keeps it out (no JS, no CSS) */
.intro { -webkit-tap-highlight-color: transparent; }           /* a tapped control fades with the hand-over: no grey box left behind (.btn:active is the press) */
.intro.is-scroll { touch-action: pan-y pinch-zoom; }
html.is-intro:has(:target) { overflow: visible; }              /* a fragment navigation always wins */
html.is-intro:has(:target) .intro { display: none; }
html.is-intro:has(:target) :is(.top, #main, .foot, .skip) { visibility: visible; }

/* card: the reel's own glass card (rendered plate) with the cut-out breaking its top edge */
.intro-stage { position: relative; flex: none; }
.intro-card { --ch: clamp(180px, 34vh, 340px); --ch: clamp(180px, 34svh, 340px); --u: calc(var(--ch) / var(--card-h));
  position: relative; width: calc(var(--card-w) * var(--u)); height: var(--ch); margin-top: calc(46px + 0.12 * var(--ch)); }
.intro-shadow, .intro-glass { position: absolute; inset: 0; border-radius: calc(var(--card-r) * var(--u)); }
.intro-shadow { box-shadow: 0 calc(60 * var(--u)) calc(110 * var(--u)) calc(-24 * var(--u)) rgb(0 0 0 / 0.7), 0 calc(20 * var(--u)) calc(44 * var(--u)) rgb(0 0 0 / 0.38); }
.intro-glass { overflow: hidden; background: radial-gradient(ellipse 72% 62% at 50% 34%, rgb(45 18 184 / 0.62), rgb(140 18 184 / 0.2) 56%, transparent 82%),
  linear-gradient(145deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.055) 42%, rgb(255 255 255 / 0.1)), #160f3a; }
.intro-plate { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; transition: opacity 200ms linear; }
.intro-plate.is-ready { opacity: 1; }
.intro-rim { position: absolute; inset: 0; border-radius: inherit; padding: calc(1.6 * var(--u)); opacity: 0; transition: opacity var(--d-base) var(--ease);
  background: linear-gradient(140deg, #fff, rgb(255 255 255 / 0.2) 26%, rgb(255 255 255 / 0.04) 55%, rgb(200 200 255 / 0.22) 78%, rgb(255 255 255 / 0.65));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.intro.is-armed .intro-rim { opacity: 0.6; }
.intro-cutwrap { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 calc(30 * var(--u)) calc(40 * var(--u)) rgb(0 0 0 / 0.45)); }   /* the shadow sits on a wrapper: on the clipped img itself it was cut into a dark rectangle */
.intro-cut { position: absolute; left: var(--cut-l); top: var(--cut-t); width: var(--cut-w); max-width: none; height: auto; transform-origin: 50% 100%;
  clip-path: inset(0 0 var(--cut-clip) 0); }
.intro-dot { position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgb(199 255 61 / 0.16), 0 0 14px rgb(199 255 61 / 0.9); opacity: 0; pointer-events: none; }

/* copy: stacked defaults (phones, portrait tablets, narrow or short windows) */
.intro-copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 560px; margin-top: 20px; }
.intro .m { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0.06em 0.02em 0.16em; margin: -0.06em -0.02em -0.16em; }
.intro .m > span { display: inline-block; }
.intro-hi { display: block; font: 600 0.75rem/1.2 var(--font-ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.intro-nm { display: block; margin-top: 6px; font: 700 clamp(2.125rem, 10.5vw, 4rem)/0.94 var(--font-display); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.intro-role { margin-top: 8px; font: 500 1.125rem/1.2 var(--font-ui); color: var(--muted); }
.intro-pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 2.25rem; margin-top: 16px; padding: 6px 16px 6px 14px; border-radius: 999px;
  background: linear-gradient(145deg, rgb(255 255 255 / 0.17), rgb(255 255 255 / 0.06));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.5), inset 0 -1px 1px rgb(255 255 255 / 0.1), 0 16px 36px rgb(0 0 0 / 0.42); font: 600 0.9375rem/1 var(--font-ui); }
.intro-pill b { font: 700 1.0625rem/1 var(--font-display); letter-spacing: 0.02em; }
.intro-pill i { width: 1px; height: 1.1em; background: rgb(255 255 255 / 0.3); }
.intro-act { position: sticky; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 1; display: flex; align-items: center; gap: 14px; align-self: stretch; margin-top: 20px; }
.intro-go { flex: 1; max-width: 420px; height: 56px; gap: 12px; padding: 0 24px; font: 600 1.125rem/1 var(--font-display); }
.intro-go svg { width: 18px; height: 18px; flex: none; transition: translate var(--d-quick) var(--ease); }
.intro-go:hover svg, .intro-go:focus-visible svg { translate: 4px 0; }
.intro-go:focus-visible { outline-color: var(--ink); outline-offset: 4px; border-radius: 999px; }
.intro-key { display: none; align-items: center; height: 24px; padding: 0 7px; border: 1px solid rgb(245 247 250 / 0.18); border-radius: 6px; font: 600 12px/1 var(--font-ui); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .intro-key { display: inline-flex; } }
.intro-skip { position: fixed; top: max(10px, env(safe-area-inset-top)); right: var(--gutter); z-index: 2; height: 44px; padding: 0 16px; }  /* = "Email me" spot */
.intro-to { margin-top: 18px; }
.intro-to p { font: 500 0.8125rem/1.2 var(--font-ui); color: var(--muted); }
.intro-to ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.intro-to a { display: inline-flex; align-items: center; height: 2.5rem; padding: 0 0.875rem; border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 0.875rem/1 var(--font-ui); background: linear-gradient(145deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.05));
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.35), inset 0 0 0 1px rgb(255 255 255 / 0.12);
  transition: box-shadow var(--d-quick) var(--ease), background-color var(--d-quick) var(--ease); }
.intro-to a:hover, .intro-to a:focus-visible { background-color: rgb(255 255 255 / 0.08); box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.5), inset 0 0 0 1px rgb(255 255 255 / 0.45); }
.intro-fly { position: fixed; left: 0; top: 0; z-index: 3; margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap; color: var(--ink); transform-origin: 0 0; pointer-events: none; will-change: transform; }
.intro-fly span { display: inline-block; }                    /* per-character boxes, like the reel's splitChars (no kerning) */
.reel:focus, h2[tabindex="-1"]:focus { outline: none; }

/* short landscape (e.g. 844x390): two columns */
@media (min-width: 560px) and (max-height: 559px) and (min-aspect-ratio: 6/5) {
  html:is(.is-intro, .is-leaving) .intro { display: grid; }
  .intro { grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; align-items: center; padding-top: max(64px, env(safe-area-inset-top)); }
  .intro-card { --ch: min(64vh, 300px); --ch: min(64svh, 300px); margin-top: calc(0.12 * var(--ch)); }
  .intro-copy { margin-top: 0; }
  .intro-nm { font-size: clamp(2rem, 6vw, 3rem); }
  .intro-act { position: static; }
  .intro-go { flex: none; }
}

/* frame layout: the reel's 1920x1080 composition, cover-fitted exactly like the full-screen banner */
@media (min-width: 760px) and (min-height: 560px) and (min-aspect-ratio: 6/5) {
  html:is(.is-intro, .is-leaving) .intro { display: block; }
  .intro { padding: 0; container-type: size; }
  .intro > * { --u: max(100cqw / 1920, 100cqh / 1080); }
  .intro-stage { position: absolute; left: calc(50% - 960 * var(--u)); top: calc(50% - 540 * var(--u)); width: calc(1920 * var(--u)); bottom: 0; pointer-events: none; }   /* bottom, not height: a cover-fitted 1080 would make the splash scrollable on windows wider than 16:9 */
  .intro-card { --u: inherit; position: absolute; margin: 0; left: calc(var(--card-x) * var(--u)); top: calc(var(--card-y) * var(--u));
    width: calc(var(--card-w) * var(--u)); height: calc(var(--card-h) * var(--u)); }
  .intro-copy { --t: min(var(--u), (50cqw - var(--gutter)) / 860); position: absolute; left: 50cqw; right: var(--gutter);
    top: calc(50cqh - 240 * var(--u)); max-width: none; margin: 0; }                   /* reel x 960, y 300 */
  .intro-hi { font-size: max(0.75rem, 26 * var(--t)); }
  .intro-nm { margin-top: calc(13 * var(--t)); font-size: max(2.75rem, 118 * var(--t)); line-height: 1; }
  .intro-role { margin-top: calc(32 * var(--t)); font-size: max(1.125rem, 46 * var(--t)); }
  .intro-pill { margin-top: calc(49 * var(--t)); height: max(2.5rem, 64 * var(--t)); gap: calc(16 * var(--t));
    padding: 0 max(16px, 30 * var(--t)) 0 max(14px, 24 * var(--t)); font-size: max(0.9375rem, 26 * var(--t)); }
  .intro-pill b { font-size: max(1.0625rem, 30 * var(--t)); }
  .intro-pill i { height: calc(26 * var(--t)); }
  .intro-act { position: static; align-self: auto; margin-top: calc(36 * var(--t)); }
  .intro-go { flex: none; max-width: none; height: clamp(3.25rem, 72 * var(--t), 4.5rem);
    padding: 0 max(1.5rem, 30 * var(--t)) 0 max(1.5rem, 32 * var(--t)); font-size: clamp(1.0625rem, 26 * var(--t), 1.375rem); }
  .intro-to { margin-top: calc(28 * var(--t)); }
  .intro-to p { font-size: max(0.8125rem, 17 * var(--t)); }
  .intro-to ul { gap: max(8px, 12 * var(--t)); margin-top: max(8px, 10 * var(--t)); }
  .intro-to a { height: max(2.5rem, 50 * var(--t)); padding: 0 max(0.875rem, 22 * var(--t)); font-size: max(0.875rem, 20 * var(--t)); }
}
@media (min-width: 760px) and (min-height: 560px) and (min-aspect-ratio: 12/5) {
  .intro > * { --u: min(100cqw / 1920, 100cqh / 1080); }      /* ultra-wide: contain so the head is never cropped; hand-over fades */
}

/* build: 740 ms, transform/opacity/clip-path only; start states exist only under html.intro-anim */
@media (prefers-reduced-motion: no-preference) {
  html.intro-anim .intro-dot { animation: i-dot 120ms linear 100ms backwards; }
  html.intro-anim .intro-glass { animation: i-grow 360ms var(--ease-emph) 60ms backwards; }
  html.intro-anim .intro-shadow { animation: i-fade 300ms var(--ease) 200ms backwards; }
  html.intro-anim .intro-cut { animation: i-pop 480ms var(--ease-emph) 240ms backwards; }
  html.intro-anim .intro-cut:not(.is-ready) { animation-play-state: paused; }   /* the head never pops before it decodes */
  html.intro-anim .intro .m > span { animation: i-rise 420ms var(--ease-emph) var(--d, 0ms) backwards; }
  .intro-hi .m > span { --d: 140ms; }
  .intro-nm .m:first-child > span { --d: 180ms; }
  .intro-nm .m:last-child > span { --d: 240ms; }
  .intro-role .m > span { --d: 280ms; }
  html.intro-anim .intro-pill { animation: i-born 320ms var(--ease-emph) 320ms backwards; }
  html.intro-anim .intro-pill > * { animation: i-up 260ms var(--ease) 400ms backwards; }
  html.intro-anim .intro-to p { animation: i-fade 260ms var(--ease) 360ms backwards; }
  html.intro-anim .intro-to li { animation: i-chip 280ms var(--ease-emph) calc(380ms + var(--i) * 25ms) backwards;
    animation-timing-function: linear(0, .108 7%, .331 14%, .567 21%, .762 29%, .902 36%, .987 43%, 1.03 50%, 1.045 57%, 1.044 64%, 1.034 71%, 1.023 79%, 1.014 86%, 1.006 93%, 1); }
  html.intro-done .intro * { animation: none !important; }   /* any key or pointerdown: final state at once */
}
@keyframes i-dot { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 0.6; } }
@keyframes i-grow { from { clip-path: inset(calc(50% - 6.5px) round 6.5px); } to { clip-path: inset(0 round calc(var(--card-r) * var(--u))); } }
@keyframes i-fade { from { opacity: 0; } }
@keyframes i-pop { from { opacity: 0; translate: 0 calc(70 * var(--u)); scale: 0.97; } 20% { opacity: 1; } }
@keyframes i-rise { from { translate: 0 108%; } }
@keyframes i-born { from { clip-path: inset(0 calc(100% - 16px) 0 0 round 999px); opacity: 0; } 15% { opacity: 1; } to { clip-path: inset(0 0 0 0 round 999px); } }
@keyframes i-up { from { translate: 0 90%; opacity: 0; } }
@keyframes i-chip { from { scale: 0.6; opacity: 0; } 25% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  #bg, .intro-plate, .intro-rim, .intro-go svg, .intro-to a { transition: none; }
  .intro-go:hover svg, .intro-go:focus-visible svg { translate: none; }
}
@media (forced-colors: active) { .intro-stage { display: none; } .intro-go, .intro-pill, .intro-to a { border: 2px solid ButtonText; } }
@media print {
  .intro { display: none !important; }
  html:is(.is-intro, .is-leaving) { overflow: visible; }
  html.is-intro :is(.top, #main, .foot, .skip) { visibility: visible !important; }
}

/* site-wide upgrades (section 7) */
.cut-veil { position: fixed; inset: 0; z-index: 35; background: var(--ground); opacity: 0; pointer-events: none; }
.card-skim { position: absolute; inset: 0; z-index: 1; background-color: var(--ground-2); background-repeat: no-repeat;
  background-position: var(--bx, 0) var(--by, 0); background-size: var(--bs); opacity: 0; pointer-events: none; }
.card-skim.is-on { opacity: 1; }
.card-skim-head { position: absolute; top: 0; bottom: 0; left: var(--px, 0px); width: 2px; margin-left: -1px; background: var(--accent); }
.card-skim-tip { position: absolute; top: 10px; left: clamp(44px, var(--px, 0px), calc(100% - 44px)); translate: -50% 0; padding: 5px 8px; border-radius: 6px;
  background: rgb(10 12 18 / 0.9); border: 1px solid var(--glass-line); font: 500 12px/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
