/* ==========================================================
   H2 Intelligence - dark tech / terminal
   Theme: dark only (brand decision). Accent: electric blue #2563EB

   Two accent tokens, on purpose:
     --accent      #2563EB  fills only (buttons, dots, bars, mesh, glow).
                            3.85:1 on #09090b, so NEVER use it for text.
                            White on it is 5.17:1 - that direction passes AA.
     --accent-text #60A5FA  7.83:1 on #09090b. Every accent-coloured TEXT,
                            small label and thin (1-2px) stroke uses this.
   ========================================================== */

:root {
  --bg: #09090b;
  --bg-raised: #101013;
  --bg-card: #0d0d10;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-faint: #808087;
  --accent: #2563EB;
  --accent-text: #60A5FA;
  --accent-dim: rgba(37, 99, 235, 0.18);
  --accent-glow: rgba(37, 99, 235, 0.45);
  --danger: #f87171;
  --font-sans: "Satoshi", system-ui, sans-serif;
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* squared by default: the identity is structural, not soft. Radius is
     reserved for genuinely circular elements (dots, nodes). */
  --radius: 0px;
  --nav-h: 68px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin-bottom: 48px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45), 0 8px 28px -10px var(--accent-glow);
}
/* hover deepens the fill and widens the halo. Going *lighter* than #2563EB
   would push white-on-blue under 4.5:1, so the energy comes from the glow. */
.btn--primary:hover {
  background: #1D4ED8;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.6), 0 12px 38px -8px var(--accent-glow);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.06); }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 17px; }

/* ---------- nav ---------- */
#nav-sentinel { position: absolute; top: 0; height: 24px; width: 1px; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 28px;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.nav.is-scrolled {
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__brand { display: flex; align-items: center; gap: 11px; }
/* wordmark: letterforms carry the ground colour, the lifted dot is the single
   asymmetric accent (brand rule: the accent is a dot, never a field) */
.nav__mark { height: 28px; width: auto; color: var(--text); }
.nav__dot { fill: var(--accent); }
.nav__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 28px 28px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 12px 0; font-size: 17px; color: var(--text-dim); }
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 12px; color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(9,9,11,0.2) 0%, rgba(9,9,11,0) 30%, rgba(9,9,11,0.9) 92%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.025) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.025) 80px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.06;
  margin-bottom: 26px;
}
.hero__title .decode { color: var(--accent-text); }

.hero__sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* live agent feed panel */
.hero__panel { display: flex; justify-content: flex-end; }

.agent-feed {
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 13, 16, 0.72);
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.agent-feed__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.agent-feed__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
@media (prefers-reduced-motion: no-preference) {
  .agent-feed__dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.agent-feed__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.agent-feed__list {
  padding: 14px 18px 18px;
  min-height: 268px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
}
.agent-feed__list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  animation: feedIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
  .agent-feed__list li { animation: none; opacity: 1; transform: none; }
}
@keyframes feedIn {
  to { opacity: 1; transform: translateY(0); }
}
.agent-feed__list .t { color: var(--text-faint); flex-shrink: 0; }
.agent-feed__list .ok { color: var(--accent-text); }

/* ---------- stack marquee ---------- */
.stack {
  padding: 64px 0 72px;
  border-top: 1px solid var(--line);
}
.stack__lead {
  text-align: center;
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 40px;
}

.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  padding-right: 72px;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 38s linear infinite; }
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee__track img {
  height: 30px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.6);
  transition: opacity 0.25s, filter 0.25s;
}
.marquee__track img:hover { opacity: 1; filter: grayscale(0) brightness(1); }

/* ---------- services sticky stack ---------- */
.services { padding: 110px 0 40px; }
.services .container { position: relative; z-index: 2; }
.services .section-title { margin-bottom: 20px; }
.services__lead {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 66ch;
  margin-bottom: 52px;
}

.stack-wrap { padding-bottom: 8vh; }

.stack-card {
  position: sticky;
  top: calc(var(--nav-h) + 26px);
  margin: 0 auto 5vh;
  max-width: 1100px;
  padding: 0 24px;
}

