/* Asanoha for investors. Warm neutral ramp, one clay accent, product colours only in the moments. */
:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-2: #efe9df;
  --text: #1f1b16;
  --text-2: #5b534a;
  --muted: #6f6659;
  --line: rgba(31, 27, 22, 0.09);
  --line-2: rgba(31, 27, 22, 0.16);
  --accent: #a84b27;
  --accent-ink: #8e3d1d;
  --on-accent: #fffdf9;
  --focus: #a84b27;

  --pp: #4f46e5;
  --kosmik: #a0285f;
  --wearday: #7c3aed;
  --store: #a84b27;
  --pay: #0f766e;
  --money: #a16207;

  --shadow: 0 1px 2px rgba(31, 27, 22, 0.04), 0 8px 24px rgba(31, 27, 22, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #161513;
    --surface: #1e1c19;
    --surface-2: #26231f;
    --text: #f2ede4;
    --text-2: #c3baad;
    --muted: #948a7d;
    --line: rgba(242, 237, 228, 0.08);
    --line-2: rgba(242, 237, 228, 0.15);
    --accent: #e58a63;
    --accent-ink: #e58a63;
    --on-accent: #1a1410;
    --focus: #e58a63;
    --pp: #818cf8;
    --kosmik: #de6fa1;
    --wearday: #a58bff;
    --store: #e58a63;
    --pay: #2dd4bf;
    --money: #e3b341;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #161513;
  --surface: #1e1c19;
  --surface-2: #26231f;
  --text: #f2ede4;
  --text-2: #c3baad;
  --muted: #948a7d;
  --line: rgba(242, 237, 228, 0.08);
  --line-2: rgba(242, 237, 228, 0.15);
  --accent: #e58a63;
  --accent-ink: #e58a63;
  --on-accent: #1a1410;
  --focus: #e58a63;
  --pp: #818cf8;
  --kosmik: #de6fa1;
  --wearday: #a58bff;
  --store: #e58a63;
  --pay: #2dd4bf;
  --money: #e3b341;
  --shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
:root[data-theme='dark'] .btn-primary:hover { filter: brightness(1.08); }
.btn-quiet { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-wide { width: 100%; }
.btn .short { display: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.icon-btn {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme='dark'] .i-sun { display: block; }
:root[data-theme='dark'] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .i-sun { display: block; }
  :root:not([data-theme='light']) .i-moon { display: none; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 20px/1 var(--serif); }
.brand-mark { width: 22px; height: 22px; fill: var(--accent); stroke: var(--bg); stroke-width: 2.5; stroke-linejoin: round; }
.brand-tag { font: 400 13px/1 var(--sans); color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-actions .btn { white-space: nowrap; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.nav.open .menu-btn .i-open { display: none; }
.nav.open .menu-btn .i-close { display: block; }
@media (max-width: 1120px) {
  .brand-tag { display: none; }
}
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav-links + .nav-actions { margin-left: auto; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: 64px;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px; font-size: 16px; }
}

/* Shared type */
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 16px; }
h1 { font: 400 clamp(36px, 5.2vw, 60px)/1.06 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
h2 { font: 400 clamp(28px, 3.6vw, 40px)/1.12 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.h-small { font: 500 16px/1.4 var(--sans); letter-spacing: 0; }
h3 { font: 500 18px/1.35 var(--sans); }
.lede { font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 34em; margin-top: 24px; }
.sub { font-size: 17px; color: var(--text-2); max-width: 38em; margin-top: 16px; }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: min(640px, calc(100vh - 160px)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.receipt { display: flex; align-items: center; gap: 10px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pay); position: relative; flex: none; }
.dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--pay); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

.star-fig { margin: 0; display: grid; gap: 16px; justify-items: center; }
.star { width: 100%; max-width: 520px; overflow: visible; }
.petal { stroke: var(--bg); stroke-width: 1.4; stroke-linejoin: round; transform-origin: 0 0; cursor: pointer;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), filter 0.35s var(--ease); }
.p-store { fill: var(--store); } .p-pp { fill: var(--pp); } .p-kosmik { fill: var(--kosmik); }
.p-wearday { fill: var(--wearday); } .p-pay { fill: var(--pay); } .p-money { fill: var(--money); }
.hex { fill: none; stroke: var(--line-2); stroke-width: 0.6; stroke-dasharray: 2 2; }
.hub { fill: var(--bg); stroke: var(--text); stroke-width: 1; }
.star-labels text { font-size: 5.2px; fill: var(--muted); transition: fill 0.3s var(--ease), opacity 0.3s var(--ease); }
.star.focus .petal { opacity: 0.22; }
.star.focus .petal.on { opacity: 1; transform: scale(1.06); }
.star.focus .star-labels text { opacity: 0.45; }
.star.focus .star-labels text.on { opacity: 1; fill: var(--text); }
.star-fig figcaption { font-size: 14px; color: var(--text-2); text-align: center; max-width: 30em; }
.star-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; min-height: 1.4em; }

/* Entrance of the star: petals unfold from the hub */
.js .petal { opacity: 0; transform: scale(0.2) rotate(-30deg); }
.js .star.in .petal { opacity: 1; transform: none; }
.js .star.in .petal:nth-child(1) { transition-delay: 0.05s; }
.js .star.in .petal:nth-child(2) { transition-delay: 0.15s; }
.js .star.in .petal:nth-child(3) { transition-delay: 0.25s; }
.js .star.in .petal:nth-child(4) { transition-delay: 0.35s; }
.js .star.in .petal:nth-child(5) { transition-delay: 0.45s; }
.js .star.in .petal:nth-child(6) { transition-delay: 0.55s; }
.js .star.ready .petal { transition-delay: 0s; }
.js .star-labels text { opacity: 0; }
.js .star.in .star-labels text { opacity: 1; transition: opacity 0.6s var(--ease) 0.8s; }
.js .star.ready .star-labels text { transition: fill 0.3s var(--ease), opacity 0.3s var(--ease); }

/* Reveal on scroll */
.js .rise, .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .rise.in, .js .reveal.in { opacity: 1; transform: none; }

/* Receipts */
.receipts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.receipts .wrap { padding-top: 32px; padding-bottom: 32px; }
.receipts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.receipts-head p { font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; }
.stat { padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { font-size: 14px; color: var(--text-2); }
.stat dd { margin: 8px 0 4px; font: 400 40px/1.1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-note { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 112px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; max-width: 760px; }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.story-copy { position: sticky; top: 104px; }
.story-copy p:not(.eyebrow) { color: var(--text-2); margin-top: 20px; font-size: 17px; }
.story-copy h2 { margin-bottom: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 75px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.timeline::after { content: ''; position: absolute; left: 75px; top: 8px; width: 1px; height: var(--progress, 0%); background: var(--accent); transition: height 0.2s linear; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 14px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 72px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.section .timeline li::before { background: var(--bg); }
.timeline li.lit::before { background: var(--accent); border-color: var(--accent); }
.timeline time { font: 400 13px/1.4 var(--mono); color: var(--muted); padding-top: 3px; text-align: right; }
.timeline div { display: grid; gap: 2px; padding-left: 8px; }
.timeline b { font-weight: 500; }
.timeline span { color: var(--text-2); font-size: 15px; }
.timeline code { font: 400 12px/1.4 var(--mono); color: var(--muted); margin-top: 4px; }
.timeline li.quiet b { color: var(--text-2); }
.timeline li.now::before { background: var(--pay); border-color: var(--pay); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pay) 18%, transparent); }

/* Competition */
.comp-table { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg); }
.comp-row { display: grid; grid-template-columns: 200px 220px 1fr; gap: 24px; padding: 18px 24px; border-top: 1px solid var(--line); align-items: baseline; }
.comp-row:first-child { border-top: 0; }
.comp-headrow { font-size: 13px; color: var(--muted); padding-top: 14px; padding-bottom: 14px; background: var(--surface-2); }
.comp-row [role='cell']:nth-child(2) { color: var(--text-2); font-size: 15px; }
.comp-row [role='cell']:nth-child(3) { font-size: 15px; }
.comp-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.comp-name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: rotate(45deg); flex: none; }
.comp-row:not(.comp-headrow) { transition: background-color 0.2s var(--ease); }
.comp-row:not(.comp-headrow):hover { background: color-mix(in srgb, var(--c) 5%, var(--bg)); }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product, .rail {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 16px; overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.product::before, .rail::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); transform: scaleX(0.12); transform-origin: left; transition: transform 0.6s var(--ease); }
.product:hover::before, .rail:hover::before, .product.in::before { transform: scaleX(1); }
.product:hover, .rail:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.product header, .rail header { display: flex; align-items: center; gap: 10px; }
.p-dot { width: 12px; height: 12px; border-radius: 3px; background: var(--c); transform: rotate(45deg); flex: none; }
.status { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.p-line { color: var(--text-2); }
.p-facts { margin: 0; display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.p-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; font-size: 15px; }
.p-facts dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.p-facts dd { margin: 0; }
.p-link { margin-top: auto; font: 400 13px/1 var(--mono); color: var(--text-2); text-decoration: none; align-self: flex-start; padding-top: 4px; }
.p-link::after { content: ' \2197'; }
.p-link:hover { color: var(--c); }
.rails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.rail { background: transparent; border-style: dashed; }
.rail p { color: var(--text-2); }

/* Chart */
.chart-card { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.chart-head figcaption { display: grid; gap: 4px; }
.chart-head figcaption span { font-size: 13px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; cursor: default; transition: opacity 0.2s var(--ease); }
.legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.chart { position: relative; height: 300px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { font: 400 11px var(--mono); fill: var(--muted); }
.chart .bar { transform-box: fill-box; transform-origin: bottom; transition: opacity 0.2s var(--ease); }
.js .chart .bar { transform: scaleY(0); }
.chart.in .bar { transform: scaleY(1); transition: transform 0.9s var(--ease), opacity 0.2s var(--ease); }
.chart .total { font: 400 12px var(--mono); fill: var(--text); opacity: 0; transition: opacity 0.5s var(--ease) 0.9s; }
.chart.in .total { opacity: 1; }
.chart .note { font: 400 11px var(--sans); fill: var(--muted); }
.chart.dim .bar { opacity: 0.18; }
.chart.dim .bar.on { opacity: 1; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; box-shadow: var(--shadow); white-space: nowrap; opacity: 0; transform: translate(-50%, -100%); transition: opacity 0.15s; }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-weight: 500; }

.shared { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.shared-item { padding-top: 16px; border-top: 1px solid var(--line-2); }
.shared-item h3 { font-size: 16px; margin-bottom: 8px; }
.shared-item p { font-size: 15px; color: var(--text-2); }

/* Questions */
.q-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 500 17px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--accent-ink); }
.faq details p { color: var(--text-2); padding: 0 32px 24px 0; max-width: 40em; }
.faq details[open] p { animation: open 0.4s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 8px; align-content: start; }
.avatar { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font: 500 16px/1 var(--serif); margin-bottom: 8px; }
.person .role { font-size: 12px; color: var(--muted); }
.person p:not(.role) { font-size: 15px; color: var(--text-2); }

/* CTA */
.cta { padding: 96px 0; }
.cta-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.cta-star { width: 72px; height: 72px; fill: var(--accent); stroke: var(--bg); stroke-width: 2; stroke-linejoin: round; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.cta p { color: var(--text-2); margin-top: 8px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand { font-weight: 500; margin-bottom: 4px; }
.foot .muted { max-width: 36em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-links a { color: var(--text-2); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }

/* Contact dialog */
.contact {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid var(--line-2);
  border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
}
.contact[open] { animation: pop 0.35s var(--ease); }
.contact::backdrop { background: rgba(20, 16, 12, 0.45); backdrop-filter: blur(2px); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.c-close-row { position: absolute; top: 16px; right: 16px; margin: 0; }
.contact h2 { font-size: 28px; padding-right: 48px; }
.steps { list-style: none; display: flex; gap: 4px; padding: 0; margin: 16px 0 24px; font-size: 12px; color: var(--muted); }
.steps li { flex: 1; padding-top: 8px; border-top: 2px solid var(--line-2); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.steps li.on { border-top-color: var(--accent); color: var(--text); }
.steps li.done { border-top-color: var(--accent); }
.c-step { display: grid; gap: 16px; }
.c-step[hidden] { display: none; }
.c-step.enter { animation: step 0.35s var(--ease); }
@keyframes step { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field > span { color: var(--text-2); }
.field em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
.field input, .field textarea, .prefix-input {
  width: 100%; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); border-radius: 10px;
  font: 400 16px/1.4 var(--sans); padding: 10px 12px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .prefix-input:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.prefix-input { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.prefix-input input { border: 0; padding: 10px 0; background: transparent; box-shadow: none !important; }
.prefix { color: var(--muted); font-size: 14px; }
.field.off { opacity: 0.45; }
.code-input { letter-spacing: 0.4em; font-size: 22px !important; text-align: center; font-family: var(--mono) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.c-error { color: #b42318; font-size: 14px; min-height: 0; }
:root[data-theme='dark'] .c-error { color: #f97066; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .c-error { color: #f97066; } }
.c-error:empty { display: none; }
.c-text { color: var(--text-2); }
.c-done { justify-items: center; text-align: center; padding: 8px 0; }
.c-done form { width: 100%; }
.done-star { width: 64px; height: 64px; fill: var(--accent); stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; animation: bloom 0.9s var(--ease); }
@keyframes bloom { from { transform: scale(0.3) rotate(-60deg); opacity: 0; } to { transform: none; opacity: 1; } }
.c-done h3 { font: 400 24px/1.2 var(--serif); }

/* Responsive */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-grid, .story-grid, .q-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; gap: 40px; }
  .star { max-width: 440px; }
  .story-copy { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .shared, .team { grid-template-columns: repeat(2, 1fr); }
  .comp-row { grid-template-columns: 160px 1fr; }
  .comp-row [role='cell']:nth-child(3), .comp-row [role='columnheader']:nth-child(3) { grid-column: 1 / -1; }
  .comp-headrow [role='columnheader']:nth-child(3) { display: none; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .brand-tag { display: none; }
  .nav-actions .btn-sm { padding: 0 12px; }
  .hero { padding: 40px 0 56px; }
  .lede { font-size: 17px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .stat dd { font-size: 32px; }
  .stat { padding: 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .products, .rails, .shared, .team { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .comp-headrow { display: none; }
  .p-facts div { grid-template-columns: 1fr; gap: 2px; }
  .timeline::before, .timeline::after { left: 3px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 24px; }
  .timeline li::before { left: 0; top: 19px; }
  .timeline time { text-align: left; }
  .timeline div { padding-left: 0; }
  .chart { height: 240px; }
  .chart-card { padding: 16px; }
  .cta-inner { grid-template-columns: 1fr; gap: 20px; }
  .cta-star { width: 56px; height: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .contact { padding: 24px 20px; }
}
@media (max-width: 680px) {
  .star-labels text { font-size: 6.4px; }
}
@media (max-width: 400px) {
  .nav-actions .btn-sm { font-size: 13px; }
  .nav-actions .btn-sm span.long { display: none; }
  .nav-actions .btn-sm span.short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .rise, .js .reveal, .js .petal, .js .star-labels text { opacity: 1; transform: none; }
  .js .chart .bar { transform: none; }
  .cta-star { animation: none; }
}

/* Founders: story chapters with clips */
.chapters { display: grid; gap: 96px; margin-bottom: 96px; }
.chapter { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 64px; align-items: center; max-width: 920px; }
.chapter.flip { grid-template-columns: 1fr minmax(220px, 300px); margin-left: auto; }
.chapter.flip .clip { order: 2; }
.clip { margin: 0; position: relative; }
.clip canvas {
  width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: var(--bg);
  border: 1px solid var(--line); display: block; touch-action: pan-y;
}
.clip figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.js .chapter .clip { opacity: 0; transform: translateY(24px) rotate(-2.5deg) scale(0.94); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .chapter.flip .clip { transform: translateY(24px) rotate(2.5deg) scale(0.94); }
.js .chapter .chapter-copy { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease) 0.15s, transform 0.8s var(--ease) 0.15s; }
.js .chapter.in .clip, .js .chapter.in .chapter-copy { opacity: 1; transform: none; }
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 6%, transparent); }
.chapter-no { font-size: 12px; color: var(--accent-ink); margin-bottom: 12px; }
.chapter-copy h3 { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 16px; }
.chapter-copy p:not(.chapter-no) { color: var(--text-2); font-size: 17px; }
.chapter-copy p + p { margin-top: 14px; }
.chapter-copy b { color: var(--text); font-weight: 500; }
img.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.person { background: var(--bg); }

/* IIMXamday */
.batch { margin-top: 20px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); align-items: center; }
.batch header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.batch-copy > p { color: var(--text-2); }
.batch-note { margin-top: 12px; font-size: 15px; }
.batch-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.batch-stats div { border-top: 1px solid var(--line-2); padding-top: 12px; }
.batch-stats dt { font-size: 13px; color: var(--muted); }
.batch-stats dd { margin: 4px 0 0; font: 400 32px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.section:not(.section-alt) .chart-card { background: var(--surface); }
.section-alt .product, .section-alt .rail { background: var(--bg); }
.section-alt .rail { background: transparent; }

@media (max-width: 980px) {
  .chapter, .chapter.flip { grid-template-columns: 220px 1fr; gap: 40px; margin-left: 0; }
  .chapter.flip .clip { order: 0; }
  .batch { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .chapters { gap: 64px; margin-bottom: 64px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 24px; }
  .clip { width: min(240px, 70%); }
  .chapter.flip .clip { margin-left: auto; }
  .batch { padding: 20px; gap: 24px; }
  .batch-stats dd { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .chapter .clip, .js .chapter .chapter-copy { opacity: 1; transform: none; }
}

/* Market */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mkt { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.mkt header { display: flex; align-items: center; gap: 10px; }
.mkt .share { margin-left: auto; font-size: 14px; color: var(--c); }
.dots { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--line-2); transition: background-color 0.4s var(--ease), transform 0.6s var(--ease); }
.dots i.lit { background: var(--c); transform: scale(1.6); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); }
.js .dots i { transform: scale(0); }
.js .dots.in i { transform: scale(1); }
.js .dots.in i.lit { transform: scale(1.6); }
.mkt-nums { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mkt-nums dt { font-size: 13px; color: var(--muted); }
.mkt-nums dd { margin: 4px 0; font: 400 24px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.mkt-nums p { font-size: 13px; color: var(--text-2); }
.math { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.math summary { cursor: pointer; color: var(--accent-ink); list-style: none; }
.math summary::-webkit-details-marker { display: none; }
.math summary::after { content: ' +'; }
.math[open] summary::after { content: ' −'; }
.math p { color: var(--text-2); margin-top: 8px; }
.mkt-total { background: transparent; border-style: dashed; justify-content: center; }
.mkt-total .eyebrow { margin-bottom: 0; }
.total-num { font: 400 clamp(44px, 5vw, 60px)/1 var(--serif); letter-spacing: -0.02em; color: var(--accent-ink); }
.total-num span { font: 400 18px var(--sans); color: var(--text-2); letter-spacing: 0; }
.mkt-total .muted { font-size: 15px; }
.scale { margin-top: 64px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.scale h3 { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); }
.scale ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.scale li { counter-increment: s; color: var(--text-2); font-size: 15px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.scale li::before { content: '0' counter(s); display: block; font: 400 12px var(--mono); color: var(--muted); margin-bottom: 6px; }
.scale b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.sources { margin-top: 48px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.sources a { color: var(--text-2); }
@media (max-width: 980px) {
  .markets { grid-template-columns: 1fr 1fr; }
  .scale { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 680px) {
  .markets { grid-template-columns: 1fr; }
  .scale ol { grid-template-columns: 1fr; }
  .dots { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .dots i { transform: none; }
  .js .dots i.lit { transform: scale(1.6); }
}

.ballpark { margin-top: 16px; font-size: 15px; color: var(--muted); font-style: normal; max-width: 38em; padding-left: 12px; border-left: 2px solid var(--accent); }

.c-note { font-size: 13px; color: var(--muted); text-align: center; }
.c-note a { color: var(--text-2); }

/* Language menu */
.lang-menu { position: relative; }
.lang-list {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 168px; max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.lang-list[hidden] { display: none; }
.lang-list a { font-family: 'Manrope', 'Noto Sans Devanagari', 'Noto Sans Bengali', 'Noto Sans Telugu', 'Noto Sans Tamil', 'Noto Sans Gujarati', 'Noto Sans Kannada', 'Noto Sans Malayalam', 'Noto Sans Gurmukhi', 'Noto Sans SC', 'Noto Sans JP', 'Noto Sans Arabic', system-ui, sans-serif; display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--surface-2); }
.lang-list a[aria-current='page'] { color: var(--accent-ink); font-weight: 500; }

/* Translated pages: longer words, so the nav collapses earlier and the nav button uses its short label */
:root[lang]:not([lang|='en']) .nav-actions .btn-sm span.long { display: none; }
:root[lang]:not([lang|='en']) .nav-actions .btn-sm span.short { display: inline; }
@media (max-width: 1320px) {
  :root[lang]:not([lang|='en']) .brand-tag { display: none; }
  :root[lang]:not([lang|='en']) .nav-links { display: none; }
  :root[lang]:not([lang|='en']) .menu-btn { display: inline-flex; }
  :root[lang]:not([lang|='en']) .nav-links + .nav-actions { margin-left: auto; }
  :root[lang]:not([lang|='en']) .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: 64px;
    padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  :root[lang]:not([lang|='en']) .nav.open .nav-links a { padding: 12px; font-size: 16px; }
}
:root[lang]:not([lang|='en']) .status { white-space: normal; text-align: end; flex: 0 1 auto; min-width: 0; }
:root[lang]:not([lang|='en']) main { overflow-wrap: break-word; }
:root[lang]:not([lang|='en']) main p, :root[lang]:not([lang|='en']) main dd, :root[lang]:not([lang|='en']) main span { overflow-wrap: anywhere; }
:root[lang]:not([lang|='en']) .receipt { align-items: flex-start; }
@media (max-width: 680px) {
  :root[lang]:not([lang|='en']) h1 { font-size: clamp(24px, 7vw, 34px); }
  :root[lang]:not([lang|='en']) h2 { font-size: clamp(22px, 6.4vw, 28px); }
}
@media (max-width: 480px) {
  :root[lang]:not([lang|='en']) .nav-actions .btn-sm { display: none; }
}

/* Theme reveal (same as Kosmik): the browser's default cross-fade is replaced by a growing circle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
