@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/assets/fonts/k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxI.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/fC1_PZJEZG-e9gHhdI4-NBbfd2ys3SjJCx1czNDu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Castra Marketing. One page theme (dark), one accent (crimson), one radius scale. */

:root {
  color-scheme: dark;
  interpolate-size: allow-keywords;

  --black: #0c0b0b;      /* camp black: page */
  --wall: #161414;       /* raised surface */
  --wall-2: #1f1c1c;     /* higher surface, hover */
  --line: #2f2b2a;       /* hairlines */
  --line-2: #4a4442;     /* stronger lines, diagram walls */
  --granite: #9a9592;    /* muted text */
  --bone-2: #cfc9c4;     /* secondary body text */
  --bone: #eeeae6;       /* primary text */
  --crimson: #c11e33;    /* fills: buttons, HQ, CTA block */
  --crimson-2: #a3182a;  /* pressed fill */
  --crimson-ink: #2a0d12;/* crimson-tinted surface */
  --signal: #f0566a;     /* crimson as text or thin marks on black */

  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;

  --r-ctl: 4px;   /* buttons, inputs, gate labels */
  --r-tile: 6px;  /* tiles, rows */
  --r-panel: 10px;/* panels, CTA block */

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --header-h: 72px;
  --section: clamp(5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: var(--line-2) var(--black);
  background: var(--black);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  min-height: 100svh;
  background: transparent;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--signal);
  overflow-x: clip;
}
::selection { background: var(--crimson); color: var(--bone); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button, summary, [role='button'] { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--bone); color: var(--black); border-radius: var(--r-ctl); font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); font-weight: 800; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.05; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--bone-2); max-width: 36ch; }
.muted { color: var(--granite); }
.measure { max-width: 64ch; }

.wrap { width: var(--wrap); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 52rem; }
.section-head p { color: var(--bone-2); max-width: 56ch; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0 1.4rem;
  border-radius: var(--r-ctl);
  font-weight: 600; font-size: 1.0625rem; line-height: 1; white-space: nowrap;
  text-decoration: none; user-select: none; -webkit-user-select: none;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--crimson); color: var(--bone); }
.btn-primary:active { background: var(--crimson-2); }
.btn-ghost { color: var(--bone); border: 1px solid var(--line-2); }
.btn-dark { background: var(--black); color: var(--bone); }
.btn-sm { min-height: 44px; padding: 0 1.1rem; font-size: 1rem; }
.link {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px;
  color: var(--bone); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2);
  transition: text-decoration-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--crimson-2); }
  .btn-ghost:hover { border-color: var(--bone-2); background: var(--wall); }
  .btn-dark:hover { background: #000; }
  .link:hover { text-decoration-color: var(--signal); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--black) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: var(--black); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-height: 44px; }
.brand .mark { width: 36px; height: 36px; }
.brand-word { display: grid; gap: 4px; line-height: 1; }
.brand-word b { font-family: var(--display); font-size: 1.6rem; font-weight: 900; letter-spacing: 0.14em; margin-right: -0.14em; }
.brand-word span { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; color: var(--granite); letter-spacing: 0.42em; margin-right: -0.42em; }
.nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem;
  color: var(--bone-2); text-decoration: none; font-size: 1rem; font-weight: 500; white-space: nowrap;
  border-radius: var(--r-ctl);
  transition: color 160ms var(--ease-out);
}
.nav a[aria-current='page'] { color: var(--bone); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 0.5em; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--bone); } }
.header-cta { margin-left: 0.75rem; }
.menu-btn { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--r-ctl); border: 1px solid var(--line-2); }
.menu-btn .i { width: 24px; height: 24px; }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--black);
  padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 0.25rem;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu a:not(.btn) {
  font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1.1;
  text-decoration: none; padding: 0.35rem 0; border-bottom: 1px solid var(--line);
}
.menu .btn { margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in 260ms var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
  min-height: calc(100svh - var(--header-h) - 9rem);
}
.hero-copy { display: grid; gap: 1.75rem; }
.hero h1 { font-size: clamp(2.9rem, 13vw, 4.5rem); font-weight: 900; line-height: 0.92; }
@media (min-width: 961px) { .hero h1 { font-size: clamp(3.6rem, 6.4vw, 6rem); } }
.hero h1 .line { display: block; overflow: clip; padding-bottom: 0.04em; }
.hero h1 .line > span { display: block; }
.hero h1 .line + .line > span { color: var(--signal); }
.hero .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }

.camp { position: relative; width: 100%; max-width: 600px; margin-inline: auto; }
.camp-map { position: relative; }
.camp svg { width: 100%; height: auto; overflow: visible; }
.camp .wall { fill: none; stroke: var(--bone); stroke-width: 5; stroke-linecap: square; }
.camp .tower { fill: var(--bone); }
.camp .road { stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
.camp .route { stroke: var(--signal); stroke-width: 3; fill: none; stroke-linecap: round; opacity: 0; }
.camp .block { fill: none; stroke: var(--line); stroke-width: 1.25; }
.camp .hq { fill: var(--crimson); transform-box: fill-box; transform-origin: center; }
.camp .hq-ring { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.camp .hq-label { fill: var(--bone); font-family: var(--display); font-weight: 900; font-size: 44px; letter-spacing: 0.02em; }
.camp .lead-dot { fill: var(--signal); }
.gate {
  position: absolute; z-index: 1;
  min-height: 40px; padding: 0 0.8rem;
  display: inline-flex; align-items: center;
  background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  font-size: 0.9375rem; font-weight: 600; color: var(--bone-2); white-space: nowrap;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.gate::after { content: ''; position: absolute; inset: -4px; } /* 48px tap target */
.gate:active { transform: translate(var(--tx), -50%) scale(0.96); }
.gate[data-gate='n'] { --tx: -50%; left: 50%; top: 7.7%; transform: translate(-50%, -50%); }
.gate[data-gate='s'] { --tx: -50%; left: 50%; top: 92.3%; transform: translate(-50%, -50%); }
.gate[data-gate='w'] { --tx: 0%; left: 0; top: 50%; transform: translate(0, -50%); }
.gate[data-gate='e'] { --tx: 0%; right: 0; top: 50%; transform: translate(0, -50%); }
.gate.is-active { border-color: var(--signal); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .gate:hover { border-color: var(--bone-2); color: var(--bone); } }

.camp-log { display: grid; gap: 0.9rem; margin-top: 1.75rem; }
.camp-status { font-size: 0.9375rem; color: var(--granite); min-height: 1.6em; }
.camp-status b { color: var(--bone); font-weight: 600; }
.steps-row { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps-row li {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 0.7rem; border-radius: var(--r-ctl);
  background: var(--wall); color: var(--bone);
  font-size: 0.875rem; font-weight: 600; line-height: 1.2;
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out);
}
.steps-row .i { color: var(--signal); width: 1.1em; height: 1.1em; transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out); }
.steps-row[data-live] li { color: var(--granite); }
.steps-row[data-live] li .i { opacity: 0; transform: scale(0.6); }
.steps-row[data-live] li.is-done { color: var(--bone); background: var(--crimson-ink); }
.steps-row[data-live] li.is-done .i { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 900ms var(--ease-out) both; }
  .hero h1 .line + .line > span { animation-delay: 90ms; }
  .hero .lead, .hero-actions { animation: fade 700ms var(--ease-out) 260ms both; }
  .camp .wall { stroke-dasharray: 520; animation: draw 1100ms var(--ease-in-out) 150ms both; }
  .camp .tower, .camp .hq, .camp .hq-label { animation: fade 600ms var(--ease-out) 700ms both; }
  .gate { animation: fade 500ms var(--ease-out) 900ms both; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .camp { max-width: 520px; }
}
@media (max-width: 520px) {
  .gate { font-size: 0.8125rem; padding: 0 0.55rem; min-height: 36px; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); }
.proof ul {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.proof li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1.4rem 1.25rem; font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--bone);
}
.proof li + li { border-left: 1px solid var(--line); }
.proof li:first-child { padding-left: 0; }
.proof .i { color: var(--signal); width: 1.5rem; height: 1.5rem; }
@media (max-width: 960px) {
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li { padding: 1.1rem 1rem; }
  .proof li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .proof li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Problem: comparison ---------- */
.compare {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 2.5rem);
}
.compare h3 { font-size: 1.5rem; padding-bottom: 1rem; }
.compare .usual-h { color: var(--granite); }
.compare .row {
  display: flex; gap: 0.9rem; align-items: flex-start;
  padding: 1.25rem 0; border-top: 1px solid var(--line);
  font-size: 1.125rem; line-height: 1.5;
}
.compare .usual { color: var(--granite); }
.compare .usual .i { color: var(--line-2); margin-top: 0.15em; }
.compare .castra .i { color: var(--signal); margin-top: 0.15em; }
.compare .castra { color: var(--bone); }
.compare .castra-h, .compare .castra { padding-inline: 1.25rem; background: var(--wall); }
.compare .castra-h { padding-top: 1.25rem; border-radius: var(--r-panel) var(--r-panel) 0 0; }
.compare .castra.last { border-radius: 0 0 var(--r-panel) var(--r-panel); padding-bottom: 1.5rem; }
@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare .usual-h, .compare .usual { order: 1; }
  .compare .castra-h, .compare .castra { order: 2; }
  .compare .castra-h { margin-top: 2rem; }
}

