@font-face {
  font-family: Cormorant;
  src: url(/serif-normal.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url(/serif-italic.woff2) format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: Inter; src: url(/inter.woff2); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Jet; src: url(/jetbrains-mono.woff2); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Shoulders; src: url(/big-shoulders-display.woff2); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #191916;
  --bg-3: #3a3229;
  --ink: #eee8d7;
  --muted: #b6b3a5;
  --line: #44443b;
  --paper: #e8dfc9;
  --paper-ink: #27231d;
  --red: #993e2a;
  --copper: #efa182;
  --pos: #b9855a;
  --nickel: #f0dfc0;
  --display: Shoulders, Impact, sans-serif;
  --serif: Cormorant, Georgia, serif;
  --mono: Jet, monospace;
  --ease: cubic-bezier(.22,.7,.18,1);
  --section: clamp(64px, 7.5vw, 112px);
  color-scheme: dark;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.5 Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.skip { position: fixed; top: -80px; left: 12px; z-index: 20; padding: 10px 16px; background: var(--paper); color: var(--paper-ink); }
.skip:focus { top: 8px; }
.shell { width: min(1320px, calc(100% - clamp(40px, 8.5vw, 144px))); margin-inline: auto; }
button, a, .outline, .primary { transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.wordmark { display: inline-flex; gap: .28em; align-items: center; color: var(--ink); font: 650 40px/.95 var(--serif); letter-spacing: -.08em; text-decoration: none; }
.mint-mark {
  display: inline-grid; place-items: center; width: .83em; height: .83em;
  border: 1px solid currentColor; border-radius: 50%; color: #dc9671;
  outline: 1px dashed currentColor; outline-offset: -4px; transform: rotate(-9deg);
}
.mint-mark i { font: italic 600 .65em/1 Georgia,serif; transform: translate(-.04em,.02em); }
.masthead { border-bottom: 1px solid #060605; background: #191916; }
.header-layout { display: flex; align-items: center; gap: 48px; min-height: 74px; }
.main-nav { display: flex; gap: 26px; }
.ink-link, .paper-link, .textbtn { padding: 0; background: transparent; border: 0; }
.main-nav a { position: relative; color: #cfcabd; font-size: 14px; padding-block: 10px; text-decoration: none; transition: color .3s var(--ease); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current=page] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current=page]::after { transform: scaleX(1); }
.wallet-button, .outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 8px 15px; border: 1px solid #5b5a4d; border-radius: 3px;
  background: #252520; font: 550 14px Inter,sans-serif;
}
.wallet-button { margin-left: auto; }
.wallet-button:hover, .outline:hover { background: #36362e; border-color: #928b78; }
.wallet-glyph { width: 15px; height: 11px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.wallet-glyph::after { content: ""; position: absolute; right: -1px; top: 2px; width: 5px; height: 3px; border: 1px solid; background: #282821; }

.frontispiece { position: relative; isolation: isolate; overflow: hidden; background: #eae0cb; color: var(--paper-ink); }
.frontispiece::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background: linear-gradient(90deg, #f8efdb, #eadfc8);
}
.engraving { position: absolute; inset: 0 0 0 auto; width: clamp(62%, 72vw, 1460px); z-index: -1; mix-blend-mode: multiply;
  mask-image: linear-gradient(90deg, transparent, #000 21%); }
.engraving img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 64% 0%; }
.front-inner { min-height: clamp(475px, 37vw, 620px); position: relative; display: flex; align-items: center; }
.front-copy { padding: clamp(42px,4.7vw,72px) 0; width: 46%; }
.folio, .section-label, .micro, .proof-mode, .network-strip, .proof-ticker { font: 500 .75rem/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase; }
.folio, .section-label { display: flex; align-items: center; gap: 11px; margin: 0; }
.folio { color: #594637; }
.floret { font-size: 21px; line-height: 1; color: var(--red); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
h1 { margin: 21px 0 19px -.042em; font-size: clamp(90px,9vw,154px); line-height: .80; font-weight: 600; letter-spacing: -.06em; }
h1 em { font-weight: 500; color: var(--red); }
.lead { max-width: 365px; font-size: clamp(16px,1.15vw,19px); line-height: 1.55; color: #44392e; text-wrap: pretty; }
.front-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; margin-top: 24px; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 12px 23px; border: 1px solid transparent;
  border-radius: 3px; color: #fff5e3; background: #953d2b; font-size: 15px; font-weight: 650; }
.primary:hover { background: #773020; }
.ink-link, .paper-link, .textbtn { color: inherit; font-size: 14px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.ink-link:hover { color: var(--red); }
.network-strip { border-top: 1px solid #625a4c; border-bottom: 1px solid var(--line); background: #211f1a; font-size: .73rem; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; padding-block: 10px; }
.strip-inner span { display: inline-flex; align-items: center; gap: 8px; color: #bbb5a7; }
.strip-inner span:first-child { color: var(--ink); }
.strip-inner span+span { border-left: 1px solid #595548; padding-left: 24px; }
.strip-inner b { font-weight: 550; color: var(--ink); }
.status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #a48d6d; }
.status-dot.online { background: #9dc58c; }.status-dot.offline { background: #ea8b6a; }

.studio { padding-top: clamp(40px, 5vw, 64px); scroll-margin-top: 18px; }
.studio-head, .ledger-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.studio-head { border-bottom: 1px solid #646050; padding-bottom: 21px; margin-bottom: 25px; }
.section-label { color: #c4b8a0; }.section-label span { color: var(--copper); }
h2 { font-size: clamp(46px,4.6vw,74px); line-height: 1; font-weight: 500; letter-spacing: -.052em; }
.studio-head h2 { margin-top: 7px; }
.modes { display: inline-flex; border: 1px solid #58564a; border-radius: 4px; padding: 3px; }
.modes a { text-decoration: none; display: inline-flex; align-items: center; }
.modes a, .modes button { border: 0; padding: 9px 18px; border-radius: 2px; color: #c5c0b3; background: transparent; font-size: 14px; }
.modes a[aria-current=page], .modes button[aria-pressed=true] { color: #29251f; background: var(--paper); font-weight: 600; }
.modes a:not([aria-current]):hover, .modes button[aria-pressed=false]:hover { color: white; background: #34332b; }
.studio-grid { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(0,.82fr); gap: clamp(28px,6vw,96px); align-items: start; }
.token-form { display: grid; gap: 18px; padding-block: 0 4px; }
.form-head, .proof-top, .modalhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form-head h3, .proof h3 { font-size: 33px; line-height: 1; letter-spacing: -.035em; font-weight: 550; }
.micro, .optional { color: var(--muted); }
.form-intro, .signing-note, dialog p { color: var(--muted); }
.form-intro { font-size: 15px; margin-top: -6px; }
.token-form label { display: block; min-width: 0; font-size: 15px; font-weight: 530; }
.twocol { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.optional { font-size: 13px; font-weight: 400; margin-left: 5px; }
input, textarea { display: block; width: 100%; min-width: 0; padding: 12px 14px; margin-top: 7px; border: 1px solid #57564b; border-radius: 3px; background: #22231f; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #a29f91; }textarea { resize: vertical; }
.token-form .art { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px dashed #716a56; background: #25241e; cursor: pointer; }
.art:hover { background: #2c2a22; }.art:focus-within { outline: 2px solid var(--copper); }
.art input { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; margin: 0; }
.art strong { display: block; font-size: 16px; }.art small { display: block; color: var(--muted); margin-top: 2px; font-size: 13px; }
.preview { width: 43px; height: 43px; flex-shrink: 0; display: grid; place-items: center; color: #dfab83; border: 1px solid #70634c; border-radius: 3px; background: #302d24; font-size: 26px; }
.preview img { width: 100%; height: 100%; object-fit: cover; }
.full { width: 100%; }.token-form .primary { color: #251910; background: #e6a680; }.token-form .primary:hover { background: #f1b58d; }
.signing-note { text-align: center; font-size: 13px; margin-top: -9px; }

.proof { border: 1px solid #5a5345; background: #24231d; padding: 19px; min-width: 0; }
.proof-top { padding-bottom: 13px; border-bottom: 1px solid #484539; }.proof-mode { color: var(--copper); font-size: .69rem; }
.proof-art { display: grid; place-items: center; position: relative; overflow: hidden; min-height: 180px; height: clamp(180px,16vw,275px); margin-block: 15px;
  background-color: #d7cbb2;
  background-image: repeating-radial-gradient(ellipse at 48% 150%, transparent 0 6px,#40311c24 6.5px 7px, transparent 7.5px 10px),
    repeating-radial-gradient(ellipse at 52% -55%, transparent 0 6px,#40311c1f 6.5px 7px, transparent 7.5px 10px);
  outline: 1px solid #73664e; outline-offset: -6px; }
.proof-art::after { content: ""; position: absolute; inset: 9px; border: 1px solid #8e7c5e; pointer-events: none; }
.proof-art.with-image { background: #181916; }.proof-art.with-image::after { display: none; }
.proof-art>img { height: 100%; width: 100%; position: absolute; inset: 0; object-fit: contain; }
.coin3d { height: 100%; max-height: 260px; aspect-ratio: 1; position: relative; cursor: grab; touch-action: pan-y; }
.coin3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.coin3d:not(.rendered)::after { content: "ℒ"; position: absolute; inset: 14%; display: grid; place-items: center; border: 5px double #c2a580; border-radius: 50%; background: #785f43; color: #eddbb6; font: italic 650 62px var(--serif); }
.proof-caption { overflow-wrap: anywhere; }.proof-ticker { color: #cfb399; margin: 3px 0 6px; }.proof-caption p { color: var(--muted); font-size: 14px; margin-top: 10px; white-space: pre-wrap; }
.proof dl { margin: 16px 0 0; border-top: 1px solid #4b4739; padding-top: 10px; }.proof dl div { display: flex; justify-content: space-between; gap: 12px; margin: 5px 0; font-size: 13px; }.proof dt { color: var(--muted); }.proof dd { margin: 0; }
.ledger { padding-top: var(--section); }.ledger-head { border-bottom: 1px solid #625b4b; padding-bottom: 15px; }.ledger h2 { font-size: clamp(35px,3vw,49px); }
.empty-ledger, .ledger-entry { display: flex; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding-block: 19px; }
.ledger-icon { font: 32px Georgia; color: #ac9d80; border: 1px solid #756951; padding: 0 7px; line-height: 30px; }.empty-ledger p, .ledger-entry span { color: var(--muted); font-size: 14px; }.empty-ledger strong { color: var(--ink); }.paper-link, .ledger-entry div+div { margin-left: auto; }.ledger-entry a+a { margin-left: 15px; }
footer { margin-top: var(--section); background: #11120f; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.3fr) auto; gap: 28px 48px; padding-block: 44px 36px; }
.footer-brand .wordmark { font-size: 36px; }
.footer-brand p { margin-top: 12px; max-width: 40ch; color: var(--muted); font-size: 14px; }
.footer-inner nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 8px 40px; align-content: start; }
.footer-inner nav a { color: #cfcabd; font-size: 14px; text-decoration: none; }
.footer-inner nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-note { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid #2c2b25; color: #8f8b7e; font-size: 12.5px; max-width: 90ch; }
dialog { width: min(460px,calc(100% - 32px)); padding: 24px; border: 1px solid #8d7b60; border-radius: 4px; background: #25241e; color: var(--ink); }
dialog::backdrop { background: #080805ba; }.modalhead { align-items: center; border-bottom: 1px solid #625b4a; padding-bottom: 16px; }.modalhead h2 { font-size: 41px; }dialog p { margin: 16px 0; }.modalhead .outline { min-height: 36px; }dialog .full { margin-top: 12px; }
.review-proof { display: flex; align-items: center; gap: 13px; }.review-proof img { width: 56px; height: 56px; object-fit: cover; }dialog .textbtn { margin-top: 12px; }
.wrap, [role=alert] { overflow-wrap: anywhere; }[role=alert] { color: #ffc0a6; font-size: 14px; }

/* Method, rebirth picker and public register */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plate-rebirth img { object-position: 58% 30%; }
.method ol { list-style: none; margin: 0; padding: 30px 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.method-label { padding-top: 34px; margin-bottom: -10px; }
.price { white-space: nowrap; }
.zeros { font: 500 .52em/1 Inter, sans-serif; vertical-align: -.28em; margin: 0 .08em; color: var(--muted); }
.method li { display: flex; gap: 16px; padding-right: 28px; }
.method li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.numeral { flex: none; width: 2.1ch; font: italic 500 34px/1 var(--serif); color: var(--copper); }
.method h3 { font-size: 25px; line-height: 1.1; font-weight: 550; letter-spacing: -.02em; }
.method p { margin-top: 5px; color: var(--muted); font-size: 14px; max-width: 34ch; text-wrap: pretty; }

.picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker legend { padding: 0; font-size: 15px; font-weight: 530; }
.picker-tabs { display: flex; gap: 22px; margin: 6px 0 2px; border-bottom: 1px solid var(--line); }
.picker-tabs button { padding: 7px 0 9px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font-size: 14px; }
.picker-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--copper); }
.picker-tabs button:not(:disabled):hover { color: var(--ink); }
.picker input[type=search] { margin-top: 12px; }
.picker-body { margin-top: 10px; }
.picker-note { color: var(--muted); font-size: 14px; padding: 4px 0; }
.market-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); max-height: 336px; overflow: auto; overscroll-behavior: contain; }
.market-list li + li { border-top: 1px solid #33322b; }
.market-row { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 10px 12px; border: 0; background: #22231f; text-align: left; }
.market-row:hover, .market-row:focus-visible { background: #2d2b23; outline-offset: -2px; }
.glyph { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; border: 1px solid #6c604b; background: #3a3229; }
.glyph img { width: 100%; height: 100%; object-fit: cover; }
.glyph i { font: italic 600 1.15em/1 var(--serif); color: var(--nickel); }
.market-name { min-width: 0; display: grid; }
.market-name strong, .market-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.market-name strong { font-size: 15px; font-weight: 600; }
.market-name small, .market-figures small { color: var(--muted); font: 12px/1.5 var(--mono); }
.market-figures { display: grid; text-align: right; font-size: 13px; }
.market-tag { font: 500 .66rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border: 1px solid #5d5647; color: var(--muted); }
.market-tag.quiet { color: var(--copper); border-color: #7a5442; }
.original-chosen { display: grid; gap: 8px; }
.original-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #7a5442; background: #2a2620; }
.original-card .textbtn { margin-left: auto; }
.original-facts { color: var(--muted); font-size: 13px; }

.register { padding-top: 58px; }
.register .ledger-head h2 { margin-top: 7px; }
.register-note { padding-block: 22px; color: var(--muted); }
.register-grid { list-style: none; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.issue { display: grid; gap: 12px; align-content: start; padding: 16px; border: 1px solid #4e4a3d; background: #22211c; min-width: 0; }
.issue-top { display: flex; align-items: center; gap: 13px; min-width: 0; }
.issue-id { display: grid; min-width: 0; }
.issue-id strong { font: 600 24px/1.05 var(--serif); letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.issue-id span { color: #cfb399; font: 12px/1.6 var(--mono); }
.issue-kind { margin-left: auto; align-self: flex-start; flex: none; white-space: nowrap; font: 500 .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.issue-kind.rebirth { color: var(--copper); }
.issue-parent { font-size: 13px; color: var(--muted); }
.issue-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #3c3a31; font-size: 13px; color: var(--muted); }
.issue-foot a, .issue-parent a { color: var(--ink); text-underline-offset: 3px; }
.register-more { margin-top: 18px; }
@media (max-width: 880px) {
  .method ol { grid-template-columns: minmax(0,1fr); gap: 14px; padding-top: 24px; }
  .method li, .method li + li { border: 0; padding: 0; }
}
@media (max-width: 660px) {
  .market-row { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  .market-figures { display: none; }
  .register { padding-top: 34px; }
}

/* ---------- Site-wide finish: grain, selection, focus, soft motion ---------- */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: #953d2b; color: #fff5e3; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
main { outline: none; }
a.primary, a.outline { text-decoration: none; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px #000; }
.primary:active, .outline:active { transform: translateY(0) scale(.98); }
.outline.small { min-height: 32px; padding: 5px 12px; font-size: 13px; }
* { scrollbar-width: thin; scrollbar-color: #5b5546 transparent; }
.page { animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Header: menu button and sheet ---------- */
.menu-button { display: none; width: 42px; height: 40px; padding: 0; border: 1px solid #5b5a4d; border-radius: 3px; background: #252520; place-content: center; gap: 6px; }
.menu-button span { display: block; width: 18px; height: 1px; background: currentColor; }
.menu-sheet { width: min(420px, calc(100% - 24px)); margin: 12px 12px auto auto; max-height: calc(100% - 24px); }
.menu-sheet[open] { animation: sheet-in .45s var(--ease) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } }
.menu-sheet nav { display: grid; margin: 10px 0 18px; }
.menu-sheet nav a { padding: 13px 0; border-bottom: 1px solid #3b3a32; font: 500 30px/1.1 var(--serif); letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.menu-sheet nav a[aria-current=page] { color: var(--copper); }
.menu-sheet .modalhead .wordmark { font-size: 32px; }
dialog[open] { animation: sheet-in .4s var(--ease) both; }
dialog::backdrop { backdrop-filter: blur(3px); }
.wallet-choice { justify-content: flex-start; gap: 12px; }
.wallet-choice img { border-radius: 5px; }
.wallet-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.wallet-links .textbtn { margin: 0; }

/* ---------- Heads ---------- */
.frontispiece.compact .front-inner { min-height: clamp(360px, 27vw, 450px); }
.frontispiece.compact h1 { font-size: clamp(76px, 7.4vw, 124px); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-block: clamp(48px, 6vw, 88px) 28px; border-bottom: 1px solid #646050; }
.page-head h1 { margin: 10px 0 0 -.03em; font-size: clamp(56px, 6.4vw, 104px); line-height: .9; font-weight: 500; letter-spacing: -.055em; }
.page-lead { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.page-head-side { flex: none; }

/* ---------- Home ---------- */
.presses { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; padding-top: var(--section); }
.press { position: relative; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid #5a5345; background: #22211c; color: var(--ink); text-decoration: none; }
.press img { width: 100%; height: clamp(170px, 17vw, 250px); object-fit: cover; object-position: 62% 30%; background: #e8dfc9; filter: sepia(.15) contrast(1.02); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.press > div { display: grid; gap: 8px; align-content: start; padding: 22px 24px 24px; border-top: 1px solid #5a5345; }
.press h2 { font-size: clamp(34px, 3vw, 46px); margin-top: 4px; }
.press p:not(.section-label) { color: var(--muted); font-size: 15px; max-width: 46ch; }
.press-cta { margin-top: 8px; color: var(--copper); font-size: 14px; font-weight: 600; }
.press:hover { border-color: #8d7b60; }
.press:hover img { transform: scale(1.035); filter: sepia(0) contrast(1.05); }
.press-cta, .press:hover .press-cta { transition: letter-spacing .5s var(--ease); }
.press:hover .press-cta { letter-spacing: .02em; }
.seek { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; padding-top: var(--section); }
.seek-copy { display: grid; gap: 12px; position: relative; }
.seek-copy h2 { margin-top: 2px; }
.seek-copy > p:not(.section-label) { color: var(--muted); max-width: 36ch; }
.seek-idle { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 28px; margin-top: 12px; padding: 22px 26px; border: 1px dashed #5a5345;
  background: radial-gradient(120% 140% at 0% 50%, #2b2922 0%, #201f1a 60%); }
.seek-idle .medal { width: clamp(130px, 12vw, 180px); }
.seek-idle p:not(.micro) { margin-top: 6px; color: var(--muted); max-width: 40ch; }
.seek-idle .market-tag { display: inline-block; vertical-align: 1px; }
.seek-box input { margin-top: 0; padding-block: 16px; font-size: 17px; }
.seek-box .market-list { margin-top: 10px; }

/* ---------- 3D medals ---------- */
.medal { display: grid; place-items: center; aspect-ratio: 1; position: relative; }
.medal .coin3d { width: 100%; height: 100%; max-height: none; }
.medal::after { content: ""; position: absolute; inset: auto 18% -2% 18%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, #0009, transparent); filter: blur(4px); z-index: -1; }

/* ---------- Register cards (whole card clickable) ---------- */
.issue { position: relative; transition: opacity .9s var(--ease) var(--d, 0ms), transform .6s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease); }
.issue:hover { border-color: #8d7b60; background: #26241e; transform: translateY(-2px); }
.issue-link { position: absolute; inset: 0; z-index: 0; }
.issue a:not(.issue-link) { position: relative; z-index: 1; }
.register.flush { padding-top: 6px; }
.register-grid > li:nth-child(n) { --d: calc(var(--i, 0) * 60ms); }

/* ---------- Studio: review and pressed ---------- */
.review-list { margin: 16px 0 0; border-top: 1px solid #4b4739; padding-top: 8px; }
.review-list div { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 14px; }
.review-list dt { color: var(--muted); } .review-list dd { margin: 0; text-align: right; }
.pressed { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px 48px; align-items: center; padding: clamp(22px, 3vw, 36px); border: 1px solid #5a5345; background: #22211c; }
.pressed > :not(.pressed-medal) { grid-column: 1; }
.pressed-medal { grid-column: 2; grid-row: 1 / span 5; width: clamp(150px, 17vw, 240px); }
.pressed-head { display: flex; align-items: center; gap: 18px; }
.pressed-head h2 { margin-top: 6px; font-size: clamp(40px, 4vw, 60px); }
.pressed-head h2 span { color: #cfb399; font: 500 .4em var(--mono); letter-spacing: .04em; }
.pressed-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pressed-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #3b3a32; font-size: 15px; }
.pressed-steps li > span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #6c604b; border-radius: 50%; color: var(--muted); }
.pressed-steps li.done > span { color: #251910; background: var(--copper); border-color: var(--copper); }
.pressed-steps li.bad > span { color: #ffc0a6; border-color: #a24c33; }
.pressed-steps li.wait > span { animation: breathe 1.8s ease-in-out infinite; }
.pressed-steps small { color: var(--muted); }
@keyframes breathe { 50% { border-color: var(--copper); color: var(--copper); } }
.pressed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.signing-note.left { text-align: left; margin-top: 0; }

/* ---------- Coin page ---------- */
.coin-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 20px 32px; padding-block: clamp(40px, 5vw, 72px) 30px; }
.coin-medal { width: clamp(130px, 13vw, 190px); }
.coin-id { min-width: 0; }
.coin-id h1 { margin: 10px 0 0 -.03em; font-size: clamp(52px, 5.6vw, 92px); line-height: .92; font-weight: 500; letter-spacing: -.05em; overflow-wrap: anywhere; }
.coin-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.coin-sub .glyph { width: 28px !important; height: 28px !important; }
.coin-sub .proof-ticker { margin: 0; }
.copy { padding: 4px 9px; border: 1px solid #57564b; border-radius: 3px; background: transparent; color: var(--muted); font: 500 .7rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.copy:hover { color: var(--ink); border-color: #928b78; }
.coin-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 210px; }
.coin-actions .textbtn { align-self: center; }
.coin-stats { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); margin: 0; border-block: 1px solid #646050; }
.coin-stats div { padding: 18px 18px 18px 0; min-width: 0; }
.coin-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.coin-stats dt { color: var(--muted); font: 500 .7rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.coin-stats dd { margin: 6px 0 0; font: 600 clamp(22px, 2vw, 30px)/1.1 var(--serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
.coin-stats dd .market-tag { font-family: var(--mono); display: inline-block; }
.up { color: #b5cf97; } .down { color: #f0a084; }
.coin-body { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.8fr); gap: 24px; padding-top: 24px; align-items: start; }
.chart { margin: 0; padding: 20px; border: 1px solid #5a5345; background: #22211c; color: var(--copper); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; color: var(--ink); }
.chart-head > div:first-child { display: grid; gap: 2px; }
.chart-head strong { font: 600 clamp(30px, 3vw, 42px)/1.05 var(--serif); }
.chart-delta { font-size: 13px; }
.chart-delta.up { color: #b5cf97; } .chart-delta.down { color: #f0a084; }
.chart-tabs { display: inline-flex; border: 1px solid #58564a; border-radius: 4px; padding: 3px; }
.chart-tabs button { border: 0; padding: 6px 12px; border-radius: 2px; background: transparent; color: #c5c0b3; font: 500 .75rem var(--mono); }
.chart-tabs button[aria-pressed=true] { background: var(--paper); color: #29251f; }
.chart svg { display: block; width: 100%; height: clamp(200px, 22vw, 300px); overflow: visible; touch-action: pan-y; }
.chart-line { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-linejoin: round; }
.chart-grid { stroke: #3a3930; stroke-dasharray: 2 5; }
.chart-rule { stroke: #e8dfc9; stroke-width: 1; opacity: .6; }
.chart-range { display: flex; justify-content: space-between; margin-top: 10px; }
.chart-empty { display: grid; place-items: center; min-height: 240px; border: 1px dashed #5a5345; color: var(--muted); text-align: center; padding: 24px; }
.record { padding: 20px; border: 1px solid #5a5345; background: #24231d; }
.record h2 { font-size: 34px; padding-bottom: 12px; border-bottom: 1px solid #484539; }
.record dl { margin: 10px 0 0; }
.record dl div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid #34332b; font-size: 14px; }
.record dt { color: var(--muted); } .record dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.record dd a { color: var(--ink); text-underline-offset: 3px; }
.record-note { margin-top: 14px; color: var(--muted); font-size: 14px; white-space: pre-wrap; }

/* ---------- Wallet ---------- */
.wallet-sum { display: flex; gap: 0; border: 1px solid #5a5345; background: #22211c; }
.wallet-sum > div { display: grid; gap: 4px; padding: 14px 20px; min-width: 130px; }
.wallet-sum > div + div { border-left: 1px solid var(--line); }
.wallet-sum strong { font: 600 24px/1.1 var(--serif); }
.wallet-sum .copy { justify-self: start; margin-top: 4px; }
.holdings { padding-top: 26px; }
.holdings-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.holding-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #646050; }
.holding { display: grid; grid-template-columns: minmax(0,1fr) auto 86px 86px; gap: 18px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), background-color .3s var(--ease); }
.holding:hover { background: #22211c; }
.holding-main { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); text-decoration: none; }
.holding-value { display: grid; text-align: right; }
.holding-value strong { font-weight: 600; }
.holding-value small { color: var(--muted); font: 12px var(--mono); }
.holding .market-tag { justify-self: start; }
.holding .textbtn, .holding .outline { justify-self: end; }
.wallet-empty { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 28px; padding-block: 18px; }
.wallet-empty .medal { width: clamp(120px, 14vw, 180px); }
.wallet-empty h2 { font-size: clamp(34px, 3vw, 46px); }
.wallet-empty p { color: var(--muted); margin: 8px 0 18px; max-width: 46ch; }

/* ---------- About ---------- */
.faq { display: grid; grid-template-columns: minmax(0,.55fr) minmax(0,1.45fr); gap: 0 clamp(28px, 6vw, 96px); padding-top: var(--section); }
.faq > h2 { grid-row: span 20; align-self: start; position: sticky; top: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; list-style: none; font: 550 clamp(22px, 2vw, 28px)/1.2 var(--serif); letter-spacing: -.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--copper); font: 300 28px/1 Inter, sans-serif; transition: transform .45s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq details[open] p { animation: page-in .5s var(--ease) both; }
.risk { margin-top: 36px; padding: 22px 24px; border: 1px solid #7a5442; background: #2a2620; }
.risk h3 { font-size: 28px; font-weight: 550; }
.risk p { margin-top: 8px; color: #d3c8b6; font-size: 15px; }

/* ---------- Not found, states ---------- */
.not-found { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 32px; padding-top: 36px; }
.not-found .medal { width: clamp(160px, 18vw, 250px); }
.not-found-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.state-tag { margin-left: 10px; padding: 3px 7px; border: 1px solid #5d5647; font: 500 .64rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.state-tag.confirmed { color: #b5cf97; border-color: #5b6b48; }
.state-tag.submitted { color: var(--copper); border-color: #7a5442; animation: breathe 1.8s ease-in-out infinite; }
.state-tag.failed { color: #f0a084; border-color: #a24c33; }
.ledger-entry a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- Custom cursor (fine pointers only) ---------- */
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on input:not([type=file]), html.cursor-on textarea { cursor: text !important; }
.cursor-ring, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; border-radius: 50%; will-change: transform; opacity: 0; transition: opacity .3s var(--ease); }
html.cursor-on .cursor-ring, html.cursor-on .cursor-dot { opacity: 1; }
html.cursor-on.cursor-out .cursor-ring, html.cursor-on.cursor-out .cursor-dot, html.cursor-on.cursor-text .cursor-ring, html.cursor-on.cursor-text .cursor-dot { opacity: 0; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor-dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--copper); transition: transform .35s var(--ease), background-color .35s var(--ease); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; }
.cursor-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--copper); background: transparent;
  transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease); }
.cursor-ring b { position: relative; font: 600 8px/1 var(--mono); letter-spacing: .14em; color: #251910; opacity: 0; transform: scale(.6); transition: opacity .3s var(--ease), transform .4s var(--ease); }
html.cursor-link .cursor-ring::before { transform: scale(1.55); background: #efa18222; }
html.cursor-link .cursor-dot::before { transform: scale(0); }
html.cursor-drag .cursor-ring::before { transform: scale(2); background: var(--copper); }
html.cursor-drag .cursor-ring b { opacity: 1; transform: none; }
html.cursor-drag .cursor-dot { opacity: 0 !important; }
html.cursor-down .cursor-ring::before { transform: scale(.8); }
html.cursor-down.cursor-link .cursor-ring::before { transform: scale(1.3); }
html.cursor-paper .cursor-ring::before { border-color: #953d2b; }
html.cursor-paper .cursor-dot::before { background: #953d2b; }
html.cursor-paper.cursor-link .cursor-ring::before { background: #953d2b1c; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { gap: 18px; }
  .coin-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .coin-stats div:nth-child(4) { border-left: 0; padding-left: 0; }
  .coin-stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-button { display: grid; }
  .wallet-button { margin-left: auto; }
  .coin-head { grid-template-columns: auto minmax(0,1fr); }
  .coin-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; min-width: 0; }
  .coin-actions .textbtn { align-self: center; }
  .coin-body { grid-template-columns: minmax(0,1fr); }
  .seek { grid-template-columns: minmax(0,1fr); }
  .seek-idle { grid-template-columns: minmax(0,1fr); justify-items: center; text-align: center; }
  .faq { grid-template-columns: minmax(0,1fr); }
  .faq > h2 { position: static; margin-bottom: 18px; }
  .pressed { grid-template-columns: minmax(0,1fr); }
  .pressed-medal { grid-column: 1; grid-row: auto; justify-self: center; order: -1; width: 160px; }
}
@media (max-width: 760px) {
  .presses { grid-template-columns: minmax(0,1fr); }
  .page-head { flex-direction: column; align-items: stretch; }
  .wallet-sum { flex-wrap: wrap; }
  .wallet-sum > div { flex: 1 1 120px; }
  .holding { grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; }
  .holding .market-tag { display: none; }
  .holding .textbtn, .holding .outline { grid-column: 2; }
  .holding-value { grid-row: 1; grid-column: 2; }
}
@media (max-width: 660px) {
  .coin-head { grid-template-columns: minmax(0,1fr); }
  .coin-medal { width: 128px; }
  .coin-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .coin-stats div:nth-child(n) { border-left: 0; padding-left: 0; }
  .coin-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .coin-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chart, .record { padding: 16px; }
  .wallet-empty, .not-found { grid-template-columns: minmax(0,1fr); }
  .wallet-empty .medal, .not-found .medal { width: 140px; }
  .frontispiece.compact h1 { font-size: clamp(60px, 14vw, 84px); }
  .press > div { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page, dialog[open], .menu-sheet[open] { animation: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 1650px) { .engraving { width: calc(50% + 320px); } }
@media (max-width: 880px) {
  .front-inner { min-height: 420px; }.front-copy { width: 49%; }.front-actions { gap: 12px 16px; }.front-actions .primary { padding-inline: 16px; }
  .header-layout { gap: 30px; }.studio-grid { gap: 22px; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }.proof { padding: 14px; }
}
@media (max-width: 660px) {
  .header-layout { min-height: 59px; gap: 14px; }.wordmark { font-size: 33px; }.header-layout nav { display: none; }
  .front-inner { min-height: auto; }.front-copy { width: 100%; padding: 26px 0 25px; }.front-copy h1 { margin: 20px 0 32px; font-size: clamp(64px,14.4vw,92px); }
  .engraving { inset: 0 -7% auto auto; width: 72%; height: clamp(185px,42vw,245px); mask-image: linear-gradient(90deg,transparent,#000 29%); }
  .engraving img { mask-image: linear-gradient(180deg,#000 75%,transparent); object-fit: cover; object-position: 72% 5%; }
  .title-article { display: none; }.front-copy .lead { max-width: 420px; font-size: 16px; }.front-actions { margin-top: 16px; }.folio { font-size: .67rem; }
  .strip-inner { gap: 12px; padding-block: 10px; }.strip-inner span+span { padding-left: 12px; }.strip-inner span:last-child { display: none; }
  .studio { padding-top: 28px; }.studio-head { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 20px; padding-bottom: 16px; }
  .studio-head h2 { margin-top: 4px; }.studio-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }.modes button { min-width: 106px; }
  .proof { padding: 16px; }.proof-art { height: 195px; }.twocol { gap: 10px; }.ledger { padding-block: 32px; }
  .ledger-head { align-items: start; flex-direction: column; gap: 6px; }.empty-ledger { flex-wrap: wrap; }.ledger-entry { display: grid; gap: 6px; }.ledger-entry div+div { margin-left: 0; }
  .footer-inner { grid-template-columns: minmax(0,1fr); }.wallet-button { font-size: 13px; min-height: 36px; padding-inline: 10px; }
}
@media (max-width: 385px) {
  .shell { width: calc(100% - 32px); }.network-strip { font-size: .64rem; }.front-copy h1 { margin-bottom: 41px; }
  .engraving { right: -11%; }.twocol { grid-template-columns: minmax(0,1fr) minmax(0,.7fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; } }

/* ================= World layer: glass header, inertial scroll, the rebirth hero, curtain ================= */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.masthead { position: sticky; top: 0; z-index: 25; background: #171613c7; border-bottom-color: #ffffff12;
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25); }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 12px 22px; border: 1px solid currentColor;
  border-radius: 3px; color: inherit; background: transparent; font-size: 15px; font-weight: 600; text-decoration: none; }
.ghost:hover { background: #ffffff14; }
.magnetic { will-change: transform; transition: transform .5s var(--ease), background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }

.saga { position: relative; height: 330vh; margin-top: -75px; }
.saga-stage { --p: 0; --day: 0; --flash: 0; --mx: 0; --my: 0; position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #0e0d0b; color: #efe7d6; isolation: isolate; }
.saga-stage { --ax: 66vw; --ay: 47vh; }
/* The plates are placed in pixels by RebirthHero so the altar sits under the coin; they zoom in around it as you scroll. */
.saga-plate { position: absolute; inset: 0; z-index: -5; pointer-events: none;
  transform: translate3d(calc(var(--mx) * -14px), calc(var(--my) * -9px), 0); transition: transform 1.2s var(--ease); }
.saga-plate img { position: absolute; max-width: none; display: block; user-select: none; }
.saga-plate.night { opacity: calc(1 - var(--day)); }
.saga-plate.night img { transform: scale(calc(1.06 - var(--p) * .05)); }
.saga-plate.night.tall img { filter: sepia(.35) brightness(.34) contrast(1.25); }
.saga-plate.day { opacity: var(--day); }
.saga-plate.day img { transform: scale(calc(1.04 - var(--day) * .04)); }
/* the foreground strip stands nearest: it drifts most and comes closer as the story goes on */
.saga-plate.fore { z-index: -4; transform: translate3d(calc(var(--mx) * -34px), calc(var(--my) * -16px + var(--p) * 26px), 0); }
.saga-plate.fore img { transform: scale(calc(1.02 + var(--p) * .07)); filter: brightness(calc(.42 + var(--day) * .58)) sepia(calc(.3 - var(--day) * .3)); }
.saga-veil, .saga-dawn { position: absolute; inset: 0; pointer-events: none; }
.saga-veil { z-index: -3; }
.saga-veil::before, .saga-veil::after { content: ""; position: absolute; inset: 0; }
/* night: candlelight pools around the altar, the left side stays deep for the headline */
.saga-veil::before { opacity: calc(1 - var(--day));
  background: radial-gradient(34vmax 26vmax at var(--ax) calc(var(--ay) + 12vh), #ff9c4a24 0%, transparent 70%),
    linear-gradient(90deg, #0b0a08f0 0%, #0b0a08c4 30%, #0b0a0855 52%, transparent 66%),
    linear-gradient(0deg, #0b0a08cc 0%, transparent 26%), linear-gradient(180deg, #0b0a08aa 0%, transparent 18%); }
/* day: the paper side of the plate is already calm; soften the pillar and the floor a little */
.saga-veil::after { opacity: var(--day);
  background: linear-gradient(90deg, #f2e9d6f7 0%, #f1e7d3e0 34%, #efe4cc59 52%, transparent 64%),
    linear-gradient(0deg, #e8dcc2 0%, #e8dcc200 22%); }
.saga-dawn { z-index: -2; opacity: calc(var(--flash) * .95 + var(--day) * .22);
  background: radial-gradient(28vmax 28vmax at var(--ax) var(--ay), #ffd9a8 0%, #f0a36f99 34%, #c4613a33 60%, transparent 100%); mix-blend-mode: screen; }
.saga-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease) .2s; }
.gl-ready .saga-gl { opacity: 1; }
.saga-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: 74px; }
.saga-copy .folio { color: #d6c4a6; transition: color .8s var(--ease); }
.saga-copy h1 { margin: 24px 0 26px -.045em; font-size: clamp(86px, 8.6vw, 156px); line-height: .84; font-weight: 600; letter-spacing: -.06em; max-width: 9.5ch; color: #f1e9d8; transition: color .8s var(--ease); }
.saga-copy h1 em { font-weight: 500; color: var(--copper); transition: color .8s var(--ease); }
.saga-copy .lead { max-width: 400px; color: #cbbfab; transition: color .8s var(--ease); }
.saga-copy .front-actions { margin-top: 30px; }
.is-day .saga-copy .folio { color: #594637; }
.is-day .saga-copy h1 { color: #26211b; }
.is-day .saga-copy h1 em { color: var(--red); }
.is-day .saga-copy .lead { color: #44392e; }
.is-day .ghost { color: #2a241d; }
.is-day .ghost:hover { background: #2a241d12; }
.w { display: inline-block; animation: word-in 1.1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 2.15s); }
@keyframes word-in { from { opacity: 0; transform: translateY(.35em) rotate(1.5deg); filter: blur(6px); } }
.saga-copy .folio, .saga-copy .lead, .saga-copy .front-actions { animation: page-in 1.1s var(--ease) both; }
.saga-copy .folio { animation-delay: 2s; } .saga-copy .lead { animation-delay: 2.55s; } .saga-copy .front-actions { animation-delay: 2.7s; }
html.seen .w, html.seen .saga-copy .folio, html.seen .saga-copy .lead, html.seen .saga-copy .front-actions { animation-delay: calc(var(--i, 0) * 90ms + .15s); }
.saga-acts { position: absolute; right: clamp(20px, 4.3vw, 72px); bottom: clamp(28px, 6vh, 64px); margin: 0; padding: 0; list-style: none; display: grid; gap: 10px;
  font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8d8473; }
.saga-acts li { display: flex; align-items: center; gap: 14px; transition: color .6s var(--ease), opacity .6s var(--ease), transform .6s var(--ease); opacity: .55; }
.saga-acts li span { width: 3ch; text-align: right; font-family: var(--serif); font-style: italic; font-size: 1.5em; text-transform: none; letter-spacing: 0; }
.saga-acts li.on { color: var(--copper); opacity: 1; transform: translateX(-6px); }
.saga-acts li.past { opacity: .35; }
.is-day .saga-acts { color: #7b6d5c; }
.is-day .saga-acts li.on { color: var(--red); }
.saga-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px;
  font: 500 .66rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: #a89c87; opacity: calc(1 - var(--p) * 14); }
.saga-hint span { width: 1px; height: 38px; background: linear-gradient(#a89c8700, #a89c87); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.saga-stage.no-gl { --day: 1 !important; }
.saga + .network-strip { position: relative; z-index: 1; }

.curtain { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: #0e0d0b; pointer-events: none;
  animation: curtain-up 1s var(--ease) 1.15s forwards; }
.curtain-mark { display: grid; justify-items: center; gap: 10px; color: var(--ink); }
.curtain-mark .mint-mark { font-size: 76px; color: var(--copper); animation: strike .9s var(--ease) both; }
.curtain-mark b { font: 600 52px/1 var(--serif); letter-spacing: -.06em; animation: page-in .9s var(--ease) .2s both; }
.curtain-mark small { font: 500 .68rem var(--mono); letter-spacing: .24em; text-transform: uppercase; color: #a89c87; animation: page-in .9s var(--ease) .35s both; }
@keyframes strike { 0% { opacity: 0; transform: rotate(-9deg) scale(1.6); filter: blur(8px); } 60% { opacity: 1; transform: rotate(-9deg) scale(.94); filter: blur(0); } 100% { transform: rotate(-9deg) scale(1); } }
@keyframes curtain-up { to { clip-path: inset(0 0 100% 0); } }
.curtain { clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .saga { height: 280vh; margin-top: -59px; }
  .saga-copy { justify-content: flex-end; padding: 0 0 clamp(64px, 11vh, 96px); }
  .saga-copy h1 { font-size: clamp(56px, 15.5vw, 92px); margin: 16px 0 16px -.04em; }
  .saga-copy .lead { font-size: 15.5px; }
  .saga-copy .front-actions { margin-top: 20px; }
  .saga-acts { top: 76px; bottom: auto; left: 20px; right: auto; }
  .saga-acts li:not(.on) { display: none; }
  .saga-acts li.on { transform: none; }
  .saga-hint { display: none; }
  .saga-veil::before { background: radial-gradient(60vw 40vw at var(--ax) calc(var(--ay) + 14vw), #ff9c4a2e 0%, transparent 70%),
      linear-gradient(0deg, #0b0a08f5 0%, #0b0a08cc 40%, #0b0a0833 62%, #0b0a0899 100%); }
  .saga-veil::after { background: linear-gradient(0deg, #f3ead5 0%, #f1e7d1f0 38%, #efe4cc33 60%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .saga { height: 100svh; }
  .w, .saga-copy .folio, .saga-copy .lead, .saga-copy .front-actions { animation: none; }
  .saga-hint { display: none; }
}
