/* ============================================================
   ULTEMIR — styles.css
   Design system: "the installation spec sheet"
   Three voices: Archivo Expanded (display) · Archivo (body) ·
   system mono (data). One motif: the 45° breakout trajectory.
   Accent discipline: lime is spent on the CTA, the arrow, and
   at most one key word/number per viewport. Nothing else.
   Mobile-first: base styles target 390px, scale up at 768/1024.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* color */
  --bg:        #0A0A0B;
  --surface:   #141416;
  --surface-2: #1B1B1E;
  --text:      #F2F2EF;
  --muted:     #A6A69E;   /* 7.9:1 on --bg */
  --faint:     #83837C;   /* 5.2:1 on --bg — small caps/mono only */
  --line:      rgba(242, 242, 239, 0.08);
  --line-2:    rgba(242, 242, 239, 0.26); /* motif strokes that must read */
  --lime:      #A8E10C;
  --lime-2:    #D4F526;
  --grad:      linear-gradient(135deg, #A8E10C 0%, #D4F526 100%);
  --ink:       #0A0A0B;   /* text on lime */
  --error:     #D97066;   /* 6.1:1 on --bg */

  /* type */
  --font-display: "Archivo", "Archivo Fallback", "Archivo Fallback Android", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Archivo Fallback", "Archivo Fallback Android", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --wdth-display: 125%;   /* the display voice = expanded width */

  --fs-body:  clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-lead:  clamp(1.125rem, 1.02rem + 0.55vw, 1.375rem);
  --fs-h4:    clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --fs-h3:    clamp(1.375rem, 1.2rem + 0.9vw, 1.75rem);
  --fs-h2:    clamp(2rem, 1.35rem + 3.2vw, 4rem);
  --fs-h1:    clamp(1.95rem, 8vw, 6.5rem);
  --fs-pull:  clamp(3.25rem, 8.5vw, 6rem);
  --fs-micro: 0.75rem;

  /* space */
  --sp-section: clamp(88px, 12vw, 128px);
  --sp-gap:     clamp(40px, 6vw, 64px);
  --rail:       28px;   /* extra left padding where the trajectory runs */

  /* motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 60px;
}

@media (min-width: 768px) {
  :root { --rail: 64px; }
}

/* ---------- 2. Fonts ----------
   Archivo variable (latin subset, wdth 100..125 / wght 400..700) is
   SELF-HOSTED so no third-party CSS blocks first paint. Preloaded in
   each page's <head>. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url("assets/archivo-var.woff2") format("woff2");
}
/* metric-tuned fallbacks (CLS guard while Archivo loads) */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 103%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}
/* Android has neither Helvetica Neue nor Arial — tune Roboto too */
@font-face {
  font-family: "Archivo Fallback Android";
  src: local("Roboto");
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* very wide screens: scale the composition up so the hero's airspace
   reads as intent, not emptiness */
@media (min-width: 1700px) {
  :root {
    --fs-h1:   clamp(1.95rem, 8vw, 7.5rem);
    --fs-h2:   clamp(2rem, 1.35rem + 3.2vw, 4.5rem);
    --fs-pull: clamp(3.25rem, 8.5vw, 6.75rem);
    --fs-lead: 1.5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  position: relative; /* anchors the absolutely-positioned trajectory svg */
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }

::selection { background: var(--lime); color: var(--ink); }

/* Focus: visible, lime, everywhere */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}
@media (min-width: 768px) {
  .container { width: min(100% - 64px, 1240px); }
}
@media (min-width: 1700px) {
  .container { width: min(100% - 64px, 1440px); }
}

/* the data voice */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--lime); color: var(--ink);
  padding: 10px 16px; border-radius: 2px;
  font-weight: 500; text-decoration: none;
  transform: translateY(-64px);
}
.skip-link:focus-visible { transform: none; }

