/* ==========================================================================
   Aleya — aleyasoftware.com
   Dark technical theme. Built in pieces; sections are added as we go.

   1. Tokens      3. Layout      5. Header
   2. Reset/base  4. Buttons     6. Hero
   ========================================================================== */

/* 1. Tokens --------------------------------------------------------------- */

:root {
  /* Warm-neutral ramp, keyed to the logo charcoal. 950 = lightest. */
  --ink-950: #f7f6f4;
  --ink-900: #e9e7e4;
  --ink-800: #d2cfcb;
  --ink-700: #b2afaa;
  --ink-600: #948f8a;
  --ink-500: #7d7873;
  --ink-400: #635f5b;
  --ink-300: #494542;
  --ink-200: #34312f;
  --ink-100: #262322;
  --ink-050: #1a1817;

  /* Surfaces */
  --bg: #100f0e;
  --bg-alt: #171514;
  --surface: #1b1918;
  --surface-2: #221f1e;
  --line: #2b2725;
  --line-soft: rgba(255, 255, 255, .07);

  /* Brand — from the logo */
  --red-700: #a82d25;
  --red-600: #c1352c;
  --red-500: #d9483f;
  --red-400: #e8695f;
  --red-300: #f2a49d;
  --red-wash: rgba(217, 72, 63, .13);

  --text: var(--ink-900);
  --text-muted: var(--ink-500);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape & rhythm */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --pill: 999px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* 2. Reset & base --------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
ul[class] { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-950);
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); letter-spacing: -0.02em; }

p { text-wrap: pretty; }

/* Monospace technical label */
.mono {
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Eyebrow with a status dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 4px rgba(217, 72, 63, .16);
}

/* Accessibility helpers */
:focus-visible {
  outline: 2px solid var(--red-400);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--red-600);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

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

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


/* 3. Layout --------------------------------------------------------------- */

/* Anchor jumps land below the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 10px); }

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



/* 4. Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 19px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary {
  background: var(--red-600);
  color: #fff;
}
.btn--primary:hover { background: var(--red-500); }

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink-950);
}
.btn--ghost:hover { border-color: var(--ink-400); background: var(--surface); }

.btn--lg { padding: 12px 24px; font-size: .95rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}


/* 5. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Transparent at rest so the hero grid reads straight through it. The hero
     is pulled up by the header height to put that grid behind here. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              backdrop-filter .25s var(--ease);
}
/* Once scrolled past the hero top it becomes solid, so nav stays legible
   over real content. */
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(16, 15, 14, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo — inline SVG so it inherits colour */
.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: var(--ink-950);
  text-decoration: none;
}
.logo svg { height: 28px; width: auto; }

/* Nav sits directly beside the logo. */
.nav { margin-left: 6px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-block;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav__link:hover { color: var(--ink-950); background: var(--surface-2); }
.nav__link[aria-current] { color: var(--red-400); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-left: auto;
}

.header-actions .btn { padding: 9px 17px; font-size: .875rem; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 15px; height: 15px; color: var(--red-400); }
.header-phone:hover { color: var(--ink-950); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex: none;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--ink-950);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) translateY(-5.5px); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) translateY(5.5px); }

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }


/* 6. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Slide up under the sticky header so the grid and glow sit behind it. */
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(72px, 11vw, 150px)) clamp(60px, 9vw, 120px);
  text-align: center;
}

/* Fine engineering grid + a warm glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 68% at 50% 32%, #000 25%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 68% at 50% 32%, #000 25%, transparent 76%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(760px 400px at 50% -6%, rgba(217, 72, 63, .20), transparent 68%),
    radial-gradient(600px 340px at 82% 14%, rgba(233, 162, 59, .06), transparent 70%);
}

.hero__inner {
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 { margin-top: 24px; }
.hero h1 .muted { color: var(--ink-500); }

.hero__lead {
  margin: 26px auto 0;
  max-width: 62ch;
  font-size: clamp(1.02rem, .96rem + .4vw, 1.18rem);
  line-height: 1.62;
  color: var(--text-muted);
}

.hero .btn-row {
  justify-content: center;
  margin-top: 36px;
}


/* 7. Hero schematic sheet -------------------------------------------------- */

