/* ============================================================
   KEINC — design system
   Near-black ink · ivory · gold punctuation · editorial serif
   ============================================================ */

:root {
  /* ink */
  --ink-900: #07080a;
  --ink-870: #0a0c10;
  --ink-840: #0e1116;
  --ink-800: #12161d;
  --ink-760: #181d26;

  /* ink lines */
  --line:        rgba(244,242,237,.085);
  --line-2:      rgba(244,242,237,.15);
  --line-gold:   rgba(227,176,75,.28);

  /* type */
  --ivory:   #f4f2ed;
  --ivory-2: #c2bfb6;
  --ivory-3: #8d8a82;
  --ivory-4: #6b685f;

  /* gold */
  --gold:      #e3b04b;
  --gold-hi:   #f3cd80;
  --gold-deep: #9d7220;
  --gold-wash: rgba(227,176,75,.1);

  /* data (validated categorical slots, dark steps) */
  --s1: #3987e5;
  --s2: #199e70;
  --s3: #d95926;

  /* fonts */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrics */
  --shell: 1180px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink-900);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  letter-spacing: -.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; color: var(--gold-hi); }

::selection { background: var(--gold); color: #1a1205; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; background: var(--gold); color: #140e02;
  padding: .6rem 1.1rem; border-radius: 0 0 10px 10px;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip:focus { top: 0; }

/* film grain — premium texture, very low opacity */
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── layout ─────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.shell--narrow { max-width: 820px; }

.band {
  position: relative;
  z-index: 2;
  padding-block: clamp(68px, 9vw, 128px);
  border-top: 1px solid var(--line);
}
.band--alt { background: linear-gradient(180deg, var(--ink-870), var(--ink-900) 70%); }

/* ─── type ───────────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 22px; height: 1px; margin-right: .75rem; vertical-align: .32em;
  background: linear-gradient(90deg, transparent, var(--gold));
}

h1 {
  margin: 0 0 1.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.65rem, 7.4vw, 5.05rem);
  line-height: 1.015;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 4.3vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -.018em;
  max-width: 21ch;
  text-wrap: balance;
}
.spot .h2, #situation-h { max-width: 26ch; }

h1 em, .h2 em {
  font-style: italic;
  color: var(--gold-hi);
}

.lede {
  margin: 0 0 2.1rem;
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.65vw, 1.19rem);
  line-height: 1.62;
  color: var(--ivory-2);
}
.sub {
  margin: 0 0 1.1rem;
  max-width: 62ch;
  color: var(--ivory-2);
  font-size: 1.02rem;
}
.nowrap { white-space: nowrap; }

/* ─── buttons ────────────────────────────────────────────── */

.btn {
  --bh: 1px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .86rem 1.5rem;
  border: var(--bh) solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .935rem; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease);
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #190f02;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 30px -12px rgba(227,176,75,.6);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 38px -12px rgba(227,176,75,.75); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--ivory);
  background: rgba(244,242,237,.015);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.btn--sm { padding: .55rem 1.05rem; font-size: .86rem; }
.btn--full { width: 100%; }

/* ─── nav ────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,10,.62);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(7,8,10,.86); }

.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .68rem; text-decoration: none; }
.brand__mark { color: var(--gold); display: grid; place-items: center; }
.brand__txt { display: grid; line-height: 1.1; }
.brand__txt strong {
  font-family: var(--sans);
  font-size: 1.07rem; font-weight: 600; letter-spacing: .13em;
}
.brand__txt small {
  font-family: var(--mono);
  font-size: .605rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-4); margin-top: 2px;
}

.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a:not(.btn) {
  padding: .5rem .7rem;
  font-size: .9rem; color: var(--ivory-2); text-decoration: none;
  border-radius: 8px;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ivory); background: rgba(244,242,237,.045); }
.nav__cta { margin-left: .5rem; }

.burger {
  display: none;
  width: 42px; height: 38px; padding: 0;
  background: none; border: 1px solid var(--line-2); border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block; width: 17px; height: 1.5px; margin: 3.5px auto;
  background: var(--ivory); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(2.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-2.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    display: grid; gap: .1rem;
    padding: .6rem clamp(16px,4vw,40px) 1.2rem;
    background: rgba(7,8,10,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    opacity: 0; pointer-events: none;
    transition: clip-path .32s var(--ease), opacity .22s var(--ease);
  }
  .nav__links.is-open { clip-path: inset(0 0 0 0); opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: .72rem .2rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: .9rem 0 0; }
}

/* ─── hero ───────────────────────────────────────────────── */

.hero {
  position: relative; z-index: 2;
  padding-block: clamp(76px, 13vw, 170px) clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__field {
  position: absolute; inset: -20% -10% 0;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 18% 6%, rgba(227,176,75,.13), transparent 68%),
    radial-gradient(48% 40% at 88% 22%, rgba(57,135,229,.1), transparent 70%),
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0/72px 72px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0/72px 72px;
  -webkit-mask-image: radial-gradient(78% 68% at 42% 18%, #000 12%, transparent 78%);
          mask-image: radial-gradient(78% 68% at 42% 18%, #000 12%, transparent 78%);
}
.hero__in { position: relative; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.9rem; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin: 0; padding: 1.3rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .715rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ivory-4);
}
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px rgba(227,176,75,.8);
}

/* ─── problems ───────────────────────────────────────────── */

.probs {
  display: grid; gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}
.prob {
  padding: clamp(1.5rem, 3vw, 2.3rem);
  background: var(--ink-870);
  transition: background-color .3s var(--ease);
}
.prob:hover { background: var(--ink-840); }
.prob__n {
  display: block; margin-bottom: 1.4rem;
  font-family: var(--mono); font-size: .73rem; letter-spacing: .14em;
  color: var(--gold-deep);
}
.prob h3 {
  margin: 0 0 .65rem;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.3;
}
.prob p { margin: 0; color: var(--ivory-3); font-size: .935rem; line-height: 1.62; }

/* ─── bento / cards ──────────────────────────────────────── */

.bento {
  display: grid;
  gap: 14px;
  margin-top: 3rem;
  grid-template-columns: repeat(6, 1fr);
}
.card {
  position: relative;
  grid-column: span 2;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background:
    linear-gradient(180deg, rgba(244,242,237,.035), rgba(244,242,237,0) 32%),
    var(--ink-840);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset-inline: 22%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card--lg   { grid-column: span 4; }
.card--wide { grid-column: span 4; }
.card--full { grid-column: span 6; }
.card--gold { border-color: var(--line-gold); background: linear-gradient(180deg, var(--gold-wash), rgba(227,176,75,0) 40%), var(--ink-840); }

.card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; }
.ico {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--gold);
  border: 1px solid var(--line-gold); border-radius: 11px;
  background: var(--gold-wash);
}
.card h3 {
  margin: 0;
  font-size: 1.16rem; font-weight: 600; letter-spacing: -.014em; line-height: 1.25;
}
.tag {
  display: block;
  font-family: var(--mono); font-size: .61rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-4); margin-top: 3px;
}
.card > p { margin: 0 0 1.15rem; color: var(--ivory-3); font-size: .94rem; line-height: 1.63; }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: .52rem; }
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .52rem 1.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .905rem; color: var(--ivory-2); line-height: 1.5;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .46em;
  width: 10px; height: 5.5px;
  border-left: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold);
  transform: rotate(-45deg) translate(1px, -1px);
  border-radius: 0 0 0 1px;
}

