/* ==========================================================================
   Altimar – site styles
   Fully dark. Blue is the UI accent; the thermal palette carries the colour.
   ========================================================================== */

:root {
  --black: #000000;
  --ink: #0A0C10;
  --navy: #0A1628;
  --blue: #1888F8;
  --sky: #50A8F8;
  --off-white: #F5F5F5;
  --grey: #8A8A8A;            /* small labels – #737373 fails AA on black */
  --line: rgba(245, 245, 245, 0.14);

  /* Thermal palette, sampled from the Warehouse 1 frames */
  --th-purple: #4A1486;
  --th-magenta: #C2188F;
  --th-orange: #F5761A;
  --th-yellow: #FFD23F;

  --f-head: "Chakra Petch", "Arial Narrow", sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 64px;
  --slash-skew: -33.7deg;     /* matches the stripes in the logo mark (56.3° from horizontal) */
  --chamfer: 10px;
}
@media (min-width: 768px) { :root { --nav-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, canvas, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
html.is-loading { overflow: hidden; }

/* --------------------------------------------------------------------------
   Buttons – chamfered corner echoes the cuts in Chakra Petch
   -------------------------------------------------------------------------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px;
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer)));
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn--sm { --bh: 40px; padding: 0 18px; font-size: 13px; --chamfer: 8px; }
/* Black text on Blue: 5.9:1. White on Blue would fail AA. */
.btn--primary { background: var(--blue); color: var(--black); }
.btn--primary:hover { background: var(--sky); }
.btn--ghost {
  color: var(--off-white);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 245, 0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--off-white); background: rgba(245, 245, 245, 0.08); }
/* clip-path hides the outline, so draw focus inside */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--off-white); }
.btn--primary:focus-visible { box-shadow: inset 0 0 0 2px var(--black); background: var(--sky); }

/* --------------------------------------------------------------------------
   0. Loader
   -------------------------------------------------------------------------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--black);
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: grid; justify-items: center; gap: 14px; }
.loader__label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--grey);
}
.loader__count {
  font-family: var(--f-mono); font-weight: 400;
  font-size: clamp(56px, 11vw, 120px); line-height: 1; letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums; color: var(--off-white);
}
.loader__bar { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }
.loader__scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: var(--sky);
  box-shadow: 0 0 18px 4px rgba(80, 168, 248, 0.55);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 12, 16, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 17px; width: auto; }
@media (max-width: 899px) { .nav { gap: 12px; } }
@media (min-width: 768px) { .nav__logo img { height: 22px; } }

.nav__menu { display: none; }
.nav__cta { margin-left: auto; }
.nav__toggle {
  width: 44px; height: 44px; margin-right: -10px;
  display: grid; place-content: center; gap: 6px;
  background: none; border: 0; color: var(--off-white); cursor: pointer;
}
.nav__toggle i { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s ease; }
.nav__toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

/* Mobile menu panel */
.nav__menu.is-open {
  display: flex; flex-direction: column; gap: 4px;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  padding: 24px var(--gutter) 40px;
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav__menu.is-open a:not(.btn) {
  font-family: var(--f-head); font-weight: 600; font-size: 32px; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.nav__menu.is-open .nav__menu-cta { margin-top: 24px; }

@media (min-width: 900px) {
  .nav__toggle, .nav__cta { display: none; }
  .nav__menu, .nav__menu.is-open {
    display: flex; flex-direction: row; align-items: center; gap: 36px;
    position: static; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    margin-left: auto;
  }
  .nav__menu a:not(.btn), .nav__menu.is-open a:not(.btn) {
    font-family: var(--f-mono); font-size: 12px; font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
    padding: 6px 0; border: 0; color: rgba(245, 245, 245, 0.78);
    transition: color .2s ease;
  }
  .nav__menu a:not(.btn):hover { color: var(--off-white); }
  .nav__menu-cta { --bh: 40px; padding: 0 18px; font-size: 13px; --chamfer: 8px; margin-left: 8px; }
}

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.alt-hero { position: relative; background: var(--black); --scan: 0; }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate;
}
.hero__fallback, .hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* With JS the canvas takes over; the static end frame is the no-JS and reduced-motion view */
.js .hero__fallback { visibility: hidden; }
.hero__canvas { z-index: 0; }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    radial-gradient(ellipse 62% 52% at 50% 48%, rgba(0,0,0,.62) 0%, rgba(0,0,0,.3) 55%, rgba(0,0,0,0) 80%),
    linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 26%);
}

/* Faint survey grid with a crosshair, masked to fade out towards the centre */
.hero__grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(80,168,248,.09) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(80,168,248,.09) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 35%, #000 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 35%, #000 100%);
}