.sheet {
  position: relative;
  margin: clamp(46px, 6vw, 86px) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(to right, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(to bottom, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 44px,
    #0c0b0a;
  padding: clamp(14px, 2vw, 26px);
  text-align: left;
}

/* Reticle ticks at the sheet corners */
.sheet__tick {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(217, 72, 63, .55);
  pointer-events: none;
}
.sheet__tick--tl { top: 9px; left: 9px; border-right: 0; border-bottom: 0; }
.sheet__tick--tr { top: 9px; right: 9px; border-left: 0; border-bottom: 0; }
.sheet__tick--bl { bottom: 9px; left: 9px; border-right: 0; border-top: 0; }
.sheet__tick--br { bottom: 9px; right: 9px; border-left: 0; border-top: 0; }

.schematic { width: 100%; height: auto; }

/* Title block */
.sheet__block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sheet__title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.sheet__meta { margin-top: 5px; font-size: .66rem; letter-spacing: .13em; }

/* Scroll cue */
.scrollcue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(30px, 4vw, 46px);
}
.scrollcue__rule {
  width: min(180px, 22vw);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line));
}
.scrollcue__rule--r { background: linear-gradient(to left, transparent, var(--line)); }
.scrollcue__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.scrollcue__link:hover { color: var(--ink-950); }
.scrollcue__link:hover .mono { color: var(--ink-950); }
.scrollcue svg { width: 13px; height: 13px; animation: nudge 2.4s var(--ease) infinite; }

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* --- Schematic drawing ---------------------------------------------------- */

/* Walls draw themselves in */
.hs-wall {
  fill: none;
  stroke: rgba(255, 255, 255, .26);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) forwards;
}
.hs-wall:nth-of-type(2) { animation-delay: .12s; }
.hs-wall:nth-of-type(3) { animation-delay: .2s; }
.hs-wall:nth-of-type(4) { animation-delay: .28s; }
.hs-wall:nth-of-type(5) { animation-delay: .34s; }
.hs-wall:nth-of-type(6) { animation-delay: .4s; }
.hs-wall:nth-of-type(7) { animation-delay: .46s; }
.hs-wall:nth-of-type(8) { animation-delay: .52s; }
.hs-wall:nth-of-type(9) { animation-delay: .58s; }
.hs-wall:nth-of-type(10) { animation-delay: .62s; }
.hs-wall:nth-of-type(11) { animation-delay: .66s; }
.hs-wall:nth-of-type(12) { animation-delay: .7s; }
.hs-wall:nth-of-type(13) { animation-delay: .74s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* Cable runs: a dim base that draws in, plus a bright dashed layer that flows */
.hs-cable {
  fill: none;
  stroke: rgba(217, 72, 63, .32);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) .55s forwards;
}

.hs-flow {
  fill: none;
  stroke: #f26a5f;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5 26;
  filter: url(#hsGlow);
  opacity: 0;
  animation: flowIn .5s var(--ease) 1.5s forwards, flow 2.6s linear 1.5s infinite;
}
.hs-flow--b { animation-delay: 1.5s, 1.9s; }
.hs-flow--c { animation-delay: 1.5s, 2.3s; }

@keyframes flowIn { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -62; } }

