/* Implied Tonality. Black and white first (the author's own look), with the book's
   purple, plum, lavender and cream used sparingly. Oswald for display, Lato for reading,
   JetBrains Mono for rows and numbers. */
@font-face { font-family: 'Oswald'; src: url(/fonts/oswald.woff2) format('woff2'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(/fonts/lato-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(/fonts/lato-400i.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Lato'; src: url(/fonts/lato-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fira Condensed'; src: url(/fonts/fira-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/mono.woff2) format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #f2eff5;
  --ink-2: #d3cdd9;
  --muted: #a09aa7;
  --faint: #716b78;
  --line: #27232d;
  --wash: #16141a;
  --paper: #0b0a0d;
  --surface: #131116;
  --deep: #050406;
  --on-ink: #0b0a0d;
  --cream: #16111c;
  --purple: #8a5cc2;
  --purple-ink: #7a4db3;
  --plum: #37224a;
  --lavender: #b49bd0;
  --lav-wash: #2a2034;
  --good: #7dd3a0;
  --warn: #f2a56f;
  --t1: #a982e0; --t2: #8a5cc2; --t3: #6f5a91; --t4: #4b4160; --t5: #2c2733;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --cover: 'Fira Condensed', 'Oswald', sans-serif;
  --body: 'Lato', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1180px;
  --read: 680px;
  --r: 14px;
  --pill: 999px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
::selection { background: var(--lavender); color: var(--ink); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; line-height: 1.08; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 600; }
h2 { font-size: clamp(32px, 3.8vw, 50px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin: 0 0 1.05em; }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-2); max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.read { max-width: var(--read); }
section { padding: clamp(64px, 9vw, 128px) 0; }
section.tight { padding: clamp(40px, 5vw, 72px) 0; }
.dark { background: var(--deep); color: #f3f1f5; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .muted { color: #a9a3ae; }
.dark .lede { color: #d9d5dd; }
.cream { background: var(--cream); }
.wash { background: var(--wash); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.brand .mark { width: 26px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--pill); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--wash); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--wash); }
.nav-more { position: relative; }
.nav-more > button { font: inherit; font-size: 15px; color: var(--ink-2); background: none; border: 0; padding: 8px 12px; border-radius: var(--pill); cursor: pointer; display: flex; gap: 6px; align-items: center; }
.nav-more > button:hover, .nav-more.open > button { background: var(--wash); color: var(--ink); }
.nav-more .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); padding: 8px; min-width: 230px; display: none; }
.nav-more.open .menu { display: block; }
.nav-more .menu a { display: block; padding: 10px 14px; border-radius: 10px; }
.nav-burger { display: none; margin-left: auto; background: none; border: 0; width: 44px; height: 44px; border-radius: var(--pill); cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 15.5px/1 var(--body); letter-spacing: .01em; padding: 15px 24px; border-radius: var(--pill); border: 0; cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: #dcd6e2; }
.btn-white { background: #fff; color: var(--on-ink); }
.btn-white:hover { background: #e4dfe9; }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-ink); }
.btn-soft { background: var(--wash); color: var(--ink); }
.btn-soft:hover { background: #221f27; }
.dark .btn-soft { background: #24212a; color: #fff; }
.dark .btn-soft:hover { background: #302c36; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: '\2192'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-family: var(--cover); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; font-size: clamp(60px, 8.4vw, 124px); line-height: .9; margin-bottom: .22em; }
.hero .sub { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); color: var(--ink-2); margin: 0 0 28px; line-height: 1.2; }
.cover-stage { position: relative; display: flex; justify-content: center; }
.cover-stage img { width: min(400px, 100%); border-radius: 6px 12px 12px 6px; box-shadow: 0 50px 100px -30px rgba(138, 92, 194, .35), 0 24px 40px -18px rgba(0, 0, 0, .8); transform: rotate(1.2deg); }
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(36px, 4vw, 56px); }
.page-hero h1 { font-size: clamp(44px, 5.6vw, 76px); }

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 8px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.dark .stat + .stat { border-left-color: #2c2830; }
.stat .big { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4.2vw, 60px); line-height: 1; letter-spacing: -.01em; display: block; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat .big.purple { color: var(--lavender); }
.stat p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.dark .stat p { color: #b2acb7; }

/* ---------------------------------------------------------------- layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr .7fr; }
.split.wide-right { grid-template-columns: .8fr 1.2fr; }
.stack > * + * { margin-top: 18px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* list of ideas with a coloured spine instead of boxes */
.spine { border-left: 3px solid var(--purple); padding: 2px 0 2px 22px; }
.spine.lav { border-color: var(--lavender); }
.spine.ink { border-color: var(--ink); }
.spine h3, .spine h4 { margin-bottom: .35em; }
.spine p:last-child { margin-bottom: 0; }

/* panels: one consistent surface for interactive work */
.panel { background: var(--surface); border-radius: 20px; box-shadow: 0 0 0 1px var(--line); padding: clamp(22px, 3vw, 36px); }
.panel.soft { background: var(--wash); box-shadow: none; }
.dark .panel { background: #17151a; box-shadow: 0 0 0 1px #2a262e; }

/* ---------------------------------------------------------------- quotes */
.pull { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.1vw, 44px); line-height: 1.22; letter-spacing: -.005em; margin: 0; max-width: 960px; }
.pull-cite { margin-top: 22px; font-size: 15px; color: var(--muted); }
.dark .pull-cite { color: #a9a3ae; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.input, .textarea, .select { font: 16px/1.4 var(--body); color: var(--ink); background: var(--wash); border: 1px solid transparent; border-radius: 16px; padding: 14px 18px; width: 100%; transition: border-color .15s, background .15s, box-shadow .15s; }
.input:hover, .textarea:hover, .select:hover { background: #1c1a21; }
.input:focus, .textarea:focus, .select:focus { outline: none; background: var(--surface); border-color: var(--purple); box-shadow: 0 0 0 4px var(--lav-wash); }
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236c6771' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--purple); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 15px; margin-top: 14px; min-height: 1.4em; }
.form-note.ok { color: var(--good); }
.form-note.err { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 14px/1 var(--body); padding: 10px 16px; border-radius: var(--pill); border: 0; background: var(--wash); color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; }
.chip:hover { background: #221f27; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.dark .chip { background: #24212a; color: #dcd7e0; }
.dark .chip:hover { background: #302c36; color: #fff; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font: 700 13px/1.2 var(--body); color: var(--muted); padding: 14px 16px; background: var(--wash); position: sticky; top: 0; white-space: nowrap; cursor: default; }
table.data th.sortable { cursor: pointer; }
table.data th.sortable:hover { color: var(--ink); }
table.data td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:hover td { background: #17151b; }
table.data .rowtxt { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--ink-2); }

/* ---------------------------------------------------------------- tiers */
.tier { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.tier::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: currentColor; }
.tier-1 { color: var(--t1); } .tier-2 { color: var(--t2); } .tier-3 { color: #8c74a8; } .tier-4 { color: #9a8fa8; } .tier-5 { color: var(--faint); } .tier-6 { color: var(--faint); }

/* ---------------------------------------------------------------- note keyboard */
.keys { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.key { font: 600 15px/1 var(--mono); padding: 14px 0; border-radius: 12px; border: 0; background: var(--wash); color: var(--ink); cursor: pointer; transition: background .12s, color .12s, transform .1s; }
.key.black { background: #08070a; box-shadow: inset 0 0 0 1px var(--line); }
.key:hover { background: #221f27; }
.key.used { background: var(--purple); color: #fff; box-shadow: none; }
.key:disabled { cursor: default; }
.rowline { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; align-items: center; }
.pc { font: 600 15px/1 var(--mono); min-width: 44px; padding: 13px 8px; text-align: center; border-radius: 12px; background: var(--wash); }
.pc.on { background: var(--purple); color: #fff; }
.pc.t1 { box-shadow: inset 0 -3px 0 var(--t1); }

/* ---------------------------------------------------------------- matrix */
.matrix { border-collapse: separate; border-spacing: 3px; font-family: var(--mono); font-size: 14px; }
.matrix td, .matrix th { width: 42px; height: 38px; text-align: center; border-radius: 8px; }
.matrix td { background: var(--wash); }
.matrix th { font: 700 11.5px/1 var(--body); color: var(--muted); }
.matrix td.diag { background: var(--lav-wash); color: var(--purple-ink); font-weight: 700; }
.matrix tr:hover td { background: #221c2a; }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--body); font-size: 12px; fill: var(--muted); }
.chart .axis { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------------------------- accordion (FAQ) */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font: 500 21px/1.3 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 13px; height: 13px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-4px); transition: transform .2s; margin-right: 6px; }
.qa[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.qa .ans { padding: 0 0 24px; max-width: 760px; color: var(--ink-2); }
.qa .ans .src { font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- timeline */
.timeline { position: relative; }
.era { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 38px 0; border-top: 1px solid var(--line); }
.era .yr { font: 500 34px/1 var(--display); color: var(--purple); font-variant-numeric: tabular-nums; }
.era h3 { margin-bottom: .35em; }
.works { display: grid; gap: 2px; margin-top: 18px; }
.work { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line); }
.work b { font-weight: 700; }
.work .links { display: flex; gap: 6px; }
.work .links a { font-size: 13.5px; text-decoration: none; padding: 7px 12px; border-radius: var(--pill); background: var(--wash); white-space: nowrap; }
.work .links a:hover { background: var(--ink); color: var(--on-ink); }

/* ---------------------------------------------------------------- chat */
.chat { display: grid; grid-template-rows: 1fr auto; min-height: calc(100vh - 68px); }
.chat-scroll { overflow-y: auto; padding: 40px 0 24px; }
.chat-col { width: min(780px, 100% - 40px); margin-inline: auto; }
.msg { margin: 0 0 28px; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { background: var(--wash); border-radius: 22px 22px 6px 22px; padding: 13px 20px; max-width: 80%; white-space: pre-wrap; }
.msg.bot .text { white-space: pre-wrap; color: var(--ink); line-height: 1.7; }
.msg.bot .meta { font-size: 13.5px; color: var(--faint); margin-top: 12px; }
.msg.bot .sources { margin-top: 14px; display: grid; gap: 8px; }
.msg.bot .sources details { font-size: 14px; color: var(--muted); }
.msg.bot .sources summary { cursor: pointer; }
.msg.bot .sources p { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--lavender); }
.typing { display: inline-flex; gap: 2px; }
.typing i { width: 7px; height: 14px; background: var(--lavender); border-radius: 2px; animation: bar 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bar { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.composer { position: sticky; bottom: 0; background: linear-gradient(to top, var(--paper) 70%, transparent); padding: 16px 0 26px; }
.composer form { display: flex; gap: 10px; align-items: flex-end; background: var(--surface); border-radius: 28px; padding: 8px 8px 8px 22px; box-shadow: 0 0 0 1px var(--line), 0 12px 40px -18px rgba(0, 0, 0, .6); }
.composer textarea { flex: 1; border: 0; resize: none; font: 16.5px/1.5 var(--body); padding: 10px 0; max-height: 200px; background: transparent; color: var(--ink); }
.composer textarea:focus { outline: none; }
.composer button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.composer button:disabled { background: #3a3540; cursor: default; }
.composer .fine { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 10px; }
.starter { text-align: center; padding: 8vh 0 0; }
.starter h1 { font-size: clamp(40px, 5vw, 60px); }
.starter .chips { justify-content: center; margin-top: 28px; }

/* ---------------------------------------------------------------- media */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.score-cover { width: min(320px, 100%); border-radius: 4px; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); }
.headshot { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; background: var(--wash); }

/* ---------------------------------------------------------------- end band */
.end { background: var(--deep); border-top: 1px solid var(--line); color: #d9d5dd; padding: 72px 0 48px; }
.end .grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.end h4 { color: #fff; font-size: 16px; font-family: var(--body); font-weight: 700; margin-bottom: 14px; }
.end a { color: #d9d5dd; text-decoration: none; display: block; padding: 4px 0; font-size: 15px; }
.end a:hover { color: #fff; }
.end .brand { color: #fff; font-size: 22px; margin-bottom: 14px; }

.end .legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid #2a262e; font-size: 13.5px; color: #8f8994; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- toc for long pages */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.subnav a { text-decoration: none; font-size: 14.5px; padding: 9px 15px; border-radius: var(--pill); background: var(--wash); color: var(--ink-2); }
.subnav a:hover { background: var(--ink); color: var(--on-ink); }

.chapter-list { counter-reset: none; }
.chapter { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); }
.chapter .n { font: 500 40px/1 var(--display); color: var(--lavender); font-variant-numeric: tabular-nums; }
.chapter h3 { margin-bottom: .3em; }
.chapter p { margin: 0; color: var(--ink-2); }
.part-title { font: 500 15px/1 var(--body); font-weight: 700; color: var(--purple); margin: 48px 0 6px; }

.cite-box { font-family: var(--body); background: var(--wash); border-radius: 16px; padding: 20px 22px; position: relative; }
.cite-box .fmt { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cite-box pre { margin: 0; white-space: pre-wrap; font: 14px/1.55 var(--mono); }
.cite-box p { margin: 0; }
.cite-box .copy { position: absolute; top: 14px; right: 14px; }

.bib { columns: 2; column-gap: 56px; font-size: 15px; }
.bib p { break-inside: avoid; padding-left: 1.6em; text-indent: -1.6em; margin: 0 0 12px; color: var(--ink-2); }
.bib p a { margin-left: 4px; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); padding: 12px 24px 24px; border-bottom: 1px solid var(--line); gap: 2px; max-height: calc(100vh - 68px); overflow: auto; }
  .nav.open .nav-more .menu { display: block; position: static; box-shadow: none; padding: 0 0 0 12px; }
  .nav.open .nav-more > button { display: none; }
}
@media (max-width: 900px) {
  .hero .grid, .split, .split.wide-left, .split.wide-right, .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .era { grid-template-columns: 1fr; gap: 10px; }
  .end .grid { grid-template-columns: 1fr 1fr; }
  .bib { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .cover-stage { order: -1; }
  .cover-stage img { width: min(260px, 70%); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .keys { grid-template-columns: repeat(6, 1fr); }
  .work { grid-template-columns: 1fr; }
  .chapter { grid-template-columns: 1fr; gap: 6px; }
}
.nav-links a.btn-ink, .nav-links a.btn-ink:hover { color: var(--on-ink); background: var(--ink); padding: 10px 16px; }
.nav-links a.btn-ink:hover { background: #dcd6e2; }
.end a.btn { display: inline-flex; padding: 10px 16px; }
.end a.btn-white { color: var(--on-ink); }
.end a.btn-white:hover { color: var(--on-ink); }
.end a.btn-soft { color: #fff; }

.cream { background: var(--cream); }
.score-cover { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(0, 0, 0, .9); }
.tier-3 { color: #9d87bd; } .tier-4 { color: #8b8197; }
