/* Dipnote. Paper, ink and verdigris: a banknote's palette. */
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader-roman.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('/fonts/Newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/InstrumentSans.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/IBMPlexMono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f4eee1;
  --paper-2: #ebe3d0;
  --card: #fbf7ee;
  --ink: #0c1a14;
  --ink-2: #12251c;
  --ink-3: #1b3529;
  --mint: #58e6b3;
  --mint-soft: #b8f5dc;
  --mint-deep: #0a6b50;
  --seal: #c23b22;
  --gold: #c8a04a;
  --muted: #4c574e;
  --line: rgba(12, 26, 20, .14);
  --line-strong: rgba(12, 26, 20, .3);
  --line-dark: rgba(244, 238, 225, .15);
  --soft-dark: rgba(244, 238, 225, .68);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible, .hero :focus-visible, .desk :focus-visible { outline-color: var(--mint); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 4px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.center { text-align: center; }
.band { position: relative; padding: clamp(84px, 11vw, 172px) 0; overflow: hidden; }
.paper { background: var(--paper); }
.paper-2 { background: var(--paper-2); }
.ink { background: var(--ink); color: var(--paper); }

.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-deep); margin-bottom: 26px; }
.ink .eyebrow { color: var(--mint); }
.display { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.25vw, 78px); line-height: .96; letter-spacing: -.046em; font-variation-settings: 'opsz' 72; text-wrap: balance; }
.display em { display: block; font-style: italic; }
.display.left { text-align: left; }
.ink .display em, .closing .display em { color: var(--mint); }
.closing .display em { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.28; letter-spacing: -.024em; color: var(--ink); max-width: 34em; }
.center .lede { margin: 34px auto 0; }
.ink .lede { color: var(--soft-dark); }
.fineprint { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; line-height: 1.6; color: var(--muted); margin-top: 34px; max-width: 70em; }
.fineprint.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 22px; border-radius: 4px; border: 1px solid transparent; font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-accent { background: var(--mint); color: var(--ink); }
.btn-accent:hover { background: var(--mint-soft); }
.btn-glass { background: rgba(8, 20, 15, .34); color: var(--paper); border-color: rgba(244, 238, 225, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(8, 20, 15, .55); border-color: rgba(244, 238, 225, .6); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }

/* Navigation: a floating pill */
.nav { position: fixed; z-index: 50; top: 44px; left: var(--gutter); right: var(--gutter); max-width: calc(var(--max) - 2 * var(--gutter) + 40px); margin: 0 auto; height: 54px; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 28px; border-radius: 28px; border: 1px solid rgba(244, 238, 225, .26); background: rgba(244, 238, 225, .09); color: var(--paper); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transition: top .45s var(--ease), background .35s, color .35s, border-color .35s, box-shadow .35s; }
.nav.is-up { top: 14px; }
.nav.is-solid { top: 14px; background: rgba(251, 247, 238, .88); color: var(--ink); border-color: var(--line); box-shadow: 0 10px 34px -18px rgba(12, 26, 20, .35); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.mark { width: 26px; height: 26px; fill: currentColor; }
.brand-word { font-family: var(--serif); font-weight: 400; font-size: 25px; letter-spacing: -.04em; line-height: 1; font-variation-settings: 'opsz' 40; }
.brand-word i { font-style: italic; }
.nav-links { margin-left: auto; display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a, .nav-sheet a { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 8px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { min-height: 36px; padding: 8px 18px; border-radius: 18px; }
.nav-menu { display: none; margin-left: auto; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid currentColor; background: none; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.nav-sheet { position: fixed; z-index: 49; top: 76px; left: var(--gutter); right: var(--gutter); padding: 14px 22px; border-radius: 20px; background: rgba(251, 247, 238, .97); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(12, 26, 20, .5); display: grid; }
.nav-sheet[hidden] { display: none; }
.nav-sheet a { padding: 14px 0; border-bottom: 1px solid var(--line); }
.nav-sheet a:last-child { border-bottom: 0; }

/* Hero */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 640px); background: #0b1f18; color: var(--paper); overflow: hidden; display: grid; grid-template-rows: 1fr auto; isolation: isolate; }
.hero.no-gl { background: #0b1f18 url('/img/hero-coin.webp') center / auto 118% no-repeat; }
.hero.no-gl .hero-canvas { display: none; }
.hero.no-gl::before { content: ''; position: absolute; inset: 0; background: rgba(8, 24, 18, .72); z-index: -1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ticker { position: absolute; top: 0; left: 0; right: 0; height: 30px; overflow: hidden; border-bottom: 1px solid rgba(244, 238, 225, .14); background: rgba(6, 16, 12, .5); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 238, 225, .8); }
.ticker-track { display: inline-flex; white-space: nowrap; line-height: 30px; animation: tick 60s linear infinite; will-change: transform; }
.ticker-track span { padding: 0 22px; }
.ticker-track span b { font-weight: 500; color: var(--mint); margin-left: 8px; }
.ticker-track span::after { content: '·'; margin-left: 44px; color: rgba(244, 238, 225, .4); }
@keyframes tick { to { transform: translateX(-50%); } }
.hero-inner { display: grid; place-items: center; padding: 130px var(--gutter) 20px; }
.hero-title { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 8.5vw, 136px); line-height: .86; letter-spacing: -.052em; text-transform: uppercase; text-align: center; font-variation-settings: 'opsz' 72; text-shadow: 0 2px 70px rgba(4, 14, 10, .7), 0 0 18px rgba(4, 14, 10, .35); }
.hero-title .line { display: block; }
.hero-title .it { font-style: italic; }
.hero-title br.m { display: none; }
.hero-title .nw { white-space: nowrap; }
.ocoin { position: relative; display: inline-block; width: .8em; height: .8em; margin: 0 .03em 0 .035em; vertical-align: -.075em; }
.ocoin img, .ocoin canvas { position: absolute; inset: -9%; width: 118%; height: 118%; max-width: none; }
.ocoin img { filter: drop-shadow(0 .03em .06em rgba(0, 0, 0, .55)); transition: opacity .5s; }
.ocoin canvas { opacity: 0; transition: opacity .5s; filter: drop-shadow(0 .03em .06em rgba(0, 0, 0, .55)); }
.ocoin.is-3d img { opacity: 0; }
.ocoin.is-3d canvas { opacity: 1; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 0 calc(var(--gutter) * 2) clamp(28px, 6vh, 60px); max-width: calc(var(--max) + 2 * var(--gutter)); width: 100%; margin: 0 auto; }
.hero-sub { max-width: 30em; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.22; letter-spacing: -.026em; text-shadow: 0 1px 24px rgba(4, 14, 10, .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.plate { position: absolute; right: 18px; top: 50%; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 238, 225, .55); writing-mode: vertical-rl; transform: translateY(-50%); white-space: nowrap; }
.loupe-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 238, 225, .5); transition: opacity .8s; pointer-events: none; }
.loupe-hint.is-gone { opacity: 0; }

/* Guilloche canvases behind light sections */
.guilloche { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Idea */
.thesis .display { max-width: 15.5em; margin: 0 auto; }
.trio.wrap { padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter)); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line-strong); }
.trio li { padding: 30px clamp(18px, 2.4vw, 40px) 6px; border-left: 1px solid var(--line); }
.trio li:first-child { border-left: 0; padding-left: 0; }
.trio .num, .cl { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--mint-deep); }
.trio h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.5vw, 36px); letter-spacing: -.04em; line-height: 1; margin: 44px 0 14px; }
.trio p { color: var(--muted); max-width: 24em; }

