:root {
  --paper: #FAFAF0;
  --ink: #5B4BCF;
  --ink-deep: #2C2378;
  --ink-a1: rgb(91 75 207 / .1);
  --ink-a2: rgb(91 75 207 / .24);
  --text: #35305F;
  --muted: #66628A;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.125rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .29 0 0 0 0 .81 .22 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
canvas, svg { display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.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; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 60; background: var(--ink); color: var(--paper); padding: .6em 1em; font: .8rem var(--mono); }
.skip:focus { top: 12px; }

/* type */
h1, h2, h3 { margin: 0; font-weight: 380; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.75rem); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; }
h3 { font-size: 1.6rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
.eyebrow {
  display: flex; align-items: center; gap: .7em;
  margin: 0 0 1.4rem;
  font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.eyebrow.center { justify-content: center; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.lede { max-width: 34em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.fine { margin: 14px 0 0; font: .7rem/1.5 var(--mono); letter-spacing: .02em; color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1.05em 1.6em;
  font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px;
  cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); text-decoration: none; }
.btn-sm { padding: .85em 1.15em; font-size: .7rem; }
.link-arrow { display: inline-block; padding-block: 12px; margin-block: -12px; font: 500 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 500 .95rem/1 var(--serif); letter-spacing: .24em; }
.brand:hover { text-decoration: none; }
.mark { width: 34px; height: 22px; stroke: currentColor; flex: none; }
.nav-links { display: flex; gap: 36px; font-size: 1rem; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-block: clamp(24px, 5vw, 72px) clamp(48px, 7vw, 100px);
}
.hero-copy .lede { margin: 1.6rem 0 2.2rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-art { position: relative; margin: 0; aspect-ratio: 1.12; }
.hero-art canvas, .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dither { image-rendering: pixelated; }
.hero-art figcaption { position: absolute; left: 0; bottom: -28px; font: .68rem/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 1.15; }
}

/* specs */
.specs dl {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: 0; background: var(--ink-a2); border-block: 1px solid var(--ink-a2);
}
.specs dl > div { padding: 28px 24px 30px; background: var(--paper); }
.specs dl > div:first-child { padding-left: 0; }
.specs dt { font: 500 .68rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; }
.specs .big { margin-top: .6rem; font-size: clamp(2.1rem, 3.8vw, 3.3rem); font-weight: 340; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.specs .note { margin-top: .8rem; font-size: .95rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) {
  .specs dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs dl > div, .specs dl > div:first-child { padding: 22px 16px 24px; }
}
@media (max-width: 560px) { .specs .big { font-size: 1.8rem; } }

/* sections */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head > p { max-width: 30em; margin: 0; color: var(--muted); }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0, 1fr); } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.trio article { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--ink); }
.trio canvas { width: 100%; height: 220px; margin-bottom: 18px; }
.trio h3 { display: flex; align-items: baseline; gap: .55em; }
.num { font: .75rem var(--mono); color: var(--muted); }
.trio p { margin: .6rem 0 16px; color: var(--muted); }
.tag { display: inline-block; align-self: flex-start; margin-top: auto; padding: .4em .8em; font: .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border: 1px solid var(--ink-a2); border-radius: 999px; }
@media (max-width: 860px) { .trio { grid-template-columns: minmax(0, 1fr); } .trio canvas { height: 200px; } }
@media (min-width: 561px) and (max-width: 860px) {
  .trio article { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .trio canvas { grid-row: 1 / span 4; height: 180px; margin: 0; }
  .trio .tag { justify-self: start; margin-top: 0; }
}

/* pipeline */
.band { width: 100%; height: 120px; margin-bottom: clamp(32px, 5vw, 56px); }
.pipe-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.flow { margin: 0; padding: 0; list-style: none; }
.flow li {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 18px 0; border-bottom: 1px dashed var(--ink-a2);
}
.flow li:first-child { border-top: 1px dashed var(--ink-a2); }
.flow .k { font: .72rem var(--mono); color: var(--muted); }
.flow b { display: block; font-size: 1.25rem; font-weight: 450; color: var(--ink); }
.flow .d { display: block; margin-top: 4px; font-size: .98rem; line-height: 1.45; color: var(--muted); }
.flow .m { font: .72rem var(--mono); white-space: nowrap; color: var(--ink); }
.term {
  overflow: hidden; color: #E9E6FF; background: var(--ink-deep);
  border-radius: 10px; box-shadow: 14px 14px 0 var(--ink-a1);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / .1); font: .7rem var(--mono); color: #A59CF0; }
.term-bar i { width: 9px; height: 9px; border: 1px solid #8C80F0; border-radius: 50%; }
.term-bar span { margin-left: 8px; }
.term-body { min-height: 17.5em; padding: 20px 20px 24px; font: .8rem/1.75 var(--mono); }
.ln { min-height: 1.75em; margin: 0; white-space: pre-wrap; }
.ln.cmd::before { content: "pi@eversonder:~ $ "; color: #A59CF0; }
.ln.cmd:empty:not(.cur)::before { content: none; }
.ln.sys, .ln.net { color: #A59CF0; }
.ln.you { color: #CFC9FF; }
.ln.pi { color: #fff; }
.ln.cur::after { content: "▍"; color: #A59CF0; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 900px) { .pipe-grid { grid-template-columns: minmax(0, 1fr); } }

/* use cases */
.uses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 52px) clamp(24px, 3vw, 44px); }
.uses-grid article { padding-top: 18px; border-top: 1px solid var(--ink-a2); }
.uses-grid canvas { width: 100%; height: 160px; margin-bottom: 14px; }
.uses-grid h3 { font-size: 1.35rem; }
.uses-grid p { margin: .5rem 0 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 960px) { .uses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .uses-grid { grid-template-columns: minmax(0, 1fr); } }

/* scale ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.ladder article { padding-top: 18px; border-top: 1px solid var(--ink); }
.ladder canvas { width: 100%; height: 210px; margin-bottom: 14px; }
.tier { margin: 0; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.tier em { font-style: italic; font-weight: 300; }
.hw { margin: .4rem 0 0; font: .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.params { margin: .9rem 0 0; font-size: clamp(2rem, 3vw, 2.6rem); font-weight: 340; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.params small { display: block; margin-top: .45rem; font: .68rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ladder .d { margin: .8rem 0 0; font-size: .98rem; color: var(--muted); }
@media (max-width: 960px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ladder { grid-template-columns: minmax(0, 1fr); } }

/* bench results */
.bench-table { width: 100%; margin-top: clamp(28px, 4vw, 44px); border-collapse: collapse; font-size: 1rem; }
.bench-table th, .bench-table td { padding: 12px 16px 12px 0; text-align: right; border-bottom: 1px dashed var(--ink-a2); }
.bench-table thead th { font: 500 .68rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.bench-table tbody th { text-align: left; font-weight: 400; color: var(--text); }
.bench-table th:first-child { text-align: left; }
.bench-table td { font: 500 1rem var(--mono); color: var(--ink); }
.bench-table tbody th small { font: .68rem var(--mono); letter-spacing: .06em; color: var(--muted); margin-left: .4em; }
.bench-h { margin-top: clamp(48px, 6vw, 72px); font-size: 1.5rem; }
.bench-p { max-width: 40em; margin: .6rem 0 0; color: var(--muted); }
@media (max-width: 560px) { .bench-table th, .bench-table td { padding-right: 8px; font-size: .9rem; } }

/* manifesto */
.manifesto { text-align: center; }
.def { margin: 0; font: italic 300 clamp(4.2rem, 13vw, 10.5rem)/.9 var(--serif); letter-spacing: -.04em; color: var(--ink); }
.def small { font: 400 .8rem var(--mono); font-style: normal; letter-spacing: .1em; vertical-align: super; color: var(--muted); }
.manifesto blockquote { max-width: 22em; margin: 28px auto 0; font-size: clamp(1.35rem, 2.6vw, 2.1rem); font-weight: 340; line-height: 1.3; }
.src { margin: 18px 0 0; font: .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.creed {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  margin-top: clamp(56px, 8vw, 96px); padding-top: 32px; text-align: left; border-top: 1px solid var(--ink-a2);
}
.creed h3 { font-size: 1.35rem; }
.creed p { margin: .5rem 0 0; font-size: 1rem; color: var(--muted); }
@media (max-width: 760px) { .creed { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* follow */
.follow { text-align: center; padding-bottom: clamp(40px, 5vw, 64px); }
.follow h2 { max-width: 14em; margin-inline: auto; }
.follow > p { max-width: 30em; margin: 1rem auto 32px; color: var(--muted); }

/* footer */
.footer { position: relative; }
.footer-top { position: absolute; top: clamp(36px, 4.5vw, 72px); left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; gap: 40px; }
.f-brand { max-width: 300px; }
.f-brand p { margin: 14px 0 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.f-brand .copy { margin-top: 40px; color: var(--ink); }
.f-cols { display: flex; gap: clamp(40px, 7vw, 120px); }
.f-h { margin: 0 0 12px; font-size: .8rem; color: var(--muted); }
.f-cols ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.f-cols a { display: inline-block; padding-block: 3px; font-size: 1.08rem; }
.scene { position: relative; height: clamp(480px, 42vw, 680px); }

/* footer reveal: the crowd fades in, then the text settles (only when JS runs) */
.js .scene { opacity: 0; transition: opacity 1.4s ease; }
.js .footer.in .scene { opacity: 1; }
.js .footer-top { opacity: 0; transform: translateY(10px); transition: opacity 1s .5s, transform 1s .5s; }
.js .footer.in .footer-top { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .footer-top { position: static; padding-top: 48px; }
}
@media (max-width: 760px) {
  .footer-top { flex-direction: column; gap: 28px; }
  .scene { height: max(340px, 95vw); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .ln.cur::after { animation: none; }
  .js .scene, .js .footer-top { transition: none; }
}