/* Not a floating card. The fill is opaque only because the sticky stack needs
   each panel to occlude the one beneath it; everything else that read as a
   "card" - radius, outline, drop shadow - is gone. A single hairline at the
   top is the only seam. */
/* Bordered on all four sides, square. The corners were the "vibe-coded" tell,
   not the border itself - a hard 90deg edge reads structural. */
.service {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: #0c0c0f;
  border: 1px solid var(--line);
  padding: 56px 52px 62px;
  will-change: transform;
}

/* The accent runs the full leading edge - the edge the sticky stack reveals as
   each panel slides up - carrying weight at the left and easing off to the
   right so it stays directional rather than a flat blue bar. Top edge only:
   ringing all four sides in blue would make the accent a field, which the
   identity forbids. 1px stroke, so it takes --accent-text per the token rule. */
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-text) 0%, rgba(96, 165, 250, 0.7) 45%, rgba(96, 165, 250, 0.3) 100%);
  transition: opacity 0.5s ease;
}
.service:hover::before { opacity: 1; background: var(--accent-text); }

@media (prefers-reduced-motion: reduce) {
  .service::before { transition: none; }
}

.service h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 14px;
}
.service > .service__text > p, .service__text p {
  color: var(--text-dim);
  margin-bottom: 22px;
}
.service__points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 15px;
  color: var(--text-dim);
}
.service__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 12px; height: 5px;
  border-left: 2px solid var(--accent-text);
  border-bottom: 2px solid var(--accent-text);
  transform: rotate(-45deg) translateY(-2px);
}

/* service visuals */
.service__visual { min-width: 0; }

.wire { width: 100%; }
.wire__nodes rect, .wire__nodes circle {
  fill: rgba(255, 255, 255, 0.03);
  stroke: var(--line-strong);
  stroke-width: 1.2;
}
.wire__nodes circle { stroke: var(--accent-text); fill: var(--accent-dim); }
.wire__paths path {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 5 6;
}
@media (prefers-reduced-motion: no-preference) {
  .wire__paths path { animation: dashFlow 1.4s linear infinite; }
}
@keyframes dashFlow {
  to { stroke-dashoffset: -11; }
}
.wire__labels text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  fill: var(--text-dim);
  text-anchor: middle;
}

