/*
 * css/site.css: the paradox.codes design system. orbio.so's paper, ink, lime marker and glass, met with colosseum.com's
 * classical serif, red blackletter capitals, hairline line art, mono small caps and diamond rules, made Greek.
 * One sheet, no build, light theme only.
 *
 *   1  fonts                 7  shell: strip, header, nav, phone sheet, footer
 *   2  tokens                8  landing
 *   3  base and type         9  docs
 *   4  layout primitives    10  404
 *   5  controls             11  toasts and dialogs
 *   6  shared components    12  motion and transparency preferences
 *
 * Shared component classes (SPEC section 6; css/app.css and css/console.css build on these and the tokens only):
 * .wrap .page-head .eyebrow .h-page .cap .lede .marker .rule .btn .btn-red .btn-lime .btn-ghost .btn-sm .card
 * .card-glass .card-head .grid-2 .grid-3 .stack .row .field .input .select .textarea .seg .tabs .tab .badge
 * .badge-lime .badge-red .badge-gold .chip .kv .table .empty .skeleton .toast .dialog .mono .num .muted .ok .bad
 * .meter .laurel .medal .tablet .wing-* .stock .log .spinner .sr-only
 * Extras used by js/pages/common.js: .pips .rank .gate .meter-row .skeleton-lines .table-wrap .dia .art .art-*
 */

/* ------------------------------------------------------------------------------------------------ 1 fonts */

@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('/fonts/newsreader-latin.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 200 800; font-display: swap; src: url('/fonts/newsreader-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'UnifrakturMaguntia'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/unifraktur-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/dm-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin.woff2') format('woff2'); }

/* ----------------------------------------------------------------------------------------------- 2 tokens */

:root {
  --paper: #faf8f4;
  --paper-2: #f3f0e8;
  --marble: #f7f6f2;
  --stone: #e7e2d6;
  --line: #d9d3c4;
  --line-2: #ebe6da;
  --ink: #14110e;
  --ink-2: #3f3f3b;
  --muted: #77776f;
  --faint: #a3a097;
  --lime: #c9ff3f;
  --lime-ink: #2f3b00;
  --lime-soft: rgba(201, 255, 63, .32);
  --red: #b3261e;
  --red-ink: #7e1912;
  --plum: #472151;
  --lavender: #e9e1ef;
  --gold: #b08d57;
  --gold-soft: #efe3cc;
  --ok: #2f7d32;
  --bad: #b3261e;
  --warn: #a86b00;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'DM Sans', 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --black: 'UnifrakturMaguntia', 'Newsreader', serif;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 0 rgba(20, 17, 14, .04), 0 8px 30px rgba(20, 17, 14, .06);
  --wrap: 1180px;

  /* derived (this sheet's own; other sheets may use them too) */
  --white: #fffefb;
  --art-ink: #8f8879;
  --red-soft: #f7e6e2;
  --plum-soft: #f4eff7;
  --shadow-lg: 0 1px 0 rgba(20, 17, 14, .04), 0 30px 60px -30px rgba(20, 17, 14, .28);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gutter: 24px;
  --header-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (max-width: 640px) { :root { --gutter: 16px; --header-h: 58px; } }

/* --------------------------------------------------------------------------------------- 3 base and type */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--lime); color: var(--ink); }
[hidden] { display: none !important; }
.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:focus { position: fixed; z-index: 100; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; color: var(--ink); text-wrap: balance; }
.h-hero { font-size: clamp(2.7rem, 7.6vw, 5.4rem); line-height: 1.01; letter-spacing: -0.028em; }
.h-page { font-size: clamp(2.3rem, 5.4vw, 3.7rem); line-height: 1.04; letter-spacing: -0.024em; }
.h-sec { font-size: clamp(2rem, 4.3vw, 3.15rem); line-height: 1.06; letter-spacing: -0.022em; }
.h-card { font-size: 22px; line-height: 1.18; }

/* the red blackletter capital that opens a title */
.cap {
  font-family: var(--black);
  font-weight: 400;
  font-style: normal;
  font-size: 1.1em;
  line-height: .8;
  letter-spacing: 0;
  color: var(--red);
  padding-right: .02em;
}
.h-page::first-letter { font-family: var(--black); font-weight: 400; font-style: normal; color: var(--red); font-size: 1.08em; letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; flex: none; width: 6px; height: 6px; border: 1px solid var(--red); transform: rotate(45deg); }
.eyebrow.plain::before, .eyebrow-plain::before { display: none; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.eyebrow .dia { margin: 0 2px; }
.eyebrow-red { color: var(--red); }
.eyebrow-plum { color: var(--plum); }
.eyebrow-plum::before { border-color: var(--plum); }

/* an inline diamond: nav separators, eyebrow joints, lists */
.dia { display: inline-block; flex: none; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); opacity: .6; vertical-align: middle; }

.lede { font: 400 clamp(16px, 1.75vw, 18.5px)/1.62 var(--sans); color: var(--ink-2); max-width: 40rem; margin: 18px 0 0; text-wrap: pretty; }
.lede a, .link { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--red) 60%, transparent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .15s var(--ease); }
.lede a:hover, .link:hover { text-decoration-color: var(--red); }
.link .ext { display: inline-block; width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }

/* orbio's lime highlighter behind a key word */
.marker { position: relative; z-index: 0; white-space: nowrap; color: inherit; }
.marker::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: .2em -.1em .02em -.08em;
  background: color-mix(in oklab, var(--lime) 90%, transparent);
  border-radius: .06em .16em .08em .18em;
  transform: rotate(-1.3deg) skewX(-5deg);
  transform-origin: 50% 60%;
}

/* colosseum's diamond rule: a short hairline between two diamonds */
.rule { position: relative; display: block; width: 92px; height: 9px; margin: 0 auto; color: var(--faint); background: linear-gradient(currentColor, currentColor) center / calc(100% - 20px) 1px no-repeat; }
.rule::before, .rule::after { content: ''; position: absolute; top: 1px; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.rule::before { left: 1px; }
.rule::after { right: 1px; }
.rule-left { margin-left: 0; }
.rule-wide { width: 100%; }

.mono { font-family: var(--mono); letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums lining-nums; }
.mono.num, .num.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.serif { font-family: var(--serif); }
.italic { font-style: italic; }

/* line art from img/art, inked by `color` (a CSS mask, so one drawing serves every colour) */
.art { display: block; color: var(--art-ink); background-color: currentColor; -webkit-mask: var(--art) center / contain no-repeat; mask: var(--art) center / contain no-repeat; }
.art-temple { --art: url('/img/art/temple.svg'); aspect-ratio: 240 / 186; }
.art-colonnade { --art: url('/img/art/colonnade.svg'); aspect-ratio: 1600 / 330; }
.art-arch { --art: url('/img/art/arch.svg'); aspect-ratio: 200 / 250; }
.art-clouds { --art: url('/img/art/clouds.svg'); aspect-ratio: 372 / 92; }
.art-birds { --art: url('/img/art/birds.svg'); aspect-ratio: 140 / 70; }
.art-laurel { --art: url('/img/art/laurel.svg'); aspect-ratio: 1; }
.art-owl { --art: url('/img/art/owl.svg'); aspect-ratio: 120 / 150; }
.art-meander { --art: url('/img/art/meander.svg'); }
.art-diamond { --art: url('/img/art/diamond.svg'); aspect-ratio: 1; }
.art-tortoise { --art: url('/img/art/tortoise.svg'); aspect-ratio: 170 / 104; }
.art-scroll { --art: url('/img/art/scroll.svg'); aspect-ratio: 180 / 110; }
.art-anvil { --art: url('/img/art/anvil.svg'); aspect-ratio: 180 / 130; }
.art-amphora { --art: url('/img/art/amphora.svg'); aspect-ratio: 110 / 170; }

/* ----------------------------------------------------------------------------------- 4 layout primitives */

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; position: relative; z-index: 1; }

.page-head { display: grid; justify-items: start; gap: 14px; padding-top: clamp(36px, 6vw, 68px); padding-bottom: clamp(22px, 3.4vw, 36px); }
.page-head .lede { margin-top: 2px; }