/* Device markers */
.hs-node { fill: #0c0b0a; stroke: #d9483f; stroke-width: 2; }
.hs-core { fill: #f26a5f; filter: url(#hsGlow); }

.hs-ring {
  fill: rgba(217, 72, 63, .05);
  stroke: rgba(217, 72, 63, .3);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 3.6s var(--ease) infinite;
}
.hs-ring--2 { animation-delay: 1.2s; }
.hs-ring--3 { animation-delay: 2.4s; }

@keyframes ring {
  0%   { transform: scale(.72); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scale(1.12); opacity: 0; }
}

.hs-blink { fill: #3dd68c; animation: blink 2s var(--ease) infinite; }
.hs-blink--2 { animation-delay: .7s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Equipment outlines */
.hs-box { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .3); stroke-width: 1.4; }
.hs-slot { stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }

/* Camera field-of-view */
.hs-fov {
  fill: none;
  stroke: rgba(255, 255, 255, .16);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

/* Text on the drawing */
.hs-room {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  fill: #57534f;
}
.hs-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.1px;
  fill: #8a8580;
}

@media (prefers-reduced-motion: reduce) {
  .hs-flow { opacity: 1; animation: none; }
  .hs-ring { opacity: .6; animation: none; }
  .hs-wall, .hs-cable { stroke-dashoffset: 0; animation: none; }
  .scrollcue svg { animation: none; }
}


/* 8. Stat band ------------------------------------------------------------ */

.statband {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}

/* Two shared rows — value, then label. Each item adopts them via subgrid so
   every label starts at the same y even though the values differ in size. */
.statband__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  grid-auto-rows: auto;
}

.statband__item {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 14px;
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 2.6vw, 36px);
  border-left: 1px solid var(--line);
}
.statband__item:first-child { border-left: 0; padding-left: 0; }

.statband__num {
  align-self: end;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.1vw, 3.1rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink-950);
}
.statband__num sup {
  font-size: .46em;
  vertical-align: super;
  line-height: 1;
  color: var(--red-400);
  margin-left: 1px;
}

/* Word-based values need to sit optically level with the numerals. */
.statband__num--text { font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); }

/* Trailing unit ("day", "hrs") rides smaller than the figure it follows. */
.statband__unit {
  font-size: .4em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--red-400);
}

.statband__label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-500);
  line-height: 1.5;
}


/* 9. Coverage ticker ------------------------------------------------------ */

.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

.ticker__row {
  display: flex;
  align-items: center;
}

.ticker__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 15px 22px 15px 0;
  border-right: 1px solid var(--line);
}

.ticker__pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-500);
  box-shadow: 0 0 0 3px rgba(217, 72, 63, .16);
  animation: pip 2.4s var(--ease) infinite;
}
@keyframes pip { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.ticker__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 92%, transparent);
}

/* Two identical halves; translating by exactly -50% loops seamlessly.
   Spacing lives inside each item (not as a flex gap) so the halves are
   exactly equal width and the seam lands perfectly. */
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__track li {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-left: 30px;
  white-space: nowrap;
  font-size: .92rem;
  color: var(--ink-700);
}
.ticker__track li::after {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-500);
  opacity: .6;
}

@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
  .ticker__pip { animation: none; opacity: 1; }
}


/* 10. Sections ------------------------------------------------------------ */

.section { padding-block: clamp(66px, 8vw, 120px); }
.section--alt { background: var(--bg-alt); }

/* Split section head: statement left, supporting paragraph right */
.sec-head {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(26px, 5vw, 76px);
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 60px);
}
.sec-head h2 .mute { color: var(--ink-400); }
.sec-head p { color: var(--text-muted); }


/* 11. Services mosaic ------------------------------------------------------ */

/* Hairline dividers come from the 1px grid gap showing the parent through. */
.svcgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1.8vw, 27px);
  background: var(--bg);
  text-decoration: none;
  transition: background-color .25s var(--ease);
}
.svc:hover { background: var(--surface); }

/* Anchor cell takes half the width and both upper rows; the remaining four
   fill the 2x2 beside it, and the last four run across the bottom. */
.svc--feature { grid-column: span 2; grid-row: span 2; }

.svc__icon {
  width: 34px;
  height: 34px;
  color: var(--ink-950);
  margin-bottom: clamp(11px, 1.1vw, 16px);
}
.svc__icon svg { width: 100%; height: 100%; }

.svc h3 {
  margin-bottom: 9px;
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
}
.svc--feature h3 {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem);
  margin-bottom: 13px;
  max-width: 18ch;
}