/* 45° slash tick — the motif in miniature */
.tick {
  display: inline-block; flex: none;
  width: 14px; height: 1.5px;
  background: var(--lime);
  transform: rotate(-45deg);
}
.tick--neutral { background: var(--line-2); }

/* Sections that share the left rail with the trajectory line.
   Padding goes on the CONTAINER (a centered container only shifts
   half of any parent padding — the line would enter the text). */
.rail .container { padding-left: var(--rail); }

/* Scroll reveals — hidden ONLY when JS + motion are confirmed (html.js.anim) */
html.anim .reveal {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.36s var(--ease-out), translate 0.36s var(--ease-out);
}
html.anim .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--grad);
  color: var(--ink);
  border: 0; border-radius: 4px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s var(--ease-out), filter 0.15s ease;
  will-change: transform;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.985); }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* drawn brand arrowhead — never the ↗ glyph */
.btn-arrow { flex: none; transition: transform 0.15s var(--ease-out); }
.btn:hover .btn-arrow, .btn:focus-visible .btn-arrow { transform: translate(2px, -2px); }

.btn--small { min-height: 44px; padding: 9px 18px; font-size: 0.9375rem; }

.text-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.text-link:hover { color: var(--text); text-decoration-color: var(--lime); }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--nav-h);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  min-height: 44px;
}
.brand img { height: 26px; width: auto; }
.brand-word {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620; font-size: 1.0625rem;
  letter-spacing: 0.02em;
}
.nav-links { display: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; gap: 8px; align-items: center; }
  .nav-links a {
    display: inline-flex; align-items: center;
    min-height: 44px; padding: 0 14px;
    color: var(--muted); text-decoration: none;
    font-size: 0.9375rem;
  }
  .nav-links a:hover { color: var(--text); }
}
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ---------- 7. Hero ---------- */
.hero {
  /* fill the viewport, but never balloon past 1060px on tall screens —
     the next section peeking keeps the space feeling composed */
  min-height: min(100vh, 1060px);
  min-height: min(100svh, 1060px);
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + 24px);
  position: relative;
  overflow: clip;
}
.hero .container {
  display: flex; flex-direction: column; flex: 1;
}
.hero-eyebrow {
  color: var(--muted);
  padding-top: 12px;
}
.hero-main { margin-top: auto; position: relative; }
.hero-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h1);
  line-height: 0.99;
  letter-spacing: -0.015em;
  text-transform: none;
  position: relative; z-index: 1;
}
/* line-by-line hard mask reveal (no opacity fade — declarative, not soft) */
.hl { display: block; overflow: hidden; }
.hl-in { display: block; }
html.anim .hero:not(.hero-in) .hl-in { transform: translateY(112%); }
html.anim .hero-in .hl-in {
  animation: hl-up 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes hl-up {
  from { transform: translateY(112%); }
  to   { transform: translateY(0); }
}
.hl-accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* the specialist punchline — smaller, lime, reads as the annotation
   under the two display lines */
.hl--kicker .hl-in {
  font-size: 0.55em;
  line-height: 1.15;
  padding-top: 0.45em;
}

.hero-sub {
  max-width: 26em; /* scales with the lead size on wide screens */
  margin-top: clamp(20px, 3vh, 32px);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  position: relative; z-index: 1;
}
html.anim .hero:not(.hero-in) .hero-sub,
html.anim .hero:not(.hero-in) .hero-bottom { opacity: 0; }
html.anim .hero-in .hero-sub,
html.anim .hero-in .hero-bottom {
  animation: fade-rise 0.45s var(--ease-out) 0.35s both;
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CTA row seated on a full-width hairline at the bottom edge */
.hero-bottom {
  margin-top: clamp(32px, 6vh, 72px);
  border-top: 1px solid var(--line);
  padding: 20px 0 max(24px, env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px;
  justify-content: space-between;
}
.hero-friction { color: var(--muted); }
@media (max-width: 479px) {
  .hero-bottom .btn { width: 100%; }
}

/* the hero breakout arrow — draws bright, settles dim */
.hero-arrow {
  position: absolute;
  left: 8%;
  bottom: -0.35em;
  width: min(64vw, 780px);
  height: 2px;
  pointer-events: none;
  transform: rotate(-45deg);
  transform-origin: left center;
  z-index: 0;
}
.hero-arrow-line {
  position: absolute; inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-arrow-head {
  position: absolute;
  right: -2px; top: 50%;
  width: 20px; height: 20px;
  translate: 0 -50%;
  opacity: 0;
}
.hero-arrow-head path { stroke: var(--lime); stroke-width: 2.5; fill: none; }
html.no-anim .hero-arrow,
html:not(.js) .hero-arrow { opacity: 0.18; }
html.no-anim .hero-arrow-line,
html:not(.js) .hero-arrow-line { transform: none; }
html.no-anim .hero-arrow-head,
html:not(.js) .hero-arrow-head { opacity: 1; }
html.anim .hero-in .hero-arrow {
  animation: arrow-settle 0.4s ease 1.05s both;
}
html.anim .hero-in .hero-arrow-line {
  animation: arrow-draw 0.6s var(--ease-out) 0.35s both;
}
html.anim .hero-in .hero-arrow-head {
  animation: head-in 0.2s ease 0.9s both;
}
@keyframes arrow-draw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes head-in      { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrow-settle { from { opacity: 1; } to { opacity: 0.3; } }

/* ---------- 8. Section furniture: title blocks + step dividers ---------- */
.section { padding-block: var(--sp-section); position: relative; }
.band { background: var(--surface); }

/* drawing title block: rule → [tick label] ——— [sheet counter] */
.title-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: var(--sp-gap);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.title-block .label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted);
}
.title-block .sheet-no { color: var(--faint); }

/* hairline that steps up 16px at 45° — used exactly 3 times */
.step-divider {
  position: relative;
  height: 17px;
}
.step-divider::before,
.step-divider::after {
  content: "";
  position: absolute;
  border-top: 1px solid var(--line);
}
.step-divider::before { left: 0; right: calc(50% + 7px); bottom: 0; }
.step-divider::after  { left: calc(50% + 7px); right: 0; top: 0; }
.step-divider .diag {
  position: absolute;
  top: 8px; left: calc(50% - 11px);
  width: 22.6px; height: 1px;
  background: var(--line-2);
  transform: rotate(-45deg);
}

/* ---------- 9. 01 — The leaks ---------- */
.leaks-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-bottom: var(--sp-gap);
}
.leak-list li {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 30ch;
}
.leak-list li:last-child { border-bottom: 1px solid var(--line); }
.leak-kicker {
  margin-top: var(--sp-gap);
  font-size: var(--fs-lead);
  color: var(--muted);
  text-align: right;
  margin-left: auto;
  max-width: 30ch;
}
.leak-kicker strong { color: var(--text); font-weight: 600; }

/* ---------- 10. 02 — The system ---------- */
.system-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.system-intro {
  max-width: 52ch;
  margin-top: 20px;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.stage {
  margin-top: var(--sp-section);
}
.stage-head { margin-bottom: 32px; }
.stage-no { color: var(--faint); display: block; margin-bottom: 14px; }
.stage-name {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.stage-services { color: var(--muted); margin-top: 14px; }
.stage-flag {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--lime);
  margin-top: 16px;
}
.stage-flag .tick { background: var(--lime); }

@media (min-width: 1024px) {
  .stage {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 64px;
    align-items: start;
  }
  .stage-head {
    position: sticky;
    top: calc(var(--nav-h) + 36px);
    margin-bottom: 0;
  }
}

.beat { margin-top: 36px; }
.beat:first-child { margin-top: 0; }
.beat-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--faint);
  margin-bottom: 12px;
}
.beat-label .tick { width: 10px; background: var(--line-2); }
.beat-lead {
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 1.45;
  max-width: 48ch;
}
.beat-body {
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* pull numbers */
.pull { margin-top: 12px; }
.pull .num {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 650;
  font-size: var(--fs-pull);
  line-height: 1;
  letter-spacing: -0.01em;
  display: block;
}
.pull .num.counting { font-variant-numeric: tabular-nums; }
.pull--lime .num {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pull--mid .num { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.pull .cap {
  display: block;
  color: var(--muted);
  max-width: 44ch;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* spec table — spec sheets tabulate, they don't billboard */
.spec-table { margin-top: 28px; border-top: 1px solid var(--line); max-width: 620px; }
.spec-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-cap {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40ch;
}
.spec-num {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h3);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* stage 2 logic rows */
.logic-rows { margin-top: 24px; border-top: 1px solid var(--line); max-width: 620px; }
.logic-rows li {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.logic-rows .idx { color: var(--faint); }

.substage { margin-top: 56px; }
.substage:first-of-type { margin-top: 0; }
.substage-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h3);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sources {
  margin-top: var(--sp-gap);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* inline CTA that closes the system section */
.system-cta {
  margin-top: var(--sp-gap);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 32px;
}
.system-cta .hero-friction { max-width: 40ch; }

/* ---------- 11. 03 — Who it's for ---------- */
.industries-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-bottom: var(--sp-gap);
}
.industries {
  display: flex; flex-wrap: wrap;
  gap: 18px 0;
  align-items: center;
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.2;
  color: var(--muted);
  max-width: 1000px;
}
.industries li { transition: color 0.15s ease; }
.industries li:hover { color: var(--text); }
/* niches with their own page are links — same voice, quiet underline */
.industries a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.industries a:hover { color: var(--text); text-decoration-color: var(--lime); }

/* ---- service chips: multi-select, selected = neon ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 2px;
  padding: 11px 15px; min-height: 42px;
  font-size: 0.9375rem; color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover span { border-color: var(--line-2); color: var(--text); }
.chip input:checked + span {
  border-color: var(--lime); color: var(--lime);
  background: rgba(168, 225, 12, 0.08);
}
.chip input:checked + span::before { content: "✓"; font-size: 0.8125rem; }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- client quotes (niche pages) ---- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 48px; }
.quote { border: 1px solid var(--line); border-radius: 2px; background: var(--bg); padding: 24px 26px; margin: 0; }
.quote .stars { color: var(--lime); letter-spacing: 4px; font-size: 0.8125rem; }
.quote blockquote { margin: 14px 0 18px; font-size: 1.0625rem; line-height: 1.55; color: var(--text); }
.quote-who { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
/* mobile: quiet hairline rows (inline ticks get ragged on wrapped lines) */
@media (max-width: 767px) {
  .industries { display: block; }
  .industries li { padding: 14px 0; border-top: 1px solid var(--line); }
  .industries li:last-child { border-bottom: 1px solid var(--line); }
}
/* ≥768px: flowing list with 45° separator ticks — neutral, NOT lime */
@media (min-width: 768px) {
  .industries li { display: inline-flex; align-items: center; }
  .industries li:not(:first-child)::before {
    content: "";
    display: inline-block;
    width: 20px; height: 1.5px;
    background: var(--line-2);
    transform: rotate(-45deg);
    margin: 0 22px;
    transition: background 0.15s ease;
  }
  .industries li:hover::before { background: var(--lime); }
}
.industries-note {
  margin-top: var(--sp-gap);
  font-size: var(--fs-lead);
  color: var(--text);
  max-width: 34ch;
}

/* ---------- 12. 04 — The operators (credibility band) ---------- */
.operators-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  max-width: 34ch;
  margin-bottom: var(--sp-gap);
}
.counters { border-top: 1px solid var(--line); }
.counter-cell {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.counter-cell .num {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 650;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1;
  display: block;
}
.counter-cell .num.counting { font-variant-numeric: tabular-nums; }
.counter-cell .cap {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .counter-cell { border-bottom: 0; padding: 36px 0 8px; }
}

/* ---------- 13. 05 — How it goes ---------- */
.process-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-gap);
}
.steps { counter-reset: step; }
.step {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
}
.step-no { color: var(--faint); display: block; margin-bottom: 12px; }
.step-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-bottom: 12px;
}
.step-title a { text-decoration: none; }
.step-title a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--lime); }
.step p { color: var(--muted); max-width: 40ch; }
@media (min-width: 768px) {
  /* ascending baseline — the trajectory climbs through the steps */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
  .step:nth-child(1) { margin-top: 128px; }
  .step:nth-child(2) { margin-top: 64px; }
  .step:nth-child(3) { margin-top: 0; }
}

