/* fonts served from the site itself (OFL): no request to Google */
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/chivo-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Chivo Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/chivo-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/roboto-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("assets/fonts/roboto-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* =====================================================================
   yū creatives ~ lime signal on an ink field. one voice: roboto mono.
   ===================================================================== */
:root {
  --ink: #0b0b0c;
  --ink-2: #141600;
  --lime: #dafe04;
  --milk: #ecebe8;
  --mute: rgba(236, 235, 232, .5);
  --f: "Roboto Mono", ui-monospace, Menlo, monospace;
  --f-head: "Chivo Mono", "Roboto Mono", ui-monospace, monospace;
  --gutter: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --tex-lime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.855 0 0 0 0 0.996 0 0 0 0 0.016 0 0 0 -11 7.7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-milk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.925 0 0 0 0 0.92 0 0 0 0 0.91 0 0 0 -11 7.7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.078 0 0 0 0 0.086 0 0 0 0 0 0 0 0 -11 7.7'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --tone: #c2dc12;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { background: var(--ink); overflow-x: clip; scrollbar-width: thin; scrollbar-color: var(--lime) var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--ink); color: var(--milk); font: 400 12px/1.6 var(--f); letter-spacing: .04em; text-transform: lowercase; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--lime); color: var(--ink-2); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, p { font-weight: inherit; }
:focus-visible { outline: 1px solid var(--lime); outline-offset: 4px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mk { width: 2.05em; height: 1em; display: inline-block; vertical-align: -.1em; fill: currentColor; }

/* every piece of type carries the print: worn for display, fine for labels */
/* one print for every heading: the colour itself is worn, painted once into the glyphs (no masks, no filters: nothing to recompute while scrolling) */
.fx-worn, .fx-worn .ln { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 170px 170px; background-image: var(--tex, var(--tex-milk)); }
.fx-worn { padding: .12em .2em; margin: -.12em -.2em; }
.title .fx-worn, .tex-lime, .big .ln:first-child { --tex: var(--tex-lime); }
.big .ln + .ln { --tex: var(--tex-milk); }
/* a shadow would paint over glyphs whose fill is the texture, so the halo is a soft dark field behind the block instead */
.big { position: relative; isolation: isolate; }
.big::before { content: ""; position: absolute; z-index: -1; inset: -45% -18% -45% -12%; background: radial-gradient(closest-side, rgba(11, 11, 12, .82), rgba(11, 11, 12, .55) 55%, transparent); pointer-events: none; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- surfaces ---------- */
#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 700ms var(--ease); }
.gl-ready #gl { opacity: 1; }
main { position: relative; z-index: 2; }

/* ---------- the note panel: the footer form, folded into the corner ---------- */
.panel { position: fixed; z-index: 20; right: var(--gutter); top: 64px; width: min(360px, calc(100vw - 2 * var(--gutter))); padding: 18px 20px 20px; background: rgba(11, 11, 12, .92); color: var(--milk); box-shadow: inset 0 0 0 1px rgba(218, 254, 4, .5), 0 0 40px 6px rgba(218, 254, 4, .12); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--lime); margin-bottom: 12px; }
.panel-close { background: none; border: 0; color: var(--milk); font: 400 16px/1 var(--f); cursor: pointer; padding: 2px 6px; }
.panel .note-form { margin: 0; max-width: none; }
.panel .note-form input, .panel .note-form textarea { color: var(--milk); border-bottom-color: rgba(236, 235, 232, .3); }
.panel .note-form input::placeholder, .panel .note-form textarea::placeholder { color: rgba(236, 235, 232, .35); }
.panel .note-form input:focus, .panel .note-form textarea:focus { border-bottom-color: var(--lime); }
.panel .note-send button { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.panel .note-send button:hover { background: var(--lime); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--lime), 0 0 30px 4px rgba(218, 254, 4, .35); }
.panel .note-send p { color: var(--mute); }

/* ---------- top bar: three small words, nothing moves ---------- */
.top { position: fixed; z-index: 10; inset: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px var(--gutter); font-size: 11px; color: var(--milk); transition: color 700ms var(--ease); pointer-events: none; }
.top > * { pointer-events: auto; }
.top::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; background: linear-gradient(rgba(11, 11, 12, .92) 0%, rgba(11, 11, 12, .78) 55%, rgba(11, 11, 12, 0)); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; justify-self: start; }
.brand .mk { width: 2.4em; height: 1.2em; color: var(--lime); transition: color 700ms var(--ease); }
.chapter { display: flex; gap: 10px; }
.chapter .site { color: var(--mute); }
.chapter .sep { color: var(--lime); opacity: .7; }
.chapter [data-chn] { color: var(--lime); }
.chapter [data-cht] { opacity: .7; }
.talk-link { justify-self: end; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 4px 0; }
.talk-link[aria-expanded="true"] { color: var(--lime); }

/* ---------- 00 · field ---------- */
.field { position: relative; }
.js .field { height: 340vh; }
.stage { position: relative; min-height: 100svh; padding: 34vh var(--gutter) 10vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 18px; }
.js .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.hud { position: absolute; display: flex; flex-direction: column; gap: 3px; color: var(--mute); white-space: nowrap; font-size: 11px; text-align: left; }
.hud-tl { left: var(--gutter); top: 80px; }
.hud-tr { right: var(--gutter); top: 80px; text-align: right; }
.hud-bl { left: var(--gutter); bottom: 26px; }
.hud-br { right: var(--gutter); bottom: 26px; text-align: right; }
.cue-btn { background: none; border: 0; padding: 8px 0 8px 12px; margin: -8px 0 -8px -12px; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; z-index: 3; }
.cue-btn b { font-weight: 400; }
.cue-btn:hover b, .autoplay .cue-btn b { text-decoration: underline; text-underline-offset: 4px; }
.cue { color: var(--lime); display: inline-grid; justify-items: end; gap: 6px; }
.cue b { font-weight: 400; }
.cue i { font-style: normal; writing-mode: vertical-rl; letter-spacing: 0; line-height: 1; opacity: .8; }
.dir-title, .big, .talk-title { font-family: var(--f-head); }
.lockup { position: relative; display: grid; justify-items: center; gap: 14px; }
.title { position: relative; font-family: var(--f); font-size: clamp(20px, 2.6vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: .14em; color: var(--lime); }
.title .sharp { display: inline-block; }
.tag { color: var(--lime); font-size: clamp(12px, 1.1vw, 15px); letter-spacing: .18em; }
.sub { color: var(--mute); font-size: 11px; }

/* ---------- 01 · make ---------- */
.make { position: relative; padding: 24vh var(--gutter) 46vh; }
.label { color: var(--mute); font-size: 11px; margin-bottom: clamp(36px, 7vh, 80px); }
.dirs { display: grid; gap: clamp(36px, 7vh, 84px); }
.dir-title { font-size: clamp(24px, 4vw, 62px); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--milk); }
/* big titles arrive by a wipe on the compositor: no text repaints, no relayout */
.js .reveal { opacity: 0; transform: translateX(-28px); }
.js .reveal.on { animation: arrive 900ms var(--ease) forwards; }
@keyframes arrive { to { opacity: 1; transform: none } }
.dir-text { margin-top: 12px; max-width: 48ch; color: var(--mute); font-size: 12px; }

/* ---------- 02 · method ---------- */
.method { position: relative; }
.js .method { height: 320vh; }
.method-stage { position: relative; min-height: 100svh; padding: 14vh var(--gutter) 8vh; display: grid; grid-template-rows: auto 1fr auto; }
.js .method-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.method .label { margin: 0; }
.big { align-self: center; justify-self: start; display: block; font-size: clamp(26px, 4.4vw, 70px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; color: var(--lime); white-space: nowrap; }
.big .ln { display: block; width: max-content; }
.big .ln + .ln { color: var(--milk); }
.steps { display: flex; gap: clamp(20px, 4vw, 60px); font-size: 11px; }
.steps li { color: var(--mute); display: flex; gap: 8px; transition: color 500ms; }
.steps li span { color: var(--lime); opacity: .5; }
.steps li.lit { color: var(--milk); }
.steps li.lit span { opacity: 1; }

/* ---------- 03 · work ---------- */
.work { position: relative; }
.js .work { height: 220vh; }
.work-stage { position: relative; min-height: 100svh; padding: 14vh var(--gutter) 8vh; display: grid; grid-template-rows: auto 1fr; }
.js .work-stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.work .label { margin: 0; }
.index { align-self: end; display: grid; gap: 8px; font-size: 11px; }
.index li { display: grid; grid-template-columns: 24px auto; gap: 8px 10px; color: var(--mute); transition: color 500ms; }
.index li span { color: var(--lime); opacity: .45; }
.index li em { grid-column: 2; font-style: normal; opacity: 0; max-height: 0; overflow: hidden; transition: opacity 500ms, max-height 500ms; }
.index li.on { color: var(--milk); }
.index li.on span { opacity: 1; }
.index li.on em { opacity: .6; max-height: 2em; }
/* a transmission on air: the index entry is a link */
.index .work-link { color: inherit; text-decoration: none; pointer-events: auto; background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 1px no-repeat; transition: background-size 200ms var(--ease), color 300ms; }
.index .work-link:hover, .index .work-link:focus-visible { color: var(--lime); background-size: 100% 1px; }
.index li.live em { opacity: .6; max-height: 2em; }

/* ---------- 04 · talk: back to the dark field; the tone hangs beside the line with the mark on it ---------- */
.talk { position: relative; min-height: 92svh; display: grid; align-content: end; padding: 16vh var(--gutter) 0; color: var(--milk); }
.talk-inner { display: grid; gap: 18px; align-content: start; max-width: 600px; }
.talk-title { font-size: clamp(26px, 4.4vw, 70px); font-weight: 500; line-height: 1.06; letter-spacing: -.03em; margin-bottom: 4px; position: relative; isolation: isolate; }
.talk-title .ln { display: block; width: max-content; }
.talk-title .ln:first-child { --tex: var(--tex-lime); }
.talk-title .ln + .ln { --tex: var(--tex-milk); }
.talk-title::before { content: ""; position: absolute; z-index: -1; inset: -45% -18% -45% -12%; background: radial-gradient(closest-side, rgba(11, 11, 12, .8), rgba(11, 11, 12, .5) 55%, transparent); pointer-events: none; }
.talk-note { font-size: 11px; color: var(--mute); }
.talk-link { transition: opacity 500ms var(--ease); }
.at-end .talk-link { opacity: 0; pointer-events: none; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { display: inline-block; padding: 10px 16px; font-size: 12px; font-weight: 500; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(218, 254, 4, .7), 0 0 14px 0 rgba(218, 254, 4, .12); transition: box-shadow 400ms var(--ease), background 400ms var(--ease), color 400ms var(--ease); }
.links a:hover, .links a:focus-visible { background: var(--lime); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--lime), 0 0 30px 4px rgba(218, 254, 4, .35); }
.note-form { display: grid; gap: 14px; max-width: 520px; margin-top: 10px; }
.note-form label { display: grid; gap: 6px; font-size: 10px; color: var(--mute); }
.note-form input, .note-form textarea { width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(236, 235, 232, .28); background: transparent; color: var(--milk); font: 400 13px/1.5 var(--f); letter-spacing: .02em; text-transform: none; outline: none; resize: none; transition: border-color 400ms; }
.note-form input::placeholder, .note-form textarea::placeholder { color: rgba(236, 235, 232, .32); }
.note-form input:focus, .note-form textarea:focus { border-color: var(--lime); }
.note-send { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--mute); }
.note-send button { padding: 10px 16px; font: 500 12px/1.4 var(--f); letter-spacing: .04em; text-transform: lowercase; color: var(--lime); background: transparent; border: 0; box-shadow: inset 0 0 0 1px rgba(218, 254, 4, .7); cursor: pointer; transition: box-shadow 400ms var(--ease), background 400ms var(--ease), color 400ms var(--ease); }
.note-send button:hover, .note-send button:focus-visible { background: var(--lime); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--lime), 0 0 30px 4px rgba(218, 254, 4, .35); }
.note-send button:disabled { opacity: .5; }
/* the mark on the sphere: ink, sized and placed from the scene every frame, a quiet turn */
.talk-mark { position: fixed; z-index: 1; left: 0; top: 0; width: 100px; height: auto; aspect-ratio: 399.9 / 195.9; opacity: 0; pointer-events: none; transform-origin: 50% 50%; overflow: visible; will-change: transform, opacity; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 44px 0 22px; font-size: 11px; color: var(--mute); }
.foot p:first-child { display: inline-flex; align-items: center; gap: .6em; font-weight: 500; color: var(--milk); }
.foot .mk { width: 2.4em; height: 1.2em; }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .field, .js .method, .js .work { height: auto; }
  .js .stage, .js .method-stage, .js .work-stage { position: static; height: auto; }
  .index li em { opacity: .6; max-height: none; }
}