/* Slash device – three stripes at the logo angle, large, cropped, faded */
.hero__slash {
  position: absolute; z-index: 1; pointer-events: none;
  top: -10%; bottom: -10%; right: -6vw; width: 46vw;
  display: flex; gap: 2.2vw; justify-content: flex-end;
  transform: skewX(var(--slash-skew));
  opacity: .16;
}
.hero__slash i { display: block; height: 100%; background: linear-gradient(180deg, #75BFFF 0%, #067EFF 100%); }
.hero__slash i:nth-child(1) { width: 1.2vw; opacity: .5; }
.hero__slash i:nth-child(2) { width: 2.4vw; opacity: .75; }
.hero__slash i:nth-child(3) { width: 9vw; }

.hero__content {
  position: absolute; z-index: 2; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 120px;
}
.hero__title { margin: 0; display: grid; justify-items: center; gap: 22px; font-weight: inherit; }
/* Carries the literal offer, so it's readable from the first frame */
.hero__eyebrow {
  display: block;
  font-family: var(--f-mono); font-weight: 500; font-size: 13px; line-height: 1.4;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sky);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .95);
}
.hero__display {
  display: block; max-width: 13ch;
  font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2.9rem, 8.2vw, 8.25rem); line-height: 0.94; letter-spacing: -0.01em;
  text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
/* "full picture" starts as an outline and fills solid as the scan crosses the roof.
   A thin blue line rides the fill edge, echoing the scan line in the frames. */
.hero__key {
  position: relative; display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 245, 245, .9);
  text-shadow: none;
}
.hero__key::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  color: var(--off-white);
  -webkit-text-stroke: 0;
  clip-path: inset(-10% calc((1 - var(--scan)) * 100%) -10% 0);
}
.hero__key::before {
  content: ""; position: absolute; top: 4%; bottom: 8%; width: 2px;
  left: calc(var(--scan) * 100%);
  background: var(--sky);
  box-shadow: 0 0 14px 2px rgba(80, 168, 248, .7);
  /* only visible while the scan is in progress */
  opacity: calc(min(var(--scan) * 30, 1) * min((1 - var(--scan)) * 30, 1));
}
@media (max-width: 767px) { .hero__key { -webkit-text-stroke-width: 1px; } }

.hero__reveal { display: grid; justify-items: center; gap: 28px; margin-top: 26px; }
.hero__sub {
  margin: 0; max-width: 40ch;
  font-size: clamp(16px, 1.45vw, 20px); line-height: 1.45; color: rgba(245, 245, 245, .9);
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* JS hides these until the scan passes halfway */
.js .hero__reveal { opacity: 0; visibility: hidden; }

/* Readout */
.hero__readout {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 28px; margin: 0;
  display: grid; gap: 3px;
  font-family: var(--f-mono); font-size: 11px; line-height: 1.5; letter-spacing: 0.08em;
}
.hero__readout div { display: grid; grid-template-columns: 44px auto; }
.hero__readout dt { color: var(--grey); }
.hero__readout dd { margin: 0; color: var(--sky); font-variant-numeric: tabular-nums; }
.hero__readout [data-ro-mode] { color: var(--off-white); }

/* Chapter rail */
.hero__rail {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 28px;
  list-style: none; margin: 0; padding: 0 0 0 18px;
  display: grid; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--grey);
}
.hero__rail li { transition: color .3s ease; }
.hero__rail li span { color: inherit; opacity: .7; margin-right: 6px; }
.hero__rail li.is-active { color: var(--off-white); }
.hero__rail li.is-active span { color: var(--blue); opacity: 1; }
.hero__rail-track { position: absolute; left: 0; top: 2px; bottom: 2px; width: 1px; background: var(--line); }
.hero__rail-track i { display: block; height: 100%; background: var(--blue); transform-origin: top; transform: scaleY(0); }

/* Scroll cue */
.hero__cue {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--grey);
}
.hero__cue i { width: 1px; height: 34px; background: linear-gradient(var(--sky), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Mobile: calmer. Frames are rotated to portrait (see build/prepare_hero.py), so the whole
   building fills the screen top to bottom and the scan sweeps down. The title sits centred on
   the image; sub + buttons sit at the bottom (their space is reserved, so the title never jumps). */
@media (max-width: 767px) {
  .hero__slash, .hero__rail, .hero__cue { display: none; }
  .hero__grid { opacity: .3; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 16%),
      radial-gradient(ellipse 95% 30% at 50% 47%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%),
      linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 18%, rgba(0,0,0,0) 34%);
  }

  .hero__content {
    justify-content: flex-start;
    padding: var(--nav-h) var(--gutter) 28px;
  }
  .hero__title { gap: 12px; margin: auto 0; }
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .hero__display { max-width: none; font-size: clamp(2.5rem, 12.4vw, 4.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.7); }
  .hero__reveal { gap: 18px; margin-top: 0; width: 100%; }
  .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { padding: 0 12px; }

  /* Readout tucks under the nav, out of the way of the text */
  .hero__readout {
    top: calc(var(--nav-h) + 10px); bottom: auto;
    left: var(--gutter); right: auto;
    display: flex; gap: 14px; font-size: 10px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .hero__readout div { display: flex; gap: 6px; }
  .hero__readout div:first-child, .hero__readout div:last-child { display: none; }
}

/* Reduced motion: no sequence, just the end frame with everything visible */
@media (prefers-reduced-motion: reduce) {
  .js .hero__fallback { visibility: visible; }
  .hero__canvas, .hero__cue, .js .loader { display: none; }
  .js .hero__reveal { opacity: 1; visibility: visible; }
  .alt-hero { --scan: 1; }
}

/* --------------------------------------------------------------------------
   Shared section type
   -------------------------------------------------------------------------- */
.alt-section { position: relative; overflow: hidden; padding: clamp(88px, 13vh, 160px) var(--gutter); }
.tag {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey);
}
.tag span { color: var(--blue); }
.tag::after { content: ""; width: 40px; height: 1px; background: var(--line); }
.h2 {
  margin: 0;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.4rem, 5.6vw, 5.25rem); line-height: 0.95; letter-spacing: -0.005em;
}
.js [data-animate] > * { will-change: transform, opacity; }

