/* Manjeet Chaudhary, portfolio. One stylesheet, in the language of the journey film:
   paper and ink, one blue that means "the work acting", red only for problems, night for the Oolka chapter. */

@font-face { font-family: "Inter Tight"; src: url("/assets/fonts/inter-tight.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jbmono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter Tight Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 94%; ascent-override: 96%; }

@property --bg { syntax: "<color>"; inherits: true; initial-value: #f6f5f1; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #0e0f13; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #2b44ff; }

:root {
  --paper: #f6f5f1;
  --ink: #0e0f13;
  --night: #0b0c10;
  --blue: #2b44ff;
  --blue-soft: #7f93ff;
  --red: #e5484d;
  --bg: var(--paper);
  --fg: var(--ink);
  --acc: var(--blue);
  --fg-2: color-mix(in srgb, var(--fg) 70%, var(--bg));
  --muted: color-mix(in srgb, var(--fg) 50%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 12%, var(--bg));
  --line-2: color-mix(in srgb, var(--fg) 24%, var(--bg));
  --surface: color-mix(in srgb, var(--fg) 5%, var(--bg));

  --f-sans: "Inter Tight", "Inter Tight Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(16px, 2.8vw, 44px);
  --gap: clamp(12px, 1.6vw, 24px);
  --maxw: 1720px;
  --header-h: 64px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  transition: --bg 0.6s ease, --fg 0.6s ease, --acc 0.6s ease;
}
html[data-theme="night"] { --bg: var(--night); --fg: #ffffff; --acc: var(--blue-soft); color-scheme: dark; }
html[data-theme="blue"] { --bg: var(--blue); --fg: #ffffff; --acc: #ffffff; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-sans); font-size: clamp(16px, 1.08vw, 18.5px); line-height: 1.5; font-weight: 450; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd, ol, ul, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.8s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: vt-old 0.45s var(--ease) both; }
::view-transition-new(root) { animation: vt-new 0.8s var(--ease) both; }
@keyframes vt-old { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-new { from { opacity: 0; transform: translateY(4%); } }
.site-header { view-transition-name: header; }
.progress { view-transition-name: progress; }

/* type */
.display { font-family: var(--f-sans); font-weight: 700; line-height: 0.92; letter-spacing: -0.05em; }
.display em, .acc { font-style: normal; color: var(--acc); }
.prob { color: var(--red); }
.mono { font-family: var(--f-mono); font-size: 12px; line-height: 1.45; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.line, .split-line { display: block; overflow: clip; overflow-clip-margin: 0.12em; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: inline-block; }
.roll { display: inline-grid; overflow: hidden; vertical-align: top; }
.roll > span { grid-area: 1 / 1; transition: transform 0.5s var(--ease); }
.roll > span + span { transform: translateY(105%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child { transform: translateY(-105%); }
a:hover .roll > span + span, button:hover .roll > span + span { transform: translateY(0); }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }

/* header: the film's wordmark, dot and all */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: var(--pad); color: #fff; mix-blend-mode: difference; transition: transform 0.7s var(--ease); }
.site-header.is-hidden { transform: translateY(-110%); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 650 19px/1 var(--f-sans); letter-spacing: -0.035em; text-decoration: none; }
.wordmark i { width: 11px; height: 11px; border-radius: 50%; background: #fff; display: inline-block; }
.wordmark b { font-weight: inherit; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a { font: 550 16px/1 var(--f-sans); letter-spacing: -0.02em; text-decoration: none; padding-block: 6px; position: relative; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; }

/* cursor ring */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--fg) 50%, transparent); pointer-events: none; display: grid; place-items: center; opacity: 0; transition: width 0.5s var(--ease), height 0.5s var(--ease), margin 0.5s var(--ease), background-color 0.3s, border-color 0.3s, opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor span { font: 600 13px/1 var(--f-sans); letter-spacing: -0.02em; color: #fff; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--blue); }
.cursor.has-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--blue); border-color: var(--blue); }
.cursor.has-label span { opacity: 1; }

/* the film hero */
.film { position: relative; height: 100svh; min-height: 520px; background: var(--paper); overflow: clip; isolation: isolate; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.film-ui { position: absolute; inset: auto 0 0 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad) clamp(16px, 3vh, 30px); color: #fff; mix-blend-mode: difference; }
.film-ui .who { font: 600 15px/1.3 var(--f-sans); letter-spacing: -0.02em; }
.film-ui .who span { display: block; font: 400 12px/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.film-btns { display: flex; gap: 8px; }
.film-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; font: 600 14px/1 var(--f-sans); letter-spacing: -0.02em; text-decoration: none; transition: background-color .3s; }
.film-btn:hover { background: rgba(255, 255, 255, .16); }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 6; background: rgba(14, 15, 19, 0.08); }
.film-bar i { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; }
.film-hint { position: absolute; left: 50%; bottom: clamp(74px, 11vh, 120px); z-index: 5; transform: translateX(-50%); font: 600 15px/1 var(--f-sans); letter-spacing: -0.02em; color: var(--ink); opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.film.is-ended .film-hint { opacity: 1; }
.film-hint i { display: inline-block; font-style: normal; animation: nudge 2s var(--ease) infinite; margin-left: 6px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.film-play { position: absolute; left: 50%; top: 50%; z-index: 7; transform: translate(-50%, -50%); display: none; align-items: center; gap: 14px; padding: 22px 34px; border-radius: 999px; background: var(--blue); color: #fff; font: 650 clamp(18px, 1.5vw, 24px)/1 var(--f-sans); letter-spacing: -0.03em; box-shadow: 0 24px 60px rgba(43, 68, 255, .35); }
.film-play i { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.film.needs-play .film-play { display: inline-flex; }
.film.needs-play .film-hint { opacity: 0; }

/* intro strip under the film */
.intro { padding-block: clamp(70px, 13vh, 160px) clamp(40px, 7vh, 80px); }
.intro-line { font: 650 clamp(34px, 4.4vw, 76px)/1.02 var(--f-sans); letter-spacing: -0.05em; max-width: 22ch; }
.intro-sub { margin-top: clamp(18px, 3vh, 30px); color: var(--fg-2); max-width: 52ch; font-size: clamp(17px, 1.3vw, 21px); }

/* marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(14px, 2vw, 26px); white-space: nowrap; user-select: none; }
.marquee-inner { display: inline-flex; will-change: transform; }
.marquee-item { display: inline-flex; align-items: center; gap: 0.45em; padding-right: 0.45em; font: 700 clamp(30px, 4.4vw, 78px)/1 var(--f-sans); letter-spacing: -0.05em; }
.marquee-item .dot { width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--blue); display: inline-block; }
.marquee-item em { font-style: normal; color: var(--acc); }

/* sections */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; padding-top: clamp(84px, 15vh, 180px); padding-bottom: clamp(20px, 3.5vh, 40px); border-bottom: 1px solid var(--line); }
.sec-head > .mono { grid-column: 1 / span 3; color: var(--muted); padding-bottom: 0.7em; }
.sec-title { grid-column: 4 / -1; font-size: clamp(48px, 8vw, 150px); }

/* work index */
.work-list li { position: relative; isolation: isolate; }
.work-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; padding-block: clamp(20px, 2.8vw, 36px); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: color 0.35s; }
.work-row::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--fg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.6s var(--ease); z-index: -1; }
.work-row:hover::before, .work-row:focus-visible::before { transform: scaleY(1); }
.work-row:hover, .work-row:focus-visible { color: var(--bg); }
.wr-idx { grid-column: 1 / span 1; color: var(--muted); align-self: start; padding-top: 0.8em; transition: color 0.35s; }
.wr-name { grid-column: 2 / span 5; font-size: clamp(44px, 6.2vw, 112px); width: fit-content; transition: transform 0.7s var(--ease); }
.work-row:hover .wr-name { transform: translateX(clamp(8px, 1vw, 18px)); }
.wr-thesis { grid-column: 7 / span 4; font: 550 clamp(19px, 1.6vw, 27px)/1.15 var(--f-sans); letter-spacing: -0.03em; }
.wr-meta { grid-column: 11 / -1; text-align: right; color: var(--muted); transition: color 0.35s; }
.work-row:hover .wr-meta, .work-row:hover .wr-idx { color: inherit; }
.wr-tag { display: inline-block; margin-top: 8px; padding: 3px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: 10.5px; }
.preview { position: fixed; left: 0; top: 0; z-index: 45; width: clamp(280px, 26vw, 460px); aspect-ratio: 16 / 9; pointer-events: none; border-radius: 16px; overflow: hidden; visibility: hidden; opacity: 0; background: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.preview video, .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* reels (night) */
.reels { position: relative; overflow: clip; }
.reels-pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding-block: clamp(70px, 10vh, 120px) clamp(36px, 6vh, 72px); }
.reels-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.reels-intro > .mono { grid-column: 1 / span 3; color: var(--muted); padding-bottom: 0.7em; }
.reels-intro h2 { grid-column: 4 / span 6; font-size: clamp(64px, 10vw, 184px); }
.reels-intro p { grid-column: 10 / -1; color: var(--fg-2); max-width: 34ch; font-size: 15.5px; }
.reels-track { display: flex; gap: clamp(12px, 1.4vw, 22px); padding-inline: var(--pad); width: max-content; }
.reel { flex: 0 0 auto; width: clamp(200px, 17.5vw, 300px); }
.reel-media { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--surface); }
.reel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.reel:hover .reel-media img { transform: scale(1.05); }
.reel-badge { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 99px; background: rgba(0, 0, 0, 0.6); color: #fff; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.reel figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.reel figcaption b { font: 750 clamp(30px, 2.5vw, 44px)/0.9 var(--f-sans); letter-spacing: -0.05em; }
.reel figcaption span { color: var(--muted); text-align: right; font-size: 11px; }
.reel-end { flex: 0 0 auto; width: clamp(260px, 24vw, 400px); display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; padding-bottom: 52px; padding-left: clamp(10px, 2vw, 30px); }
.reel-end .big { font: 700 clamp(36px, 3.4vw, 60px)/0.98 var(--f-sans); letter-spacing: -0.05em; }
.reel-end .big em { font-style: normal; color: var(--acc); }
.reel-end p:not(.big) { color: var(--fg-2); font-size: 15.5px; max-width: 32ch; }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.num { padding: clamp(26px, 3.2vw, 52px) clamp(14px, 2vw, 32px) clamp(26px, 3.2vw, 44px); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: clamp(230px, 25vw, 360px); }
.num:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.num-v { font: 800 clamp(76px, 9.4vw, 176px)/0.82 var(--f-sans); letter-spacing: -0.06em; margin-top: auto; font-variant-numeric: tabular-nums; }
.num-v small { font-size: 0.45em; letter-spacing: -0.03em; margin-left: 0.03em; }
.num-k { color: var(--muted); }
.num-d { color: var(--fg-2); font-size: 15.5px; max-width: 34ch; }
.num-d b { color: var(--fg); font-weight: 650; }
.num.is-acc .num-v { color: var(--acc); }

/* campaign features */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-block: clamp(40px, 7vh, 90px); border-bottom: 1px solid var(--line); }
.feature-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 28px); align-self: start; }
.feature-copy h3 { font-size: clamp(46px, 5.4vw, 100px); }
.feature-copy p { color: var(--fg-2); max-width: 44ch; }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 6px; }
.stat-row div { display: flex; flex-direction: column; gap: 4px; }
.stat-row b { font: 800 clamp(36px, 3.2vw, 56px)/0.9 var(--f-sans); letter-spacing: -0.05em; }
.feature-media { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; padding-bottom: 8%; }
.feature-media figure { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface); }
.feature-media figure:nth-child(2) { margin-top: 18%; }
.feature-media figure:nth-child(3) { margin-top: 36%; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.is-film { grid-template-columns: 1fr; padding-bottom: 0; }
.feature-media.is-film figure { aspect-ratio: 16 / 9; margin: 0; border-radius: 16px; }
.feature-media video { width: 100%; height: 100%; object-fit: cover; }

.text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-bottom: 4px; border-bottom: 1.5px solid var(--line-2); width: fit-content; font-weight: 600; letter-spacing: -0.02em; transition: border-color 0.3s, color 0.3s; }
.text-link:hover { border-color: var(--acc); color: var(--acc); }
.text-link .arr { transition: transform 0.5s var(--ease); }
.text-link:hover .arr { transform: translateX(5px); }

/* call to action */
.cta { padding-block: clamp(110px, 20vh, 240px) clamp(70px, 12vh, 140px); text-align: center; }
.cta-kicker { color: var(--muted); margin-bottom: clamp(18px, 3vh, 30px); }
.cta-title { font-size: clamp(64px, 12vw, 230px); margin-inline: auto; }
.cta-sub { color: var(--fg-2); max-width: 46ch; margin: clamp(18px, 3vh, 30px) auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(30px, 5vh, 56px); }
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--line-2); font: 600 clamp(15px, 1.15vw, 19px)/1 var(--f-sans); letter-spacing: -0.02em; transition: background-color 0.4s var(--ease), color 0.4s, border-color 0.4s; }
.pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill.is-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill.is-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(36px, 6vh, 70px); overflow: clip; }
.footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.f-about { grid-column: 1 / span 5; color: var(--fg-2); max-width: 40ch; }
.f-col { grid-column: span 2; }
.f-col.first { grid-column: 7 / span 2; }
.footer-grid h4 { color: var(--muted); margin-bottom: 6px; font-weight: 400; }
.footer-grid a, .motion-toggle { text-decoration: none; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size 0.5s var(--ease); text-align: left; }
.footer-grid a:hover, .motion-toggle:hover { background-size: 100% 1.5px; }
.footer-word { margin-top: clamp(40px, 9vh, 120px); line-height: 0; color: var(--fg); display: flex; align-items: center; gap: 1.6vw; }
.footer-word i { flex: none; width: 4.2vw; height: 4.2vw; border-radius: 50%; background: var(--blue); }
.footer-word svg { flex: 1; height: auto; overflow: visible; }
.footer-word text { font-family: var(--f-sans); font-weight: 800; letter-spacing: -0.05em; fill: currentColor; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding-block: 18px 22px; color: var(--muted); border-top: 1px solid var(--line); }