/* ---------- 14. 06 — Final CTA ---------- */
.cta-final { padding-block: clamp(120px, 18vw, 200px); position: relative; overflow: clip; }
.cta-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(2.15rem, 7.2vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  max-width: 14ch;
  position: relative; z-index: 1;
}
.cta-actions {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
  position: relative; z-index: 1;
}
.cta-minute { color: var(--muted); }
.cta-friction { color: var(--muted); max-width: 52ch; }
@media (max-width: 479px) {
  .cta-actions .btn { width: 100%; }
}

/* ---------- 15. Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 max(40px, env(safe-area-inset-bottom));
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 32px 48px;
}
.footer .brand img { height: 32px; }
.footer-desc { color: var(--muted); margin-top: 14px; max-width: 30ch; font-size: 0.9375rem; }
.footer-links { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9375rem;
  display: inline-flex; align-items: center; min-height: 44px;
}
.footer-links a:hover { color: var(--text); }
.footer-legal {
  margin-top: 40px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
}

/* ---------- 16. Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  visibility: hidden; /* keeps the off-screen link out of tab order / AT */
  transition: transform 0.24s var(--ease-out), visibility 0s 0.24s;
}
.sticky-cta.show {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.24s var(--ease-out), visibility 0s 0s;
}
.sticky-cta .btn { width: 100%; min-height: 56px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- 17. Trajectory line ---------- */
#trajectory {
  position: absolute; top: 0; left: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
  display: none; /* enabled by JS */
}
html.js #trajectory { display: block; }
#trajectory .traj-path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  opacity: 0.35;
}
#trajectory .traj-head { opacity: 0; transition: opacity 0.3s ease; }
#trajectory .traj-head.on { opacity: 1; }
#trajectory .traj-head path { stroke: var(--lime); stroke-width: 2; fill: none; }
@media (min-width: 768px) {
  #trajectory .traj-path { opacity: 0.28; }
}
html.no-anim #trajectory .traj-path { opacity: 0.15; }

