/* ==========================================================================
   Sunnyvale Automation
   Direction: Blueprint / Terminal — a technical drawing sheet you can read.

   Palette   paper #E7ECF1 · sheet #F3F6F9 · ink #0E1A26 · blue #14578F
             redline #BD3F1B · terminal #0B141D · phosphor #55A97A
   Type      IBM Plex Mono (display, labels, data) + IBM Plex Sans (prose)
   Layout    Hairline drafting grid ground; opaque sheets and modules laid on
             top; section refs, dimension rules, corner ticks, a title block.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper: #e7ecf1;
  --sheet: #f3f6f9;
  --sheet-2: #fbfcfd;

  --ink: #0e1a26;
  --ink-2: #4a6070;
  --ink-3: #7d909f;

  --rule: #c3d0db;
  --rule-2: #d9e2ea;

  --blue: #14578f;
  --blue-soft: #dde8f2;
  --mark: #bd3f1b;

  --term-bg: #0b141d;
  --term-line: #1e2c3a;
  --term-ink: #cad8e3;
  --term-ink-2: #6d8395;
  --term-ok: #55a97a;

  /* dark-section counterparts of the light tokens above */
  --ink-panel: #131c26;
  --ink-line: #223244;
  --ink-soft: #93a6b5;
  --ink-soft-2: #6d8395;
  --mark-light: #e0794f;
  --blue-light: #6fa8dc;

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gut: 26px;
  --grid: 32px;

  /* Full-height bands: vertical rhythm keyed to viewport height, not width, so
     a section's content shrinks to fit the screen it is actually shown on. */
  --band-pad: clamp(40px, 6.4vh, 96px);
  --band-gap: clamp(22px, 3.4vh, 48px);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(20, 87, 143, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 87, 143, 0.055) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

::selection { background: var(--blue); color: var(--sheet); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 13px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* --------------------------------------------------------------------------
   Shared type devices
   -------------------------------------------------------------------------- */

.eyebrow,
.sec-ref,
.mod__id,
.eng__id,
.step__n,
.step__t,
.track__key,
.founder__role,
.head__rev,
.term__tag,
.block__k {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: 20px;
  font-size: 11.5px;
  color: var(--blue);
}

.sec-ref {
  margin-bottom: 16px;
  font-size: 11.5px;
  color: var(--mark);
}

.sec-h {
  font-size: clamp(1.8rem, 3.7vw, 2.9rem);
  letter-spacing: -0.038em;
  max-width: 20ch;
}

.sec-sub {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.08rem;
}

/* Dimension line ------------------------------------------------------------ */

.dim {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.dim__line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--blue);
}

.dim__line::before,
.dim__line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--blue);
}
.dim__line::before { left: 0; }
.dim__line::after { right: 0; }

/* Buttons ------------------------------------------------------------------- */

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btns--center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--solid {
  background: var(--ink);
  color: var(--sheet);
}
.btn--solid:hover { background: var(--blue); }

