/* ==========================================================================
   KQuality Cleaning Services — design system
   Palette sampled from the logo artwork: abyss indigo, electric blue,
   cyan glow, lime signal. Dark-first; the page never goes flat white.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Jakarta'; font-style: normal; font-weight: 200 800;
  font-display: swap; src: url('../assets/fonts/jakarta.woff2') format('woff2');
}
@font-face {
  font-family: 'InterVar'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url('../assets/fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Editorial'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('../assets/fonts/instrument.woff2') format('woff2');
}
@font-face {
  font-family: 'Editorial'; font-style: italic; font-weight: 400;
  font-display: swap; src: url('../assets/fonts/instrument-italic.woff2') format('woff2');
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  /* Brand — sampled straight from the logo */
  --abyss:      #04021A;
  --abyss-2:    #070530;
  --deep:       #08045F;
  --navy:       #0B27AF;
  --blue:       #0F70F0;
  --azure:      #12A2F6;
  --cyan:       #48D5F9;
  --lime:       #93CB23;
  --lime-hot:   #AEE22B;

  /* Surfaces */
  --bg:         #04021A;
  --bg-raise:   #0A0733;
  --glass:      rgba(150, 190, 255, 0.055);
  --glass-2:    rgba(150, 190, 255, 0.085);
  --edge:       rgba(140, 190, 255, 0.14);
  --edge-hot:   rgba(72, 213, 249, 0.42);

  /* Text */
  --text:       #EEF4FF;
  --text-2:     #A8BADD;
  --text-3:     #7186AE;

  /* Type */
  --f-ui:       'Jakarta', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body:     'InterVar', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-edit:     'Editorial', 'Iowan Old Style', Georgia, serif;

  /* Layout */
  --container:  min(1240px, 90vw);
  --gutter:     clamp(1.1rem, 4vw, 2rem);
  --pad:        clamp(5rem, 11vw, 10rem);
  --r-xl:       28px;
  --r-lg:       20px;
  --r-md:       14px;
  --r-sm:       9px;

  /* Motion */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:    cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast:     .22s;
  --t-med:      .5s;
  --t-slow:     .9s;

  /* Glow */
  --glow-blue:  0 0 0 1px rgba(72,213,249,.22), 0 12px 40px -12px rgba(15,112,240,.55);
  --glow-lime:  0 0 0 1px rgba(147,203,35,.35), 0 12px 40px -14px rgba(147,203,35,.5);
  --shadow:     0 2px 6px rgba(0,0,0,.3), 0 24px 60px -22px rgba(0,0,0,.75);

  /* Generated noise — no extra request, and it kills gradient banding */
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --logo-src:   url("../assets/logo.png");
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img, picture, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--f-ui); font-weight: 800; line-height: 1.04; letter-spacing: -.028em; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--cyan); color: #04021A; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--cyan); color: #04021A; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 700; transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.container { width: var(--container); margin-inline: auto; }

/* ==========================================================================
   Atmosphere — the page is never blank
   ========================================================================== */

/* Aurora field: three slow drifting brand-coloured lights behind everything. */
.atmos {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vw 55vh at 12% 8%,  rgba(15,112,240,.30), transparent 62%),
    radial-gradient(52vw 48vh at 88% 22%, rgba(72,213,249,.20), transparent 60%),
    radial-gradient(66vw 60vh at 50% 96%, rgba(11,39,175,.36), transparent 66%),
    linear-gradient(180deg, #04021A 0%, #06032A 42%, #04021A 100%);
}
.atmos::after {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(38vw 38vw at 20% 60%, rgba(147,203,35,.06), transparent 60%),
    radial-gradient(44vw 44vw at 80% 40%, rgba(18,162,246,.10), transparent 62%);
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* Film grain — kills banding in the big gradients, adds a printed feel. */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: var(--grain-url);
  background-size: 220px 220px;
  animation: grain 6s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}

/* Scroll progress rail */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 120; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--cyan) 55%, var(--lime));
  box-shadow: 0 0 14px rgba(72,213,249,.7);
}

/* ==========================================================================
   Shared building blocks
   ========================================================================== */

.eyebrow {
  font-family: var(--f-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 1px; flex: none;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.6rem, 6vw, 4.4rem); }
.section-head h2 { font-size: clamp(2.1rem, 5.2vw, 4rem); margin-bottom: 1.1rem; }
.section-sub { color: var(--text-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 56ch; }

/* Editorial accent — the emotional lines only */
.edit { font-family: var(--f-edit); font-weight: 400; font-style: italic; letter-spacing: -.01em; }

/* Gradient text used once or twice per page, never everywhere */
.grad {
  background: linear-gradient(104deg, var(--cyan) 0%, var(--azure) 38%, #C7E4FF 78%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lime { color: var(--lime-hot); }

section { position: relative; z-index: 2; padding-block: var(--pad); }

/* Hairline section separator that catches the light */
.rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--edge) 22%, var(--edge-hot) 50%, var(--edge) 78%, transparent);
  opacity: .55;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--glass);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-ui); font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  padding: .95rem 1.7rem; border-radius: 999px; border: 1px solid var(--edge);
  background: var(--btn-bg); color: var(--text); cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast), box-shadow var(--t-med), color var(--t-fast);
  white-space: nowrap;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(72,213,249,.5), transparent 70%);
  transition: opacity var(--t-med);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); border-color: var(--edge-hot); }