/* Composer */
.composer .center { margin-bottom: clamp(44px, 5vw, 72px); }
.stack { position: relative; max-width: 1180px; margin: 0 auto; padding-bottom: 46px; }
.desk { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); padding: clamp(22px, 3.2vw, 44px); border-radius: 26px; background: radial-gradient(120% 90% at 85% 0%, #17362a 0%, var(--ink) 58%); color: var(--paper); box-shadow: 0 40px 80px -46px rgba(12, 26, 20, .75), inset 0 1px 0 rgba(255, 255, 255, .08); }
.under { position: absolute; left: 0; right: 0; height: 60px; border-radius: 0 0 26px 26px; }
.u1 { bottom: 30px; margin: 0 3.4%; background: #8c9186; z-index: 2; }
.u2 { bottom: 14px; margin: 0 6.8%; background: #b3b5a8; z-index: 1; }
.u3 { bottom: 0; margin: 0 10.2%; background: #cfcdbd; z-index: 0; }
.desk-controls { display: grid; gap: 30px; align-content: start; }
.field { display: grid; gap: 12px; min-width: 0; }
.lab { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); display: flex; justify-content: space-between; gap: 10px; }
.lab output { color: var(--soft-dark); letter-spacing: .06em; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); width: fit-content; max-width: 100%; }
.seg button { border: 0; background: none; cursor: pointer; padding: 9px 15px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft-dark); transition: background .25s, color .25s; }
.seg button:hover { color: var(--paper); }
.seg button[aria-checked='true'], .seg button[aria-selected='true'] { background: var(--mint); color: var(--ink); }
.seg.small button { padding: 7px 12px; }
.amount { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-dark); padding-bottom: 6px; }
.amount input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 58px); letter-spacing: -.04em; line-height: 1; color: var(--paper); font-variation-settings: 'opsz' 72; padding: 0; }
.amount:focus-within { border-bottom-color: var(--mint); }
.amount span { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--soft-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line-dark); background: none; border-radius: 999px; padding: 6px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--soft-dark); cursor: pointer; transition: border-color .2s, color .2s; }
.chips button:hover { border-color: var(--mint); color: var(--mint); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; cursor: pointer; margin: 0; }
input[type='range']::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--mint) var(--fill, 20%), rgba(244, 238, 225, .22) var(--fill, 20%)); }
input[type='range']::-moz-range-track { height: 2px; background: rgba(244, 238, 225, .22); }
input[type='range']::-moz-range-progress { height: 2px; background: var(--mint); }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, #cfd6cf 30%, #7d877f 100%); border: 2px solid var(--mint); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
input[type='range']::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #cfd6cf; border: 2px solid var(--mint); }
.range-read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.range-read b { font-family: var(--serif); font-weight: 300; font-size: 34px; letter-spacing: -.04em; line-height: 1; }
.range-read span { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--soft-dark); }
.desk-note { display: grid; gap: 26px; min-width: 0; align-content: start; }
.note-tilt { position: relative; perspective: 1400px; }
.note-paper { position: relative; border-radius: 6px; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .5s var(--ease); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .25) inset; background: #efe7d2; aspect-ratio: 1000 / 440; }
.note-paper svg { width: 100%; height: 100%; }
.note-tilt.is-live .note-paper { transition: transform .08s linear; }
.note-foil { position: absolute; top: 0; bottom: 0; left: 83.2%; width: 3.4%; pointer-events: none; border-radius: 1px; background: linear-gradient(calc(120deg + var(--ry, 0deg) * 14), #58e6b3, #f4e9a8 22%, #e88bd0 44%, #7fb6ff 66%, #58e6b3 88%); background-size: 100% 300%; background-position: 0 calc(50% + var(--rx, 0deg) * 9); mix-blend-mode: multiply; opacity: .75; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); }
.note-tilt.is-live .note-foil { transition: transform .08s linear; }
.outcome-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.outcome-head h3 { font-family: var(--serif); font-weight: 300; font-size: 30px; letter-spacing: -.04em; line-height: 1; }
.rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
.rows dt { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); flex: none; }
.rows dd { text-align: right; font-size: 15px; letter-spacing: -.01em; }
.rows dd small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--soft-dark); margin-top: 3px; }
.composer .fineprint { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* Life of a note */
.split-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 90px); align-items: end; margin-bottom: clamp(48px, 6vw, 90px); }
.split-head .lede { justify-self: end; }
.articles { border-bottom: 1px solid var(--line-strong); }
.articles li { display: grid; grid-template-columns: 96px minmax(150px, 250px) minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 48px); align-items: baseline; padding: 30px 0; border-top: 1px solid var(--line-strong); transition: background .4s, padding .4s var(--ease); }
.articles li:hover { background: linear-gradient(90deg, rgba(88, 230, 179, .16), rgba(88, 230, 179, 0)); padding-left: 16px; }
.rn { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 46px; line-height: .8; letter-spacing: -.03em; color: var(--mint-deep); }
.articles h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.7vw, 38px); letter-spacing: -.04em; line-height: 1; }
.articles p { color: var(--muted); font-size: 17px; line-height: 1.38; max-width: 36em; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 999px; white-space: nowrap; }