@media (max-width: 1000px) { .bento { grid-template-columns: repeat(4, 1fr); } .card--lg, .card--wide, .card--full { grid-column: span 4; } }
@media (max-width: 640px)  { .bento { grid-template-columns: 1fr; } .card, .card--lg, .card--wide, .card--full { grid-column: span 1; } }

/* ─── AEO spotlight ──────────────────────────────────────── */

.spot__in {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
}
.spot__grid {
  display: grid; gap: 1.1rem 1.8rem;
  margin-top: 2.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.spot__grid .mini:nth-child(3) { grid-column: 1 / -1; }
@media (max-width: 560px) { .spot__grid { grid-template-columns: 1fr; } }
.mini { padding-top: 1rem; border-top: 1px solid var(--line-gold); }
.mini h3 { margin: 0 0 .4rem; font-size: .96rem; font-weight: 600; letter-spacing: -.01em; }
.mini p { margin: 0; font-size: .875rem; line-height: 1.58; color: var(--ivory-3); }

/* answer mock */
.answer {
  position: sticky; top: 100px;
  padding: 1.1rem;
  background: var(--ink-840);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.9);
}
.answer__bar { display: flex; align-items: center; gap: 6px; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.answer__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-760); }
.answer__bar em {
  margin-left: auto;
  font-family: var(--mono); font-style: normal; font-size: .63rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-4);
}
.answer__q {
  margin: 1.1rem 0 1rem;
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.3;
  letter-spacing: -.01em;
}
.answer__a { padding: 1rem; background: var(--ink-900); border: 1px solid var(--line); border-radius: 12px; }
.answer__a > p { margin: 0 0 .85rem; font-size: .88rem; color: var(--ivory-3); }
.answer__a ol { margin: 0; padding-left: 1.15rem; display: grid; gap: .55rem; }
.answer__a li { font-size: .9rem; color: var(--ivory-2); }
.answer__a li::marker { color: var(--ivory-4); font-family: var(--mono); font-size: .8rem; }
.cite { border-bottom: 1px dashed var(--line-2); }
.cite--on {
  color: var(--gold-hi); font-weight: 600;
  border-bottom-color: var(--gold);
}
.answer__a li i {
  display: inline-block; margin-left: .5rem;
  font-family: var(--mono); font-style: normal; font-size: .58rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); padding: .14rem .4rem;
  border: 1px solid var(--line-gold); border-radius: 4px;
  background: var(--gold-wash);
}
.answer__foot {
  margin: .9rem 0 0;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ivory-4);
}