.btn:active { transform: translateY(0) scale(.985); }

.btn-primary {
  background: linear-gradient(100deg, var(--blue), var(--azure) 60%, var(--cyan));
  color: #02061C; border-color: transparent; font-weight: 800;
  box-shadow: 0 10px 32px -12px rgba(18,162,246,.85), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(72,213,249,.95), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-primary::before { background: radial-gradient(140px 70px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.55), transparent 70%); }

.btn-lime { background: linear-gradient(100deg, var(--lime), var(--lime-hot)); color: #0B1A02; border-color: transparent; font-weight: 800; box-shadow: var(--glow-lime); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--glass); }
.btn-invert { background: #FFF; color: #04021A; border-color: transparent; font-weight: 800; }
.btn-invert:hover { background: var(--cyan); }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }
.btn-sm { padding: .62rem 1.1rem; font-size: .85rem; }

/* ---------- Glass card ---------- */
.glass {
  position: relative; border-radius: var(--r-lg);
  background: linear-gradient(158deg, var(--glass-2), var(--glass) 55%, transparent);
  border: 1px solid var(--edge);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  overflow: hidden;
}
/* Light that rakes across the top edge */
.glass::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140,220,255,.65) 30%, rgba(147,203,35,.45) 62%, transparent);
  opacity: .7;
}

/* ---------- Photography wrapper ---------- */
/* Every Commons photo goes through the same grade + scrim so a set of
   wildly different sources reads as one commissioned shoot. */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background-color: var(--bg-raise); background-size: cover; background-position: center;
  isolation: isolate;
}
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.86) contrast(1.08) brightness(.92);
  /* No transform transition: GSAP drives transform on these images, and a CSS
     transition on the same property smears every scrubbed frame. */
  transition: filter var(--t-slow);
  backface-visibility: hidden;
}
.ph::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4,2,26,.10) 0%, rgba(4,2,26,.06) 45%, rgba(4,2,26,.72) 100%),
    linear-gradient(118deg, rgba(11,39,175,.30), transparent 52%, rgba(72,213,249,.14));
  mix-blend-mode: multiply;
}
.ph::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(150,200,255,.13), inset 0 -70px 90px -60px rgba(72,213,249,.4);
  border-radius: inherit;
}
/* Opacity/filter only — no transform, so this can never fight GSAP or freeze
   mid-scale in a throttled tab. */
.ph.is-loaded img { animation: phIn .8s var(--ease) both; }
@keyframes phIn {
  from { opacity: 0; filter: blur(14px) saturate(.4) brightness(.8); }
  to   { opacity: 1; filter: saturate(.86) contrast(1.08) brightness(.92); }
}

/* On-image credit chips were removed — they read as watermarks over the
   photography. Attribution for the CC BY / CC BY-SA files lives on
   credits.html, linked from the footer of every page. */

/* ==========================================================================
   Navbar
   ========================================================================== */
/* Pearl bar. The navbar carries the COLOUR lockup, whose dominant tone is
   near-black navy — it needs a light surface to read against. Warm-to-cool
   off-white with a sheen highlight, floating over the dark page. */