/* ---------- Services: journey columns ---------- */
.journey {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem); align-items: start;
}
.stage { display: grid; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-panel); }
.stage-keep { background: var(--crimson-ink); border-color: #4a1a22; }
.stage header { display: grid; gap: 0.4rem; padding-bottom: 0.5rem; }
.stage h3 { font-size: 2rem; }
.stage header p { color: var(--bone-2); font-size: 1rem; line-height: 1.45; }
.svc-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.svc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.25rem 0.9rem; align-items: start;
  padding: 1rem; border-radius: var(--r-tile);
  background: var(--wall); text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.stage-keep .svc { background: #1d0b0f; }
.svc > .i { width: 1.6rem; height: 1.6rem; color: var(--signal); grid-row: span 2; margin-top: 0.1rem; }
.svc strong { font-family: var(--display); font-size: 1.6rem; font-weight: 800; line-height: 1.05; }
.svc span { grid-column: 2; color: var(--bone-2); font-size: 0.975rem; line-height: 1.45; }
.svc .go { grid-column: 3; grid-row: 1; color: var(--granite); width: 1.15rem; height: 1.15rem; transition: transform 200ms var(--ease-out), color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { background: var(--wall-2); }
  .stage-keep .svc:hover { background: #2b0f15; }
  .svc:hover .go { transform: translate(2px, -2px); color: var(--bone); }
}
.svc:active { transform: scale(0.99); }
.journey-foot { margin-top: 2rem; }
@media (max-width: 960px) { .journey { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process: sticky split ---------- */
.process-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); display: grid; gap: 1.5rem; }
.process-intro p { color: var(--bone-2); max-width: 40ch; }
.steps { list-style: none; padding: 0; position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-left: 5.5rem; view-timeline-name: --steps; }
.steps::before, .steps::after {
  content: ''; position: absolute; left: 1.75rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--line);
}
.steps::after { background: var(--crimson); transform-origin: top; }
.step { position: relative; display: grid; gap: 0.6rem; }
.step-num {
  position: absolute; left: -5.5rem; top: -0.35rem;
  width: 3.5rem; height: 3.5rem; display: grid; place-items: center;
  background: var(--black); border: 2px solid var(--crimson); border-radius: var(--r-ctl);
  font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: clamp(2rem, 3.2vw, 2.6rem); }
.step p { color: var(--bone-2); max-width: 46ch; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: rail linear both; animation-timeline: --steps; animation-range: cover 25% cover 65%; }
  }
}
@keyframes rail { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 860px) {
  .process-grid { grid-template-columns: minmax(0, 1fr); }
  .process-intro { position: static; }
  .steps { padding-left: 4.5rem; }
  .steps::before, .steps::after { left: 1.4rem; }
  .step-num { left: -4.5rem; width: 2.9rem; height: 2.9rem; font-size: 1.6rem; }
}

/* ---------- Results: ledger ---------- */
.ledger { border-top: 2px solid var(--bone); }
.ledger-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.6fr);
  gap: 1rem 2rem; align-items: baseline;
  padding: 1.6rem 0; border-bottom: 1px solid var(--line);
}
.ledger-row h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
.ledger-row p { color: var(--bone-2); }
.ledger-row .src { color: var(--granite); font-size: 0.9375rem; text-align: right; }
@media (max-width: 760px) {
  .ledger-row { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .ledger-row .src { text-align: left; }
}
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; margin-bottom: 3rem; }
.case { display: grid; gap: 0.75rem; padding: 1.75rem; background: var(--wall); border-radius: var(--r-panel); }
.case .metric { font-family: var(--display); font-weight: 900; font-size: 4rem; line-height: 0.9; color: var(--signal); }
.case blockquote { color: var(--bone); border-top: 1px solid var(--line); padding-top: 0.75rem; }
.case figcaption, .case .who { color: var(--granite); font-size: 0.9375rem; }

/* ---------- Stats (real numbers only) ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stats dl > div { display: flex; flex-direction: column-reverse; gap: 0.35rem; padding: 2rem 1.5rem 2rem 0; }
.stats dd { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.9; color: var(--bone); font-variant-numeric: tabular-nums; }
.stats dt { color: var(--granite); font-size: 1rem; }

/* ---------- Package: sticky intro + checklist ---------- */
.pkg-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.pkg-intro { position: sticky; top: calc(var(--header-h) + 2.5rem); display: grid; gap: 1.5rem; }
.pkg-intro p { color: var(--bone-2); max-width: 36ch; font-size: 1.2rem; }
.pkg-list { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.pkg-group { border-top: 2px solid var(--line-2); padding-top: 1.25rem; }
.pkg-crm { border-top-color: var(--crimson); }
.pkg-group h3 { font-size: clamp(1.8rem, 2.6vw, 2.25rem); margin-bottom: 0.75rem; }
.pkg-group ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.pkg-group li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.7rem 0; font-size: 1.125rem; line-height: 1.4; }
.pkg-group .i { color: var(--signal); margin-top: 0.1em; }
@media (max-width: 860px) {
  .pkg-grid { grid-template-columns: minmax(0, 1fr); }
  .pkg-intro { position: static; }
}
@media (max-width: 560px) { .pkg-group ul { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Testimonials (real quotes only) ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.quote { display: grid; gap: 1.25rem; align-content: space-between; padding: 2rem; background: var(--wall); border-radius: var(--r-panel); }
.quote blockquote { font-size: 1.35rem; line-height: 1.45; color: var(--bone); }
.quote figcaption { color: var(--granite); font-size: 1rem; }
.quote figcaption b { color: var(--bone); font-weight: 600; margin-right: 0.35rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 64px; padding: 1rem 0;
  font-size: 1.25rem; font-weight: 600; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--signal); width: 1.4rem; height: 1.4rem; transition: transform 220ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { color: var(--bone-2); padding-bottom: 1.5rem; max-width: 62ch; }
.faq details::details-content {
  block-size: 0; overflow: clip;
  transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .faq details::details-content { transition: none; } }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--signal); } }

