/* =====================================================================
   zavqo — "engineering spec sheet"
   Paper base, ink type, cobalt accent, hairline rules, mono annotations.
   One inverted dark band: the Lead Machine (see .machine).
   ===================================================================== */

/* ---------- fonts (self-hosted, latin subsets) ---------- */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --paper:      #FAFAF7;
  --paper-raise:#FFFFFF;
  --ink:        #0E1116;
  --muted:      #5A6270;
  --accent:     #3D5AFE;
  --accent-soft: rgba(61, 90, 254, 0.10);
  --line:       rgba(14, 17, 22, 0.16);
  --line-soft:  rgba(14, 17, 22, 0.09);

  /* dark band ("machine room") */
  --room:        #0E1116;
  --room-card:   #151A22;
  --room-line:   rgba(250, 250, 247, 0.14);
  --room-text:   #FAFAF7;
  --room-muted:  #98A1AF;
  --accent-tint: #97A9FF; /* small accent text on dark — AA-safe */

  --grotesk: "Space Grotesk", system-ui, sans-serif;
  --serif:   "Instrument Serif", Georgia, serif;
  --mono:    "Space Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --r: 2px; /* sharp corners throughout */

  /* motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --intro-dur: 0.55s;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
main a, .site-nav a, .wordmark { text-decoration: none; }

/* anchored sections clear the sticky header */
[id] { scroll-margin-top: 4.5rem; }

::selection { background: var(--accent); color: #fff; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
}
.skip-link:focus-visible { top: 0.5rem; }

/* the framed page */
.sheet {
  max-width: var(--maxw);
  margin-inline: auto;
  border-inline: 1px solid var(--line-soft);
  min-height: 100vh;
}

/* ---------- shared bits ---------- */
.hero, .rails, .catalog, .delivery, .faq, .contact { padding-inline: var(--gutter); }
.catalog, .delivery, .faq { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

.annotation {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.annotation--machine { color: var(--accent-tint); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.section-title {
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.section-title--machine { color: var(--room-text); }

/* italic emphasis: the serif cut supplies the voice */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.05em;
  letter-spacing: 0;
}

.section-lead { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 56ch; }
.section-lead--machine { color: var(--room-muted); }

/* ---------- buttons: sharp, print-like hard shadow on hover ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--grotesk);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.wordmark__logo { display: block; flex: 0 0 auto; }
.wordmark--sm { font-size: 0.95rem; }

.site-nav__menu { display: flex; align-items: center; gap: 1.7rem; }
.site-nav__menu a:not(.btn) {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.site-nav__menu a:not(.btn):hover { color: var(--ink); }

/* mobile disclosure button — hidden on desktop */
.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}
.site-nav__toggle-mark {
  position: relative;
  width: 12px; height: 10px;
}
.site-nav__toggle-mark::before,
.site-nav__toggle-mark::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px; height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.site-nav__toggle-mark::before { top: 1px; }
.site-nav__toggle-mark::after  { top: 7px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-mark::before {
  top: 4px; transform: rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-mark::after {
  top: 4px; transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .site-nav__toggle { display: inline-flex; }
  .site-nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav.is-open .site-nav__menu { display: flex; }
  .site-nav__menu a:not(.btn) {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.05rem;
  }
  .site-nav__menu .btn { margin-top: 1rem; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}
/* registration marks — spec-sheet corner detail */
.hero::before,
.hero::after {
  content: "+";
  position: absolute;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--line);
  pointer-events: none;
}
.hero::before { top: 1.4rem; right: 1.4rem; }
.hero::after  { bottom: 1.1rem; left: 1.4rem; }

.hero__title {
  font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0 0 1.6rem;
  max-width: 14ch;
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 50ch;
  margin: 0 0 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

/* spec strip — reads like a data table on a drawing */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-block: 1px solid var(--line);
}
.spec { padding: 1.5rem 1.6rem 1.6rem; }
.spec + .spec { border-left: 1px solid var(--line); }
.spec__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
}
.spec__value {
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.spec__note {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- rails ticker ---------- */
.rails {
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.rails__label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.rails__track {
  display: flex;
  width: max-content;
  animation: rails 30s linear infinite;
}
.rails:hover .rails__track { animation-play-state: paused; }
.rails__group {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rails__group li {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
  padding-right: 1.1rem;
}
/* monochrome-ink marks — drawn as a CSS mask filled with ink, so the whole
   item (mark + name) can pop to cobalt on hover. Aspect ratio + padded
   viewBox per logo live inline (--ar, --m); height-normalised to the caps. */
.rails__logo {
  display: inline-block;
  height: 1.3em;
  aspect-ratio: var(--ar, 1);
  margin-right: 0.5rem;
  vertical-align: -0.32em;
  background-color: var(--ink);
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
  transition: background-color 0.2s ease;
}
.rails__group li { transition: color 0.2s ease; }
.rails__group li:hover { color: var(--accent); }
.rails__group li:hover .rails__logo { background-color: var(--accent); }
.rails__group li::after {
  content: "/";
  color: var(--accent);
  padding-left: 1.1rem;
}
@keyframes rails {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- the machine room (flagship, dark) ---------- */
.machine { padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }

.machine__panel {
  background: var(--room);
  color: var(--room-text);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 4rem);
}
.machine__panel ::selection { background: var(--accent); color: #fff; }

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
}
.chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--room-text);
  border: 1px solid var(--room-line);
  border-radius: var(--r);
  padding: 0.45rem 0.8rem;
}
.chip:first-child { border-color: var(--accent); color: var(--accent-tint); }

/* --- demo --- */
.demo { margin: clamp(2rem, 5vw, 3rem) 0 0; }

.demo__status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent-tint);
  margin: 0 0 1.1rem;
  min-height: 1.4em; /* no jitter as the text changes */
}
/* the prompt marker ticks the whole time the demo runs */
.demo__status::before {
  content: "▸ ";
  animation: tick 1.1s ease-in-out infinite;
}
@keyframes tick { 50% { opacity: 0.2; } }

.demo__stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
}

.stage {
  position: relative;
  background: var(--room-card);
  border: 1px solid var(--room-line);
  border-radius: 4px;
  padding: 1rem 1rem 1.1rem;
  transition: border-color 0.3s ease;
}
.stage.is-on { border-color: var(--accent); }
.stage.is-done { border-color: rgba(61, 90, 254, 0.45); }

/* connector across the grid gap */
.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-1.4rem - 1px);
  width: 1.4rem;
  height: 1px;
  background: var(--room-line);
}
/* while the demo is live, data streams along the connectors continuously */
.demo__stages.is-live .stage:not(:last-child)::after {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--room-line) 0 5px,
    transparent 5px 10px
  );
  animation: flow 0.8s linear infinite;
}
@keyframes flow {
  to { background-position: 10px 0; }
}
/* travelling pulse on handoff */
.stage:not(:last-child)::before {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: calc(-1.4rem - 1px);
  width: 0.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  z-index: 1;
}
.stage.is-sending:not(:last-child)::before { animation: handoff 0.45s linear; }
/* the pulse rests right-anchored against the next card, so the travel runs
   from flush-with-source (−0.9rem) to flush-with-target (0) — box to box */
