/* Autonomous website concept: ink on paper, quiet type, thin lines. */
:root {
  --ink: #0c0a09;
  --paper: #ffffff;
  --paper-2: #fafaf9;
  --line: #e7e5e4;
  --line-strong: #d6d3d1;
  --subtle: #57534e;
  --muted: #78716c;
  --sans: 'Inter', system-ui, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --brand: 'Outfit', 'Inter', sans-serif;
  --wrap: 1240px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
::selection { background: var(--ink); color: var(--paper); }
/* On dark sections the selection is white, otherwise it would be invisible (black on black). */
.on-dark ::selection, .site-footer ::selection, .code-hire ::selection { background: var(--paper); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 720px) { :root { --gutter: 16px; } }

/* ---------- Type ---------- */
.display, h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.045em; line-height: 1.02; }
h1 { font-size: clamp(44px, 7.4vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.04em; line-height: 1.05; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.03em; line-height: 1.15; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--subtle); max-width: 640px; letter-spacing: -0.01em; }
.dim { color: #a8a29e; }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ''; width: 6px; height: 6px; background: currentColor; }
.mono { font-family: var(--mono); }
p + p { margin-top: 1em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; border: 1px solid var(--ink);
  transition: background .2s, color .2s, border-color .2s; cursor: pointer; white-space: nowrap; font-family: var(--sans);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #292524; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.on-dark .btn-ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-dark .btn-ink:hover { background: #e7e5e4; }
.on-dark .btn-ghost { color: var(--paper); border-color: #44403c; }
.on-dark .btn-ghost:hover { border-color: var(--paper); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--brand); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand svg { width: 20px; height: auto; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .btn { height: 38px; padding: 0 18px; font-size: 14px; }
.nav-link { font-size: 15px; color: var(--subtle); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-link:hover { color: var(--ink); background: #f5f5f4; }
.nav-link.active { color: var(--ink); }

main { padding-top: 68px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .label { margin-bottom: 20px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; } .section { padding: 80px 0; } }
/* A heading next to a longer text: align both to the top, with slightly smaller text. */
.section-head.head-top { align-items: start; }
.lead-sm { font-size: 17px; line-height: 1.6; }
.rule { border-top: 1px solid var(--line); }
.on-dark { background: var(--ink); color: var(--paper); }
.on-dark .lead, .on-dark .subtle { color: #a8a29e; }
.on-dark .label { color: #a8a29e; }
.on-dark .rule, .on-dark .grid-lines, .on-dark .grid-lines > * { border-color: #292524 !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-art { position: relative; height: min(52vh, 520px); min-height: 300px; }
.hero-art canvas { width: 100%; height: 100%; image-rendering: pixelated; }
#hero-run { position: absolute; inset: 0; z-index: 1; }
.hero-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); }
.hero-copy { position: relative; margin-top: -150px; z-index: 2; padding-bottom: 96px; }
.hero-copy h1 { max-width: 1050px; }
/* On phones the landscape is short, so the text only overlaps its faded bottom edge. */
@media (max-width: 720px) { .hero-art { height: 46vh; min-height: 260px; } .hero-copy { margin-top: -40px; } }
.hero-copy .lead { margin-top: 28px; }
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 1px solid var(--line); font-size: 13px; color: var(--subtle); margin-bottom: 28px;
}
.pill b { font-weight: 500; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.pill:hover { border-color: var(--line-strong); }

/* Page hero (inner pages) */
.page-hero { padding: 120px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero .label { margin-bottom: 28px; }
.page-hero h1 { font-size: clamp(42px, 6.4vw, 88px); max-width: 1000px; }
.page-hero .lead { margin-top: 28px; }
@media (max-width: 720px) { .page-hero { padding: 72px 0 56px; } }

/* ---------- Grids with hairlines (Duna style) ---------- */
.grid-lines { display: grid; border-top: 1px solid var(--line); }
.grid-lines > * { padding: 36px 32px 40px 32px; border-right: 1px solid var(--line); }
.cols-2 > :nth-child(2n+1), .cols-3 > :nth-child(3n+1), .cols-4 > :nth-child(4n+1) { padding-left: 0; }
.cols-2 > :nth-child(2n), .cols-3 > :nth-child(3n), .cols-4 > :nth-child(4n), .grid-lines > :last-child { border-right: 0; padding-right: 0; }
.cols-2 > :nth-child(n+3), .cols-3 > :nth-child(n+4), .cols-4 > :nth-child(n+5) { border-top: 1px solid var(--line); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .cols-3, .cols-4, .cols-2 { grid-template-columns: 1fr; }
  .grid-lines > * { border-right: 0; border-top: 0 !important; border-bottom: 1px solid var(--line); padding: 28px 0 !important; }
  .grid-lines > *:last-child { border-bottom: 0; }
}
.feature .icon { width: 28px; height: 28px; margin-bottom: 40px; }
.feature h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { color: var(--subtle); font-size: 15px; line-height: 1.6; }
.on-dark .feature p { color: #a8a29e; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat .num { font-family: var(--display); font-size: clamp(48px, 5.4vw, 76px); letter-spacing: -0.05em; line-height: 1; }
.stat .num small { font-size: .45em; letter-spacing: -0.02em; margin-left: 2px; }
.stat p { margin-top: 14px; color: var(--subtle); font-size: 15px; max-width: 220px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; gap: 40px 24px; } }

/* ---------- Learning game ---------- */
.game { border: 1px solid var(--line); border-radius: 20px; padding: 24px 28px 20px; background: var(--paper); }
.game-hud { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.game-hud b { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--ink); letter-spacing: -0.03em; margin-left: 6px; text-transform: none; }
.g-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.g-status { color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 11px; }
.g-code { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--paper);
  background: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 4px 12px; cursor: pointer; transition: background .2s; }
.g-code:hover { background: #292524; }

/* Goal / status row, action keys and caption */
.game-goal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; }
.g-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.g-goal-text { font-size: 14px; color: var(--ink); margin-right: 14px; }
.game-goal .g-code { margin-left: auto; }
.game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 14px; }
.game-actions kbd { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; min-width: 64px; text-align: center;
  padding: 6px 12px; border: 1px solid var(--ink); border-bottom-width: 3px; border-radius: 8px; color: var(--ink); background: var(--paper);
  transition: background .12s, color .12s, transform .12s, border-bottom-width .12s; }
.game-actions kbd.on { background: var(--ink); color: var(--paper); transform: translateY(2px); border-bottom-width: 1px; }
.g-why { font-family: var(--mono); font-size: 12px; color: var(--ink); }
.g-beat { margin-left: auto; font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; }
.game.human { border-color: var(--ink); }
.game-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.game-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.g-psst { color: var(--ink); font-family: var(--mono); font-size: 12px; }
@media (max-width: 720px) { .game-goal .g-code { margin-left: 0; } .g-psst::after { content: ' (or tap the game)'; } }

/* Hero footnote and "What is a venture?" */
.star { font-size: .45em; vertical-align: super; margin-left: .04em; color: var(--muted); }
.footnote { margin-top: 28px; font-size: 13px; color: var(--muted); max-width: 640px; }
.footnote span { color: var(--ink); }
.venture-def { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; margin-top: 88px; padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.venture-def > div:first-child h3 { font-size: clamp(24px, 2.4vw, 32px); }
.venture-def > div:first-child p { color: var(--subtle); font-size: 15px; margin-top: 14px; }
.venture-def .grid-lines { border-top: 0; }
.venture-def .grid-lines > * { padding-top: 0; }
@media (max-width: 960px) { .venture-def { grid-template-columns: 1fr; gap: 24px; } }

/* Keep or kill rockets */
.rockets-wrap { margin-top: 8px; border: 1px solid var(--line); border-radius: 20px; padding: 20px 24px 10px; }
.rockets-wrap canvas { width: 100%; height: 420px; display: block; }
@media (max-width: 720px) { .rockets-wrap { padding: 14px; } .rockets-wrap canvas { height: 340px; } }

/* The boss level */
.boss-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.boss-art canvas { width: 100%; height: 400px; }
@media (max-width: 960px) { .boss-wrap { grid-template-columns: 1fr; } .boss-art canvas { height: 320px; } }

/* ---------- Code modal ---------- */
.code-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(12,10,9,.5); display: grid; place-items: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s; }
.code-backdrop.open { opacity: 1; pointer-events: auto; }
.code-modal { background: var(--paper); width: 100%; max-width: 920px; max-height: calc(100vh - 32px); overflow: auto; border-radius: 20px;
  transform: translateY(12px) scale(.98); transition: transform .35s var(--ease); }
.code-backdrop.open .code-modal { transform: none; }
.code-head { position: sticky; top: 0; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 28px; border-bottom: 1px solid var(--line); z-index: 1; }
.code-close { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink); }
.code-close:hover { border-color: var(--ink); }
.code-body { padding: 28px; display: grid; gap: 28px; }
.code-body h3 { font-size: clamp(26px, 3vw, 36px); }
.code-body p, .code-body li { color: var(--subtle); font-size: 15px; }
.code-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.code-cols h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.code-cols ul { list-style: none; display: grid; gap: 10px; }
.code-cols li { padding-left: 18px; position: relative; }
.code-cols li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--ink); }
.code-cols li strong { color: var(--ink); font-weight: 500; }
.code-src { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.code-src-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--paper-2); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; color: var(--muted); }
.code-src-head button { font: inherit; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 3px 12px; cursor: pointer; color: var(--ink); }
.code-src pre { margin: 0; padding: 16px; max-height: 420px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--ink); background: var(--paper); tab-size: 2; }
.code-src .c { color: #a8a29e; }
.code-hire { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 14px; background: var(--ink); color: var(--paper); }
.code-hire p { color: #a8a29e; margin-top: 6px; }
.code-hire .t { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.code-hire .acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 720px) { .code-cols { grid-template-columns: 1fr; } .code-head, .code-body { padding-left: 18px; padding-right: 18px; } }
.game-canvas { width: 100%; height: 230px; margin-top: 12px; }
.game-foot { display: flex; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.g-chart { flex: 1; height: 44px; display: flex; align-items: flex-end; gap: 3px; overflow: hidden; }
.g-chart i { flex: 0 0 6px; background: var(--line-strong); border-radius: 1px; transition: height .3s var(--ease); }
.g-chart i:last-child { background: var(--ink); }
.g-legend { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
@media (max-width: 720px) { .game { padding: 18px 16px 14px; } .game-canvas { height: 210px; } .g-right { margin-left: 0; } .game-hud { gap: 6px 18px; } .game-hud b { font-size: 18px; } }

/* ---------- Kanban loop (dark) ---------- */
.brain { border: 1px solid #292524; border-radius: 20px; padding: 28px; background: #0f0d0c; }
.brain-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.lvl { display: flex; align-items: center; gap: 16px; position: relative; }
.ring { position: relative; width: 56px; height: 56px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #292524; stroke-width: 2.5; }
.ring #xp-ring { stroke: var(--paper); stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset .8s var(--ease); stroke-linecap: round; }
.ring b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -0.03em; }
.lvl-title { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.lvl-sub { font-family: var(--mono); font-size: 12px; color: #78716c; margin-top: 2px; }
.levelup { position: absolute; left: 64px; top: -18px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  background: var(--paper); color: var(--ink); padding: 3px 8px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s var(--ease); }
.levelup.show { opacity: 1; transform: none; }
.ring.pop { animation: pop .7s var(--ease); }
@keyframes pop { 40% { transform: scale(1.15); } }
.kpis { display: flex; gap: 40px; }
.kpis div { display: grid; }
.kpis b { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -0.04em; line-height: 1.1; transition: color .4s; }
.kpis b.flash { color: #a8a29e; }
.kpis span { font-size: 12px; color: #78716c; }
.xp-bar { height: 2px; background: #292524; margin: 24px 0; overflow: hidden; border-radius: 2px; }
.xp-bar i { display: block; height: 100%; width: 0; background: var(--paper); transition: width .8s var(--ease); }
.board-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; }
/* A fixed height, so cards moving between columns never make the page below jump. */
.col { background: #171412; border: 1px solid #211e1c; border-radius: 14px; padding: 14px; height: 480px; overflow: hidden; }
.col-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.col-head .n { font-family: var(--mono); font-size: 11px; color: #78716c; }
.col-head .cnt { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #a8a29e; border: 1px solid #292524; border-radius: 999px; padding: 1px 8px; }
.col-sub { font-size: 12px; color: #78716c; margin: 4px 0 14px; }
.col-body { display: grid; gap: 8px; align-content: start; }
.kcard { background: #1c1917; border: 1px solid #292524; border-radius: 10px; padding: 12px; font-size: 13px; line-height: 1.4; will-change: transform; }
.kcard.enter { animation: enter .5s var(--ease); }
.kcard.leave { animation: leave .5s var(--ease) forwards; }
@keyframes enter { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes leave { to { opacity: 0; transform: scale(.94); } }
.kc-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: #78716c; margin-bottom: 6px; }
.kcard p { color: #e7e5e4; }
.kc-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: #a8a29e; flex-wrap: wrap; }
.kc-impact { flex: 1; height: 3px; background: #292524; border-radius: 3px; overflow: hidden; min-width: 40px; }
.kc-impact i { display: block; height: 100%; background: #d6d3d1; }
.kc-prog { width: 100%; height: 3px; background: #292524; border-radius: 3px; overflow: hidden; }
.kc-prog i { display: block; height: 100%; width: 0; background: var(--paper); }
.kc-chip { border: 1px solid #44403c; border-radius: 999px; padding: 1px 8px; color: #d6d3d1; }
.kc-xp { background: var(--paper); color: var(--ink); border-radius: 999px; padding: 1px 8px; }
.sim-note { font-size: 12px; color: #57534e; margin-top: 16px; }
@media (max-width: 860px) { .brain { padding: 18px; } .kpis { gap: 24px; } .kpis b { font-size: 22px; } .col { height: 440px; } }

/* ---------- Product rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1.1fr 1.6fr 140px; gap: 24px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .3s;
}
.row .idx { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.row .name { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); letter-spacing: -0.04em; line-height: 1.1; }
.row .desc { color: var(--subtle); font-size: 15px; }
.row .go { justify-self: end; font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; transition: color .2s; }
a.row:hover { padding-left: 16px; padding-right: 16px; background: var(--ink); color: var(--paper); }
a.row:hover .desc, a.row:hover .idx, a.row:hover .go { color: #a8a29e; }
a.row:hover .go { color: var(--paper); }
@media (max-width: 860px) {
  .row { grid-template-columns: 40px 1fr; gap: 8px 16px; }
  .row .desc { grid-column: 2; }
  .row .go { display: none; }
}

/* ---------- Venture field ---------- */
.field-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.field { display: grid; grid-template-columns: repeat(17, 1fr); gap: 6px; }
.field i {
  aspect-ratio: 1; border: 1px solid var(--line-strong); display: block; transition: background .5s, border-color .5s, transform .3s;
}
.field i.live { background: var(--ink); border-color: var(--ink); }
.field i.build { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 4px); border-color: var(--ink); }
.field i.idea { border-color: var(--ink); }
.field i.pop { animation: pop-in .5s var(--ease); }
@keyframes pop-in { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.field i.closed { position: relative; border-color: var(--ink); animation: closing 1.8s ease forwards; }
.field i.closed::before, .field i.closed::after, .legend i.closed::before, .legend i.closed::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 120%; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.field i.closed::after, .legend i.closed::after { transform: translate(-50%, -50%) rotate(-45deg); }
@keyframes closing { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
.legend i.closed { position: relative; border-color: var(--ink); overflow: hidden; }
.field-note { margin-top: 14px; font-size: 12px; color: var(--muted); }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(.6); background: var(--ink); } 100% { transform: scale(1); } }
.legend { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-size: 13px; color: var(--subtle); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border: 1px solid var(--line-strong); display: inline-block; }
.legend i.live { background: var(--ink); border-color: var(--ink); }
.legend i.build { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 4px); border-color: var(--ink); }
.legend i.idea { border-color: var(--ink); }
@media (max-width: 960px) { .field-wrap { grid-template-columns: 1fr; gap: 40px; } .field { grid-template-columns: repeat(14, 1fr); gap: 4px; } }

/* ---------- Quote ---------- */
.quote { font-family: var(--display); font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -0.04em; line-height: 1.08; max-width: 1080px; }
.quote-by { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-size: 15px; }
.quote-by .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; }
.quote-by small { display: block; color: var(--muted); font-size: 14px; }
.on-dark .quote-by .avatar { background: var(--paper); color: var(--ink); }

/* ---------- Cards / CTA ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-card {
  position: relative; min-height: 340px; padding: 40px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between;
  transition: background .35s, color .35s, border-color .35s; overflow: hidden;
}
.cta-card h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; max-width: 420px; }
.cta-card p { color: var(--subtle); max-width: 420px; margin-top: 16px; transition: color .35s; }
.cta-card .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.cta-card:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-card:hover p { color: #a8a29e; }
/* A card that holds a form instead of being a link: no dark hover. */
.cta-card.cta-static:hover { background: var(--paper); color: var(--ink); border-color: var(--line); }
.cta-card.cta-static:hover p { color: var(--subtle); }
.subscribe { margin-top: 28px; position: relative; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row .input { flex: 1; min-width: 0; }
.subscribe-row .btn { height: auto; }
@media (max-width: 480px) { .subscribe-row { flex-direction: column; } .subscribe-row .btn { justify-content: center; height: 44px; } }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } .cta-card { min-height: 260px; padding: 28px; } }

/* ---------- Prose + tables ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.split .sticky { position: sticky; top: 108px; align-self: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } .split .sticky { position: static; } }
.prose { font-size: 17px; color: var(--subtle); max-width: 680px; }
.prose strong { color: var(--ink); font-weight: 500; }
.on-dark .prose strong { color: var(--paper); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--ink); }
.table td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--subtle); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table tr.link-row { cursor: pointer; transition: background .2s; }
.table tr.link-row:hover td { background: var(--paper-2); }
.table-scroll { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border: 1px solid var(--ink); }
.status.live::before { background: var(--ink); }
.status.build::before { background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 3.5px); }

/* Steps (rocket launch) */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage { border: 1px solid var(--line); padding: 32px; position: relative; }
.stage .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stage h3 { margin: 48px 0 12px; }
.stage p { color: var(--subtle); font-size: 15px; }
.stage .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.chip { font-family: var(--mono); font-size: 12px; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; color: var(--subtle); }
.stage.final { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stage.final p { color: #a8a29e; }
.stage.final .chip { border-color: #44403c; color: #d6d3d1; }
@media (max-width: 860px) { .stages { grid-template-columns: 1fr; } }

/* People */
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.person { border: 1px solid var(--line); padding: 32px; }
.person .portrait { width: 100%; aspect-ratio: 1; margin-bottom: 28px; background: var(--paper); display: block; }
.person h3 { font-size: 26px; }
.person .role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 8px 0 16px; }
.person p { color: var(--subtle); font-size: 15px; }
.person .links { display: flex; gap: 20px; margin-top: 20px; font-size: 14px; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }

/* Jobs */
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1.2fr 1fr 2fr auto; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.job h3 { font-size: 24px; }
.job .team { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.job p { color: var(--subtle); font-size: 15px; }
@media (max-width: 860px) { .job { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.field-group .hint { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; line-height: 1.45; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input::placeholder, .textarea::placeholder { color: #a8a29e; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,10,9,.08); }
.dropzone {
  border: 1px dashed var(--line-strong); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
  color: var(--subtle); font-size: 14px;
}
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--paper-2); }
.dropzone strong { color: var(--ink); font-weight: 500; }
.upload { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
.upload.show { display: block; }
.upload .top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.upload .bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.upload .bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .15s linear; }
.upload .pct { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,10,9,.45); display: grid; place-items: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--paper); width: 100%; max-width: 460px; padding: 36px; border-radius: 20px; transform: translateY(12px) scale(.98); transition: transform .35s var(--ease); }
.modal-backdrop.open .modal { transform: none; }
.modal .check { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; margin-bottom: 24px; }
.modal h3 { font-size: 28px; margin-bottom: 10px; }
.modal p { color: var(--subtle); font-size: 15px; }
.modal .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding: 96px 0 40px; border-top: 1px solid #292524; }
.footer-top { display: grid; grid-template-columns: 3fr 1fr; gap: 40px; padding-bottom: 80px; }
.footer-top h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #78716c; margin-bottom: 18px; }
.footer-top ul { list-style: none; display: grid; gap: 10px; font-size: 15px; color: #d6d3d1; }
.footer-top a:hover { color: var(--paper); }
.footer-claim { font-family: var(--display); font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.04em; line-height: 1.1; max-width: 420px; }
.footer-word { font-family: var(--brand); font-weight: 700; font-size: min(15.6vw, 222px); letter-spacing: -0.06em; line-height: .8; color: #1c1917; margin: 0 -0.04em; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid #292524; font-size: 13px; color: #78716c; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loop-step.lit::before { animation: none; width: 100%; }
}