.svc p {
  font-size: .865rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.svc--feature p { font-size: .92rem; max-width: 46ch; }

/* Corner arrow */
.svc__go {
  position: absolute;
  top: clamp(19px, 1.7vw, 25px);
  right: clamp(19px, 1.7vw, 25px);
  width: 14px;
  height: 14px;
  color: var(--ink-400);
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.svc:hover .svc__go { color: var(--red-400); transform: translate(3px, -3px); }


/* 12. How we work — scroll-driven build ------------------------------------ */

.how { background: var(--bg-alt); }

.how__head {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding-block: clamp(66px, 8vw, 120px) 0;
}
.how__head p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
}

/* Tall track; the stage pins inside it while the chapters advance. */
.how__wrap { height: 320vh; position: relative; }

.how__stage {
  position: sticky;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Step ladder ---------------------------------------------------------- */

.ladder { display: grid; align-content: center; gap: 2px; }

.step {
  border-top: 1px solid var(--line);
  padding: clamp(14px, 1.6vw, 22px) 0;
  opacity: .4;
  transition: opacity .45s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step.is-active { opacity: 1; }

.step__head { display: flex; align-items: baseline; gap: 16px; }

.step__no {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--ink-400);
  transition: color .45s var(--ease);
}
.step.is-active .step__no { color: var(--red-400); }

.step__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink-950);
}

/* Panel collapses to zero height until its chapter is active. */
.step__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.step.is-active .step__panel { grid-template-rows: 1fr; }
.step__panel > div { overflow: hidden; }

.step__body {
  padding: 12px 0 0 44px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}

/* Qualified with `ul` so it outranks the `ul[class]` padding reset. */
ul.step__bullets {
  padding: 14px 0 4px 66px;
  display: grid;
  gap: 9px;
}
.step__bullets li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .01em;
  line-height: 1.55;
  color: var(--ink-600);
}
.step__bullets svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--red-400); }

/* --- Building canvas ------------------------------------------------------ */

.build-wrap {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}
.build { width: 100%; height: auto; max-height: 78vh; }

/* Everything with a data-at threshold fades/rises in as scroll passes it. */
.build [data-at] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.build [data-at].is-on { opacity: 1; transform: none; }

/* Cutaway shell: glass-transparent so the infrastructure inside reads through.
   Three alpha steps still give the faces their isometric shading. */
.b-site    { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1; stroke-dasharray: 4 7; }
/* Floor decks are opaque — they are the reference plane that tells you which
   level you are looking at. The walls are the transparent part, not these. */
