:root {
  /* Blue hour at Ribersborg (DESIGN §3, 2026-11-05) */
  --bg: #f4f6f9;
  --surface: #e6ebf2;
  --night: #121a2b;
  --night-2: #172540;
  --dusk: #22385f;
  --sky: #2b4677;
  --sky-low: #3a5d9a;
  --glow: rgba(216, 160, 115, .34);
  --lamp: #f6d77a;
  /* the sunset on the horizon (sampled 2026-11-05: #FEF5A1, #FEC77A, #FAAB7E, #E8A08A, deepened: the phone overexposed it) */
  --sun: #F6D77A;     /* big numbers, light buttons on the stage */
  --amber: #F2B05E;   /* small labels on the stage */
  --orange: #E8854A;  /* the band only */
  --ember: #C8503A;   /* the band only */
  --mauve: #8E6A7A;   /* where the sunset meets the blue */
  --rust: #A8432C;    /* labels on the light sections: 5.5:1 on haze, 5.0:1 on mist */
  --horizon: linear-gradient(90deg, var(--mauve) 0%, var(--ember) 22%, var(--orange) 42%, var(--amber) 60%, var(--sun) 76%, var(--sky-low) 100%);
  --on-night: #f1f3f7;
  --on-night-2: #c3cee2;
  --rule-night: #2e4266;
  --ink: #121a2b;
  --ink-2: #465269;
  --rule: #cdd4df;
  --seal: #a3271c;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Motion tokens (DESIGN §6). No other durations in this file. */
  --dur-press: 140ms;
  --dur-ui: 180ms;
  --dur-arrive: 400ms;
  --stagger: 60ms;
  --dur-partial: 880ms;
  --dur-full: 2600ms;
  --margin: 20px;
  --section: 96px;
}
@media (min-width: 600px) { :root { --margin: 24px; } }
@media (min-width: 1200px) { :root { --margin: 64px; --section: 160px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* Instrument Sans (OFL, fonts/OFL.txt), self-hosted; weights 400 and 500 only (DESIGN §2). */
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/InstrumentSans-Medium.woff2") format("woff2");
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, "Helvetica Neue", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 25px;
}
@media (min-width: 600px) { body { font-size: 17px; line-height: 27px; } }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3, strong { font-weight: 500; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 11; background: var(--ink); color: white; padding: 8px 12px; }
.skip:focus { top: 8px; }
.wrap { width: min(100%, 1328px); margin-inline: auto; padding-inline: var(--margin); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.wordmark-mark { width: 24px; height: 24px; margin-right: 10px; flex: none; }
.wordmark-place { color: var(--ink-2); font-weight: 400; }
.wordmark-short { display: none; }
.nav nav { display: flex; gap: 8px; }
.nav nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; }
.small, figcaption { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
/* Stage: the dark room with one pool of light, where the object sits (DESIGN §3, §4). */
.stage { background: var(--night); color: var(--on-night); --ink: var(--on-night); --ink-2: var(--on-night-2); --rule: var(--rule-night); }
.has-stage .nav-band { background: var(--night); color: var(--on-night); position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule-night); }
html { scroll-padding-top: 72px; }
.has-stage .nav-band .wordmark-mark { filter: invert(1); }
.has-stage .nav-band .wordmark-place { color: var(--on-night-2); }
.has-stage .nav-band :focus-visible, .stage :focus-visible { outline-color: var(--amber); }
.intro {
  width: 100%; max-width: none; background: var(--surface);
  background: linear-gradient(180deg, var(--night-2) 0%, var(--sky) 60%, var(--night) 100%);
  padding: clamp(72px, 9vw, 120px) max(var(--margin), calc((100vw - 1200px) / 2)) 64px;
}
.intro .small { margin-bottom: 18px; }
h1 { max-width: 900px; font-size: 40px; line-height: 44px; letter-spacing: -.02em; }
.lead { max-width: 640px; margin-top: 24px; color: var(--ink-2); font-size: 18px; line-height: 27px; }
@media (min-width: 600px) {
  h1 { font-size: clamp(48px, 5.2vw, 84px); line-height: .98; letter-spacing: -.045em; }
  .lead { font-size: 20px; line-height: 30px; }
}
.measure { max-width: 640px; }
.intro .measure { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.intro-grid { width: min(100%, 1200px); margin-inline: auto; }
.home-hero { margin-top: 36px; }
.home-hero picture { display: block; }
.home-hero img { width: 100%; height: auto; }
.home-hero figcaption { margin-top: 10px; }
.intro-stats, .project-facts { padding: 0; list-style: none; display: grid; border-top: 1px solid var(--rule); }
.intro-stats { width: min(100%, 1200px); margin: 44px auto 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.intro-stats li, .project-facts li { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 0 0; }
.intro-stats strong, .project-facts strong { font-size: 20px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.intro-stats span, .project-facts span { color: var(--ink-2); font-size: 13px; line-height: 19px; }
@media (min-width: 900px) {
  .home-intro { padding-top: clamp(72px, 8vw, 112px); padding-bottom: 72px; }
  .intro-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: 48px; }
  .intro-copy { max-width: 520px; }
  .home-hero { margin-top: 0; }
}
/* Motion (DESIGN §6). Every animation fills backwards only: the end state is the element's own style, so with
   reduced motion, unsupported features or after the run, everything shows as written. */
@media (prefers-reduced-motion: no-preference) {
  /* M1: intro text arrives blur-to-sharp, once, --stagger apart. The actions never animate. */
  .home-intro .intro-copy > .small,
  .home-intro .intro-copy > h1,
  .home-intro .intro-copy > .lead,
  .home-intro .intro-copy > .measure {
    animation: intro-arrive var(--dur-arrive) var(--ease-out) backwards;
  }
  .home-intro .intro-copy > h1 { animation-delay: var(--stagger); }
  .home-intro .intro-copy > .lead { animation-delay: calc(var(--stagger) * 2); }
  .home-intro .intro-copy > .measure { animation-delay: calc(var(--stagger) * 3); }
  /* M2: the render appears top to bottom in 8 bands, like one partial refresh. No fade, no blur. */
  .home-hero picture { animation: fade-soft var(--dur-arrive) var(--ease-out) backwards; }
  /* M3: the one statement on home sharpens as it scrolls in; no-op where scroll timelines are unsupported. */
  @supports (animation-timeline: view()) {
    .data-section .lead { animation: sharpen linear backwards; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  }
}
@keyframes intro-arrive { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } }
@keyframes refresh-reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes sharpen { from { filter: blur(4px); } } /* blur only: opacity would drop the text below AA while it waits */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px; background: var(--ink); color: white; font-weight: 500; text-decoration: none; transition: transform var(--dur-press) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .btn:active:not(:focus-visible) { transform: scale(.97); }
}
.textlink { display: inline-flex; align-items: center; min-height: 44px; }
.section { padding-top: var(--section); }
h2 { margin-bottom: 32px; font-size: 26px; line-height: 32px; letter-spacing: -.01em; }
@media (min-width: 600px) { h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.025em; } }
/* Featured project (Dabbit row): the real art screen beside the copy, ruled above and below, no card chrome. */
.project { display: grid; gap: 24px; padding: 32px 0; border-block: 1px solid var(--rule); }
.project-art { width: 100%; max-width: 800px; outline: 1px solid var(--rule); }
.project-index { margin-bottom: 12px; }
.project-copy h3 { margin-bottom: 8px; font-size: 27px; line-height: 1.2; letter-spacing: -.015em; }
.project-copy > p { max-width: 600px; color: var(--ink-2); }
.project-facts { margin: 24px 0 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.project-link span { display: inline-block; transition: transform var(--dur-ui) var(--ease-out); }
@media (min-width: 900px) {
  .project { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
}
.data-section {
  width: 100%; max-width: none; margin: 0;
  padding: var(--section) max(var(--margin), calc((100vw - 1200px) / 2));
  background: var(--surface);
}
.data-section > .small:first-child { margin-bottom: 12px; }
.data-section h2 { max-width: 760px; margin-bottom: 18px; }
.data-section .lead { margin: 0 0 16px; }
.examples-heading { max-width: 820px; margin: 36px 0 12px; font-size: 20px; line-height: 28px; font-weight: 500; }
.examples { max-width: 820px; margin: 36px 0 24px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.examples li { display: grid; grid-template-columns: minmax(150px, .45fr) 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.data-section .examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 24px; }
.data-section .examples li { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 20px 0; }
.data-section .examples li:nth-child(odd) { border-right: 1px solid var(--rule); }
.data-section .examples li:nth-child(even) { padding-inline: 24px 0; }
.data-section .examples strong { font-size: 20px; line-height: 26px; }
.examples li > span { color: var(--ink-2); }
/* Panel mocks (Dabbit live cells): an 800 x 480 screen pinned to the cell bottom. CSS sketches type in cqw,
   so the layout scales with the panel (1cqw = 8 panel pixels). */
.example-panel { margin-top: auto; padding-top: 8px; }
.example-panel figcaption { margin-top: 8px; }
.panel { display: block; width: 100%; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); }
.panel-ui {
  aspect-ratio: 5 / 3; overflow: hidden; container-type: inline-size;
  display: flex; flex-direction: column; padding: 4% 5%;
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.panel-ui > * { font-size: 5.5cqw; }
.panel-ui b { font-weight: 500; }
.panel-head { display: flex; justify-content: space-between; padding-bottom: 2cqw; border-bottom: 1px solid; }
.panel-ui > .panel-head { font-size: 4cqw; }
.panel-board p:not(.panel-head) { display: grid; grid-template-columns: 9cqw minmax(0, 1fr) auto; gap: 3cqw; padding: 3cqw 0; border-bottom: 1px solid; }
.panel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3cqw; margin-top: auto; margin-bottom: auto; }
.panel-row p { display: flex; flex-direction: column; gap: 1cqw; font-size: 4cqw; }
.panel-row b { font-size: 10cqw; line-height: 1; letter-spacing: -.02em; }
.panel-ui > .panel-big { margin-top: auto; font-size: 6cqw; }
.panel-big ~ p { margin-top: 2cqw; }
.panel-big b { font-size: 16cqw; line-height: 1; letter-spacing: -.02em; }
.data-section .actions { margin-top: 26px; }
.page-section { padding-top: 48px; }
.figure-caption { margin-top: 12px; }
.measure-spaced { margin-top: 16px; }
.steps { max-width: 900px; margin: 0; padding: 0; list-style: none; counter-reset: workflow; border-top: 1px solid var(--rule); }
.steps li { counter-increment: workflow; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: "0" counter(workflow); color: var(--ink-2); font-size: 13px; }
.step-copy { grid-column: 2; min-width: 0; }
.step-copy strong { display: block; margin-bottom: 4px; font-weight: 500; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--rule); }
.footer p + p { text-align: right; }
/* credit line (NAMING §5) on its own row under the footer pair; the margin keeps its 44 px hit area clear of the
   Instagram link's (16 px gap + 12 px > 2 x 13 px of padding past each line box) */
.footer .footer-credit { width: 100%; margin-top: 12px; text-align: left; }
/* hit area >= 44px (DESIGN 9) without moving the text; padding on an inline anchor does not alter layout */
.footer a { padding-block: 15px; }

@media (max-width: 699px) {
  .nav { align-items: flex-start; padding-top: 8px; }
  .nav nav { gap: 0; }
  .nav nav a { padding-inline: 5px; font-size: 14px; }
  .wordmark { font-size: 14px; }
  .examples li { grid-template-columns: 1fr; gap: 2px; }
  .data-section .examples { grid-template-columns: 1fr; }
  .data-section .examples li, .data-section .examples li:nth-child(even) { padding: 14px 0; }
  .data-section .examples li:nth-child(odd) { border-right: 0; }
  .footer { flex-direction: column; }
  .footer p + p { text-align: left; }
}
@media (max-width: 699px) {
  .wordmark-long, .wordmark-place { display: none; }
  .wordmark-short { display: inline; }
  .nav nav a { font-size: 13px; }
}
@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .nav nav a:hover, .project-link:hover { text-decoration: underline; }
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .project-link:hover span { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 699px) { .intro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; } }

/* ---- Home, 2026-11-05: the platform first, then product 01, then the door to /build (DESIGN §7) ---- */
.stage { background: radial-gradient(ellipse 70% 26% at 50% 100%, rgba(232, 133, 74, .30) 0%, rgba(200, 80, 58, .14) 45%, transparent 75%), linear-gradient(180deg, var(--dusk) 0%, var(--night-2) 60%, var(--night) 100%); }
.has-stage .nav-band { border-bottom: 0; }
.has-stage .nav-band::after { content: ""; display: block; height: 2px; background: var(--horizon); }
.product { border-top: 2px solid transparent; border-image: var(--horizon) 1; }
.kicker { color: var(--rust); }
.stage .kicker { color: var(--amber); }
.kicker { margin: 0 0 14px; letter-spacing: .02em; }
.display-2 { font-size: clamp(32px, 4.8vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.btn-light, .stage .btn-light { background: var(--sun); color: var(--night); }
.stage .textlink { color: var(--on-night); }
/* The hero: the blue hour, horizon glow low behind the chain of three */
.platform { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); text-align: center;
  /* the sunset sits low, behind the chain of three, like the horizon in the photo */
  background: radial-gradient(ellipse 50% 8% at 50% 76%, rgba(246, 215, 122, .5) 0%, rgba(232, 133, 74, .3) 45%, transparent 78%),
    linear-gradient(180deg, var(--night-2) 0%, var(--sky) 34%, var(--sky-low) 58%, #6E7096 67%, var(--mauve) 71%, var(--ember) 74%, var(--orange) 75.4%, var(--amber) 76.3%, var(--sun) 76.9%, var(--dusk) 78.4%, var(--night) 100%); }
.platform-copy { display: grid; justify-items: center; }
.platform h1 { max-width: 14ch; font-size: clamp(44px, 8vw, 120px); line-height: .94; letter-spacing: -.05em; margin: 0 0 22px; }
.platform .lead { color: var(--on-night); max-width: 46ch; margin: 0 auto; } /* on-night-2 drops to 4.4:1 over the lighter sky */
.chain { list-style: none; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: link; text-align: left; }
.chain .link { position: relative; display: grid; gap: 8px; align-content: start; counter-increment: link; padding: 14px; border: 1px solid var(--rule-night); border-radius: 6px; background: rgba(18, 26, 43, .82); min-width: 0; } /* opaque enough that text keeps AA over the sunset band */
.chain .link + .link::before { content: "→"; position: absolute; left: -15px; top: 72px; transform: translateX(-50%); color: var(--amber); font-size: 18px; }
.chain figure { margin: 0 0 4px; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.chain figure img { width: 100%; height: 100%; object-fit: contain; }
.chain .code { background: #0d1422; border-radius: 4px; place-items: stretch; }
.chain pre { margin: 0; padding: 12px; overflow: auto; font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; color: var(--on-night); text-align: left; }
.chain .step { font-weight: 500; font-size: 18px; color: var(--on-night); }
.chain .step::before { content: counter(link) "  "; color: var(--amber); font-variant-numeric: tabular-nums; }
.chain span:not(.step) { color: var(--on-night-2); font-size: 15px; line-height: 1.45; }
.chain-note { margin-top: 12px; color: var(--on-night-2); }
.platform .actions { justify-content: center; margin-top: 36px; }
@media (max-width: 860px) { .chain { grid-template-columns: 1fr; max-width: 520px; } .chain .link + .link::before { left: 50%; top: -14px; content: "↓"; } }
/* How it works */
#how h2 { max-width: 16ch; }
.cells3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.cells3 article, .ways article { border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.cells3 h3, .ways h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.cells3 p, .ways p { color: var(--ink-2); margin: 0; }
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.ways article { background: var(--surface); border: 0; border-radius: 6px; padding: 22px; }
.ways .kicker { margin: 0; color: var(--rust); }
.status { justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 4px; }
.status.next { border: 1px solid var(--line, #6f7b91); color: var(--ink-2); }
.status.open { background: var(--seal); color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }
@media (max-width: 860px) { .cells3, .ways { grid-template-columns: 1fr; } }
/* Product 01 */
.product { margin-top: var(--section); padding: clamp(56px, 8vw, 112px) 0; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.product-figure { margin: 0; }
.product-figure img { width: 100%; height: auto; }
.product-copy p { color: var(--on-night-2); max-width: 44ch; margin: 0 0 24px; }
.facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-night); }
.facts li { display: grid; gap: 4px; padding: 14px 12px 0 0; }
.facts strong { font-size: 24px; letter-spacing: -.02em; color: var(--lamp); font-variant-numeric: tabular-nums; }
.facts span { font-size: 13px; color: var(--on-night-2); line-height: 1.4; }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr; } }
/* The door to /build */
.yours { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.yours .lead { margin: 0 0 24px; }
@media (max-width: 860px) { .yours { grid-template-columns: 1fr; gap: 8px; } }

/* M14: the logo, live, above the headline (DESIGN.md §6, NAMING.md §1) */
.harmonic { position: relative; width: clamp(180px, 26vw, 320px); aspect-ratio: 1; margin: 0 auto 28px; }
.harmonic img, .harmonic canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.harmonic img { opacity: 1; } /* the plain mark in its own black when the script does not run */
.harmonic.is-live img { display: none; }

/* the prompt card in the hero chain: what you say, then what happens */
.chain .prompt { display: grid; align-content: center; gap: 12px; padding: 16px; text-align: left; }
.chain .prompt .ask { margin: 0; color: var(--on-night); font-size: 16px; line-height: 1.4; padding: 12px 14px; border-radius: 10px 10px 10px 2px; background: var(--dusk); }
.chain .prompt .reply { margin: 0; color: var(--on-night-2); font-size: 13.5px; line-height: 1.4; }
.ways { margin-top: 24px; }
.product + .band-mist { margin-top: 0; }
/* the top bar reserve button, as on the product page */
.btn-seal { background: var(--seal); color: #fff; }
.nav nav { align-items: center; }
.nav nav a.btn-sm { min-height: 36px; padding: 0 14px; margin-left: 8px; font-size: 14px; position: relative; color: #fff; }
.nav nav a.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }
@media (max-width: 519px) { .nav nav a.btn-sm { padding: 0 10px; font-size: 13px; } }

@keyframes fade-soft { from { opacity: 0; } }
