/*
  Layout: a fixed full-screen WebGL desk behind the page. The hero headline sits left, huge and tight; the lit invoice
  sheet fills the right half. Four scroll chapters (write, seal, deliver, find) keep their copy in a left column while
  the sheet folds, flies to its one-time slot and the scan line lights your slots. After the story, solid bands.
*/
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.scrim { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(13,17,16,.86) 0%, rgba(13,17,16,.55) 34%, rgba(13,17,16,0) 58%), radial-gradient(120% 80% at 50% 120%, rgba(13,17,16,.7), transparent 60%); }
.stage-fallback { position: fixed; inset: 0; z-index: 0; display: grid; place-items: center end; padding-right: 8vw; pointer-events: none; }
.gl-on .stage-fallback { display: none; }
.fb-paper { width: min(34vw, 380px); aspect-ratio: 210 / 297; background: var(--paper); color: var(--paper-ink); transform: rotate(5deg); display: grid; align-content: start; gap: 12px; padding: 26px; box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.fb-paper b { font: 800 36px var(--display); text-transform: uppercase; }
.fb-paper span { font: 13px var(--mono); }
.fb-paper i { height: 10px; background: rgba(23,32,28,.12); }
.fb-paper em { font: 500 20px var(--mono); font-style: normal; background: var(--acc); margin: 20px -26px 0; padding: 12px 26px; }

.tokenbar, .top, .foot { position: relative; z-index: 2; }
main { position: relative; }   /* no z-index: the headline blends with the 3D sheet behind it */
.top { position: relative; }
.island { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 22px var(--display); letter-spacing: -0.03em; text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.navlinks { display: flex; gap: 26px; }
.navlinks a { text-decoration: none; color: var(--mute); font-weight: 500; font-size: 15px; transition: color .2s; }
.navlinks a:hover { color: var(--fg); }

/* ---------- story */
.hero { min-height: calc(100svh - 120px); display: flex; align-items: center; padding: 40px 0 70px; }
.hero-in { display: grid; gap: 24px; }
.h1 { font-size: clamp(60px, 7.2vw, 118px); line-height: 0.88; letter-spacing: -0.055em; max-width: 9ch; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: 0.04em; }
.h1 .ln > span { display: inline-block; }
.h1 .hl { color: var(--acc); }
.gl-on .h1 { mix-blend-mode: difference; }   /* where a line crosses the paper it turns to ink */
.lede { max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); color: #cad2cb; }
.ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.chapter { min-height: 100svh; display: flex; align-items: center; padding: 80px 0; }
.chapter .copy { max-width: 31rem; display: grid; gap: 16px; padding: 26px 0; }
.chapter h2 { font-size: clamp(40px, 5.2vw, 82px); line-height: 0.92; letter-spacing: -0.05em; }
.chapter p { color: #c3cbc4; font-size: 17px; max-width: 46ch; }
.chapter p b { color: var(--acc); font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.act { color: var(--acc); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.slot-tag { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; display: grid; gap: 2px; padding: 8px 12px; margin: -78px 0 0 14px;
  background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.5); opacity: 0; transition: opacity .3s; }
.slot-tag::before { content: ""; position: absolute; left: -14px; bottom: -10px; width: 22px; height: 1.5px; background: var(--paper); transform: rotate(-40deg); transform-origin: right; }
.slot-tag.on { opacity: 1; }
.slot-tag b { font-size: 14px; font-weight: 500; }
.slot-tag small { font: 500 10.5px var(--mono); color: #5c6861; letter-spacing: .04em; }

/* ---------- bands after the story */
.band { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(70px, 9vw, 130px) 0; }
.sec { font-size: clamp(42px, 6vw, 96px); line-height: 0.92; letter-spacing: -0.05em; }
.sec-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.sub { color: var(--mute); font-size: 17px; max-width: 46ch; margin-top: 18px; }
.note { color: var(--mute); font-size: 14.5px; max-width: 72ch; margin-top: 30px; }

.vs { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--line-2); }
.vs-col { padding: 28px 32px 30px 0; display: grid; gap: 20px; align-content: start; min-width: 0; }
.vs-col.yours { padding: 28px 0 30px 32px; border-left: 1px solid var(--line-2); }
.vs-col p { color: var(--mute); max-width: 44ch; }
.vs-col .pill { justify-self: start; }
.ledger { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ledger li { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ledger li span:last-child { text-align: right; }
.vs-col:not(.yours) .ledger li span:nth-child(2) { color: var(--bad); }
.yours .ledger li span:nth-child(2), .yours .ledger b { color: var(--acc); font-weight: 400; }

.meters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--line-2); }
.meters > div { padding: 22px 18px 4px 0; display: grid; gap: 8px; min-width: 0; }
.meters > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.meters b { white-space: nowrap; font-size: clamp(20px, 2vw, 32px); font-weight: 500; letter-spacing: -0.02em; overflow-wrap: anywhere; }

.try { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.tryform { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel); }
.tryform .btn { justify-self: start; }

.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 44px 0 0; }
.qa > div { padding: 22px 0; border-top: 1px solid var(--line); }
.qa dt { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.qa dd { margin: 0; color: var(--mute); }

.tok { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.tok-card { border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 26px 26px; display: grid; gap: 0; }
.tok-card .r { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.tok-card .r .mono { overflow-wrap: anywhere; }
.tok-card .row { margin-top: 20px; gap: 20px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 34px 0 48px; color: var(--dim); font-size: 13.5px; background: var(--bg); }
.foot .row { gap: 18px; }

@media (max-width: 980px) {
  .navlinks { display: none; }
  .meters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meters > div { border-left: 0 !important; padding-left: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
  .try, .tok { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .scrim { background: linear-gradient(180deg, rgba(13,17,16,0) 0%, rgba(13,17,16,.2) 34%, rgba(13,17,16,.88) 62%); }
  .hero { align-items: end; padding-bottom: 46px; }
  .h1 { font-size: clamp(46px, 13.2vw, 84px); max-width: none; }
  .hero { min-height: calc(100svh - 130px); padding-top: 34svh; }
  .chapter { align-items: end; }
  .chapter .copy { background: rgba(13,17,16,.72); backdrop-filter: blur(6px); padding: 20px; border-radius: var(--r); }
  .vs, .qa { grid-template-columns: 1fr; }
  .vs-col, .vs-col.yours { padding: 24px 0; border-left: 0; }
  .vs-col.yours { border-top: 1px solid var(--line-2); }
  .ledger li { grid-template-columns: 1fr 1.2fr auto; font-size: 12.5px; gap: 8px; }
  .foot { grid-template-columns: 1fr; }
  .stage-fallback { place-items: start center; padding: 120px 0 0; }
  .fb-paper { width: 60vw; }
}


/* ---------- v2 (ref 2,4): a descent from parchment through fog into the brand's navy ----------
   The sky colour is set on <html> by hero3d.js as the camera sinks; .tone-light flips the story copy to ink while
   the sky is pale. Brand from the emblem: navy disc, gold ring, paper, gold wax seal with a serif C. */
:root { --bg: #0e1526; --panel: #141d33; --panel-2: #1a2540; --acc: #c9a24a; --acc-ink: #1a1405; --ink: #1d2433;
  --line: rgba(233, 228, 214, 0.1); --line-2: rgba(233, 228, 214, 0.2); --fg: #ece7da; --mute: #a5abb8; --dim: #6d7488;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif; --sky: #ece5d7; }
html { background: var(--sky); transition: background-color .25s linear; }
body { background: transparent; }
.wordmark { position: fixed; z-index: -1; left: 0; right: 0; top: 13vh; text-align: center; pointer-events: none;
  font: 300 clamp(120px, 24vw, 420px)/1 var(--serif); letter-spacing: .42em; padding-left: .42em; color: rgba(29, 36, 51, .1); }
.h1, .chapter h2, .sec { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
.h1 { font-size: clamp(64px, 7.6vw, 128px); line-height: 0.86; }
.h1 .hl { font-style: italic; color: var(--acc); }
.gl-on .h1 { mix-blend-mode: normal; }
.chapter h2 { font-size: clamp(44px, 5.6vw, 88px); line-height: 0.9; }
.sec { font-size: clamp(46px, 6.4vw, 104px); }
.act, .kicker { letter-spacing: .24em; }
.btn.acc:hover { background: #dcb862; border-color: #dcb862; }
.pill.acc { border-color: rgba(201, 162, 74, 0.5); }
.band, .foot { background: var(--bg); }
.scrim { transition: opacity .4s; }
.tone-light .scrim { background: linear-gradient(90deg, rgba(236,229,215,.82) 0%, rgba(236,229,215,.45) 34%, rgba(236,229,215,0) 58%); }
.tone-light #story, .tone-light .top { color: var(--ink); }
.tone-light .top .navlinks a { color: #4a5164; }
.tone-light .top .navlinks a:hover { color: var(--ink); }
.tone-light .lede, .tone-light .chapter p { color: #3b4254; }
.tone-light .h1 .hl, .tone-light .act { color: #9a7424; }
.tone-light .chapter p b { color: #8a6618; }
.tone-light .kicker { color: #6a6f7d; }
.tone-light .link { color: var(--ink); }
.tone-light .btn.acc { background: var(--ink); border-color: var(--ink); color: #f3ead2; }
.tone-light .btn.acc:hover { background: #2c3550; border-color: #2c3550; }
#story .h1, #story .chapter h2, #story p { transition: color .4s; }
@media (max-width: 820px) {
  .wordmark { top: 18vh; letter-spacing: .3em; padding-left: .3em; }
  .tone-light .scrim { background: linear-gradient(180deg, rgba(236,229,215,0) 0%, rgba(236,229,215,.25) 34%, rgba(236,229,215,.9) 62%); }
  .chapter .copy { background: rgba(14, 21, 38, .72); }
  .tone-light .chapter .copy { background: rgba(236, 229, 215, .78); }
}