.b-roof    { fill: rgba(255,255,255,.05); stroke: rgba(255,255,255,.30); stroke-width: 1.3; }
.b-deck    { fill: #211d1b; stroke: rgba(255,255,255,.34); stroke-width: 1.3; }
.b-edge-l  { fill: #141211; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.b-edge-r  { fill: #1b1816; stroke: rgba(255,255,255,.24); stroke-width: 1; }
.b-plate   { fill: rgba(255,255,255,.05);  stroke: rgba(255,255,255,.30); stroke-width: 1.3; }
.b-right   { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.20); stroke-width: 1.2; }
.b-left    { fill: rgba(255,255,255,.015); stroke: rgba(255,255,255,.13); stroke-width: 1.2; }
.b-mullion { stroke: rgba(255,255,255,.10); stroke-width: 1; }
.b-slab    { fill: #26211f; stroke: rgba(255,255,255,.30); stroke-width: 1.3; }
.b-ghost   { fill: none; stroke: rgba(217,72,63,.45); stroke-width: 1.4; stroke-dasharray: 6 6; }

/* Coverage pool under each ceiling-mounted AP */
.b-cone { fill: rgba(217,72,63,.10); stroke: rgba(217,72,63,.28); stroke-width: 1; }

.b-rack      { fill: rgba(255,255,255,.14); stroke: rgba(255,255,255,.34); stroke-width: 1.2; }
.b-rack-side { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.24); stroke-width: 1.2; }
.b-mast      { stroke: rgba(255,255,255,.32); stroke-width: 1.6; }


/* Cabling */
.b-riser, .b-run { stroke: rgba(217,72,63,.5); stroke-width: 1.8; stroke-linecap: round; }
.b-live {
  stroke: #f26a5f;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 22;
  filter: url(#bGlow);
  animation: flow 2.4s linear infinite;
}

/* Devices */
.b-node { fill: #0c0b0a; stroke: #d9483f; stroke-width: 1.8; }
.b-core { fill: #f26a5f; filter: url(#bGlow); }
.b-ok   { fill: #3dd68c; }

.b-pulse {
  fill: none;
  stroke: rgba(61,214,140,.5);
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  animation: ring 3.4s var(--ease) infinite;
}
.b-pulse--2 { animation-delay: 1.1s; }

.b-live--b { animation-delay: .8s; }
.b-live--c { animation-delay: 1.6s; }

.b-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  fill: #6f6b67;
}

@media (prefers-reduced-motion: reduce) {
  .build [data-at] { opacity: 1; transform: none; }
  .b-live, .b-pulse { animation: none; }
}


/* 13. Closing CTA ---------------------------------------------------------- */

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(80px, 11vw, 150px);
  border-top: 1px solid var(--line);
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 380px at 50% 110%, rgba(217, 72, 63, .20), transparent 68%),
    radial-gradient(560px 300px at 50% -20%, rgba(233, 162, 59, .05), transparent 70%);
}

.final__inner { max-width: 760px; margin-inline: auto; }
.final h2 { margin-top: 22px; }
.final p {
  margin: 22px auto 0;
  max-width: 60ch;
  color: var(--text-muted);
  font-size: clamp(1rem, .95rem + .3vw, 1.12rem);
}
.final .btn-row { justify-content: center; margin-top: 34px; }


/* 14. Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(52px, 6vw, 76px) 28px;
  font-size: .9rem;
  color: var(--ink-500);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.footer__about { margin-top: 18px; max-width: 36ch; line-height: 1.6; }

.footer__title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-800);
  margin-bottom: 16px;
}

.footer__list { display: grid; gap: 11px; }
.footer__list a { text-decoration: none; transition: color .18s var(--ease); }
.footer__list a:hover { color: var(--ink-950); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .78rem;
  color: var(--ink-400);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}


/* 15. Contact page --------------------------------------------------------- */

.cpage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(56px, 7vw, 100px)) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.cpage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 76%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 20%, #000 20%, transparent 76%);
}
.cpage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(700px 380px at 18% 0%, rgba(217,72,63,.16), transparent 66%);
}

.cpage__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.cpage h1 { margin-top: 22px; font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
.cpage__lead {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(1rem, .95rem + .25vw, 1.08rem);
}

/* Call / email / on-site rows */
.cmeta { margin-top: 34px; display: grid; gap: 14px; }
.cmeta__row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: baseline; }
.cmeta__k {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.cmeta__v { font-size: .98rem; color: var(--ink-900); text-decoration: none; }
a.cmeta__v:hover { color: var(--red-400); }

/* Direct-line panel */
.wire {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  padding: clamp(18px, 2vw, 26px);
}
.wire__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.wire svg { width: 100%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--ink-600);
}
.chip--on { border-color: rgba(217,72,63,.5); color: var(--red-300); }

.wire__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.wire__live { display: inline-flex; align-items: center; gap: 9px; }
.wire__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(61,214,140,.16);
  animation: pip 2.2s var(--ease) infinite;
}

/* --- Form ---------------------------------------------------------------- */

.formsec { padding-block: clamp(56px, 7vw, 100px); }
.formwrap { max-width: 780px; }

.tabs { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tab {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-400);
  padding: 0 0 5px;
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tab[aria-selected="true"] { color: var(--ink-950); border-bottom-color: var(--red-500); }
.tabs__sep { color: var(--ink-300); }

.formsec__note { margin-top: 16px; color: var(--text-muted); font-size: .95rem; }

fieldset { border: 0; padding: 0; margin: 34px 0 0; }
legend {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
  padding: 0 0 4px;
}
.legend-note { color: var(--text-muted); font-size: .9rem; margin: 8px 0 18px; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: .88rem; font-weight: 600; color: var(--ink-800); }
.field label span {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 500;
  margin-left: 6px;
}
.field label span.req { color: var(--red-400); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-950);
  font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(217,72,63,.16);
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--red-500); }
.field__err { font-size: .8rem; color: var(--red-400); display: none; }
.field--error .field__err { display: block; }