/* --------------------------------------------------------------------------
   2. Same roof. Two views.
   -------------------------------------------------------------------------- */
.views { background: var(--black); }
/* Faint survey grid, fading out to the edges */
.views::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(80,168,248,.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(80,168,248,.06) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 70% 50%, #000 0%, transparent 75%);
}
/* Slash device, large and faded behind the headline */
.views__slash {
  position: absolute; top: -15%; bottom: -15%; left: -8vw; width: 30vw;
  display: flex; gap: 2vw; pointer-events: none;
  transform: skewX(var(--slash-skew)); opacity: .07;
}
.views__slash i { display: block; height: 100%; background: linear-gradient(180deg, #75BFFF, #067EFF); }
.views__slash i:first-child { width: 10vw; }
.views__slash i:last-child { width: 2vw; }

.views__inner {
  position: relative; max-width: 1280px; margin: 0 auto;
  display: grid; gap: 40px; align-items: center;
}
.views__head { display: grid; gap: 22px; align-content: center; }
.views__caption { margin: 0; max-width: 34ch; font-size: 17px; line-height: 1.5; color: rgba(245,245,245,.78); }

@media (min-width: 900px) {
  .views__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 620px); gap: clamp(48px, 7vw, 120px); }
}

/* --------------------------------------------------------------------------
   Reveal slider (reused in section 4)
   --p = share of the frame showing thermal, from the left (0–100)
   -------------------------------------------------------------------------- */
/* Width capped so the whole (near-square) frame always fits the screen height */
.reveal {
  --p: 50; margin: 0; width: 100%;
  max-width: min(620px, calc((100svh - var(--nav-h) - 96px) * 0.958));
  justify-self: center;
}
.reveal__frame {
  position: relative; overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(24,136,248,.25);
  cursor: ew-resize;
  touch-action: pan-y;               /* vertical swipes still scroll the page */
  -webkit-user-select: none; user-select: none;
}
.reveal__img { width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.reveal__img--top {
  position: absolute; inset: 0; height: 100%; object-fit: cover;
  clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0);
}
.reveal__label {
  position: absolute; top: 14px; z-index: 2;
  padding: 5px 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,0,0,.62); color: var(--off-white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .25s ease;
}
.reveal__label--left { left: 14px; }
.reveal__label--right { right: 14px; }
.reveal.is-p-low .reveal__label--left, .reveal.is-p-high .reveal__label--right { opacity: 0; }

/* Handle: the scan line, with a chamfered knob */
.reveal__handle {
  position: absolute; z-index: 3; top: 0; bottom: 0; left: calc(var(--p) * 1%);
  width: 44px; margin-left: -22px;
  display: grid; place-items: center;
  outline: none;
}
.reveal__line {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px;
  background: var(--sky);
  box-shadow: 0 0 16px 2px rgba(80,168,248,.6);
}
.reveal__knob {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--sky);
  box-shadow: inset 0 0 0 1.5px var(--sky);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.reveal__frame:hover .reveal__knob, .reveal.is-dragging .reveal__knob { background: var(--sky); color: var(--black); }
.reveal__handle:focus-visible .reveal__knob { background: var(--off-white); color: var(--black); box-shadow: inset 0 0 0 2px var(--blue); }

.reveal__meta {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey);
}
.reveal__hint { color: var(--sky); white-space: nowrap; }
.reveal__hint::before { content: "\2194\00a0"; }

@media (max-width: 767px) {
  .views__inner { gap: 32px; }
  .views__caption { font-size: 16px; }
  .views__slash { width: 60vw; left: -30vw; }
  .reveal__meta span:first-child { display: none; }
  .reveal__meta { justify-content: center; }
}

/* --------------------------------------------------------------------------
   3. What we inspect – pinned chapters
   The stage pins; scrolling steps through 01 → 04.
   Without JS the chapters simply stack as a list over the first poster.
   -------------------------------------------------------------------------- */
.services { position: relative; background: var(--black); }
.svc-stage { position: relative; overflow: hidden; isolation: isolate; padding: 120px var(--gutter); }
.js .svc-stage { height: 100vh; height: 100svh; min-height: 560px; padding: 0; }