/* The board */
.board { background: radial-gradient(70% 55% at 28% 58%, #173a2c 0%, var(--ink) 70%); }
.board .display { max-width: 13em; margin: 0 auto; }
.board-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 84px); align-items: center; margin-top: clamp(44px, 6vw, 84px); }
.coin-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 580px; justify-self: center; touch-action: pan-y; cursor: grab; }
.coin-stage.is-drag { cursor: grabbing; }
.coin-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 140s linear infinite; }
.coin-ring path { fill: none; stroke: rgba(88, 230, 179, .26); stroke-width: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.coin-stage canvas, .coin-fallback { position: absolute; inset: 9%; width: 82%; height: 82%; }
.coin-stage canvas { opacity: 0; transition: opacity .6s; }
.coin-fallback { object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); transition: opacity .6s; }
.coin-stage.is-3d canvas { opacity: 1; }
.coin-stage.is-3d .coin-fallback { opacity: 0; }
.coin-stage::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); z-index: -1; }
.coin-hint { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 238, 225, .45); }
.governor { max-width: 34em; }
.seat { display: flex; gap: 18px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft-dark); margin-bottom: 22px; }
.seat span:first-child { color: var(--ink); background: var(--mint); padding: 4px 10px; border-radius: 999px; }
.governor h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 5vw, 76px); letter-spacing: -.048em; line-height: .92; font-variation-settings: 'opsz' 72; }
.gov-title { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.1vw, 30px); letter-spacing: -.03em; color: var(--mint); margin-top: 10px; }
.gov-text { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; color: var(--soft-dark); margin-top: 26px; min-height: 8.6em; }
.gov-cat { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; line-height: 1.7; color: rgba(244, 238, 225, .55); margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.gov-cat a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(88, 230, 179, .4); white-space: nowrap; }
.governor.is-swap > * { opacity: 0; transform: translateY(10px); }
.governor > * { transition: opacity .35s, transform .5s var(--ease); }
.tray { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(8px, 1.4vw, 18px); margin-top: clamp(40px, 5vw, 70px); padding-top: 34px; border-top: 1px solid var(--line-dark); }
.tray button { position: relative; display: grid; justify-items: center; gap: 10px; width: clamp(74px, 8vw, 104px); padding: 0; border: 0; background: none; cursor: pointer; color: rgba(244, 238, 225, .55); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.tray .well { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #0a1611 0%, #132b20 100%); box-shadow: inset 0 6px 14px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .08); display: grid; place-items: center; transition: box-shadow .3s; }
.tray img { width: 78%; height: 78%; object-fit: contain; transition: transform .45s var(--ease); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .6)); }
.tray button:hover img { transform: translateY(-5px) rotate(-6deg); }
.tray button[aria-selected='true'] { color: var(--mint); }
.tray button[aria-selected='true'] .well { box-shadow: inset 0 6px 14px rgba(0, 0, 0, .7), 0 0 0 1.5px var(--mint), 0 0 26px -4px rgba(88, 230, 179, .55); }
.tray button[aria-selected='true'] img { transform: translateY(-5px); }
.tray .is-struck .well::after { content: ''; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--seal); transform: rotate(-32deg); box-shadow: 0 0 0 1px rgba(12, 26, 20, .6); }
.tray .is-struck { margin-left: clamp(10px, 2vw, 30px); }