.btn--line {
  border-color: var(--rule);
  color: var(--ink);
}
.btn--line:hover {
  border-color: var(--ink);
  background: var(--sheet);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(231, 236, 241, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Inverted while a dark band sits under the bar — set by main.js. */
.head--dark {
  background: rgba(14, 26, 38, 0.92);
  border-bottom-color: var(--ink-line);
}

.head--dark .brand { color: var(--sheet); }
.head--dark .brand__mark { color: var(--blue-light); }
.head--dark .brand__thin { color: var(--ink-soft); }
.head--dark .nav__list a { color: var(--ink-soft); }

.head--dark .nav__list a:hover {
  color: var(--sheet);
  border-bottom-color: var(--mark-light);
}

.head--dark .head__rev {
  color: var(--ink-soft-2);
  border-color: var(--ink-line);
}

.head--dark .burger { border-color: var(--ink-line); }

.head--dark .burger span,
.head--dark .burger span::before,
.head--dark .burger span::after { background: var(--sheet); }

.head__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark { color: var(--blue); flex: none; }

.brand__text {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand__thin {
  margin-left: 6px;
  font-weight: 400;
  color: var(--ink-2);
}

.nav { margin-left: auto; }

.nav__list { display: flex; gap: 26px; }

.nav__list a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav__list a:hover {
  color: var(--ink);
  border-bottom-color: var(--mark);
}

.head__rev {
  font-size: 10.5px;
  color: var(--ink-3);
  padding: 4px 9px;
  border: 1px solid var(--rule);
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger span { position: relative; }

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-top: clamp(72px, 9vw, 116px); }

/* minmax(0, …) is required: grid items default to min-width:auto, which lets
   the terminal's preformatted content push the whole row past the viewport. */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero__copy,
.hero__term { min-width: 0; }

/* Sized so "engineered to spec." always sets on one line — the coefficient is
   tied to the copy column's share of the grid, not picked by eye. */
.hero h1 {
  font-size: clamp(2rem, 4.7vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.hero h1 .nb { white-space: nowrap; }

/* The narrowest phones need a smaller step to hold the phrase on one line. */
@media (max-width: 384px) {
  .hero h1 { font-size: 1.62rem; }
}

.hero__lede {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Terminal panel
   -------------------------------------------------------------------------- */

.term {
  max-width: 100%;
  min-width: 0;
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  overflow: hidden;
}

.term--wide { margin-top: var(--band-gap); }

.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--term-line);
}

.term__tag {
  font-size: 10.5px;
  color: var(--term-ink-2);
}

.term__dots { display: inline-flex; gap: 6px; }

.term__dots i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--term-line);
  background: transparent;
}

.term__body {
  margin: 0;
  padding: 18px 16px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--term-ink);
}

.term__cmd { margin-bottom: 14px; overflow-wrap: anywhere; }

/* Dot leaders are drawn, not typed, so the rows reflow instead of
   scrolling sideways on a narrow screen. */
.lead { display: grid; gap: 2px; margin: 0; }

.lead__row { display: flex; align-items: baseline; gap: 9px; }

.lead__row dt {
  flex: 0 0 auto;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead__row dd {
  flex: 0 1 auto;
  margin: 0;
  text-align: right;
}

.lead__dots {
  flex: 1 1 14px;
  min-width: 14px;
  align-self: center;
  border-bottom: 1px dotted #2c3d4e;
}

.term__out { margin-top: 16px; }

.checks { display: grid; gap: 3px; }

.checks li { display: flex; gap: 11px; }

.checks li > span { flex: 0 0 auto; }

.c-p  { color: var(--term-ok); }
.c-c  { color: #7fb2e0; }
.c-s  { color: #d8a657; }
.c-ok { color: var(--term-ok); }

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 6px;
  vertical-align: -2px;
  background: var(--term-ok);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* Every band is at least one screen tall, with its content optically centred.
   min-height, not height: a section whose content is taller than the viewport
   (a phone, a short laptop, several open modules) grows instead of clipping. */
.section,
.hero,
.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: var(--band-pad);
}

.section--rule { border-bottom: 1px solid var(--rule); }

.section--dark {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  color: var(--sheet);
}

.section--dark .sec-ref { color: var(--mark-light); }
.section--dark .sec-sub { color: var(--ink-soft); }

/* ---- dark treatment of the symptom cards ---- */

.section--dark .signals {
  background: var(--ink-line);
  border-color: var(--ink-line);
}

.section--dark .signals li {
  background: var(--ink-panel);
  color: var(--ink-soft);
}

.section--dark .signal__icon {
  border-color: var(--ink-line);
  background: #0a1119;
  color: var(--mark-light);
}

.section--dark .signals li:hover .signal__icon {
  border-color: var(--mark-light);
  background: #1c1310;
}

/* ---- dark treatment of the founder cards ---- */

.section--dark .founder {
  background: var(--ink-panel);
  border-color: var(--ink-line);
}

.section--dark .founder__top { border-bottom-color: var(--ink-line); }

.section--dark .founder__initials {
  background: var(--sheet);
  color: var(--ink);
}

.section--dark .founder__role { color: var(--blue-light); }
.section--dark .founder p { color: var(--ink-soft); }

/* Signals ------------------------------------------------------------------- */

.signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.signals li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 30px 26px 32px;
  background: var(--sheet);
  font-size: 1.01rem;
  color: var(--ink-2);
}

.signals li p { margin: 0; }

/* framed like a part callout on a drawing */
.signal__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 1px;
  border: 1px solid var(--rule);
  background: var(--sheet-2);
  color: var(--mark);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.signals li:hover .signal__icon {
  border-color: var(--mark);
  background: #fbf1ed;
}

.signal__icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* --------------------------------------------------------------------------
   Tracks / service modules
   -------------------------------------------------------------------------- */

.tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: var(--band-gap);
}

.track {
  position: relative;
  padding: 34px 32px 36px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

/* corner registration ticks */
.track::before,
.track::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--blue);
}
.track::before { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.track::after { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }

.track--b::before,
.track--b::after { border-color: var(--mark); }

.track__head {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.track__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--blue);
  color: var(--sheet);
  font-size: 14px;
  letter-spacing: 0;
}

.track--b .track__key { background: var(--mark); }

.track__head h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  letter-spacing: -0.035em;
}

.track__head p {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 0.93rem;
}

.mods { margin-top: 4px; }

.mod {
  position: relative;
  padding: 0 0 0 26px;
  border-bottom: 1px dashed var(--rule);
}

.mod:last-child { border-bottom: 0; }

/* parts-list connector */
.mod::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--rule);
}

.mod::after {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  width: 14px;
  height: 1px;
  background: var(--rule);
}

.mod:last-child::before { bottom: auto; height: 28px; }

/* --- collapsible module ------------------------------------------------- */

.mod summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
}

/* suppress the default disclosure triangle in every engine */
.mod summary::-webkit-details-marker { display: none; }
.mod summary::marker { content: ""; }

.mod summary:hover h4 { color: var(--blue); }
.track--b .mod summary:hover h4 { color: var(--mark); }

.mod summary:hover .mod__pm { color: var(--ink); }

.mod__id {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--ink-3);
}

.mod h4 {
  flex: 1 1 auto;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  transition: color 0.14s ease;
}