.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.stack-sm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.stack-lg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row-wrap, .row.wrap-row { flex-wrap: wrap; }
.row.between, .between { justify-content: space-between; }
.spacer { flex: 1; }
.grid-2 { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------------------------- 5 controls */

.btn {
  --b-bg: var(--white);
  --b-hover: #fff;
  --b-fg: var(--ink);
  --b-line: var(--line);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  background: var(--b-bg);
  color: var(--b-fg);
  font: 500 14.5px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 3px var(--b-bg), inset 0 0 0 4px rgba(20, 17, 14, .045), 0 1px 2px rgba(20, 17, 14, .05);
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease), color .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { background: var(--b-hover); border-color: #c8c0ac; }
.btn:active { transform: translateY(1px); }
.btn .bd-icon { width: 16px; height: 16px; flex: none; }
.btn-sm { min-height: 34px; padding: 0 12px; gap: 6px; font-size: 13px; border-radius: 5px; }
.btn-sm .bd-icon { width: 14px; height: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; padding: 0; }

/* colosseum's red button: an inset hairline inside the edge */
.btn-red {
  --b-bg: var(--red);
  --b-hover: #a1221b;
  --b-fg: #fff8f3;
  --b-line: var(--red-ink);
  box-shadow: inset 0 0 0 2px var(--b-bg), inset 0 0 0 3px rgba(255, 218, 204, .55), 0 8px 20px -10px rgba(126, 25, 18, .6);
  transition-property: background-color, box-shadow, transform;
}
.btn-red:hover { border-color: var(--red-ink); }
.btn-red:focus-visible { outline-color: var(--red-ink); }

/* orbio's lime buy button */
.btn-lime {
  --b-bg: var(--lime);
  --b-hover: #bdf52b;
  --b-fg: var(--ink);
  --b-line: rgba(47, 59, 0, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 12px 26px -14px rgba(120, 165, 0, .95), 0 1px 2px rgba(47, 59, 0, .12);
}
.btn-lime:hover { border-color: rgba(47, 59, 0, .4); }
.btn-ink { --b-bg: var(--ink); --b-hover: #2a2620; --b-fg: var(--paper); --b-line: var(--ink); box-shadow: inset 0 0 0 2px var(--b-bg), inset 0 0 0 3px rgba(250, 248, 244, .18); }
.btn-ghost { --b-bg: transparent; --b-hover: var(--paper-2); --b-fg: var(--ink-2); --b-line: transparent; box-shadow: none; }
.btn-ghost:hover { border-color: transparent; color: var(--ink); }
.btn-danger { --b-fg: var(--red); }

.btn[disabled], .btn.off, .btn[aria-disabled='true'] { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }
.btn[disabled]:hover, .btn.off:hover, .btn[aria-disabled='true']:hover { background: var(--b-bg); border-color: var(--b-line); }
.btn.busy { pointer-events: none; }
.btn.busy .bd-icon-loader, .spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spinner { display: inline-block; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; opacity: .8; }

/* the coin pair ($PARADOX Buy, Copy CA): mono, compact; the "soon" state reads as intentional, not broken */
.coin { font-family: var(--mono); font-weight: 500; letter-spacing: .01em; }
.coin[aria-disabled='true'], .coin[disabled] { opacity: .78; border-style: dashed; }

.wallet-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.wallet-btn .addr { font-family: var(--mono); letter-spacing: -0.02em; }
.addr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft), 0 0 0 4px rgba(47, 59, 0, .15); }
.wallet-btn.wrong .addr-dot { background: var(--red); box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }

/* fields */
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; }
.field > span, .field-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.field > span small, .field-label small { font: 400 12px/1.3 var(--mono); color: var(--muted); letter-spacing: 0; }
.input, .select, .textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font: 400 16px/1.3 var(--sans);
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(20, 17, 14, .04);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: #cbc3b0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lime-soft); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
.input[aria-invalid='true'], .textarea[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(179, 38, 30, .1); }
.input.mono, .textarea.mono { font-family: var(--mono); font-size: 14.5px; letter-spacing: -0.01em; }
.textarea { padding: 12px 14px; min-height: 140px; resize: vertical; font: 400 14px/1.6 var(--mono); }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2377776f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.help { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }
.err { font-size: 13px; line-height: 1.5; color: var(--bad); margin: 0; }
.err:empty { display: none; }

.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch i { flex: none; position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--stone); border: 1px solid var(--line); transition: background .15s var(--ease); }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 17, 14, .25); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--lime); border-color: rgba(47, 59, 0, .3); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }

/* segmented control: buttons with aria-pressed (or aria-checked / aria-selected) */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); max-width: 100%; }
.seg button { min-width: 0; min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font: 500 13.5px/1.1 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed='true'], .seg button[aria-checked='true'], .seg button[aria-selected='true'] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 17, 14, .08), 0 0 0 1px var(--line); }
.seg.block { display: grid; width: 100%; }

/* tabs: serif labels, a red rule under the current one */
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab, .tabs > button { position: relative; flex: none; min-height: 48px; padding: 0 1px; border: 0; background: none; font: 400 17px/1 var(--serif); color: var(--muted); white-space: nowrap; transition: color .15s var(--ease); }
.tab:hover, .tabs > button:hover { color: var(--ink); }
.tab[aria-selected='true'], .tabs > button[aria-selected='true'] { color: var(--ink); }
.tab[aria-selected='true']::after, .tabs > button[aria-selected='true']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.tab .num, .tabs > button .num { font: 500 11px/1 var(--mono); color: var(--muted); margin-left: 6px; }

/* ----------------------------------------------------------------------------------- 6 shared components */