/* ---------- Closing CTA: the one color block ---------- */
.cta-block {
  position: relative; overflow: clip;
  background: var(--crimson); color: var(--bone);
  border-radius: var(--r-panel);
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 6vw, 5.5rem);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 2rem; align-items: center;
}
.cta-block h2 { font-size: clamp(3.6rem, 9vw, 6rem); font-weight: 900; line-height: 0.9; }
.cta-copy { display: grid; gap: 1.5rem; position: relative; }
.cta-copy p { font-size: 1.2rem; max-width: 40ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.cta-actions .link { text-decoration-color: rgb(238 234 230 / 0.5); }
.cta-block.has-cal { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.cta-block .calendar { min-height: 0; background: var(--black); border-radius: var(--r-tile); }
.cta-mark { justify-self: end; width: min(100%, 300px); color: var(--bone); opacity: 0.9; }
.cta-mark .mark-hq { fill: var(--black); }
@media (max-width: 760px) {
  .cta-block, .cta-block.has-cal { grid-template-columns: minmax(0, 1fr); }
  .cta-mark { display: none; }
}

/* ---------- Page heads (inner pages) ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; font-size: 0.9375rem; color: var(--granite); margin-bottom: 1.75rem; }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--line-2); }
.crumbs a { color: var(--bone-2); }
.page-head { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-head h1 { font-size: clamp(3rem, 6.4vw, 5.25rem); max-width: 14ch; }
.page-head .lead { margin-top: 1.5rem; max-width: 40ch; }
.page-head .hero-actions { margin-top: 2rem; }

.path { list-style: none; padding: 0; display: grid; gap: 6px; }
.path li {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.15rem 0.9rem; align-items: center;
  padding: 1rem 1.1rem; border-radius: var(--r-tile); background: var(--wall); color: var(--granite);
}
.path li b { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--bone-2); line-height: 1; }
.path li small { grid-column: 2; font-size: 0.875rem; }
.path li .sq { width: 12px; height: 12px; border: 2px solid var(--line-2); grid-row: span 2; }
.path li.is-here { background: var(--crimson-ink); outline: 1px solid #4a1a22; }
.path li.is-here b { color: var(--bone); }
.path li.is-here small { color: var(--bone-2); }
.path li.is-here .sq { background: var(--crimson); border-color: var(--crimson); }
.path-label { font-size: 0.9375rem; color: var(--granite); margin-bottom: 0.75rem; }
@media (max-width: 860px) {
  .page-head-grid { grid-template-columns: minmax(0, 1fr); }
  .path li { padding: 0.75rem 1rem; }
  .path li small { display: none; }
  .path li .sq { grid-row: auto; }
}

.intro-big { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.42; max-width: 38ch; color: var(--bone); font-weight: 500; }

.includes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); }
.includes li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.15rem 0; border-top: 1px solid var(--line); font-size: 1.125rem; }
.includes .i { color: var(--signal); margin-top: 0.2em; }
@media (max-width: 700px) { .includes { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0.75rem; }

/* Services hub */
.hub-stage { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.hub-stage:first-child { border-top: 0; padding-top: 0; }
.hub-stage > header { display: grid; gap: 0.75rem; align-content: start; }
.hub-stage > header p { color: var(--bone-2); max-width: 32ch; }
.hub-svcs { display: grid; gap: 0.75rem; }
.hub-svc { display: grid; gap: 0.75rem; padding: 1.5rem; background: var(--wall); border-radius: var(--r-panel); text-decoration: none; transition: background-color 180ms var(--ease-out); }
.hub-svc .top { display: flex; align-items: center; gap: 0.9rem; }
.hub-svc .top .i { width: 1.75rem; height: 1.75rem; color: var(--signal); }
.hub-svc h3 { font-size: 2rem; }
.hub-svc p { color: var(--bone-2); }
.hub-svc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; color: var(--granite); font-size: 0.9375rem; }
.hub-svc .more { color: var(--bone); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 0.22em; }
@media (hover: hover) and (pointer: fine) { .hub-svc:hover { background: var(--wall-2); } .hub-svc:hover .more { text-decoration-color: var(--signal); } }
@media (max-width: 860px) { .hub-stage { grid-template-columns: minmax(0, 1fr); } }

/* About */
.name-story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.name-story .big-mark { width: min(100%, 360px); color: var(--bone); }
.name-story p { font-size: 1.25rem; color: var(--bone-2); max-width: 46ch; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 4rem); }
.principles > div { padding: 1.75rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.principles h3 { font-size: 2.1rem; }
.principles p { color: var(--bone-2); max-width: 42ch; }
.team-photo { border-radius: var(--r-panel); width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 760px) { .name-story, .principles { grid-template-columns: minmax(0, 1fr); } .name-story .big-mark { width: 200px; } }

/* Book page */
.book-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.expect { list-style: none; padding: 0; display: grid; gap: 0; }
.expect li { display: flex; gap: 0.9rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.expect .i { color: var(--signal); margin-top: 0.2em; }
.calendar { min-height: 700px; background: var(--wall); border-radius: var(--r-panel); overflow: hidden; }
.calendar .calendly-inline-widget { min-width: 300px; height: 760px; }
.slot { display: grid; place-content: center; gap: 1rem; text-align: center; padding: 3rem 1.5rem; min-height: 520px; border: 1px dashed var(--line-2); border-radius: var(--r-panel); }
.slot .i { width: 2.5rem; height: 2.5rem; color: var(--signal); margin-inline: auto; }
.slot h2 { font-size: 2.4rem; }
.slot p { color: var(--bone-2); max-width: 40ch; margin-inline: auto; }
@media (max-width: 860px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }

/* Photo slot (shown only during development builds) */
.photo-slot { display: grid; place-content: center; text-align: center; gap: 0.5rem; aspect-ratio: 16 / 10; border: 1px dashed var(--line-2); border-radius: var(--r-panel); color: var(--granite); font-size: 0.9375rem; padding: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.footer-brand p { color: var(--granite); margin-top: 1rem; max-width: 34ch; font-size: 1rem; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--bone); margin-bottom: 0.75rem; letter-spacing: 0; line-height: 1.4; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0; }
.site-footer li a, .site-footer li span { min-width: 44px; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; color: var(--granite); text-decoration: none; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .site-footer li a:hover { color: var(--bone); } }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--granite); font-size: 0.9375rem; }
.socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--bone-2); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--black) 94%, transparent);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 280ms var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar .btn { width: 100%; }
  body:has(.action-bar.is-visible) .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .action-bar { transition: opacity 200ms linear; } }