.mod__pm {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  transition: color 0.14s ease;
}

.mod__pm::before { content: "[ + ]"; }
.mod details[open] .mod__pm::before { content: "[ − ]"; }

.mod__items {
  display: grid;
  gap: 5px;
  padding-bottom: 17px;
}

/* Smooth disclosure where the engine supports animating to auto; elsewhere
   the panel simply snaps open, which is the correct fallback. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }

  .mod details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.24s ease, content-visibility 0.24s allow-discrete;
  }

  .mod details[open]::details-content { block-size: auto; }
}

.mod__items li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.mod__items li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rule);
}

/* --------------------------------------------------------------------------
   Approach steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: var(--band-gap);
  background: #223244;
  border: 1px solid #223244;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 32px 26px 34px;
  background: var(--ink);
}

.step__n {
  margin-bottom: 16px;
  font-size: 11.5px;
  color: #e0794f;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  color: var(--sheet);
}

.step p {
  font-size: 0.92rem;
  color: #93a6b5;
}

.step__t {
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  color: #6d8395;
}

/* --------------------------------------------------------------------------
   Engagements
   -------------------------------------------------------------------------- */

.engs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--band-gap);
}

.eng {
  display: flex;
  flex-direction: column;
  padding: 30px 26px 32px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
}

.eng--lead { border-top-color: var(--mark); }

.eng__id {
  margin-bottom: 14px;
  font-size: 10.5px;
  color: var(--ink-3);
}

.eng h3 {
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.eng p { font-size: 0.92rem; color: var(--ink-2); }

.eng__meta {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Founders
   -------------------------------------------------------------------------- */

.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: var(--band-gap);
}

.founder {
  padding: 34px 30px 36px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}

.founder__top {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

.founder__initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--sheet);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.founder h3 { font-size: 1.16rem; }

.founder__role {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--blue);
}

.founder p { color: var(--ink-2); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta { text-align: center; }

.cta h2 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.cta p {
  max-width: 54ch;
  margin: 18px auto 0;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   Footer title block
   -------------------------------------------------------------------------- */

.foot {
  padding-block: 40px 46px;
  background: var(--ink);
  color: var(--sheet);
}

/* the contact cell gets extra width so the address never breaks mid-word */
.block {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.95fr 1.75fr 1fr;
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
}

.block__cell { padding: 15px 17px; background: var(--ink); }

.block__k {
  margin-bottom: 6px;
  font-size: 10px;
  color: var(--ink-soft-2);
}

.block__v {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--sheet);
  overflow-wrap: anywhere;
}

.block__v a { color: var(--blue-light); text-decoration: none; }
.block__v a:hover { text-decoration: underline; }

.foot__note {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft-2);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Short laptops: tighten the densest bands so they still resolve to one
   screen instead of spilling a hundred pixels past the fold. */
@media (min-width: 861px) and (max-height: 880px) {
  :root {
    --band-pad: clamp(30px, 4.6vh, 60px);
    --band-gap: clamp(18px, 2.6vh, 34px);
  }

  .sec-h { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
  .sec-sub { margin-top: 14px; font-size: 1rem; }

  .track { padding: 24px 26px 26px; }
  .track__head { padding-bottom: 16px; }
  .mod summary { padding: 12px 0; }
  .mod::after { top: 21px; }
  .mod:last-child::before { height: 21px; }

  .step { padding: 22px 20px 24px; }
  .step__t { padding-top: 12px; }

  .signals li { padding: 22px 20px 24px; }

  .term__body { padding: 13px 14px 15px; line-height: 1.62; }
  .founder { padding: 24px 24px 26px; }
  .eng { padding: 22px 20px 24px; }
}

/* Four step columns get cramped just above the stacking breakpoint, which
   pushes the method band a few pixels past the fold. */
@media (min-width: 1041px) and (max-width: 1200px) {
  .step { padding: 24px 18px 26px; }
  .step__t { padding-top: 12px; }
}

@media (min-width: 861px) and (max-height: 780px) {
  .sec-h { font-size: clamp(1.5rem, 2.6vw, 2rem); }
  .term__body { font-size: 11.5px; line-height: 1.5; }
  .step p { font-size: 0.88rem; }
}

@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .signals { grid-template-columns: repeat(2, 1fr); }
  .steps, .engs { grid-template-columns: repeat(2, 1fr); }
  .block { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .tracks { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gut: 18px; }

  body { font-size: 16px; }

  .nav { margin-left: 0; }

  .head__rev { display: none; }

  .burger { display: inline-flex; }

  .nav__list {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gut) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
  }

  .nav__list.is-open { display: flex; }

  .nav__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 14px;
  }

  .head--dark .nav__list {
    background: var(--ink);
    border-bottom-color: var(--ink-line);
  }

  .head--dark .nav__list a { border-bottom-color: var(--ink-line); }

  .signals { grid-template-columns: 1fr; }
  .steps, .engs { grid-template-columns: 1fr; }
  .block { grid-template-columns: 1fr; }

  /* keep the terminal readable without a long sideways scroll */
  .term__body { font-size: 11px; padding: 14px 12px 16px; }

  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor { animation: none; }
}
