/* =========================================================
   GPUs.exchange — Production Stylesheet v2.0
   GhostFire Digital × Mint-to-Deploy™
   Change summary: Wafer & Copper — matte-silicon paper, graphite ink, copper accent, exchange
     green/red; dark terminal set on the page like a screen on a desk. Order-tag + ruled-line CTAs,
     no boxed buttons; cards → ruled columns; underline form fields.
   Prior (v1.0): thermal violet→orange dark theme, rectangular buttons.
   ========================================================= */

/* =========================
   Tokens
   ========================= */
:root {
  --paper: #ebe8e1;
  --paper-2: #e2ded5;
  --paper-3: #f5f3ee;
  --rule: rgba(18, 18, 18, .14);
  --rule-2: rgba(18, 18, 18, .28);
  --ink: #121212;
  --ink-2: rgba(18, 18, 18, .7);
  --ink-3: rgba(18, 18, 18, .48);

  --cu: #b8582c;
  --cu-hi: #d9823f;
  --cu-deep: #7d3416;
  --cu-glow: rgba(184, 88, 44, .35);

  --bid: #1f7a50;
  --ask: #b3332a;

  /* the screen (terminal, tape, modal accents) */
  --scr: #101113;
  --scr-2: #17181b;
  --scr-line: rgba(235, 232, 225, .09);
  --scr-line-2: rgba(235, 232, 225, .16);
  --scr-ink: #ebe8e1;
  --scr-ink-2: rgba(235, 232, 225, .66);
  --scr-ink-3: rgba(235, 232, 225, .42);
  --scr-bid: #4fd39a;
  --scr-ask: #ff6b5e;

  --f-wide: "Archivo", "Arial Black", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --wrap: 1280px;
  --gut: clamp(18px, 4vw, 48px);
  --nav-h: 66px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* =========================
   Base
   ========================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--f-mono); font-size: 15px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--cu); color: var(--paper-3); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* paper tooth */
.fx-noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cu { color: var(--cu); }

/* Section heading system */
.code { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.code b { color: var(--cu); font-weight: 500; }
.code i { flex: 0 0 48px; height: 1px; background: var(--ink); }
.h2 {
  margin-top: 18px;
  font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 4.8rem); line-height: .94; letter-spacing: -.015em;
}
.h2 em { font-family: var(--f-serif); font-stretch: 100%; font-style: italic; font-weight: 400; text-transform: none; letter-spacing: -.01em; color: var(--cu); }
.lede { margin-top: 20px; max-width: 60ch; color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.lede b { color: var(--ink); font-weight: 500; }
.sec { position: relative; padding: clamp(84px, 10vw, 140px) 0; border-top: 1px solid var(--rule-2); }

/* =========================
   CTAs — no boxes
   .btn-buy  : an order tag. Arrow nose, perforated price stub, fills left→right on hover.
   .btn-ink  : the same tag in graphite.
   .btn-line : a ruled link. The rule fills with copper, the arrow travels.
   ========================= */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  transition: transform .3s var(--ease), color .3s;
}
.btn:focus-visible { outline: 2px solid var(--cu); outline-offset: 5px; }
.btn-buy, .btn-ink {
  padding: 16px 36px 16px 22px; color: var(--paper-3); background: var(--cu);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
  overflow: hidden;
}
.btn-ink { background: var(--ink); }
.btn-buy::before, .btn-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cu-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease);
}
.btn-ink::before { background: var(--cu); }
.btn-buy:hover::before, .btn-buy:focus-visible::before, .btn-ink:hover::before, .btn-ink:focus-visible::before { transform: scaleX(1); }
.btn-buy:hover, .btn-ink:hover { transform: translateX(3px); }
.btn .k {
  position: relative; padding-left: 14px; font-size: 11px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
  border-left: 1px dashed rgba(245, 243, 238, .55);
}
.btn-line { padding: 10px 2px; color: var(--ink); }
.btn-line::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ink); }
.btn-line::after { content: "\2192"; display: inline-block; margin-left: 2px; transition: transform .4s var(--ease); }
.btn-line:hover::after, .btn-line:focus-visible::after { transform: translateX(6px); }
.btn-line:hover { color: var(--cu); }
.btn-line:hover::before { background: var(--cu); height: 2px; }

