/* Vesper AI, proposal C: black and graphite. One family, one mono for data. 24px line. */
:root {
  --line: 1.5rem; --pad-x: 1rem; --measure: 62ch;
  --bg: #000000; --surface: #0c0c0d; --ink: #f2f2f2; --muted: #8b8b8f; --dim: #55555a; --rule: #222225; --rule-strong: #3a3a3f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/var(--line) var(--sans); font-variant-numeric: tabular-nums; padding: 0 var(--pad-x) calc(var(--line) * 3); }
@media (min-width: 48rem) { :root { --pad-x: 3rem; } }
@media (min-width: 72rem) { :root { --pad-x: 6rem; } }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
p { margin: 0 0 var(--line); max-width: var(--measure); }
h1, h2, h3 { margin: 0; font-weight: 500; }
.mono { font-family: var(--mono); font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.02em; color: var(--muted); }

/* scroll progress hairline */
.progress { position: fixed; top: 0; left: 0; height: 1px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); z-index: 3; will-change: transform; }

/* top bar */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: calc(var(--line) * 3);
  margin: 0 calc(var(--pad-x) * -1); padding: 0 var(--pad-x); background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--rule); }
.mark { display: inline-flex; align-items: center; gap: 0.625rem; font-weight: 500; }
.mark i { width: 0.5rem; height: 0.5rem; background: var(--ink); }
.nav { display: flex; gap: var(--line); align-items: center; }
.nav a { color: var(--muted); font-size: 0.875rem; }
.nav a:hover { color: var(--ink); }
.clock { display: none; }
@media (min-width: 48rem) { .clock { display: inline; padding-left: var(--line); border-left: 1px solid var(--rule); } }

/* hero */
.hero { position: relative; height: calc(100vh - var(--line) * 3); height: calc(100svh - var(--line) * 3); padding: 0; margin: 0 calc(var(--pad-x) * -1); }
/* the name stays put; the page scrolls over it while it darkens and fades */
.matrix { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 0; pointer-events: none; will-change: transform; transform: translateZ(0); }
main > section:not(.hero), footer { position: relative; z-index: 1; background: var(--bg); }
/* screen two: the promise */
.hero { border-top: 0; }
.intro { border-top: 0; padding-top: calc(var(--line) * 4); padding-bottom: calc(var(--line) * 5); min-height: calc(100vh - var(--line) * 3); min-height: calc(100svh - var(--line) * 3); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.intro h1 { font-size: 2.25rem; line-height: calc(var(--line) * 1.5); letter-spacing: -0.025em; max-width: 16ch; margin-bottom: var(--line); }
@media (min-width: 48rem) { .intro h1 { font-size: 3.5rem; line-height: calc(var(--line) * 2.5); } }
@media (min-width: 72rem) { .intro h1 { font-size: 4.25rem; line-height: calc(var(--line) * 3); } }
.intro .lead { color: var(--muted); font-size: 1.125rem; max-width: 42ch; }
/* the name is the hero; the sentence is a quiet line under it */
.hero h1 { font-size: 1.25rem; line-height: var(--line); font-weight: 400; letter-spacing: -0.005em; color: var(--ink); max-width: 44ch; margin-bottom: 0.25rem; }
.hero .lead { color: var(--muted); font-size: 1rem; max-width: 48ch; margin-bottom: 0; }
.hero-cta { display: flex; gap: var(--line); align-items: center; flex-wrap: wrap; margin-top: var(--line); }
.btn { display: inline-block; padding: 0.75rem 1.25rem; border: 1px solid var(--rule-strong); font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--surface); transition: border-color .3s, background-color .3s; }
.btn:hover { border-color: var(--ink); background: #141416; }
.quiet { font-size: 0.875rem; color: var(--muted); border-bottom: 1px solid var(--rule-strong); transition: color .3s, border-color .3s; }
.quiet:hover { color: var(--ink); border-color: var(--ink); }

/* wipe-in lines */
.wipe { clip-path: inset(0 100% 0 0); }
.in .wipe { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.2,1); transition-delay: calc(.1s + var(--i, 0) * .22s); }

/* sections */
section { padding: calc(var(--line) * 2) 0 calc(var(--line) * 4); border-top: 1px solid var(--rule); }
.cols { display: grid; gap: 0 var(--line); }
.label { font-size: 0.6875rem; line-height: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); height: var(--line); margin-bottom: var(--line); display: flex; justify-content: space-between; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 3fr; } .label { padding-right: var(--line); } }