@media (min-width: 761px) {
  .action-bar {
    display: block; position: fixed; right: 24px; bottom: 24px; z-index: 30;
    opacity: 0; transform: translateY(12px); pointer-events: none;
    transition: opacity 220ms var(--ease-out), transform 260ms var(--ease-out);
  }
  .action-bar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
  .action-bar .btn { box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.7), 0 2px 6px rgb(0 0 0 / 0.4); }
}
.action-bar .btn .i { width: 1.2em; height: 1.2em; }

/* ---------- 404 / thanks ---------- */
.notice { min-height: calc(70svh - var(--header-h)); display: grid; align-content: center; gap: 1.5rem; padding-block: 4rem; }
.notice h1 { max-width: 12ch; }
.notice p { color: var(--bone-2); max-width: 46ch; font-size: 1.2rem; }


/* ---------- What we do: service index ---------- */
.index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); }
.index li { border-top: 1px solid var(--line); }
.index li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.1rem; align-items: start;
  padding: 1.6rem 0.25rem; text-decoration: none;
}
.index-icon {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--signal);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.index-icon .i { width: 1.5rem; height: 1.5rem; }
.index-copy { display: grid; gap: 0.35rem; }
.index-copy b { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.05; transition: color 200ms ease; }
.index-copy span { color: var(--bone-2); font-size: 1rem; line-height: 1.5; max-width: 42ch; }
.index-row .go { color: var(--granite); width: 1.25rem; height: 1.25rem; margin-top: 0.4rem; transition: transform 200ms var(--ease-out), color 200ms ease; }
.index-row:active .index-icon { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .index-row:hover .index-icon { background: var(--crimson); border-color: var(--crimson); color: var(--bone); }
  .index-row:hover .index-copy b { color: var(--signal); }
  .index-row:hover .go { transform: translate(3px, -3px); color: var(--bone); }
}
@media (max-width: 760px) {
  .index { grid-template-columns: minmax(0, 1fr); }
  .index li:nth-last-child(2) { border-bottom: 0; }
}

/* Package items carry a name and a line of detail */
.pkg-line { color: var(--bone-2); font-size: 1rem; margin: -0.35rem 0 0.5rem; max-width: 52ch; }
.pkg-group li > span { display: grid; gap: 0.2rem; color: var(--bone-2); font-size: 1rem; line-height: 1.5; }
.pkg-group li b { color: var(--bone); font-size: 1.125rem; font-weight: 600; }
.pkg-ads { border-top-color: var(--crimson); }


/* Example screens. The device gets its own softer radii (screen 18px, bubbles 14px, switches full) because it depicts a phone. */
.demo { margin: 0; display: grid; gap: 0.5rem; }
.demo-screen {
  display: flex; flex-direction: column; gap: 10px; min-height: 380px; padding: 1rem;
  background: var(--black); border: 1px solid var(--line); border-radius: 18px;
  font-size: 0.9375rem; line-height: 1.4; overflow: hidden;
}
.d-caption { font-size: 0.8125rem; color: var(--granite); text-align: center; }
.d-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.75rem; background: var(--wall); border-radius: var(--r-ctl); color: var(--granite); font-size: 0.875rem; }
.d-form { display: grid; gap: 8px; padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--r-tile); }
.d-label { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; }
.d-field { display: block; padding: 0.6rem 0.7rem; border: 1px solid var(--line-2); border-radius: var(--r-ctl); }
.d-btn { display: block; text-align: center; padding: 0.6rem; border-radius: var(--r-ctl); background: var(--crimson); font-weight: 600; }
.d-bubble { max-width: 85%; padding: 0.6rem 0.8rem; border-radius: 14px; }
.d-bubble.out { align-self: flex-end; background: var(--crimson-ink); border: 1px solid #4a1a22; border-bottom-right-radius: 4px; }
.d-bubble.in { align-self: flex-start; background: var(--wall-2); border-bottom-left-radius: 4px; }
.d-meta { align-self: center; font-size: 0.8125rem; color: var(--granite); }
.d-bubble.out + .d-meta { align-self: flex-end; margin-top: -4px; }
.d-toast { display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding: 0.65rem 0.8rem; border: 1px solid var(--signal); border-radius: var(--r-tile); background: var(--wall); font-weight: 600; font-size: 0.875rem; }
.d-toast .i { color: var(--signal); }
.d-call { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; background: var(--wall); border-radius: var(--r-tile); font-weight: 600; }
.d-call .i { color: var(--signal); }
.d-call small { margin-left: auto; color: var(--granite); font-weight: 400; font-size: 0.8125rem; }
.d-stars { display: flex; gap: 6px; align-self: center; padding: 0.25rem 0; }
.d-stars .i { width: 28px; height: 28px; color: var(--line-2); }
.d-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 0.85rem; background: var(--wall); border-radius: var(--r-tile); font-weight: 600; }
.d-switch { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); }
.d-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bone); }
.d-search { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line-2); border-radius: 999px; }
.d-search .i { color: var(--granite); }
.d-typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.d-results { list-style: none; padding: 0; display: grid; gap: 6px; }
.d-results li { height: 52px; display: flex; align-items: center; padding: 0 0.85rem; background: var(--wall); border-radius: var(--r-tile); color: var(--granite); }
.d-results li.you { color: var(--bone); font-weight: 600; border: 1px solid var(--signal); }

/* Explanation: each example plays in order when its tab is shown. Movement only; final states hold. */
@media (prefers-reduced-motion: no-preference) {
  .js .demo .d-step { opacity: 0; transform: translateY(8px); }
  .js .sys-chapter.is-playing .d-step { animation: d-in 420ms var(--ease-out) forwards; animation-delay: calc(var(--s) * 850ms + 300ms); }
  .js .sys-chapter.is-playing .d-stars .i { animation: star-on 220ms ease forwards; animation-delay: calc(var(--s) * 850ms + 450ms + var(--k) * 120ms); }
  .js .sys-chapter.is-playing .d-switch { animation: switch-on 250ms ease forwards; animation-delay: calc(var(--s) * 850ms + 750ms); }
  .js .sys-chapter.is-playing .d-switch i { animation: knob-on 320ms var(--ease-out) forwards; animation-delay: calc(var(--s) * 850ms + 750ms); }
  .js .demo-seo .d-typed { width: 0; }
  .js .sys-chapter.is-playing .demo-seo .d-typed { animation: typing 1100ms steps(19) forwards 300ms; }
  .js .sys-chapter.is-playing .d-results li.you { animation: rank-up 700ms var(--ease-in-out) forwards 1800ms; }
  .js .sys-chapter.is-playing .d-results li.other { animation: rank-down 700ms var(--ease-in-out) forwards 1800ms; }
}
@keyframes d-in { to { opacity: 1; transform: none; } }
@keyframes star-on { to { color: var(--signal); } }
@keyframes switch-on { to { background: var(--crimson); } }
@keyframes knob-on { to { transform: translateX(18px); } }
@keyframes typing { from { width: 0; } to { width: 19ch; } }
@keyframes rank-up { to { transform: translateY(-116px); } }
@keyframes rank-down { to { transform: translateY(58px); } }
@media (prefers-reduced-motion: reduce) {
  .d-stars .i { color: var(--signal); }
  .d-switch { background: var(--crimson); }
  .d-switch i { transform: translateX(18px); }
  .d-results li.you { order: -1; }
}


