/* ATHLOS · a museum of the twelve labours. Engraved in one silver ink, on walls painted room by room. */
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Commissioner"; src: url("/fonts/commissioner-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Commissioner"; src: url("/fonts/commissioner-greek.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Martian Mono"; src: url("/fonts/martian-latin.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

/* The museum: every room has its own wall, painted in two colours that meet. The ink never changes. */
@property --wa { syntax: "<color>"; inherits: true; initial-value: #0C5A63; }
@property --wb { syntax: "<color>"; inherits: true; initial-value: #0D2C55; }
:root { --ink: #E8F4F0; --ink-rgb: 232, 244, 240; --dark: #071A22; --wa: #0C5A63; --wb: #0D2C55; }
[data-room="hall"]     { --wa: #0C5A63; --wb: #0D2C55; }   /* patina → kyanos: the hall of heroes */
[data-room="kyanos"]   { --wa: #1B4596; --wb: #0E5560; }   /* Egyptian blue, the paint of temples → patina */
[data-room="porphyry"] { --wa: #3B2F72; --wb: #14366E; }   /* porphyry, the purple of the gods → kyanos */
[data-room="marble"]   { --wa: #41495A; --wb: #16485A; }   /* marble slate → patina */
[data-room="night"]    { --wa: #14496B; --wb: #2A2C68; }   /* Aegean night → porphyry */
[data-room="laurel"]   { --wa: #1E5A4E; --wb: #123A5A; }   /* laurel bronze → Aegean */
:root {
  --panel: rgba(4, 18, 28, 0.30); --well: rgba(4, 16, 24, 0.40);
  --ink-2: rgba(var(--ink-rgb), 0.76);
  --ink-3: rgba(var(--ink-rgb), 0.52);
  --line: rgba(var(--ink-rgb), 0.17);
  --line-2: rgba(var(--ink-rgb), 0.08);
  --sans: "Commissioner", "Optima", "Candara", system-ui, sans-serif;
  --code: "Martian Mono", ui-monospace, "SFMono-Regular", monospace;
  --silver: linear-gradient(176deg, #FFFFFF 0%, #DCE6E4 38%, #A9B7B6 62%, #EEF3F2 100%);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --r: 4px;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 13.4H24M0 .6H24M2 13.4V3.4H14V10.6H6V6.4H10' fill='none' stroke='%23E8F4F0' stroke-width='1.1'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { background: #0B3A4A; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.6; font-variation-settings: "FLAR" 30; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "tnum" 0;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,0.09), transparent 70%), linear-gradient(165deg, var(--wa) 0%, var(--wb) 100%);
  background-attachment: fixed; transition: --wa 1.4s ease, --wb 1.4s ease; }
/* paper grain over everything, like the plates */
body::before { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
code, pre, .code-line { font-family: var(--code); font-stretch: 87.5%; font-size: 0.82em; }
::selection { background: rgba(var(--ink-rgb), 0.25); }
.mono, .num { font-variant-numeric: tabular-nums; }
.dim, .dimtext { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: 14.5px; margin: 14px 0 0; }
.note.pad { padding: 20px; margin: 0; }
.note.center { text-align: center; }
h1, h2, h3, .word, .big, .gn, .token-name { font-variation-settings: "FLAR" 100, "VOLM" 0; }

/* ------------------------------------------------------------------ the pediment: a symmetric header around the coin */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 76px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 8px;
  transition: background .35s, backdrop-filter .35s; }
body.scrolled .top { background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 calc(100% - 4px) / 100% 1px no-repeat, rgba(6, 24, 36, 0.42);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); }
.top .ca { justify-self: start; }
.nav-l { justify-self: end; display: flex; gap: 2px; }
.nav-r { justify-self: start; display: flex; gap: 2px; }
.nav-l a, .nav-r a { padding: 8px 14px; color: var(--ink-2); font-size: 15.5px; letter-spacing: 0.01em; transition: color .2s; position: relative; }
.nav-l a:hover, .nav-r a:hover, .nav-l a.on, .nav-r a.on { color: var(--ink); }
.nav-l a.on::after, .nav-r a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--ink-3); }
.top .enter { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin: 0 22px; }
.brand img { width: 36px; height: 36px; }
.word { font-weight: 500; font-size: 17px; letter-spacing: 0.36em; margin-right: -0.36em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ca { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); white-space: nowrap; transition: border-color .2s; }
.ca .k { color: var(--ink); font-weight: 600; letter-spacing: 0.02em; }
.ca:not([aria-disabled]):hover { border-color: var(--ink-3); }
.ca[aria-disabled="true"] { cursor: default; }
.burger { display: none; width: 42px; height: 40px; position: relative; justify-self: end; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.4px; background: var(--ink); transition: transform .3s; }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 23px; }
body.menu-open .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { display: none; }

/* ------------------------------------------------------------------ buttons: framed like a note */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: var(--r); font-weight: 500; font-size: 16px; letter-spacing: 0.01em;
  background: var(--ink); color: var(--dark); border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px rgba(7, 26, 34, 0.28);
  transition: transform .2s, background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.small { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--ink-3); background: rgba(var(--ink-rgb), 0.05); }
.link { color: var(--ink-2); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link::after { content: " →"; }
.link:hover { color: var(--ink); border-color: var(--ink-3); }

/* ------------------------------------------------------------------ pages */
main { position: relative; z-index: 2; }
.page { display: none; }
.page.active { display: block; animation: rise .7s cubic-bezier(.2,.75,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the press lives in the hall of the page that shows it */
#press { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
body > #press { display: none; }
.stage { position: relative; overflow: hidden; }
.stage > :not(#press) { position: relative; z-index: 1; }

h1 { margin: 0; font-weight: 400; font-size: clamp(42px, 6vw, 94px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { margin: 0; font-weight: 400; font-size: clamp(30px, 3.5vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { margin: 0 0 8px; font-weight: 500; font-size: 19px; letter-spacing: 0; }
p { margin: 0 0 14px; color: var(--ink-2); }
.lede { margin: 22px auto 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.live { margin: 26px auto 0; max-width: 640px; color: var(--ink-3); font-size: 14.5px; line-height: 1.7; font-variant-numeric: tabular-nums; }
.live b { color: var(--ink); font-weight: 600; }

/* the entrance: the statue under a gallery lamp, the inscription below it */
.entrance { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; padding: 100px var(--pad) 7vh; text-align: center; }
.entrance::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(34% 52% at 50% 30%, rgba(255,255,255,0.13), transparent 70%), radial-gradient(40% 14% at 50% 64%, rgba(0,0,0,0.20), transparent 70%); }
.entrance::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 0; pointer-events: none; background: linear-gradient(transparent, rgba(4, 16, 26, 0.32)); }
.entrance-copy { width: min(100%, 1000px); }
.entrance-copy h1 { white-space: nowrap; }

/* a room: centred wall text, then what the room shows */
.room { width: min(calc(100% - 2 * var(--pad)), var(--max)); margin: 0 auto; padding: 150px 0 0; scroll-margin-top: 80px; }
.room.tight { padding-top: 40px; }
.room.last { padding-bottom: 130px; }
.wall { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.wall::before { content: ""; display: block; width: 72px; height: 5px; margin: 0 auto 30px; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--line); }
.wall p { margin: 18px auto 0; max-width: 680px; font-size: 17.5px; }
.after { text-align: center; margin: 28px 0 0; }
.page-wall { width: min(calc(100% - 2 * var(--pad)), 900px); margin: 0 auto; padding: 170px 0 30px; text-align: center; }
.page-wall h1 { font-size: clamp(44px, 5.6vw, 86px); }

/* ------------------------------------------------------------------ the tablet: a framed instrument with a caption below */
.tablet { margin: 0; }
.tablet > div { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  outline: 1px solid var(--line-2); outline-offset: 6px; box-shadow: 0 50px 110px -60px rgba(0,0,0,.65); }
.tablet figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 0 2px; color: var(--ink-3); font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ vitrines: glass, a lamp above, a plinth, a label */
.vitrines { display: grid; gap: 20px; }
.vitrines.three { grid-template-columns: repeat(3, 1fr); }
.vitrine { display: block; margin: 0; }
.case { position: relative; height: 300px; display: grid; place-items: center; padding: 26px 26px 40px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: radial-gradient(80% 60% at 50% -6%, rgba(255,255,255,0.13), transparent 64%),
    linear-gradient(112deg, transparent 38%, rgba(255,255,255,0.035) 44%, transparent 50%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.015), rgba(0,0,0,0.12));
  transition: border-color .3s; }
.case img { max-height: 214px; max-width: 88%; object-fit: contain; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.plinth { position: absolute; left: 22%; right: 22%; bottom: 16px; height: 9px; border-radius: 1px;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), .30), rgba(var(--ink-rgb), .07)); box-shadow: 0 12px 18px -8px rgba(0,0,0,.5); }
a.vitrine:hover .case { border-color: rgba(var(--ink-rgb), 0.36); }
a.vitrine:hover .case img { transform: scale(1.035) translateY(-3px); }
.vitrine h3 { margin: 20px 0 6px; }
.vitrine p { margin: 0; font-size: 15.5px; }
.cartel { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.cartel b { display: block; font-weight: 500; color: var(--ink-2); font-size: 14px; }

/* the gallery: the twelve labours, one vitrine each */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.gallery > a { scroll-snap-align: start; }
.gallery .case { height: 280px; }
.gallery .case img { max-height: 200px; }
.gallery.grid { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
.gnum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.gnum .gn { color: var(--ink); font-size: 17px; }
.gallery h3 { margin: 4px 0 2px; font-size: 18px; }
.gallery p { font-size: 15px; color: var(--ink-3); }

/* ------------------------------------------------------------------ the laws: four stelae */
.stelae { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stele { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 46px 24px 24px;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.07), rgba(var(--ink-rgb), 0.02));
  clip-path: polygon(0 18px, 50% 0, 100% 18px, 100% 100%, 0 100%); }
.stele::before { content: ""; position: absolute; left: 24px; right: 24px; top: 30px; height: 1px; background: var(--line); }
.stele h3 { font-size: 20px; margin-top: 6px; }
.stele p { font-size: 15.5px; }
.stele .code-line { margin: auto 0 0; padding-top: 16px; color: var(--ink); opacity: .8; }

/* ------------------------------------------------------------------ the path of a hero */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; position: relative; }
.path::before { content: ""; position: absolute; left: 4%; right: 4%; top: 20px; height: 14px; background: var(--meander) repeat-x left center / 24px 14px; opacity: .28; }
.path li { position: relative; }
.path .gn { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ink-3); font-size: 19px; color: var(--ink);
  background: radial-gradient(circle at 40% 30%, #1d4a5a, #0a2433 70%); box-shadow: inset 0 0 0 4px rgba(4, 18, 28, .35), inset 0 0 0 5px var(--line), 0 0 0 6px rgba(4, 18, 28, .0); }
.path h3 { margin: 18px 0 6px; }
.path p { font-size: 15px; margin: 0 0 8px; }
.path .code-line { color: var(--ink); opacity: .75; }

/* ------------------------------------------------------------------ numbers in silver */
.stats { display: grid; gap: 20px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 22px 4px 0; border-top: 1px solid var(--line); text-align: center; }
.stat .big, .pantheon-head .big { display: block; font-size: 66px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin: 8px 0 0; }
.token { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; margin-top: 56px; }
.token .case { height: 320px; }
.token .case img { max-height: 240px; }
.token-name { margin: 0 0 6px; font-size: 40px; font-weight: 400; }
.ticks { list-style: none; padding: 0; margin: 10px 0 18px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 14px; height: 14px; background: var(--meander) no-repeat 0 50% / 24px 14px; opacity: .75; }

/* ------------------------------------------------------------------ the guide index */
.guide { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 30px; }
.guide a { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 16px 2px; border-top: 1px solid var(--line-2); transition: background .2s; }
.guide a:hover { background: rgba(var(--ink-rgb), 0.03); }
.guide .gn { color: var(--ink-3); font-size: 15px; padding-top: 1px; }
.guide b { font-weight: 500; display: block; }
.guide span.s { color: var(--ink-3); font-size: 14.5px; }
.workshop-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 50px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r); }
.workshop-line p { margin: 0; }

/* ------------------------------------------------------------------ the Trial */
.trial-form { display: flex; gap: 10px; }
.trial-form input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--well); color: var(--ink); font: 400 14px var(--code); font-stretch: 87.5%; outline: none; transition: border-color .2s; }
.trial-form input:focus { border-color: var(--ink-3); }
.trial-form input::placeholder { color: var(--ink-3); }
.examples { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--ink-3); font-size: 14px; }
.examples button { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.examples button:hover { border-color: var(--ink-3); color: var(--ink); }
.verdict { margin-top: 26px; }
.verdict h3 { font-size: 30px; font-weight: 400; margin-bottom: 6px; font-variation-settings: "FLAR" 100; }
.verdict .why { padding: 12px 16px; border-left: 2px solid var(--ink); background: rgba(var(--ink-rgb), 0.04); color: var(--ink-2); margin: 14px 0 0; }
.ladder12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-top: 20px; }
.ladder12 .lab { position: relative; height: 86px; border-radius: 3px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 8px; overflow: hidden; }
.ladder12 .lab .n { font-size: 15px; color: var(--ink-3); font-variation-settings: "FLAR" 100; }
.ladder12 .lab .s { font-size: 12.5px; color: var(--ink-3); line-height: 1.2; }
.ladder12 .lab.passed { background: var(--ink); border-color: var(--ink); }
.ladder12 .lab.passed .n, .ladder12 .lab.passed .s { color: var(--dark); }
.ladder12 .lab.failed { border-color: var(--ink); background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .16) 0 2px, transparent 2px 8px); }
.ladder12 .lab.failed .s, .ladder12 .lab.failed .n { color: var(--ink); }
.ladder12 .lab.current { border-color: var(--ink-3); border-style: dashed; }
.ladder12 .lab.current .s { color: var(--ink-2); }
.ladder12 .lab .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.facts div { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 3px; }
.facts .k { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 4px; }
.facts .v { font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.curve { margin-top: 18px; width: 100%; height: 120px; }
.curve path.eq { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.curve path.area { fill: rgba(var(--ink-rgb), 0.08); }
.curve line { stroke: var(--line); }
.curve circle { fill: var(--panel); stroke: var(--ink); stroke-width: 1.4; }
.curve text { fill: var(--ink-3); font: 400 11px var(--sans); }
.share { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 1.5px solid var(--ink-3); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Themis: the order ticket */
.ticket { display: grid; grid-template-columns: 1.6fr 0.9fr auto 1fr 1fr auto; gap: 10px; align-items: end; }
.ticket label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ticket label > span { font-size: 13px; color: var(--ink-3); }
.ticket select, .ticket input:not([type="checkbox"]) { height: 48px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--well); color: var(--ink); font: 400 15.5px var(--sans); outline: none; min-width: 0; width: 100%; font-variant-numeric: tabular-nums; }
.ticket select option { background: #0B2A3A; }
.ticket select:focus, .ticket input:focus { border-color: var(--ink-3); }
.ticket input::placeholder { color: var(--ink-3); }
.ticket .chk { flex-direction: row; align-items: center; height: 48px; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.ticket .chk input { width: 16px; height: 16px; accent-color: #E8F4F0; }
.seg { display: flex; height: 48px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg button { padding: 0 18px; color: var(--ink-3); font-weight: 500; }
.seg button.on { background: var(--ink); color: var(--dark); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.presets button { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.presets button:hover { border-color: var(--ink-3); color: var(--ink); }
.verdict-g { margin-top: 22px; }
.gv { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line); }
.gv .stamp { font-weight: 600; font-size: 15px; padding: 6px 14px; border-radius: 999px; letter-spacing: 0.02em; }
.gv.ok .stamp { background: var(--ink); color: var(--dark); }
.gv.no .stamp { border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .2) 0 2px, transparent 2px 7px); }
.gv .gsum { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: 22px 130px 1fr; gap: 10px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--line-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.checks li i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); position: relative; top: 2px; }
.checks li.ok i { background: var(--ink); }
.checks li.no i::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); transform: translateX(-50%) rotate(45deg); }
.checks li b { font-weight: 500; }
.checks li span { color: var(--ink-2); }
.checks li.no span, .checks li.no b { color: var(--ink); }
.calldata { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--well); border: 1px solid var(--line); display: grid; gap: 10px; }
.calldata .k { font-size: 13.5px; color: var(--ink-3); }
.calldata code { display: block; word-break: break-all; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.calldata .btn { justify-self: start; }

/* ------------------------------------------------------------------ tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: rgba(var(--ink-rgb), 0.02); }
.tbl { min-width: 760px; }
.tbl .tr { display: grid; gap: 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .tr.th { font-size: 13px; color: var(--ink-3); padding-top: 13px; padding-bottom: 13px; letter-spacing: 0.01em; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl a.tr:hover { background: rgba(var(--ink-rgb), 0.04); }
.tbl code { color: var(--ink); font-size: 12.5px; word-break: break-all; }
.oracle-tbl .tr { grid-template-columns: 0.8fr 1fr 0.9fr 0.9fr 0.9fr 0.8fr 1fr 1fr 0.9fr; }
.labour-tbl .tr { grid-template-columns: 0.4fr 2fr 1fr 0.8fr 0.9fr 0.9fr 0.6fr 0.7fr; }
.labour-tbl .gn { font-size: 16px; color: var(--ink-3); font-variation-settings: "FLAR" 100; }
.pantheon-tbl .tr { grid-template-columns: 0.35fr 1.6fr 1fr 2.4fr 1.5fr 0.9fr; }
.api-tbl { min-width: 0; } .api-tbl .tr { grid-template-columns: 1.1fr 2fr; }
.coin { font-weight: 600; letter-spacing: 0.02em; }
.mood { font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.mood.wild { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.mood.calm { color: var(--ink-3); }
.range { position: relative; height: 6px; border-radius: 3px; background: var(--line-2); margin-top: 6px; }
.range i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.range u { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink-3); }
.pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.pips i { height: 14px; border-radius: 2px; border: 1px solid var(--line); }
.pips i.p { background: var(--ink); border-color: var(--ink); }
.pips i.f { border-color: var(--ink); background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb), .3) 0 1.5px, transparent 1.5px 5px); }
.pips i.c { border-style: dashed; border-color: var(--ink-3); }
.addr { font-family: var(--code); font-stretch: 87.5%; font-size: 13px; }
.pantheon-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.pantheon-head > div { padding: 22px 4px 0; border-top: 1px solid var(--line); text-align: center; }
.pantheon-head .big { font-size: 54px; }
.pantheon-head p { margin: 8px 0 0; }
.split { display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: stretch; }
.vitrine.side { display: flex; flex-direction: column; }
.vitrine.side .case { flex: 1; min-height: 300px; }
.vitrine.side .case img { max-height: 250px; }
.vitrine.side figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13.5px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.chart-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.chart-card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.chart-card h3 span { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.chart-card svg { width: 100%; height: 110px; margin-top: 8px; }
.chart-card rect { fill: rgba(var(--ink-rgb), .5); }
.chart-card rect.hi { fill: var(--ink); }
.chart-card line { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.chart-card text { fill: var(--ink-3); font: 400 11px var(--sans); }

/* ------------------------------------------------------------------ the workshop's runner */
.runner { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--well); margin: 24px 0 16px; }
.runner .tabs { display: flex; gap: 2px; padding: 8px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.runner .tabs button { padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.runner .tabs button.on, .runner .tabs button:hover { color: var(--ink); background: rgba(var(--ink-rgb), 0.08); }
.runner .cmd { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.runner .cmd code { color: var(--ink); overflow-x: auto; white-space: nowrap; }
.runner pre { margin: 0; padding: 16px 18px; height: 260px; overflow: auto; font-size: 12px; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.code { margin: 0 0 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--well); color: var(--ink); overflow-x: auto; line-height: 1.75; white-space: pre; font-size: 12.5px; }

/* ------------------------------------------------------------------ a labour's room */
.entrance.labour { align-items: center; justify-content: flex-start; text-align: left; padding-bottom: 80px; }
.entrance.labour::before { background: radial-gradient(34% 56% at 70% 42%, rgba(255,255,255,0.13), transparent 70%), radial-gradient(40% 14% at 70% 86%, rgba(0,0,0,0.2), transparent 70%); }
.entrance.labour::after { display: none; }
.labour-copy { width: min(100%, var(--max)); margin: 0 auto; }
.labour-copy > * { max-width: 560px; }
.labour-copy h1 { font-size: clamp(42px, 5vw, 76px); }
.labour-copy .rule { margin: 8px 0 0; font-size: clamp(24px, 2.4vw, 34px); color: var(--ink-3); font-variation-settings: "FLAR" 100; line-height: 1.15; }
.labour-copy .lede { margin: 22px 0 0; }
.crumb { color: var(--ink-3); margin-bottom: 18px; font-size: 14.5px; }
.crumb a:hover { color: var(--ink); }
.lab-box { margin-top: 24px; padding: 14px 18px; border-left: 2px solid var(--ink); background: rgba(4, 18, 28, 0.35); backdrop-filter: blur(6px); }
.lab-box span { font-size: 13px; color: var(--ink-3); }
.lab-box p { margin: 4px 0 0; color: var(--ink); font-size: 16.5px; }
.lab-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.lab-spec div { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 3px; background: rgba(4, 18, 28, 0.3); }
.lab-spec .k { display: block; font-size: 12.5px; color: var(--ink-3); }
.lab-spec .v { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lab-nav { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.lab-nav .note { margin: 0 0 0 8px; }

/* ------------------------------------------------------------------ prose, the guide, the chronicle */
.prose { max-width: 780px; margin: 0 auto; }
.prose.wide { max-width: none; margin: 0; }
.prose h2 { font-size: 34px; margin: 60px 0 14px; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 17px; }
.prose .table-wrap { margin: 18px 0; }
.prose code { color: var(--ink); }
.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 70px; align-items: start; }
.guide-layout .prose { margin: 0; }
.toc { position: sticky; top: 110px; display: flex; flex-direction: column; }
.toc a { display: grid; grid-template-columns: 32px 1fr; padding: 7px 0; color: var(--ink-3); font-size: 15px; border-left: 1px solid var(--line-2); padding-left: 14px; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-color: var(--ink); }
.toc .gn { font-variation-settings: "FLAR" 100; }
.chronicle article { display: grid; grid-template-columns: 170px 1fr; gap: 30px; padding: 28px 0; border-top: 1px solid var(--line); max-width: 920px; margin: 0 auto; }
.chronicle time { color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.chronicle p { margin: 0; }

/* ------------------------------------------------------------------ footer */
.foot { position: relative; z-index: 2; margin-top: 40px; padding: 70px var(--pad) 40px;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) 0 4px / 100% 1px no-repeat; }
.foot-grid { width: min(100%, var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-brand .brand { margin: 0; }
.foot-grid p { margin: 16px 0 18px; max-width: 340px; font-size: 15px; }
.foot-grid h4 { margin: 4px 0 12px; font-weight: 500; font-size: 14px; color: var(--ink-3); }
.foot-grid > div > a:not(.brand) { display: block; padding: 4px 0; color: var(--ink-2); font-size: 15px; }
.foot-grid > div > a:not(.brand):hover { color: var(--ink); }
.foot-note { width: min(100%, var(--max)); margin: 50px auto 0; color: var(--ink-3); font-size: 13.5px; }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 1100px) {
  .top { grid-template-columns: auto 1fr auto; }
  .top .ca, .nav-l, .nav-r, .top .enter { display: none; }
  .brand { margin: 0; grid-column: 1; }
  .burger { display: block; grid-column: 3; }
  .sheet { display: flex; flex-direction: column; position: fixed; z-index: 39; top: 76px; left: 0; right: 0; padding: 10px var(--pad) 24px;
    background: rgba(6, 24, 36, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s; }
  body.menu-open .sheet { opacity: 1; visibility: visible; transform: none; }
  body.menu-open .top { background: rgba(6, 24, 36, 0.94); }
  .sheet a { padding: 13px 2px; font-size: 20px; border-bottom: 1px solid var(--line-2); font-variation-settings: "FLAR" 100; }
  .stelae { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .path::before { display: none; }
  .gallery.grid { grid-template-columns: repeat(3, 1fr); }
  .guide { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .entrance { padding-bottom: 6vh; }
  .entrance-copy h1 { white-space: normal; }
  .entrance::before { background: radial-gradient(70% 40% at 50% 26%, rgba(255,255,255,0.13), transparent 70%); }
  .room { padding-top: 110px; }
  .vitrines.three, .stats.three, .pantheon-head, .split, .token { grid-template-columns: 1fr; }
  .vitrine.side { display: none; }
  .token { gap: 24px; } .token .case { height: 260px; } .token .case img { max-height: 190px; }
  .stelae { grid-template-columns: 1fr; }
  .stele { min-height: 0; }
  .path { grid-template-columns: 1fr 1fr; }
  .gallery.grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .case { height: 220px; } .gallery .case img { max-height: 150px; }
  .guide { grid-template-columns: 1fr; }
  .workshop-line { flex-direction: column; align-items: flex-start; }
  .tablet > div { padding: 18px; }
  .ticket { grid-template-columns: 1fr 1fr; }
  .ticket label:first-child { grid-column: 1 / -1; }
  .checks li { grid-template-columns: 22px 1fr; }
  .checks li span { grid-column: 2; }
  .trial-form { flex-direction: column; }
  .ladder12 { grid-template-columns: repeat(6, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { display: none; }
  .chronicle article { grid-template-columns: 1fr; gap: 6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .entrance.labour { align-items: flex-end; }
  .labour-copy { padding-top: 46vh; }
  .lab-spec { grid-template-columns: repeat(2, 1fr); }
  .page-wall { padding-top: 130px; }
}
