/* ==========================================================================
   Palais-Royal Exchange — design system
   Institutional minimalis. Ancien Regime restraint, Bloomberg discipline.
   Ink / parchment / single gilt accent. No gradient chrome, no purple.
   Every colour pair below was contrast-checked before it was written.
   ========================================================================== */

:root {
  /* ---- surface ramp (verified: line vs bg >= 1.6:1 for structure) ---- */
  --ink:        #0c0b09;
  --ink-2:      #14120f;
  --ink-3:      #1b1815;
  --line:       #3e382d;   /* 1.69:1 vs ink — visible rule */
  --line-2:     #4a4238;   /* 1.99:1 — emphasis rule */
  --line-3:     #5c5346;   /* 2.61:1 — axis / active */

  /* ---- text ramp (all >= 4.15:1 vs ink) ---- */
  --paper:      #e8e2d4;   /* 15.23:1 primary */
  --paper-2:    #ded7c6;   /* 13.72:1 */
  --dim:        #9b9284;   /*  6.41:1 secondary */
  --dim-2:      #8e8578;   /*  5.41:1 tertiary */
  --faint:      #7a7266;   /*  4.15:1 meta — floor, never go lower */

  /* ---- accent: gilt. one accent, used sparingly ---- */
  --gilt:       #c9a227;   /*  8.13:1 */
  --gilt-hi:    #e0c776;   /* 11.80:1 */
  --gilt-lo:    #8a6f1e;
  --gilt-wash:  rgba(201, 162, 39, .09);

  /* ---- market semantics ---- */
  --bid:        #8fb37f;   /*  8.36:1 */
  --ask:        #c8776c;   /*  5.91:1 */
  --bid-wash:   rgba(143, 179, 127, .13);
  --ask-wash:   rgba(200, 119, 108, .13);

  /* ---- type ---- */
  --serif: 'Cormorant Garamond', 'Times New Roman', Times, serif;
  --sans:  'Inter Tight', Inter, system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  /* type scale — 1.25 ratio, clamped for fluid response */
  --t-11: 11px;
  --t-12: 12px;
  --t-13: 13px;
  --t-14: 14px;
  --t-16: 16px;
  --t-20: clamp(18px, 1.4vw, 20px);
  --t-26: clamp(22px, 2vw, 26px);
  --t-34: clamp(26px, 2.9vw, 34px);
  --t-46: clamp(32px, 4.2vw, 46px);
  --t-hero: clamp(40px, 7.6vw, 104px);

  /* ---- metric ---- */
  --shell: 1320px;
  --gut: 24px;
  --mast: 58px;
  --r-s: 2px;
  --r: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: var(--t-14);
  line-height: 1.62;
  font-feature-settings: 'kern' 1, 'liga' 1, 'cv05' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain — 3% opacity, premium without being a "texture overlay" */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .032;
  background-image:
    repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--gilt); color: var(--ink); }