@keyframes handoff {
  from { transform: translateX(-0.9rem); opacity: 1; }
  to   { transform: translateX(0);       opacity: 1; }
}

.stage__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.1rem 0.6rem;
  margin-bottom: 0.9rem;
}
.stage__num {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--room-muted);
}
.stage.is-on .stage__num,
.stage.is-done .stage__num { color: var(--accent-tint); }
.stage__tool {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--room-muted);
  text-align: right;
}
.stage__label {
  grid-column: 1 / -1;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--room-text);
}

.stage__viz {
  min-height: 108px;
  margin: 0;
  transition: opacity 0.35s ease;
}
/* between leads the contents crossfade out; the card frames stay put */
.demo__stages.is-clearing .stage__viz { opacity: 0; }

/* S1 — capture */
.viz-capture { display: flex; flex-direction: column; gap: 0.5rem; }
.viz-capture__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--room-muted);
}
.viz-capture__field {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--room-text);
  border: 1px solid var(--room-line);
  border-radius: var(--r);
  padding: 0.55rem 0.6rem;
  min-height: 2.1rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viz-capture__field.is-typing::after {
  content: "▍";
  color: var(--accent-tint);
  animation: caret 0.8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* S2 — enrich */
.viz-enrich { display: flex; flex-direction: column; gap: 0; }
.viz-enrich__row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--room-line);
}
.viz-enrich__row:last-child { border-bottom: 0; }
.viz-enrich__row dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--room-muted);
}
.viz-enrich__row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--room-muted);
  opacity: 0.45;
  transition: opacity 0.3s ease, color 0.3s ease;
  text-align: right;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viz-enrich__row.is-filled dd { opacity: 1; color: var(--room-text); }

/* S3 — score */
.viz-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.viz-score__num {
  font-weight: 700;
  font-size: 2.7rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--room-text);
  font-variant-numeric: tabular-nums;
}
.viz-score__verdict {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: var(--r);
  border: 1px solid var(--room-line);
  color: var(--room-muted);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.viz-score__verdict.is-hot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.viz-score__verdict.is-cold { color: var(--room-muted); border-color: var(--room-line); }
.viz-score__basis {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--room-muted);
}