.step-time { display: inline-flex; width: fit-content; padding: 0.15rem 0.55rem; border: 1px solid var(--line-2); border-radius: var(--r-ctl); color: var(--bone-2); font-size: 0.875rem; font-weight: 600; }


/* ---------- Systems: one chapter per system, phone on a crimson slab, sides alternate ---------- */
.sys-section { padding-bottom: clamp(3rem, 6vw, 5rem); }
.sys-nav {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
  width: var(--wrap); margin: 0 auto clamp(1rem, 3vw, 2rem);
}
.sys-nav-inner {
  display: flex; gap: 4px; width: fit-content; max-width: 100%; margin-inline: auto; padding: 5px;
  background: var(--black); border: 1px solid var(--line-2); border-radius: var(--r-panel);
  box-shadow: 0 12px 30px -16px rgb(0 0 0 / 0.9);
  overflow-x: auto; scrollbar-width: none;
}
.sys-nav-inner::-webkit-scrollbar { display: none; }
.sys-nav a {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: none; min-height: 44px; padding: 0 0.9rem;
  border-radius: var(--r-tile); color: var(--bone-2); text-decoration: none; font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
.sys-nav a .i { color: var(--signal); transition: color 200ms ease; }
.sys-nav a[aria-current='true'] { background: var(--crimson); color: var(--bone); }
.sys-nav a[aria-current='true'] .i { color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .sys-nav a:not([aria-current='true']):hover { background: var(--wall); color: var(--bone); } }

.sys-chapters { display: grid; }
.sys-chapter {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  scroll-margin-top: calc(var(--header-h) + 80px);
}
.sys-chapter + .sys-chapter { border-top: 1px solid var(--line); }
.sys-chapter.flip .phone-stage { order: 2; }

.phone-stage { position: relative; margin: 0; display: grid; justify-items: center; gap: 1rem; padding-block: clamp(1.5rem, 4vw, 2.5rem); isolation: isolate; }
.phone-stage::before {
  content: ''; position: absolute; z-index: -1; inset: 0 4% 2.2rem 22%;
  background: var(--crimson); border-radius: var(--r-panel);
}
.sys-chapter.flip .phone-stage::before { inset: 0 22% 2.2rem 4%; }

.phone {
  --ry: -14deg; --rz: 1.2deg;
  position: relative; width: min(300px, 74vw); aspect-ratio: 300 / 612; padding: 11px;
  border-radius: 50px; background: linear-gradient(150deg, #2c2828 0%, #151313 45%, #0f0d0d 100%);
  box-shadow: inset 0 0 0 1px #423c3b, inset 0 0 0 3px #0c0b0b, 0 50px 90px -40px rgb(0 0 0 / 0.95), 0 20px 40px -20px rgb(0 0 0 / 0.7);
  transform: perspective(1600px) rotateY(var(--ry)) rotateX(5deg) rotateZ(var(--rz));
  transition: transform 1200ms var(--ease-out);
}
.sys-chapter.flip .phone { --ry: 14deg; --rz: -1.2deg; }
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: #2a2626; }
.phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 64px 0 #2a2626; }
.phone::after { right: -3px; top: 28%; height: 13%; }
.phone .demo-screen {
  position: relative; height: 100%; min-height: 0; padding: 52px 14px 18px;
  border: 0; border-radius: 40px; background: var(--black); font-size: 0.875rem;
}
.phone .demo-screen::before {
  content: ''; position: absolute; top: 12px; left: 50%; width: 92px; height: 27px; translate: -50% 0;
  border-radius: 20px; background: #000;
}
.phone-status { position: absolute; top: 15px; left: 28px; right: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; font-weight: 600; color: var(--bone); }
.ps-bat { width: 22px; height: 11px; border: 1.5px solid var(--bone-2); border-radius: 3px; position: relative; }
.ps-bat::after { content: ''; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--bone); border-radius: 1px; }
.phone .d-caption { display: none; }
.phone-stage > .d-caption { position: relative; }

/* Explanation: the phone settles into place when its chapter arrives */
@media (prefers-reduced-motion: no-preference) {
  .js .sys-chapter:not(.is-playing) .phone { --ry: -32deg; --rz: 3deg; transform: perspective(1600px) rotateY(var(--ry)) rotateX(10deg) rotateZ(var(--rz)) translateY(28px); }
  .js .sys-chapter.flip:not(.is-playing) .phone { --ry: 32deg; --rz: -3deg; }
}

.sys-text { display: grid; gap: 1.1rem; align-content: start; }
.sys-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: var(--r-tile); background: var(--crimson); color: var(--bone); }
.sys-icon .i { width: 1.9rem; height: 1.9rem; }
.sys-text h3 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 900; line-height: 0.95; }
.sys-pitch { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--bone-2); max-width: 40ch; }
.sys-features { list-style: none; padding: 0; margin: 0.5rem 0 0.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.sys-features li { display: grid; gap: 0.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.sys-features b { display: flex; align-items: center; gap: 0.5rem; font-size: 1.0625rem; font-weight: 600; color: var(--bone); line-height: 1.3; }
.sys-features b .i { color: var(--signal); width: 1.1em; height: 1.1em; }
.sys-features span { color: var(--bone-2); font-size: 0.975rem; line-height: 1.5; }
.sys-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.5rem; }
.sys-actions .btn .i { width: 1.1em; height: 1.1em; }

@media (max-width: 960px) {
  .sys-chapter { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .sys-chapter.flip .phone-stage { order: 0; }
  .phone-stage::before, .sys-chapter.flip .phone-stage::before { inset: 8% 0 2.2rem 0; }
  .phone { width: min(270px, 72vw); --ry: -8deg; --rz: 0.6deg; }
  .sys-chapter.flip .phone { --ry: 8deg; --rz: -0.6deg; }
  .sys-nav { width: 100%; padding-inline: var(--gutter); }
}
@media (max-width: 560px) { .sys-features { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .phone { transition: none; } }


/* ======================================================================
   Soft pass: rounder shapes, fewer rules, more air.
   Radius system: pills for buttons and chips, 12px controls, 18px tiles, 28px panels, circles for icons.
   ====================================================================== */
:root { --r-ctl: 12px; --r-tile: 18px; --r-panel: 28px; --r-pill: 999px; }
.btn, .gate, .menu-btn, .steps-row li, .sys-nav-inner, .sys-nav a, .socials a, .step-time { border-radius: var(--r-pill); }
.page-head { border-bottom: 0; }

/* Why choose Castra: one crimson lead card, three quiet ones */
.why { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem; }
.why-card { position: relative; overflow: hidden; display: grid; gap: 0.7rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-panel); background: var(--wall); }
.why-card h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.why-card p { color: var(--bone-2); max-width: 44ch; }
.why-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--crimson-ink); color: var(--signal); }
.why-ic .i { width: 1.5rem; height: 1.5rem; }
.why-lead { grid-row: span 3; align-content: end; min-height: 440px; background: var(--crimson); }
.why-lead h3 { position: relative; font-size: clamp(2.8rem, 5vw, 4.4rem); font-weight: 900; line-height: 0.92; max-width: 9ch; }
.why-lead p { position: relative; color: var(--bone); font-size: 1.2rem; max-width: 34ch; }
.why-mark { position: absolute; top: -12%; right: -14%; width: 78%; color: rgb(255 255 255 / 0.1); }
.why-mark .mark-hq { fill: rgb(0 0 0 / 0.22); }
@media (max-width: 860px) {
  .why { grid-template-columns: minmax(0, 1fr); }
  .why-lead { grid-row: auto; min-height: 340px; }
}