/* cards: a marble card, and orbio's glass card with a soft lime glow */
.card { position: relative; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--marble); box-shadow: var(--shadow); }
@media (min-width: 720px) { .card { padding: 26px; } }
.card-glass {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(20, 17, 14, .1);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(201, 255, 63, .2), transparent 58%),
    radial-gradient(80% 60% at 0% 100%, rgba(239, 227, 204, .55), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .56));
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-lg);
}
@media (min-width: 720px) { .card-glass { padding: 26px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.card-head h2, .card-head h3 { font: 400 21px/1.2 var(--serif); letter-spacing: -0.01em; }
.card-head .meta { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* badges and chips */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--stone); color: var(--ink-2); font: 500 11.5px/1 var(--sans); white-space: nowrap; }
.badge .bd-icon { width: 12px; height: 12px; }
.badge-lime { background: var(--lime-soft); color: var(--lime-ink); box-shadow: inset 0 0 0 1px rgba(47, 59, 0, .14); }
.badge-red { background: var(--red-soft); color: var(--red-ink); }
.badge-gold { background: var(--gold-soft); color: #6b4f22; }
.badge-plum { background: var(--lavender); color: var(--plum); }
.badge-ok { background: #e3f0e2; color: var(--ok); }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font: 500 13px/1 var(--sans); white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
button.chip:hover, a.chip:hover { border-color: #c8c0ac; color: var(--ink); }
.chip[aria-pressed='true'], .chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip .bd-icon { width: 14px; height: 14px; }

/* key/value list (dl) */
.kv { display: grid; margin: 0; }
.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { font-size: 13.5px; color: var(--muted); flex: none; }
.kv dd { margin: 0; font: 500 13.5px/1.4 var(--mono); letter-spacing: -0.01em; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* tables; .table.stack-sm-cards turns rows into cards on phones (td[data-k] gives the label) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--marble); font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: rgba(243, 240, 232, .6); }
@media (max-width: 640px) {
  .table.cards thead { display: none; }
  .table.cards, .table.cards tbody, .table.cards tr, .table.cards td { display: block; width: 100%; }
  .table.cards tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .table.cards tr:last-child { border-bottom: 0; }
  .table.cards td { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border: 0; text-align: right; }
  .table.cards td::before { content: attr(data-k); font: 500 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; }
}

/* empty states, loading skeletons, the pre-launch gate */
.empty { display: grid; justify-items: center; gap: 8px; padding: 34px 18px; text-align: center; border: 1px dashed #cdc5b2; border-radius: var(--r); background: rgba(243, 240, 232, .5); color: var(--muted); font-size: 14px; line-height: 1.55; }
.empty > .bd-icon { width: 22px; height: 22px; color: var(--gold); }
.empty b { font: 400 19px/1.25 var(--serif); color: var(--ink); }
.empty span { max-width: 30rem; text-wrap: pretty; }
.empty .btn { margin-top: 6px; }
.skeleton { display: inline-block; min-width: 3.4em; height: .9em; border-radius: 4px; background: linear-gradient(90deg, var(--stone) 25%, var(--paper-2) 50%, var(--stone) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; vertical-align: middle; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-lines { display: grid; gap: 12px; padding: 6px 0; }
.skeleton-lines .skeleton { display: block; width: 100%; height: 16px; }
.skeleton-lines .skeleton:nth-child(3n + 2) { width: 84%; }
.skeleton-lines .skeleton:nth-child(3n) { width: 62%; }
.gate { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #d8cbe1; border-radius: var(--r); background: var(--plum-soft); color: var(--plum); font-size: 13.5px; line-height: 1.5; }
.gate > .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.gate b { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--gold-soft); color: #5b4320; font-size: 13.5px; line-height: 1.5; }
.note > .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* score bar with the pass line at 70 */
.meter { position: relative; height: 10px; border-radius: 999px; background: var(--stone); box-shadow: inset 0 1px 1px rgba(20, 17, 14, .08); }
.meter > i { position: absolute; inset: 0 auto 0 0; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, #a39b88, var(--ink-2)); transition: width .7s var(--ease); }
.meter.pass > i { background: linear-gradient(90deg, #b6ec27, var(--lime)); box-shadow: inset 0 0 0 1px rgba(47, 59, 0, .18); }
.meter.fail > i { background: linear-gradient(90deg, #dc9b92, var(--red)); }
.meter-line { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.meter-line::after { content: '70'; position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font: 500 9.5px/1 var(--mono); color: var(--muted); }
.meter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 12px; }
.meter-row > b { font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; min-width: 2.4ch; text-align: right; }

/* laurel badge: a wreath inked in gold, silver or bronze */
.laurel { --lc: var(--gold); display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 11px 0 7px; border: 1px solid color-mix(in oklab, var(--lc) 38%, transparent); border-radius: 999px; background: color-mix(in oklab, var(--lc) 13%, var(--white)); color: color-mix(in oklab, var(--lc) 62%, var(--ink)); font: 500 12px/1 var(--sans); white-space: nowrap; }
.laurel::before { content: ''; flex: none; width: 18px; height: 18px; background: var(--lc); -webkit-mask: url('/img/art/laurel.svg') center / contain no-repeat; mask: url('/img/art/laurel.svg') center / contain no-repeat; }
.laurel-gold { --lc: #b08d57; }
.laurel-silver { --lc: #8a9097; }
.laurel-bronze { --lc: #a2653a; }
.laurel-none { --lc: var(--faint); }

/* agent medallion: a marble disc in a ring coloured by rank; initials in serif, or the Zeno medal */
.medal {
  --size: 44px;
  --ring: var(--gold);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  border: max(2px, calc(var(--size) * .06)) solid var(--ring);
  background: radial-gradient(circle at 34% 28%, #fffef9 0%, #efe9dc 58%, #dcd3bf 100%);
  box-shadow: inset 0 0 0 1px rgba(20, 17, 14, .18), inset 0 0 0 max(3px, calc(var(--size) * .07)) rgba(255, 255, 255, .55), 0 0 0 1px rgba(20, 17, 14, .14), 0 4px 12px -6px rgba(20, 17, 14, .35);
  color: var(--ink);
  font: 500 calc(var(--size) * .36)/1 var(--serif);
  letter-spacing: -0.02em;
  overflow: hidden;
  user-select: none;
}
.medal img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.medal-zeno { border: 0; background: none; box-shadow: 0 4px 12px -6px rgba(20, 17, 14, .35); }
.medal .medal-id { position: absolute; bottom: 12%; font: 500 calc(var(--size) * .14)/1 var(--mono); color: var(--muted); letter-spacing: 0; }
.medal.has-id .medal-init { transform: translateY(-14%); }
.rank-acolyte { --ring: #b9b2a2; }
.rank-sophist { --ring: #a2653a; }
.rank-dialectician { --ring: #8a9097; }
.rank-philosopher { --ring: #b08d57; }
.rank-sage { --ring: #5f7c2b; }
.rank-oracle { --ring: #b3261e; }
.rank { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 9px 0 7px; border-radius: 999px; background: color-mix(in oklab, var(--ring, var(--gold)) 14%, var(--white)); color: color-mix(in oklab, var(--ring, var(--gold)) 60%, var(--ink)); font: 500 11.5px/1 var(--sans); white-space: nowrap; border: 1px solid color-mix(in oklab, var(--ring, var(--gold)) 34%, transparent); }
.rank::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--ring, var(--gold)); }

/* difficulty pips: four diamonds */
.pips { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.pips i { width: 7px; height: 7px; border: 1px solid var(--wing, var(--red)); transform: rotate(45deg); }
.pips i.on { background: var(--wing, var(--red)); }

/* the five wings of the Agora: an accent each. Tablets and niches default to gold at zero specificity, so a
   .wing-* class on the element itself (or an ancestor that the element inherits from) always wins. */
:where(.tablet, .niche) { --wing: var(--gold); }
.wing-infinity { --wing: #8a6a2f; --wing-soft: #f3ead6; }
.wing-logic { --wing: #5b2a68; --wing-soft: #f1e9f4; }
.wing-chance { --wing: #b3261e; --wing-soft: #f7e6e2; }
.wing-cosmos { --wing: #2c4a7a; --wing-soft: #e5ebf4; }
.wing-markets { --wing: #4a7417; --wing-soft: #ecf3df; }

/* paradox card: a stone tablet with a double hairline frame and its wing's accent on top */
.tablet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 24px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, #fcfbf8 0%, #f3f0e8 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), inset 0 0 0 5px var(--line-2), 0 1px 0 rgba(20, 17, 14, .04), 0 16px 30px -26px rgba(20, 17, 14, .45);
  color: var(--ink);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tablet::before { content: ''; position: absolute; left: 14px; right: 14px; top: -1px; height: 3px; border-radius: 0 0 2px 2px; background: var(--wing); }
a.tablet:hover, .tablet.hover:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--wing) 40%, var(--line)); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .7), inset 0 0 0 5px var(--line-2), 0 1px 0 rgba(20, 17, 14, .04), 0 26px 40px -28px rgba(20, 17, 14, .55); }
.tablet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.tablet-meta { font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tablet-title, .tablet h3 { font: 400 23px/1.14 var(--serif); letter-spacing: -0.015em; }
.tablet-hook { font: italic 400 16px/1.45 var(--serif); color: var(--ink-2); text-wrap: pretty; margin-bottom: 6px; }
.tablet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.tablet-reward { font: 500 13px/1 var(--mono); color: var(--ink); }

/* stock logos: round, 22px, overlapping in a group */
.stock { display: inline-block; flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 0 0 2px var(--white); vertical-align: middle; }
.stocks { display: inline-flex; align-items: center; }
.stocks .stock + .stock { margin-left: 3px; }

/* run log (agent console) */
.log { list-style: none; margin: 0; padding: 0; display: grid; font: 400 12.5px/1.5 var(--mono); }
.log li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.log li:last-child { border-bottom: 0; }
.log li > .bd-icon, .log li > .spinner { width: 15px; height: 15px; margin-top: 2px; }
.log li.done > .bd-icon { color: var(--ok); }
.log li.error > .bd-icon { color: var(--bad); }
.log .log-step { color: var(--ink); text-transform: uppercase; letter-spacing: .08em; font-size: 11.5px; }
.log .log-text { color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.log .log-ms { color: var(--muted); }

/* code */
.code { position: relative; min-width: 0; border-radius: var(--r); background: #17140f; color: #ede7da; border: 1px solid #2b261d; overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 14px; border-bottom: 1px solid #2b261d; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a39a87; }
.code-head button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 10px; border: 1px solid #3b352a; border-radius: 6px; background: #221e17; color: #ede7da; font: 500 12px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.code-head button:hover { background: #2c271e; }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 13px/1.7 var(--mono); -webkit-overflow-scrolling: touch; }
code.inl { font: 400 .88em/1.4 var(--mono); padding: 1px 6px; border-radius: 4px; background: var(--stone); color: var(--ink); overflow-wrap: anywhere; }

/* FAQ / disclosure */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; display: block; padding: 20px 44px 20px 0; font: 400 19.5px/1.35 var(--serif); letter-spacing: -0.01em; cursor: pointer; transition: color .15s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-ink); }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 13px; height: 1px; background: var(--ink-2); transition: transform .25s var(--ease), opacity .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.68; max-width: 44rem; }

/* ---------------------------------------------------------------------- 7 shell: strip, header, sheet, footer */

/* the lavender announcement strip, with a bead border */
.strip { position: relative; z-index: 22; background: var(--lavender); color: var(--plum); }
.strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: radial-gradient(circle at 50% 50%, rgba(71, 33, 81, .42) 0 1.3px, transparent 1.8px) 0 50% / 9px 7px repeat-x; border-top: 1px solid rgba(71, 33, 81, .14); }
.strip-in { display: flex; align-items: center; gap: 18px; max-width: calc(var(--wrap) + 2 * var(--gutter)); min-height: 44px; margin: 0 auto; padding: 0 var(--gutter) 7px; }
.strip-season { display: inline-flex; align-items: baseline; gap: 10px; min-width: 0; font: 400 15px/1 var(--serif); white-space: nowrap; }
.strip-season b { font-weight: 600; }
.strip-title { font-style: italic; opacity: .82; overflow: hidden; text-overflow: ellipsis; }
.strip-season:hover .strip-title { opacity: 1; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.strip-dot { position: relative; align-self: center; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(179, 38, 30, .16); }
.strip-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--red); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
.strip-note { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: .78; white-space: nowrap; }
.strip-note .dia { margin: 0; }
.strip-coin { display: inline-flex; gap: 6px; flex: none; }
.strip .coin { --b-bg: rgba(255, 255, 255, .5); --b-hover: rgba(255, 255, 255, .85); --b-fg: var(--plum); --b-line: rgba(71, 33, 81, .3); min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; box-shadow: none; }
@media (max-width: 1020px) { .strip-note { display: none; } .strip-coin { margin-left: auto; } }
@media (max-width: 680px) { .strip-coin { display: none; } .strip-in { justify-content: center; } }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -26px rgba(20, 17, 14, .4); }
.nav { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 2px 8px -3px rgba(20, 17, 14, .4); }
.brand b { font: 500 22px/1 var(--serif); letter-spacing: -0.02em; }
.brand b span { color: var(--muted); font-weight: 400; }
.nav-links { display: flex; align-items: center; margin-left: auto; color: var(--faint); }
.nav-links a { position: relative; padding: 14px 1px; font: 400 16px/1 var(--serif); color: var(--ink-2); transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current='page'] { color: var(--ink); }
.nav-links a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--red); }
.nav-links .dia { margin: 0 13px; width: 5px; height: 5px; }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: 10px; }
.menu-btn { display: none; }
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand b { font-size: 20px; }
  .nav .wallet-btn { width: 44px; min-height: 44px; padding: 0; }
  .nav .wallet-btn .wl, .nav .wallet-btn .addr { display: none; }
}

/* phone menu sheet */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(20, 17, 14, .3); opacity: 0; transition: opacity .2s var(--ease); }
.sheet-back.open { opacity: 1; }
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 41;
  max-height: 100svh;
  overflow-y: auto;
  padding: 8px var(--gutter) calc(20px + var(--safe-b));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 30px 60px -30px rgba(20, 17, 14, .5);
  transform: translateY(-104%);
  transition: transform .34s cubic-bezier(.32, .72, 0, 1);
}
.sheet.open { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.sheet nav { display: grid; margin: 8px 0 16px; border-top: 1px solid var(--line); }
.sheet nav a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 2px; border-bottom: 1px solid var(--line); font: 400 22px/1 var(--serif); letter-spacing: -0.01em; }
.sheet nav a[aria-current='page'] { color: var(--red); }
.sheet nav a .bd-icon { width: 18px; height: 18px; color: var(--faint); }
.sheet-coin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.sheet-coin .coin { min-height: 42px; padding: 0 8px; font-size: 12px; }
.sheet-x { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; font: 500 13px/1 var(--mono); color: var(--muted); }
.sheet-x .bd-icon { width: 14px; height: 14px; }

/* footer: a line-art colonnade standing on a red podium */
.site-footer { position: relative; z-index: 1; margin-top: clamp(84px, 10vw, 136px); }
.foot-art { height: clamp(170px, 19vw, 280px); margin-bottom: -2px; background-color: #b9b19f; -webkit-mask: url('/img/art/colonnade.svg') center bottom / max(1200px, 100%) auto no-repeat; mask: url('/img/art/colonnade.svg') center bottom / max(1200px, 100%) auto no-repeat; }
.foot-body {
  position: relative;
  padding: clamp(48px, 6vw, 72px) 0 calc(28px + var(--safe-b));
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 140, 110, .12), transparent 70%),
    linear-gradient(180deg, #8b1d15, var(--red-ink) 60%, #6d150f);
  color: #f6e8e1;
  box-shadow: inset 0 0 0 10px transparent, inset 0 0 0 11px rgba(255, 214, 200, .16);
}
.foot-body::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 16px; background-color: rgba(255, 214, 200, .3); -webkit-mask: url('/img/art/meander.svg') 0 0 / auto 16px repeat-x; mask: url('/img/art/meander.svg') 0 0 / auto 16px repeat-x; }
.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.foot-brand { display: grid; align-content: start; justify-items: start; gap: 14px; }
.brand-light { color: #fbefe9; }
.brand-light b span { color: rgba(251, 239, 233, .6); }
.brand-light img { box-shadow: 0 0 0 1px rgba(255, 214, 200, .3); }
.foot-brand p { max-width: 22rem; color: rgba(246, 232, 225, .78); font: italic 400 17px/1.5 var(--serif); }
.foot-x { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 214, 200, .3); border-radius: 6px; font: 500 13px/1 var(--mono); color: #fbefe9; transition: background .15s var(--ease); }
.foot-x:hover { background: rgba(255, 214, 200, .1); }
.foot-x .bd-icon { width: 14px; height: 14px; }
.foot-col { display: grid; align-content: start; gap: 2px; }
.foot-col h2 { margin-bottom: 10px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 232, 225, .55); }
.foot-col a { display: block; padding: 7px 0; font: 400 16px/1.3 var(--serif); color: #f6e8e1; transition: color .15s var(--ease); }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 214, 200, .6); }
.foot-base { display: flex; align-items: center; gap: 20px; margin-top: clamp(40px, 5vw, 60px); padding-top: 22px; border-top: 1px solid rgba(255, 214, 200, .18); }
.foot-legal { font: 500 11.5px/1.4 var(--mono); letter-spacing: .08em; color: rgba(246, 232, 225, .78); white-space: nowrap; }
.foot-meander { position: relative; flex: 1; height: 9px; min-width: 40px; color: rgba(255, 214, 200, .38); background: linear-gradient(currentColor, currentColor) center / calc(100% - 24px) 1px no-repeat; }
.foot-meander::before, .foot-meander::after { content: ''; position: absolute; top: 1px; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.foot-meander::before { left: 2px; }
.foot-meander::after { right: 2px; }
.foot-coin { display: inline-flex; gap: 6px; }
.foot-coin .coin { --b-bg: transparent; --b-hover: rgba(255, 214, 200, .1); --b-fg: #fbefe9; --b-line: rgba(255, 214, 200, .38); box-shadow: none; font-size: 11.5px; }
@media (max-width: 900px) { .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-base { flex-wrap: wrap; justify-content: space-between; gap: 16px; }
  .foot-meander { order: -1; flex-basis: 100%; }
  .foot-coin { width: 100%; }
  .foot-coin .coin { flex: 1; }
}

/* ------------------------------------------------------------------------------------------------- 8 landing */

.sec { padding-top: clamp(84px, 10vw, 136px); }
.sec-head { display: grid; justify-items: center; gap: 16px; max-width: 46rem; margin: 0 auto; }
.sec-head.center { text-align: center; }
.sec-sub { font: 400 17px/1.62 var(--sans); color: var(--ink-2); max-width: 38rem; text-wrap: pretty; }
.sec-foot { margin-top: 38px; }

/* hero */
.hero { position: relative; padding-top: clamp(44px, 7vw, 88px); }
.hero-sky { position: absolute; inset: 0 0 auto 0; height: 560px; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-sky .art { position: absolute; }
.sky-c1 { left: max(-60px, calc(50% - 760px)); top: 40px; width: clamp(200px, 21vw, 310px); color: #cdc5b4; }
.sky-c2 { right: max(-50px, calc(50% - 770px)); top: 70px; width: clamp(170px, 17vw, 250px); color: #d3ccbc; transform: scaleX(-1); }
.sky-b1 { left: calc(50% - 470px); top: 22px; width: 92px; color: #b3aa96; }
.sky-b2 { right: calc(50% - 500px); top: 30px; width: 70px; color: #bdb5a2; transform: scaleX(-1); }
.sky-arch { top: 150px; width: clamp(150px, 14.5vw, 205px); color: #e1dbcd; }
.sky-arch-l { left: max(-40px, calc(50% - 640px)); }
.sky-arch-r { right: max(-40px, calc(50% - 640px)); }
@media (max-width: 1180px) { .sky-arch { opacity: .55; } }
.hero-head { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }
.hero-head .eyebrow { margin-bottom: 22px; }
.hero-head .lede { margin: 22px auto 0; max-width: 37rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* the fresco: the Zeno banner hung between two marble columns under a beam */
.fresco { position: relative; z-index: 1; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: clamp(48px, 6vw, 72px) auto 0; padding: 0 var(--gutter); }
.fresco-stage { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; }
.fresco-stage::before {
  /* the beam the columns carry: cornice, a gold Greek key, architrave */
  content: '';
  grid-column: 1 / -1;
  grid-row: 1;
  height: 32px;
  margin: 0 -8px;
  border: 1px solid #d5cebd;
  border-radius: 2px;
  background:
    linear-gradient(#d5cebd, #d5cebd) 0 7px / 100% 1px no-repeat,
    linear-gradient(#d5cebd, #d5cebd) 0 calc(100% - 6px) / 100% 1px no-repeat,
    linear-gradient(180deg, #fbf9f4, #ebe6da);
  box-shadow: 0 10px 16px -12px rgba(74, 52, 25, .45);
}
.fresco-stage::after { content: ''; position: absolute; left: 4px; right: 4px; top: 9px; height: 14px; background-color: rgba(176, 141, 87, .7); -webkit-mask: url('/img/art/meander.svg') 0 0 / auto 14px repeat-x; mask: url('/img/art/meander.svg') 0 0 / auto 14px repeat-x; pointer-events: none; }
.fresco-pillar {
  grid-row: 2;
  display: block;
  background:
    url('/img/orbio/pillar-cap.webp') center top / 100% auto no-repeat,
    url('/img/orbio/pillar-base.webp') center bottom / 100% auto no-repeat,
    url('/img/orbio/pillar-shaft.webp') center 44px / 100% calc(100% - 76px) no-repeat;
  filter: drop-shadow(0 14px 16px rgba(74, 52, 25, .2));
}
.fresco-pillar-l { grid-column: 1; }
.fresco-pillar-r { grid-column: 3; transform: scaleX(-1); }
.fresco-frame {
  grid-row: 2;
  grid-column: 2;
  position: relative;
  margin: 16px 10px 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 0 0 1px #cfc7b4, 0 0 0 6px var(--white), 0 0 0 7px var(--line), 0 30px 50px -30px rgba(74, 52, 25, .55);
}
.fresco-frame img { width: 100%; height: auto; aspect-ratio: 2172 / 724; object-fit: cover; }
.fresco-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 -60px 60px -40px rgba(20, 17, 14, .25); }

/* the museum label under the fresco: a caption and the live numbers */
.plaque {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 18px 34px;
  width: min(980px, calc(100% - 140px));
  margin: -30px auto 0;
  padding: 22px 28px;
  border: 1px solid rgba(20, 17, 14, .1);
  border-radius: 16px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(201, 255, 63, .22), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(255, 255, 255, .66));
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 30px 50px -28px rgba(74, 52, 25, .5);
}
.plaque-label { display: grid; gap: 8px; }
.plaque-label p { font: italic 400 16.5px/1.5 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.plaque-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.plaque-stats > div { position: relative; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 4px 8px; }
.plaque-stats > div + div::before { content: ''; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; border: 1px solid var(--faint); background: var(--white); transform: translateY(-50%) rotate(45deg); }
.plaque-stats > div + div::after { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); z-index: -1; }
.plaque-stats dt { order: 2; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plaque-stats dd { order: 1; margin: 0; font: 400 clamp(30px, 3.4vw, 42px)/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.plaque-stats dd .skeleton { width: 2.4em; height: .7em; }
.plaque-stats dd small { font-size: .5em; color: var(--muted); margin-left: 3px; }
.plaque-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); font: 500 10.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--plum); }
.plaque-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); opacity: .7; }

/* the method: a Doric frieze, triglyphs between four metopes */
.method .sec-head { margin-bottom: 40px; }
.frieze { position: relative; background: linear-gradient(180deg, var(--paper-2), #efebe1); border-block: 1px solid var(--line); }
.frieze-band { position: relative; height: 36px; border-block: 1px solid var(--line); background: rgba(231, 226, 214, .45); }
.frieze-band:first-child { border-top: 0; }
.frieze-band:last-child { border-bottom: 0; }
.frieze-band::before { content: ''; position: absolute; inset: 9px 0; background-color: rgba(176, 141, 87, .6); -webkit-mask: url('/img/art/meander.svg') 0 0 / auto 16px repeat-x; mask: url('/img/art/meander.svg') 0 0 / auto 16px repeat-x; }
.metopes { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metope {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: 38px 30px 34px;
}
.metope + .metope::before {
  /* a triglyph: three grooves between the metopes */
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 16px;
  border-inline: 1px solid var(--line);
  background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat, rgba(231, 226, 214, .55);
}
.metope-num { font: italic 400 19px/1 var(--serif); color: var(--red); letter-spacing: .04em; }
.metope .art { width: 96px; height: 70px; color: #8a8273; }
.metope .art-laurel, .metope .art-tortoise { width: 96px; }
.metope h3 { font: 400 27px/1.1 var(--serif); letter-spacing: -0.015em; }
.metope p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 17rem; text-wrap: pretty; }
.metope-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metope-meta b { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
  .metopes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metope:nth-child(odd)::before { display: none; }
  .metope:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .metopes { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .metope {
    grid-template-columns: 76px minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: 'art num' 'art title' 'art text' 'art meta';
    justify-items: start;
    align-content: start;
    text-align: left;
    gap: 6px 18px;
    padding: 26px var(--gutter) 24px;
  }
  .metope:nth-child(n + 2) { border-top: 0; }
  .metope + .metope::before, .metope:nth-child(odd)::before { display: block; left: var(--gutter); right: var(--gutter); top: -7px; bottom: auto; width: auto; height: 14px; border-inline: 0; border-block: 1px solid var(--line); background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat, rgba(231, 226, 214, .55); }
  .metope:first-child::before { display: none; }
  .metope-num { grid-area: num; }
  .metope .art { grid-area: art; width: 76px; height: 64px; align-self: start; margin-top: 4px; }
  .metope h3 { grid-area: title; font-size: 24px; }
  .metope p { grid-area: text; max-width: none; }
  .metope-meta { grid-area: meta; }
}

/* the Agora: five wings as arched niches, each standing on a plinth of sample trials */
.niches { list-style: none; margin: 46px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 18px; }
.niche { display: grid; grid-row: span 2; grid-template-rows: subgrid; min-width: 0; }
@supports not (grid-template-rows: subgrid) { .niche { grid-template-rows: 1fr auto; } }
.niche-in {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 62px 18px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background:
    radial-gradient(70% 45% at 50% 0%, color-mix(in oklab, var(--wing-soft, var(--gold-soft)) 85%, transparent), transparent 75%),
    linear-gradient(180deg, var(--marble), var(--paper-2));
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line-2);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.niche-in::before { content: ''; position: absolute; top: 22px; left: 50%; width: 9px; height: 9px; border: 1px solid var(--wing); background: var(--wing-soft, var(--paper)); transform: translateX(-50%) rotate(45deg); }
.niche-in:hover { border-color: color-mix(in oklab, var(--wing) 45%, var(--line)); }
.niche-in:hover h3 { color: var(--wing); }
.niche-num { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; color: var(--muted); }
.niche h3 { font: 400 26px/1.1 var(--serif); letter-spacing: -0.015em; transition: color .2s var(--ease); }
.niche-epithet { font: italic 400 16px/1.35 var(--serif); color: var(--wing); text-wrap: balance; }
.niche-blurb { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.niche-count { margin-top: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.niche-list { list-style: none; margin: 0; padding: 4px 12px; border: 1px solid var(--line); border-radius: 0 0 4px 4px; background: var(--white); box-shadow: 0 14px 24px -22px rgba(20, 17, 14, .5); }
.niche-list li + li { border-top: 1px dashed var(--line); }
.niche-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 2px; font: 400 15px/1.25 var(--serif); color: var(--ink); }
.niche-list a span { min-width: 0; }
.niche-list a:hover span { color: var(--wing); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 1120px) and (min-width: 641px) {
  .niches { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .niche { margin-bottom: 26px; }
  .niche { grid-column: span 2; }
  .niche:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 860px) and (min-width: 641px) {
  .niches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .niche, .niche:nth-child(4) { grid-column: auto; }
  .niche:last-child { grid-column: 1 / -1; width: min(100%, 360px); justify-self: center; }
}
@media (max-width: 640px) {
  .niches { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 34px; }
  .niche { grid-row: auto; grid-template-rows: auto auto; }
  .niche-in { padding: 52px 20px 20px; border-radius: 50% 50% 0 0 / 64px 64px 0 0; }
  .niche-in::before { top: 18px; }
}

/* the minds: an inscription on a stone lintel */
.lintel {
  position: relative;
  padding: 30px 22px 28px;
  text-align: center;
  border: 1px solid #d4cdbc;
  border-radius: 3px;
  background: linear-gradient(180deg, #f1ede4, #e6e0d3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 0 0 7px rgba(255, 255, 255, .22), inset 0 0 0 8px rgba(20, 17, 14, .07), 0 18px 34px -28px rgba(74, 52, 25, .55);
}
.lintel::before, .lintel::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; border: 1px solid #b9b09c; background: #ece7dc; transform: translateY(-50%) rotate(45deg); }
.lintel::before { left: 18px; }
.lintel::after { right: 18px; }
.lintel-title { font: 500 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.lintel-names { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 0; margin: 16px auto 0; padding: 0 30px; max-width: 980px; }
.lintel-names-2 { margin-top: 8px; }
.lintel-names li { display: inline-flex; align-items: center; font: 400 clamp(19px, 2.3vw, 27px)/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; color: #4c473e; text-shadow: 0 1px 0 rgba(255, 255, 255, .75); white-space: nowrap; }
.lintel-names li + li::before { content: ''; width: 6px; height: 6px; margin: 0 clamp(12px, 1.6vw, 22px); border: 1px solid #a69d88; transform: rotate(45deg); }
.minds-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.minds-notes > div { display: grid; align-content: start; gap: 8px; padding: 6px 28px; }
.minds-notes > div + div { border-left: 1px solid var(--line); }
.minds-notes h3 { font: 400 21px/1.2 var(--serif); }
.minds-notes p { font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
@media (max-width: 860px) {
  .minds-notes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .minds-notes > div { padding: 18px 4px; }
  .minds-notes > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .lintel { padding: 24px 14px 22px; }
  .lintel::before, .lintel::after { display: none; }
  .lintel-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; margin-top: 14px; border-top: 1px solid rgba(20, 17, 14, .1); }
  .lintel-names-2 { margin-top: 0; border-top: 0; }
  .lintel-names li { justify-content: center; min-height: 46px; padding: 0 6px; font-size: clamp(15px, 2.6vw, 19px); letter-spacing: .08em; border-bottom: 1px solid rgba(20, 17, 14, .1); white-space: normal; text-align: center; line-height: 1.2; }
  .lintel-names li:nth-child(odd) { border-right: 1px solid rgba(20, 17, 14, .1); }
  .lintel-names li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .lintel-names-2 li:last-child { border-bottom: 0; }
  .lintel-names li + li::before { display: none; }
}

/* the Oracle: the rubric and a sample verdict */
.oracle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.oracle-text { display: grid; justify-items: start; gap: 16px; }
.oracle-text .art-owl { width: 74px; color: #8a8273; margin-bottom: 4px; }
.oracle-text .lede { margin: 0; }
.rubric { list-style: none; margin: 8px 0 0; padding: 0; width: 100%; display: grid; border-top: 1px solid var(--line); }
.rubric li { display: grid; grid-template-columns: 54px 128px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rubric b { font: 400 30px/1 var(--serif); color: var(--red); }
.rubric span { font: 400 19px/1.2 var(--serif); }
.rubric em { font-style: normal; font-size: 14px; color: var(--muted); }
.oracle-note { font-size: 14px; color: var(--muted); }
/* the two examinations side by side: I the rubric, II the Oracle */
.exams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; width: 100%; margin-top: 6px; }
.exam { display: grid; align-content: start; gap: 6px; min-width: 0; }
.exam-head { display: flex; align-items: baseline; gap: 10px; font: 400 22px/1.15 var(--serif); }
.exam-num { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--red); }
.exam-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.rubric-compact { margin-top: 6px; }
.rubric-compact li { grid-template-columns: 44px minmax(0, 1fr); padding: 9px 0; gap: 10px; }
.rubric-compact b { font-size: 24px; }
.rubric-compact span { font-size: 17px; }
.oracle-live { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: 500 13px/1.4 var(--sans); color: var(--ink-2); }
.oracle-live::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); }
.oracle-live.on::before { background: var(--lime); box-shadow: 0 0 0 3px var(--lime-soft); }
.verdict-quote { margin: 0; padding: 14px 16px; border-left: 2px solid var(--gold); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: rgba(239, 227, 204, .4); }
.verdict-quote p { font: italic 400 16px/1.5 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.verdict-quote footer { margin-top: 6px; font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.verdict { display: grid; gap: 16px; padding: 28px; }
.verdict-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.verdict-head .eyebrow { flex-wrap: nowrap; }
.verdict h3 { font: 400 28px/1.12 var(--serif); }
.verdict-score { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 12px; }
.verdict-score > b { font: 400 72px/.9 var(--serif); letter-spacing: -0.03em; }
.verdict-of { font: 400 18px/1 var(--serif); color: var(--muted); }
.verdict-score .laurel { align-self: center; margin-left: auto; }
.verdict .meter { margin: 4px 0 14px; }
.verdict-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.verdict-checks li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.verdict-checks span { font: 400 16px/1.2 var(--serif); }
.verdict-checks em { font-style: normal; color: var(--muted); font-size: 13px; }
.verdict-checks b { font: 500 13px/1 var(--mono); }
.verdict-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .oracle-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .rubric li { grid-template-columns: 44px minmax(0, 1fr); gap: 2px 12px; }
  .rubric b { grid-row: span 2; font-size: 26px; }
  .rubric-compact b { grid-row: auto; font-size: 22px; }
  .verdict { padding: 22px 18px; }
  .verdict-score > b { font-size: 60px; }
  .verdict-checks li { grid-template-columns: minmax(0, 1fr) auto; }
  .verdict-checks em { grid-column: 1; grid-row: 2; }
  .verdict-checks b { grid-row: span 2; align-self: center; }
}
@media (max-width: 340px) { .exams { grid-template-columns: minmax(0, 1fr); } }

/* the hall: latest theses and top agents, two walls */
.hall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.hall-wall { position: relative; min-width: 0; padding: 0 24px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--marble); box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--line-2), var(--shadow); }
.hall-wall-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 0 14px; border-bottom: 1px solid var(--line); }
.hall-wall-head h3 { font: 400 24px/1.1 var(--serif); }
.hall-wall-head a { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.hall-wall-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hall-list { display: grid; padding: 6px 0; }
.hall-list .empty { margin: 14px 0; }
.hall-empty { display: grid; justify-items: center; gap: 8px; padding: 26px 12px 22px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.55; }
.hall-empty .art { width: 104px; margin-bottom: 6px; color: #9a9282; }
.hall-empty .art-scroll { width: 112px; }
.hall-empty .art-laurel { width: 70px; }
.hall-empty b { font: 400 21px/1.25 var(--serif); color: var(--ink); }
.hall-empty span { max-width: 26rem; text-wrap: pretty; }
.hall-empty .btn { margin-top: 8px; }
.hall-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 72px; padding: 12px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.hall-item:last-child { border-bottom: 0; }
a.hall-item:hover .hall-title { color: var(--red-ink); }
.hall-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font: 400 18px/1.25 var(--serif); transition: color .15s var(--ease); }
.hall-sub { display: block; margin-top: 3px; font: 400 12.5px/1.4 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hall-side { display: grid; justify-items: end; gap: 5px; }
.hall-pts { font: 400 20px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.hall-pts small { font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
.hall-pos { width: 22px; font: italic 400 16px/1 var(--serif); color: var(--red); text-align: center; }
.hall-who { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .hall-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .hall-wall { padding: 0 16px 8px; }
  .hall-item { gap: 12px; }
  .hall-title { font-size: 17px; }
  .hall-side .laurel { gap: 0; padding: 0 4px; font-size: 0; min-height: 26px; }
  .hall-pos { width: 16px; }
}

/* the Market Stoa: a lavender band */
.stoa { position: relative; margin-top: clamp(84px, 10vw, 136px); overflow: hidden; background: var(--lavender); color: var(--plum); border-block: 1px solid #d8cbe1; }
.stoa::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 12px; background-color: rgba(71, 33, 81, .3); -webkit-mask: url('/img/art/meander.svg') 0 0 / auto 12px repeat-x; mask: url('/img/art/meander.svg') 0 0 / auto 12px repeat-x; }
.stoa-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 96px); }
.stoa-text { display: grid; justify-items: start; gap: 16px; }
.stoa-text h2 { color: var(--plum); }
.stoa-text p { font-size: 16px; line-height: 1.65; color: rgba(71, 33, 81, .88); text-wrap: pretty; }
.stoa-text .btn { --b-bg: rgba(255, 255, 255, .6); --b-hover: #fff; --b-fg: var(--plum); --b-line: rgba(71, 33, 81, .3); }
.stoa-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stoa-list a { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; grid-template-areas: 'logos name reward' 'logos hook reward'; align-items: center; gap: 2px 16px; padding: 14px 18px; border: 1px solid rgba(71, 33, 81, .16); border-radius: 12px; background: rgba(255, 255, 255, .58); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); transition: background .2s var(--ease), transform .2s var(--ease); }
.stoa-list a:hover { background: rgba(255, 255, 255, .85); transform: translateX(3px); }
.stoa-logos { grid-area: logos; display: inline-flex; align-items: center; }
.stoa-logos .stock { width: 30px; height: 30px; }
.stoa-logos .stock + .stock { margin-left: 3px; }
.stock-none { position: relative; background: #fff; }
.stock-none::after { content: ''; position: absolute; inset: 32%; border: 1px solid var(--plum); transform: rotate(45deg); opacity: .7; }
.stoa-name { grid-area: name; font: 400 19px/1.2 var(--serif); color: var(--plum); }
.stoa-hook { grid-area: hook; font-size: 13px; line-height: 1.45; color: rgba(71, 33, 81, .72); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.stoa-reward { grid-area: reward; font: 500 12px/1 var(--mono); color: var(--plum); white-space: nowrap; }
.stoa::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 12px; background-color: rgba(71, 33, 81, .3); -webkit-mask: url('/img/art/meander.svg') 0 0 / auto 12px repeat-x; mask: url('/img/art/meander.svg') 0 0 / auto 12px repeat-x; }
@media (max-width: 900px) { .stoa-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .stoa-list a { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: 'logos name' 'logos hook' 'logos reward'; padding: 13px 14px; gap: 3px 12px; }
  .stoa-logos .stock { width: 26px; height: 26px; }
  .stoa-reward { margin-top: 4px; }
}

/* FAQ section */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.faq-head { display: grid; justify-items: start; gap: 16px; }
.faq-head p { color: var(--ink-2); font-size: 16px; }
.faq-art { width: 92px; margin-top: 18px; color: #9a9282; }
@media (max-width: 900px) { .faq-art { display: none; } }
@media (min-width: 901px) { .faq-head { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }

/* the closing plaque, with corner blocks */
.finale-plaque { position: relative; display: grid; justify-items: center; gap: 16px; max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 64px) clamp(40px, 5vw, 56px); text-align: center; border: 1px solid var(--line); background: linear-gradient(180deg, var(--marble), var(--paper-2)); box-shadow: inset 0 0 0 8px var(--paper), inset 0 0 0 9px var(--line-2), var(--shadow); }
.finale-corner { position: absolute; width: 22px; height: 22px; border: 1px solid var(--line); background: var(--paper); }
.finale-corner.tl { left: -11px; top: -11px; }
.finale-corner.tr { right: -11px; top: -11px; }
.finale-corner.bl { left: -11px; bottom: -11px; }
.finale-corner.br { right: -11px; bottom: -11px; }
.finale-plaque .art-temple { width: 150px; color: #8f8879; margin-bottom: 6px; }
.finale-plaque p { font: italic 400 19px/1.5 var(--serif); color: var(--ink-2); max-width: 32rem; text-wrap: pretty; }
.finale-plaque .hero-cta { margin-top: 10px; }

/* phones: the hero */
@media (max-width: 1100px) { .sky-b1, .sky-b2 { display: none; } }
@media (max-width: 760px) {
  .fresco-stage { grid-template-columns: minmax(0, 1fr); }
  .fresco-stage::before, .fresco-stage::after, .fresco-pillar { display: none; }
  .fresco-frame { grid-row: 1; grid-column: 1; margin: 0; border-radius: 12px; box-shadow: 0 0 0 1px #cfc7b4, 0 0 0 5px var(--white), 0 0 0 6px var(--line), 0 24px 40px -26px rgba(74, 52, 25, .55); }
  .plaque { width: calc(100% - 20px); margin-top: -30px; grid-template-columns: minmax(0, 1fr); padding: 20px 18px 18px; }
}
@media (max-width: 640px) {
  .hero-sky { height: 420px; }
  .sky-c1 { left: auto; right: -64px; top: -6px; width: 170px; }
  .sky-c2, .sky-arch { display: none; }
  .fresco-frame img { aspect-ratio: 800 / 724; }
  .hero-cta .btn { flex: 1 1 100%; }
  .plaque-stats dd { font-size: 30px; }
  .plaque-stats dt { font-size: 9.5px; letter-spacing: .1em; }
  .plaque-stats > div { padding: 2px 4px; }
}

/* ---------------------------------------------------------------------------------------------------- 9 docs */

.docs-head { padding-bottom: clamp(26px, 4vw, 44px); }
.doc { display: grid; gap: 22px; align-items: start; }
@media (min-width: 1000px) { .doc { grid-template-columns: 230px minmax(0, 1fr); gap: 64px; } }
.doc-toc { display: none; }
@media (min-width: 1000px) {
  .doc-toc { display: grid; gap: 1px; position: sticky; top: calc(var(--header-h) + 28px); align-self: start; max-height: calc(100svh - var(--header-h) - 56px); overflow-y: auto; padding: 2px 0 2px 18px; border-left: 1px solid var(--line); }
}
.doc-toc-title { margin-bottom: 10px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.doc-toc a { position: relative; padding: 7px 0; font: 400 14.5px/1.3 var(--sans); color: var(--muted); transition: color .15s var(--ease); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.active { color: var(--ink); }
.doc-toc a.active::before { content: ''; position: absolute; left: -22px; top: 50%; width: 7px; height: 7px; background: var(--red); transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 0 3px var(--paper); }
.doc-toc-phone { border: 1px solid var(--line); border-radius: var(--r); background: var(--marble); }
@media (min-width: 1000px) { .doc-toc-phone { display: none; } }
.doc-toc-phone summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 16px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.doc-toc-phone summary::-webkit-details-marker { display: none; }
.doc-toc-phone summary::after { content: ''; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.doc-toc-phone[open] summary::after { transform: rotate(-135deg); }
.doc-toc-phone nav { display: grid; padding: 0 16px 10px; }
.doc-toc-phone nav a { padding: 11px 0; border-top: 1px solid var(--line-2); font: 400 17px/1.2 var(--serif); }
.doc-body { display: grid; gap: clamp(52px, 6vw, 72px); min-width: 0; max-width: 780px; }
.doc-body section { display: grid; gap: 16px; min-width: 0; }
.doc-body h2 { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font: 400 clamp(28px, 3.4vw, 36px)/1.1 var(--serif); letter-spacing: -0.02em; }
.doc-num { flex: none; min-width: 2.1em; font: italic 400 .55em/1 var(--serif); color: var(--red); letter-spacing: .02em; }
.doc-body h3 { margin-top: 8px; font: 400 22px/1.2 var(--serif); }
.doc-body p, .doc-body li { font-size: 15.5px; line-height: 1.74; color: var(--ink-2); text-wrap: pretty; }
.doc-body b { color: var(--ink); font-weight: 600; }
.doc-body ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.doc-body ul li::marker { color: var(--gold); }
.doc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line-2); }
.doc-steps li { counter-increment: step; position: relative; display: block; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line-2); }
.doc-steps li::before { content: counter(step, upper-roman); position: absolute; left: 0; top: 14px; width: 36px; font: italic 400 19px/1.45 var(--serif); color: var(--red); text-align: center; }
.doc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.doc-table-wrap .table td { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); vertical-align: top; }
.doc-table-wrap .table td:first-child { font: 400 16.5px/1.35 var(--serif); color: var(--ink); white-space: nowrap; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.doc-panel { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--marble); }
.doc-panel h3 { margin: 0 0 10px; font-size: 19px; }
.doc-list { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.doc-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li > span:first-child:not(.laurel) { font: 400 17px/1.2 var(--serif); color: var(--ink); }
.doc-list .num { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.faq-doc summary { font-size: 18px; }
.doc-motto { font: italic 400 15.5px/1.45 var(--serif) !important; color: var(--ink) !important; white-space: nowrap; }
@media (max-width: 760px) { .doc-motto { white-space: normal; } }
@media (max-width: 640px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); }
  .doc-table-wrap .table thead { display: none; }
  .doc-table-wrap .table, .doc-table-wrap .table tbody, .doc-table-wrap .table tr, .doc-table-wrap .table td { display: block; width: 100%; }
  .doc-table-wrap .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  .doc-table-wrap .table tr:last-child { border-bottom: 0; }
  .doc-table-wrap .table td { padding: 2px 0; border: 0; text-align: left; }
  .doc-table-wrap .table td.num { text-align: left; }
  .doc-table-wrap .table td:first-child { margin-bottom: 4px; font-size: 18px; white-space: normal; }
  .doc-table-wrap .table td + td::before { content: attr(data-k); display: block; font: 500 10px/1.8 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .doc-motto { white-space: normal; }
}

/* ------------------------------------------------------------------------------------------------------ 10 404 */

.lost { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: 60svh; padding-top: clamp(48px, 8vw, 96px); text-align: center; }
.lost-art { width: clamp(150px, 20vw, 210px); color: #8a8273; margin-bottom: 6px; }
.lost .lede { margin: 0 auto; max-width: 34rem; }
.lost .hero-cta { margin-top: 12px; }
.lost-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; margin-top: 18px; color: var(--faint); }
.lost-links a { font: 400 16px/1.3 var(--serif); color: var(--ink-2); padding: 8px 0; }
.lost-links a:hover { color: var(--red); }
@media (max-width: 640px) {
  .lost-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; width: 100%; border-top: 1px solid var(--line); }
  .lost-links .dia { display: none; }
  .lost-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .lost-links a:nth-of-type(odd) { border-right: 1px solid var(--line); }
}

/* ------------------------------------------------------------------------------------------ 11 toasts, dialogs */

.toasts { position: fixed; z-index: 60; left: 50%; bottom: calc(18px + var(--safe-b)); transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1.45; box-shadow: 0 0 0 1px rgba(250, 248, 244, .08) inset, 0 20px 44px -18px rgba(20, 17, 14, .7); animation: toast-in .32s var(--ease); }
.toast .bd-icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--lime); }
.toast.bad .bd-icon { color: #ffb2a6; }
.toast a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.dialog {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--line-2), 0 40px 80px -30px rgba(20, 17, 14, .55);
  overflow-y: auto;
}
.dialog::backdrop { background: rgba(20, 17, 14, .36); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog[open] { animation: dialog-in .28s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.dialog h2 { margin: 8px 44px 16px 0; font: 400 27px/1.15 var(--serif); letter-spacing: -0.015em; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.dialog-close:hover { background: var(--paper-2); color: var(--ink); }
.dialog-close .bd-icon { width: 18px; height: 18px; }
.dialog-form { display: grid; gap: 14px; }
.dialog-form label { display: grid; gap: 7px; font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.dialog-form label small { font-weight: 400; color: var(--muted); }
.dialog-lead { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.dialog-error { margin: 0; color: var(--bad); font-size: 13px; }
.dialog-error:empty { display: none; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.dialog-actions .btn { flex: 1 1 auto; }
.dialog .help { margin-top: 14px; }
.wallet-list { display: grid; gap: 8px; }
.wallet-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: 500 15px/1 var(--sans); text-align: left; transition: border-color .15s var(--ease), background .15s var(--ease); }
.wallet-opt:hover { border-color: #c8c0ac; background: #fff; }
.wallet-opt img, .wallet-opt .wi { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.wallet-opt .wi { display: grid; place-items: center; background: var(--stone); }
.wallet-opt .wi .bd-icon { width: 16px; height: 16px; }
.wallet-opt small { margin-left: auto; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.link-box { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.link-box code { flex: 1; min-width: 0; font: 400 12.5px/1.4 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bd-icon { width: 1em; height: 1em; }

/* ----------------------------------------------------------------------------- 12 motion and transparency */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .skeleton { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .card-glass, .plaque { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--marble); }
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 17, 14, .5); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card-glass, .plaque { background: var(--marble); }
  .site-header { background: var(--paper); }
}

/* Phones and portrait tablets: bigger targets for standalone text links. The padding widens what a thumb can hit and
   the matching negative margin keeps flex and block links where they were (on inline links it changes nothing);
   summaries get real padding. */
@media (max-width: 820px) {
  .strip-season, .px-crumbs a, .hall-wall-head a, .board-wing-link, .dash-wing-top a, .dash-who-actions a,
  .dash-oracle-foot a, .trial-sum a.link, .admin-office a.link, .admin-log a.link, .rec-side a.link, .rec-main a,
  .px-thesis-foot a.link, .field small a.link, .field span > a.link, .board-send, .theses-meta a,
  .theses-foot a.link, .lead-who-text a, .dash-sec-links a.link { padding-block: 8px; margin-block: -8px; }
  .board-send { padding-inline: 8px; margin-inline: -8px; }
  /* where a line sits closer than 8px, the target stops at the gap instead of reaching over the line next to it */
  .dash-trial-name { padding-block: 8px 5px; margin-block: -8px -5px; }
  a.lead-step-name { padding-block: 6px; margin-block: -6px; }
  details > summary { padding-block: 8px; }
  .code-head button { min-height: 36px; }
}

/* "Use your chat subscription": copy the prompt, solve it in ChatGPT, Claude or Gemini, paste the reply back */
.chat-apps { display: grid; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: var(--r); background: color-mix(in oklab, var(--lime-soft) 35%, var(--paper)); }
.chat-apps-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.chat-apps-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chat-apps-links { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-apps-links .btn .bd-icon { width: 12px; height: 12px; }
.chat-apps-note:empty { display: none; }
@media (max-width: 420px) { .chat-apps-steps > li, .chat-apps-steps > li > .btn { width: 100%; } .chat-apps-links .btn { flex: 1 1 0; justify-content: center; } }