/* S4 — CRM */
.viz-crm { display: flex; flex-direction: column; gap: 0.45rem; }
.viz-crm__row { min-height: 1.7rem; border-radius: var(--r); }
.viz-crm__row--new {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid transparent;
  background: rgba(250, 250, 247, 0.03);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.viz-crm__row--new.is-in {
  opacity: 1;
  transform: translateY(0);
  border-color: var(--accent);
}
.viz-crm__name {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--room-text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.viz-crm__tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: var(--r);
  flex: 0 0 auto;
}
.viz-crm__tag.is-hot  { background: var(--accent); color: #fff; }
.viz-crm__tag.is-cold { border: 1px solid var(--room-line); color: var(--room-muted); }

/* S5 — alert */
.viz-alert {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
  min-height: 108px;
}
.viz-alert__toast {
  border-left: 3px solid var(--accent);
  background: rgba(250, 250, 247, 0.05);
  border-radius: var(--r);
  padding: 0.55rem 0.65rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.viz-alert__toast.is-in { opacity: 1; transform: translateY(0); }
.viz-alert__channel {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--accent-tint);
  margin-bottom: 0.25rem;
}
.viz-alert__text {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--room-text);
  display: block;
}
.viz-alert__skip {
  border-left: 3px solid var(--room-muted);
  background: rgba(250, 250, 247, 0.03);
  border-radius: var(--r);
  padding: 0.55rem 0.65rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.viz-alert__skip.is-shown { opacity: 1; transform: translateY(0); }
.viz-alert__skip-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--room-muted);
  margin-bottom: 0.25rem;
}
.viz-alert__skip-text {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--room-text);
}

.machine__cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.machine__cta .btn--primary:hover { box-shadow: 4px 4px 0 var(--accent-tint); }
.machine__compat {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--room-muted);
  margin: 0;
}

/* ---------- catalog ---------- */
.catalog__list { list-style: none; margin: 0; padding: 0; }

.cat {
  display: grid;
  grid-template-columns: minmax(4.5rem, 8rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.cat:last-child { border-bottom: 1px solid var(--line); }

/* decorative watermark numerals — set via CSS content (the low contrast is
   the point, and the ordering they echo already lives in the <ol>) */
.cat__num {
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(14, 17, 22, 0.14);
  transition: color 0.45s ease;
}
.cat__num::before { content: attr(data-num); }
/* scroll spotlight (js/main.js): the row at reading position lights up.
   Without JS, fall back to the flagship row lit statically. */
.cat.is-lit .cat__num { color: var(--accent); }
.catalog__list:not(.has-spotlight) .cat:first-child .cat__num { color: var(--accent); }

.cat__title {
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.45rem;
}
.cat__desc { color: var(--muted); margin: 0 0 0.8rem; max-width: 52ch; }
.cat__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}
.cat__flag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r);
  margin-right: 0.5rem;
}