.navbar {
  --nav-ink:      #101A38;
  --nav-ink-soft: #47597E;
  --nav-line:     rgba(16, 26, 56, .12);
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: .85rem;
  background: linear-gradient(180deg, #FCFDFF 0%, #F1F5FA 62%, #E9EFF7 100%);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 34px -14px rgba(4,2,26,.6);
  transition: padding var(--t-med), box-shadow var(--t-med);
}
/* The pearl sheen: a soft specular band across the top of the bar. */
.navbar::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.85) 0%, transparent 42%),
    radial-gradient(60% 180% at 18% 0%, rgba(72,213,249,.10), transparent 60%),
    radial-gradient(50% 160% at 88% 0%, rgba(147,203,35,.07), transparent 60%);
}
.navbar.scrolled {
  padding-block: .55rem;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 40px -14px rgba(4,2,26,.75);
}
.nav-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo img { height: clamp(38px, 4.4vw, 52px); width: auto; transition: height var(--t-med); }
.navbar.scrolled .nav-logo img { height: clamp(32px, 3.6vw, 42px); }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav-links a {
  font-family: var(--f-ui); font-weight: 600; font-size: .92rem; color: var(--nav-ink-soft);
  position: relative; padding-block: .3rem; transition: color var(--t-fast);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover { color: var(--nav-ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.nav-cta { display: flex; align-items: center; gap: .8rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(16,26,56,.05); border: 1px solid var(--nav-line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--nav-ink); border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 6rem 2rem 2.4rem;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: linear-gradient(180deg, #FCFDFF 0%, #EEF3FA 100%);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--nav-line);
    box-shadow: 0 20px 50px -20px rgba(4,2,26,.7);
    transform: translateY(-102%); transition: transform var(--t-slow) var(--ease);
    z-index: -1;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; border-top: 1px solid var(--nav-line); }
  .nav-links a { display: block; padding: 1.05rem 0; font-size: 1.28rem; font-weight: 700; color: var(--nav-ink); }
  .nav-cta .btn-primary { padding: .8rem 1.2rem; font-size: .88rem; }
}
@media (max-width: 430px) {
  .nav-cta .btn-primary { display: none; }
}

/* ==========================================================================
   Scene 1 — Arrival
   ========================================================================== */
.arrival {
  height: 100svh; min-height: 540px; padding: 0;
  display: grid; place-items: center; text-align: center;
  position: relative; overflow: hidden;
}
.arrival-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.arrival-inner { position: relative; z-index: 3; padding-inline: var(--gutter); }

/* The wordmark is a real <img> at a fixed 1x/2x size, never upscaled by the
   browser — a scaled palette PNG under a scroll transform is what shimmered.
   The glow is a separate static layer: a drop-shadow filter would re-rasterise
   the logo on every animated frame. */
.arrival-logo-wrap { position: relative; width: min(360px, 66vw); margin: 0 auto 2.4rem; }

/* Two-stage bloom: a wide brand halo that lifts the wordmark off the page, and
   a tight cyan core that gives it edge definition. Both live on their own
   layers so the logo bitmap itself is never filtered while it animates. */
.arrival-glow {
  position: absolute; left: 50%; top: 50%; width: 230%; aspect-ratio: 1;
  transform: translate3d(-50%, -50%, 0); z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle, rgba(72,213,249,.34) 0%, rgba(15,112,240,.18) 32%, transparent 64%);
  will-change: transform, opacity;
}
.arrival-glow::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 74%; height: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(72,213,249,.42) 0%, transparent 70%);
  filter: blur(26px);
}
.arrival-logo {
  position: relative; z-index: 1;
  width: 100%; height: auto; display: block;
  transform: translateZ(0); backface-visibility: hidden;
  will-change: transform;
}
/* A hairline under the wordmark, in brand colour — reads as a mark of standard. */
.arrival-logo-wrap::after {
  content: ''; position: absolute; left: 50%; bottom: -1.1rem;
  width: 46%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--lime) 65%, transparent);
  opacity: .75;
}
.arrival-slogan {
  font-family: var(--f-edit); font-style: italic;
  font-size: clamp(1.6rem, 5.5vw, 3.2rem); line-height: 1.14; color: var(--text);
  letter-spacing: -.02em;
}
.arrival-hint {
  margin-top: 2.6rem; font-family: var(--f-ui); font-size: .7rem;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text-3);
}
.arrival-hint::after {
  content: ''; display: block; width: 1px; height: 42px; margin: .9rem auto 0;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.5); } 50% { opacity: 1; transform: scaleY(1); } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-block: clamp(7rem, 14vh, 11rem) clamp(4rem, 9vh, 7rem);
}
.hero-media { position: absolute; inset: -8% 0 0 0; z-index: 0; }
.hero-media .ph { border-radius: 0; height: 116%; }
/* Layered scrim: hard on the left where the type sits, softer to the right so
   the photograph still reads, then a full fade into the next section. */
.hero-media .ph::after {
  background:
    linear-gradient(180deg, rgba(4,2,26,.88) 0%, rgba(4,2,26,.42) 34%, rgba(4,2,26,.80) 74%, var(--bg) 100%),
    linear-gradient(100deg, rgba(4,2,26,.95) 6%, rgba(4,2,26,.70) 32%, rgba(8,4,95,.30) 62%, rgba(72,213,249,.12));
  mix-blend-mode: normal;
}
/* Vignette + a brand bloom rising from the lower left. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 42%, rgba(4,2,26,.55) 100%),
    radial-gradient(60% 55% at 6% 88%, rgba(15,112,240,.30), transparent 62%),
    radial-gradient(46% 44% at 92% 14%, rgba(72,213,249,.16), transparent 64%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: .55; }
.hero-inner { position: relative; z-index: 3; max-width: 62rem; }
/* Accent rule that anchors the whole text block to the left edge. */
.hero-inner::before {
  content: ''; position: absolute; left: -1.4rem; top: .35rem; bottom: 30%;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue) 45%, transparent);
  opacity: .8;
}
@media (max-width: 900px) { .hero-inner::before { display: none; } }

.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  line-height: .98; margin-bottom: 1.6rem; letter-spacing: -.038em;
}
/* Per-word mask reveal */
.word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; will-change: transform; }
.hero .lead {
  font-size: clamp(1.06rem, 2vw, 1.4rem); color: var(--text-2);
  max-width: 46ch; margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }

/* Credential row reads as discrete verified chips rather than a run-on line. */
.hero-proof {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: .6rem;
  font-size: .86rem; color: var(--text-2);
  padding-top: 1.9rem; border-top: 1px solid var(--edge); max-width: 54rem;
}
.hero-proof > span:not(.dot) {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: 999px;
  background: rgba(4,2,26,.42); border: 1px solid var(--edge);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.hero-proof > span:not(.dot)::before {
  content: '✓'; color: var(--lime-hot); font-size: .78rem; font-weight: 800; flex: none;
}
.hero-proof > span:not(.dot):hover { border-color: var(--edge-hot); background: rgba(4,2,26,.62); }
.hero-proof strong { color: var(--text); font-weight: 700; font-family: var(--f-ui); }
/* The separator dots are redundant now that each item is its own chip. */
.hero-proof .dot { display: none; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; z-index: 4; transform: translateX(-50%); }
.scroll-cue span {
  display: block; width: 22px; height: 36px; border: 1px solid var(--edge); border-radius: 999px; position: relative;
}
.scroll-cue span::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 2px;
  background: var(--cyan); transform: translateX(-50%); animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,13px); } }

/* ==========================================================================
   Marquee credential strip
   ========================================================================== */