@media (max-width: 900px) {
  .spot__in { grid-template-columns: 1fr; }
  .answer { position: static; }
}

/* ─── report / dataviz ───────────────────────────────────── */

.report {
  --surface-1: var(--ink-840);
  margin-top: 3rem;
  padding: clamp(1.1rem, 2.6vw, 1.9rem);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 50px 100px -50px rgba(0,0,0,.95);
}
.report__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: 1.5rem; }
.report__title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.012em; }
.report__meta { margin: .22rem 0 0; font-family: var(--mono); font-size: .655rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-4); }
.chip {
  flex: none;
  padding: .32rem .72rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-2);
  border: 1px solid var(--line-2); border-radius: 999px;
}

.tiles {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.tile { padding: 1.05rem 1.1rem; background: var(--ink-870); }
.tile__k { margin: 0 0 .5rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-4); }
.tile__v {
  margin: 0;
  font-family: var(--serif); font-size: clamp(1.75rem, 3.4vw, 2.25rem);
  line-height: 1; letter-spacing: -.02em;
}
.tile__v span { font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; color: var(--ivory-4); margin-left: .3rem; }
.tile__d { margin: .5rem 0 0; font-size: .735rem; color: var(--ivory-3); }
.tile__d.up { color: #58c69a; }

.charts { display: grid; gap: 14px; margin-top: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.chart, .bars { margin: 0; padding: 1.05rem 1.1rem 1.1rem; background: var(--ink-870); border: 1px solid var(--line); border-radius: var(--r); }
.chart figcaption, .bars figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem; margin-bottom: 1rem; }
.chart__t { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 600; letter-spacing: -.01em; color: var(--ivory); }
.chart__sub { font-family: var(--mono); font-size: .615rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-4); }
.swatch { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.swatch.s1 { background: var(--s1); }
.swatch.s2 { background: var(--s2); }

.plot { position: relative; }
.plot svg { width: 100%; height: 118px; overflow: visible; }
.grid line { stroke: rgba(244,242,237,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ln.s1 { stroke: var(--s1); }
.ln.s2 { stroke: var(--s2); }
.pt { stroke: var(--ink-870); stroke-width: 2; }
.pt.s1 { fill: var(--s1); }
.pt.s2 { fill: var(--s2); }

/* drawn-in animation */
.ln { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.report.is-in .ln { animation: draw 1.5s var(--ease) forwards; }
.report.is-in .chart:nth-child(2) .ln { animation-delay: .18s; }
.pt { opacity: 0; }
.report.is-in .pt { animation: pop .4s var(--ease) 1.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop  { to { opacity: 1; } }

.chart__label { margin: .8rem 0 0; font-size: .76rem; color: var(--ivory-3); }
.chart__label b { font-family: var(--mono); font-size: .88rem; color: var(--ivory); font-weight: 500; }

/* hover readout */
.hits { position: absolute; inset: 0; display: flex; }
.hits button {
  flex: 1; border: 0; background: none; padding: 0; cursor: default;
  position: relative;
}
.hits button::after {
  content: ""; position: absolute; inset-block: 0; left: 50%; width: 1px;
  background: var(--line-2); opacity: 0; transition: opacity .12s;
}
.hits button:hover::after, .hits button:focus-visible::after { opacity: 1; }
.tip {
  position: absolute; z-index: 5;
  transform: translate(-50%, -112%);
  padding: .34rem .55rem;
  font-family: var(--mono); font-size: .66rem; white-space: nowrap;
  background: var(--ink-760); color: var(--ivory);
  border: 1px solid var(--line-2); border-radius: 6px;
  pointer-events: none; opacity: 0;
  transition: opacity .13s;
}
.tip.is-on { opacity: 1; }

/* bars (single series → one hue) */
.bars { margin-top: 14px; }
.bars ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .62rem; }
.bars li { display: grid; grid-template-columns: minmax(96px, 148px) 1fr auto; align-items: center; gap: .85rem; }
.bars__k { font-size: .8rem; color: var(--ivory-2); }
.bars__b { height: 11px; background: rgba(244,242,237,.045); border-radius: 4px; overflow: hidden; }
.bars__b i {
  display: block; height: 100%; width: 0;
  background: var(--s1);
  border-radius: 0 4px 4px 0;
  transition: width 1.1s var(--ease);
}
.report.is-in .bars__b i { width: var(--w); }
.bars__v { font-family: var(--mono); font-size: .8rem; color: var(--ivory); min-width: 2.4ch; text-align: right; }

@media (max-width: 420px) { .bars li { grid-template-columns: 1fr auto; } .bars__b { grid-column: 1 / -1; order: 3; } }

.viz-data { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.viz-data summary {
  cursor: pointer; list-style: none;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-4);
}
.viz-data summary::-webkit-details-marker { display: none; }
.viz-data summary::before { content: "+ "; color: var(--gold); }
.viz-data[open] summary::before { content: "− "; }
.viz-data summary:hover { color: var(--ivory-2); }
.viz-data__in { overflow-x: auto; margin-top: .9rem; }
.viz-data table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .74rem; }
.viz-data caption { text-align: left; color: var(--ivory-4); font-family: var(--sans); font-size: .76rem; padding-bottom: .6rem; }
.viz-data th, .viz-data td { padding: .34rem .7rem; border-bottom: 1px solid var(--line); text-align: right; }
.viz-data thead th { color: var(--ivory-4); font-weight: 500; text-transform: uppercase; font-size: .64rem; letter-spacing: .08em; }
.viz-data tbody th { text-align: left; color: var(--ivory-3); font-weight: 400; }
.viz-data td { color: var(--ivory); }

/* ─── process ────────────────────────────────────────────── */

.steps {
  display: grid; gap: 14px;
  margin: 3rem 0 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  counter-reset: s;
}
.step {
  position: relative;
  padding: 1.6rem 1.4rem 1.5rem;
  background: var(--ink-870);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.step::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(.18); transform-origin: left;
  transition: transform .5s var(--ease);
}
.step:hover::after { transform: scaleX(1); }
.step__n { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--gold); }
.step h3 { margin: .9rem 0 .5rem; font-size: 1.06rem; font-weight: 600; letter-spacing: -.012em; }
.step p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ivory-3); }