/* Systems: phone on a crimson disc with a thin orbit, no rules between benefits */
.phone-stage::before, .sys-chapter.flip .phone-stage::before {
  inset: auto; top: 46%; left: 50%; width: min(96%, 460px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: var(--crimson);
}
.phone-stage::after {
  content: ''; position: absolute; z-index: -2; top: 46%; left: 50%; width: min(118%, 560px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 1px solid var(--line-2);
}
.sys-chapter + .sys-chapter { border-top: 0; }
.sys-section { overflow-x: clip; }
@media (max-width: 960px) {
  .sys-chapter .demo-screen { font-size: 0.8125rem; gap: 8px; }
  .sys-chapter .d-bubble { padding: 0.5rem 0.7rem; }
}
@media (max-width: 960px) {
  .phone-stage::before, .sys-chapter.flip .phone-stage::before { width: min(86%, 420px); }
  .phone-stage::after { width: min(100%, 480px); }
}
.sys-icon { border-radius: 50%; }
.sys-features li { border-top: 0; padding-top: 0; }
.sys-features b .i, .pkg-group li .i, .includes .i, .expect .i {
  width: 1.55rem; height: 1.55rem; padding: 0.32rem; border-radius: 50%; background: var(--crimson-ink); color: var(--signal); flex: none;
}

/* Everything you get: soft panels instead of ruled groups */
.pkg-list { gap: 1rem; }
.pkg-group, .pkg-crm, .pkg-ads { border-top: 0; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--r-panel); background: var(--wall); }
.pkg-group li { padding: 0.55rem 0; align-items: center; }
.pkg-all { justify-self: start; margin-top: 0.5rem; }

/* Process: round step markers */
.step-num { border-radius: 50%; }

/* Results: four soft tiles instead of a ruled ledger */
.ledger { border-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ledger-row { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; padding: clamp(1.4rem, 3vw, 2rem); border-bottom: 0; border-radius: var(--r-panel); background: var(--wall); }
.ledger-row .src { text-align: left; }
@media (max-width: 760px) { .ledger { grid-template-columns: minmax(0, 1fr); } }

/* FAQ: separate soft rows */
.faq { display: grid; gap: 8px; }
.faq details, .faq details:first-of-type { border: 0; border-radius: var(--r-tile); background: var(--wall); padding: 0 1.25rem; }

/* Service pages: lists without rules */
.includes li, .expect li { border-top: 0; align-items: center; padding: 0.7rem 0; }


/* ---------- "Watch the demo" player ---------- */
.watch .watch-ic { width: 26px; height: 26px; display: grid; place-items: center; margin-left: -0.35rem; border-radius: 50%; background: var(--crimson); color: var(--bone); }
.watch .watch-ic .i { width: 0.8rem; height: 0.8rem; margin-left: 2px; }
html.modal-open { overflow: hidden; }
.demo-modal {
  width: min(1040px, 100% - 24px); max-width: none; max-height: min(94svh, 880px); margin: auto; padding: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--black); color: var(--bone);
  overflow: auto; overscroll-behavior: contain;
}
.demo-modal::backdrop { background: rgb(0 0 0 / 0.75); }
@media (prefers-reduced-motion: no-preference) {
  .demo-modal[open] { animation: dm-in 280ms var(--ease-out); }
  .demo-modal[open]::backdrop { animation: fade 280ms ease; }
}
@keyframes dm-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.dm-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.dm-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.dm-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; transition: background-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .dm-close:hover { background: var(--wall); } }
.dm-body { display: grid; gap: 1rem; padding: 1.25rem 1.5rem 1.5rem; }
.dm-video { width: 100%; border-radius: var(--r-tile); background: #000; }
.dm-player { display: grid; gap: 1rem; }
.dm-player[hidden] { display: none; }
.dm-stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--r-panel); background: var(--wall);
}
.dm-stage::before {
  content: ''; position: absolute; z-index: -1; top: 50%; left: clamp(0.5rem, 3vw, 2rem); width: 400px; aspect-ratio: 1; translate: -12% -50%;
  border-radius: 50%; background: var(--crimson);
}
.dm-phone .phone { width: 260px; transform: none; transition: none; }
.dm-steps { list-style: none; padding: 0; display: grid; gap: 6px; }
.dm-steps button {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem; align-items: center; width: 100%;
  padding: 0.8rem 1rem; border-radius: var(--r-tile); text-align: left; font-size: 1.05rem; line-height: 1.4; color: var(--granite);
  transition: background-color 280ms ease, color 280ms ease;
}
.dm-steps .n {
  width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 50%;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1;
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}
.dm-steps li.is-done button { color: var(--bone-2); }
.dm-steps li.is-done .n { border-color: var(--crimson); color: var(--signal); }
.dm-steps li.is-current button { background: var(--black); color: var(--bone); }
.dm-steps li.is-current .n { background: var(--crimson); border-color: var(--crimson); color: var(--bone); }
@media (hover: hover) and (pointer: fine) { .dm-steps button:hover { color: var(--bone); } }
.dm-end {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 1.25rem; padding: 1.5rem; text-align: center;
  background: rgb(12 11 11 / 0.9);
}
.dm-end[hidden] { display: none; }
.dm-end h3 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.dm-end .cta-actions { justify-content: center; }
.dm-end .link { gap: 0.4rem; }
@media (prefers-reduced-motion: no-preference) { .dm-end:not([hidden]) { animation: fade 400ms var(--ease-out); } }
.dm-controls { display: flex; align-items: center; gap: 0.9rem; }
.dm-btn { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--crimson); color: var(--bone); transition: transform 160ms var(--ease-out); }
.dm-btn:active { transform: scale(0.94); }
.dm-btn.ghost { background: transparent; border: 1px solid var(--line-2); }
.dm-seek { position: relative; flex: 1; height: 44px; cursor: pointer; touch-action: none; }
.dm-seek::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 6px; translate: 0 -50%; border-radius: 999px; background: var(--line); }
.dm-fill { position: absolute; left: 0; right: 0; top: 50%; height: 6px; translate: 0 -50%; border-radius: 999px; background: var(--crimson); transform-origin: left; transform: scaleX(0); }
.dm-time { min-width: 7ch; color: var(--granite); font-size: 0.9375rem; font-variant-numeric: tabular-nums; text-align: right; }
.dm-note { color: var(--granite); font-size: 0.875rem; }