/* Radio cards */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.opt:hover { border-color: var(--ink-400); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1.5px solid var(--ink-400);
  display: grid; place-items: center;
  transition: border-color .18s var(--ease);
}
.opt__mark::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red-500);
  transform: scale(0);
  transition: transform .18s var(--ease);
}
.opt:has(input:checked) { border-color: var(--red-500); background: rgba(217,72,63,.09); }
.opt:has(input:checked) .opt__mark { border-color: var(--red-500); }
.opt:has(input:checked) .opt__mark::after { transform: scale(1); }
.opt:has(input:focus-visible) { outline: 2px solid var(--red-400); outline-offset: 2px; }

/* Work-type picker: two-line cards in a responsive grid */
.opts--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 10px;
}
.opt--stack {
  align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.opt--stack .opt__mark { margin-top: 2px; flex: none; }
.opt__txt { display: grid; gap: 2px; }
.opt__txt b { font-weight: 600; color: var(--ink-900); }
.opt__txt em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: var(--ink-400);
}
.opt--stack:has(input:checked) .opt__txt b { color: var(--ink-950); }

.fgrid--3 { grid-template-columns: repeat(3, 1fr); }

.form-status {
  display: none;
  margin-top: 20px;
  padding: 14px 17px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  line-height: 1.5;
}
.form-status.is-visible { display: block; }
.form-status--ok  { background: rgba(61,214,140,.10); border: 1px solid rgba(61,214,140,.34); color: #7ce8b4; }
.form-status--err { background: rgba(217,72,63,.12); border: 1px solid rgba(217,72,63,.4); color: var(--red-300); }

.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* --- FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); margin-top: 12px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  align-items: center;
  gap: 10px;
  padding: 20px 2px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, .95rem + .25vw, 1.12rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-950);
}
.faq__no {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--ink-400);
}
.faq__q:hover { color: var(--red-300); }
.faq__ico { position: relative; width: 22px; height: 22px; justify-self: end; }
.faq__ico::before, .faq__ico::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  background: currentColor;
  border-radius: 2px;
}
.faq__ico::before { width: 11px; height: 1.6px; }
.faq__ico::after  { width: 1.6px; height: 11px; transition: opacity .22s var(--ease); }
.faq__q[aria-expanded="true"] { color: var(--red-300); }
.faq__q[aria-expanded="true"] .faq__ico::after { opacity: 0; }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 40px 22px 52px;
  color: var(--text-muted);
  font-size: .94rem;
  max-width: 76ch;
}

@media (max-width: 1080px) {
  .fgrid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cpage__grid { grid-template-columns: 1fr; }
  .fgrid, .fgrid--3 { grid-template-columns: 1fr; }
  .faq__a p { padding-left: 52px; padding-right: 0; }
}


/* 16. Pricing -------------------------------------------------------------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.pcard {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  background: var(--bg);
}

.pcard__no {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--ink-400);
  margin-bottom: 16px;
}

.pcard__title { font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem); margin-bottom: 14px; }

.pcard__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.pcard__fig {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-950);
}
.pcard__unit {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.pcard__body { font-size: .9rem; line-height: 1.6; color: var(--text-muted); }

.pcard__list { display: grid; gap: 10px; margin-top: 20px; }
.pcard__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-600);
}
.pcard__list svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: var(--red-400); }

.pcard__cta { margin-top: auto; padding-top: 24px; }
.pcard__cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--red-400);
  text-decoration: none;
}
.pcard__cta svg { width: 15px; height: 15px; transition: transform .22s var(--ease); }
.pcard__cta a:hover svg { transform: translateX(4px); }

/* Highlighted tier */
.pcard--pick { background: var(--surface); position: relative; }
.pcard__flag {
  position: absolute;
  top: 0; right: 0;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--red-500);
  padding: 4px 11px;
  border-bottom-left-radius: var(--radius-sm);
}

/* Fixed-price / two-up variants */
.pgrid--2 { grid-template-columns: repeat(2, 1fr); }