/* products: a ledger */
.products { list-style: none; margin: 0; padding: 0; }
.products li { position: relative; display: grid; gap: 0 var(--line); grid-template-columns: 1fr auto; padding: var(--line) 0; border-bottom: 1px solid var(--rule); transition: background-color .3s; }
.products li::before { content: ""; position: absolute; left: calc(var(--line) * -1); top: 0; bottom: 0; width: 1px; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.65,0,.2,1); }
.products li:hover::before { transform: scaleY(1); }
.products h3 { font-size: 1.125rem; line-height: var(--line); }
.products .badge { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
.products p { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.products .meta { grid-column: 1 / -1; margin-top: 0.5rem; }
@media (min-width: 48rem) {
  .products li { grid-template-columns: 12rem 1fr auto; }
  .products p, .products .meta { grid-column: 2; }
  .products .badge { grid-column: 3; }
}
.badge { font-family: var(--mono); font-size: 0.6875rem; line-height: 1rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.5rem; border: 1px solid var(--rule-strong); color: var(--ink); white-space: nowrap; }
.badge.soon { color: var(--muted); border-style: dashed; }

/* facts */
.facts { margin: 0; padding: 0; list-style: none; max-width: var(--measure); }
.facts li { position: relative; padding: 0 0 var(--line) 1.5rem; }
.facts li::before { content: ""; position: absolute; left: 0; top: calc(var(--line) / 2); width: 0.75rem; height: 1px; background: var(--ink); }
.facts li strong { font-weight: 500; display: block; }

/* reveal: rows rise with a short delay, rules draw */
[data-reveal] .products li, [data-reveal] .body > p, [data-reveal] .facts li, [data-reveal] .label { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * .08s); }
[data-reveal].in .products li, [data-reveal].in .body > p, [data-reveal].in .facts li, [data-reveal].in .label { opacity: 1; transform: none; }

footer { border-top: 1px solid var(--rule); padding-top: var(--line); color: var(--muted); font-size: 0.8125rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 0.25rem var(--line); justify-content: space-between; }
footer address { font-style: normal; }
footer a:hover { color: var(--ink); }

/* legal pages */
.legal h1 { font-size: 2rem; line-height: calc(var(--line) * 2); letter-spacing: -0.02em; margin-bottom: var(--line); }
.legal h2 { font-size: 1rem; font-weight: 500; margin-top: var(--line); }
.legal ul { max-width: var(--measure); padding-left: 1.25rem; margin: 0 0 var(--line); }
.legal .updated { color: var(--muted); }
.legal a { text-decoration: underline; text-underline-offset: 0.15em; }

@media (prefers-reduced-motion: reduce) {
  .wipe, .in .wipe { clip-path: none; transition: none; }
  [data-reveal] .products li, [data-reveal] .body > p, [data-reveal] .facts li, [data-reveal] .label { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* stagger indices live in CSS so the pages need no inline styles (strict CSP) */
.intro h1 .wipe:nth-child(1) { --i: 0; } .intro h1 .wipe:nth-child(3) { --i: 1; } .intro h1 .wipe:nth-child(5) { --i: 2; }
.intro .lead { --i: 3; } .intro .hero-cta { --i: 4; }
.products li:nth-child(1) { --i: 1; } .products li:nth-child(2) { --i: 2; } .products li:nth-child(3) { --i: 3; } .products li:nth-child(4) { --i: 4; } .products li:nth-child(5) { --i: 5; }
.body > p:nth-of-type(1) { --i: 0; } .body > p:nth-of-type(2) { --i: 1; } .body > p:nth-of-type(3) { --i: 5; }
.facts li:nth-child(1) { --i: 2; } .facts li:nth-child(2) { --i: 3; } .facts li:nth-child(3) { --i: 4; }

/* legal page extras: subsections, tables, language switch */
.legal h3 { font-size: 20px; margin: var(--line, 24px) 0 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 var(--line, 24px); font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 6px 14px 6px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.legal th { font-weight: 600; opacity: .7; }
.legal .lang a { margin-right: 20px; opacity: .7; }
.legal .lang a:hover { opacity: 1; }
.legal section + section { margin-top: calc(3 * var(--line, 24px)); padding-top: calc(2 * var(--line, 24px)); border-top: 1px solid rgba(255,255,255,.12); }