:focus-visible {
  outline: 1px solid var(--gilt);
  outline-offset: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

/* Every anchor target clears the sticky masthead */
[id] { scroll-margin-top: calc(var(--mast) + 20px); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.u    { color: var(--faint); font-size: .78em; margin-left: .28em; letter-spacing: .04em; }
.fr   { font-family: var(--serif); font-style: italic; }

/* ==========================================================================
   MASTHEAD
   ========================================================================== */
.mast {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--mast);
  background: rgba(12, 11, 9, .93);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

.mast-in {
  height: var(--mast);
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand { display: flex; align-items: baseline; gap: 10px; flex: none; }

.brand-mk {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  color: var(--gilt);
  letter-spacing: -.02em;
}

.brand-wm {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .015em;
  color: var(--paper);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  padding-left: 14px;
  border-left: 1px solid var(--line);
  flex: none;
}

.mast-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: var(--t-12);
  letter-spacing: .035em;
  text-transform: uppercase;
  flex: none;
}

.mast-nav a {
  color: var(--dim-2);
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.mast-nav a:hover { color: var(--paper); border-bottom-color: var(--gilt); }

.mast-cta {
  flex: none;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gilt);
  padding: 9px 15px;
  border-radius: var(--r-s);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.mast-cta:hover { background: var(--gilt-hi); transform: translateY(-1px); }

/* ---- ticker strip ---- */
.strip {
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  position: relative;
  z-index: 40;
  /* fade both edges so the marquee reads as intentional motion rather than
     text being clipped by the viewport */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 68px,
                      #000 calc(100% - 68px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 68px,
                      #000 calc(100% - 68px), transparent 100%);
}

.strip-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: slide 68s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  /* Stop the marquee, but do NOT switch to overflow-x:auto — that turns a
     4678px track into a manual horizontal scrollbar the user has to drag,
     and makes the duplicated second half reachable (every quote twice).
     Instead: kill the animation, drop the duplicate, and let the row wrap.
     `width: max-content` MUST be overridden or flex-wrap can never apply and
     the strip overflows the whole document. */
  .strip-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
    row-gap: 2px;
    justify-content: flex-start;
  }
  .strip-track .tk-dup { display: none; }
  .strip {
    overflow: visible;
    -webkit-mask-image: none;
            mask-image: none;
  }
}

.tk {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--t-11);
  white-space: nowrap;
}
.tk-s { color: var(--dim); letter-spacing: .1em; }
.tk-p { color: var(--paper-2); }
.tk-d.up { color: var(--bid); }
.tk-d.dn { color: var(--ask); }

/* ==========================================================================
   SECTION FURNITURE
   ========================================================================== */
.sec { padding: clamp(64px, 8vw, 128px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--gilt);
  flex: none;
}
.eyebrow .no { color: var(--faint); }

.sec-h {
  font-family: var(--serif);
  font-size: var(--t-46);
  line-height: 1.07;
  letter-spacing: -.018em;
  max-width: 20ch;
}
.sec-h em { font-style: italic; color: var(--gilt); }

.sec-p {
  color: var(--dim);
  font-size: var(--t-16);
  line-height: 1.72;
  max-width: 62ch;
  margin-top: 20px;
}
.sec-p strong { color: var(--paper); font-weight: 500; }

.sec-head { margin-bottom: clamp(34px, 4.4vw, 60px); }

.rule { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 5vw, 76px);
  overflow: hidden;
}

/* Colonnade backdrop — the arcade rendered as structure, not decoration */
.hero-col {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
}
.hero-col span {
  border-right: 1px solid rgba(201, 162, 39, .07);
  position: relative;
}
.hero-col span::after {
  content: '';
  position: absolute;
  top: 0; left: -1px; right: -1px;
  height: 44%;
  border: 1px solid rgba(201, 162, 39, .055);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 78px 78px 0 0;
}
.hero-col span:last-child { border-right: 0; }

.hero-in { position: relative; z-index: 2; }

.hero-h {
  font-family: var(--serif);
  font-size: var(--t-hero);
  line-height: .96;
  letter-spacing: -.032em;
  max-width: 17ch;
}
.hero-h .li { display: block; }
.hero-h em { font-style: italic; color: var(--gilt); }
.hero-h .dim { color: var(--dim-2); }

.hero-lede {
  margin-top: 30px;
  max-width: 60ch;
  color: var(--dim);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.74;
}
.hero-lede strong { color: var(--paper); font-weight: 500; }

.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: var(--t-12);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 13px 20px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-s);
  color: var(--paper);
  transition: border-color .25s var(--ease), color .25s var(--ease),
              background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { border-color: var(--gilt); color: var(--gilt-hi); transform: translateY(-1px); }