/* no enclosing box: a single rule on the left is enough to group the rows */
.timer-demo {
  border-left: 1px solid var(--line-strong);
  padding: 6px 0 6px 26px;
}
.timer-demo__row {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.timer-demo__who { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.timer-demo__time { font-family: var(--font-mono); font-size: 13px; text-align: right; }
.timer-demo__bar { height: 6px; overflow: hidden; background: rgba(255,255,255,0.05); }
.timer-demo__bar i {
  display: block;
  height: 100%;
  width: var(--w);
  transform-origin: left;
}
.timer-demo__row--old .timer-demo__bar i { background: rgba(248, 113, 113, 0.55); }
.timer-demo__row--old .timer-demo__time { color: var(--danger); }
.timer-demo__row--new .timer-demo__bar i { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.timer-demo__row--new .timer-demo__time { color: var(--accent-text); }
.timer-demo__note { font-size: 13px; color: var(--text-faint); margin-top: 6px; }

.gate-demo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
/* the three steps are held by a shared baseline rule, not by three boxes.
   the human gate is marked by weight and accent, not by a filled container. */
.gate-demo__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 16px;
}
.gate-demo__step--human { border-bottom-width: 2px; border-bottom-color: var(--accent-text); }
.gate-demo__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.gate-demo__tag--human { color: var(--accent-text); }
.gate-demo__arrow {
  width: 26px; height: 2px;
  background: var(--line-strong);
  position: relative;
  flex-shrink: 0;
}
.gate-demo__arrow::after {
  content: "";
  position: absolute;
  right: -1px; top: -3px;
  border-left: 6px solid var(--line-strong);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

.attr-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.attr-demo__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.attr-demo__label--good { color: var(--accent-text); }
/* rows, not chips: one edge marker carries the good/bad read */
.attr-demo__chip {
  padding: 11px 0 11px 14px;
  font-size: 13.5px;
  margin-bottom: 8px;
  border-left: 2px solid var(--line);
}
.attr-demo__chip--bad { color: var(--text-faint); border-left-color: rgba(248, 113, 113, 0.5); }
.attr-demo__chip--good { color: var(--text); border-left-color: var(--accent-text); }

/* adapt demo: bottleneck on the left, what gets built on the right. Deliberately
   three unrelated trades - the point is that the input varies, so the build does.
   Same idiom as the other visuals: mono type, hairline rules, no enclosing box. */
.adapt-demo { display: flex; flex-direction: column; }
.adapt-demo__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.adapt-demo__row:first-child { border-top: 1px solid var(--line); }
.adapt-demo__from,
.adapt-demo__to {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.45;
}
.adapt-demo__from { color: var(--text-dim); }
.adapt-demo__to { color: var(--accent-text); text-align: right; }
/* arrow marker, same construction as .gate-demo__arrow */
.adapt-demo__row::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  width: 22px; height: 1px;
  background: var(--line-strong);
  position: relative;
}
.adapt-demo__row::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 0; height: 0;
  border-left: 5px solid var(--line-strong);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.adapt-demo__note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 18px;
}

/* ---------- process ---------- */
.process { padding: 130px 0; }

.process__line { position: relative; }
.process__progress {
  position: absolute;
  top: 7px; left: 0;
  height: 2px;
  width: 100%;
  background: var(--line);
  overflow: hidden;
}
.process__progress::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent-text), rgba(37, 99, 235, 0.35));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  transition: transform 0.1s linear;
}
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 0;
}
.pstep { position: relative; padding-top: 36px; }
.pstep__node {
  position: absolute;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-text);
  box-shadow: 0 0 0 4px var(--bg);
}
.pstep h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.pstep p { font-size: 15px; color: var(--text-dim); }

/* ---------- faq ---------- */
.faq { padding: 120px 0; }

.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-text); }
.faq__icon {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item p {
  padding: 0 4px 26px;
  color: var(--text-dim);
  max-width: 65ch;
}

/* ---------- book / final cta ---------- */
.book {
  position: relative;
  padding: 150px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.book__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.book__inner { position: relative; z-index: 2; }
.book__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.08;
  margin-bottom: 20px;
}
.book__sub {
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 auto 40px;
  font-size: 17px;
}
/* subordinate to the CTA button: the headline carries the accent, the terms sit
   quiet underneath. Deliberately conditional - it mirrors the documented
   guarantee (baseline agreed on the call, keep building first, refund last). */
.guarantee {
  margin: 40px auto 0;
  max-width: 52ch;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.guarantee__head {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.guarantee__terms {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

.book__mail { margin-top: 26px; font-size: 14.5px; color: var(--text-faint); }
.book__mail a { color: var(--accent-text); }
.book__mail a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 2px; }
.footer__name { font-weight: 700; font-size: 15px; }
.footer__tag { font-size: 13px; color: var(--text-faint); }
.footer__links { display: flex; gap: 22px; margin-left: auto; }
.footer__links a { font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; font-size: 12.5px; color: var(--text-faint); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { justify-content: flex-start; }


  .service { grid-template-columns: 1fr; padding: 44px 34px 50px; gap: 34px; }
  /* sticky stacking off on small screens: cards are taller than the viewport */
  .stack-card { position: static; margin-bottom: 28px; }

  .process__steps { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .process__progress { display: none; }
  .pstep { padding-top: 0; padding-left: 30px; }
  .pstep__node { top: 6px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav { padding: 0 18px; gap: 16px; }
  .nav__name { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__ctas .btn { width: 100%; }


  .stack-card { padding: 0 14px; }
  .service { padding: 34px 22px 40px; }

  .process__steps { grid-template-columns: 1fr; }

  .footer__links { margin-left: 0; }
}
