/* Monster Intern (a Maynami brand) — "One liquid thread, in daylight" v6
   All values from DESIGN.md. If a value isn't there, it doesn't go here. */

/* ---------- fonts (self-hosted latin subsets, DESIGN §4) ---------- */
@font-face {
  font-family: 'Albert Sans';
  src: url('fonts/albert-sans-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Wix Madefor Text';
  src: url('fonts/wix-madefor-text-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens (DESIGN §3, §6) ---------- */
:root {
  /* grounds */
  --paper:    #F8F7F3;
  --cloud:    #FFFFFF;
  --sky-wash: #DCEEF8;

  /* ink */
  --ink:        #1B1611;
  --ink-muted:  #6E675E;
  --sand:       #E7E1D4;

  /* water */
  --wave-light: #C7E3F5;
  --wave-mid:   #8CC5EA;
  --accent:     #2B6CA3;
  --accent-deep:#1D5B8C;
  --wave-ink:   #123B5C;
  /* the water button's mesh, v7: lifted straight out of the anchor's sun
     gradient (main.js §7) so the button and the background read as one water.
     ⚠️ Founder's explicit call, 2026-08-13: the mesh stays this bright and the
     label stays white even though it fails AA — white measures 3.4:1 on
     --sun-core and ~2:1 on --sun-crest. A deeper mesh (#3A78B4) was built and
     rejected as too dark. Do not "fix" this back without asking. */
  --sun-core:   #4E93D9;
  --sun-mid:    #6FB0E4;
  --sun-rim:    #8CC4EC;
  --sun-crest:  #ADD8F2;
  --on-water:   #FFFFFF;

  /* depth */
  --shadow-soft: 0 2px 12px rgba(27,22,17,0.05);
  --shadow-lift: 0 10px 32px rgba(27,22,17,0.09);
  --r-md: 16px;
  --r-lg: 24px;

  /* type */
  --font-display: 'Albert Sans', system-ui, sans-serif;
  --font-body: 'Wix Madefor Text', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* motion */
  --t-micro: 160ms;
  --t-reveal: 600ms;
  --ease-water: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-padding-top: 104px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.05rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--wave-light); }

h1, h2, h3, p, ul, ol { margin: 0; }

h1 {
  font: 500 clamp(3rem, 7vw, 5.2rem)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font: 500 clamp(2rem, 4.2vw, 3.1rem)/1.1 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 48px;
}
h3 {
  font: 700 1.3rem/1.3 var(--font-body);
  letter-spacing: -0.005em;
}
.lede { font: 500 1.2rem/1.55 var(--font-body); }
.small { font: 400 0.9rem/1.6 var(--font-body); color: var(--ink-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 400 0.78rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-chip {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--sky-wash);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.eyebrow-chip svg { width: 19px; height: 19px; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
a:hover { color: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}
.prose { max-width: 36rem; }
.prose p + p { margin-top: 24px; }

.section { padding-block: clamp(88px, 12vh, 152px); }

.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: 16px; top: -48px; z-index: 20;
  background: var(--cloud); padding: 8px 16px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.skip:focus-visible { top: 16px; }

/* ---------- anchor stage (DESIGN §7) ---------- */
.anchor-stage {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  isolation: isolate;
}
#anchor { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.42 0 0 0 0 0.40 0 0 0 0 0.37 0 0 0 0.55 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.3;
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  transition: background-color var(--t-micro) var(--ease-water),
              box-shadow var(--t-micro) var(--ease-water);
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
  box-shadow: var(--shadow-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 72px;
}
@media (min-width: 880px) {
  .nav-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    height: 72px;
  }
  .nav-inner .wordmark { grid-column: 1; justify-self: start; }
  .nav-inner .nav-links { grid-column: 2; justify-self: center; }
  .nav-inner .nav-cta { grid-column: 3; justify-self: end; }
}
/* v9 (rebrand): MONSTER INTERN is 14 characters where MAYNAMI was 7, so the
   tracking comes in a notch and the size drops slightly — at 0.14em the mark
   crowded the CTA on a 880px bar. It still reads as a wordmark, not a sentence. */
.wordmark {
  font: 400 0.9rem/1 var(--font-mono);
  letter-spacing: 0.11em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  flex: none;
  color: var(--ink-muted);
  text-decoration: none;
  font: 500 0.78rem/1 var(--font-body);
}
.nav-links a:hover { color: var(--accent); }
@media (min-width: 880px) {
  .nav-links { grid-column: auto; justify-content: center; padding: 0; overflow: visible; gap: 28px; }
}
/* NOTE (found at v9, deliberately NOT fixed): this rule never applies — `.btn-ink`
   is declared below at equal specificity and wins, so the desktop nav button has
   always rendered at .btn-ink's 0.95rem/1.7rem. That is the size the founder
   reviewed and approved at v7/v8, so changing it now would be an unrequested
   visual change. Left as-is; flagged in SPEC §9. */
.nav-cta { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
/* below 880px the bar is a two-up flex row, and the longer wordmark left it
   touching the CTA at 375px (0px gap, measured). Both come in a step so the pair
   keeps air between them at the narrowest supported width. The CTA needs the
   two-class selector to clear `.btn-ink` — see the note above. */
@media (max-width: 879px) {
  html { scroll-padding-top: 128px; }
  .nav-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "links links";
    gap: 10px 16px;
    padding-top: 12px;
  }
  .nav-inner .wordmark { grid-area: brand; justify-self: start; }
  .nav-inner .nav-links { grid-area: links; }
  .wordmark { font-size: 0.76rem; letter-spacing: 0.07em; }
  /* horizontal padding only — the vertical stays at .btn-ink's 0.85rem so the
     tap target holds ~44px (trimming it too took the button to 31px tall). */
  .nav-inner .nav-cta { grid-area: cta; justify-self: end; padding: 0.78rem 1rem; font-size: 0.78rem; }
  .nav { background: rgba(248,247,243,0.92); backdrop-filter: blur(12px); }
}

/* ---------- buttons (DESIGN §8.1, §8.2) ---------- */
.btn-ink {
  display: inline-block;
  font: 500 0.95rem/1 var(--font-body);
  color: var(--paper);
  background: var(--ink);
  border: none; border-radius: 999px;
  padding: 0.85rem 1.7rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-micro) var(--ease-water),
              box-shadow var(--t-micro) var(--ease-water);
}
.btn-ink:hover { color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ink:disabled { opacity: 0.5; cursor: default; transform: none; }

.btn-water {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block;
  font: 500 0.98rem/1 var(--font-body);
  color: var(--on-water);
  background: var(--sun-core);
  border: none; border-radius: 999px;
  padding: 1.05rem 2.2rem;
  cursor: pointer;
  text-decoration: none;
  /* NO white ring — removed v7, it read as a hard outline. The remaining white
     is a top rim light and a soft inner sheen: the glass read, not a border. */
  box-shadow:
    inset 0 1.5px 2px rgba(255,255,255,0.70),
    inset 0 9px 18px rgba(255,255,255,0.26),
    inset 0 -8px 16px rgba(43,108,163,0.34),
    0 2px 6px rgba(43,108,163,0.18),
    0 12px 30px rgba(110,168,220,0.42);
  /* a soft depth under the white label — the only thing holding it legible on
     a mesh this bright. Remove it and the label starts disappearing at crests. */
  text-shadow: 0 1px 3px rgba(18,59,92,0.38);
  transition: transform 500ms var(--ease-water), box-shadow 500ms var(--ease-water);
}
.btn-water::before {
  content: ''; position: absolute; inset: -60%; z-index: -1;
  /* the anchor's sun, in a pill — same four tones as the canvas gradient */
  background:
    radial-gradient(46% 56% at 28% 30%, var(--sun-crest) 0%, transparent 60%),
    radial-gradient(55% 62% at 74% 60%, var(--sun-mid) 0%, transparent 66%),
    radial-gradient(58% 68% at 46% 88%, var(--sun-rim) 0%, transparent 64%),
    var(--sun-core);
  filter: blur(10px);
  animation: mesh-drift 9s linear infinite; /* speed NEVER changes — no phase jumps */
  transition: filter 600ms var(--ease-water);
}
@keyframes mesh-drift { to { transform: rotate(360deg); } }
.btn-water:hover {
  color: var(--on-water);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1.5px 2px rgba(255,255,255,0.70),
    inset 0 9px 18px rgba(255,255,255,0.26),
    inset 0 -8px 16px rgba(43,108,163,0.34),
    0 2px 6px rgba(43,108,163,0.18),
    0 18px 40px rgba(110,168,220,0.50);
}
.btn-water:hover::before { filter: blur(10px) saturate(1.2) brightness(1.03); }
.btn-water:active { transform: translateY(-1px); transition-duration: 250ms; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid; align-content: center;
  padding-block: 148px 96px;
}
/* the hero container is a grid item, and `margin-inline: auto` would otherwise
   cancel the stretch and shrink it to its content — leaving the hero copy
   indented past every other section. Keep it on the shared 68rem measure. */
.hero > .container { width: 100%; }
/* v9 (rebrand): the brand paradox, sitting where a section eyebrow sits. Mono
   and tracked so it reads as a mark rather than a sentence, and short enough to
   stay well left of the fixed sun, where only --ink is verified (DESIGN §7). */
.hero-kicker {
  font: 400 0.82rem/1.5 var(--font-mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  max-width: 30rem;
}
.hero h1 { max-width: 58rem; }
.hero-line { display: block; }
.hero-sub { max-width: 36rem; margin-top: 24px; }
.hero-cta { margin-top: 40px; }

.section-clean { background: rgba(248,247,243,0.9); }
.services-lede { max-width: 42rem; margin-top: -16px; }
.service-grid {
  list-style: none; padding: 0;
  display: grid; gap: 28px;
  margin-top: 56px;
}
.service-grid li {
  position: relative;
  min-height: 230px;
  padding: 28px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(231,225,212,0.95);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
}
.service-grid li::before {
  content: '';
  position: absolute; left: 28px; top: -1px;
  width: 48px; height: 2px;
  background: var(--accent);
}
.service-label {
  margin-bottom: 28px;
  font: 400 0.7rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-grid h3 { margin-bottom: 12px; }
.services-close {
  max-width: 40rem;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}
@media (min-width: 880px) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- where to start: each failing alternative, answered ----------
   v7: the old list stated three problems and stopped, which carried no value.
   Same three antagonists, but every row now ends on what the client gets. */
.tried {
  list-style: none; padding: 0;
  max-width: 56rem;
  border-bottom: 1px solid var(--sand);
}
.tried li {
  border-top: 1px solid var(--sand);
  padding-block: 22px;
  display: grid; gap: 6px 40px;
}
@media (min-width: 760px) {
  .tried li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
/* column headers only make sense once the rows are actually side by side */
.tried li.tried-head { display: none; }
@media (min-width: 760px) {
  .tried li.tried-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    border-top: none;
    padding-block: 0 10px;
    font: 400 0.72rem/1 var(--font-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
  .tried-head span:last-child { color: var(--accent); }
}
/* the row's two halves: what it was, then what it becomes. Size and weight carry
   the shift, NOT colour — both halves cross the fixed sun, where --ink-muted
   measures ~1.75:1 and only --ink clears (DESIGN §7). */
.tried-was { font: 400 1.02rem/1.55 var(--font-body); color: var(--ink); }
.tried-now { font: 500 1.18rem/1.5 var(--font-body); color: var(--ink); }
.reasons-close {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
  max-width: 36rem;
}

/* ---------- AI-powered work: quality, capacity, and human control ---------- */
.capability-lede { max-width: 44rem; margin-top: -16px; }
.capability-grid {
  list-style: none; padding: 0;
  display: grid; gap: 32px;
  margin-top: 64px;
}
.capability-grid li {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}
.capability-grid li::before {
  content: '';
  position: absolute; left: 0; top: -1px;
  width: 48px; height: 2px;
  background: var(--accent);
}
.capability-label {
  margin-bottom: 20px;
  font: 400 0.7rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.capability-grid h3 { margin-bottom: 10px; }
.capability-grid p:last-child { color: var(--ink); }
@media (min-width: 880px) {
  .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

/* ---------- what changes: the value blocks ----------
   v8: four, not three — the fourth is oversight, the one thing the old page
   never mentioned. Four across is too narrow on a 68rem measure, so they pair. */
.changes {
  list-style: none; padding: 0;
  display: grid; gap: 48px;
  max-width: 64rem;
}
@media (min-width: 880px) {
  .changes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}
/* each block opens on a hairline with a short accent tick sitting on it —
   the straight replacement for the hand-drawn swashes (rejected v6 review) */
.changes li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--sand);
}
.changes li::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  width: 44px; height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
/* v9: the fifth block (durability) spans both tracks rather than orphaning in a
   half-width third row. Its measure is capped so a full-bleed row of body copy
   doesn't run past the page's reading width. */
@media (min-width: 880px) {
  .changes li.changes-span { grid-column: 1 / -1; }
  .changes li.changes-span p { max-width: 44rem; }
}
.changes h3 { margin-bottom: 10px; }
/* full ink, not muted: these blocks span the container and cross the fixed
   sun, where muted ink falls to ~4:1. DESIGN §7 only clears --ink over it. */
.changes p { color: var(--ink); }

/* ---------- what we've built: a two-column figure grid ----------
   The four builds are the whole proof layer, so each one shows the shape of the
   thing that was built — a schematic of the mechanism, never a metric (SPEC §3.5:
   no number goes on a build that hasn't been supplied).
   v7: two columns, figure above its sentence — a plate-and-caption grid, not a
   list. No cell border or cell shadow: the figure panel is the only surface, so
   this stays a figure grid rather than the card grid DESIGN §9 rejects. */
.builds {
  list-style: none; padding: 0;
  display: grid; gap: 56px;
}
@media (min-width: 880px) {
  .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px 64px; }
}
.builds li {
  display: grid; gap: 8px;
  align-content: start;
  --figure-bg: #EEF5FA;
  --figure-primary: var(--accent);
  --figure-secondary: var(--wave-mid);
  --figure-soft: var(--sky-wash);
  --figure-line: var(--wave-light);
  --figure-ink: var(--ink-muted);
}
.builds .build-support {
  --figure-bg: #EDF4FA; --figure-primary: #235F91; --figure-secondary: #69B4D3;
  --figure-soft: #D8ECF5; --figure-line: #B9D9E8; --figure-ink: #526979;
}
.builds .build-sales {
  --figure-bg: #F0F6F1; --figure-primary: #2F756D; --figure-secondary: #7DB59D;
  --figure-soft: #DDECE2; --figure-line: #BFD9CB; --figure-ink: #526C62;
}
.builds .build-marketing {
  --figure-bg: #FFF3EC; --figure-primary: #B65A3E; --figure-secondary: #E49A5E;
  --figure-soft: #F9DCCB; --figure-line: #EBC5B0; --figure-ink: #7B5D50;
}
.builds .build-production {
  --figure-bg: #F6F1F7; --figure-primary: #71547E; --figure-secondary: #B286AE;
  --figure-soft: #EADCE9; --figure-line: #D6C1D3; --figure-ink: #6F5D71;
}
.build-type {
  margin-top: 12px;
  font: 400 0.7rem/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--figure-primary);
}
.build-text {
  font: 500 1.15rem/1.5 var(--font-body);
  max-width: 23.5rem;
}
.build-fig {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%; max-width: 440px;
  background: var(--figure-bg);
  border: 1px solid color-mix(in srgb, var(--figure-line) 54%, transparent);
  border-radius: 24px;
  box-shadow: 0 10px 34px rgba(27,22,17,0.055);
  padding: 18px;
  transition: transform 500ms var(--ease-water), box-shadow 500ms var(--ease-water);
}
.build-fig::before {
  content: '';
  position: absolute;
  width: 62%; aspect-ratio: 1;
  right: -18%; top: -42%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--figure-soft) 0%, transparent 68%);
  opacity: 0.64;
  z-index: -1;
}
.build-fig::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--figure-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--figure-line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(135deg, black, transparent 58%);
  mask-image: linear-gradient(135deg, black, transparent 58%);
  pointer-events: none;
  z-index: -1;
}
/* fill the column — a capped panel leaves a ragged gutter beside column one */
@media (min-width: 880px) { .build-fig { max-width: none; } }
.build-fig svg {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto; overflow: visible;
  transition: transform 500ms var(--ease-water);
}
.builds li:hover .build-fig {
  transform: translateY(-4px);
  box-shadow: 0 18px 46px rgba(27,22,17,0.09);
}
.builds li:hover .build-fig svg { transform: translateY(-2px); }

/* richer interface vocabulary for the four system portraits */
.g-card, .g-card-strong, .g-chip, .g-image, .g-social-tile,
.g-book-page, .g-mini-card rect {
  vector-effect: non-scaling-stroke;
}
.g-card { fill: rgba(255,255,255,0.74); stroke: var(--figure-line); stroke-width: 1.1; filter: drop-shadow(0 2px 4px rgba(27,22,17,0.035)); }
.g-card-strong { fill: var(--figure-soft); stroke: var(--figure-line); stroke-width: 1.2; }
.g-chip { fill: var(--figure-soft); stroke: var(--figure-line); stroke-width: 0.8; }
.g-primary { fill: var(--figure-primary); }
.g-secondary { fill: var(--figure-secondary); }
.g-status { fill: var(--figure-primary); }
.g-title {
  font: 500 17px/1 var(--font-mono);
  letter-spacing: 0.055em;
  fill: var(--ink);
}
.g-title-small { font: 600 12px/1 var(--font-body); fill: var(--ink); }
.g-label {
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.1em;
  fill: var(--figure-ink);
}
.g-label-compact { font-size: 8.5px; letter-spacing: 0.075em; }
.g-title-mini { font-size: 11px; }
.g-rule, .g-rule-strong, .g-caption-line {
  fill: none; stroke: var(--figure-line); stroke-linecap: round;
}
.g-rule { stroke-width: 3; }
.g-rule-strong { stroke: var(--figure-secondary); stroke-width: 4; }
.g-flow, .g-arrow-head, .g-signal, .g-track, .g-avatar-line,
.g-image-horizon, .g-ripple-line, .g-book-spine {
  fill: none; stroke: var(--figure-secondary); stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.g-flow { stroke-width: 1.8; opacity: 0.82; }
.g-flow-dash { stroke-dasharray: 5 6; transition: stroke-dashoffset 900ms var(--ease-water); }
.builds li:hover .g-flow-dash { stroke-dashoffset: -22; }
.g-arrow-head { stroke-width: 2; }
.g-signal { stroke: var(--figure-primary); stroke-width: 1.5; }
.g-orbit { fill: none; stroke: var(--figure-secondary); stroke-width: 1.5; stroke-dasharray: 3 5; opacity: 0.7; }
.g-orbit-inner { stroke: var(--figure-primary); stroke-dasharray: none; opacity: 0.28; }
.g-wave-left rect { fill: var(--figure-primary); }
.g-wave-right rect { fill: var(--figure-secondary); }
.build-support .g-wave {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.78, 0.7);
}
.g-mini-card rect { fill: rgba(255,255,255,0.58); stroke: var(--figure-line); stroke-width: 1; }
.g-mini-card circle { fill: var(--figure-primary); }
.g-mini-card path { fill: none; stroke: var(--figure-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-mini-card text {
  font: 400 8.5px/1 var(--font-mono); letter-spacing: 0.09em; fill: var(--figure-ink);
}
.g-avatar { fill: var(--figure-soft); stroke: var(--figure-line); stroke-width: 1; }
.g-avatar-line { stroke: var(--figure-primary); stroke-width: 1.8; }
.g-radar { fill: none; stroke: var(--figure-line); stroke-width: 1.2; }
.g-scan {
  fill: var(--figure-secondary); opacity: 0.18;
  transform-box: fill-box; transform-origin: center;
  transition: transform 900ms var(--ease-water);
}
.build-sales:hover .g-scan { transform: rotate(20deg); }
.g-track { stroke: var(--figure-line); stroke-width: 1.5; }
.g-stage circle { fill: var(--figure-bg); stroke: var(--figure-primary); stroke-width: 1.7; }
.g-stage text {
  font: 400 8.5px/1 var(--font-mono); letter-spacing: 0.09em;
  fill: var(--figure-ink); text-anchor: middle;
}
.g-image { fill: var(--figure-bg); stroke: var(--figure-line); stroke-width: 1; }
.g-image-horizon { stroke: var(--figure-primary); stroke-width: 1.4; opacity: 0.55; }
.g-social-tile { fill: rgba(255,255,255,0.72); stroke: var(--figure-line); stroke-width: 1; }
.g-social-mark { fill: none; stroke: var(--figure-primary); stroke-width: 1.5; stroke-linecap: round; }
.g-swatch-one { fill: var(--figure-primary); }
.g-swatch-two { fill: var(--figure-secondary); }
.g-swatch-three { fill: var(--figure-line); }
.g-book-page { fill: rgba(255,255,255,0.7); stroke: var(--figure-line); stroke-width: 1; }
.g-book-spine { stroke: var(--figure-line); stroke-width: 1; }
.g-land { fill: var(--figure-primary); opacity: 0.22; }
.g-ripple-line { stroke: rgba(255,255,255,0.9); stroke-width: 2; }
.g-caption-line { stroke-width: 2.5; }
@media (max-width: 759px) {
  .build-fig { padding: 12px; border-radius: 20px; }
}

/* figure vocabulary — the same seven marks build all four drawings */
.f-label {
  font: 400 9px/1 var(--font-mono);
  letter-spacing: 0.12em;
  fill: var(--figure-ink);
}
.f-time {
  font: 400 13px/1 var(--font-mono);
  letter-spacing: 0.06em;
  fill: var(--ink);
}
.f-moon { fill: var(--figure-primary); }
.f-bar rect { fill: var(--figure-secondary); }
.f-bar-lead rect { fill: var(--figure-primary); }
.f-track { fill: none; stroke: var(--figure-line); stroke-width: 3; stroke-linecap: round; }
.f-track-sm { fill: none; stroke: var(--figure-line); stroke-width: 2.5; stroke-linecap: round; }
.f-return { fill: none; stroke: var(--figure-secondary); stroke-width: 2; stroke-dasharray: 5 7; stroke-linecap: round; opacity: 0.7; }
.f-arrow { fill: none; stroke: var(--figure-secondary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-node-ring { fill: var(--figure-bg); }
.f-node-dot { fill: var(--figure-primary); }
.f-frame { fill: none; stroke: var(--figure-line); stroke-width: 1.5; }
.f-rule { fill: none; stroke: var(--figure-line); stroke-width: 2.5; stroke-linecap: round; }
.f-rule-lead { fill: none; stroke: var(--figure-secondary); stroke-width: 2.5; stroke-linecap: round; }
.f-wash { fill: var(--figure-soft); }
.f-sun { fill: var(--figure-secondary); }
.f-sun-sm { fill: var(--figure-secondary); }
.f-horizon { fill: none; stroke: var(--figure-primary); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }
.f-horizon-sm { fill: none; stroke: var(--figure-primary); stroke-width: 1.5; stroke-linecap: round; opacity: 0.5; }
.f-ripple { fill: none; stroke: var(--figure-bg); stroke-width: 2.5; stroke-linecap: round; opacity: 0.9; }
.f-caption { fill: none; stroke: var(--figure-bg); stroke-width: 2.5; stroke-linecap: round; }
.f-seal { fill: var(--figure-primary); }
.f-check { fill: none; stroke: var(--cloud); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* set apart above a hairline, the same as §Where-to-start's close — without it
   the line reads as a fifth cell of the grid */
.builds-close {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
  max-width: 36rem;
}

/* ---------- how it starts: the ladder (v8) ----------
   Same two-column hairline structure as §Where-to-start, so the page has one
   way of showing a pair and not two. The left column is a mono name, never a
   number — numbered steps were rejected with the old "How we work" track. */
.ladder {
  list-style: none; padding: 0;
  max-width: 56rem;
  border-bottom: 1px solid var(--sand);
}
.ladder li {
  border-top: 1px solid var(--sand);
  padding-block: 22px;
  display: grid; gap: 6px;
}
@media (min-width: 760px) {
  .ladder li { grid-template-columns: 9rem minmax(0, 1fr); gap: 40px; }
}
.ladder-label {
  font: 400 0.72rem/1.9 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ladder-body { color: var(--ink); max-width: 34rem; }
.ladder-close {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
  max-width: 36rem;
}
/* who it's for, and who it isn't. No hairline of its own — it hangs under the
   close so the two read as one closing statement. Weight carries the shift, not
   colour: this block crosses the fixed sun (DESIGN §7). */
.fit {
  margin-top: 24px;
  max-width: 36rem;
  display: grid; gap: 8px;
}
.fit-yes { font-weight: 500; color: var(--ink); }
.fit-no { color: var(--ink); }

/* ---------- conversation ---------- */
.section-sky { background: rgba(220,238,248,0.72); }
#work { background: rgba(255,255,255,0.62); }
.section-sky .eyebrow { color: var(--accent); }
.section-sky .eyebrow-chip { background: var(--cloud); }

.conv-grid {
  display: grid; gap: 64px;
  align-items: start;
}
.conv-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .conv-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
}
.conv-body { max-width: 36rem; }
.conv-cta { margin-top: 40px; }
.conv-fallback { margin-top: 24px; }

/* terms: the promises that carry the risk, beside the CTA */
.terms {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 32px;
  max-width: 36rem;
}
.terms li {
  font: 400 0.72rem/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wave-ink);
  background: var(--cloud);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
}

.chat {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}
.hp { display: none !important; }

.chat-log {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 45vh; overflow-y: auto;
  min-height: 96px;
}
.bubble {
  max-width: 85%;
  padding: 14px 18px;
  font-size: 0.98rem;
  line-height: 1.55;
}
.bubble.studio {
  align-self: flex-start;
  background: var(--cloud);
  box-shadow: var(--shadow-soft);
  border-radius: 18px 18px 18px 5px;
}
.bubble.visitor {
  align-self: flex-end;
  background: var(--sky-wash);
  border-radius: 18px 18px 5px 18px;
}
.bubble.typing { display: inline-flex; gap: 6px; align-items: center; padding: 16px 18px; }
.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-muted); opacity: 0.3;
  animation: tdot 1.1s infinite var(--ease-water);
}
.bubble.typing span:nth-child(2) { animation-delay: 150ms; }
.bubble.typing span:nth-child(3) { animation-delay: 300ms; }
@keyframes tdot {
  0%, 60%, 100% { opacity: 0.25; transform: none; }
  30% { opacity: 0.8; transform: translateY(-2px); }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips.gone { opacity: 0; pointer-events: none; }
.chip {
  font: 400 0.9rem/1 var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: border-color var(--t-micro) var(--ease-water),
              background-color var(--t-micro) var(--ease-water);
}
.chip:hover { border-color: var(--wave-mid); background: var(--sky-wash); }

.chat-input-row { display: flex; gap: 8px; margin-top: 16px; }
#chat-field {
  flex: 1; min-width: 0;
  font: 400 0.95rem/1.4 var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
}
#chat-field::placeholder { color: var(--ink-muted); }
#chat-field[aria-invalid="true"] { border-color: var(--accent-deep); }
.chat-error {
  margin-top: 10px;
  padding-left: 18px;
  color: #8A2D22;
  font: 500 0.88rem/1.5 var(--font-body);
}

/* the one line that says what happens to what you type. Sits on --paper inside
   the chat card, well clear of the sun, so --ink-muted holds here. */
.chat-note { margin-top: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--sand); }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: baseline; justify-content: space-between;
  padding-block: 48px;
}
.footer-brand { font-weight: 500; }

/* ---------- motion: reveals + hero entrance (DESIGN §6) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 1;
    transform: translateY(12px);
    transition: opacity var(--t-reveal) var(--ease-water),
                transform var(--t-reveal) var(--ease-water);
  }
  .js .reveal.in { opacity: 1; transform: none; }

  .js #hero-h1 .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--t-reveal) var(--ease-water),
                transform var(--t-reveal) var(--ease-water);
    transition-delay: calc(var(--i) * 45ms);
  }
  .js #hero-h1.in .w { opacity: 1; transform: none; }

  .js .bubble { animation: bubble-in var(--t-reveal) var(--ease-water); }
  @keyframes bubble-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  .chips { transition: opacity 500ms var(--ease-water); }
}

@media print {
  .anchor-stage, .nav { display: none !important; }
  .js .reveal, .js #hero-h1 .w { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 759px) {
  .service-grid { margin-top: 40px; }
  .service-grid li { min-height: 0; }
}

/* ---------- reduced motion: complete, fully static (DESIGN §6) ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn-water::before { animation: none; }
  .bubble.typing span { animation: none; }
  .nav, .btn-ink, .btn-water, .chip { transition: none; }
}