/* ---------- phones: the line sits at the top of the method shot so the monolith's log has the lower half; the end leaves room above the title for the tone ---------- */
@media (max-width: 760px) {
  .big { align-self: start; margin-top: 3vh; }
  .talk { min-height: 100svh; padding-top: 34svh; }
}

/* ---------- the talk panel: compact, an extra way in rather than a second contact page ---------- */
.panel { width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 12px 14px 14px; }
.panel-head { margin-bottom: 6px; font-size: 10px; }
.panel-close { font-size: 13px; padding: 0 2px; }
.panel .note-form { gap: 8px; }
.panel .note-form label { gap: 2px; font-size: 9px; }
.panel .note-form input, .panel .note-form textarea { padding: 4px 0; font-size: 11px; line-height: 1.4; }
.panel .note-send button { padding: 6px 10px; font-size: 10px; }
.note-form input, .note-form textarea { font-size: 12px; }
@media (max-width: 760px) {
  .panel { top: 56px; right: 12px; left: 12px; width: auto; }
  .panel .note-form { grid-template-columns: 1fr; }
}

/* ---------- hero call-outs and the chapter sweep ---------- */
.tags3d span { position: fixed; left: 0; top: 0; z-index: 2; font: 400 10px/1 var(--f); letter-spacing: .12em; color: var(--lime); opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform, opacity; transition: opacity 400ms; }
.tags3d span::before { content: ""; display: inline-block; width: 26px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; opacity: .55; }
.sweep { position: fixed; left: 0; right: 0; top: 0; height: 1px; z-index: 9; background: var(--lime); box-shadow: 0 0 14px 2px rgba(218, 254, 4, .5); opacity: 0; pointer-events: none; }
.sweep.go { animation: sweep 1000ms cubic-bezier(.55, 0, .2, 1) forwards; }
@keyframes sweep { 0% { transform: translateY(0); opacity: 0 } 12% { opacity: .85 } 100% { transform: translateY(100vh); opacity: 0 } }
@media (max-width: 760px) { .tags3d { display: none; } }