.strip {
  padding-block: 0; border-block: 1px solid var(--edge);
  background: linear-gradient(90deg, rgba(11,39,175,.22), rgba(4,2,26,.4) 50%, rgba(11,39,175,.22));
  overflow: hidden;
}
.strip-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-group { display: flex; align-items: center; gap: 3.2rem; padding: 1.15rem 1.6rem; }
.strip-group span {
  display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap;
  font-family: var(--f-ui); font-weight: 700; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.strip-group span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Trust — 4 pillars
   ========================================================================== */
.trust-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.trust-grid li {
  padding: 2.1rem 1.7rem 2.2rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--glass-2), transparent 70%);
  border: 1px solid var(--edge); position: relative; overflow: hidden;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med), background var(--t-med);
}
.trust-grid li::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-slow) var(--ease);
}
.trust-grid li:hover { transform: translateY(-6px); border-color: var(--edge-hot); background: linear-gradient(160deg, var(--glass-2), rgba(15,112,240,.08) 70%); }
.trust-grid li:hover::after { transform: scaleX(1); }
.trust-grid h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.trust-grid h3::before {
  content: ''; display: block; width: 30px; height: 30px; margin-bottom: 1rem; border-radius: 9px;
  background: linear-gradient(140deg, var(--blue), var(--cyan)); box-shadow: var(--glow-blue);
}
.trust-grid p { color: var(--text-2); font-size: .96rem; }

/* ==========================================================================
   Results — before / after
   ========================================================================== */
.results-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.result-card { margin: 0; }
.ba { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; cursor: ew-resize; touch-action: pan-y; }
.ba .ph { position: absolute; inset: 0; border-radius: 0; height: 100%; }
.ba-before-wrap { position: absolute; inset: 0; z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-before-wrap img { width: 100%; height: 100%; object-fit: cover; }
.ba[data-single="true"] { cursor: default; }
.ba[data-single="true"] .ba-divider, .ba[data-single="true"] .ba-before-wrap, .ba[data-single="true"] .ba-tag { display: none; }
.ba-divider {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--cyan) 12%, var(--cyan) 88%, transparent);
  transform: translateX(-1px); box-shadow: 0 0 18px rgba(72,213,249,.9);
}
.ba-handle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(4,2,26,.7); border: 1px solid var(--cyan); backdrop-filter: blur(8px);
  display: grid; place-items: center; box-shadow: 0 0 26px rgba(72,213,249,.55);
}
.ba-handle::before { content: '⟷'; font-size: .95rem; color: var(--cyan); }
.ba-tag {
  position: absolute; top: .7rem; z-index: 4; font-family: var(--f-ui); font-weight: 700;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; background: rgba(4,2,26,.65);
  border: 1px solid var(--edge); backdrop-filter: blur(6px);
}
.ba-tag.before { left: .7rem; color: var(--text-3); }
.ba-tag.after { right: .7rem; color: var(--lime-hot); border-color: rgba(147,203,35,.4); }
.result-card figcaption { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .25rem; }
.result-card figcaption strong { font-family: var(--f-ui); font-size: 1.08rem; }
.result-card figcaption span { color: var(--text-2); font-size: .9rem; }

/* ==========================================================================
   Craft — pinned horizontal gallery
   ========================================================================== */
.craft { overflow: clip; }
.craft-viewport { position: relative; }
/* Touch / narrow screens: no pinning — the band is just a swipeable rail. */
@media (max-width: 900px) {
  .craft-viewport {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .craft-viewport::-webkit-scrollbar { display: none; }
  .craft-band { transform: none !important; }
  .craft-item { scroll-snap-align: center; }
}
.craft-band {
  display: flex; gap: clamp(1rem, 2.4vw, 2rem); width: max-content;
  padding-inline: max(calc((100vw - var(--container)) / 2), var(--gutter));
  will-change: transform;
}
.craft-item { margin: 0; width: clamp(230px, 27vw, 380px); flex: none; }
.craft-item .ph { aspect-ratio: 4 / 5; }
.craft-item:hover .ph img { filter: saturate(1) contrast(1.1) brightness(1.04); }
.craft-item figcaption {
  padding-top: 1rem; font-family: var(--f-ui); font-weight: 700; font-size: 1.02rem;
  display: flex; align-items: center; gap: .55rem;
}
.craft-item figcaption::before { content: ''; width: 16px; height: 1px; background: var(--cyan); flex: none; }
.craft-hint { margin-top: 2rem; color: var(--text-3); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--f-ui); }

/* ==========================================================================
   Industries — bento
   ========================================================================== */
.ind-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(6, 1fr); }
.ind-card {
  position: relative; grid-column: span 2; min-height: 260px;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--edge);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; isolation: isolate;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.ind-card .ph { position: absolute; inset: 0; border-radius: 0; z-index: 0; }
.ind-card h3, .ind-card p { position: relative; z-index: 2; }
.ind-card .ph::after {
  background: linear-gradient(180deg, rgba(4,2,26,.34) 0%, rgba(4,2,26,.80) 62%, rgba(4,2,26,.95) 100%),
              linear-gradient(120deg, rgba(8,4,95,.55), transparent 60%);
  mix-blend-mode: normal;
}
.ind-card:hover { transform: translateY(-5px); border-color: var(--edge-hot); }
.ind-card:hover .ph img { filter: saturate(1) contrast(1.1) brightness(1.02); }
.ind-card h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .55rem; }
.ind-card p { color: var(--text-2); font-size: .93rem; max-width: 42ch; }
/* Feature the first two */
.ind-card:nth-child(1) { grid-column: span 3; min-height: 340px; }
.ind-card:nth-child(2) { grid-column: span 3; min-height: 340px; }
.ind-card:nth-child(7) { grid-column: span 6; min-height: 240px; }
.ind-card:nth-child(7) p { max-width: 60ch; }