/* Flat-rate callout */
.flatrate {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-top: 26px;
}
/* Figure and unit stack, so the two never read as one run-on word. */
.flatrate__fig {
  display: grid;
  gap: 9px;
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.9rem + 2.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-950);
}
.flatrate__unit {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--red-400);
}
.flatrate__note { font-size: .95rem; color: var(--text-muted); max-width: 52ch; }

@media (max-width: 1000px) {
  .pgrid { grid-template-columns: 1fr; }
  .pgrid--2 { grid-template-columns: 1fr; }
}


/* 17. About ---------------------------------------------------------------- */

/* Inline HQ / on-site / remote row under the lead */
.inline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.inline-meta__pair { display: inline-flex; align-items: baseline; gap: 10px; }
.inline-meta__k {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.inline-meta__v { font-size: .95rem; color: var(--ink-900); }

/* Firm record card */
.record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  overflow: hidden;
}
.record__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.record__name {
  font-family: var(--font-display);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-950);
}

.record__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}
.record__cell { background: var(--bg); padding: 16px 20px; }
.record__k {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 7px;
}
.record__v { font-size: .93rem; color: var(--ink-900); line-height: 1.45; }
.record__cell--hi { background: rgba(217,72,63,.07); }
.record__cell--hi .record__v { color: var(--red-300); }

.record__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.record__foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-500); flex: none;
}

/* Numbered operating principles */
.prin {
  display: grid;
  grid-template-columns: 78px 1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(30px, 3.6vw, 46px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.prin:last-child { border-bottom: 1px solid var(--line); }

.prin__no {
  font-family: var(--font-mono);
  font-size: .95rem;
  letter-spacing: .08em;
  color: var(--red-400);
  padding-top: 5px;
}
.prin h3 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
  margin-bottom: 13px;
}
.prin__body { color: var(--text-muted); font-size: .95rem; line-height: 1.62; }

.prin__list { display: grid; gap: 11px; padding-top: 4px; }
.prin__list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .01em;
  line-height: 1.6;
  color: var(--ink-600);
}
.prin__list li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--red-500);
}

@media (max-width: 900px) {
  .prin { grid-template-columns: 1fr; gap: 16px; }
  .prin__no { padding-top: 0; }
  .record__grid { grid-template-columns: 1fr; }
}


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

@media (max-width: 1080px) {
  .svcgrid { grid-template-columns: 1fr 1fr; }
  .svc--feature { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  /* Pinning is more trouble than it is worth on a phone — stack it. */
  .how__wrap { height: auto; }
  .how__stage {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(30px, 6vw, 50px) clamp(60px, 9vw, 100px);
  }
  .build-wrap { order: -1; }
  .build { max-height: none; }
  .step { opacity: 1; }
  .step__panel { grid-template-rows: 1fr; }
  .step__body { padding-left: 0; }
  ul.step__bullets { padding-left: 22px; }

  .sec-head { grid-template-columns: 1fr; align-items: start; gap: 20px; }

  .statband__grid { grid-template-columns: repeat(2, 1fr); }
  .statband__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .statband__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .header-actions .btn { padding: 9px 17px; font-size: .875rem; }

.header-phone { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    display: none;
    padding: 12px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 14px 12px; font-size: 1.02rem; }

  .header-actions .btn { display: none; }
}

@media (max-width: 760px) {
  /* Annotations scale below legibility on a phone — keep the drawing, drop
     the labels so it reads as a graphic rather than a smudge. */
  .hs-labels { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }

  .svcgrid { grid-template-columns: 1fr; }
  .svc--feature { grid-column: auto; }

  /* Label stays inline with the belt — just compact enough to leave room. */
  .ticker__label { padding: 13px 14px 13px 0; gap: 8px; }
  .ticker__label .mono { font-size: .62rem; letter-spacing: .1em; }
  .ticker__track li { font-size: .86rem; gap: 20px; padding-left: 20px; }

  /* Stays 2x2 on phones; the 900px rule already handles the borders. */
  .statband__item { padding-block: 22px; }
  /* Hero stays centred on phones; only the buttons go full width. */
  .hero .btn-row .btn { width: 100%; }
  .eyebrow { font-size: .66rem; letter-spacing: .13em; gap: 9px; }
}
