/* ============================================================
   KET Digital, every page that is not the home or 53XV (2026-11-27).
   Asad: "I need all the pages to look like and follow that theme on its own kind of dime." The material is the
   home's (front.css): its ground (#07080c), its ink, one ember (#ff4f1f), its type (Schibsted Grotesk, Martian Mono,
   the same files as /studios/), its header, footer and instrument bar. The scene is not: the static here is a few
   frames of 53XV's bytes drawn once into a tile and flickered by CSS (assets/static.js), so a page costs no 3D.
   Each page does one thing of its own with it (body class), and data-theme="light" is the light version (Mercury).
   ============================================================ */
@font-face { font-family: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url('/assets/fonts/schibsted-grotesk-latin-wght.woff2') format('woff2-variations');
  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: 'Schibsted Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 400 900;
  src: url('/assets/fonts/schibsted-grotesk-latin-ext-wght.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Martian Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 112.5%;
  src: url('/assets/fonts/martian-mono-latin-standard.woff2') format('woff2-variations');
  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: 'Martian Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; font-stretch: 75% 112.5%;
  src: url('/assets/fonts/martian-mono-latin-ext-standard.woff2') format('woff2-variations');
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --g: 7 8 12; --i: 236 234 228;                       /* ground and ink as channels, for the see-through layers */
  --ground: rgb(var(--g)); --ink: rgb(var(--i)); --dim: rgb(var(--i) / 0.66); --faint: rgb(var(--i) / 0.38); --line: rgb(var(--i) / 0.16);
  --ember: #ff4f1f; --ember-ink: #ff7a52;
  --pad: clamp(16px, 2.6vw, 40px); --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Schibsted Grotesk Variable', 'Schibsted Grotesk', system-ui, sans-serif;
  --mono: 'Martian Mono Variable', 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --static-o: 0.4;
  color-scheme: dark;
}
/* the light version: the same page on paper (Mercury) */
[data-theme="light"] {
  --g: 238 236 230; --i: 14 16 22;
  --dim: rgb(var(--i) / 0.7); --faint: rgb(var(--i) / 0.42); --line: rgb(var(--i) / 0.16);
  --ember: #ff4f1f; --ember-ink: #c4380f;
  --static-o: 0.22;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--display); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img, svg, video { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--ground); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: var(--ground); padding: 10px 14px; }
.skip:focus { left: 8px; }
.tag { font: 450 10.5px/1.5 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; text-transform: uppercase; }
[hidden] { display: none !important; }

/* 53XV's static, without 3D: static.js paints a tile of byte static in eight frames; CSS flickers it 12 times a second.
   Each page aims it with --static-mask and dims it with --static-o. */
.static { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; background-repeat: repeat; transition: opacity 1.2s var(--ease);
  -webkit-mask-image: var(--static-mask, radial-gradient(110% 90% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%));
  mask-image: var(--static-mask, radial-gradient(110% 90% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%)); }
html.static-on .static { opacity: var(--static-o); animation: flick 0.667s steps(8) infinite; }
@keyframes flick { to { background-position: -2048px 0; } }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.05;
  background-image: radial-gradient(rgb(var(--i) / 0.9) 0.5px, transparent 0.6px); background-size: 3px 3px; }

/* the frame: name, menu and the button above (the home's) */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 22px; padding: 14px var(--pad);
  background: linear-gradient(to bottom, rgb(var(--g) / 0.94), rgb(var(--g) / 0.72) 70%, rgb(var(--g) / 0)); }
.top .name { font: 800 14px/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; margin-right: auto; text-decoration: none; }
.top nav { display: flex; gap: 20px; }
.top nav a { text-decoration: none; opacity: 0.88; } .top nav a:hover { opacity: 1; }
.top nav a[aria-current] { color: var(--ember-ink); opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); color: var(--ink); background: transparent; text-decoration: none; cursor: pointer;
  font: 450 10.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; text-transform: uppercase; transition: border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease); }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.solid:hover { background: rgb(var(--i) / 0.86); }