@media (max-width: 900px) {
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-card, .ind-card:nth-child(1), .ind-card:nth-child(2) { grid-column: span 1; min-height: 250px; }
  .ind-card:nth-child(7) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .ind-grid { grid-template-columns: 1fr; }
  .ind-card, .ind-card:nth-child(7) { grid-column: span 1; }
}

/* ==========================================================================
   Services — sticky visual, scrolling list
   ========================================================================== */
.svc-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.svc-sticky { position: sticky; top: 15vh; }
.svc-visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--edge); }
.svc-visual .ph { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: opacity .7s var(--ease); }
.svc-visual .ph.on { opacity: 1; }
.svc-visual-label {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 5;
  font-family: var(--f-ui); font-weight: 800; font-size: 1.1rem;
  padding: .55rem 1rem; border-radius: 999px;
  background: rgba(4,2,26,.6); border: 1px solid var(--edge-hot); backdrop-filter: blur(10px);
}
.svc-list { display: flex; flex-direction: column; }
.svc-card {
  padding: 1.9rem 0; border-top: 1px solid var(--edge); position: relative; cursor: default;
  transition: opacity var(--t-med);
}
.svc-card:last-child { border-bottom: 1px solid var(--edge); }
.svc-card::after {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime) 70%, transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-slow) var(--ease);
}
.svc-card.on::after { transform: scaleX(1); }
.svc-card h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin-bottom: .6rem;
  display: flex; align-items: baseline; gap: .9rem;
  transition: color var(--t-med);
}
.svc-num { font-family: var(--f-ui); font-size: .7rem; font-weight: 700; letter-spacing: .16em; color: var(--text-3); flex: none; }
.svc-card.on h3 { color: var(--cyan); }
.svc-card.on .svc-num { color: var(--lime-hot); }
.svc-card p { color: var(--text-2); font-size: .98rem; max-width: 52ch; }
.svc-note {
  margin-top: 3rem; padding: 1.6rem 1.9rem; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(15,112,240,.15), rgba(147,203,35,.07));
  border: 1px solid var(--edge); color: var(--text); font-size: 1.02rem;
}
@media (max-width: 900px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-sticky { position: relative; top: 0; }
  .svc-visual { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Why — copy + depth cards
   ========================================================================== */
.why-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.why-points { display: flex; flex-direction: column; gap: 1.9rem; margin-top: 2.6rem; }
.why-point { padding-left: 1.7rem; border-left: 1px solid var(--edge); position: relative; }
.why-point::before {
  content: ''; position: absolute; left: -4px; top: .55rem; width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 14px var(--lime);
}
.why-point h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.why-point p { color: var(--text-2); font-size: .97rem; }

.why-visual { position: relative; aspect-ratio: 1 / 1; perspective: 1200px; }
.depth-card {
  position: absolute; border-radius: var(--r-xl); border: 1px solid var(--edge);
  background: linear-gradient(155deg, var(--glass-2), transparent 65%);
  backdrop-filter: blur(10px); will-change: transform;
}
.dc-1 { inset: 8% 16% 34% 4%; background: linear-gradient(155deg, rgba(15,112,240,.22), transparent 70%); }
.dc-2 { inset: 24% 4% 16% 20%; background: linear-gradient(155deg, rgba(72,213,249,.16), transparent 70%); }
.dc-3 {
  inset: 40% 12% 12% 12%; display: grid; align-content: center; justify-items: center; gap: .35rem;
  text-align: center; padding: 1.4rem; background: rgba(4,2,26,.72);
  border-color: rgba(147,203,35,.4); box-shadow: var(--glow-lime);
}
.dc-check {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--lime), var(--lime-hot)); color: #0B1A02;
  font-weight: 900; font-size: 1.3rem; margin-bottom: .5rem;
}
.dc-label { font-family: var(--f-ui); font-weight: 800; font-size: 1.02rem; }
.dc-sub { color: var(--text-2); font-size: .78rem; }
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { max-width: 380px; margin-inline: auto; }
}

/* ==========================================================================
   Commercial — full-bleed statement
   ========================================================================== */