.svc-media { position: absolute; inset: 0; z-index: 0; }
.svc-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.svc-layer.is-active { opacity: 1; visibility: visible; }
.svc-layer img, .svc-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-layer video { opacity: 0; transition: opacity .6s ease; }
.svc-layer.is-playing video { opacity: 1; }
/* Darkening: stock is mood only, the type carries it */
.svc-shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.5) 100%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 45%),
    rgba(10,22,40,.25);
}
.svc-grid-lines {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(80,168,248,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(80,168,248,.07) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}

.svc-head { position: relative; z-index: 2; display: grid; gap: 14px; margin-bottom: 40px; }
.js .svc-head { position: absolute; top: calc(var(--nav-h) + 36px); left: var(--gutter); margin: 0; }
.svc-head__title {
  margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: 0.02em; color: rgba(245,245,245,.92);
}

.svc-chapters { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; }
.js .svc-chapters { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 128px; display: block; }
.js .svc-ch { position: absolute; left: 0; bottom: 0; max-width: 980px; opacity: 0; visibility: hidden; }
.js .svc-ch.is-active { opacity: 1; visibility: visible; }
.svc-ch { display: grid; gap: 16px; }
.svc-ch__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--sky); }
.svc-ch__title {
  margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 7rem); line-height: .92; letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.svc-ch__text { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; color: rgba(245,245,245,.86); }

/* Rail – click to jump to a chapter */
.svc-rail { display: none; }
.js .svc-rail {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: 4px; justify-items: end;
}
.svc-rail button {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,245,245,.62); transition: color .3s ease;
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
.svc-rail button span { opacity: .8; }
.svc-rail button::after {
  content: ""; width: 14px; height: 1px; background: currentColor; opacity: .5;
  transition: width .4s cubic-bezier(.2,.7,.2,1), background-color .3s ease, opacity .3s ease;
}
.svc-rail button:hover { color: var(--off-white); }
.svc-rail button.is-active { color: var(--off-white); }
.svc-rail button.is-active span { color: var(--blue); opacity: 1; }
.svc-rail button.is-active::after { width: 36px; background: var(--blue); opacity: 1; }

/* Progress: thermal palette fills as you scroll through the four */
.svc-progress { display: none; }
.js .svc-progress {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 56px;
  display: flex; align-items: center; gap: 18px;
}
.svc-progress__track { position: relative; flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.svc-progress__track i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--th-purple), var(--th-magenta) 35%, var(--th-orange) 70%, var(--th-yellow));
  transform-origin: left; transform: scaleX(0);
}
.svc-progress__count { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--off-white); font-variant-numeric: tabular-nums; }

.svc-note {
  position: relative; z-index: 2; margin: 40px 0 0;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--grey);
}
.js .svc-note { position: absolute; left: var(--gutter); bottom: 22px; margin: 0; }

@media (max-width: 767px) {
  .js .svc-head { top: calc(var(--nav-h) + 22px); }
  .js .svc-chapters { bottom: 104px; }
  .svc-ch { gap: 12px; }
  .svc-ch__title { font-size: clamp(2.3rem, 11.5vw, 3.4rem); }
  .svc-ch__text { font-size: 15.5px; }
  .js .svc-rail { display: none; }
  .js .svc-progress { bottom: 58px; }
  .js .svc-note { right: var(--gutter); bottom: 24px; font-size: 9.5px; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .svc-shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 26%),
      linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 40%, rgba(0,0,0,.1) 70%),
      rgba(10,22,40,.25);
  }
}

/* --------------------------------------------------------------------------
   4. Real work
   Feature: on desktop the stage pins and the video opens from a centred window
   to full screen (clip-path, so the video itself never resizes). Phone: plain
   16:9 player. Below: colour/thermal pairs side by side, wiping in on scroll.
   -------------------------------------------------------------------------- */
.proof { position: relative; background: var(--black); padding: clamp(88px, 13vh, 160px) 0 clamp(88px, 12vh, 140px); }
.proof__head { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 20px; }
.proof__line { margin: 0; max-width: 32ch; font-size: 17px; line-height: 1.5; color: rgba(245,245,245,.78); }
@media (min-width: 900px) {
  .proof__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .proof__head .tag { grid-column: 1 / -1; }
  .proof__line { text-align: right; padding-bottom: 8px; }
}