.btn.ember { background: var(--ember); color: #07080c; border-color: var(--ember); }
.btn.wide { width: 100%; min-height: 54px; font-size: 11px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* the instruments below (the home's): where you are, what it is, the time */
.inst { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; padding: 24px var(--pad) 12px; color: var(--dim); pointer-events: none;
  /* solid ground under the labels and a fade above them: the page's own words pass underneath without showing through */
  background: linear-gradient(to top, rgb(var(--g)) 0, rgb(var(--g)) 56%, rgb(var(--g) / 0) 100%); }
.inst > :nth-child(2) { text-align: center; } .inst > :last-child { text-align: right; }
.inst b { color: var(--ink); font-weight: 450; }
body:has(.inst) { padding-bottom: 52px; }

/* type */
main { position: relative; z-index: 2; flex: 1; width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; }
h1 .dim, h2 .dim, .dim { color: var(--faint); }
.lede { margin: 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--dim); max-width: 46ch; }
.crumb { display: flex; gap: 10px; color: var(--dim); }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--ink); }
.crumb i { font-style: normal; color: var(--ember-ink); }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; color: var(--dim); }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li > span:first-child { font: 450 10.5px/1 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; color: var(--ember-ink); flex: none; width: 2.8em; }
.list li strong { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.panel { position: relative; border: 1px solid var(--line); background: rgb(var(--g) / 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel::before { content: ''; position: absolute; left: -1px; top: -1px; width: 28px; height: 1px; background: var(--ember); }

/* forms */
.fields { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label { color: var(--dim); }
.field input, .field select, .field textarea { width: 100%; margin: 0; font: 400 16px/1.35 var(--display); color: var(--ink); background: rgb(var(--i) / 0.035); border: 1px solid var(--line); border-radius: 0; padding: 11px 13px; -webkit-appearance: none; appearance: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease); }
.field textarea { min-height: 92px; resize: vertical; }
.field ::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(var(--i) / 0.32); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgb(var(--i) / 0.06); }
.field .pick { position: relative; }
.field .pick::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 34px; cursor: pointer; }
.field select:invalid, .field select:has(> option[value=""]:checked) { color: var(--faint); }
.field select option { color: #0e1016; background: #eceae4; }
.was-tried .field input:invalid, .was-tried .field select:invalid { border-color: var(--ember); }

/* reading: notes, articles, privacy */
.prose { max-width: 68ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.62; color: var(--dim); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; color: var(--ink); font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -0.035em; }
.prose h3 { margin-top: 1.8em; color: var(--ink); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 3px; }
.prose a:hover { color: var(--ember-ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--ember-ink); }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--ember); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font: 450 10.5px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.prose code { font: 400 0.88em/1 var(--mono); color: var(--ink); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { margin-top: 8px; font: 450 10.5px/1.5 var(--mono); letter-spacing: 0.08em; color: var(--faint); }

/* the end of the page (the home's) */
.end { position: relative; z-index: 2; padding: 40px var(--pad) 72px; border-top: 1px solid var(--line); display: grid; gap: 18px; color: var(--dim); background: rgb(var(--g) / 0.78); }
.end .name { margin: 0; font: 800 clamp(40px, 7.6vw, 150px)/0.86 var(--display); letter-spacing: -0.05em; color: var(--ink); }
.end .name i { font-style: normal; color: var(--ember); }
.end nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.end nav a { text-decoration: none; } .end nav a:hover { color: var(--ink); }
.end p { margin: 0; }

/* arrival: the page settles in the way the home's segments do (CSS alone, so nothing waits on a script) */
.rise { animation: rise 0.9s var(--ease) both; }
.rise:nth-child(2) { animation-delay: 0.08s; } .rise:nth-child(3) { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }

/* ---------------- /book: the static gathers behind the form ---------------- */
body.book { --static-mask: radial-gradient(70% 85% at 82% 42%, #000 0%, rgba(0, 0, 0, 0.5) 38%, transparent 74%); --static-o: 0.46; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 470px); grid-template-areas: 'head form' 'more form'; column-gap: clamp(32px, 6vw, 110px); row-gap: 44px; align-items: start;
  max-width: 1400px; margin: 0 auto; padding: clamp(24px, 5vh, 64px) var(--pad) 88px; }
.book-head { grid-area: head; display: grid; gap: 26px; }
.book-head h1 { font-size: clamp(40px, 4.7vw, 78px); max-width: 14ch; }
.book-more { grid-area: more; display: grid; gap: 40px; max-width: 640px; }
.book-more h2 { color: var(--dim); font-weight: 450; letter-spacing: 0.12em; margin-bottom: 14px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.8em 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: clamp(16px, 1.25vw, 18px); line-height: 1.45; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 450 10.5px/1.9 var(--mono); letter-spacing: 0.12em; color: var(--ember-ink); }
.form-panel { grid-area: form; position: relative; padding: clamp(22px, 2.2vw, 30px); display: grid; gap: 18px; }
@media (min-width: 961px) and (min-height: 1020px) { .form-panel { position: sticky; top: 72px; } }
.form-panel .title { margin: 0; font: 800 clamp(24px, 2vw, 30px)/1.02 var(--display); letter-spacing: -0.035em; }
.form-panel .sub { margin: 6px 0 0; color: var(--dim); font-size: 15px; line-height: 1.45; }
.form-panel .guarantee { margin: 0; color: var(--faint); text-align: center; }
.form-panel .guarantee b { color: var(--dim); font-weight: 450; }
.form-success { display: grid; gap: 16px; }
.form-success h2 { font-size: 34px; }
@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; grid-template-areas: 'head' 'form' 'more'; row-gap: 32px; }
  .form-panel { position: relative; top: 0; }
  body.book { --static-mask: radial-gradient(85% 34% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.3) 50%, transparent 85%); --static-o: 0.34; }
}