/* =========================
   Nav — a masthead with a double rule
   ========================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s; }
.nav.is-solid { background: rgba(235, 232, 225, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--rule-2), 0 4px 0 -3px var(--rule-2); }
.nav-in { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; align-items: baseline; gap: 1px; }
.logo-w { font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.logo-x { font-size: .82rem; color: var(--cu); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav .btn-buy { padding: 11px 30px 11px 16px; font-size: 11px; }
.mkt { display: inline-flex; align-items: center; gap: 8px; color: var(--bid); }
.mkt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bid); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* =========================
   Hero
   ========================= */
.hero { position: relative; isolation: isolate; min-height: 100svh; padding: calc(var(--nav-h) + 12px) 0 clamp(28px, 6svh, 56px); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 55% at 74% 50%, rgba(184, 88, 44, .10), transparent 70%),
    linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .3;
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero-word { font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; line-height: .82; letter-spacing: -.04em; font-size: clamp(3.6rem, min(10.4vw, 17svh), 10.2rem); }
.hero-word .dot { display: block; font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; letter-spacing: -.02em; font-size: .42em; line-height: 1.1; margin-top: .1em; }
.hero-line { margin-top: clamp(14px, 2.6svh, 26px); font-family: var(--f-serif); font-style: italic; font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.18; max-width: 22ch; }
.hero-sub { margin-top: 14px; max-width: 50ch; color: var(--ink-2); line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: clamp(18px, 2.8svh, 28px); }
.hero-quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: clamp(14px, 2.4svh, 24px); padding-top: 14px; border-top: 1px solid var(--rule-2); max-width: 520px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.hero-quote b { font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; color: var(--ink); text-transform: none; font-variant-numeric: tabular-nums; }

.wafer-wrap { position: relative; aspect-ratio: 1 / 1; width: min(100%, calc(100svh - var(--nav-h) - 110px)); margin-left: auto; }
#wafer { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.wafer-hud { position: absolute; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.wafer-hud b { display: block; margin-top: 2px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wh-tl { top: 3%; left: 1%; } .wh-tr { top: 3%; right: 1%; text-align: right; }
.wh-bl { bottom: 3%; left: 1%; } .wh-br { bottom: 3%; right: 1%; text-align: right; }
.wh-tr b { color: var(--cu); }
.wafer-cap { position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); font-family: var(--f-serif); font-style: italic; font-size: .95rem; color: var(--ink-3); white-space: nowrap; pointer-events: none; }

/* =========================
   Tape — black ticker band across the paper
   ========================= */
.tape { position: relative; overflow: hidden; background: var(--scr); color: var(--scr-ink); }
.tape-track { display: flex; width: max-content; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 26px; border-right: 1px solid var(--scr-line); font-size: 12px; white-space: nowrap; }
.tk b { font-weight: 500; letter-spacing: .06em; }
.tk span { font-variant-numeric: tabular-nums; color: var(--scr-ink-2); }
.tk em { font-style: normal; font-size: 11px; font-variant-numeric: tabular-nums; }
.tape .up, .term .up { color: var(--scr-bid); }
.tape .dn, .term .dn { color: var(--scr-ask); }
.tape-tag { position: absolute; right: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 16px 0 40px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--scr-ink-3); background: linear-gradient(90deg, transparent, var(--scr) 30%); }
@keyframes tape { to { transform: translateX(-50%); } }

/* =========================
   Terminal — a screen on the desk
   ========================= */