.chip {
  flex: none; padding: 4px 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--sky); box-shadow: inset 0 0 0 1px rgba(80,168,248,.45);
}
.chip--solid {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  color: var(--off-white); box-shadow: none;
  background: rgba(0,0,0,.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* Feature video */
.proof-feature { margin-top: clamp(40px, 6vh, 72px); }
.proof-feature__stage { position: relative; padding: 0 var(--gutter); }
.proof-feature__media { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.proof-feature__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.proof-feature__chip { top: 16px; left: 16px; }
.proof-feature__caption {
  max-width: 1440px; margin: 18px auto 0; padding: 0 var(--gutter);
  font-size: 15px; line-height: 1.45; color: rgba(245,245,245,.78);
}
@media (min-width: 900px) {
  .proof-feature__stage { height: 100vh; height: 100svh; min-height: 560px; padding: 0; }
  .proof-feature__media {
    position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none;
    clip-path: inset(15% 20%);     /* JS opens this to inset(0) while pinned */
  }
  .proof-feature__chip { top: calc(var(--nav-h) + 14px); left: var(--gutter); }
  .proof-feature__caption { margin-top: 22px; }
}

/* Pause / play – the flight runs 28 s, so it needs one */
.proof-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; cursor: pointer; color: var(--off-white);
  background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
@media (min-width: 900px) { .proof-toggle { right: var(--gutter); bottom: 28px; } }
.proof-toggle path { fill: currentColor; }
.proof-toggle .i-play, .proof-toggle.is-paused .i-pause { display: none; }
.proof-toggle.is-paused .i-play { display: inline; }
.proof-toggle:hover { background: var(--sky); color: var(--black); }
.proof-toggle:focus-visible { outline: none; background: var(--off-white); color: var(--black); }

/* Pairs grid */
.proof-grid {
  max-width: 1440px; margin: clamp(56px, 9vh, 112px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vh, 80px) 24px;
}
.proof-item { margin: 0; min-width: 0; }
.proof-item--wide { grid-column: 1 / -1; }
.proof-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proof-shot {
  position: relative; overflow: hidden; aspect-ratio: var(--ar);
  background: var(--ink); box-shadow: 0 0 0 1px var(--line);
}
.proof-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof-item__meta { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.proof-item__meta p { margin: 0; min-width: 0; font-size: 15px; line-height: 1.45; color: rgba(245,245,245,.78); }

/* Portrait pair beside its caption */
@media (min-width: 768px) {
  .proof-item--split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .proof-item--split .proof-item__meta { flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 0 8px; }
  .proof-item--split .proof-item__meta p { font-size: 17px; max-width: 30ch; }
}

@media (max-width: 767px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof-pair { grid-template-columns: 1fr; }
  .proof-item--split .proof-pair { grid-template-columns: 1fr 1fr; }   /* portrait pair stays side by side */
  .proof-item__meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* 3D record – its own section between 2 and 3; pinned full-screen stage */
.model-section { position: relative; background: var(--black); }
.proof-3d { margin: 0; }
.proof-3d__stage {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, var(--navy) 0%, var(--black) 75%);
}
.js .proof-3d:not(.is-static) .proof-3d__stage { aspect-ratio: auto; height: 100vh; height: 100svh; min-height: 520px; }
.proof-3d__poster, .proof-3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.proof-3d__poster { object-fit: cover; transition: opacity .8s ease; }
.js .proof-3d:not(.is-static) .proof-3d__poster { opacity: .35; filter: blur(2px); }
.proof-3d.is-ready .proof-3d__poster { opacity: 0 !important; }
.proof-3d__canvas { opacity: 0; transition: opacity .8s ease; cursor: default; }
.proof-3d.is-ready .proof-3d__canvas { opacity: 1; }
.proof-3d.is-drag .proof-3d__canvas { cursor: grab; }
.proof-3d.is-drag .proof-3d__canvas:active { cursor: grabbing; }
.proof-3d.is-static .proof-3d__canvas, .proof-3d.is-static .proof-3d__readout, .proof-3d.is-static .proof-3d__status { display: none; }
/* Fades for the readout (top) and caption (bottom) */
.proof-3d__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(0deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 22%, rgba(0,0,0,0) 40%);
}
.proof-3d__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(80,168,248,.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(80,168,248,.06) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, #000 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 40%, #000 100%);
}
.proof-3d__overlay {
  position: absolute; z-index: 2; left: var(--gutter); bottom: 36px; right: var(--gutter);
  display: grid; gap: 14px; justify-items: start; pointer-events: none;
}
.proof-3d__caption {
  margin: 0; max-width: 44ch; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45;
  color: rgba(245,245,245,.9); text-shadow: 0 1px 14px rgba(0,0,0,.9);
}
.proof-3d__overlay .chip { background: rgba(0,0,0,.55); }
.proof-3d__readout {
  position: absolute; z-index: 2; top: calc(var(--nav-h) + 20px); right: var(--gutter); margin: 0;
  display: grid; gap: 3px; padding: 8px 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em;
  background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.proof-3d__readout div { display: grid; grid-template-columns: 48px auto; }
.proof-3d__readout dt { color: var(--grey); }
.proof-3d__readout dd { margin: 0; color: var(--sky); font-variant-numeric: tabular-nums; }
.proof-3d__status {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 40px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky);
  text-shadow: 0 1px 10px rgba(0,0,0,.9);
}
@media (max-width: 767px) {
  .proof-3d__overlay { bottom: 64px; }
  .proof-3d__status { left: var(--gutter); right: auto; bottom: 28px; }
  .proof-3d__readout { top: calc(var(--nav-h) + 14px); }
}

/* --------------------------------------------------------------------------
   5. How it works – flight-path steps
   --p (0–1, set by JS from scroll) draws the line and moves the scan head.
   Desktop: three columns, line across the top. Phone: line down the left.
   -------------------------------------------------------------------------- */
.process { background: var(--black); }
.process__inner { max-width: 1280px; margin: 0 auto; display: grid; gap: clamp(48px, 8vh, 88px); }
.process__head { display: grid; gap: 20px; }
.process__line { margin: 0; max-width: 32ch; font-size: 17px; line-height: 1.5; color: rgba(245,245,245,.78); }
@media (min-width: 900px) {
  .process__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .process__head .tag { grid-column: 1 / -1; }
  .process__line { text-align: right; padding-bottom: 8px; }
}

.steps-wrap { position: relative; --p: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps__track { position: absolute; background: var(--line); }
.steps__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 0 12px rgba(80,168,248,.6);
}
.steps__head {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--off-white);
  box-shadow: 0 0 0 4px rgba(80,168,248,.35), 0 0 22px 6px rgba(80,168,248,.55);
  transform: translate(-50%, -50%);
}

.step { position: relative; display: grid; gap: 14px; align-content: start; opacity: .38; transition: opacity .5s ease; }
.step.is-active { opacity: 1; }
.step__node {
  position: absolute; width: 16px; height: 16px;
  background: var(--black); box-shadow: inset 0 0 0 2px rgba(245,245,245,.35);
  transform: rotate(45deg);                       /* a small diamond, like a waypoint */
  transition: background-color .4s ease, box-shadow .4s ease;
}
.step.is-active .step__node { background: var(--sky); box-shadow: inset 0 0 0 2px var(--sky), 0 0 18px 4px rgba(80,168,248,.55); }
.step__node::after {
  content: ""; position: absolute; inset: -8px; border: 1px solid var(--sky); opacity: 0;
}
.step.is-active .step__node::after { animation: waypoint 1.1s ease-out 1; }
@keyframes waypoint { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.8); } }