/* ---------- delivery week ---------- */
.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.day { background: var(--paper); padding: 1.75rem 1.5rem 2rem; }
.day__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.day__title {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 0.6rem 0 0.5rem;
}
.day__desc { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__list { max-width: 800px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 0;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  letter-spacing: -0.01em;
}
.qa__q::-webkit-details-marker { display: none; }
.qa__mark { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.qa__mark::before,
.qa__mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.qa__mark::before { top: 7px; left: 0; width: 16px; height: 2px; }
.qa__mark::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.qa[open] .qa__mark::after { transform: rotate(90deg); opacity: 0; }
.qa__a { color: var(--muted); margin: 0 0 1.5rem; max-width: 62ch; }

/* ---------- contact ---------- */
.contact { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact__alt {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 1.6rem 0 0;
}
.contact__alt a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* booking card: white sheet, ink border, cobalt hard shadow — frames the
   themed Calendly iframe (see section 05 in index.html). min-height reserves
   the widget's space so it doesn't shift layout while loading. */
.booking {
  background: var(--paper-raise);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 10px 10px 0 var(--accent);
  overflow: hidden;
  min-height: 700px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 2.25rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer__line { color: var(--muted); font-size: 0.9rem; margin: 0; }
.site-footer__legal {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  /* demo: 5-up gets cramped — stack the pipeline and run the wiring
     vertically so the machine stays visibly connected at every width */
  .demo__stages { grid-template-columns: 1fr; }

  .stage:not(:last-child)::after {
    top: calc(100% + 1px);
    right: auto;
    left: 50%;
    width: 1px;
    height: 1.4rem;
  }
  .demo__stages.is-live .stage:not(:last-child)::after {
    width: 2px;
    height: 1.4rem; /* the desktop is-live rule sets height:2px — restore the vertical run */
    margin-left: -1px;
    background: repeating-linear-gradient(
      180deg,
      var(--room-line) 0 5px,
      transparent 5px 10px
    );
    animation: flow-v 0.8s linear infinite;
  }

  .stage:not(:last-child)::before {
    top: calc(100% + 1px);
    right: auto;
    left: calc(50% - 1px);
    width: 3px;
    height: 0.5rem;
  }
  .stage.is-sending:not(:last-child)::before {
    animation: handoff-v 0.45s linear;
  }
}
@keyframes flow-v {
  to { background-position: 0 10px; }
}
/* top-anchored: starts flush with the source card, ends flush with the next */
@keyframes handoff-v {
  from { transform: translateY(0);      opacity: 1; }
  to   { transform: translateY(0.9rem); opacity: 1; }
}

@media (max-width: 860px) {
  .contact__inner { grid-template-columns: 1fr; }
  .booking { box-shadow: 6px 6px 0 var(--accent); }
  .days { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .specs { grid-template-columns: 1fr; }
  .spec + .spec { border-left: 0; border-top: 1px solid var(--line); }
  .days { grid-template-columns: 1fr; }
  .cat { grid-template-columns: 3.5rem 1fr; }
  .hero__title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
}

/* =====================================================================
   Entrance animation — "spec-sheet draw-in"
   The hidden pre-animation state exists ONLY under .intro-armed, which the
   inline head script adds when JS is on AND motion is allowed. So the page's
   resting state is always fully visible (no-JS / reduced-motion safe), and the
   universal kill-switch below is a second net. js/main.js flips .is-revealed
   on the hero and .is-visible on [data-reveal] blocks to run the reveals.
   ===================================================================== */

/* --- Hero: staggered assembly on load --- */
.intro-armed .hero > *,
.intro-armed .hero__title em {
  opacity: 0;
  transform: translateY(12px);
}
/* the italic "hiring" cut settles from a slightly deeper offset — the emphasis beat */
.intro-armed .hero__title em {
  transform: translateY(0.12em);
  display: inline-block;
}
/* the "+" registration marks pop in last */
.intro-armed .hero::before,
.intro-armed .hero::after {
  opacity: 0;
  transform: scale(0.6);
}
/* the spec strip's hairline rules wipe in L→R (cheap: scaleX, no layout) */
.intro-armed .specs {
  border-block-color: transparent;
}
.intro-armed .specs::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-block: 1px solid var(--line);
  transform: scaleX(0);
  transform-origin: left center;
}
.intro-armed .specs { position: relative; }

/* revealed state — transitions carry each element home, staggered by delay */
.hero.is-revealed > *,
.hero.is-revealed .hero__title em {
  opacity: 1;
  transform: none;
  transition: opacity var(--intro-dur) var(--ease-out),
              transform var(--intro-dur) var(--ease-out);
}
.hero.is-revealed .annotation    { transition-delay: 0s; }
.hero.is-revealed .hero__title   { transition-delay: 0.12s; }
.hero.is-revealed .hero__title em{ transition-delay: 0.3s; }
.hero.is-revealed .hero__sub     { transition-delay: 0.4s; }
.hero.is-revealed .hero__actions { transition-delay: 0.55s; }
.hero.is-revealed .specs         { transition-delay: 0.7s; }

.hero.is-revealed::before,
.hero.is-revealed::after {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  transition-delay: 0.9s;
}
.hero.is-revealed .specs::before {
  transform: scaleX(1);
  transition: transform 0.5s var(--ease-out);
  transition-delay: 0.65s;
}

/* --- Scroll reveals: sections rise in as they enter the viewport --- */
.intro-armed [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
/* gentle cascade for grouped rows that enter together */
.catalog__list [data-reveal].is-visible:nth-child(2) { transition-delay: 0.08s; }
.catalog__list [data-reveal].is-visible:nth-child(3) { transition-delay: 0.16s; }
.catalog__list [data-reveal].is-visible:nth-child(4) { transition-delay: 0.24s; }
.days [data-reveal].is-visible:nth-child(2) { transition-delay: 0.08s; }
.days [data-reveal].is-visible:nth-child(3) { transition-delay: 0.16s; }
.days [data-reveal].is-visible:nth-child(4) { transition-delay: 0.24s; }

/* =====================================================================
   Reduced motion — no loops or sweeps; js/pipeline.js renders the demo
   in its completed state (is-static) instead of animating.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .rails__track { animation: none; }
  .btn--primary:hover { transform: none; }
}