/* Reserves */
.reserves .wrap { z-index: 1; }
.statement { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 100px); align-items: end; }
.rate-fig { font-family: var(--serif); font-weight: 300; font-size: clamp(110px, 17vw, 250px); line-height: .78; letter-spacing: -.07em; font-variation-settings: 'opsz' 72; font-feature-settings: 'lnum'; white-space: nowrap; }
.rate-fig sup { font-size: .34em; letter-spacing: 0; vertical-align: top; position: relative; top: .2em; margin-left: .06em; color: var(--mint-deep); font-style: italic; }
.rate-cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.7; margin-top: 26px; color: var(--muted); }
.ledger > div { display: flex; align-items: baseline; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line-strong); }
.ledger > div:last-child { border-bottom: 1px solid var(--line-strong); }
.ledger dt { font-size: 16px; color: var(--muted); flex: 1; display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.ledger dt::after { content: ''; flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.ledger dd { font-family: var(--serif); font-weight: 400; font-size: 24px; letter-spacing: -.03em; font-feature-settings: 'lnum', 'tnum'; white-space: nowrap; }
.ledger dd small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.asof { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 30px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.live-dot.is-live { background: #12a777; box-shadow: 0 0 0 4px rgba(18, 167, 119, .18); }
.live-dot.is-stale { background: var(--gold); }

/* The desk: paper slips */
.slips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 34px); margin-top: clamp(48px, 6vw, 84px); align-items: start; }
.slip { position: relative; background: var(--card); padding: 30px 26px 26px; box-shadow: 0 26px 44px -30px rgba(12, 26, 20, .5), 0 1px 0 #fff inset; transition: transform .5s var(--ease); -webkit-mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) -7px 0 / 14px 100%; mask: radial-gradient(circle at 7px 0, transparent 5px, #000 5.5px) -7px 0 / 14px 100%; }
.slip:nth-child(1) { transform: rotate(-1.2deg); }
.slip:nth-child(2) { transform: rotate(.7deg) translateY(18px); }
.slip:nth-child(3) { transform: rotate(-.5deg); }
.slip:hover { transform: rotate(0) translateY(-6px); }
.slip header { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--line-strong); }
.slip header span:first-child { color: var(--seal); }
.slip .msg { font-family: var(--mono); font-size: 14.5px; line-height: 1.55; letter-spacing: -.01em; margin: 22px 0; min-height: 4.7em; overflow-wrap: anywhere; }
.slip .msg::before { content: '> '; color: var(--mint-deep); }
.slip .ans { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 21px; line-height: 1.2; letter-spacing: -.025em; padding-top: 18px; border-top: 1px solid var(--line); }

/* Charter */
.charter { background: linear-gradient(180deg, var(--ink) 0%, #0a1510 100%); }
.struck { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; max-width: 380px; justify-self: end; }
.struck img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)) saturate(.85); }
.struck figcaption { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 18px; line-height: 1.22; letter-spacing: -.02em; color: var(--soft-dark); }
.clauses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 6vw, 100px); border-bottom: 1px solid var(--line-dark); }
.clauses li { align-content: start; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 14px; padding: 30px 0 32px; border-top: 1px solid var(--line-dark); }
.clauses .cl { color: var(--mint); padding-top: 8px; }
.clauses h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.04em; line-height: 1; }
.clauses p { grid-column: 2; color: var(--soft-dark); font-size: 17px; line-height: 1.4; margin-top: 12px; max-width: 30em; }