.step__num { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; color: var(--sky); }
.step__title {
  margin: 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1; letter-spacing: 0;
}
.step__text { margin: 0; max-width: 32ch; font-size: 16px; line-height: 1.5; color: rgba(245,245,245,.8); }
.step__data { margin: 6px 0 0; display: grid; gap: 6px; }
.step__data div { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.step__data dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); min-width: 64px; }
.step__data dd { margin: 0; font-family: var(--f-mono); font-size: 14px; color: var(--off-white); }
/* Unconfirmed numbers stay loud until Alex fills them in */
.step__data dd.todo { padding: 2px 7px; font-size: 11px; letter-spacing: 0.12em; background: var(--th-orange); color: var(--black); }

/* Desktop: line across the top */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); padding-top: 56px; }
  .steps__track { left: 0; right: 0; top: 7px; height: 2px; }
  .steps__fill { transform-origin: left; transform: scaleX(var(--p)); }
  .steps__head { top: 50%; left: calc(var(--p) * 100%); }
  .step__node { top: -56px; left: 0; }
}
/* Phone: line down the left */
@media (max-width: 899px) {
  .steps { gap: 48px; padding-left: 44px; }
  .steps__track { left: 7px; top: 8px; bottom: 0; width: 2px; }
  .steps__fill { transform-origin: top; transform: scaleY(var(--p)); background: linear-gradient(180deg, var(--blue), var(--sky)); }
  .steps__head { left: 50%; top: calc(var(--p) * 100%); }
  .step__node { top: 4px; left: -44px; }
}
@media (prefers-reduced-motion: reduce) {
  .step { opacity: 1; transition: none; }
  .steps-wrap { --p: 1; }
  .step.is-active .step__node::after { animation: none; }
}

/* --------------------------------------------------------------------------
   6. What is an inspection worth? – ROI calculator (restyled port)
   -------------------------------------------------------------------------- */
.calc { background: linear-gradient(180deg, var(--black), var(--ink) 50%, var(--black)); }
.calc__inner { max-width: 1280px; margin: 0 auto; display: grid; gap: clamp(40px, 6vh, 64px); }
.calc__head { display: grid; gap: 20px; }
.calc__line { margin: 0; max-width: 34ch; font-size: 17px; line-height: 1.5; color: rgba(245,245,245,.78); }
@media (min-width: 900px) {
  .calc__head { grid-template-columns: 1fr auto; align-items: end; column-gap: 48px; }
  .calc__head .tag { grid-column: 1 / -1; }
  .calc__line { text-align: right; padding-bottom: 8px; }
}

.calc__body { display: grid; gap: 40px; }
@media (min-width: 960px) { .calc__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; } }

.calc__inputs { display: grid; gap: 30px; }
.calc__types { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; }
.calc__group { display: grid; gap: 26px; }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 599px) { .calc__row { grid-template-columns: 1fr; } }
.calc__field { display: grid; gap: 10px; }
.calc__label {
  display: block; margin: 0; padding: 0;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey);
}
.calc__label span { margin-left: 6px; letter-spacing: 0.08em; text-transform: none; color: rgba(138,138,138,.75); }
.calc__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc__value { font-family: var(--f-mono); font-size: 15px; color: var(--off-white); font-variant-numeric: tabular-nums; }

