/* ============================================================
   THE TAYLOR KANE GROUP — Design System
   Luxury · Technology · Agent-First
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Surfaces — obsidian with a warm tint */
  --ink-900: #070708;
  --ink-850: #0a0a0c;
  --ink-800: #0e0e10;
  --ink-750: #131316;
  --ink-700: #17171b;
  --ink-600: #1e1e23;
  --ink-500: #2a2a31;

  /* Champagne gold — the single accent */
  --gold-100: #F7EDD2;
  --gold-200: #EFDFB4;
  --gold-300: #E3CB8C;
  --gold-400: #D9BE6E;   /* primary brand gold (ink/UI) */
  --gold-500: #C2A253;
  --gold-600: #B08A2C;   /* validated chart mark */
  --gold-700: #8A6C22;
  --gold-800: #5C4816;

  /* Ink */
  --text-1: #F5F3EF;
  --text-2: #B6B3AC;
  --text-3: #8B8882;
  --text-4: #5C5A56;

  /* Lines */
  --line-1: rgba(245,243,239,0.08);
  --line-2: rgba(245,243,239,0.14);
  --line-gold: rgba(217,190,110,0.28);

  /* Data-viz roles (validated: dark surface #0E0E10) */
  --series-accent: #B08A2C;   /* Epique / TKG      */
  --series-muted:  #5A616B;   /* current brokerage */
  --viz-grid: #2c2c2a;
  --viz-axis: #383835;
  --viz-good: #0ca30c;

  /* Type */
  /* One family throughout — matching the TKG logo, the billboards and Epique's
     own identity, none of which use a serif. Hierarchy comes from weight and
     colour, not from a second typeface. */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Figures live in the sans, never the display serif. A high-contrast serif
     puts hairline strokes on a dark ground — the '$' and small units vanish. */
  --font-num: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.76rem + 0.1vw, 0.84rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2:  clamp(1.35rem, 1.22rem + 0.6vw, 1.72rem);
  --step-3:  clamp(1.7rem, 1.45rem + 1.15vw, 2.4rem);
  --step-4:  clamp(2.1rem, 1.68rem + 2vw, 3.35rem);
  --step-5:  clamp(2.5rem, 1.85rem + 3.2vw, 4.7rem);

  /* Space */
  --sp-1: 0.5rem; --sp-2: 0.875rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4rem;     --sp-7: 4.75rem;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
  --nav-h: 74px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  background: var(--ink-900);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Decorative glows bleed past the viewport edge. `clip` contains them WITHOUT
   creating a scroll container — so position:sticky (calculator panel) still works.
   `hidden` would break sticky; that's why it isn't used here. */
html, body { overflow-x: clip; }
@supports not (overflow-x: clip) {
  body { overflow-x: hidden; }
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* Inline icons: never allowed to stretch inside a flex container */
.ico { width: 1.05em; height: 1.05em; flex: 0 0 auto; display: inline-block; vertical-align: -0.15em; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.07;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); letter-spacing: -0.038em; }
h2 { font-size: var(--step-4); letter-spacing: -0.034em; }
h3 { font-size: var(--step-2); letter-spacing: -0.026em; }
h4 { font-size: var(--step-1); letter-spacing: -0.018em; }

.serif-italic {          /* legacy name — now: accent by colour, not by italics */
  font-style: normal; color: var(--gold-300); font-weight: 600;
}
.gold { color: var(--gold-400); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  display: flex; align-items: center; gap: 0.75rem;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--gold-500), transparent);
}