.commercial { padding: 0; }
.comm-shell { position: relative; min-height: 82svh; display: grid; align-items: center; overflow: hidden; }
.comm-bg { position: absolute; inset: -10% 0; z-index: 0; }
.comm-bg .ph { border-radius: 0; height: 120%; }
.comm-bg .ph::after {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(4,2,26,.62) 26%, rgba(4,2,26,.72) 70%, var(--bg) 100%),
              linear-gradient(96deg, rgba(8,4,95,.7), transparent 60%);
  mix-blend-mode: normal;
}
.comm-inner { position: relative; z-index: 3; padding-block: var(--pad); }
.comm-inner h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); margin-bottom: 3rem; max-width: 18ch; }
.comm-stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.comm-chip {
  padding: 1.5rem 1.4rem; border-radius: var(--r-lg);
  background: rgba(4,2,26,.5); border: 1px solid var(--edge); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: .3rem;
  transition: border-color var(--t-med), transform var(--t-med) var(--ease);
}
.comm-chip:hover { border-color: var(--edge-hot); transform: translateY(-4px); }
.comm-chip strong {
  font-family: var(--f-ui); font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(100deg, var(--cyan), var(--lime-hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.comm-chip span { color: var(--text-2); font-size: .88rem; }

/* ==========================================================================
   Human story
   ========================================================================== */
.human-band { display: grid; gap: 1.3rem; grid-template-columns: repeat(3, 1fr); }
.human-item { margin: 0; }
.human-item .ph { aspect-ratio: 3 / 4; }
.human-item:nth-child(2) { transform: translateY(clamp(1rem, 5vw, 3.6rem)); }
.human-item figcaption {
  padding-top: 1.1rem; font-family: var(--f-edit); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: var(--text);
}
@media (max-width: 760px) {
  .human-band { grid-template-columns: 1fr; }
  .human-item:nth-child(2) { transform: none; }
}

/* ==========================================================================
   Process — drawn line
   ========================================================================== */
.process-wrap { position: relative; }
.process-rail {
  position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; z-index: 0;
  background: var(--edge); overflow: hidden;
}
.process-rail::after {
  content: ''; position: absolute; inset: 0; transform-origin: 50% 0; transform: scaleY(var(--draw, 0));
  background: linear-gradient(180deg, var(--cyan), var(--blue) 55%, var(--lime));
  box-shadow: 0 0 18px rgba(72,213,249,.6);
}
.process-line { display: flex; flex-direction: column; gap: clamp(1.6rem, 4vw, 3rem); position: relative; z-index: 2; }
.p-step { display: grid; grid-template-columns: 44px 1fr; gap: 1.5rem; align-items: start; }
.p-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-ui); font-weight: 800; font-size: 1rem;
  background: var(--bg-raise); border: 1px solid var(--edge); color: var(--text-2);
  transition: background var(--t-med), color var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.p-step.on .p-num {
  background: linear-gradient(140deg, var(--blue), var(--cyan)); color: #02061C;
  border-color: transparent; box-shadow: var(--glow-blue);
}
.p-step:last-child.on .p-num { background: linear-gradient(140deg, var(--lime), var(--lime-hot)); color: #0B1A02; box-shadow: var(--glow-lime); }
.p-step h3 { font-size: clamp(1.2rem, 2.4vw, 1.65rem); margin-bottom: .45rem; padding-top: .35rem; }
.p-step p { color: var(--text-2); max-width: 54ch; }

/* ==========================================================================
   Coverage
   ========================================================================== */
.coverage-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.4rem, 6vw, 5rem); align-items: center; }
.coverage-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 2.2rem; }
.coverage-list li {
  display: flex; align-items: center; gap: .7rem; font-size: .96rem; color: var(--text-2);
  padding: .75rem 1rem; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--edge);
  transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.coverage-list li:hover { border-color: var(--edge-hot); color: var(--text); transform: translateX(3px); }
.coverage-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.coverage-map {
  border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--edge);
  aspect-ratio: 4 / 3; position: relative; box-shadow: var(--shadow);
}
.coverage-map iframe { width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.65) contrast(.95); }
.coverage-map::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(140deg, rgba(15,112,240,.16), transparent 55%);
  box-shadow: inset 0 0 0 1px rgba(150,200,255,.14);
}
@media (max-width: 900px) {
  .coverage-inner { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.t-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.t-card {
  margin: 0; padding: 2.1rem 1.8rem; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--glass-2), transparent 72%);
  border: 1px solid var(--edge); position: relative;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med);
}
.t-card:hover { transform: translateY(-5px); border-color: var(--edge-hot); }
.t-card::before {
  content: '\201C'; position: absolute; top: .3rem; right: 1.3rem;
  font-family: var(--f-edit); font-size: 5rem; line-height: 1; color: rgba(72,213,249,.18);
}
.t-stars { display: flex; gap: .18rem; margin-bottom: 1rem; color: var(--lime-hot); font-size: .9rem; }
.t-card blockquote { font-size: 1.03rem; color: var(--text); margin-bottom: 1.4rem; }
.t-card figcaption { display: flex; flex-direction: column; gap: .15rem; padding-top: 1.1rem; border-top: 1px solid var(--edge); }
.t-name { font-family: var(--f-ui); font-weight: 700; }
.t-src { color: var(--text-3); font-size: .82rem; }

.trust-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 3rem;
}
.trust-badges li {
  padding: .6rem 1.15rem; border-radius: 999px; font-family: var(--f-ui);
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2); background: var(--glass); border: 1px solid var(--edge);
  display: flex; align-items: center; gap: .5rem;
}
.trust-badges li::before { content: '✓'; color: var(--lime-hot); font-size: .8rem; }

/* ==========================================================================
   Quote funnel
   ========================================================================== */
.funnel-section { position: relative; }
.funnel-shell {
  max-width: 720px; margin-inline: auto; padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: var(--r-xl); position: relative;
  background: linear-gradient(160deg, rgba(15,112,240,.13), rgba(10,7,51,.85) 55%);
  border: 1px solid var(--edge); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
}
.funnel-progress { display: flex; gap: .35rem; margin-bottom: 2.2rem; }
.funnel-progress .bar { flex: 1; height: 3px; border-radius: 999px; background: var(--edge); overflow: hidden; }
.funnel-progress .bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transition: width var(--t-slow) var(--ease);
}
.funnel-step { display: none; animation: stepIn .5s var(--ease) both; }
.funnel-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
.funnel-step h3 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin-bottom: 1.6rem; }

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block; font-family: var(--f-ui); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .55rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: .95rem 1.1rem; border-radius: var(--r-md);
  background: rgba(4,2,26,.6); border: 1px solid var(--edge); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(4,2,26,.85);
  box-shadow: 0 0 0 3px rgba(72,213,249,.16);
}
.form-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .6; cursor: pointer; }