/* Service picker */
.seg { display: grid; gap: 6px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 599px) { .seg--3 { grid-template-columns: 1fr; } }
.seg__btn {
  min-height: 52px; padding: 10px 14px; border: 0; cursor: pointer; text-align: left;
  font-family: var(--f-head); font-weight: 600; font-size: 14px; line-height: 1.15; letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(245,245,245,.75); background: rgba(245,245,245,.04);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg__btn:hover { color: var(--off-white); box-shadow: inset 0 0 0 1px rgba(245,245,245,.35); }
.seg__btn[aria-checked="true"] { color: var(--black); background: var(--blue); box-shadow: none; }
.seg__btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

/* Selects and number input – underline style, like the contact form */
.calc__select {
  width: 100%; margin: 0; padding: 11px 28px 10px 0;
  font: 400 16px/1.4 var(--f-body); color: var(--off-white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(245,245,245,.28); border-radius: 0; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .25s ease;
}
select.calc__select {
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 fill=%22none%22 stroke=%22%2350A8F8%22 stroke-width=%221.6%22/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.calc__select option { background: var(--ink); color: var(--off-white); }
.calc__select:focus { border-bottom-color: var(--sky); }
.calc__input { padding-right: 0; -moz-appearance: textfield; }
.calc__input::-webkit-outer-spin-button, .calc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__input::placeholder { color: rgba(245,245,245,.32); }

/* Rate readout */
.calc__rate {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px;
  background: rgba(24,136,248,.07); box-shadow: inset 0 0 0 1px rgba(24,136,248,.3);
}
.calc__rate > div { display: grid; gap: 6px; min-width: 0; }
.calc__rate-src { font-size: 12px; line-height: 1.4; color: var(--grey); text-decoration: none; }
.calc__rate-src[href] { text-decoration: underline; text-underline-offset: 2px; }
.calc__rate-src[href]:hover { color: var(--off-white); }
.calc__rate-v { font-family: var(--f-mono); font-size: 22px; color: var(--off-white); white-space: nowrap; }

/* Range: thin line that fills blue to the thumb, chamfered diamond thumb */
.calc__range {
  --fill: 30%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; cursor: pointer; background: none;
}
.calc__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--blue), var(--sky)) 0 0 / var(--fill) 100% no-repeat, var(--line); }
.calc__range::-moz-range-track { height: 2px; background: var(--line); }
.calc__range::-moz-range-progress { height: 2px; background: var(--blue); }
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px;
  background: var(--sky); transform: rotate(45deg); box-shadow: 0 0 14px rgba(80,168,248,.6);
}
.calc__range::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 0; background: var(--sky); transform: rotate(45deg); }
.calc__range:focus-visible { outline: none; }
.calc__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--off-white); }

.calc__note { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(245,245,245,.6); }

/* Results */
.calc__results {
  display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px);
  background: rgba(10,12,16,.7); box-shadow: inset 0 0 0 1px var(--line);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}
@media (min-width: 960px) { .calc__results { position: sticky; top: calc(var(--nav-h) + 32px); } }
.calc__big {
  margin: 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(3rem, 6vw, 5rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.calc__stack { display: flex; gap: 3px; height: 8px; }
.calc__stack i { display: block; flex: 0 1 0; min-width: 0; transition: flex-grow .7s cubic-bezier(.2,.7,.2,1); }
.calc__stack i:nth-child(1) { background: var(--th-magenta); }
.calc__stack i:nth-child(2) { background: var(--th-orange); }
.calc__stack i:nth-child(3) { background: var(--th-yellow); }

.calc__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); margin-top: 6px; }
@media (max-width: 479px) { .calc__stats { grid-template-columns: 1fr; } }
.calc__stat { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--ink); }
.calc__stat-v { font-family: var(--f-mono); font-size: 20px; color: var(--off-white); font-variant-numeric: tabular-nums; }
.calc__stat-l { font-size: 13px; line-height: 1.4; color: rgba(245,245,245,.7); }
.calc__stat[data-slot] .calc__stat-v::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: middle; }
.calc__stat[data-slot="0"] .calc__stat-v::before { background: var(--th-magenta); }
.calc__stat[data-slot="1"] .calc__stat-v::before { background: var(--th-orange); }
.calc__stat[data-slot="2"] .calc__stat-v::before { background: var(--th-yellow); }

.calc__cta { justify-self: start; margin-top: 8px; }
@media (max-width: 599px) { .calc__cta { justify-self: stretch; } }
.calc__disclaimer { margin: 0; font-size: 12px; line-height: 1.55; color: var(--grey); }
.calc__disclaimer a { color: var(--grey); text-decoration: underline; text-underline-offset: 2px; }
.calc__disclaimer a:hover { color: var(--off-white); }
@media (prefers-reduced-motion: reduce) { .calc__stack i { transition: none; } }

/* --------------------------------------------------------------------------
   7. Credentials strip – slim mono ticker
   -------------------------------------------------------------------------- */
