/* ============================================================
   THE EAR COMPANY, design system
   Warm, papery, editorial-scientific.
   ============================================================ */
:root{
  /* Surfaces */
  --page-bg:#f3f1ef;
  --surface:#ffffff;
  --surface-secondary:#f7f6f5;
  --surface-soft:#fafaf8;
  --surface-muted:#f0eeec;

  /* Borders, warm grey-taupe */
  --border:#e4e0dd;
  --border-light:#e5e2df;
  --border-warm:#c7c0ba;
  --border-warm-hover:#b8b0aa;
  --border-input:#d9d9d9;

  /* Text */
  --text-primary:#292c33;
  --text-secondary:#7e7872;
  --text-tertiary:#928c86;
  --text-nav:#4c525f;

  /* Brand accents */
  --brand:#8e9c77;
  --brand-hover:#7a8a66;
  --sage-deep:#487265;
  --olive:#677541;
  --lime-soft:#deecc7;
  --winner:#5e9281;

  /* Semantic tints */
  --teal:#89b3b4;  --teal-bg:#e8f4f4;
  --green:#aab788; --green-bg:#f4f7ef;
  --gold:#e6b800;  --gold-bg:#fdf8e8;
  --destructive:#e40014;

  /* Chart palette */
  --chart-1:#f05100;
  --chart-2:#009588;
  --chart-3:#104e64;
  --chart-4:#fcbb00;
  --chart-5:#f99c00;
  --chart-sage:#95ae8d;

  --radius:.625rem;
  --rail:60px;
  --topbar:57px;
  --col:1024px;

  --font-serif:"Newsreader","Source Serif 4",Tinos,"Times New Roman",Georgia,serif;
  --font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--page-bg);
  color:var(--text-primary);
  font:400 16px/1.55 var(--font-sans);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img,svg{max-width:100%}
a{color:inherit}

h1,h2,h3,h4{
  font-family:var(--font-serif);
  font-weight:500;
  color:var(--text-primary);
  margin:0;
}
h1{font-size:48px;line-height:1.2;letter-spacing:-.4px}
h2{font-size:36px;line-height:1.11}
h3{font-size:26px;line-height:1.15}
h4{font-size:20px;line-height:1.25}
p{margin:0}

.mono{font-variant-numeric:tabular-nums lining-nums}

/* ---------- Layout shell ---------- */
.rail{
  position:fixed;inset:0 auto 0 0;width:var(--rail);
  background:var(--page-bg);
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;align-items:center;
  padding:14px 0 18px;z-index:60;
}
.rail__mark{display:block;margin-bottom:26px;color:var(--text-primary)}
.rail__nav{display:flex;flex-direction:column;gap:22px;align-items:center}
.rail__btn{
  width:34px;height:34px;display:grid;place-items:center;
  border:0;background:transparent;border-radius:9px;
  color:var(--text-secondary);cursor:pointer;
  transition:background-color .12s,color .12s;
}
.rail__btn:hover{background:var(--surface-muted);color:var(--text-primary)}
.rail__btn[aria-current="true"]{background:var(--surface-muted);color:var(--text-primary)}
.rail__spacer{flex:1}
.rail__avatar{
  width:30px;height:30px;border-radius:50%;
  background:linear-gradient(150deg,var(--sage-deep),var(--brand));
  border:1px solid var(--border-warm);
}