/* ─── tiers ──────────────────────────────────────────────── */

.tiers {
  display: grid; gap: 14px; margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}
.tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--ink-840);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.tier:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tier--on {
  border-color: var(--line-gold);
  background: linear-gradient(180deg, var(--gold-wash), rgba(227,176,75,0) 38%), var(--ink-840);
  box-shadow: 0 30px 70px -45px rgba(227,176,75,.5);
}
.tier__flag {
  position: absolute; top: -1px; right: 1.4rem;
  padding: .2rem .62rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
  color: #190f02; background: var(--gold);
  border-radius: 0 0 6px 6px;
}
.tier h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; letter-spacing: -.016em; }
.tier__for { margin: 0 0 1.25rem; font-size: .89rem; color: var(--ivory-3); line-height: 1.55; min-height: 2.8em; }
.tier .ticks { margin-bottom: 1.6rem; }
.tier .btn { margin-top: auto; }

/* ─── faq ────────────────────────────────────────────────── */

.faq { margin-top: 2.6rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer; list-style: none;
  font-size: 1.015rem; font-weight: 500; letter-spacing: -.012em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary::after {
  content: ""; flex: none;
  width: 11px; height: 11px;
  border-right: 1.6px solid var(--gold); border-bottom: 1.6px solid var(--gold);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details > div { padding: 0 0 1.3rem; }
.faq details p { margin: 0; max-width: 68ch; color: var(--ivory-3); font-size: .945rem; line-height: 1.68; }

/* ─── contact ────────────────────────────────────────────── */

.contact__in {
  display: grid; gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
}
.next { margin: 2rem 0 1.8rem; padding: 0 0 0 1.3rem; display: grid; gap: .8rem; }
.next li { font-size: .935rem; color: var(--ivory-3); line-height: 1.55; }
.next li::marker { color: var(--gold); font-family: var(--mono); font-size: .8rem; }
.next strong { color: var(--ivory); font-weight: 600; }
.contact__mail { margin: 0; font-size: .9rem; color: var(--ivory-4); }
.contact__mail a { color: var(--gold-hi); text-decoration: none; border-bottom: 1px solid var(--line-gold); }
.contact__mail a:hover { border-bottom-color: var(--gold); }

.form {
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: var(--ink-840);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.95);
}
.row { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }

.field { margin: 0 0 .9rem; border: 0; padding: 0; }
.field label, .field legend {
  display: block; margin-bottom: .4rem; padding: 0;
  font-family: var(--mono); font-size: .655rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ivory-3);
}
.field label span, .field legend span { color: var(--gold); }

