/* =========================================================
   style.css — Pawn.exchange v1.1.0
   GhostFire Digital
   Change summary (v1.1.0): The Scoresheet (printed chess diagram with hatched dark squares + tournament scoresheet)
     replaces the three file cards; other-routes strip; inquiry select; section landing offset; footer Underground
     line. Base (v1.0.0): ebony-and-ivory identity, promotion engine hero, pawn-ticket buttons, price ticket.
   ========================================================= */

:root {
  --ebony: #0f0d0b;
  --ebony-2: #17140f;
  --ebony-3: #201b15;
  --ivory: #efe6d4;
  --ivory-2: #bdb3a1;
  --mute: #847a6a;
  --brass: #c8a14a;
  --brass-hi: #e3c172;
  --ledger: #2f6b4f;
  --ticket: #b8342b;
  --line: rgba(239, 230, 212, .1);
  --line-2: rgba(239, 230, 212, .2);
  --f-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ebony);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ol, ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(200, 161, 74, .3); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--brass); color: var(--ebony);
  font-family: var(--f-mono); font-size: .8rem; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 1px dashed var(--brass-hi); outline-offset: 5px; }

/* ─── Pawn-ticket buttons: a main body and a numbered stub split by a perforation, notched top and bottom ─── */
.ticket {
  --tk-bg: rgba(239, 230, 212, .06);
  --tk-fg: var(--ivory);
  --tk-edge: rgba(239, 230, 212, .34);
  --stub: 58px;
  position: relative;
  display: inline-flex;
  align-items: stretch;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: var(--tk-bg);
  box-shadow: inset 0 0 0 1px var(--tk-edge);
  color: var(--tk-fg);
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-mask:
    radial-gradient(circle 6px at calc(100% - var(--stub)) 0, transparent 96%, #000 100%),
    radial-gradient(circle 6px at calc(100% - var(--stub)) 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle 6px at calc(100% - var(--stub)) 0, transparent 96%, #000 100%),
    radial-gradient(circle 6px at calc(100% - var(--stub)) 100%, transparent 96%, #000 100%);
          mask-composite: intersect;
  transition: background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.tk-main {
  display: inline-flex;
  align-items: center;
  padding: 0 22px 0 24px;
  white-space: nowrap;
}
.tk-main b { font-weight: 600; }
.tk-stub {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--stub);
  border-left: 1px dashed var(--tk-edge);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  transition: transform .35s var(--ease);
  transform-origin: left center;
}
.ticket:hover, .ticket:focus-visible { --tk-edge: var(--brass); background-color: rgba(200, 161, 74, .12); }
.ticket:hover .tk-stub, .ticket:focus-visible .tk-stub { transform: translateX(3px) rotate(2.5deg); }
.ticket--hot { --tk-bg: var(--brass); --tk-fg: #1a1408; --tk-edge: rgba(26, 20, 8, .38); }
.ticket--hot:hover, .ticket--hot:focus-visible { --tk-edge: rgba(26, 20, 8, .6); background-color: var(--brass-hi); }
.ticket--sm { --stub: 46px; min-height: 38px; font-size: .68rem; }
.ticket--sm .tk-main { padding: 0 14px 0 16px; }
.ticket--sm .tk-stub { font-size: .62rem; }
.ticket[disabled] { opacity: .55; cursor: progress; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--gutter);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.nav.is-solid {
  background: rgba(15, 13, 11, .88);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
          backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.brand { font-family: var(--f-display); font-size: 1.32rem; text-decoration: none; color: var(--ivory); white-space: nowrap; }
.brand i { font-style: normal; font-family: var(--f-mono); font-size: .66em; color: var(--brass); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ivory); border-bottom-color: var(--brass); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(96px, 13vh, 130px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 50% 60% at 72% 52%, rgba(200, 161, 74, .1), rgba(200, 161, 74, 0) 70%),
    var(--ebony);
}
.pw-board {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.pw-board.on { opacity: 1; }
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-inner > * { max-width: 560px; }
/* Kicker: three hallmark punches struck into the plate in turn: pawn mark, polished brass foil, maker's name. */
.hero-k {
  --hk-h: 36px;
  --hk-c: 8px;
  display: inline-flex;
  align-items: stretch;
  gap: 5px;
  margin-bottom: clamp(16px, 3.2vh, 28px);
  filter: drop-shadow(0 12px 28px rgba(200, 161, 74, .22));
}
.hero-k > span {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: var(--hk-h);
  padding: 0 16px;
  white-space: nowrap;
  clip-path: polygon(var(--hk-c) 0, calc(100% - var(--hk-c)) 0, 100% var(--hk-c), 100% calc(100% - var(--hk-c)), calc(100% - var(--hk-c)) 100%, var(--hk-c) 100%, 0 calc(100% - var(--hk-c)), 0 var(--hk-c));
  background: linear-gradient(135deg, var(--brass-hi), #6f5524 45%, var(--brass) 70%, #fff1c8);
  animation: hk-strike .8s var(--ease) both;
}
.hero-k > span:nth-child(2) { animation-delay: .14s; }
.hero-k > span:nth-child(3) { animation-delay: .28s; }
/* Outlined punches: a 1px brass rim around a sunken ebony face. */
.hk-mark::before, .hk-name::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  clip-path: inherit;
  background: linear-gradient(180deg, #0b0907, var(--ebony-3));
}
.hero-k > .hk-mark { width: var(--hk-h); padding: 0; justify-content: center; }
.hk-mark svg { width: 70%; height: 70%; fill: var(--brass-hi); filter: drop-shadow(0 0 6px rgba(227, 193, 114, .45)); }
.hero-k > .hk-foil {
  overflow: hidden;
  padding: 0 20px;
  background: linear-gradient(100deg, #8a6a2a 0%, var(--brass-hi) 20%, #fff1c8 33%, var(--brass) 50%, #8f7031 74%, var(--brass-hi) 100%);
  color: #1a1408;
  font-family: var(--f-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 241, 200, .55);
}
.hk-foil::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% 0;
  width: 46%;
  background: linear-gradient(100deg, transparent, rgba(255, 252, 240, .85) 50%, transparent);
  transform: translateX(-160%) skewX(-18deg);
  animation: hk-glint 6s ease-in-out 1.3s infinite;
}
.hk-name {
  font-family: var(--f-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ivory);
}
.hk-name em { font-style: normal; color: var(--brass-hi); }
@keyframes hk-strike {
  0% { opacity: 0; transform: scale(1.4); filter: blur(6px) brightness(2.2); }
  55% { opacity: 1; transform: scale(.96); filter: blur(0) brightness(1.5); }
  100% { opacity: 1; transform: none; filter: none; }
}
@keyframes hk-glint {
  0%, 62% { transform: translateX(-160%) skewX(-18deg); }
  100% { transform: translateX(330%) skewX(-18deg); }
}
.wm {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--f-display);
  line-height: .9;
  color: var(--ivory);
}
.wm-pawn { font-size: clamp(4rem, 11vw, 9.4rem); letter-spacing: -.02em; }
.wm-tld { margin-left: .18em; font-family: var(--f-mono); font-size: clamp(1.1rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--brass); }
.claim {
  margin-top: clamp(14px, 2.6vh, 24px);
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  text-wrap: balance;
}
.claim em { font-style: normal; color: var(--brass-hi); }
.hero-sub {
  margin-top: 14px;
  max-width: 48ch;
  font-size: clamp(1rem, 1.3vw, 1.06rem);
  line-height: 1.62;
  color: var(--ivory-2);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: clamp(20px, 3.4vh, 30px); }
.hero-note {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: .74rem;
  color: var(--mute);
}
.hero-note b { font-weight: 700; color: var(--ivory); }
.ledger {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 26px;
  font-family: var(--f-mono);
}
.ledger p { display: flex; flex-direction: column; gap: 3px; }
.ledger span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.ledger b { min-width: 8ch; font-size: .98rem; font-weight: 700; color: var(--ivory); }
.ledger b.is-crowned { color: var(--brass-hi); }
.hero-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 26px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--mute);
  opacity: 0;
  transition: opacity 1s ease 2s;
}
.hero.is-live .hero-hint { opacity: 1; }
.hero.is-touched .hero-hint { opacity: 0; transition-delay: 0s; }

/* ─── SECTIONS ─── */
/* Hash loads land on the content, not the section's top padding (nav-jumps are placed by grimy.js). */
.sec { position: relative; padding: clamp(80px, 12vw, 150px) 0; scroll-margin-top: calc(16px - clamp(80px, 12vw, 150px)); }
.sec + .sec { border-top: 1px solid var(--line); }
.wrap { width: min(1120px, 100% - var(--gutter) * 2); margin: 0 auto; }
.kick { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 20ch;
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--brass-hi); }
.prose { max-width: 62ch; margin-top: 26px; font-size: clamp(1.02rem, 1.3vw, 1.1rem); line-height: 1.72; color: var(--ivory-2); }
.prose b { font-weight: 600; color: var(--ivory); }
.sec--uses .h2 { max-width: none; }

/* The two senses: ivory and ebony, like the two sides of the board */
.senses { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(36px, 6vw, 60px); border: 1px solid var(--line-2); }
.sense { padding: clamp(24px, 3.4vw, 40px); }
.sense:first-child { background: var(--ivory); color: var(--ebony); }
.sense:last-child { background: var(--ebony-2); }
.sense-k { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.sense:first-child .sense-k { color: #8a6a22; }
.sense-w { margin-top: 12px; font-family: var(--f-display); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
.sense-w span { font-family: var(--f-body); font-size: .5em; vertical-align: .3em; color: var(--brass); }
.sense dl { margin: 22px 0 0; }
.sense dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.sense:first-child dl div { border-top-color: rgba(15, 13, 11, .16); }
.sense dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.sense:first-child dt { color: #6c6253; }
.sense dd { margin: 0; font-size: .98rem; }
.sense dd i { font-style: italic; }

/* The Scoresheet: a printed chess diagram beside a tournament scoresheet; each row is an opening, played on the board */
.sec--uses { background: var(--ebony-2); }
.sheet-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(32px, 5vw, 56px);
}
.diagram { margin: 0; }
.dg-board {
  width: 100%;
  max-width: 440px;
  height: auto;
  padding: clamp(10px, 1.4vw, 16px);
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(200, 161, 74, .5), 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.dg-sq-l { fill: #f4ecdc; }
.dg-sq-d { fill: url(#dgHatch); }
.dg-frame { fill: none; stroke: var(--ebony); stroke-width: 2; }
.dg-lbl { font-family: var(--f-mono); font-size: 10px; font-weight: 700; fill: #6c6253; }
.dg-mark { fill: rgba(184, 52, 43, .16); opacity: 0; transition: opacity .45s ease; }
.dg-from { fill: rgba(200, 161, 74, .22); opacity: 0; transition: opacity .45s ease; }
.dg-mark.on, .dg-from.on { opacity: 1; }
.dg-arrow { fill: none; stroke: var(--ticket); stroke-width: 4; stroke-linecap: round; opacity: .9; transition: stroke-dashoffset .6s var(--ease) .15s; }
.dg-head { fill: var(--ticket); opacity: 0; transition: opacity .25s ease .6s; }
.dg-head.on { opacity: .9; }
.dg-pc { transition: transform .7s var(--ease); }
.dg-pc .w { fill: #fffaf0; stroke: var(--ebony); stroke-width: 1.4; stroke-linejoin: round; }
.dg-pc .b { fill: var(--ebony); stroke: var(--ebony); stroke-width: 1.4; stroke-linejoin: round; }
.dg-cap { display: flex; align-items: baseline; gap: 14px; max-width: 440px; margin-top: 16px; font-family: var(--f-mono); }
.dg-cap b { font-size: 1.05rem; color: var(--brass-hi); }
.dg-cap span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory-2); }

.sheet { border-top: 2px solid var(--ivory); }
.sheet-head, .sheet-row { display: grid; grid-template-columns: 44px 76px minmax(0, 1fr); gap: 0 18px; }
.sheet-head { padding: 10px 0; border-bottom: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sheet-row { position: relative; padding: clamp(14px, 1.8vw, 20px) 0; border-bottom: 1px solid var(--line-2); cursor: default; }
.sheet-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -14px;
  width: 2px;
  background: var(--ticket);
  transform: scaleY(0);
  transition: transform .45s var(--ease);
}
.sheet-row.is-on::before { transform: scaleY(1); }
.sr-no { font-family: var(--f-mono); font-size: .9rem; color: var(--mute); padding-top: 4px; }
.sr-move {
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ivory-2);
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1;
  text-align: left;
  cursor: pointer;
  transition: color .35s ease;
}
.sr-use h3 { font-family: var(--f-display); font-size: clamp(1.18rem, 1.6vw, 1.36rem); line-height: 1.2; color: var(--ivory-2); transition: color .35s ease; }
.sr-use p { margin-top: 6px; font-size: .95rem; line-height: 1.6; color: var(--mute); transition: color .35s ease; }
.sheet-row.is-on .sr-move { color: var(--brass-hi); }
.sheet-row.is-on .sr-use h3 { color: var(--ivory); }
.sheet-row.is-on .sr-use p { color: var(--ivory-2); }

/* Other routes: licensing and private escrow, both to the owner */
.acq-side { display: flex; flex-direction: column; gap: 18px; }
.routes { margin-top: 0; padding: 22px 24px 24px; border: 1px dashed rgba(200, 161, 74, .45); background: rgba(200, 161, 74, .04); }
.routes-k { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.routes-t { margin-top: 8px; font-size: .98rem; color: var(--ivory-2); }
.routes-cta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 18px; }
.routes .ticket { --stub: 50px; }
.routes .tk-main { padding: 0 16px 0 18px; }

/* Acquisition */
.acq-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.acq-grid > *, .offer-grid > * { min-width: 0; }
.steps { margin-top: 34px; border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps span { grid-row: span 2; font-family: var(--f-mono); font-size: .84rem; font-weight: 700; color: var(--brass); padding-top: 3px; }
.steps b { font-family: var(--f-display); font-weight: 400; font-size: 1.28rem; }
.steps em { font-style: normal; color: var(--ivory-2); font-size: .98rem; }

.price-ticket {
  display: grid;
  grid-template-columns: 1fr 52px;
  background: var(--ivory);
  color: var(--ebony);
  -webkit-mask:
    radial-gradient(circle 9px at calc(100% - var(--pt-stub, 52px)) 0, transparent 96%, #000 100%),
    radial-gradient(circle 9px at calc(100% - var(--pt-stub, 52px)) 100%, transparent 96%, #000 100%);
  -webkit-mask-composite: source-in;
          mask:
    radial-gradient(circle 9px at calc(100% - var(--pt-stub, 52px)) 0, transparent 96%, #000 100%),
    radial-gradient(circle 9px at calc(100% - var(--pt-stub, 52px)) 100%, transparent 96%, #000 100%);
          mask-composite: intersect;
}
.pt-body { padding: clamp(26px, 3.6vw, 40px); }
.pt-k { font-family: var(--f-mono); font-size: .78rem; text-transform: uppercase; color: #8a6a22; }
.pt-bin {
  display: inline-flex;
  align-items: baseline;
  gap: .2em;
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 5.4vw, 4.2rem);
  line-height: 1;
  color: var(--ebony);
  text-decoration: none;
}
.pt-bin span { background: linear-gradient(var(--ticket), var(--ticket)) 0 100% / 0 2px no-repeat; transition: background-size .45s ease; }
.pt-bin::after { content: "\2197"; font-size: .32em; color: var(--ticket); opacity: .6; transition: opacity .3s ease; }
.pt-bin:hover span, .pt-bin:focus-visible span { background-size: 100% 2px; }
.pt-bin:hover::after, .pt-bin:focus-visible::after { opacity: 1; }
.pt-mo { margin-top: 10px; font-family: var(--f-mono); font-size: .8rem; color: #5d5446; }
.pt-mo b { color: var(--ebony); }
.pt-cta { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 24px; }
.price-ticket .ticket { --tk-bg: rgba(15, 13, 11, .04); --tk-fg: var(--ebony); --tk-edge: rgba(15, 13, 11, .35); }
.price-ticket .ticket--hot { --tk-bg: var(--ebony); --tk-fg: var(--ivory); --tk-edge: rgba(239, 230, 212, .3); }
.price-ticket .ticket--hot:hover, .price-ticket .ticket--hot:focus-visible { background-color: #2a2219; }
.price-ticket .ticket:not(.ticket--hot):hover, .price-ticket .ticket:not(.ticket--hot):focus-visible { --tk-edge: var(--ebony); background-color: rgba(15, 13, 11, .08); }
.facts { margin: 26px 0 0; border-top: 1px solid rgba(15, 13, 11, .14); }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(15, 13, 11, .14); }
.facts dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; color: #6c6253; padding-top: 3px; }
.facts dd { margin: 0; font-size: .95rem; }
.pt-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-left: 2px dashed rgba(15, 13, 11, .28);
  font-family: var(--f-mono);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.pt-stub span { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #6c6253; }
.pt-stub b { font-size: .92rem; color: var(--ticket); }

/* Offer form */
.offer-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.form .full, .form .form-status, .form .form-foot { grid-column: 1 / -1; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.row { display: flex; flex-direction: column; gap: 8px; }
.row label { font-family: var(--f-mono); font-size: .74rem; text-transform: uppercase; color: var(--ivory-2); }
.row label .opt { text-transform: none; color: var(--mute); }
.row select {
  width: 100%;
  padding: 12px 28px 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c8a14a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 6px center / 12px 8px;
  color: var(--ivory);
  font: inherit;
  font-size: 1.02rem;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}
.row select option { background: var(--ebony-2); color: var(--ivory); }
.row select:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.form [hidden] { display: none; }
.row input, .row textarea {
  width: 100%;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  font-size: 1.02rem;
  transition: border-color .25s ease;
}
.row textarea { resize: vertical; min-height: 110px; }
.row input:focus, .row textarea:focus { outline: none; border-bottom-color: var(--brass); box-shadow: 0 1px 0 var(--brass); }
.row-note { margin-top: -8px; font-family: var(--f-mono); font-size: .74rem; color: var(--mute); }
.row-note b { color: var(--ivory); }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; font-size: .95rem; border-left: 2px solid var(--ledger); background: rgba(47, 107, 79, .14); }
.form-status.err { border-left-color: var(--ticket); background: rgba(184, 52, 43, .1); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 6px; }
.form-note { font-size: .92rem; color: var(--ivory-2); }
.form-note a { color: var(--ivory); text-decoration-color: var(--brass); text-underline-offset: 3px; }

/* Footer */
.foot { padding: 64px var(--gutter) 70px; text-align: center; border-top: 1px solid var(--line); background: #0a0907; color: var(--ivory-2); }
.foot-mark { font-family: var(--f-display); font-size: 1.8rem; color: var(--ivory); }
.foot-mark i { font-style: normal; font-family: var(--f-mono); font-size: .6em; color: var(--brass); }
.foot-creed { margin-top: 8px; font-family: var(--f-display); font-size: 1.02rem; }
.foot-meta { margin-top: 14px; font-family: var(--f-mono); font-size: .74rem; color: var(--mute); }
.foot-meta a { color: var(--ivory); text-decoration: none; transition: color .3s ease; }
.foot-meta a:hover, .foot-meta a:focus-visible { color: var(--brass-hi); }
.foot-ug { margin-top: 6px; font-family: var(--f-mono); font-size: .74rem; color: var(--mute); }
.foot-ug i { font-style: italic; font-weight: 700; color: var(--brass-hi); }

/* Promotion back-to-top */
.promo-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 28px);
  bottom: clamp(14px, 2.4vw, 28px);
  z-index: 40;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ebony-3);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 26px rgba(0, 0, 0, .5);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .4s ease, transform .4s var(--ease), box-shadow .3s ease;
}
.promo-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.promo-top:hover, .promo-top:focus-visible { box-shadow: 0 0 0 1px var(--brass), 0 10px 30px rgba(0, 0, 0, .6); }
.promo-top svg { width: 100%; height: 100%; overflow: visible; }
.pt-file rect { fill: rgba(239, 230, 212, .1); }
.pt-file rect.on { fill: rgba(200, 161, 74, .45); }
.pt-piece { transition: transform .25s linear; }
.pt-pawn { fill: var(--ivory); }
.pt-crown { fill: var(--brass-hi); opacity: 0; }
.promo-top.is-crowned .pt-pawn { opacity: 0; }
.promo-top.is-crowned .pt-crown { opacity: 1; }

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

/* ─── Responsive ─── */
@media (max-width: 999px) {
  .hero { padding-top: var(--board-bottom, calc(var(--nav-h) + 40vw)); align-items: flex-start; }
}
@media (max-width: 900px) {
  .acq-grid, .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-board, .dg-cap { max-width: 400px; margin-left: auto; margin-right: auto; }
  .dg-cap { justify-content: center; }
  .senses { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .foot { padding-bottom: 100px; }
  .hero { padding-top: var(--board-bottom, calc(var(--nav-h) + 52vw)); align-items: flex-start; }
  .ledger { gap: 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-k { --hk-h: 31px; --hk-c: 6px; gap: 4px; }
  .hero-k > span { padding: 0 11px; }
  .hero-k > .hk-foil { font-size: .66rem; letter-spacing: .18em; padding: 0 13px; }
  .hk-name { font-size: .7rem; letter-spacing: .03em; }
  .hero-cta { flex-direction: column; align-items: stretch; width: min(340px, 100%); }
  .ticket .tk-main { flex: 1; justify-content: center; }
  .ledger { right: auto; left: var(--gutter); bottom: 16px; }
  .ledger p:first-child { display: none; }
  .hero-hint { display: none; }
  .form { grid-template-columns: 1fr; }
  .pt-cta, .routes-cta { flex-direction: column; }
  .routes-cta .ticket { width: 100%; }
  .routes { padding: 18px 16px 20px; }
  .sheet-head, .sheet-row { grid-template-columns: 30px 52px minmax(0, 1fr); gap: 0 12px; }
  .sheet-row::before { left: -10px; }
  .price-ticket { --pt-stub: 40px; grid-template-columns: minmax(0, 1fr) 40px; }
  .pt-body { padding: 22px 18px; }
  .pt-cta .ticket { width: 100%; }
  .facts div, .sense dl div { grid-template-columns: 82px 1fr; }
  .brand { font-size: 1.12rem; }
  .ticket--sm .tk-main { padding: 0 10px 0 12px; }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero { padding-bottom: 70px; }
  .wm-pawn { font-size: clamp(3.6rem, 8vw, 6.4rem); }
  .claim { margin-top: 10px; }
  .hero-cta { margin-top: 14px; }
}

@media (max-height: 820px) and (min-width: 901px) {
  .sheet-grid { margin-top: 28px; }
  .sheet-row { padding: 11px 0; }
  .sr-use p { font-size: .9rem; line-height: 1.5; }
  .dg-board { max-width: min(440px, calc(100vh - 330px)); }
}

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-k > span, .hk-foil::after { animation: none; }
  .tk-stub, .pw-board, .promo-top, .pt-piece, .pt-bin span, .dg-pc, .dg-arrow, .dg-head, .dg-mark, .dg-from, .sheet-row::before { transition: none; }
}

/* Smallest phones: the nav ticket drops its stub so the bar fits. */
@media (max-width: 360px) {
  .nav .ticket { --stub: 0px; }
  .nav .tk-stub { display: none; }
  .hk-mark { display: none !important; }
}
@media (max-width: 400px) {
  .pt-cta .tk-main { flex: 1; justify-content: center; padding: 8px 12px; white-space: normal; text-align: center; }
}