.topbar{
  position:fixed;top:0;left:var(--rail);right:0;height:var(--topbar);
  background:var(--page-bg);
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;gap:24px;
  padding:0 28px;z-index:55;
}
.wordmark{
  font-family:var(--font-serif);font-size:21px;font-weight:600;
  letter-spacing:-.2px;text-decoration:none;white-space:nowrap;
}
.wordmark__by{
  font-family:var(--font-sans);font-size:12px;font-weight:400;
  color:var(--text-tertiary);margin-left:8px;letter-spacing:0;
}
.topbar__nav{margin-left:auto;display:flex;align-items:center;gap:22px}
.topbar__nav a{
  font-size:14px;font-weight:500;color:var(--text-nav);
  text-decoration:none;transition:color .12s;
}
.topbar__nav a:hover{color:var(--text-primary)}
.topbar__nav .topbar__cta{
  color:#fff;padding:8px 15px;margin-left:6px;font-weight:600;
}
.topbar__nav .topbar__cta:hover{color:#fff}
.locale{
  display:inline-flex;align-items:center;gap:6px;
  font-size:14px;font-weight:500;color:var(--text-nav);
}
.menu-btn{display:none;margin-left:auto;background:transparent;border:0;color:var(--text-nav);cursor:pointer;padding:6px}

main{
  margin-left:var(--rail);
  padding-top:var(--topbar);
}
.col{max-width:var(--col);margin:0 auto;padding:0 24px}
section{padding:88px 0}
section + section{padding-top:0}

.eyebrow{
  font-size:12px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;
  color:var(--text-tertiary);
}
.lede{font-size:16px;line-height:1.6;color:var(--text-secondary)}
.section-head{margin-bottom:36px}
.section-head .lede{margin-top:14px;max-width:62ch}
.section-head--center{text-align:center}
.section-head--center .lede{margin-left:auto;margin-right:auto}

/* ---------- Hero ---------- */
.hero{position:relative;text-align:center;padding:76px 0 60px;overflow:hidden}
.hero h1{margin:0 auto;max-width:16ch}
.hero__sub{margin:18px auto 0;max-width:60ch;font-size:16px;color:var(--text-secondary)}
.hero__meta{
  margin-top:14px;font-size:13px;color:var(--text-tertiary);
  display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;
}
.dot-sep{width:3px;height:3px;border-radius:50%;background:var(--border-warm);display:inline-block}

/* ---------- Branded dark hero ---------- */
.hero--dark{
  --ink:#1d2b26;
  background:linear-gradient(168deg,#243530 0%,#1d2b26 52%,#182420 100%);
  color:#eef0ea;text-align:left;
  padding:clamp(64px,10vw,120px) 0 clamp(72px,10vw,116px);
  margin-bottom:0;
}
.hero--compact{
  padding:clamp(48px,7vw,84px) 0 clamp(40px,5vw,60px);
}
.hero__glow{
  position:absolute;inset:-40% -10% auto auto;width:70%;height:120%;
  background:radial-gradient(60% 60% at 75% 20%,rgba(142,156,119,.28),transparent 70%);
  pointer-events:none;
}
.hero__inner{position:relative;max-width:920px}
.hero__kicker{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:.13em;
  text-transform:uppercase;color:#b6c3a6;
  padding:6px 12px;border:1px solid rgba(238,240,234,.16);border-radius:999px;
}
.hero__title{
  font-family:var(--font-serif);font-weight:500;color:#f4f5f0;
  font-size:clamp(38px,6.4vw,68px);line-height:1.04;letter-spacing:-.6px;
  margin:22px 0 0;
}
.hero__lead{
  margin:20px 0 0;max-width:56ch;font-size:clamp(16px,1.5vw,19px);
  line-height:1.62;color:#cdd3c6;
}
.hero__lead strong{color:#f4f5f0;font-weight:600}
.hero__proof{
  list-style:none;margin:30px 0 0;padding:0;
  display:flex;gap:26px;flex-wrap:wrap;
  font-size:13.5px;color:#9fac93;
}
.hero__proof li{position:relative;padding-left:20px}
.hero__proof li::before{
  content:"";position:absolute;left:0;top:6px;width:8px;height:8px;border-radius:50%;
  background:var(--brand);box-shadow:0 0 0 4px rgba(142,156,119,.18);
}
.hero__proof b{color:#e7eadf;font-weight:600}

/* ---------- Waitlist form ---------- */
.waitlist{
  margin:32px 0 0;display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  max-width:540px;
}
.waitlist--center{margin-left:auto;margin-right:auto;justify-content:center}
.waitlist__field{flex:1 1 260px;min-width:0}
.waitlist__field input{
  width:100%;height:52px;padding:0 18px;border-radius:12px;
  background:rgba(255,255,255,.06);border:1.5px solid rgba(238,240,234,.22);
  color:#f4f5f0;font:500 16px/1 var(--font-sans);
  transition:border-color .14s,background-color .14s,box-shadow .14s;
}
.waitlist__field input::placeholder{color:#8f9a85}
.waitlist__field input:focus{
  outline:none;border-color:var(--brand);background:rgba(255,255,255,.1);
  box-shadow:0 0 0 4px rgba(142,156,119,.18);
}
.waitlist--center .waitlist__field input{
  background:var(--surface);border-color:var(--border-warm);color:var(--text-primary);
}
.waitlist--center .waitlist__field input::placeholder{color:var(--text-tertiary)}
.waitlist__msg{
  flex-basis:100%;margin:2px 0 0;min-height:18px;
  font-size:13.5px;color:#b6c3a6;
}
.waitlist--center .waitlist__msg{color:var(--brand);text-align:center}
.waitlist.is-done .waitlist__field,.waitlist.is-done>.btn{display:none}
.waitlist.is-done .waitlist__msg{
  font-size:16px;font-weight:500;color:#f4f5f0;display:flex;align-items:center;gap:9px;
}
.waitlist--center.is-done .waitlist__msg{color:var(--sage-deep);justify-content:center}

.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;
}

/* ---------- Prototype showcase ---------- */
.showcase{padding-top:clamp(64px,8vw,96px)}
.showcase .stage3d{margin-top:40px}

/* ---------- Cream button (on dark) ---------- */
.btn--cream{background:#f3f1ef;border-color:#f3f1ef;color:#1d2b26;font-weight:600}
.btn--cream:hover{background:#fff;border-color:#fff}
.cta__alt{margin-top:20px;font-size:14px;color:var(--text-tertiary)}
.cta__alt a{color:var(--brand);font-weight:500;text-decoration:none}
.cta__alt a:hover{color:var(--brand-hover);text-decoration:underline}

/* ---------- Chips ---------- */
.chip-rows{margin-top:34px;display:flex;flex-direction:column;gap:12px;align-items:center}
.chip-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.chip{
  display:inline-flex;align-items:center;gap:8px;
  height:41px;padding:8px 14px 8px 8px;
  background:#eeedea;
  border:1.5px solid #d5d2cf;
  border-radius:12px;
  font:500 14px/1 var(--font-sans);
  color:var(--text-primary);
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  cursor:pointer;text-decoration:none;
  transition:transform .15s ease-out,box-shadow .15s,background-color .12s,border-color .12s;
}
.chip:hover{
  background:#e8e5e2;border-color:var(--border-warm-hover);
  transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.08);
}
.chip:active{background:#ddd9d5;transform:translateY(0)}
.chip__tile{
  width:22px;height:22px;border-radius:6px;flex:none;
  display:grid;place-items:center;font-size:12px;line-height:1;
}

/* ---------- Cards ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}

.feature{
  background:var(--surface-soft);
  border-radius:12px;padding:24px;text-align:center;
}
.feature__art{
  height:132px;border-radius:10px;margin-bottom:20px;
  display:grid;place-items:center;
  background:var(--surface-muted);
  border:1px solid var(--border-light);
}
.feature h4{margin-bottom:10px}
.feature p{font-size:15px;color:var(--text-secondary)}

/* ---------- Capability cards ---------- */
.caps{margin-top:24px}
.cap{
  text-align:left;padding:24px;
  border:1px solid var(--border);background:var(--surface);
  display:flex;flex-direction:column;
  transition:border-color .15s,transform .15s,box-shadow .15s;
}
.cap:hover{border-color:var(--border-warm);transform:translateY(-2px);box-shadow:0 6px 20px rgba(40,44,51,.06)}
.cap__top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.cap__ico{
  width:40px;height:40px;border-radius:11px;flex:none;
  display:grid;place-items:center;
}
.cap__top .badge{margin-left:auto}
.cap h4{margin-bottom:9px}
.cap p{font-size:14.5px;line-height:1.6}

/* ---------- Impact band ---------- */
.impactband{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;
  background:var(--border);border:1px solid var(--border);
  border-radius:16px;overflow:hidden;margin-top:4px;
}
.impactband__i{background:var(--surface-soft);padding:22px 22px 20px;display:flex;flex-direction:column}
.impactband__n{
  font-family:var(--font-serif);font-size:34px;font-weight:500;line-height:1;
  letter-spacing:-.5px;color:var(--text-primary);font-variant-numeric:tabular-nums lining-nums;
}
.impactband__n small{font-size:16px;font-weight:500;color:var(--text-tertiary);margin-left:2px}
.impactband__l{margin-top:11px;font-size:13px;line-height:1.5;color:var(--text-secondary)}
@media (max-width:900px){.impactband{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.impactband{grid-template-columns:1fr}}

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;padding:24px;
}
.panel__head{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px;
}
.panel__title{
  font-family:var(--font-serif);font-size:22px;font-weight:700;
  letter-spacing:-.22px;line-height:1.2;
}
.panel__ctrl{margin-left:auto;display:flex;align-items:center;gap:10px}

.stat{
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:20px;
}
.stat__n{
  font-family:var(--font-serif);font-size:38px;font-weight:500;
  line-height:1.05;letter-spacing:-.5px;display:block;
}
.stat__l{margin-top:10px;font-size:14px;color:var(--text-secondary);line-height:1.45}
.stat__src{margin-top:10px;font-size:12px;color:var(--text-tertiary)}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:8px 14px;border-radius:10px;
  background:var(--surface);border:1px solid var(--border);
  font:500 14px/1.4 var(--font-sans);color:var(--text-primary);
  text-decoration:none;cursor:pointer;
  transition:background-color .12s,border-color .12s;
}
.btn:hover{background:var(--surface-secondary);border-color:var(--border-warm)}
.btn--primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn--primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.btn--lg{padding:11px 18px;font-size:15px}

.select{
  display:inline-flex;align-items:center;gap:10px;height:48px;
  padding:0 16px;border-radius:12px;
  background:#eeedea;border:1.5px solid var(--border-warm);
  font:500 16px/1 var(--font-sans);color:var(--text-primary);
  cursor:pointer;min-width:216px;
}
.select span{flex:1;text-align:left}

/* ---------- Segmented toggle ---------- */
.seg{
  display:inline-flex;gap:2px;padding:4px;
  background:var(--surface-muted);border-radius:10px;
}
.seg button{
  border:0;background:transparent;border-radius:8px;
  padding:6px 13px;font:500 13px/1.4 var(--font-sans);
  color:var(--text-tertiary);cursor:pointer;
  transition:background-color .12s,color .12s,box-shadow .12s;
}
.seg button[aria-selected="true"]{
  background:var(--surface);color:var(--text-primary);
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}

/* ---------- Badges ---------- */
.badge{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 8px;border-radius:6px;
  font:500 12px/1.4 var(--font-sans);
}
.badge--teal{background:var(--teal-bg);color:#4f7f80}
.badge--green{background:var(--green-bg);color:#697a48}
.badge--gold{background:var(--gold-bg);color:#8a6f00}
.badge--muted{background:var(--surface-muted);color:var(--text-secondary)}

/* ---------- Tabs ---------- */
.tabs{display:flex;border-bottom:1px solid var(--border);margin-bottom:0}
.tabs button{
  flex:1;height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  border:1px solid transparent;border-bottom:0;background:transparent;
  border-radius:8px 8px 0 0;margin-bottom:-1px;
  font:400 16px/1 var(--font-sans);color:var(--text-secondary);cursor:pointer;
  transition:background-color .12s,color .12s,border-color .12s;
}
.tabs button svg{opacity:.6;transition:opacity .12s}
.tabs button[aria-selected="true"]{
  background:var(--surface-secondary);
  border-color:#d3cdc8;border-bottom-color:var(--surface-secondary);
  color:var(--text-primary);font-weight:500;
}
.tabs button[aria-selected="true"] svg{opacity:1}
.subtabs{
  display:flex;gap:24px;padding:16px 4px;
  border-bottom:1px solid var(--border);margin-bottom:32px;
  overflow-x:auto;
}
.subtabs button{
  border:0;background:transparent;padding:0;white-space:nowrap;
  font:400 15px/1.4 var(--font-sans);color:var(--text-secondary);cursor:pointer;
  transition:color .12s;
}
.subtabs button[aria-selected="true"]{color:var(--text-primary);font-weight:500}

/* ---------- Table ---------- */
.tbl-wrap{overflow-x:auto;margin:0 -4px;padding:0 4px}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:640px}
thead th{
  text-align:left;padding:0 12px 10px;
  font-size:12px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;
  color:var(--text-tertiary);border-bottom:1px solid var(--border);white-space:nowrap;
}
thead th.num,tbody td.num{text-align:right;font-variant-numeric:tabular-nums lining-nums}
tbody td{padding:11px 12px;border-bottom:1px solid var(--border)}
tbody tr:nth-child(even){background:var(--surface-secondary)}
tbody tr:last-child td{border-bottom:0}
.rank{color:var(--text-tertiary);width:34px;font-variant-numeric:tabular-nums}
.ent{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:500}
.ent__ico{
  width:20px;height:20px;border-radius:50%;flex:none;
  display:grid;place-items:center;font-size:10px;color:#fff;font-weight:600;
}
.cell{
  display:inline-block;min-width:52px;text-align:center;
  padding:3px 8px;border-radius:6px;font-weight:500;
  font-variant-numeric:tabular-nums lining-nums;
}
.h1c{background:#e8f4f4;color:#3f6d6e}
.h2c{background:#eef4e7;color:#5f7040}
.h3c{background:#f4f7ef;color:#6f7f52}
.h4c{background:#faf6e8;color:#8a7326}
.h5c{background:var(--surface-muted);color:var(--text-secondary)}

.bar{height:6px;border-radius:3px;background:var(--surface-muted);overflow:hidden;min-width:110px}
.bar > i{display:block;height:100%;border-radius:3px;background:var(--chart-sage)}

/* ---------- Pipeline / flow ---------- */
.flow{display:flex;flex-direction:column;gap:14px}
.stage{
  display:grid;grid-template-columns:44px 1fr auto;gap:18px;align-items:start;
  background:var(--surface);border:1px solid var(--border);
  border-radius:12px;padding:18px 20px;
}
.stage__n{
  width:44px;height:44px;border-radius:11px;display:grid;place-items:center;
  background:var(--surface-muted);color:var(--text-secondary);
  font-family:var(--font-serif);font-size:19px;font-weight:600;
}
.stage h4{font-size:18px;margin-bottom:6px}
.stage p{font-size:14.5px;color:var(--text-secondary)}
.stage__lat{
  font-size:12px;color:var(--text-tertiary);white-space:nowrap;
  font-variant-numeric:tabular-nums;padding-top:4px;
}

.battle{
  background:var(--surface-soft);border-radius:12px;padding:20px;text-align:center;
}
.battle__t{font-family:var(--font-serif);font-size:19px;font-weight:500;margin-bottom:14px}
.vsrow{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.vspill{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px 8px 8px;border-radius:12px;
  background:var(--surface-muted);font-size:14px;font-weight:500;
}
.vspill i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;color:#fff}
.vspill--win{background:var(--green-bg)}
.vs{font-size:13px;color:var(--text-tertiary)}

/* ---------- Spec list ---------- */
.spec{border-top:1px solid var(--border)}
.spec__row{
  display:grid;grid-template-columns:200px 1fr auto;gap:20px;
  padding:15px 4px;border-bottom:1px solid var(--border);align-items:baseline;
}
.spec__k{font-size:13px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--text-tertiary)}
.spec__v{font-size:15px}
.spec__n{font-size:15px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}

/* ---------- References ---------- */
.refs{counter-reset:r;list-style:none;margin:0;padding:0;display:grid;gap:14px}
.refs li{
  counter-increment:r;position:relative;padding-left:34px;
  font-size:14px;line-height:1.55;color:var(--text-secondary);
}
.refs li::before{
  content:counter(r);position:absolute;left:0;top:1px;
  width:22px;height:22px;border-radius:6px;
  background:var(--surface-muted);color:var(--text-tertiary);
  display:grid;place-items:center;font-size:11px;font-weight:600;
}
.refs cite{font-style:normal;color:var(--text-primary);font-weight:500}

/* ---------- Tick list ---------- */
.ticks{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ticks li{
  position:relative;padding-left:24px;
  font-size:15px;line-height:1.5;color:var(--text-secondary);
}
.ticks li::before{
  content:"";position:absolute;left:2px;top:8px;
  width:6px;height:6px;border-radius:2px;background:var(--sage-deep);
}

/* ---------- Callout ---------- */
.callout{
  background:var(--teal-bg);border-radius:12px;padding:18px 20px;
  font-size:14px;line-height:1.6;color:#3f6d6e;
  display:flex;gap:13px;align-items:flex-start;
}
.callout svg{flex:none;margin-top:2px}

/* ---------- Carousel dots ---------- */
.dots{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:26px}
.dots__bar{width:20px;height:3px;border-radius:2px;background:var(--text-primary)}
.dots__d{width:4px;height:4px;border-radius:50%;background:var(--border-warm)}
.dots__nav{
  width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  border:1px solid var(--border);background:var(--surface);
  color:var(--text-secondary);cursor:pointer;
}
.dots__nav:hover{border-color:var(--border-warm);color:var(--text-primary)}

/* ---------- CTA ---------- */
.cta{
  background:var(--surface);border:1px solid var(--border);
  border-radius:20px;padding:44px 40px;text-align:center;
}
.cta h2{margin-bottom:14px}
.cta .lede{max-width:56ch;margin:0 auto 24px}
.cta__row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border);
  margin-left:var(--rail);padding:44px 0 40px;
}
.foot{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px}
.foot h5{
  margin:0 0 14px;font-size:12px;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;color:var(--text-tertiary);font-family:var(--font-sans);
}
.foot ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.foot a{font-size:14px;color:var(--text-nav);text-decoration:none}
.foot a:hover{color:var(--text-primary)}
.foot__addr{margin-top:14px;font-size:13.5px;color:var(--text-secondary);line-height:1.6}
.foot__bottom{
  margin-top:36px;padding-top:22px;border-top:1px solid var(--border);
  display:flex;gap:16px;align-items:center;flex-wrap:wrap;
  font-size:13px;color:var(--text-tertiary);
}
.foot__bottom .locale{margin-left:auto;font-size:13px}

/* ---------- Charts ----------
   Series colours are the site's own --chart-2 / --chart-1. That pair was
   validated for CVD separation and contrast against the white panel surface:
   worst all-pairs ΔE 14.2 (protan) / 30.3 (normal), both clear of the floors. */
.fig{margin:0}
.fig__head{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:4px}
.fig__title{
  font-family:var(--font-serif);font-size:20px;font-weight:500;line-height:1.25;
}
.fig__sub{margin-top:6px;font-size:14px;color:var(--text-secondary);max-width:64ch}
.fig__tools{margin-left:auto;display:flex;gap:8px;flex:none}
/* SVG text scales with the viewBox, so a narrow screen would shrink axis labels
   to ~5px. Scroll the chart inside its own track instead of shrinking it. */
.fig__body{margin-top:18px;overflow-x:auto}
.fig__body > svg{min-width:720px}
.fig__src{
  margin-top:16px;padding-top:14px;border-top:1px solid var(--border);
  font-size:12.5px;color:var(--text-tertiary);line-height:1.5;
}
.fig svg{display:block;width:100%;height:auto;overflow:visible}
.fig .grid line{stroke:var(--border);stroke-width:1;shape-rendering:crispEdges}
.fig .axis text{
  font:400 11.5px/1 var(--font-sans);fill:var(--text-tertiary);
  font-variant-numeric:tabular-nums lining-nums;
}
.fig .cat text{font:500 13px/1 var(--font-sans);fill:var(--text-primary)}
.fig .val text{
  font:500 12.5px/1 var(--font-sans);fill:var(--text-secondary);
  font-variant-numeric:tabular-nums lining-nums;
}
.fig .mark{transition:opacity .12s}
.fig.is-hovering .mark{opacity:.45}
.fig.is-hovering .mark.is-hot{opacity:1}

.legend{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:16px}
.legend__i{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--text-secondary)}
.legend__k{width:10px;height:10px;border-radius:3px;flex:none}

.fig__table{margin-top:18px}
.fig__table table{min-width:0;font-size:13.5px}
.fig__table[hidden]{display:none}

/* Waffle */
.waffle{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:230px}
.waffle i{
  display:block;aspect-ratio:1;border-radius:3px;background:var(--surface-muted);
}
.waffle i.on{background:var(--chart-2)}
.waffle__n{
  font-family:var(--font-serif);font-size:40px;font-weight:500;line-height:1;
  letter-spacing:-.5px;display:block;margin-bottom:8px;
}

/* ---------- 3D prototype stage ---------- */
.stage3d{
  position:relative;margin:38px auto 0;text-align:left;
  background:var(--surface);
  border:1px solid var(--border);border-radius:20px;overflow:hidden;
}
.stage3d__cap{
  max-width:74ch;margin:16px auto 0;
  font-size:13px;line-height:1.6;color:var(--text-tertiary);
}
.stage3d__canvas{display:block;width:100%;height:520px;cursor:grab;touch-action:none}
.stage3d__overlay{position:absolute;inset:0;pointer-events:none}
.stage3d__canvas:active{cursor:grabbing}
.stage3d__bar{
  position:absolute;left:0;right:0;bottom:0;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:14px 18px;border-top:1px solid var(--border);
  background:rgba(255,255,255,.86);backdrop-filter:blur(6px);
}
.stage3d__hint{font-size:12.5px;color:var(--text-tertiary);margin-left:auto}
.stage3d__badge{
  position:absolute;top:16px;left:18px;
  font:600 11px/1 var(--font-sans);letter-spacing:.09em;text-transform:uppercase;
  color:var(--text-tertiary);
}
.pin{
  position:absolute;transform:translate(-50%,-50%);
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  padding:4px 9px;border-radius:8px;
  background:var(--surface);border:1px solid var(--border-warm);
  font:500 12px/1.3 var(--font-sans);color:var(--text-primary);
  box-shadow:0 1px 3px rgba(0,0,0,.06);
  pointer-events:none;opacity:0;transition:opacity .2s;
}
.pin.on{opacity:1}
.pin i{width:7px;height:7px;border-radius:50%;flex:none}
.pin small{font-size:11px;color:var(--text-tertiary);font-weight:400}

/* ---------- Motion ---------- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s cubic-bezier(.16,1,.3,1),transform .6s cubic-bezier(.16,1,.3,1)}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .reveal{opacity:1;transform:none}
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .grid-3,.grid-4{grid-template-columns:repeat(2,1fr)}
  .foot{grid-template-columns:1fr 1fr}
  .spec__row{grid-template-columns:150px 1fr}
  .spec__n{grid-column:2;text-align:left}
}
@media (max-width:768px){
  :root{--rail:0px}
  .rail{
    inset:auto 0 0 0;width:100%;height:56px;
    flex-direction:row;justify-content:space-around;align-items:center;
    border-right:0;border-top:1px solid var(--border);padding:0 12px;
  }
  .rail__mark,.rail__spacer,.rail__avatar{display:none}
  .rail__nav{flex-direction:row;gap:8px}
  .topbar{left:0;padding:0 18px}
  .topbar__nav{display:none}
  .topbar__nav.is-open{
    display:flex;position:absolute;top:var(--topbar);left:0;right:0;
    flex-direction:column;align-items:flex-start;gap:0;
    background:var(--page-bg);border-bottom:1px solid var(--border);padding:8px 18px 14px;
  }
  .topbar__nav.is-open a,.topbar__nav.is-open .locale{padding:10px 0;width:100%}
  .menu-btn{display:block}
  main,footer{margin-left:0}
  footer{padding-bottom:96px}
  .col{padding:0 20px}
  section{padding:60px 0}
  h1{font-size:32px;letter-spacing:-.2px}
  h2{font-size:27px}
  h3{font-size:22px}
  .grid-3,.grid-2,.grid-4{grid-template-columns:1fr}
  .foot{grid-template-columns:1fr}
  .tag,.cursor{display:none}
  .stage{grid-template-columns:40px 1fr;gap:14px}
  .stage__lat{grid-column:2;padding-top:8px}
  .tabs{overflow-x:auto}
  .tabs button{flex:0 0 auto;padding:0 18px}
  .cta{padding:32px 22px}
  .waffle{max-width:180px}
  .stage3d__canvas{height:380px}
  .stage3d__bar{position:static;background:var(--surface);backdrop-filter:none}
  .stage3d__hint{display:none}
}

/* ---------- Use cases page ---------- */
.uc-filter{
  display:flex;gap:10px;flex-wrap:wrap;align-items:center;
  padding:16px 0 22px;border-bottom:1px solid var(--border);margin-bottom:34px;
}
.uc-filter__lbl{
  font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-tertiary);margin-right:4px;
}
.uc-filter button{
  padding:7px 13px;border-radius:10px;
  background:var(--surface);border:1px solid var(--border);
  font:500 13.5px/1.4 var(--font-sans);color:var(--text-secondary);cursor:pointer;
  transition:background-color .12s,border-color .12s,color .12s;
}
.uc-filter button:hover{border-color:var(--border-warm);color:var(--text-primary)}
.uc-filter button[aria-pressed="true"]{
  background:var(--surface-muted);border-color:var(--border-warm);color:var(--text-primary);
}
.uc-count{margin-left:auto;font-size:12.5px;color:var(--text-tertiary)}

.uc{
  background:var(--surface);border:1px solid var(--border);
  border-radius:16px;padding:26px;margin-bottom:20px;
}
.uc[hidden]{display:none}
.uc__top{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.uc__n{
  font-family:var(--font-serif);font-size:15px;font-weight:600;
  color:var(--text-tertiary);flex:none;padding-top:5px;min-width:26px;
}
.uc__h{flex:1;min-width:240px}
.uc__h h3{font-size:23px;line-height:1.2}
.uc__set{margin-top:5px;font-size:13.5px;color:var(--text-tertiary)}
.uc__tags{display:flex;gap:7px;flex-wrap:wrap;align-items:center;flex:none}

.uc__grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:20px}
.uc__block h4{
  font-family:var(--font-sans);font-size:11.5px;font-weight:600;
  letter-spacing:.09em;text-transform:uppercase;color:var(--text-tertiary);
  margin-bottom:9px;
}
.uc__block p{font-size:14.5px;line-height:1.6;color:var(--text-secondary)}
.uc__block p + p{margin-top:10px}
.uc__eg{
  background:var(--surface-soft);border-radius:12px;padding:18px 20px;
  border-left:3px solid var(--brand);
}
.uc__eg p{color:var(--text-primary);font-size:14.5px;line-height:1.65}
.uc__eg em{color:var(--text-secondary);font-style:italic}
.uc__limit{
  margin-top:18px;padding-top:16px;border-top:1px solid var(--border);
  font-size:13.5px;line-height:1.6;color:var(--text-tertiary);
}
.uc__limit strong{color:var(--text-secondary);font-weight:600}

.uc-group{margin:0 0 14px}
.uc-group h2{font-size:28px}
.uc-group p{margin-top:10px;font-size:15px;color:var(--text-secondary);max-width:66ch}
.uc-group{padding-top:26px}

@media (max-width:900px){
  .uc__grid{grid-template-columns:1fr}
}
@media (max-width:768px){
  .uc{padding:20px}
  .uc__h h3{font-size:20px}
  .uc-count{display:none}
}

/* ---------- Floating section scrollspy (desktop) ----------
   A labelled table of contents in the gutter between the rail and the centred
   column. Every section label is always visible; the active one is highlighted.
   Shown only at >=1320px so the labels clear the content column; below that the
   rail icon nav takes over. */
.scrollspy{
  position:fixed;left:74px;top:50%;transform:translateY(-50%);
  z-index:50;display:none;flex-direction:column;gap:1px;
}
@media (min-width:1320px){
  .scrollspy{display:flex}
  .rail__nav{display:none}
}
.scrollspy__item{
  display:flex;align-items:center;gap:11px;
  padding:5px 0;text-decoration:none;border:0;background:none;cursor:pointer;
}
.scrollspy__dot{
  width:7px;height:7px;border-radius:50%;flex:none;
  background:var(--border-warm);
  transition:transform .16s ease-out,background-color .16s;
}
.scrollspy__label{
  font:500 12.5px/1 var(--font-sans);color:var(--text-tertiary);white-space:nowrap;
  transition:color .16s,font-weight .16s;
}
.scrollspy__item:hover .scrollspy__dot{background:var(--text-secondary);transform:scale(1.25)}
.scrollspy__item:hover .scrollspy__label{color:var(--text-primary)}
.scrollspy__item.is-active .scrollspy__dot{background:var(--brand);transform:scale(1.5)}
.scrollspy__item.is-active .scrollspy__label{color:var(--text-primary);font-weight:600}

/* ---------- Founder cards ---------- */
.founder{background:var(--surface-soft);border-radius:14px;padding:24px}
.founder__head{display:flex;align-items:center;gap:15px;margin-bottom:16px}
.founder__ava{
  position:relative;width:56px;height:56px;border-radius:50%;flex:none;
  display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(150deg,var(--sage-deep),var(--brand));
  color:#fff;font-family:var(--font-serif);font-size:22px;font-weight:600;
  /* A surface ring lifts the portrait off the warm card without a hard border */
  box-shadow:0 0 0 3px var(--surface-soft),0 0 0 4px var(--border-warm),0 2px 6px rgba(41,44,51,.10);
}
.founder__ava img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.82) contrast(1.03);
}
.founder__name{font-size:22px}
.founder__role{
  margin-top:3px;font-size:12px;color:var(--text-tertiary);
  text-transform:uppercase;letter-spacing:.07em;font-weight:600;
}
.founder .lede{font-size:15px}