.lede { font-size: var(--step-1); color: var(--text-2); line-height: 1.6; max-width: 62ch; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 860px); margin-inline: auto; }
section { padding-block: var(--sp-7); position: relative; }
.section-head { max-width: 720px; margin-bottom: var(--sp-5); display: grid; gap: var(--sp-2); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.grid { display: grid; gap: var(--sp-3); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* Fixed-column variants: auto-fit reflows 6 cards into a ragged 4+2. */
.g3-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g3-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .g3-fixed, .g2-fixed { grid-template-columns: 1fr; } }
/* A card wrapped in a .reveal div must still fill the grid row's height. */
.grid > .reveal { display: flex; }
.grid > .reveal > .card,
.grid > .reveal > a.card { width: 100%; }
.grid > * > .card, .grid > .card { display: flex; flex-direction: column; }
.grid .card > .push, .grid .card > .flex.mt-3:last-child { margin-top: auto; }
.stack { display: grid; gap: var(--sp-3); }
.center { text-align: center; }

/* ---------- 5. TEXTURE & ATMOSPHERE ---------- */
.grain::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: 0.5; z-index: 0;
}
.glow-gold { background: radial-gradient(circle, rgba(217,190,110,0.20), transparent 70%); }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7,7,8,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line-1); background: rgba(7,7,8,0.92); }
.nav__inner { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; display: flex; align-items: center; gap: var(--sp-4); }
.nav__brand { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.nav__brand img { height: 30px; width: auto; }
.nav__brand-text { font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav__links a {
  font-size: 0.86rem; color: var(--text-2); position: relative;
  transition: color .2s; white-space: nowrap;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold-400); transition: width .28s var(--ease);
}
.nav__links a:hover { color: var(--text-1); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--gold-300); }
.nav__cta { display: flex; gap: 0.6rem; align-items: center; }
.nav__burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 10px; padding: 0.5rem 0.6rem; cursor: pointer;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text-1); margin: 3.5px 0; transition: .3s; }
.nav[data-open="true"] .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav[data-open="true"] .nav__burger span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__inner { gap: 0.75rem; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: block; order: 3; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column;
    background: rgba(10,10,12,0.98); backdrop-filter: blur(20px);
    padding: var(--sp-4) var(--sp-3); gap: var(--sp-3); align-items: flex-start;
    border-bottom: 1px solid var(--line-1);
    transform: translateY(-120%); transition: transform .38s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto; margin-left: 0;
  }
  .nav[data-open="true"] .nav__links { transform: translateY(0); }
  .nav__links a { font-size: 1.05rem; }
  .nav__cta .btn--ghost { display: none; }
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.85rem 1.5rem; border-radius: 100px; border: 1px solid var(--line-2);
  background: var(--btn-bg); color: var(--text-1);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s, background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  color: #16120a; border-color: transparent; font-weight: 600;
  box-shadow: 0 4px 24px rgba(217,190,110,0.18);
}
.btn--gold:hover { box-shadow: 0 8px 34px rgba(217,190,110,0.32); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.42), transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--gold:hover::after { transform: translateX(120%); }

.btn--outline { border-color: var(--line-gold); color: var(--gold-200); }
.btn--outline:hover { border-color: var(--gold-400); background: rgba(217,190,110,0.07); }
.btn--ghost { border-color: var(--line-2); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--line-2); color: var(--text-1); background: rgba(255,255,255,0.04); }
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.82rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- 8. CARDS ---------- */
.card {
  background: linear-gradient(165deg, var(--ink-750), var(--ink-800));
  border: 1px solid var(--line-1); border-radius: var(--radius);
  padding: var(--sp-3); position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s var(--ease);
}
.card--hover:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.card--feature { padding: var(--sp-4); }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(217,190,110,0.09); border: 1px solid var(--line-gold);
  color: var(--gold-300); margin-bottom: var(--sp-2); flex-shrink: 0;
}
.card__icon svg { width: 20px; height: 20px; }
.card h3, .card h4 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); font-size: 0.93rem; }

.card--glow::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0; transition: opacity .35s;
}
.card--glow:hover::before { opacity: 1; }

/* ---------- 9. STAT TILES ---------- */
.stat {
  background: linear-gradient(165deg, var(--ink-750), var(--ink-850));
  border: 1px solid var(--line-1); border-radius: var(--radius);
  padding: var(--sp-3); text-align: center; position: relative;
}
.stat--accent { border-color: var(--line-gold); background: linear-gradient(165deg, rgba(217,190,110,0.07), var(--ink-850)); }
.stat__value {
  font-family: var(--font-num); font-weight: 600; letter-spacing: -0.025em;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem);
  line-height: 1.02; color: var(--gold-300); font-variant-numeric: tabular-nums;
  display: block; margin-bottom: 0.4rem;
}
.stat__label { font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.04em; }
.stat__tag {
  position: absolute; top: 10px; right: 10px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-200); background: rgba(217,190,110,0.13);
  border: 1px solid var(--line-gold); border-radius: 100px; padding: 0.22rem 0.55rem;
}

/* ---------- 10. PILL / BADGE ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-200); background: rgba(217,190,110,0.09);
  border: 1px solid var(--line-gold); border-radius: 100px; padding: 0.35rem 0.85rem;
}
.pill--dot::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); }
/* Over a photograph the 9%-opacity wash is invisible — needs its own opaque surface. */
.pill--onimage {
  background: rgba(7,7,8,0.86); border-color: rgba(217,190,110,0.55);
  color: var(--gold-200); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- 11. TABLES ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-1); border-radius: var(--radius); background: var(--ink-800); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
thead th {
  text-align: left; padding: 1rem 1.1rem; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--line-2); background: var(--ink-750); white-space: nowrap;
}
tbody td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--line-1); color: var(--text-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.018); }
td.num, th.num { font-variant-numeric: tabular-nums; }
.col-accent { background: rgba(217,190,110,0.045); color: var(--text-1) !important; font-weight: 500; }
thead th.col-accent { background: rgba(217,190,110,0.1); color: var(--gold-200); }
.check { color: var(--gold-400); }
.cross { color: var(--text-3); }