.term {
  margin-top: 54px; display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 1px;
  background: #26272b; color: var(--scr-ink);
  box-shadow: 0 0 0 10px var(--scr), 0 0 0 11px var(--rule-2), 0 50px 90px -40px rgba(18, 18, 18, .55);
  border-radius: 2px; overflow: hidden; margin-inline: 11px;
}
.t-bar { grid-column: 1 / -1; display: flex; align-items: stretch; background: var(--scr-2); overflow-x: auto; scrollbar-width: none; }
.t-bar::-webkit-scrollbar { display: none; }
.t-tab { position: relative; flex: none; padding: 13px 16px; font-size: 12px; letter-spacing: .06em; color: var(--scr-ink-3); border-right: 1px solid var(--scr-line); transition: color .2s, background .2s; }
.t-tab:hover { color: var(--scr-ink); }
.t-tab[aria-selected="true"] { color: var(--scr-ink); background: var(--scr); }
.t-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--cu-hi); }
.t-tab small { margin-left: 8px; font-size: 10px; }
.t-sim { margin-left: auto; flex: none; align-self: center; padding: 0 14px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--scr-ink-3); }
.t-panel { background: var(--scr); padding: 18px 18px 20px; min-width: 0; }
.t-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--scr-ink-3); margin-bottom: 12px; }
.t-h b { font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; color: var(--scr-ink); text-transform: none; font-variant-numeric: tabular-nums; transition: color .3s; }
.t-h b.up { color: var(--scr-bid); } .t-h b.dn { color: var(--scr-ask); }
.t-h-sub { margin-top: 16px; margin-bottom: 8px; }