.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  width: 100%;
  padding: .72rem .85rem;
  font-family: var(--sans); font-size: .95rem; color: var(--ivory);
  background: var(--ink-900);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--ivory-4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(227,176,75,.14);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #e66767; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { margin: 0; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 0; height: 0; }
.chips span {
  display: inline-block;
  padding: .42rem .78rem;
  font-family: var(--sans); font-size: .83rem; letter-spacing: -.004em;
  color: var(--ivory-2);
  border: 1px solid var(--line-2); border-radius: 999px;
  transition: all .18s var(--ease);
}
.chips label:hover span { border-color: var(--ivory-4); color: var(--ivory); }
.chips input:checked + span { background: var(--gold-wash); border-color: var(--gold); color: var(--gold-hi); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.consent { margin: 1.2rem 0 1.4rem; }
.consent label { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; cursor: pointer; }
.consent input { margin: .22rem 0 0; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.consent span { font-size: .815rem; line-height: 1.55; color: var(--ivory-3); }
.consent a { color: var(--gold-hi); }

.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.status { margin: .9rem 0 0; min-height: 1.3em; font-size: .87rem; }
.status.ok  { color: #58c69a; }
.status.bad { color: #e66767; }

@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } }

/* ─── footer ─────────────────────────────────────────────── */

.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--ink-870); padding-top: clamp(2.6rem, 5vw, 4rem); }
.foot__in { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); padding-bottom: 2.6rem; }
.foot__brand p { margin: 1rem 0 0; max-width: 42ch; font-size: .875rem; line-height: 1.6; color: var(--ivory-4); }
.foot__nav { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.foot__nav h2 {
  margin: 0 0 .85rem;
  font-family: var(--mono); font-size: .64rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
}
.foot__nav a {
  display: block; margin-bottom: .55rem;
  font-size: .885rem; color: var(--ivory-3); text-decoration: none;
  transition: color .18s var(--ease);
}
.foot__nav a:hover { color: var(--ivory); }
.foot__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}
.foot__bar p { margin: 0; font-family: var(--mono); font-size: .655rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-4); }

@media (max-width: 760px) { .foot__in { grid-template-columns: 1fr; } }

/* ─── legal page ─────────────────────────────────────────── */

.legal { padding-block: clamp(56px, 8vw, 96px); position: relative; z-index: 2; }
.legal h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); margin-bottom: .6rem; }
.legal .updated { margin: 0 0 2.6rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-4); }
.legal h2 { margin: 2.4rem 0 .7rem; font-size: 1.12rem; font-weight: 600; letter-spacing: -.014em; }
.legal p, .legal li { color: var(--ivory-2); font-size: .945rem; line-height: 1.7; }
.legal p { margin: 0 0 .9rem; max-width: 72ch; }
.legal ul { margin: 0 0 .9rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--gold-hi); }
.legal .back { display: inline-block; margin-top: 2.6rem; font-size: .9rem; color: var(--gold-hi); text-decoration: none; }
.legal .back:hover { text-decoration: underline; }

/* ─── reveal ─────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ln { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .pt { opacity: 1 !important; animation: none !important; }
  .bars__b i { transition: none; width: var(--w); }
  .btn:hover, .card:hover, .tier:hover { transform: none; }
  * { animation-duration: .001ms !important; }
}

@media print {
  .grain, .nav, .hero__field { display: none; }
  body { background: #fff; color: #000; }
}