.option-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 1.5rem; }
.option-card {
  padding: 1rem .9rem; border-radius: var(--r-md); text-align: center; cursor: pointer;
  background: rgba(4,2,26,.5); border: 1px solid var(--edge); color: var(--text-2);
  font-family: var(--f-ui); font-weight: 600; font-size: .92rem;
  transition: all var(--t-fast) var(--ease);
}
.option-card:hover { border-color: var(--edge-hot); color: var(--text); transform: translateY(-2px); }
.option-card.selected {
  background: linear-gradient(140deg, rgba(15,112,240,.35), rgba(72,213,249,.2));
  border-color: var(--cyan); color: var(--text);
  box-shadow: 0 0 0 1px rgba(72,213,249,.4), 0 8px 26px -10px rgba(72,213,249,.6);
}

.stepper { display: inline-flex; align-items: center; gap: 0; border-radius: 999px; background: rgba(4,2,26,.6); border: 1px solid var(--edge); overflow: hidden; }
.stepper button {
  width: 46px; height: 46px; background: transparent; border: 0; cursor: pointer;
  font-size: 1.2rem; color: var(--cyan); transition: background var(--t-fast);
}
.stepper button:hover { background: rgba(72,213,249,.14); }
.stepper span { min-width: 68px; text-align: center; font-family: var(--f-ui); font-weight: 700; font-size: 1.05rem; }

.funnel-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.9rem; }
.funnel-nav > span { flex: 1; }
[data-quote-preview] {
  display: none; margin-top: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--r-md);
  background: rgba(147,203,35,.09); border: 1px solid rgba(147,203,35,.28);
  color: var(--lime-hot); font-family: var(--f-ui); font-weight: 700; font-size: .9rem;
}
.review-summary { display: flex; flex-direction: column; gap: .1rem; margin-bottom: 1rem; }
.review-summary > div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--edge); }
.review-summary span { color: var(--text-3); font-size: .88rem; }
.review-summary strong { font-family: var(--f-ui); text-align: right; }

