:root {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --paper: #ffffff;
  --wash: #f5f5f4;
  --muted: #5f5f5f;
  --faint: #a3a3a3;
  --line: rgba(10, 10, 10, 0.09);
  --line-strong: rgba(10, 10, 10, 0.18);
  --on-ink-muted: rgba(255, 255, 255, 0.62);
  --on-ink-faint: rgba(255, 255, 255, 0.38);
  --on-ink-line: rgba(255, 255, 255, 0.12);
  --working: #e5484d; /* red: in progress */
  --done: #30a46c; /* green: finished */

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a { color: inherit; }
ol, ul { list-style: none; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
  text-wrap: balance;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 34em;
  margin-top: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #262626; }
.btn--line { border-color: var(--line-strong); background: var(--paper); }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { font-size: 14px; padding: 9px 16px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.section--ink :focus-visible { outline-color: var(--paper); }

/* ---------- Brand (nav + footer) ---------- */
.brand { display: inline-flex; align-items: flex-end; gap: 10px; text-decoration: none; }
.brand__mark { height: 22px; width: auto; fill: currentColor; overflow: visible; }
.brand__name { font-weight: 600; font-size: 20px; line-height: 0.8; letter-spacing: -0.03em; }
.brand__dot { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--muted); transition: color 0.2s ease; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
}

/* ---------- Splash: Wrench Labs, with bolts for the dots ---------- */
/* The splash sticks while the flow panel slides up over it; every later section paints over it too. */
.splash {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}
.splash__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 55% 50%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 65% at 55% 50%, #000 20%, transparent 80%);
}
.splash--iso .splash__dots { display: none; }
.splash--iso::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(30deg, rgba(10, 10, 10, 0.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(150deg, rgba(10, 10, 10, 0.07) 0 1px, transparent 1px 44px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 55% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 55% 50%, #000 10%, transparent 75%);
  pointer-events: none;
}
.splash__inner { position: relative; padding-top: calc(var(--nav-h) - 24px); transform-origin: 0 60%; will-change: transform, opacity; }
.splash__word {
  /* "Wrench" is about 3.2em wide, so this fills the container without spilling; short screens cap it by height */
  font-size: min(calc((100vw - 2 * var(--gutter)) / 3.3), 360px, 40vh);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.065em;
  margin-left: -0.04em;
}
.bolts { display: inline-flex; align-items: baseline; gap: 0.055em; margin-left: 0.07em; }
.bolt { width: 0.19em; height: auto; overflow: visible; }
.bolt path { fill: var(--ink); }

/* ---------- Flow: the panel that slides over the splash ---------- */
:where(main > section:not(.splash)), .footer { position: relative; z-index: 1; }
:where(main > section:not(.splash)) { background: var(--paper); }
.flow {
  --flow-bg: #f1f1ef;
  margin-top: -48px;
  background: var(--flow-bg) !important;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 -1px 0 rgba(10, 10, 10, 0.06), 0 -30px 60px -40px rgba(10, 10, 10, 0.35);
  padding-top: clamp(88px, 11vw, 140px);
  overflow: hidden;
}
.flow__copy { text-align: center; display: grid; justify-items: center; }
.flow h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.flow h1 span { display: block; color: var(--faint); }
.flow .lede { margin-inline: auto; max-width: 30em; }

.snippet {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(460px, 100%);
  margin-top: 32px;
  padding: 5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(10, 10, 10, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.snippet:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08), 0 10px 30px -18px rgba(10, 10, 10, 0.35); }
.snippet input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; outline: 0; padding: 0 8px 0 18px; }
.snippet input::placeholder { color: var(--faint); }
.snippet .btn { padding: 11px 18px; }
.flow__note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.flow__note a { color: var(--ink); text-underline-offset: 3px; }
@media (max-width: 480px) {
  .snippet { flex-direction: column; border-radius: 22px; padding: 6px; }
  .snippet input { width: 100%; padding: 12px 14px; }
  .snippet .btn { width: 100%; justify-content: center; }
}

/* The isometric scene (generated SVG). Strokes stay hairline at any size. */
.scene { margin: clamp(8px, 2vw, 24px) auto 0; width: min(1320px, 100%); }
.scene__svg { width: 100%; height: auto; }
@media (max-width: 760px) {
  .scene { overflow: hidden; }
  .scene__svg { width: 820px; max-width: none; margin-left: 50%; transform: translateX(-50%); }
}
.scene [class] { vector-effect: non-scaling-stroke; }
.scene .wire { fill: none; stroke: #a3a3a0; stroke-width: 1.25; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.scene .wire--out { stroke: none; }
.scene .foot { fill: none; stroke: #b5b5b1; stroke-width: 1.25; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.scene .tick { fill: var(--ink); }
.scene .side { fill: #e4e4e1; stroke: #bdbdb9; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.scene .side--fill { stroke: none; }
.scene .edge { fill: none; stroke: #bdbdb9; stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.scene .top { fill: #fff; stroke: #bdbdb9; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: fill 0.3s ease; }
.scene .ico { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.scene .ico * { vector-effect: non-scaling-stroke; }
.scene .hub .side { fill: #000; stroke: #000; }
.scene .hub .edge { stroke: #000; }
.scene .hub .top { fill: #161616; stroke: #000; }
.scene .hub-nut, .scene .hub-dot { fill: #fff; }
.scene .card-ico-bg { fill: #f2f2f0; }
.scene .card-kicker { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; fill: #8d8d89; }
.scene .card-label { font-family: var(--sans); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; fill: var(--ink); }
.scene .check circle { fill: #fff; stroke: #bdbdb9; stroke-width: 1.25; vector-effect: non-scaling-stroke; transition: fill 0.3s ease, stroke 0.3s ease; }
.scene .check path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s ease; }
.scene .out.is-done .check circle { fill: var(--done); stroke: var(--done); }
.scene .out.is-done .check path { opacity: 1; }
.scene .packet { fill: var(--working); opacity: 0; }
.scene .packet--out { fill: var(--done); }

/* Entrance: tiles rise into place (a flow-space shift of (-x, +x) is straight down on screen) */
.scene .src, .scene .out, .scene .hub-wrap { transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.scene.is-entering .src, .scene.is-entering .out, .scene.is-entering .hub-wrap { transition-delay: calc(var(--i) * 80ms + 120ms); }
.js .scene:not(.in) .src, .js .scene:not(.in) .out, .js .scene:not(.in) .hub-wrap { opacity: 0; transform: translate(-40px, 40px); }
.scene .layer--floor, .scene .floor { transition: opacity 1s ease; }
.js .scene:not(.in) .layer--floor, .js .scene:not(.in) .floor { opacity: 0; }
/* While the loop runs: a source lifts as it sends, a card lifts when its work is done */
.scene .src.is-sending, .scene .out.is-done { transform: translate(6px, -6px); }

/* The pilot log */
.log {
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 80px -32px rgba(10, 10, 10, 0.45), 0 12px 24px -12px rgba(10, 10, 10, 0.3);
}
.method__head { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 1000px) { .method__head { grid-template-columns: 1fr; } }
.log__head { display: flex; align-items: center; gap: 14px; padding: 14px 14px 16px; }
.log__icon { width: 40px; height: 40px; flex: none; }
.log__title { display: grid; line-height: 1.25; }
.log__title strong { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.log__title span, .log__tag, .log__num, .log__foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-ink-faint);
}
.log__tag { margin-left: auto; border: 1px solid var(--on-ink-line); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.log__steps { background: var(--ink-2); border: 1px solid var(--on-ink-line); border-radius: 16px; overflow: hidden; }
.log__row {
  display: grid;
  grid-template-columns: 28px 96px 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 17px 16px;
  border-top: 1px solid var(--on-ink-line);
  transition: background 0.4s ease, color 0.4s ease;
}
.log__row:first-child { border-top: 0; }
.log__name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.log__detail { font-size: 14.5px; color: var(--on-ink-muted); transition: color 0.4s ease; }
.log__state { display: grid; place-items: center; height: 20px; }
.log__state > * { grid-area: 1 / 1; }
.log__row[data-state="active"] { background: rgba(255, 255, 255, 0.07); }
.log__row[data-state="active"] .log__detail { color: var(--paper); }
.log__row[data-state="queued"] .log__name,
.log__row[data-state="queued"] .log__detail { color: var(--on-ink-faint); }

.st { opacity: 0; transition: opacity 0.3s ease; }
.log__row[data-state="done"] .st--done,
.log__row[data-state="active"] .st--active,
.log__row[data-state="queued"] .st--queued { opacity: 1; }
.st--done { width: 20px; height: 20px; fill: var(--done); }
.st--done path { fill: none; stroke: var(--paper); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st--queued { width: 14px; height: 14px; border-radius: 50%; border: 1.5px dashed var(--on-ink-faint); }
.st--active { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.st--active i { width: 5px; height: 5px; border-radius: 50%; background: var(--working); }

.log__foot { display: flex; align-items: flex-start; gap: 8px; padding: 16px 14px 10px; }
.log__foot::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--on-ink-faint); transition: background 0.4s ease; }
.log.is-done .log__foot::before { background: var(--paper); }

@media (max-width: 520px) {
  .log__row { grid-template-columns: 22px 1fr 24px; gap: 4px 10px; padding: 14px 12px; }
  .log__detail { grid-column: 2; grid-row: 2; font-size: 13.5px; }
  .log__state { grid-column: 3; grid-row: 1 / span 2; }
  .log__num { grid-row: 1 / span 2; align-self: start; padding-top: 3px; }
  .log__tag { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--wash { background: var(--wash); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .label { color: var(--on-ink-faint); }
.section--ink .lede { color: var(--on-ink-muted); }
.section--grid { overflow: hidden; }
.section--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 60% 35%, #000 25%, transparent 78%);
  pointer-events: none;
}
.section--grid > .container { position: relative; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Work */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

.story {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  background: var(--paper);
}
.story__tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.story h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; margin: 40px 0 10px; }
.story p:not(.story__tag) { color: var(--muted); font-size: 16px; }

.story { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
.story h3 { margin-top: 28px; }
.story__metric { align-self: end; display: grid; gap: 6px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.story__metric strong { font-size: clamp(34px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.story__metric span { font-size: 15px; color: var(--muted); }

/* Method */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.step { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--faint); }
.step h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 28px 0 12px; }
.step p { font-size: 15.5px; color: var(--muted); }
.step__out { align-self: start; margin-top: 20px; color: var(--ink) !important; }
.step__out span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.step__time {
  justify-self: start;
  align-self: start;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: var(--paper);
}
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step, .step + .step { grid-row: auto; grid-template-rows: none; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step > :not(.step__num) { grid-column: 2; }
  .step__num { grid-row: 1 / span 3; padding-top: 8px; }
  .step h3 { margin-top: 0; }
  .step__out, .step__time { margin-top: 14px; }
}


/* Lab */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.legend li, .bench__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--on-ink-line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--on-ink-muted);
  white-space: nowrap;
}
#lab .split > :first-child { position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 900px) { #lab .split > :first-child { position: static; } }
.bench { border-top: 1px solid var(--on-ink-line); }
.bench li { display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--on-ink-line); }
.bench__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--on-ink-faint); padding-top: 5px; }
.bench h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.bench p { color: var(--on-ink-muted); font-size: 15.5px; margin-top: 4px; }
.bench__status { margin-top: 2px; }
@media (max-width: 520px) {
  .bench li { grid-template-columns: 32px 1fr; }
  .bench__status { grid-column: 2; justify-self: start; }
}

/* ---------- Contact dialog: a four-step form ---------- */
html:has(.cd[open]) { overflow: hidden; }
.cd {
  width: min(640px, 100% - 32px);
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.cd::backdrop { background: rgba(10, 10, 10, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cd__card {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--paper);
  border-radius: 28px;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.06), 0 40px 80px -24px rgba(10, 10, 10, 0.45);
}
.cd__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 0; }
.cd__head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.cd__close { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color 0.2s ease; }
.cd__close:hover { border-color: var(--ink); }
.cd__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.cd__body { padding: 24px 28px 28px; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 28px; }
.stepper__step { position: relative; display: grid; gap: 2px; align-content: start; color: var(--faint); }
.stepper__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.stepper__dot > * { grid-area: 1 / 1; }
.stepper__dot svg { width: 16px; height: 16px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
/* the line to the next step, drawn from this dot's right edge */
.stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 40px;
  right: 0;
  height: 2px;
  border-radius: 2px;
  /* grey track with an ink fill that grows across once the step is done */
  background: linear-gradient(var(--ink), var(--ink)) left / 0% 100% no-repeat, var(--line);
  transition: background-size 0.45s ease;
}
.stepper__label { font-size: 15px; font-weight: 500; transition: color 0.3s ease; }
.stepper__hint { font-size: 13px; color: var(--faint); }
.stepper__step[aria-current="step"] { color: var(--ink); }
.stepper__step[aria-current="step"] .stepper__dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.07); }
.stepper__step.is-done { color: var(--ink); }
.stepper__step.is-done .stepper__dot { background: var(--done); border-color: var(--done); }
.stepper__step.is-done .stepper__num { opacity: 0; }
.stepper__step.is-done .stepper__dot svg { opacity: 1; }
.stepper__step.is-done::after { background-size: 100% 100%; }
@media (max-width: 560px) {
  .stepper__hint { display: none; }
  .stepper__label { font-size: 13px; }
  .stepper__step:not([aria-current="step"]) .stepper__label { visibility: hidden; }
}

.cd__form, .cd__panel { display: grid; gap: 18px; border: 0; min-width: 0; }
.cd__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }

.review { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 15px; }
.review dt { color: var(--muted); }
.review dd { overflow-wrap: anywhere; }

.cd__done { display: grid; justify-items: center; gap: 10px; padding: 24px 0 8px; text-align: center; }
.cd__done-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--done); margin-bottom: 6px; }
.cd__done-check svg { width: 28px; height: 28px; fill: none; stroke: var(--paper); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cd__done-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.cd__done-sub { color: var(--muted); margin-bottom: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .cd[open] .cd__card { animation: cd-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .cd[open]::backdrop { animation: cd-fade 0.3s ease; }
  .cd__panel:not([hidden]), .cd__done:not([hidden]) { animation: panel-in 0.3s ease; }
}
@keyframes cd-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes cd-fade { from { opacity: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateX(10px); } }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 500; }
.field i { font-style: normal; color: var(--faint); font-weight: 400; margin-left: 4px; }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: 15px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.form__note { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer__links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; }
.footer__links a { text-decoration: none; color: var(--on-ink-muted); }
.footer__links a:hover { color: var(--paper); }

/* ---------- Motion ---------- */
.js [data-fade] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-fade].in { opacity: 1; transform: none; }

.spin-nut { transform-box: fill-box; transform-origin: center; }
.spin-dot { transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  /* The app icon loop from the Blue Collar hub: one full turn, then the dots bounce twice */
  .spin-nut { animation: wl-spin 4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .spin-dot { animation: wl-bounce 4s infinite; }
  .spin-dot:nth-of-type(2) { animation-delay: 0.14s; }
  .spin-dot:nth-of-type(3) { animation-delay: 0.28s; }

  /* Typing dots: the active pilot step, the contact heading, and the logo on hover */
  .log__row[data-state="active"] .st--active i,
  .brand:hover .brand__dot { animation: wl-typing 1.1s ease-in-out infinite; }
  .st--active i:nth-child(2), .brand:hover .brand__dot:nth-of-type(2) { animation-delay: 0.14s; }
  .st--active i:nth-child(3), .brand:hover .brand__dot:nth-of-type(3) { animation-delay: 0.28s; }
  .brand:hover .brand__dot { animation-name: wl-typing-mark; }
}
@media (prefers-reduced-motion: no-preference) {
  .bolt { transform-origin: 50% 50%; animation: bolt-in 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both, bolt-loop 4s 1.4s infinite; }
  .bolt:nth-child(2) { animation-delay: 0.14s, 1.54s; }
  .bolt:nth-child(3) { animation-delay: 0.28s, 1.68s; }
  .splash.is-away .bolt { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene * { transition: none !important; }
}

@keyframes bolt-in {
  0% { opacity: 0; transform: translateY(-160%) rotate(-120deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}
@keyframes bolt-loop {
  0% { transform: translateY(0) scale(1) rotate(0deg); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  22% { transform: translateY(0) scale(1) rotate(360deg); }
  28% { transform: translateY(0) scale(1) rotate(360deg); animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1); }
  34% { transform: translateY(-70%) scale(1) rotate(360deg); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  40% { transform: translateY(6%) scale(1.12, 0.88) rotate(360deg); animation-timing-function: ease-out; }
  42% { transform: translateY(0) scale(1) rotate(360deg); animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1); }
  48% { transform: translateY(-70%) scale(1) rotate(360deg); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  54% { transform: translateY(6%) scale(1.12, 0.88) rotate(360deg); animation-timing-function: ease-out; }
  56%, 100% { transform: translateY(0) scale(1) rotate(360deg); }
}

@keyframes wl-typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-110%); } }
@keyframes wl-typing-mark { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-74px); } }
@keyframes wl-spin { 0% { transform: rotate(0deg); } 25%, 100% { transform: rotate(360deg); } }
@keyframes wl-bounce {
  0%, 28% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1); }
  34% { transform: translateY(-74px) scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  40% { transform: translateY(0) scale(1.14, 0.86); animation-timing-function: ease-out; }
  42% { transform: translateY(0) scale(1); animation-timing-function: cubic-bezier(0.3, 0.7, 0.4, 1); }
  48% { transform: translateY(-74px) scale(1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  54% { transform: translateY(0) scale(1.14, 0.86); animation-timing-function: ease-out; }
  56%, 100% { transform: translateY(0) scale(1); }
}
