/* lenis 1.3.29 base styles (inlined to avoid a render-blocking request) */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}


/* sandbox.cv — one dark room, lit things.
   Palette: soot ground, lifted ink, one lime accent. No purple, no pink. */

:root {
  --bg: #0d0f0c;
  --surface: #161914;
  --surface-2: #1d211a;
  --ink: #f1f0ea;
  --muted: #a6a69c;
  --accent: #dafa9c;
  --accent-ink: #0d0f0c;

  /* card tones for the loop: dark earth, similar lightness */
  --tone-1: #23281c;
  --tone-2: #1c2527;
  --tone-3: #2a2619;
  --tone-4: #1f2a1e;
  --tone-5: #262624;

  --font: "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace; /* taste-skill-ignore: code and terminal only */

  /* five sizes, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.1vw, 2.25rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem);
  --step-display: clamp(6.5rem, 1rem + 17vw, 17rem);

  --m: 32px;
  --gap-section: clamp(120px, 14vw, 200px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 0px;
}
@media (max-width: 720px) {
  :root { --m: 18px; --step-display: 25vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p, h1, h2, h3, dl, dd, figure, pre, ul { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--m); top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- top bar (top-right, the top-left belongs to the word) ---------- */
.bar {
  position: absolute; top: 0; right: 0; z-index: 10;
  display: flex; gap: 28px; align-items: baseline;
  padding: 26px var(--m);
  font-size: 15px;
}
.bar nav { display: flex; gap: 22px; }
.bar a { text-decoration: none; color: var(--ink); }
.bar nav a { color: var(--muted); transition: color 200ms; }
.bar nav a:hover { color: var(--ink); }
.wordmark { font-weight: 650; font-stretch: 125%; letter-spacing: -0.01em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh; min-height: 600px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 64px var(--m) 20px;
  isolation: isolate;
  overflow: hidden;
}
.sand {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; touch-action: pan-y;
}
.hero-title {
  display: contents;
  font-size: var(--step-display);
  font-weight: 860;
  font-stretch: 125%;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hl { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; position: relative; z-index: 1; pointer-events: none; font: inherit; }
.hl-1 { grid-row: 1; justify-self: start; font-size: var(--step-display); font-weight: 860; font-stretch: 125%; line-height: .84; letter-spacing: -0.035em; text-transform: uppercase; }
.hl-2 { grid-row: 3; justify-self: end; font-size: var(--step-display); font-weight: 860; font-stretch: 125%; line-height: .84; letter-spacing: -0.035em; text-transform: uppercase; }
.hl [data-line] { display: block; }
/* when the sand is drawing the word, the text stays for readers and selection but is not painted */
.js:not(.sand-off) .hl [data-line] { color: transparent; }

.hero-mid {
  grid-row: 2; align-self: center;
  margin-left: 30vw; max-width: 46ch;
  position: relative; z-index: 2;
  padding: 24px 0;
}
.lede { font-size: var(--step-body); line-height: 1.5; max-width: 40ch; }
.hint { margin-top: 22px; font-size: var(--step-small); color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 32px;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 600;
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--radius);
  transition: transform 300ms var(--ease-out), background-color 200ms;
  will-change: transform;
}
.btn span { display: inline-block; transition: transform 300ms var(--ease-out); }
.btn:hover { background: #e6ffb6; }
.btn:active { transform: scale(0.97); }

/* ---------- shared headings ---------- */
.h2 {
  font-size: var(--step-head);
  font-weight: 760;
  font-stretch: 125%;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > [data-rise] { display: block; }

/* ---------- house rules: pinned statement, specimens pass in the margins ---------- */
.intro {
  position: relative;
  height: 190svh;
  margin-top: calc(var(--gap-section) * 0.3);
}
.intro-stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center;
  z-index: 2;
}
.intro-copy { width: min(54vw, 860px); text-align: center; }
.intro-copy .h2 { margin-bottom: 36px; }
.statement { font-size: var(--step-lead); line-height: 1.22; letter-spacing: -0.01em; max-width: 30ch; margin: 0 auto; }

.specimen { position: absolute; z-index: 1; }
.specimen img { width: 100%; object-fit: cover; }
.specimen figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.sp-1 { left: var(--m); top: 18svh; width: 19vw; }
.sp-1 img { aspect-ratio: 4 / 5; }
.sp-2 { right: var(--m); top: 70svh; width: 20vw; }
.sp-2 img { aspect-ratio: 4 / 5; }
.sp-3 { left: calc(var(--m) + 3vw); top: 118svh; width: 16vw; }
.sp-3 img { aspect-ratio: 1; }

/* ---------- experiments: loose scatter ---------- */
.work { padding: calc(var(--gap-section) * 0.4) var(--m) 0; }
.work-h { font-size: var(--step-head); margin-bottom: clamp(56px, 7vw, 110px); }
.scatter {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
}
.exp { position: relative; margin-bottom: clamp(90px, 13vh, 150px); }
.exp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 14px; }
.exp-name { font-size: var(--step-lead); font-weight: 720; font-stretch: 112%; letter-spacing: -0.015em; line-height: 1.05; }
.exp-status { font-size: var(--step-small); color: var(--muted); }
.exp-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; animation: blink 2.4s steps(1) infinite; }
.exp-line { margin-top: 18px; font-size: var(--step-body); max-width: 46ch; }
.exp-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--step-body); }
.exp-links a { color: var(--ink); text-decoration-color: rgba(218, 250, 156, 0.6); transition: color 200ms, text-decoration-color 200ms; }
.exp-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
@keyframes blink { 50% { opacity: 0.25; } }