/* The walkthrough is driven by the player clock, not by scroll */
.dm-stage .d-step { opacity: 0; transform: translateY(10px); animation: none !important; transition: opacity 450ms var(--ease-out), transform 500ms var(--ease-out); }
.dm-stage .d-step.on { opacity: 1; transform: none; }
.dm-stage .d-stars .i { animation: none !important; color: var(--line-2); transition: color 220ms ease; transition-delay: calc(var(--k) * 160ms + 250ms); }
.dm-stage .d-stars.on .i { color: var(--signal); }
.dm-stage .d-switch { animation: none !important; background: var(--line-2); transition: background-color 250ms ease 450ms; }
.dm-stage .d-switch i { animation: none !important; transform: none; transition: transform 320ms var(--ease-out) 450ms; }
.dm-stage .d-toggle-row.on .d-switch { background: var(--crimson); }
.dm-stage .d-toggle-row.on .d-switch i { transform: translateX(18px); }
.dm-stage .demo-seo .d-typed { animation: none !important; width: 0; transition: width 1200ms steps(19); }
.dm-stage.at-0 .demo-seo .d-typed { width: 19ch; }
.dm-stage .d-results li { animation: none !important; order: 0 !important; transform: none; transition: transform 700ms var(--ease-in-out); }
.dm-stage.at-2 .d-results li.you { transform: translateY(-116px); }
.dm-stage.at-2 .d-results li.other { transform: translateY(58px); }
@media (prefers-reduced-motion: reduce) {
  .dm-stage .d-step { transform: none; transition: opacity 250ms linear; }
  .dm-stage .d-results li { transition: none; }
}

@media (max-width: 760px) {
  .demo-modal { width: calc(100% - 16px); max-height: 96svh; }
  .dm-head { padding: 1rem 1rem 0; }
  .dm-body { padding: 1rem; }
  .dm-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; padding: 1.25rem 0.75rem; }
  .dm-stage::before { left: 50%; top: 28%; width: 300px; translate: -50% -50%; }
  .dm-phone .phone { width: 220px; }
  .dm-phone .demo-screen { font-size: 0.75rem; gap: 7px; padding: 42px 10px 14px; }
  .dm-phone .d-bubble { padding: 0.45rem 0.6rem; }
  .dm-phone .d-stars .i { width: 22px; height: 22px; }
  .dm-steps { width: 100%; }
  .dm-steps button { font-size: 0.95rem; padding: 0.6rem 0.75rem; }
  .dm-steps li:not(.is-current) { display: none; }
  .dm-steps li.is-current { display: block; }
}


/* ---------- Centered hero (Aventis-style layout, Castra world) ---------- */
.hero.hero-c {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h)); display: grid; place-items: center; text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(6rem, 10vw, 8rem);
}
.hero-c-inner { display: grid; justify-items: center; gap: clamp(1.25rem, 2.5vw, 1.75rem); max-width: 1000px; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: rgb(12 11 11 / 0.7);
  color: var(--bone-2); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-pill .i { width: 1rem; height: 1rem; color: var(--signal); }
.hero.hero-c h1 { font-size: clamp(2.5rem, 13.5vw, 6.5rem); line-height: 0.9; }
@media (min-width: 961px) { .hero.hero-c h1 { font-size: clamp(3.3rem, 8.4vw, 6.5rem); } }
.hero.hero-c .lead { max-width: 54ch; margin-inline: auto; font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.hero.hero-c .hero-actions { justify-content: center; margin-top: 0.5rem; }
.btn-lg { min-height: 58px; padding: 0 1.75rem; font-size: 1.1rem; }
.btn-lg .i { width: 1.2rem; height: 1.2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(1rem, 3vh, 2rem); translate: -50% 0;
  display: grid; justify-items: center; gap: 0.5rem; min-width: 44px; min-height: 44px;
  color: var(--granite); text-decoration: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
}
.scroll-cue span { margin-right: -0.32em; }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--signal), transparent); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue i { animation: cue 2s var(--ease-in-out) infinite; }
  .hero-pill { animation: fade 700ms var(--ease-out) both; }
  .hero.hero-c .hero-actions .btn { animation: fade 700ms var(--ease-out) 320ms both; }
}
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 720px) { .scroll-cue { display: none; } }
@media (max-width: 560px) {
  .hero.hero-c .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-pill { font-size: 0.6875rem; letter-spacing: 0.08em; white-space: nowrap; }
}
@media (max-width: 380px) {
  .hero-pill { padding: 0.45rem 0.8rem; font-size: 0.625rem; }
  .hero-pill .i { display: none; }
}

/* Facts band under the hero */
.facts { background: var(--wall); }
.facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dl > div { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: clamp(1.75rem, 4vw, 2.75rem) 1rem; text-align: center; }
.facts dd { order: -1; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 5.4vw, 4.4rem); line-height: 0.9; color: var(--bone); font-variant-numeric: tabular-nums; }
.facts dl > div:first-child dd { color: var(--signal); }
.facts dt { color: var(--granite); font-size: 0.95rem; max-width: 22ch; }
@media (max-width: 760px) { .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================================================================
   Motion layer. Every effect names its purpose; all respect reduced motion.
   ====================================================================== */

/* State: scroll progress under the header (CSS scroll timeline, hidden where unsupported) */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--crimson); transform-origin: left; transform: scaleX(0);
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }
@keyframes progress { to { transform: scaleX(1); } }

/* Explanation: reading order. Headings rise out of a mask, everything else fades up 14px. */
[data-reveal] {
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out), clip-path 750ms var(--ease-in-out);
  transition-delay: calc(var(--ri, 0) * 60ms + var(--rd, 0ms));
}
[data-reveal='pending'] { opacity: 0; transform: translateY(14px); }
[data-reveal-kind='mask'] { clip-path: inset(0 0 -0.15em 0); }
[data-reveal-kind='mask'][data-reveal='pending'] { opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(0.35em); }

/* Explanation: the usual problems get struck through, then answered, pair by pair. */
.compare .usual .strike {
  background: linear-gradient(var(--signal), var(--signal)) no-repeat 0 58% / 100% 2px;
  transition: background-size 650ms var(--ease-in-out), color 400ms ease;
  transition-delay: calc(var(--i, 0) * 260ms + 150ms);
}
.compare .castra .i {
  transition: transform 450ms var(--ease-out), opacity 250ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 260ms + 520ms);
}
.js .compare .row:not(.is-told) .strike { background-size: 0% 2px; color: var(--bone-2); }
.js .compare .row.castra:not(.is-told) .i { transform: scale(0.5) rotate(-12deg); opacity: 0; }

/* Explanation: the package gets checked off item by item. */
.pkg-group li > span { transition: opacity 300ms ease; transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.pkg-group li .i {
  transition: transform 400ms var(--ease-out), opacity 220ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .pkg-group:not(.is-told) li > span { opacity: 0.55; }
.js .pkg-group:not(.is-told) li .i { transform: scale(0.5); opacity: 0; }

/* State: a process step fills red once the reader reaches it. */
.step-num { transition: background-color 250ms ease, color 250ms ease; }
.step.is-active .step-num { background: var(--crimson); }

/* Delight (once): the closing C locks shut as the red arm slides home. */
.cta-mark .mark-hq { transform-box: fill-box; transition: transform 900ms var(--ease-out) 250ms, opacity 400ms var(--ease-out) 250ms; }
.js .cta-block:not(.is-told) .cta-mark .mark-hq { transform: translateX(35%); opacity: 0; }

/* Feedback: hovering a gate previews its road. */
.camp .route-preview { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 3 7; fill: none; opacity: 0; transition: opacity 200ms ease; }
.camp .route-preview.is-on { opacity: 0.7; }

/* Feedback: a thin spotlight rides the tile border under the pointer. */
@media (hover: hover) and (pointer: fine) {
  .svc, .hub-svc { position: relative; isolation: isolate; }
  .svc::before, .hub-svc::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--signal), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 200ms ease;
  }
  .svc:hover::before, .hub-svc:hover::before { opacity: 1; }
}