/* ============================================================
   APPLY PAGE
   ============================================================ */
.apply-main {
  padding: calc(var(--nav-h) + clamp(40px, 8vh, 88px)) 0 var(--sp-section);
  max-width: 640px;
  margin-inline: auto;
  width: min(100% - 40px, 640px);
}
.apply-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.01em;
}
.apply-sub { color: var(--muted); margin-top: 16px; max-width: 44ch; }

/* progress: three ascending 45° segments that earn the arrowhead */
.progress {
  margin: 40px 0 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.progress-steps { display: flex; align-items: flex-end; gap: 10px; height: 34px; }
.progress-steps .seg {
  width: 26px; height: 2px;
  background: var(--line-2);
  transform: rotate(-45deg);
  transition: background 0.2s ease;
}
.progress-steps .seg:nth-child(1) { translate: 0 -4px; }
.progress-steps .seg:nth-child(2) { translate: 0 -12px; }
.progress-steps .seg:nth-child(3) { translate: 0 -20px; }
.progress-steps .seg.done { background: var(--lime); }
.progress-steps .p-head { translate: 2px -24px; opacity: 0.25; transition: opacity 0.2s ease; }
.progress-steps .p-head.on { opacity: 1; }
.progress-steps .p-head path { stroke: var(--lime); stroke-width: 2; fill: none; }
.progress-label { color: var(--faint); }

/* Steps are hidden by JS state, not markup — with no JS every step
   renders (a <noscript> block in apply.html explains how to apply). */
html.js .form-step { display: none; }
html.js .form-step.active { display: block; }
.step-legend {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 28px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-legend:focus-visible { outline-offset: 6px; }
.step-note { color: var(--muted); margin-top: 12px; font-size: 0.9375rem; max-width: 44ch; }

.field { margin-top: 22px; }
.field > label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  padding: 12px 16px;
  font-size: 1rem; /* ≥16px — prevents iOS focus zoom */
  transition: border-color 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A6A69E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field textarea { min-height: 110px; resize: vertical; font-family: inherit; line-height: 1.55; }
.field input:not([type="radio"]):focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--lime); /* border swap is the focus indicator for text controls */
}
/* radios keep a row-level focus ring (border alone vanishes when checked) */
.radio-row:has(input:focus-visible) {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--error); }
.field-hint { color: var(--faint); font-size: 0.875rem; margin-top: 6px; }
.field-error {
  color: var(--error);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  margin-top: 6px;
  display: none;
}
.field-error.on { display: block; }