/* ---------- 12. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line-1); }
.acc__item { border-bottom: 1px solid var(--line-1); }
.acc__btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 1rem; text-align: left;
  padding: 1.35rem 0; font-size: 1.02rem; font-weight: 500; color: var(--text-1);
  transition: color .2s;
}
.acc__btn:hover { color: var(--gold-300); }
.acc__btn::after {
  content: ''; margin-left: auto; flex-shrink: 0; width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold-400); border-bottom: 1.5px solid var(--gold-400);
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease);
}
.acc__item[data-open="true"] .acc__btn::after { transform: rotate(-135deg) translateY(-2px); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease); }
.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { color: var(--text-2); padding-bottom: 1.35rem; max-width: 74ch; }
.acc__cat { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-500); display: block; margin-bottom: 0.3rem; }

/* ---------- 13. FORM CONTROLS ---------- */
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); }
.input, select.input {
  background: var(--ink-850); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0.8rem 0.95rem; color: var(--text-1); width: 100%;
  font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s;
}
.input:hover { border-color: var(--line-gold); }
.input:focus { outline: none; border-color: var(--gold-400); background: var(--ink-800); }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23D9BE6E' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem;
}
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-prefix .input { padding-left: 1.9rem; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px;
  background: var(--ink-500); border-radius: 3px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  cursor: pointer; box-shadow: 0 0 0 4px rgba(217,190,110,0.14);
  transition: box-shadow .2s, transform .2s;
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 7px rgba(217,190,110,0.2); transform: scale(1.08); }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); cursor: pointer;
}

/* Segmented control */
.seg { display: inline-flex; background: var(--ink-850); border: 1px solid var(--line-2); border-radius: 100px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button {
  background: none; border: none; cursor: pointer; padding: 0.5rem 1rem;
  border-radius: 100px; font-size: 0.82rem; color: var(--text-3); transition: .22s;
}
.seg button:hover { color: var(--text-1); }
.seg button[aria-pressed="true"] { background: rgba(217,190,110,0.15); color: var(--gold-200); font-weight: 500; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  background: var(--ink-750); border: 1px solid var(--line-2); border-radius: 100px;
  padding: 0.45rem 0.95rem; font-size: 0.82rem; color: var(--text-2); cursor: pointer; transition: .22s;
}
.chip:hover { border-color: var(--line-gold); color: var(--text-1); }
.chip[aria-pressed="true"] { background: rgba(217,190,110,0.13); border-color: var(--gold-500); color: var(--gold-200); }

/* ---------- 14. MOTION ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 15. FOOTER ---------- */
.footer { border-top: 1px solid var(--line-1); background: var(--ink-850); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h5 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 1rem; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--text-2); font-size: 0.88rem; transition: color .2s; }
.footer a:hover { color: var(--gold-300); }
.footer__bottom {
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--line-1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-3);
}
.footer__disclaimer { font-size: 0.73rem; color: var(--text-3); line-height: 1.6; margin-top: var(--sp-3); max-width: 90ch; }

/* ---------- 16. STICKY CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  background: rgba(10,10,12,0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-1); padding: 0.7rem 1rem;
  display: none; gap: 0.6rem; align-items: center;
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
@media (max-width: 780px) { .sticky-cta { display: flex; } body { padding-bottom: 68px; } }

/* ---------- 17. UTILITIES ---------- */
.hr-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--line-gold), transparent); border: 0; margin-block: var(--sp-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); }
.flex { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }
.flex-center { justify-content: center; }
.tight { max-width: 68ch; }
.bg-750 { background: var(--ink-850); }
.rounded { border-radius: var(--radius-lg); overflow: hidden; }
.bordered { border: 1px solid var(--line-1); }

/* ============================================================
   18. BOLD / DATA-LED COMPONENTS
   ============================================================ */