/* ---------------- the reading pages: notes, a note, privacy, 404 (their markup from the 11-19 build) ---------------- */
.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
section.page-head { position: relative; padding-top: clamp(44px, 10vh, 128px); padding-bottom: clamp(28px, 5vh, 60px); animation: rise 0.9s var(--ease) both; }
p.label { margin: 0 0 26px !important; font: 450 10.5px/1.5 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
p.label a { color: inherit; text-decoration: none; } p.label a:hover { color: var(--ink); }
.hot { color: var(--ember-ink); }
h1.d1 { font-size: clamp(46px, 7.2vw, 128px); max-width: 15ch; }
h1.d1 .ln { display: block; }
h1.note-h1 { font-size: clamp(42px, 5.8vw, 104px); max-width: 17ch; }
section.page-head .lede { margin-top: 28px; }
section.doc { padding-bottom: 120px; animation: rise 0.9s 0.12s var(--ease) both; }
.prose .label { margin-bottom: 2em !important; }
.prose .standfirst { font-size: clamp(20px, 1.75vw, 25px); line-height: 1.46; color: var(--ink); letter-spacing: -0.012em; }
.frame, .note-cta { position: relative; border: 1px solid var(--line); background: rgb(var(--g) / 0.6); padding: 22px 26px !important; }
.frame::before, .note-cta::before { content: ''; position: absolute; left: -1px; top: -1px; width: 28px; height: 1px; background: var(--ember); }
.frame > :first-child, .note-cta > :first-child { margin-top: 0; }
/* the notes index: each note a line you can open */
.notes { list-style: none; margin: 2.2em 0 0 !important; padding: 0 !important; border-top: 1px solid var(--line); }
.notes li + li { margin-top: 0; }
.prose .nl-link { display: grid; gap: 10px; padding: 26px 40px 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; position: relative; }
.nl-link h2 { margin: 0; color: var(--ink); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -0.035em; transition: color 0.4s var(--ease); }
.nl-link p { margin: 0; color: var(--dim); }
.nl-link::after { content: ''; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border-top: 1.5px solid var(--dim); border-right: 1.5px solid var(--dim); transform: translateY(-50%) rotate(45deg); transition: right 0.4s var(--ease), border-color 0.4s var(--ease); }
.prose .nl-link:hover { color: inherit; } .nl-link:hover h2 { color: var(--ember-ink); } .nl-link:hover::after { right: 0; border-color: var(--ember); }
.nl-meta { font: 450 10.5px/1.5 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-ink); }
.hedge { margin-top: 2em !important; color: var(--faint); font-size: 15px; }
/* a note */
.catalog { list-style: none; padding: 0 !important; margin: 1.6em 0 !important; border-top: 1px solid var(--line); }
.catalog li { display: grid; grid-template-columns: 2.8em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.catalog li + li { margin-top: 0; }
.cat-num { font: 450 10.5px/2.2 var(--mono); letter-spacing: 0.12em; color: var(--ember-ink); }
.byline { margin-top: 3.2em !important; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.byline p { margin: 0; } .by-name { color: var(--ink); font-weight: 750; letter-spacing: -0.01em; } .by-role { font-size: 15px; }
.nc-h { margin: 0 0 10px !important; font: 450 10.5px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember-ink); }
.closing-line { color: var(--ink); }
/* 404 */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.btn-row .btn:not(.solid) { background: rgb(var(--g) / 0.78); }
svg.arr { width: 12px; height: 12px; }
/* each page's own static */
body.legal { --static-mask: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.45) 150px, transparent 360px); --static-o: 0.3; }
body.notes { --static-mask: radial-gradient(72% 70% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 76%); --static-o: 0.44; }
body.note { --static-mask: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, 0.5) 220px, transparent 560px); --static-o: 0.34; }
body.lost { --static-mask: radial-gradient(120% 95% at 70% 45%, #000 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0.25) 100%); --static-o: 0.62; }
body.lost main { display: grid; align-content: center; min-height: 72vh; }

/* ---------------- the case studies (/work): 53XV's side, the same template for each ---------------- */
body.case { --static-mask: radial-gradient(80% 55% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%); --static-o: 0.4; }
.label { font: 450 10.5px/1.5 var(--mono); font-stretch: 87.5%; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.kicker .n { color: var(--ember-ink); margin-right: 10px; }
.c-hero { padding-top: clamp(40px, 9vh, 110px); padding-bottom: 40px; display: grid; gap: 26px; animation: rise 0.9s var(--ease) both; }
.c-hero h1 { font-size: clamp(64px, 12vw, 210px); line-height: 0.84; letter-spacing: -0.055em; }
.c-hero h1 .ln { display: block; }
.scope { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope .label { padding: 12px 22px 12px 0; margin-right: 22px; border-right: 1px solid var(--line); }
.scope .label:last-child { border-right: 0; }
.c-window { position: relative; display: block; margin-top: 8px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: rgb(var(--g) / 0.6); overflow: hidden; }
.c-window::before { content: ''; position: absolute; z-index: 2; left: -1px; top: -1px; width: 28px; height: 1px; background: var(--ember); }
.c-window img, .c-window video { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.c-window:hover img { transform: scale(1.012); }
.c-window .cap { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgb(var(--g) / 0.86); }
.c-window .cap b { color: var(--ember-ink); font-weight: 450; }
.c-window .arr { width: 10px; height: 10px; vertical-align: -1px; }
.c-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); padding-top: 40px; padding-bottom: 40px; }
.rail { position: sticky; top: 80px; align-self: start; }
.rail ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rail li a { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--dim); font-size: 14px; line-height: 1.35; transition: color 0.3s var(--ease); }
.rail li a span { font: 450 10px/1.9 var(--mono); color: var(--ember-ink); flex: none; width: 2.2em; }
.rail li a:hover { color: var(--ink); }
.q { padding: 44px 0 52px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.q:first-child { border-top: 0; padding-top: 0; }
.q > header { display: grid; gap: 14px; margin-bottom: 22px; }
.q h2 { font-size: clamp(30px, 3.4vw, 54px); line-height: 0.98; letter-spacing: -0.04em; }
.q .prose { max-width: 62ch; }
.choices, .bench, .points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.choices > li, .bench > li, .points > li { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px 0; border-bottom: 1px solid var(--line); }
.choices h3, .bench h3, .points h3 { font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
.choices p, .bench p, .points p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.5; }
.for { display: grid; gap: 4px; padding-top: 10px; border-top: 1px dashed var(--line); }
.for .label { color: var(--ember-ink); } .for span:last-child { color: var(--ink); }
.src { font: 450 10px/1.5 var(--mono) !important; letter-spacing: 0.06em; color: var(--faint) !important; }
.example { position: relative; margin-top: 26px; padding: 22px 26px; border: 1px solid var(--line); background: rgb(var(--g) / 0.6); display: grid; gap: 10px; }
.example::before { content: ''; position: absolute; left: -1px; top: -1px; width: 28px; height: 1px; background: var(--ember); }
.example p { margin: 0; } .example p:last-child { color: var(--ink); font-size: 17px; line-height: 1.5; }
.events { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.events li { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.events .num { font: 450 10.5px/1.9 var(--mono); color: var(--ember-ink); width: 2.6em; flex: none; }
.events li.main { color: var(--ink); } .events li.main .num { color: var(--ember); }
.dest { display: flex; flex-wrap: wrap; gap: 8px; }
.dest .label { padding: 7px 10px; border: 1px solid var(--line); }
.concept-note, .c-note { color: var(--faint); }
.c-next { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; padding: 40px 0 100px; }
.c-next a { position: relative; display: grid; gap: 14px; padding: 24px 24px 28px; border: 1px solid var(--line); text-decoration: none; color: inherit; background: rgb(var(--g) / 0.5); transition: border-color 0.4s var(--ease); }
.c-next a h3 { font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.04em; transition: color 0.4s var(--ease); }
.c-next a:hover { border-color: var(--ember); } .c-next a:hover h3 { color: var(--ember-ink); }
@media (max-width: 900px) { .c-body { grid-template-columns: 1fr; } .rail { position: relative; top: 0; } }

@media (max-width: 760px) {
  .top { gap: 12px; } .top nav { display: none; }
  .top .name, .top .btn { white-space: nowrap; }
  .inst { display: none; } body:has(.inst) { padding-bottom: 0; }
  .row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html.static-on .static { animation: none; }
  .rise { animation: none; } .static { transition: none; }
}
/* a phone turned sideways (any width, under 500 px tall): the screen is too short to give a band of it to the instruments */
@media (max-height: 500px) { .inst { display: none; } body:has(.inst) { padding-bottom: 0; } }
/* the narrowest phones (320 px): the name and the button still share one line */
@media (max-width: 350px) { .top .btn { padding: 0 10px; letter-spacing: 0.05em; } }