/* bottleneck radio rows */
.radio-rows { display: flex; flex-direction: column; gap: 10px; }
.radio-row {
  display: flex; align-items: center; gap: 14px;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease;
  font-size: 1rem;
}
.radio-row:hover { border-color: var(--line-2); }
.radio-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 15px; height: 15px;
  border: 1.5px solid var(--muted);
  border-radius: 2px;
  background: transparent;
  margin: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.radio-row input[type="radio"]:checked {
  background: var(--lime);
  border-color: var(--lime);
}
.radio-row:has(input:checked) { border-color: var(--lime); }

.form-nav {
  margin-top: 32px;
  display: flex; align-items: center; gap: 20px;
}
.back-link {
  background: none; border: 0;
  padding: 12px 14px; margin-left: -14px; /* ≥44px hit area, unchanged layout */
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
}
.back-link:hover { color: var(--text); }

.form-foot {
  margin-top: 28px;
  color: var(--faint);
  font-size: 0.875rem;
}
.form-foot a { color: var(--muted); }

/* booking panel */
.booking[hidden] { display: none; }
.booking-title {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  line-height: 1.05;
}
.booking-sub { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.calendar-slot {
  margin-top: 32px;
  min-height: 420px;
  border: 1px dashed var(--line-2);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* ============================================================
   DOC PAGES (privacy / terms)
   ============================================================ */
.doc {
  padding: calc(var(--nav-h) + 48px) 0 var(--sp-section);
  width: min(100% - 40px, 720px);
  margin-inline: auto;
}
.doc h1 {
  font-family: var(--font-display);
  font-stretch: var(--wdth-display);
  font-weight: 620;
  font-size: clamp(1.85rem, 6vw, 2.75rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
.doc .doc-date { color: var(--faint); font-family: var(--font-mono); font-size: var(--fs-micro); letter-spacing: 0.06em; }
.doc h2 { font-size: var(--fs-h4); font-weight: 600; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); line-height: 1.7; }
.doc ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.doc a { color: var(--text); }

/* ============================================================
   REDUCED MOTION — everything decorative off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   DESK — shared tab bar for the internal CRM pages
   ============================================================ */
.deskbar {
  display: flex; gap: 4px; align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.dtab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; min-height: 44px;
  font-family: var(--font-mono); font-size: var(--fs-micro);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dtab:hover { color: var(--text); }
.dtab.on { color: var(--text); border-bottom-color: var(--lime); }