/* ---- Bento grid: varied card sizes so the eye has rhythm ---- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); }
.bento > * { grid-column: span 2; }
.b-half { grid-column: span 3; }
.b-wide { grid-column: span 4; }
.b-full { grid-column: span 6; }
.b-tall { grid-row: span 2; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento > * { grid-column: span 2; }
  .b-wide, .b-full { grid-column: span 4; }
  .b-tall { grid-row: auto; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .b-half, .b-wide, .b-full { grid-column: span 1; }
}

/* ---- Stat-forward card: the figure leads, not an icon ---- */
.scard {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, var(--ink-750), var(--ink-850));
  border: 1px solid var(--line-1); border-radius: var(--radius);
  padding: var(--sp-3); display: flex; flex-direction: column;
  transition: border-color .3s, transform .35s var(--ease);
}
.scard:hover { border-color: var(--line-gold); transform: translateY(-3px); }
.scard__fig {
  font-family: var(--font-num); font-weight: 600;
  font-size: clamp(2.2rem, 1.5rem + 2.7vw, 3.7rem); line-height: 1;
  letter-spacing: -0.03em; color: var(--gold-300);
  font-variant-numeric: tabular-nums; display: block; margin-bottom: .1em;
}
.scard__fig sup { font-size: .38em; vertical-align: super; letter-spacing: 0; }
.scard__unit {
  font-size: .34em; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-400); margin-left: .06em;
}
.scard__lab {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); margin-bottom: .9rem;
}
.scard p { color: var(--text-2); font-size: .92rem; }
.scard__ghost {
  position: absolute; right: -0.06em; bottom: -0.34em; z-index: 0;
  font-family: var(--font-num); font-weight: 700; font-size: 11rem; line-height: 1;
  color: rgba(217,190,110,0.045); pointer-events: none; user-select: none;
}
.scard > * { position: relative; z-index: 1; }
.scard--accent {
  border-color: var(--line-gold);
  background: linear-gradient(158deg, rgba(217,190,110,.09), var(--ink-850) 62%);
}
.scard--dark { background: linear-gradient(158deg, var(--ink-900), var(--ink-850)); }

/* ---- Proportion bars: where the money actually goes ---- */
.barviz { display: grid; gap: 1.15rem; }
.barrow { display: grid; grid-template-columns: 205px 1fr; gap: 1.1rem; align-items: center; }
@media (max-width: 640px) { .barrow { grid-template-columns: 1fr; gap: .45rem; } }
.barrow__name { font-size: .84rem; color: var(--text-2); line-height: 1.35; }
.barrow__name b { display: block; color: var(--text-1); font-weight: 500; }
.barrow__paid { display: block; font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.bartrack { display: flex; gap: 2px; height: 38px; border-radius: 7px; overflow: hidden; }
.barseg {
  display: flex; align-items: center; justify-content: center; padding: 0 .5rem; min-width: 0;
  font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap;
  overflow: hidden; transition: filter .25s;
}
.barseg--keep { justify-content: flex-start; padding-left: .7rem; }
.barseg--keep { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); color: #14100a; font-weight: 700; }
.barseg--pay  { background: var(--series-muted); color: #fff; }
.barseg--fee  { background: #3E434B; color: var(--text-2); }
.bartrack:hover .barseg { filter: brightness(1.08); }
.barlegend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-2); }
.barlegend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: .45rem; vertical-align: -1px; }

/* ---- Cap timeline: the moment your split stops ---- */
.captl { position: relative; padding-top: 2.2rem; }
.captl__track { display: flex; gap: 2px; height: 46px; border-radius: 8px; overflow: hidden; }
.captl__before { background: var(--series-muted); flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: .8rem; }
.captl__after { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); flex: 1; display: grid; place-items: center; color: #14100a; font-size: .8rem; font-weight: 700; }
.captl__mark { position: absolute; top: 0; transform: translateX(-50%); text-align: center; }
.captl__mark span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-400); white-space: nowrap; }
.captl__mark::after { content: ''; display: block; width: 1px; height: 12px; background: var(--gold-500); margin: .3rem auto 0; }

/* ---- Level ladder: revenue share depth ---- */
.ladder { display: grid; gap: .5rem; }
.lrung {
  display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border: 1px solid var(--line-1); border-radius: 10px;
  background: var(--ink-800); transition: border-color .25s, transform .25s var(--ease);
}
.lrung:hover { border-color: var(--line-gold); transform: translateX(4px); }
.lrung__n { font-family: var(--font-num); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--gold-400); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.lrung__t { font-size: .9rem; color: var(--text-2); }
.lrung__bar { width: 120px; height: 6px; border-radius: 3px; background: var(--ink-600); overflow: hidden; }
.lrung__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
@media (max-width: 560px) { .lrung { grid-template-columns: 42px 1fr; } .lrung__bar { display: none; } }

/* ---- Full-bleed band with oversized display type ---- */
.band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-850));
  border-block: 1px solid var(--line-gold);
}
.band__giant {
  font-family: var(--font-num); font-weight: 700; font-size: clamp(3.6rem, 1.9rem + 10vw, 11rem);
  line-height: .92; letter-spacing: -0.04em; color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}
.band__giant small { font-size: .22em; letter-spacing: .02em; color: var(--gold-500); display: block; margin-top: .6em; }
.rule-gold { height: 1px; background: linear-gradient(90deg, var(--gold-600), transparent); margin-block: var(--sp-3); border: 0; }

/* ---- Comparison pair: before / after ---- */
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--sp-3); align-items: stretch; }
@media (max-width: 760px) { .vs { grid-template-columns: 1fr; } .vs__sep { display: none; } }
.vs__sep { display: grid; place-items: center; font-weight: 600; font-size: 1.05rem; color: var(--gold-600); letter-spacing: .08em; text-transform: uppercase; }