/* case study */
.cs-hero { padding-top: calc(var(--header-h) + clamp(40px, 9vh, 110px)); }
.cs-kicker { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); margin-bottom: clamp(16px, 3vh, 30px); }
.cs-kicker .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 10px; vertical-align: 1px; }
.cs-title { font-size: clamp(66px, 13vw, 250px); width: fit-content; }
.cs-title em { font-style: normal; color: var(--acc); }
.cs-thesis { font: 600 clamp(28px, 3.4vw, 58px)/1.02 var(--f-sans); letter-spacing: -0.045em; max-width: 22ch; margin-top: clamp(18px, 3vh, 30px); color: var(--fg-2); }
.cs-meta { display: flex; flex-wrap: wrap; gap: 14px clamp(24px, 4vw, 64px); margin-top: clamp(26px, 4.5vh, 50px); padding-top: 18px; border-top: 1px solid var(--line-2); }
.cs-meta div { display: flex; flex-direction: column; gap: 4px; }
.cs-meta dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { font-size: 16px; font-weight: 550; }
.cs-film { margin-top: clamp(30px, 6vh, 70px); border-radius: clamp(14px, 1.6vw, 24px); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); position: relative; }
.cs-film video { width: 100%; height: 100%; object-fit: cover; }
.cs-film figcaption { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(14, 15, 19, .7); color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }

.cs-body { padding-bottom: clamp(70px, 12vh, 140px); }
.cs-sec { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); padding-top: clamp(48px, 9vh, 110px); }
.cs-sec-head { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 22px); align-self: start; display: flex; flex-direction: column; gap: 8px; }
.cs-sec-head .mono { color: var(--acc); }
.cs-sec-head h2 { font: 600 15px/1.2 var(--f-sans); letter-spacing: -0.02em; }
.cs-sec-body { grid-column: 5 / span 7; min-width: 0; }
.cs-sec.is-wide .cs-sec-body { grid-column: 4 / -1; }
.cs-sec.is-key { padding-top: clamp(70px, 13vh, 160px); }
.cs-sec.is-key .cs-sec-head h2 { color: var(--acc); }
.lead, .cs-sec.is-key .prose > p:first-child { font: 650 clamp(26px, 2.6vw, 44px)/1.1 var(--f-sans); letter-spacing: -0.045em; color: var(--fg); max-width: 28ch; }

.prose { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.58; }
.prose > * + * { margin-top: 1.05em; }
.prose p { color: var(--fg-2); max-width: 62ch; }
.prose strong { color: var(--fg); font-weight: 650; }
.prose em { font-style: italic; }
.prose h3 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 1.4em; }
.prose h3:first-child { padding-top: 0; }
.list { border-top: 1px solid var(--line); }
.list li { padding-block: 16px; border-bottom: 1px solid var(--line); color: var(--fg-2); }
.list li > strong:first-child { color: var(--fg); }
.dots li { position: relative; padding-left: 22px; color: var(--fg-2); }
.dots li + li { margin-top: 10px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose .note { font-size: 15px; color: var(--muted); font-style: italic; }
.pull { font: 700 clamp(34px, 3.8vw, 64px)/1 var(--f-sans); letter-spacing: -0.05em; color: var(--fg); max-width: 20ch; }
.prose .pull { color: var(--fg); }
.pull b { font-weight: 700; color: var(--acc); }

.ledger { border-top: 1px solid var(--line-2); }
.ledger-row { display: grid; grid-template-columns: minmax(130px, 0.8fr) 2fr; gap: var(--gap); padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger-row dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ledger-row dd { color: var(--fg-2); }
.ledger-row dd b { display: block; font: 800 clamp(42px, 4.2vw, 76px)/0.9 var(--f-sans); letter-spacing: -0.055em; color: var(--fg); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.book { width: 100%; border-collapse: collapse; font-size: 15px; }
.book th { text-align: left; font-family: var(--f-mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.book td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.book td:first-child { color: var(--fg); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 14px; color: var(--fg-2); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.gallery figure { position: relative; aspect-ratio: var(--ar, 4 / 5); border-radius: 10px; overflow: hidden; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 7px 9px; border-radius: 8px; background: rgba(10, 10, 11, 0.74); color: #fff; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.gallery figcaption span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.8; }
.gallery figcaption b { order: -1; font: 800 clamp(18px, 1.6vw, 26px)/0.95 var(--f-sans); letter-spacing: -0.04em; text-transform: none; }
.g-4 > * { grid-column: span 3; }
.g-3 > * { grid-column: span 4; }
.g-6 > * { grid-column: span 2; }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-5 > * { grid-column: auto; }
.gallery > .wide { grid-column: span 6; }
.gallery + .gallery { margin-top: var(--gap); }

.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stat-strip > div { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.stat-strip b { font: 800 clamp(46px, 4.6vw, 82px)/0.86 var(--f-sans); letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.stat-strip > div > span { color: var(--muted); font-size: 14px; }
.callout { border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(18px, 2.2vw, 30px); display: grid; gap: 12px; }
.callout > .mono { color: var(--acc); }

.diagram { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 28px); background: var(--surface); }
.diagram figcaption { margin-top: 14px; color: var(--muted); }
.grid9 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 420px; }
.grid9 span { aspect-ratio: 1; border-radius: 3px; background-image: url("/assets/img/diagrams/bag.svg"); background-size: 300% 300%; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1.4fr; align-items: center; gap: 12px; }
.flow .node { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; justify-content: center; background: var(--bg); }
.flow .node b { font: 700 18px/1.05 var(--f-sans); letter-spacing: -0.03em; }
.flow .node span { color: var(--muted); font-size: 13px; }
.flow .arrow { color: var(--blue); font-family: var(--f-mono); }
.flow .fan { display: grid; gap: 8px; }

.next { display: block; text-decoration: none; padding-block: clamp(70px, 14vh, 170px); border-top: 1px solid var(--line); }
.next .mono { color: var(--muted); display: block; margin-bottom: 18px; }
.next-title { display: block; width: fit-content; font-size: clamp(64px, 12vw, 230px); transition: color 0.4s, transform 0.8s var(--ease); }
.next:hover .next-title { color: var(--acc); transform: translateX(clamp(8px, 1.4vw, 24px)); }
.next-thesis { margin-top: 18px; font: 600 clamp(22px, 2.2vw, 36px)/1.1 var(--f-sans); letter-spacing: -0.04em; color: var(--fg-2); max-width: 30ch; }

/* about */
.about-intro { font: 600 clamp(24px, 2.5vw, 42px)/1.14 var(--f-sans); letter-spacing: -0.045em; max-width: 32ch; color: var(--fg-2); margin-top: clamp(18px, 3vh, 34px); }
.tl { border-top: 1px solid var(--line-2); }
.tl-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr 1.7fr; gap: var(--gap); padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; text-decoration: none; }
.tl-row .yr { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tl-row .co { font: 700 clamp(22px, 2vw, 32px)/1 var(--f-sans); letter-spacing: -0.045em; transition: color 0.3s; }
.tl-row .ro { color: var(--fg-2); }
.tl-row.soft .co { color: var(--fg-2); font-weight: 550; }
a.tl-row:hover .co { color: var(--acc); }
.scores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.scores > div { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.scores b { font: 800 clamp(56px, 6vw, 112px)/0.84 var(--f-sans); letter-spacing: -0.06em; font-variant-numeric: tabular-nums; color: var(--acc); }
.scores > div > span { color: var(--muted); font-size: 14px; }

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.lost h1 { font-size: clamp(110px, 24vw, 420px); }
.lost p { color: var(--fg-2); margin: 18px auto 28px; max-width: 36ch; }

@media (max-width: 1100px) {
  .wr-thesis { grid-column: 7 / -1; }
  .wr-meta { grid-column: 2 / -1; text-align: left; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num:nth-child(3n + 1) { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 32px); }
  .num:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  :root { --header-h: 56px; }
  .film { height: auto; min-height: 0; margin-top: var(--header-h); overflow: visible; }
  .film video { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; }
  .film-bar { position: relative; }
  .film-ui { position: static; padding-top: 14px; color: var(--fg); mix-blend-mode: normal; background: var(--bg); flex-wrap: wrap; }
  .film-btn:hover { background: var(--surface); }
  .film-hint { display: none; }
  .sec-head > .mono, .sec-title { grid-column: 1 / -1; }
  .work-row { grid-template-columns: 1fr; gap: 10px; }
  .wr-idx, .wr-name, .wr-thesis, .wr-meta { grid-column: 1 / -1; }
  .wr-idx { padding-top: 0; }
  .reels-pin { min-height: 0; }
  .reels-intro > .mono, .reels-intro h2, .reels-intro p { grid-column: 1 / -1; }
  .reels-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; overscroll-behavior-x: contain; }
  .reels-track::-webkit-scrollbar { display: none; }
  .reel { width: 62vw; scroll-snap-align: start; }
  .reel-end { width: 76vw; padding-bottom: 20px; scroll-snap-align: start; }
  .feature-copy, .feature-media { grid-column: 1 / -1; position: static; }
  .feature-media { padding-bottom: 0; }
  .cs-sec-head { grid-column: 1 / -1; position: static; flex-direction: row; gap: 14px; }
  .cs-sec-body, .cs-sec.is-wide .cs-sec-body { grid-column: 1 / -1; }
  .f-about { grid-column: 1 / -1; }
  .f-col, .f-col.first { grid-column: span 6; }
  .g-4 > *, .g-3 > * { grid-column: span 6; }
  .g-6 > * { grid-column: span 4; }
  .g-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery > .wide { grid-column: 1 / -1; }
  .tl-row { grid-template-columns: 1fr; gap: 6px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
}
@media (max-width: 620px) {
  .nav { gap: 16px; }
  .wordmark b { display: none; }
  .numbers { grid-template-columns: 1fr; }
  .num, .num:nth-child(3n + 1), .num:nth-child(2n + 1) { padding-left: 0; border-left: 0; min-height: 0; }
  .num-v { margin-top: 16px; }
  .stat-strip, .scores { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
  .g-6 > * { grid-column: span 6; }
  .book th:nth-child(3), .book td:nth-child(3) { display: none; }
  .film-btn { height: 36px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .marquee { overflow-x: auto; }
}
html.motion-off *, html.motion-off *::before, html.motion-off *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
html.motion-off::view-transition-group(*), html.motion-off::view-transition-old(*), html.motion-off::view-transition-new(*) { animation: none !important; }
html.motion-off .marquee { overflow-x: auto; }