.book, .trades, .trade-head { font-size: 12px; font-variant-numeric: tabular-nums; }
.book-row, .trade { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 3px 6px; }
.book-row span:nth-of-type(2), .book-row span:nth-of-type(3), .trade span:nth-of-type(2), .trade span:nth-of-type(3) { text-align: right; }
.book-row i { position: absolute; top: 1px; bottom: 1px; right: 0; z-index: 0; opacity: .16; transition: width .4s var(--ease); }
.book-row span { position: relative; z-index: 1; }
.book-row.ask span:nth-of-type(1) { color: var(--scr-ask); } .book-row.ask i { background: var(--scr-ask); }
.book-row.bid span:nth-of-type(1) { color: var(--scr-bid); } .book-row.bid i { background: var(--scr-bid); }
.book-row.flash { animation: flash .6s ease-out; }
@keyframes flash { from { background: rgba(235, 232, 225, .12); } to { background: transparent; } }
.book-head, .trade-head { color: var(--scr-ink-3); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 6px; }
.trade-head { border-bottom: 1px solid var(--scr-line); margin-bottom: 4px; }
.spread { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 8px 6px; margin: 4px 0; border-block: 1px dashed var(--scr-line-2); font-size: 11px; color: var(--scr-ink-3); }
.spread b { font-weight: 500; color: var(--scr-ink); text-align: right; }
.spread span:last-child { text-align: right; }
#depth { display: block; width: 100%; height: 190px; }
.trades { max-height: 176px; overflow: hidden; }
.trade { animation: tradeIn .4s var(--ease); }
.trades .trade span:nth-of-type(2), .trades .trade span:nth-of-type(3) { color: var(--scr-ink-2); }
@keyframes tradeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.ticket { display: grid; gap: 16px; }
.side { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--scr-line-2); }
.side button { position: relative; padding: 12px 0; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--scr-ink-3); }
.side button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.side button[aria-pressed="true"].b { color: var(--scr-bid); } .side button[aria-pressed="true"].b::after { background: var(--scr-bid); }
.side button[aria-pressed="true"].s { color: var(--scr-ask); } .side button[aria-pressed="true"].s::after { background: var(--scr-ask); }
.tf label { display: block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--scr-ink-3); }
.tf input, .tf select { width: 100%; padding: 8px 0 9px; border: 0; border-radius: 0; background: transparent; color: var(--scr-ink); border-bottom: 1px solid var(--scr-line-2); font-size: 1.05rem; font-variant-numeric: tabular-nums; outline: none; -webkit-appearance: none; appearance: none; }
.tf select { background-image: linear-gradient(45deg, transparent 50%, var(--scr-ink-3) 50%), linear-gradient(135deg, var(--scr-ink-3) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.tf select option { color: var(--ink); }
.tf input:focus, .tf select:focus { border-bottom-color: var(--cu-hi); }
.est { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; font-size: 12px; color: var(--scr-ink-3); }
.est b { font-family: var(--f-wide); font-stretch: 125%; font-weight: 800; font-size: 1.3rem; color: var(--scr-ink); font-variant-numeric: tabular-nums; }
.ticket .btn-buy { justify-content: center; width: 100%; }
.ticket .note { font-size: 11px; line-height: 1.55; color: var(--scr-ink-3); }

/* =========================
   The Name — broadsheet columns
   ========================= */
.thesis-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 2px solid var(--ink); }
.cell { position: relative; padding: 24px 24px 8px; border-right: 1px solid var(--rule-2); }
.cell:first-child { padding-left: 0; }
.cell:last-child { border-right: 0; padding-right: 0; }
.cell .cell-n { font-size: 10px; letter-spacing: .2em; color: var(--ink-3); }
.cell .cell-big { margin-top: 14px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: .9; letter-spacing: -.03em; overflow-wrap: anywhere; }
.cell { container-type: inline-size; }
.cell .cell-big-fit { white-space: nowrap; overflow-wrap: normal; font-size: min(clamp(1.9rem, 3vw, 2.7rem), 13.5cqi); }
.cell h3 { margin-top: 18px; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.cell p:not(.cell-n):not(.cell-big) { margin-top: 10px; color: var(--ink-2); font-size: .9rem; line-height: 1.65; }

.record { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(80px, 9vw, 120px); }
.slip {
  position: relative; padding: 28px 28px 78px; background: var(--paper-3); font-family: var(--f-mono); transform: rotate(-1.4deg);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 100% / 18px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 14px) no-repeat;
          mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 100% / 18px 14px repeat-x, linear-gradient(#000, #000) 0 0 / 100% calc(100% - 14px) no-repeat;
  filter: drop-shadow(0 22px 26px rgba(18, 18, 18, .18));
}
.slip-h { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 10px; border-bottom: 1px dashed var(--rule-2); }
.slip-d { margin-top: 18px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.slip-p { font-size: 1.7rem; font-weight: 500; margin-top: 6px; font-variant-numeric: tabular-nums; }
.slip-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 12px; font-size: 12.5px; }
.slip-row span:last-child { text-align: right; }
.slip-stamp { position: absolute; right: 24px; bottom: 30px; padding: 4px 8px; border: 2px solid var(--ask); color: var(--ask); font-size: 10px; font-weight: 600; letter-spacing: .2em; transform: rotate(-9deg); }
.record-copy .big { font-family: var(--f-serif); font-style: italic; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.2; }
.record-copy .lede { margin-top: 16px; }
.fine { margin-top: 16px; font-size: 11px; color: var(--ink-3); line-height: 1.6; }

.h2-sub { margin-top: clamp(80px, 9vw, 120px); font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.buyers { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 40px; border-top: 2px solid var(--ink); }
.buyer { padding: 22px 20px 6px; border-right: 1px solid var(--rule-2); }
.buyer:first-child { padding-left: 0; }
.buyer:last-child { border-right: 0; padding-right: 0; }
.buyer svg { width: 28px; height: 28px; stroke: var(--cu); fill: none; stroke-width: 1.5; }
.buyer h3 { margin-top: 14px; font-family: var(--f-wide); font-stretch: 112%; font-weight: 800; font-size: 1rem; line-height: 1.2; letter-spacing: -.005em; }
.buyer p { margin-top: 8px; font-size: .84rem; line-height: 1.6; color: var(--ink-2); }

/* =========================
   Settlement — two ruled columns
   ========================= */
.settle-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin-top: 54px; border-top: 2px solid var(--ink); }
.settle-grid > * { min-width: 0; }
.lot { position: relative; display: flex; flex-direction: column; padding: 30px 40px 6px 0; }
.lot + .lot { padding: 30px 0 6px 40px; border-left: 1px solid var(--rule-2); align-self: stretch; }
.lot-prime::before { content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 4px; background: var(--cu); }
.lot-k { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.lot-k b { color: var(--cu); font-weight: 500; }
.lot-name { margin-top: 16px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: 1.8rem; line-height: .95; letter-spacing: -.015em; text-transform: uppercase; }
.lot-price { margin-top: 14px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .9; letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--cu); }
.lot-price small { display: block; margin-top: 12px; font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.lot ul { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; align-content: start; }
.lot li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.lot li::before { content: "\25B2"; font-size: 9px; color: var(--bid); margin-top: 5px; }
.lot .btn-buy { align-self: flex-start; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 20px; }
.field { display: grid; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; padding: 8px 0 9px; border: 0; border-radius: 0; background: transparent; border-bottom: 1px solid var(--rule-2); outline: none; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 72px; resize: vertical; font-family: var(--f-mono); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom: 2px solid var(--cu); padding-bottom: 8px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 4px; }
.form-note { font-size: 11px; color: var(--ink-3); }
.form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.status { grid-column: 1 / -1; display: none; padding: 12px 0 12px 14px; font-size: .9rem; line-height: 1.55; border-left: 3px solid var(--bid); }
.status.ok { display: block; }
.status.err { display: block; border-left-color: var(--ink-3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================
   Finale
   ========================= */
.bell { position: relative; padding: clamp(100px, 14vw, 200px) 0; text-align: center; border-top: 1px solid var(--rule-2); overflow: hidden; }
.bell-k { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); }
.bell-word { margin-top: 14px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: clamp(4rem, 16vw, 15rem); line-height: .8; letter-spacing: -.05em; }
.bell-line { margin-top: 26px; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.3rem); line-height: 1.2; }
.bell-cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 34px; }

/* Footer */
.foot { border-top: 2px solid var(--ink); padding: 30px 0 110px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.foot-in a:hover { color: var(--ink); }
.foot-motto { font-family: var(--f-serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink-2); }

/* =========================
   Sticky bar — a graphite order strip
   ========================= */
.bar { position: fixed; left: 50%; bottom: 16px; z-index: 110; display: flex; align-items: center; gap: 18px; padding: 6px 6px 6px 18px; background: var(--scr); color: var(--scr-ink); box-shadow: 0 18px 40px rgba(18, 18, 18, .35); transform: translate(-50%, 160%); transition: transform .5s var(--ease); max-width: calc(100% - 24px); }
.bar.is-on { transform: translate(-50%, 0); }
.bar-n { font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: 1rem; white-space: nowrap; }
.bar-n span { font-family: var(--f-mono); font-stretch: 100%; font-weight: 400; color: var(--cu-hi); }
.bar-p { font-size: 11px; letter-spacing: .12em; color: var(--scr-ink-3); white-space: nowrap; }
.bar-p b { color: var(--scr-ink); font-weight: 500; }
.bar .btn-line { color: var(--scr-ink); font-size: 11px; }
.bar .btn-line::before { background: var(--scr-ink-3); }
.bar .btn-buy { padding: 11px 30px 11px 16px; font-size: 11px; }

/* Go Long — back to top as a rising candle. --p = scroll progress (0–1). */
.long { position: fixed; right: clamp(14px, 2.4vw, 28px); bottom: 18px; z-index: 112; display: flex; align-items: flex-end; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.long.is-on { opacity: 1; visibility: visible; transform: none; }
.long-label { padding-bottom: 6px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--bid); opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s var(--ease); }
.long:hover .long-label, .long:focus-visible .long-label { opacity: 1; transform: none; }
.candle { position: relative; width: 48px; height: 62px; background: var(--scr); box-shadow: 0 10px 26px rgba(18, 18, 18, .3); }
.candle::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--scr-ink-3); transform: translateX(-50%); }
.candle-body { position: absolute; left: 50%; bottom: 14px; width: 14px; height: calc(6px + var(--p, 0) * 30px); transform: translateX(-50%); background: var(--scr-bid); transition: height .2s linear; }
.candle-arrow { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); font-size: 10px; color: var(--scr-bid); transition: transform .4s var(--ease); }
.long:hover .candle-body { height: 38px; }
.long:hover .candle-arrow { transform: translate(-50%, -2px); }
.long:focus-visible { outline: none; }
.long:focus-visible .candle { box-shadow: 0 0 0 2px var(--bid); }