.btn .ar { transition: transform .25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

.btn-p {
  background: var(--gilt);
  border-color: var(--gilt);
  color: var(--ink);
  font-weight: 500;
}
.btn-p:hover { background: var(--gilt-hi); border-color: var(--gilt-hi); color: var(--ink); }

/* Hero stat band */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(46px, 5.6vw, 82px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hstat {
  padding: 22px 24px 20px 0;
  border-right: 1px solid var(--line);
}
.hstat:last-child { border-right: 0; }
.hstat-k {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.hstat-v {
  font-family: var(--mono);
  font-size: var(--t-26);
  color: var(--paper);
  margin-top: 10px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.hstat-n { font-size: var(--t-12); color: var(--dim-2); margin-top: 6px; }

.hero-note {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .06em;
  color: var(--faint);
}

/* ==========================================================================
   ARCADES — the three venues
   ========================================================================== */
.arc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}

.arc {
  padding: 30px 26px 26px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.arc:last-child { border-right: 0; }
.arc:hover { background: var(--ink-2); }

/* the arch — drawn, not an image */
.arc-arch {
  height: 52px;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 46px 46px 0 0;
  margin-bottom: 22px;
  position: relative;
  transition: border-color .3s var(--ease);
}
.arc:hover .arc-arch { border-color: var(--gilt-lo); }
.arc-arch::after {
  content: attr(data-yr);
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .16em;
  color: var(--faint);
}

.arc-name {
  font-family: var(--serif);
  font-size: var(--t-26);
  letter-spacing: -.014em;
  line-height: 1.16;
}
.arc-kind {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gilt);
  margin-top: 8px;
}
.arc-note {
  color: var(--dim);
  font-size: var(--t-13);
  line-height: 1.68;
  margin-top: 14px;
  min-height: 4.6em;
}

.arc-share {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.arc-share-v {
  font-family: var(--mono);
  font-size: var(--t-34);
  color: var(--paper);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.arc-share-k {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  max-width: 12ch;
  line-height: 1.35;
}

.arc-bar {
  height: 2px;
  background: var(--line);
  margin-top: 12px;
  position: relative;
  overflow: hidden;
}
.arc-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gilt);
  width: 0;
  transition: width 1.1s var(--ease);
}

.arc-props {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.arc-props li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-12);
}
.arc-props li:last-child { border-bottom: 0; }
.arc-props b { color: var(--faint); font-weight: 400; letter-spacing: .04em; }
.arc-props span { font-family: var(--mono); color: var(--paper-2); text-align: right; }

/* ==========================================================================
   TERMINAL — book + depth + tape
   ========================================================================== */
.term {
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr) minmax(0, 300px);
}
.term-col { border-right: 1px solid var(--line); min-width: 0; }
.term-col:last-child { border-right: 0; }

.term-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.term-hd .tag { color: var(--faint); letter-spacing: .1em; }

/* ---- order book ladder ---- */
.book { padding: 6px 0; }
.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 54px;
  gap: 8px;
  padding: 3px 16px;
  font-family: var(--mono);
  font-size: var(--t-12);
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.book-row .bg {
  position: absolute;
  top: 1px; bottom: 1px; right: 0;
  width: 0;
  transition: width .5s var(--ease);
  z-index: 0;
}
.book-row.ask .bg { background: var(--ask-wash); }
.book-row.bid .bg { background: var(--bid-wash); }
.book-row > * { position: relative; z-index: 1; }
.book-row .px { font-weight: 500; }
.book-row.ask .px { color: var(--ask); }
.book-row.bid .px { color: var(--bid); }
.book-row .sz { color: var(--paper-2); text-align: right; }
.book-row .n  { color: var(--faint); text-align: right; font-size: var(--t-11); }
.book-row:hover { background: var(--ink-3); }

.book-mid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  margin: 6px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--ink-3);
}
.book-mid-p {
  font-family: var(--mono);
  font-size: var(--t-20);
  color: var(--gilt);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.book-mid-s {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .1em;
  color: var(--faint);
  text-transform: uppercase;
}

/* ---- chart panes ---- */
.pane { padding: 16px; }
.pane + .pane { border-top: 1px solid var(--line); }
.chart { width: 100%; display: block; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .08em;
  color: var(--dim-2);
  text-transform: uppercase;
}
.legend i {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 7px;
  vertical-align: 3px;
}
.legend .k-bid i { background: var(--bid); }
.legend .k-ask i { background: var(--ask); }
.legend .k-px  i { background: var(--gilt); }

/* ---- tape ---- */
.tape { max-height: 428px; overflow-y: auto; scrollbar-width: thin; }
.tape::-webkit-scrollbar { width: 6px; }
.tape::-webkit-scrollbar-thumb { background: var(--line-2); }
.tape-row {
  display: grid;
  grid-template-columns: 58px 1fr 62px 42px;
  gap: 6px;
  padding: 5px 16px;
  border-bottom: 1px solid rgba(62, 56, 45, .55);
  font-family: var(--mono);
  font-size: var(--t-11);
  font-variant-numeric: tabular-nums;
}
.tape-row .t { color: var(--faint); }
.tape-row .p.buy  { color: var(--bid); }
.tape-row .p.sell { color: var(--ask); }
.tape-row .s { color: var(--paper-2); text-align: right; }
.tape-row .v { color: var(--faint); text-align: right; letter-spacing: .06em; }

/* ==========================================================================
   ROUTER — the interactive proof
   ========================================================================== */
.route-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 0;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.route-l { padding: 30px 30px 34px; border-right: 1px solid var(--line); min-width: 0; }
.route-r { padding: 30px 26px; min-width: 0; }

.route-q {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.route-size {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}
.route-size-v {
  font-family: var(--mono);
  font-size: var(--t-46);
  letter-spacing: -.035em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.route-size-u {
  font-family: var(--mono);
  font-size: var(--t-13);
  letter-spacing: .1em;
  color: var(--gilt);
}

/* range input, restyled to look like an instrument */
.slider { margin-top: 26px; }
.slider input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  display: block;
}
.slider input[type=range]::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-2);
}
.slider input[type=range]::-moz-range-track {
  height: 2px;
  background: var(--line-2);
}
.slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px; height: 13px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gilt);
  border: 2px solid var(--ink);
  transition: transform .2s var(--ease);
}
.slider input[type=range]::-moz-range-thumb {
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--gilt);
  border: 2px solid var(--ink);
}
.slider input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.22); }

.slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--faint);
}

/* stacked allocation bar */
.alloc {
  margin-top: 30px;
  height: 34px;
  display: flex;
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.alloc span {
  height: 100%;
  transition: width .6s var(--ease);
  position: relative;
  min-width: 0;
}
.alloc .a-m { background: var(--gilt); }
.alloc .a-v { background: var(--line-3); }
.alloc .a-b { background: var(--bid); }

.alloc-key { margin-top: 16px; border-top: 1px solid var(--line); }
.alloc-key li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) 84px 62px;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-13);
}
.alloc-key i { width: 8px; height: 8px; display: block; }
.alloc-key .i-m { background: var(--gilt); }
.alloc-key .i-v { background: var(--line-3); }
.alloc-key .i-b { background: var(--bid); }
.alloc-key .nm { color: var(--paper-2); }
.alloc-key .nm small {
  display: block;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 2px;
}
.alloc-key .qty { font-family: var(--mono); color: var(--paper); text-align: right; font-variant-numeric: tabular-nums; }
.alloc-key .pc  { font-family: var(--mono); color: var(--gilt); text-align: right; font-variant-numeric: tabular-nums; }

/* result readout */
.read { border-top: 1px solid var(--line); }
.read-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.read-k {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
}
.read-v {
  font-family: var(--mono);
  font-size: var(--t-16);
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.read-v.good { color: var(--bid); }
.read-v.warn { color: var(--ask); }
.read-v.gilt { color: var(--gilt); }

.read-foot {
  margin-top: 18px;
  font-size: var(--t-12);
  color: var(--dim-2);
  line-height: 1.66;
}
.read-foot b { color: var(--paper); font-weight: 500; }

/* ==========================================================================
   LEDGER — historical timeline
   ========================================================================== */
.led { border-top: 1px solid var(--line); }
.led-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.led-row:hover { background: var(--ink-2); }
.led-yr {
  font-family: var(--mono);
  font-size: var(--t-16);
  color: var(--gilt);
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.led-tx { color: var(--dim); font-size: var(--t-14); line-height: 1.7; max-width: 76ch; }
.led-tx b { color: var(--paper); font-weight: 500; }

/* ==========================================================================
   CHARTER
   ========================================================================== */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}
.ch {
  padding: 26px 26px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.ch:nth-child(2n) { border-right: 0; }
.ch:nth-last-child(-n+2) { border-bottom: 0; }
.ch:hover { background: var(--ink-2); }
.ch-no {
  font-family: var(--serif);
  font-size: var(--t-20);
  color: var(--gilt);
  letter-spacing: .06em;
}
.ch-h {
  font-family: var(--serif);
  font-size: var(--t-20);
  margin-top: 8px;
  letter-spacing: -.01em;
  color: var(--paper);
}
.ch-p { color: var(--dim); font-size: var(--t-13); line-height: 1.7; margin-top: 10px; }

/* ==========================================================================
   FEE TABLE
   ========================================================================== */
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-13); }
.tbl thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 400;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.tbl tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--paper-2);
  vertical-align: top;
}
.tbl tbody tr:hover td { background: var(--ink-2); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl .g { color: var(--gilt); }
.tbl .muted { color: var(--dim-2); font-size: var(--t-12); }
.tbl-wrap { border: 1px solid var(--line); overflow-x: auto; }

/* ==========================================================================
   CLOSING BLOCK
   ========================================================================== */
.close-in {
  border: 1px solid var(--line);
  padding: clamp(38px, 5vw, 68px);
  text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(201,162,39,.055) 0%, transparent 62%),
    var(--ink-2);
}
.close-h {
  font-family: var(--serif);
  font-size: var(--t-46);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 26ch;
  margin: 0 auto;
}
.close-h em { font-style: italic; color: var(--gilt); }
.close-p { color: var(--dim); max-width: 56ch; margin: 20px auto 0; line-height: 1.72; }
.close-cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { border-top: 1px solid var(--line); padding: 54px 0 30px; }
.foot-in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.foot-brand .brand-mk { font-size: 34px; }
.foot-tag {
  color: var(--dim-2);
  font-size: var(--t-13);
  line-height: 1.68;
  max-width: 34ch;
  margin-top: 12px;
}
.foot-h {
  font-family: var(--mono);
  font-size: var(--t-11);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.foot-l li { margin-bottom: 9px; }
.foot-l a {
  color: var(--dim);
  font-size: var(--t-13);
  transition: color .22s var(--ease);
}
.foot-l a:hover { color: var(--gilt); }

.foot-bot {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  color: var(--faint);
  text-transform: uppercase;
}

.disc {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  font-size: var(--t-12);
  line-height: 1.66;
  color: var(--dim-2);
}
.disc b { color: var(--gilt); font-weight: 500; }

/* ==========================================================================
   REVEAL — visible by default, JS opts IN (per programmatic-visual-qa)
   ========================================================================== */
.rv { opacity: 1; transform: none; }
.js-rv .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-rv .rv.in { opacity: 1; transform: none; }
@media print {
  .rv, .js-rv .rv { opacity: 1 !important; transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .js-rv .rv { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .term { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
  .term-col.c-tape { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--line); }
  .tape { max-height: 300px; }
}

@media (max-width: 1024px) {
  .mast-nav { display: none; }
  .route-wrap { grid-template-columns: 1fr; }
  .route-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
}

@media (max-width: 900px) {
  .arc-grid { grid-template-columns: 1fr; }
  .arc { border-right: 0; border-bottom: 1px solid var(--line); }
  .arc:last-child { border-bottom: 0; }
  .arc-note { min-height: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hstat { border-bottom: 1px solid var(--line); padding-left: 0; }
  .hstat:nth-child(2n) { border-right: 0; }
  .hstat:nth-last-child(-n+2) { border-bottom: 0; }
  .chart-grid { grid-template-columns: 1fr; }
  .ch { border-right: 0; }
  .ch:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --gut: 18px; --mast: 54px; }
  .term { grid-template-columns: 1fr; }
  .term-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .term-col:last-child { border-bottom: 0; }
  .term-col.c-tape { border-top: 0; }
  .brand-sub { display: none; }
  .led-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-col { grid-template-columns: repeat(5, 1fr); }
  .alloc-key li { grid-template-columns: 10px minmax(0, 1fr) 72px 54px; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hstat { border-right: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .book-row { grid-template-columns: 1fr 1fr 40px; padding: 3px 12px; }
  .route-l, .route-r { padding: 22px 18px; }
  .close-in { padding: 30px 20px; }
}