.exp:nth-of-type(1) { grid-column: 1 / span 6; }
.exp:nth-of-type(2) { grid-column: 8 / span 5; margin-top: clamp(80px, 12vw, 200px); }
.exp:nth-of-type(3) { grid-column: 3 / span 7; }
.exp:nth-of-type(4) { grid-column: 7 / span 6; }
.remark {
  grid-column: 1 / span 5; align-self: center;
  font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; color: var(--muted);
  margin-bottom: clamp(90px, 13vh, 150px);
  max-width: 22ch;
}
.remark strong { color: var(--ink); font-weight: 500; }

/* ---------- interface fragments (data-ui keeps their own borders) ---------- */
[data-ui].frag {
  position: relative; overflow: hidden;
  background: var(--surface);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  transform-origin: 50% 100%;
}
[data-ui] .frag-top {
  display: flex; align-items: center; gap: 7px; padding: 12px 14px;
  background: var(--surface-2); font-size: 13px; color: var(--muted);
}
[data-ui] .frag-top i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f35; display: block; }
[data-ui] .frag-top b { font-weight: 500; margin-left: 8px; color: var(--ink); }
[data-ui] code, [data-ui] pre { font-family: var(--mono); /* taste-skill-ignore: code */ font-size: 12.5px; }

/* pipeline (byagents) */
[data-ui].f-pipeline { aspect-ratio: 3 / 2; display: grid; grid-template-rows: auto 1fr; }
[data-ui] .pipe { display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: 1.35fr 1fr; gap: 18px; padding: 20px; min-height: 0; }
[data-ui] .pipe ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
[data-ui] .pipe li { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 6px; font-size: 14px; }
[data-ui] .pipe li .st { font-size: 13px; color: var(--muted); }
[data-ui] .pipe li .ic { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #55604a; }
[data-ui] .pipe li.done .ic { background: var(--accent); border-color: var(--accent); }
[data-ui] .pipe li.run .ic { border-color: var(--accent); border-top-color: transparent; animation: spin 900ms linear infinite; }
[data-ui] .pipe li.run { background: #262c1f; }
[data-ui] .pipe .prog { grid-column: 2 / 4; height: 3px; background: #33392b; border-radius: 2px; overflow: hidden; }
[data-ui] .pipe .prog i { display: block; height: 100%; width: 40%; background: var(--accent); animation: fill 3.6s var(--ease-out) infinite; }
[data-ui] .reel {
  background: #0a0b09; border-radius: 8px; aspect-ratio: 9 / 16; height: 100%; width: auto; min-height: 0; justify-self: center;
  display: grid; align-content: end; padding: 14px; gap: 8px; overflow: hidden; position: relative;
}
[data-ui] .reel .reel-word { font-size: clamp(18px, 2vw, 30px); font-weight: 860; font-stretch: 125%; line-height: 0.9; text-transform: uppercase; letter-spacing: -0.03em; }
[data-ui] .reel .reel-cap { font-size: 12px; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fill { 0% { width: 6%; } 80%, 100% { width: 96%; } }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(340%); } }

/* phone (Fingertip) */
[data-ui].f-phone { aspect-ratio: 4 / 5; background: #11130f; display: grid; place-items: center; border-radius: 10px; }
[data-ui] .phone {
  width: 52%; aspect-ratio: 9 / 19.5; background: #000; border-radius: 34px; padding: 10px;
  box-shadow: 0 0 0 3px #2b2f27; position: relative;
}
[data-ui] .phone-screen { height: 100%; border-radius: 26px; background: #050505; display: grid; grid-template-rows: auto 1fr auto; padding: 34px 14px 16px; gap: 12px; }
[data-ui] .phone-app { font-size: clamp(16px, 1.6vw, 24px); font-weight: 760; font-stretch: 112%; letter-spacing: -0.01em; }
[data-ui] .phone-tile { align-self: center; justify-self: center; width: 78%; background: var(--accent); color: var(--accent-ink); border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; font-weight: 760; font-size: clamp(18px, 1.8vw, 28px); position: relative; }
[data-ui] .phone-tile::after { content: ""; position: absolute; inset: -7px; border-radius: 24px; border: 3px solid #f1f0ea; animation: focusring 2.4s var(--ease-out) infinite; }
[data-ui] .phone-vo { background: #1a1d17; border-radius: 12px; padding: 10px 12px; font-size: 12px; line-height: 1.35; color: var(--ink); }
[data-ui] .phone-vo b { display: block; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
@keyframes focusring { 0% { opacity: 0; transform: scale(1.08); } 30%, 100% { opacity: 1; transform: none; } }

/* pull request (open source) */
[data-ui].f-pr { display: grid; grid-template-rows: auto 1fr; }
[data-ui] .pr-body { padding: 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-height: 0; }
[data-ui] .pr-log { margin: 0; color: #cfd0c6; line-height: 1.75; white-space: pre-wrap; overflow: hidden; }
[data-ui] .pr-log .c { color: var(--accent); }
[data-ui] .pr-log .d { color: var(--muted); }
[data-ui] .pr-flow { display: grid; align-content: start; gap: 10px; }
[data-ui] .pr-step { display: flex; align-items: center; gap: 10px; background: var(--surface-2); padding: 10px 12px; border-radius: 6px; font-size: 14px; }
[data-ui] .pr-step i { width: 10px; height: 10px; border-radius: 50%; background: #55604a; flex: none; }
[data-ui] .pr-step.on i { background: var(--accent); }
[data-ui] .pr-step.now { background: #262c1f; }
[data-ui] .pr-step.now i { animation: blink 1.2s steps(1) infinite; background: var(--accent); }
[data-ui] .pr-step span { margin-left: auto; color: var(--muted); font-size: 13px; }

/* desktop (CloudOS) */
[data-ui].f-desktop { aspect-ratio: 3 / 2; display: grid; grid-template-rows: auto 1fr; }
[data-ui] .desk { display: grid; grid-template-columns: 30% 1fr; min-height: 0; }
[data-ui] .desk-side { background: #121410; padding: 16px 12px; display: grid; align-content: start; gap: 4px; font-size: 14px; }
[data-ui] .desk-side span { padding: 7px 10px; border-radius: 6px; color: var(--muted); }
[data-ui] .desk-side span.on { background: var(--surface-2); color: var(--ink); }
[data-ui] .desk-files { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; position: relative; }
[data-ui] .file { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: #cfd0c6; text-align: center; padding: 10px 4px; border-radius: 8px; }
[data-ui] .file.sel { background: #262c1f; color: var(--ink); }
[data-ui] .file svg { width: 44px; height: 36px; }
[data-ui] .file.drag { position: absolute; left: 18px; top: 18px; width: calc((100% - 36px - 28px) / 3); background: #2b3223; opacity: 0.92; animation: drag 5s var(--ease-out) infinite; }
@keyframes drag {
  0%, 12% { transform: translate(0, 0); }
  45%, 60% { transform: translate(200%, 120%); }
  90%, 100% { transform: translate(0, 0); }
}

/* ---------- the loop: cards cross a held photograph ---------- */
.loop { position: relative; margin-top: calc(var(--gap-section) * 0.6); }
.loop-stage { position: relative; height: 100svh; overflow: hidden; }
.loop-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.5) saturate(0.9);
}
.loop-h { position: absolute; left: var(--m); top: 56px; z-index: 2; max-width: 14ch; }
.loop-credit { position: absolute; right: var(--m); bottom: 20px; z-index: 2; font-size: var(--step-small); color: #d4d4cc; }
.loop-track {
  position: absolute; top: 50%; left: 0; z-index: 3;
  display: flex; gap: 40px;
  padding-left: 46vw; padding-right: var(--m);
  transform: translateY(-46%);
  will-change: transform;
}
.card {
  flex: none; width: min(640px, 56vw); height: min(540px, 62svh);
  display: grid; grid-template-rows: 64% 36%;
  border-radius: var(--radius); overflow: hidden;
}
.card-code {
  background: #0a0b09; padding: 28px 36px; display: grid; align-content: center;
  font-family: var(--mono); /* taste-skill-ignore: code */ font-size: clamp(14px, 1.2vw, 17px); line-height: 1.7; color: #d9dad0;
  white-space: pre-wrap; overflow: hidden;
}
.card-code code { font-family: inherit; }
.card-panel { padding: 22px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.card-name { font-size: var(--step-lead); font-weight: 740; font-stretch: 112%; line-height: 1.02; letter-spacing: -0.015em; }
.card-text { font-size: 16px; line-height: 1.45; text-align: right; }
.card:nth-child(1) .card-panel { background: var(--tone-1); }
.card:nth-child(2) .card-panel { background: var(--tone-2); }
.card:nth-child(3) .card-panel { background: var(--tone-3); }
.card:nth-child(4) .card-panel { background: var(--tone-4); }
.card:nth-child(5) .card-panel { background: var(--tone-5); }

/* without the pinned scene the row scrolls sideways by hand */
.no-pin .loop-stage { height: auto; overflow: visible; padding: 56px 0 72px; }
.no-pin .loop-h { position: relative; top: 0; }
.no-pin .loop-track { position: relative; top: 0; transform: none; padding-left: var(--m); margin-top: 48px; overflow-x: auto; scroll-snap-type: x mandatory; }
.no-pin .card { scroll-snap-align: start; }
.no-pin .loop-credit { position: relative; right: auto; bottom: auto; padding: 18px var(--m) 0; }

/* ---------- about ---------- */
.about { padding: var(--gap-section) var(--m) 0; }
.about-h { margin-bottom: 56px; }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.facts { grid-column: 1 / span 3; display: grid; gap: 20px; align-content: start; padding-top: 8px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.facts a { text-decoration-color: rgba(218, 250, 156, 0.6); }
.facts a:hover { color: var(--accent); }
.bio { grid-column: 4 / span 9; }
.bio-lead { font-size: var(--step-lead); line-height: 1.24; letter-spacing: -0.01em; }
.bio-lead::after { content: ""; display: block; clear: both; }
.dropcap { float: left; width: 3.72em; height: 3.72em; object-fit: cover; margin: 0.2em 0.5em 0 0; border-radius: var(--radius); }
.bio-second { margin-top: 1.2em; font-size: var(--step-lead); line-height: 1.24; color: var(--muted); max-width: 40ch; }

/* ---------- terminal ---------- */
.term-section { padding: var(--gap-section) var(--m) 0; display: grid; justify-items: center; }
.term-h { font-size: var(--step-head); font-weight: 760; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; text-align: center; margin-bottom: 44px; }
.term-h .soft { color: var(--muted); }
[data-ui].term {
  width: min(760px, 100%);
  background: #090a08; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px #262a22;
}
[data-ui] .term-top { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #151812; }
[data-ui] .term-top .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3f35; }
[data-ui] .term-title { margin-left: 10px; font-size: 13px; color: var(--muted); font-family: var(--mono); /* taste-skill-ignore: code */ }
[data-ui] .term-screen { position: relative; height: clamp(260px, 38svh, 360px); }
[data-ui] .term-out {
  position: absolute; inset: 0; overflow-y: auto; padding: 18px 20px 10px;
  font-family: var(--mono); /* taste-skill-ignore: code */ font-size: 13.5px; line-height: 1.7; color: #d9dad0;
  white-space: pre-wrap; word-break: break-word;
  scrollbar-width: thin; scrollbar-color: #33392b transparent;
}
[data-ui] .term-out .u { color: var(--accent); }
[data-ui] .term-out .m { color: var(--muted); }
[data-ui] .term-out a { color: var(--accent); }
[data-ui] .term-sand { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
[data-ui] .term-sand.live { pointer-events: auto; cursor: crosshair; touch-action: none; }
[data-ui] .term-row { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; background: #f1f0ea; }
[data-ui] .term-ps { font-family: var(--mono); /* taste-skill-ignore: code */ color: #3b4a10; font-weight: 500; }
[data-ui] .term-row input {
  flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent;
  font-family: var(--mono); /* taste-skill-ignore: code */ font-size: 16px; color: #0d0f0c;
}
[data-ui] .term-row input::placeholder { color: #6b6d63; }
[data-ui] .term-row:focus-within { box-shadow: inset 0 0 0 2px #7d9b2c; }
[data-ui] .term-go {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: #0d0f0c; color: var(--accent); display: grid; place-items: center;
  transition: transform 200ms var(--ease-out);
}
[data-ui] .term-go:hover { transform: translateX(2px); }
[data-ui] .term-go:active { transform: scale(0.92); }
.term-note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); text-align: center; }
.term-contact { margin-top: 56px; font-size: var(--step-body); text-align: center; }
.term-contact a { text-decoration-color: rgba(218, 250, 156, 0.6); }
.term-contact a:hover { color: var(--accent); }

/* ---------- footer: one quiet line ---------- */
.foot {
  margin-top: clamp(140px, 26svh, 260px);
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline;
  padding: 0 var(--m) 30px;
  font-size: 15px; color: var(--muted);
}
.foot-links { display: flex; gap: 24px; }
.foot-links a { color: var(--ink); text-decoration: none; transition: color 200ms; }
.foot-links a:hover { color: var(--accent); }
.foot-end { justify-self: end; display: flex; gap: 24px; align-items: baseline; }
.credits summary { cursor: pointer; color: var(--ink); list-style: none; }
.credits summary::-webkit-details-marker { display: none; }
.credits[open] ul {
  position: absolute; right: var(--m); bottom: 64px; width: min(520px, calc(100vw - 2 * var(--m)));
  background: var(--surface-2); padding: 18px 20px 18px 34px; display: grid; gap: 10px;
  font-size: 14px; color: var(--ink); line-height: 1.45; z-index: 5;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* taste-skill-ignore: real overlay */
}
.foot { position: relative; }

/* ---------- entrances (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js.motion [data-reveal] { opacity: 0; transform: translateY(26px); }
  .js.motion .mask > [data-rise] { transform: translateY(105%); }
}

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .hero-mid { margin-left: 0; }
  .intro { height: auto; margin-top: 40px; padding: var(--gap-section) var(--m) 0; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 12px; row-gap: 20px; }
  .intro-stage { position: relative; height: auto; grid-column: 1 / -1; place-items: start; margin-bottom: 36px; }
  .intro-copy { width: 100%; text-align: left; }
  .statement { margin: 0; }
  .specimen { position: relative; inset: auto; width: auto; }
  .sp-1 { grid-column: 1 / span 7; }
  .sp-2 { grid-column: 6 / span 7; margin-top: 30px; }
  .sp-3 { grid-column: 2 / span 6; margin-top: 10px; }
  .scatter { display: block; }
  .exp { margin-bottom: 84px; }
  .exp:nth-of-type(2) { margin-top: 0; margin-left: 14%; }
  .exp:nth-of-type(3) { margin-right: 10%; }
  .exp:nth-of-type(4) { margin-left: 8%; }
  .remark { margin-bottom: 84px; }
  .about-grid { display: block; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; font-size: 13px; }
  .about-grid .facts { order: 2; }
  .about-grid { display: flex; flex-direction: column-reverse; }
  .card { width: calc(100vw - 2 * var(--m)); height: auto; grid-template-rows: auto auto; }
  .card-code { aspect-ratio: 4 / 3; padding: 20px; font-size: 13px; }
  .card-panel { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px 22px; }
  .card-text { text-align: left; }
}
@media (max-width: 720px) {
  .bar { left: 0; justify-content: space-between; padding: 18px var(--m); font-size: 15px; }
  .bar nav { gap: 16px; }
  .bar nav a[href="#terminal"] { display: none; }
  .hero { padding-top: 96px; padding-bottom: 28px; min-height: 560px; }
  .hero-mid { align-self: center; }
  .bio-lead, .bio-second { font-size: 22px; line-height: 1.28; }
  .dropcap { width: 4.9em; height: 4.9em; }
  [data-ui] .pipe { grid-template-columns: 1fr; padding: 14px; }
  [data-ui] .reel { display: none; }
  [data-ui].f-pipeline { aspect-ratio: auto; }
  [data-ui].f-pr { aspect-ratio: auto; }
  [data-ui] .pr-body { grid-template-columns: 1fr; }
  [data-ui].f-desktop { aspect-ratio: 4 / 3; }
  [data-ui] .desk-side { display: none; }
  [data-ui] .desk { grid-template-columns: 1fr; }
  .term-h { text-align: left; justify-self: start; }
  .term-section { justify-items: stretch; }
  .term-note, .term-contact { text-align: left; }
  .foot { grid-template-columns: 1fr; gap: 8px; font-size: 14px; }
  .foot-end { justify-self: start; }
  .credits[open] ul { right: auto; left: var(--m); bottom: 40px; }
  /* phones: facts as a 2-column list that never clips, bigger tap targets, no tiny captions */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; font-size: 15px; }
  .facts dd { overflow-wrap: anywhere; }
  .bar nav a, .bar .wordmark { padding: 12px 0; margin: -12px 0; }
  .exp-links a, .foot a, .term-contact a, .facts a { display: inline-block; padding: 10px 0; }
  .hint, .cap, figcaption, .term-note { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