.creds {
  position: relative; overflow: hidden; background: var(--black);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.creds__track { display: flex; width: max-content; animation: creds 38s linear infinite; }
.creds:hover .creds__track { animation-play-state: paused; }
.creds__line {
  margin: 0; padding: 18px 28px 18px 0; display: flex; align-items: center; gap: 28px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--off-white);
}
.creds__line i { font-style: normal; color: var(--blue); }
@keyframes creds { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .creds { -webkit-mask-image: none; mask-image: none; }
  .creds__track { animation: none; width: auto; justify-content: center; }
  .creds__line { flex-wrap: wrap; justify-content: center; white-space: normal; padding: 18px var(--gutter); }
  .creds__line[aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   8. Get pricing – contact form (Webflow form structure)
   -------------------------------------------------------------------------- */
.contact { background: radial-gradient(ellipse 90% 70% at 15% 40%, var(--navy) 0%, var(--black) 70%); }
.contact__slash {
  position: absolute; top: -20%; bottom: -20%; right: -10vw; width: 40vw;
  display: flex; gap: 2vw; justify-content: flex-end; pointer-events: none;
  transform: skewX(var(--slash-skew)); opacity: .06;
}
.contact__slash i { display: block; height: 100%; background: linear-gradient(180deg, #75BFFF, #067EFF); }
.contact__slash i:nth-child(1) { width: 1vw; }
.contact__slash i:nth-child(2) { width: 2vw; }
.contact__slash i:nth-child(3) { width: 8vw; }

.contact__inner { position: relative; max-width: 1280px; margin: 0 auto; display: grid; gap: 48px; }
@media (min-width: 900px) { .contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 120px); align-items: start; } }
.contact__head { display: grid; gap: 22px; align-content: start; }
@media (min-width: 900px) { .contact__head { position: sticky; top: calc(var(--nav-h) + 40px); } }
.contact__line { margin: 0; max-width: 32ch; font-size: 17px; line-height: 1.5; color: rgba(245,245,245,.8); }
.contact__direct { display: grid; gap: 6px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.contact__direct-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.contact__email {
  justify-self: start; padding-bottom: 2px;
  font-family: var(--f-head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--off-white); text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size .4s cubic-bezier(.2,.7,.2,1), color .2s ease;
}
.contact__email:hover { color: var(--sky); background-size: 100% 2px; }

.contact__form { position: relative; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; margin: 0; }
.cfield { grid-column: 1 / -1; position: relative; display: grid; gap: 8px; }
.cfield--half { grid-column: span 1; }
@media (max-width: 599px) { .cfield--half { grid-column: 1 / -1; } }
.cfield label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); transition: color .25s ease; }
.cfield label span { margin-left: 6px; color: rgba(138,138,138,.75); letter-spacing: 0.08em; text-transform: none; }
.cfield input, .cfield select, .cfield textarea {
  width: 100%; margin: 0; padding: 12px 0 11px;
  font: 400 17px/1.4 var(--f-body); color: var(--off-white);
  background: transparent; border: 0; border-bottom: 1px solid rgba(245,245,245,.28); border-radius: 0;
  outline: none; transition: border-color .25s ease;
  -webkit-appearance: none; appearance: none;
}
.cfield textarea { resize: vertical; min-height: 110px; }
/* Webflow native form: beat its default .w-input / .w-select / .w-form styles */
.cfield input, .cfield select { height: auto; }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus { border-color: transparent transparent var(--sky); }
.contact__form.w-form { margin: 0; }
.cfield label { margin: 0; font-weight: 400; }
/* On Webflow the heading block sits inside a Code Embed wrapper: make that the sticky item */
@media (min-width: 900px) { .contact__inner > .w-embed { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; } }
.contact__done.w-form-done { text-align: left; }
.cfield select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%228%22 viewBox=%220 0 12 8%22%3E%3Cpath d=%22M1 1l5 5 5-5%22 fill=%22none%22 stroke=%22%2350A8F8%22 stroke-width=%221.6%22/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat;
}
.cfield select option { background: var(--ink); color: var(--off-white); }
.cfield ::placeholder { color: rgba(245,245,245,.32); }
/* Scan line sweeps along the underline on focus, and when the calculator pre-fills a field */
.cfield::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  box-shadow: 0 0 10px rgba(80,168,248,.6);
  transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cfield:focus-within::after, .cfield.is-flash::after { transform: scaleX(1); }
.cfield:focus-within label { color: var(--sky); }
.cfield.is-invalid input, .cfield.is-invalid select { border-bottom-color: var(--th-orange); }
.cfield.is-invalid label { color: var(--th-orange); }
.cfield__error { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--th-orange); }

.cform__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.cform__note { margin: 0; font-size: 13.5px; color: var(--grey); }
@media (max-width: 599px) { .cform__foot .btn { width: 100%; } }

.contact__done, .contact__fail { padding: 28px; background: rgba(10,12,16,.6); }
.contact__done { box-shadow: inset 3px 0 0 var(--sky), inset 0 0 0 1px var(--line); }
.contact__fail { margin-top: 20px; box-shadow: inset 3px 0 0 var(--th-orange), inset 0 0 0 1px var(--line); }
.contact__done p, .contact__fail p { margin: 0; color: rgba(245,245,245,.85); }
.contact__done .contact__done-title { margin-bottom: 8px; font-family: var(--f-head); font-weight: 600; font-size: 1.6rem; text-transform: uppercase; color: var(--off-white); }
.contact__done:focus { outline: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.alt-footer { background: var(--black); border-top: 1px solid var(--line); padding: 48px var(--gutter) 40px; }
.footer__inner { max-width: 1280px; margin: 0 auto; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; gap: 48px; } }
.footer__logo img { height: 20px; width: auto; }
.footer__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
@media (min-width: 900px) { .footer__meta { justify-content: center; } }
.footer__meta div { display: flex; gap: 10px; align-items: baseline; }
.footer__meta dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.footer__meta dd { margin: 0; font-size: 14px; color: rgba(245,245,245,.85); }
.footer__meta a, .footer__legal a { color: inherit; text-decoration: none; }
.footer__meta a:hover, .footer__legal a:hover { color: var(--sky); }
.footer__legal { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--grey); }