/* ---------- what we make: the list on the left, the scope pinned on the right ---------- */
.make { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 40vw); column-gap: 5vw; align-items: start; }
.make .label { grid-column: 1 / -1; }
.make .dirs { grid-column: 1; grid-row: 2; }
.scope { grid-column: 2; grid-row: 2; position: sticky; top: calc(50vh - 190px); display: grid; gap: 10px; font-size: 10px; letter-spacing: .1em; color: var(--mute); }
.scope-head, .scope-foot { display: flex; justify-content: space-between; gap: 12px; }
.scope-head [data-scope-ch] { color: var(--lime); }
.scope-head [data-scope-name] { color: var(--milk); }
.scope-cv { width: 100%; height: 340px; display: block; }
.dir { transition: opacity 600ms var(--ease); }
.js .dirs.scoped .dir { opacity: .32; }
.js .dirs.scoped .dir.on { opacity: 1; }
@media (max-width: 860px) { .make { display: block; } .scope { display: none; } .js .dirs.scoped .dir { opacity: 1; } }

/* ---------- the manifesto behind the mark ---------- */
.manifesto { position: fixed; z-index: 2; left: 50%; top: 0; transform: translate(-50%, 0); display: grid; gap: 6px; justify-items: center; text-align: center; pointer-events: none; opacity: 0; font-size: 12px; letter-spacing: .1em; color: var(--milk); }
.manifesto .mf-head { font-family: var(--f-head); font-size: clamp(20px, 2.2vw, 30px); color: var(--lime); letter-spacing: .02em; margin-bottom: 8px; }
.manifesto .mf-tail { color: var(--lime); margin-top: 6px; }
.manifesto p { white-space: nowrap; }
@media (max-width: 760px) {
  .manifesto { width: calc(100vw - 2 * var(--gutter)); font-size: 11px; }
  .manifesto p { white-space: normal; }
}
@media (max-width: 760px) { .index li:not(.live) { display: none; } }

/* the glow behind the tone at the end: a long, smooth falloff, screened over the scene */
.tone-glow { position: fixed; left: 0; top: 0; z-index: 1; border-radius: 50%; pointer-events: none; opacity: 0; mix-blend-mode: screen; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(218, 254, 4, 0) 0%, rgba(218, 254, 4, 0) 30%, rgba(218, 254, 4, .3) 39%, rgba(218, 254, 4, .17) 50%, rgba(218, 254, 4, .08) 64%, rgba(218, 254, 4, .03) 80%, rgba(218, 254, 4, .008) 92%, rgba(218, 254, 4, 0) 100%); }

.note-legal { font-size: 10px; color: var(--mute); letter-spacing: .06em; }
.note-legal a, .foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.note-legal a:hover, .foot a:hover { color: var(--lime); }
.nw { white-space: nowrap; }