/* Modal — a trade confirmation on paper */
.modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 20px; background: rgba(18, 18, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal.is-on { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: min(560px, 100%); padding: 30px 30px 28px; background: var(--paper-3); border-top: 4px solid var(--cu); box-shadow: 0 40px 100px rgba(0, 0, 0, .45); transform: translateY(16px); transition: transform .4s var(--ease); }
.modal.is-on .modal-card { transform: none; }
.modal-k { display: flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--bid); }
.modal-k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bid); }
.modal-t { margin-top: 14px; font-family: var(--f-wide); font-stretch: 125%; font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.modal-t em { font-family: var(--f-serif); font-stretch: 100%; font-weight: 400; text-transform: none; color: var(--cu); }
.modal-fill { margin-top: 18px; padding: 12px 0; border-block: 1px dashed var(--rule-2); font-size: 12px; line-height: 1.75; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.modal-fill b { color: var(--ink); font-weight: 500; }
.modal-card p.m { margin-top: 16px; color: var(--ink-2); line-height: 1.65; }
.modal-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 22px; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; font-size: 20px; color: var(--ink-3); }
.modal-x:hover { color: var(--ink); }

/* Reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .wafer-wrap { width: 100%; max-width: 540px; margin: 10px auto 0; }
  .hero-word { font-size: clamp(3.6rem, 10.4vw, 10.2rem); }
  .term { grid-template-columns: 1fr 1fr; }
  .t-ticket { grid-column: 1 / -1; }
  .thesis-grid { grid-template-columns: 1fr 1fr; }
  .cell:nth-child(2) { border-right: 0; padding-right: 0; }
  .cell:nth-child(3) { padding-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--rule-2); margin-top: 18px; }
  .buyers { grid-template-columns: 1fr 1fr; }
  .buyer { border-right: 0; padding: 20px 0 14px; border-bottom: 1px solid var(--rule); }
  .buyer:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--rule-2); }
  .buyer:nth-child(even) { padding-left: 20px; }
  .record, .settle-grid { grid-template-columns: 1fr; }
  .lot { padding-right: 0; }
  .lot + .lot { padding: 34px 0 6px; margin-top: 30px; border-left: 0; border-top: 1px solid var(--rule-2); }
  .nav-links a:not(.btn), .nav-links .mkt { display: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 58px; }
  .hero { min-height: auto; }
  .term { grid-template-columns: 1fr; margin-inline: 6px; box-shadow: 0 0 0 6px var(--scr), 0 0 0 7px var(--rule-2), 0 40px 70px -40px rgba(18, 18, 18, .55); }
  .thesis-grid { grid-template-columns: 1fr; }
  .cell { border-right: 0 !important; padding: 20px 0 12px !important; margin-top: 0 !important; border-top: 0 !important; border-bottom: 1px solid var(--rule-2); }
  .buyers { grid-template-columns: 1fr; }
  .buyer, .buyer:nth-child(odd), .buyer:nth-child(even) { padding: 18px 0 12px; border-right: 0; }
  .form { grid-template-columns: 1fr; }
  .bar { gap: 12px; padding: 5px 5px 5px 12px; bottom: 10px; }
  .bar-p { display: none; }
  .long { bottom: 72px; right: 12px; }
  .candle { width: 42px; height: 52px; }
  .wh-bl, .wh-br { display: none; }
  .hero-word { font-size: clamp(3.4rem, 19vw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