/* Closing */
.closing { background: var(--mint); color: var(--ink); padding: clamp(110px, 14vw, 210px) 0; }
.closing .hero-cta { justify-content: center; margin-top: 44px; }
.closing .status { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 30px; color: var(--ink-3); }
.chip { display: inline-block; padding: 3px 9px; border: 1px solid var(--ink); border-radius: 999px; margin-right: 8px; }

/* Footer */
.foot { background: var(--paper); padding: clamp(56px, 8vw, 110px) 0 32px; overflow: hidden; }
.foot .foot-big { max-width: none; color: var(--ink); font-family: var(--serif); font-weight: 300; font-size: clamp(60px, 13.2vw, 212px); line-height: .82; letter-spacing: -.06em; font-variation-settings: 'opsz' 72; white-space: nowrap; margin-left: -.04em; }
.foot .foot-big em { font-style: italic; color: var(--mint-deep); }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1fr; gap: clamp(22px, 4vw, 64px); margin-top: clamp(48px, 7vw, 96px); padding-top: 34px; border-top: 1px solid var(--line-strong); }
.foot h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-deep); margin-bottom: 16px; }
.foot p { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 26em; }
.foot-note { margin-top: 16px; }
.foot nav { display: grid; align-content: start; }
.foot nav a { text-decoration: none; padding: 5px 0; font-size: 15px; width: fit-content; border-bottom: 1px solid transparent; transition: border-color .25s; }
.foot nav a:hover { border-bottom-color: currentColor; }
.foot .legal { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .slip[data-reveal] { opacity: 0; }
.js .slip[data-reveal].in { opacity: 1; }
.js .slip[data-reveal]:nth-child(1).in { transform: rotate(-1.2deg); }
.js .slip[data-reveal]:nth-child(2).in { transform: rotate(.7deg) translateY(18px); }
.js .slip[data-reveal]:nth-child(3).in { transform: rotate(-.5deg); }
.js .slip[data-reveal].in:hover { transform: rotate(0) translateY(-6px); }

/* Tablet */
@media (max-width: 1040px) {
  .nav-links { gap: 16px; }
  .nav-cta { display: none; }
  .desk { grid-template-columns: 1fr; }
  .desk-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articles li { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .articles p { grid-column: 2 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .slips { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .slip:nth-child(2), .js .slip[data-reveal]:nth-child(2).in { transform: rotate(.7deg); }
  .slip .msg { min-height: 0; }
}

/* Phone */
@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .nav { top: 40px; height: 50px; padding: 0 8px 0 16px; }
  .nav.is-up, .nav.is-solid { top: 10px; }
  .nav-links { display: none; }
  .nav-menu { display: inline-flex; align-items: center; }
  .nav-sheet { top: 68px; }
  .hero-inner { padding: 112px 16px 8px; }
  .hero-title { font-size: clamp(44px, 14.8vw, 96px); line-height: .88; }
  .hero-title br.m { display: inline; }
  .hero-foot { flex-direction: column; align-items: stretch; padding: 0 20px 44px; gap: 22px; }
  .hero-cta .btn { flex: 1; justify-content: space-between; }
  .plate { display: none; }
  .band { padding: 78px 0; }
  .display { font-size: clamp(36px, 10.4vw, 52px); }
  .trio { grid-template-columns: 1fr; }
  .trio li, .trio li:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 26px; }
  .trio li:first-child { border-top: 0; }
  .trio h3 { margin: 16px 0 10px; }
  .desk { border-radius: 20px; padding: 20px 16px 24px; }
  .desk-controls { grid-template-columns: 1fr; gap: 24px; }
  .seg { border-radius: 22px; }
  .seg button { padding: 9px 11px; }
  .seg.small button { padding: 8px 9px; letter-spacing: .06em; }
  .under { border-radius: 0 0 20px 20px; }
  .rows > div { flex-direction: column; gap: 4px; }
  .rows dd { text-align: left; }
  .split-head { grid-template-columns: 1fr; align-items: start; }
  .split-head .lede { justify-self: start; }
  .articles li { grid-template-columns: 44px minmax(0, 1fr); row-gap: 10px; padding: 24px 0; }
  .articles li:hover { padding-left: 0; background: none; }
  .articles p { grid-column: 2; font-size: 16px; }
  .articles .tag { grid-column: 2; justify-self: start; }
  .rn { font-size: 34px; }
  .board-stage { grid-template-columns: 1fr; gap: 14px; }
  .coin-stage { max-width: 380px; }
  .gov-text { min-height: 0; }
  .governor { text-align: left; }
  .tray { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 26px var(--gutter) 8px; scrollbar-width: none; }
  .tray::-webkit-scrollbar { display: none; }
  .tray button { flex: none; width: 76px; }
  .statement { grid-template-columns: 1fr; }
  .rate-fig { font-size: clamp(108px, 38vw, 170px); }
  .ledger > div { flex-wrap: wrap; }
  .ledger dt { font-size: 15px; flex-basis: 100%; }
  .ledger dt::after { display: none; }
  .ledger dd { font-size: 22px; }
  .struck { justify-self: start; }
  .clauses { grid-template-columns: 1fr; }
  .clauses li { grid-template-columns: 46px minmax(0, 1fr); padding: 24px 0 26px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot .legal { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .coin-ring { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .note-paper, .note-foil { transition: none; }
}