/* Spatial: menu links arrive in order under the header. */
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) > * { animation: menu-item 280ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 35ms + 40ms); }
}
@keyframes menu-item { from { opacity: 0; transform: translateY(8px); } }

/* Reduced motion: keep the fades that explain order, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: opacity 300ms linear; transition-delay: 0ms; }
  [data-reveal='pending'], [data-reveal-kind='mask'][data-reveal='pending'] { transform: none; clip-path: none; opacity: 0; }
  .compare .usual .strike, .compare .castra .i, .pkg-group li, .pkg-group li .i, .cta-mark .mark-hq { transition-duration: 200ms; transition-delay: 0ms; }
  .js .compare .row.castra:not(.is-told) .i, .js .pkg-group:not(.is-told) li .i, .js .cta-block:not(.is-told) .cta-mark .mark-hq { transform: none; }
}

/* Night sky: one fixed canvas behind every page */
.sky { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ======================================================================
   Centered pass: headings, intros and single-column content sit on the centre line.
   Two-column pieces that depend on a side-by-side read (systems chapters, service-page splits) stay as they are.
   ====================================================================== */
.section-head { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { margin-inline: auto; }
.split .section-head, .name-story .section-head { margin-inline: 0; text-align: left; justify-items: start; }

/* Inner pages without a side panel */
.page-head:not(:has(.page-head-grid, .book-grid)) .wrap { display: grid; justify-items: center; text-align: center; }
.page-head:not(:has(.page-head-grid, .book-grid)) h1 { margin-inline: auto; }
.page-head:not(:has(.page-head-grid, .book-grid)) .lead { margin-inline: auto; }
.page-head:not(:has(.page-head-grid, .book-grid)) .hero-actions { justify-content: center; }
.page-head:not(:has(.page-head-grid, .book-grid)) .crumbs { justify-content: center; }

/* Everything you get: heading on top, four groups in a centered 2x2 */
.pkg-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(2rem, 4vw, 3rem); }
.pkg-intro { position: static; max-width: 52rem; justify-items: center; text-align: center; }
.pkg-intro p { margin-inline: auto; max-width: 46ch; }
.pkg-list { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pkg-group ul { grid-template-columns: minmax(0, 1fr); }
.pkg-all { grid-column: 1 / -1; justify-self: center; }
@media (max-width: 860px) { .pkg-list { grid-template-columns: minmax(0, 1fr); } }

/* How it works: a centered horizontal timeline */
.process-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: clamp(2.5rem, 5vw, 4rem); }
.process-intro { position: static; max-width: 46rem; justify-items: center; text-align: center; }
.process-intro p { margin-inline: auto; }
.steps { width: 100%; padding-left: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); text-align: center; }
.steps::before, .steps::after { left: 12.5%; right: 12.5%; top: 1.75rem; bottom: auto; width: auto; height: 2px; }
.steps::after { transform-origin: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation-name: railx; animation-range: cover 20% cover 55%; }
  }
}
@keyframes railx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.step { justify-items: center; }
.step-num { position: relative; left: auto; top: auto; z-index: 1; margin-bottom: 0.75rem; }
.step h3 { font-size: clamp(1.7rem, 2.4vw, 2.1rem); }
.step p { margin-inline: auto; max-width: 30ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-left: 0; }
  .steps::before, .steps::after { display: none; }
  .step-num { left: auto; width: 3rem; height: 3rem; }
}

/* Results and FAQ on the centre line */
.ledger-row { justify-items: center; text-align: center; }
.ledger-row p { max-width: 36ch; }
.ledger-row .src { text-align: center; }
.faq { margin-inline: auto; }
.results-note, .areas-foot { text-align: center; }

/* Closing block: centered copy, the Split C as a watermark */
.cta-block:not(.has-cal) { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.cta-block:not(.has-cal) .cta-copy { z-index: 1; justify-items: center; }
.cta-block:not(.has-cal) .cta-copy p { margin-inline: auto; }
.cta-block:not(.has-cal) .cta-actions { justify-content: center; }
.cta-block:not(.has-cal) .cta-mark { position: absolute; top: -22%; right: -8%; width: min(46%, 420px); opacity: 0.16; justify-self: auto; }
.cta-block.has-cal .cta-copy { text-align: left; }

/* ---------- Services grid (Modara-style, "under one roof") ---------- */
.offer { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.offer-card {
  position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.6rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--r-panel); background: var(--wall);
  text-decoration: none; transition: background-color 200ms ease, transform 200ms var(--ease-out);
}
.offer-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.4rem; }
.offer-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--crimson-ink); color: var(--signal); transition: background-color 200ms ease, color 200ms ease; }
.offer-ic .i { width: 1.5rem; height: 1.5rem; }
.offer-tag { padding: 0.3rem 0.7rem; border: 1px solid var(--line-2); border-radius: var(--r-pill); color: var(--granite); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.offer-card b { font-family: var(--display); font-size: clamp(1.6rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.05; padding-right: 1.5rem; }
.offer-card .offer-text { color: var(--bone-2); font-size: 1rem; line-height: 1.5; }
.offer-card .go { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 1.2rem; height: 1.2rem; color: var(--granite); }
.offer-card { padding-bottom: 3.25rem; }
@media (hover: hover) and (pointer: fine) {
  .offer-card:hover { background: var(--wall-2); transform: translateY(-3px); }
  .offer-card:hover .offer-ic { background: var(--crimson); color: var(--bone); }
  .offer-card:hover .go { color: var(--bone); transform: translate(2px, -2px); }
}
.offer-foot { display: flex; justify-content: center; margin-top: 2rem; }
@media (max-width: 1000px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .offer { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .offer-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.2rem 1rem; padding: 1rem 1.1rem; }
  .offer-top { grid-row: span 2; margin: 0; }
  .offer-tag, .offer-card .go { display: none; }
  .offer-card .offer-text { font-size: 0.9375rem; }
  .offer-card b { font-size: 1.4rem; padding-right: 0; }
}

/* ---------- Industries: one slow marquee of chips ---------- */
.industries .section-head { margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { list-style: none; padding: 0.25rem 0; margin: 0; display: flex; gap: 0.75rem; width: max-content; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 0.6rem; flex: none; padding: 0.8rem 1.25rem;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--black);
  font-weight: 600; font-size: 1.05rem; white-space: nowrap;
}
.marquee-track .i { color: var(--signal); width: 1.3rem; height: 1.3rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 0.375rem)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee-track li[aria-hidden='true'] { display: none; }
}

/* Trusted-by row (only renders with real logos) */
.clients { padding-block: 2rem; }
.clients-label { text-align: center; color: var(--granite); font-size: 0.875rem; margin-bottom: 1rem; }
.clients-row { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3rem; }
.clients-row img { height: 40px; width: auto; opacity: 0.8; filter: grayscale(1) brightness(1.6); }

.cta-note { font-size: 0.9375rem; opacity: 0.9; }
@media (hover: hover) and (pointer: fine) {
  .offer-card { isolation: isolate; }
  .offer-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
    background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--signal), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 200ms ease;
  }
  .offer-card:hover::before { opacity: 1; }
}

/* Legal pages and footer links */
.legal { max-width: 70ch; margin-inline: auto; display: grid; gap: 0.9rem; }
.legal h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.25rem; }
.legal p { color: var(--bone-2); }
.legal a { color: var(--bone); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--granite); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { color: var(--bone); } }