.funnel-success { display: none; text-align: center; padding: 2rem 0; }
.funnel-success.active { display: block; animation: stepIn .6s var(--ease) both; }
.funnel-success .check {
  width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 2rem; font-weight: 900; color: #0B1A02;
  background: linear-gradient(140deg, var(--lime), var(--lime-hot)); box-shadow: var(--glow-lime);
  animation: pop .6s var(--ease) both .15s;
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.funnel-success h3 { font-size: 1.7rem; margin-bottom: .8rem; }
.funnel-success p { color: var(--text-2); max-width: 44ch; margin-inline: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-inner { max-width: 900px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--edge); }
.faq-item:last-child { border-bottom: 1px solid var(--edge); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
  font-family: var(--f-ui); font-weight: 700; font-size: clamp(1.02rem, 2.1vw, 1.28rem);
  transition: color var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--cyan);
  transform: translate(-50%,-50%); transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item[open] summary { color: var(--cyan); }
.faq-item p { padding: 0 0 1.6rem; color: var(--text-2); max-width: 68ch; animation: stepIn .4s var(--ease) both; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { position: relative; overflow: hidden; text-align: center; }
.cta-sky { position: absolute; inset: 0; z-index: 0; }
.cta-sky .ph { border-radius: 0; height: 100%; }
.cta-sky .ph::after {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(4,2,26,.7) 40%, rgba(8,4,95,.6) 100%),
              radial-gradient(70% 60% at 50% 110%, rgba(72,213,249,.34), transparent 70%);
  mix-blend-mode: normal;
}
.final-cta-inner { position: relative; z-index: 3; }
.final-cta h2 { font-size: clamp(2.3rem, 7vw, 5.2rem); margin-bottom: 1.2rem; }
.final-cta > .container > p { color: var(--text-2); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 46ch; margin: 0 auto 2.6rem; }
.cta-alt { margin-top: 1.7rem; color: var(--text-2); font-size: .95rem; }
.cta-alt a { color: var(--cyan); font-weight: 700; border-bottom: 1px solid rgba(72,213,249,.35); }
.cta-alt a:hover { color: var(--lime-hot); border-color: rgba(147,203,35,.5); }

/* ==========================================================================
   Footer
   ========================================================================== */
footer { position: relative; z-index: 2; border-top: 1px solid var(--edge); background: rgba(4,2,26,.6); padding-top: clamp(3rem, 7vw, 5rem); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--text-2); font-size: .93rem; max-width: 34ch; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .75rem; }
.footer-links a, .footer-contact a { color: var(--text-2); font-size: .93rem; width: fit-content; transition: color var(--t-fast); }
.footer-links a:hover, .footer-contact a:hover { color: var(--cyan); }
.footer-head { font-family: var(--f-ui); font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: .3rem; }
.footer-base {
  padding-block: 1.6rem; border-top: 1px solid var(--edge);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  color: var(--text-3); font-size: .82rem;
}
.footer-base a { color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; }
.footer-base a:hover { color: var(--cyan); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ==========================================================================
   Chat assistant (kept wired; hidden when CONFIG.CHAT_ENABLED is false)
   ========================================================================== */
.ai-toggle {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 110;
  width: 60px; height: 60px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid var(--edge-hot); background: rgba(4,2,26,.8); backdrop-filter: blur(10px);
  box-shadow: var(--glow-blue); overflow: hidden;
  transition: transform var(--t-med) var(--ease);
}
.ai-toggle:hover { transform: scale(1.06); }
.ai-avatar-mini { width: 100%; height: 100%; }
.ai-panel {
  position: fixed; right: 1.2rem; bottom: 5.6rem; z-index: 111;
  width: min(370px, calc(100vw - 2.4rem)); max-height: min(560px, 72vh);
  display: none; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: rgba(6,3,36,.94); border: 1px solid var(--edge); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}
.ai-panel.open { display: flex; animation: stepIn .35s var(--ease) both; }
.ai-header { display: flex; align-items: center; gap: .8rem; padding: 1rem; border-bottom: 1px solid var(--edge); }
.ai-avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.ai-header > div { display: flex; flex-direction: column; flex: 1; }
.ai-name { font-family: var(--f-ui); font-weight: 700; font-size: .95rem; }
.ai-status { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--text-3); }
.ai-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.ai-close { background: none; border: 0; color: var(--text-3); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.ai-close:hover { color: var(--text); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.ai-msg { padding: .7rem 1rem; border-radius: var(--r-md); max-width: 84%; font-size: .92rem; }
.ai-msg.bot { background: var(--glass-2); border: 1px solid var(--edge); align-self: flex-start; }
.ai-msg.user { background: linear-gradient(120deg, var(--blue), var(--azure)); color: #02061C; align-self: flex-end; font-weight: 500; }
.ai-input-row { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--edge); }
.ai-input-row input { flex: 1; padding: .7rem .9rem; border-radius: 999px; background: rgba(4,2,26,.7); border: 1px solid var(--edge); }
.ai-input-row input:focus { outline: none; border-color: var(--cyan); }
.ai-input-row button {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(120deg, var(--blue), var(--cyan)); color: #02061C;
  display: grid; place-items: center;
}

/* ==========================================================================
   Credits page
   ========================================================================== */
.legal { padding-top: clamp(8rem, 16vh, 11rem); }
.legal h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 1.2rem; }
.legal .section-sub { margin-bottom: 3rem; }
.legal h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.legal p { color: var(--text-2); margin-bottom: 1rem; max-width: 72ch; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.credit-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.credit-item {
  padding: 1.2rem 1.3rem; border-radius: var(--r-md);
  background: var(--glass); border: 1px solid var(--edge); font-size: .87rem;
}
.credit-item strong { display: block; font-family: var(--f-ui); margin-bottom: .5rem; color: var(--text); }
.credit-item span { display: block; color: var(--text-2); margin-bottom: .2rem; }
.credit-item .lic { color: var(--lime-hot); font-weight: 600; }

/* ==========================================================================
   Reveals — the base state for every scroll animation
   ========================================================================== */
/* Base state is VISIBLE. Only once the inline head script has proved JS runs
   does the hidden start state apply — so a JS failure can never blank the page.
   With GSAP present it takes over via inline styles; without it, the .in class
   and this transition are the fallback. */
.js .reveal { opacity: 0; transform: translate3d(0, 30px, 0); }
.js:not(.gsap-on) .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* Motion policy — owner decision: the scroll sequence IS the presentation, so
   it always runs. We deliberately do not gate on prefers-reduced-motion.
   Everything animated below is transform/opacity only and GPU-composited. */

/* Registered so the process rail interpolates on the compositor instead of
   being re-parsed as a string every frame. */
@property --draw {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* Promote exactly the layers that are scrubbed — no more, or we waste VRAM. */
.hero-media, .comm-bg, .cta-sky, .craft-band, .human-item, .depth-card,
.progress, .arrival-logo, .arrival-glow, .grain, .atmos::after {
  will-change: transform;
  backface-visibility: hidden;
}
.craft-band, .hero-media, .comm-bg, .cta-sky { transform: translateZ(0); }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Responsive tail
   ========================================================================== */
@media (max-width: 760px) {
  :root { --container: min(92vw, 640px); --pad: clamp(4rem, 12vw, 6rem); }
  .hero { min-height: 92svh; }
  .hero-actions .btn { flex: 1 1 100%; }
  .craft-item { width: 74vw; }
  .funnel-nav { flex-direction: column-reverse; }
  .funnel-nav .btn { width: 100%; }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-panel { right: .6rem; bottom: 5rem; }
  .ai-toggle { right: .8rem; bottom: .8rem; width: 54px; height: 54px; }
}
@media (max-width: 400px) {
  .option-grid { grid-template-columns: 1fr; }
  .comm-stats { grid-template-columns: 1fr; }
}

/* Desktop-only pointer flourishes */
@media (hover: none) {
  .btn::before { display: none; }
}

/* Landing directly on a #hash must not park the heading under the fixed nav.
   The JS path already offsets; this covers cold loads and browser find-in-page. */
:target,
#top, #arrival, #results, #industries, #services, #process, #coverage, #quote, #faq, #main {
  scroll-margin-top: 88px;
}

/* Print */
@media print {
  .atmos, .grain, .progress, .ai-toggle, .ai-panel, .navbar, .scroll-cue { display: none !important; }
  body { background: #fff; color: #000; }
}
