/* ==========================================================
   AeroLux Media — Design System v2 "Cinematic"
   Dark editorial aesthetic · kinetic type · flight-data motifs
   ========================================================== */

:root {
  /* Palette */
  --ink: #0a0b0d;          /* near-black canvas */
  --ink-2: #101216;        /* raised surfaces */
  --ink-3: #16191f;        /* cards / borders base */
  --bone: #ece9e1;         /* warm off-white */
  --bone-dim: rgba(236, 233, 225, 0.55);
  --bone-faint: rgba(236, 233, 225, 0.28);
  --line: rgba(236, 233, 225, 0.12);
  --accent: #43c6ff;       /* electric azure */
  --accent-dim: rgba(67, 198, 255, 0.14);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1360px;
  --gutter: clamp(20px, 4vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { height: auto; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--ink);
  color: var(--bone);
  line-height: 1.65;
  font-size: 1rem;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  /* clip (not hidden) prevents a horizontal scrollbar WITHOUT turning <body>
     into a scroll container — keeps the documentElement as the scroller so
     position:sticky and scroll-driven math stay reliable. */
  overflow-x: clip;
}
html { overflow-x: clip; }

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

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

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

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ---------- Utility type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.mono .tick { color: var(--accent); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.display-1 { font-size: clamp(3rem, 9.5vw, 8.6rem); }
.display-2 { font-size: clamp(2.4rem, 6vw, 5.2rem); }
.display-3 { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1px var(--bone-faint);
}

.lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--bone-dim);
  font-weight: 300;
  max-width: 54ch;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  transition: transform 1s var(--ease-expo);
}
.preloader.done { transform: translateY(-101%); }
/* Dramatic launch: accent flash, a final fast radar spin and a slight punch-in
   as the whole screen lifts away into the hero. */
.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(67,198,255,0.9), rgba(67,198,255,0) 55%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.preloader.done::after { animation: launch-flash 0.6s ease forwards; }
@keyframes launch-flash { 0% { opacity: 0; } 26% { opacity: 0.9; } 100% { opacity: 0; } }
.preloader.done .radar > svg { animation: sweep 0.32s linear infinite; }
.preloader.done .preloader-mid { transform: scale(1.08); transition: transform 0.7s var(--ease-expo); }
.preloader.done .boot-lines,
.preloader.done .preloader-top,
.preloader.done .preloader-bottom { opacity: 0; transition: opacity 0.35s ease; }
.preloader-top { display: flex; justify-content: space-between; }
.preloader-mid {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 3.5vh, 40px);
}
.preloader-word {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 7vw, 6rem);
  line-height: 1;
  display: flex;
  overflow: hidden;
  padding-bottom: 0.08em;
}
/* Radar */
.radar { width: clamp(110px, 18vw, 190px); }
.radar svg { width: 100%; height: auto; overflow: visible; }
.r-ring { fill: none; stroke: rgba(67,198,255,0.22); stroke-width: 1; }
.r-cross { stroke: rgba(67,198,255,0.16); stroke-width: 1; }
.r-core { fill: var(--accent); }
.r-sweep { transform-origin: 60px 60px; animation: sweep 2s linear infinite; }
.r-sweep path { fill: rgba(67,198,255,0.16); }
@keyframes sweep { to { transform: rotate(360deg); } }
/* Boot lines */
.boot-lines { list-style: none; display: flex; flex-direction: column; gap: 9px; align-items: center; margin: 0; padding: 0; }
.boot-lines li {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bone-faint); opacity: 0.4;
  transition: color 0.3s, opacity 0.3s;
}
.boot-lines li::before { content: "○  "; color: var(--bone-faint); }
.boot-lines li.on { color: var(--accent); opacity: 1; }
.boot-lines li.on::before { content: "●  "; color: var(--accent); }
/* Preloader scan sweep */
.preloader-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(67,198,255,0.5), transparent);
  animation: preScan 3s ease-in-out infinite;
}
@keyframes preScan { 0% { top: 0; } 100% { top: 100%; } }
.preloader-word span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 0.9s var(--ease-out) forwards;
}
@keyframes rise { to { transform: translateY(0); } }
.preloader-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.preloader-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: var(--accent);
}
.preloader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
}

/* ---------- Page-transition loader (robust, no inline styles) ----------
   Default (no JS): parked BELOW the viewport, hidden — can never cover.
   ARRIVAL: with JS, briefly covers then slides up away (veil-reveal).
   EXIT: JS adds .veil-cover on a link click → slides up from below to cover.
   All motion is pure CSS keyframes driven by classes only — the inline-style
   bug that once caused a stuck black screen is structurally impossible here. */
.veil {
  position: fixed;
  inset: 0;
  z-index: 4000;                 /* below preloader (5000), above content */
  background: var(--ink-2);
  transform: translateY(100%);   /* hidden below by default */
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.veil::before {                  /* subtle glow so the cover isn't a flat slab */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(67,198,255,0.12), transparent 70%);
  pointer-events: none;
}
.js .veil { animation: veil-reveal 0.7s var(--ease-expo) forwards; }
@keyframes veil-reveal { 0% { transform: translateY(0); } 100% { transform: translateY(-100%); } }
.veil.veil-cover { animation: veil-cover 0.44s var(--ease-expo) forwards; }
@keyframes veil-cover { 0% { transform: translateY(100%); } 100% { transform: translateY(0); } }

.veil-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.veil-mark { width: 44px; height: 44px; color: var(--accent); animation: sweep 1.5s linear infinite; }
.veil-label { color: var(--bone-dim); }
.veil-bar {
  width: 130px; height: 2px; background: var(--line);
  overflow: hidden; position: relative; border-radius: 2px;
}
.veil-bar::after {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: veil-bar 0.9s var(--ease-out) infinite;
}
@keyframes veil-bar { to { transform: translateX(200%); } }
@media (prefers-reduced-motion: reduce) { .veil { display: none !important; } }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 6000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(67, 198, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              background 0.3s, border-color 0.3s;
}
.cursor-ring .cursor-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s;
}
.cursor-ring.hovered { width: 64px; height: 64px; background: rgba(67,198,255,0.18); border-color: transparent; }
.cursor-ring.labeled { width: 84px; height: 84px; background: var(--accent); border-color: transparent; }
.cursor-ring.labeled .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: transform 0.5s var(--ease-out), background 0.4s;
}
.site-header.scrolled {
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.hidden { transform: translateY(-100%); }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.logo .mark { color: var(--accent); }
.logo em { font-style: normal; color: var(--bone-dim); font-weight: 400; }

.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--bone); }
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-right { display: flex; align-items: center; gap: 28px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
  border: 1px solid var(--bone-faint);
  color: var(--bone);
  transition: color 0.4s, border-color 0.4s;
  isolation: isolate;
  cursor: pointer;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.btn:hover { color: var(--ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn-solid::before { background: var(--bone); }
.btn-solid:hover { color: var(--ink); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 140px var(--gutter) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 70% 15%, rgba(67, 198, 255, 0.13), transparent 60%),
    radial-gradient(ellipse 60% 45% at 15% 85%, rgba(67, 198, 255, 0.07), transparent 55%),
    var(--ink);
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 28px;
}
.hero-title { margin: 0 0 40px; }
.hero-title .row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.hero-sub {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: clamp(40px, 6vh, 72px);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }

.hero-strip {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-stat {
  padding: 28px 24px 36px 0;
  border-right: 1px solid var(--line);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  margin-bottom: 8px;
}
.hero-stat strong .plus { color: var(--accent); }
.hero-stat > span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }

/* Rotating badge */
.badge-rotator {
  position: absolute;
  right: clamp(24px, 6vw, 96px);
  top: 24vh;
  width: clamp(110px, 12vw, 160px);
  height: clamp(110px, 12vw, 160px);
}
.badge-rotator > svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge-rotator .badge-core svg { width: 24px; height: 24px; }
.badge-rotator text {
  font-family: var(--font-mono);
  font-size: 7.2px;
  letter-spacing: 0.32em;
  fill: var(--bone-dim);
  text-transform: uppercase;
}
.badge-rotator .badge-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-track .sep { color: var(--accent); padding: 0; }
.marquee-track .ghost { color: transparent; -webkit-text-stroke: 1px var(--bone-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  white-space: nowrap;
}
.section-head .num .tick { color: var(--accent); }

.section-light {
  background: var(--bone);
  color: var(--ink);
}
.section-light .lead, .section-light .mono { color: rgba(10, 11, 13, 0.6); }
.section-light .eyebrow { color: #0a86c2; }
.section-light .eyebrow::before { background: #0a86c2; }
.section-light .outline-text { -webkit-text-stroke-color: rgba(10, 11, 13, 0.25); }
.section-light ::selection { background: var(--ink); color: var(--bone); }
/* Legibility fix: any dim/light-coloured copy must go DARK on the cream background
   (otherwise it's white-on-white and invisible). */
.section-light p,
.section-light .step p,
.section-light .spec-col ul li,
.section-light .num,
.section-light .section-head .num { color: rgba(10, 11, 13, 0.66); }
.section-light .spec-col h4 { color: #0a86c2; }
.section-light .spec-col h4::before { background: #0a86c2; }
.section-light .spec-col ul li::before,
.section-light .num .tick { color: #0a86c2; }
.section-light .step .num { color: #0a86c2; }
.section-light .step h3, .section-light h2, .section-light h3, .section-light h4 { color: var(--ink); }
/* .step / .spec-col :hover swap the cell to a dark surface (var(--ink-2)) — without
   this, the section-light dark-ink text above stays dark too and disappears. */
.section-light .step:hover h3 { color: var(--bone); }
.section-light .step:hover p { color: var(--bone-dim); }
.section-light .step:hover .num { color: var(--accent); }
.section-light .spec-col:hover h4 { color: var(--accent); }
.section-light .spec-col:hover h4::before { background: var(--accent); }
.section-light .spec-col:hover ul li { color: var(--bone-dim); }
.section-light .spec-col:hover ul li::before { color: var(--accent); }

/* ---------- Service rows (index + services) ---------- */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto 48px;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(26px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
  transition: padding-left 0.5s var(--ease-out);
}
.svc-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.svc-row:hover { padding-left: clamp(12px, 2vw, 28px); }
.svc-row:hover::before { transform: scaleY(1); }
.svc-row .idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--bone-dim);
  letter-spacing: 0.14em;
}
.svc-row h3 {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);
  transition: color 0.3s;
}
.svc-row:hover h3 { color: var(--accent); }
.svc-row .tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: right;
}
.svc-row .go {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.svc-row:hover .go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }
.svc-row:hover .go svg { stroke: var(--ink); }
.svc-row .go svg { stroke: var(--bone); transition: stroke 0.3s; }

/* ---------- Service detail blocks (services page) ---------- */
.svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
  padding: clamp(70px, 9vw, 130px) 0;
  border-bottom: 1px solid var(--line);
}
.svc-detail:last-of-type { border-bottom: none; }
.svc-detail .visual { position: relative; }

/* A small photo set (1 hero + 2 supporting shots) shown beside each listed
   service, so visitors see example deliverables rather than a single tile. */
.visual-set { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 16px); }
.visual-set .ph-main { grid-column: 1 / -1; min-height: clamp(240px, 23vw, 360px); }
.visual-set .ph-sub { min-height: clamp(130px, 13vw, 190px); }

/* ---------- Interactive image showcase / carousel ---------- */
.showcase {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(300px, 30vw, 440px);
  background: var(--ink-2);
}
.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}
.showcase-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.showcase-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s linear;
  display: block;
}
.showcase-slide.is-active img { transform: scale(1.13); }
.showcase::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.05) 42%, rgba(5, 6, 8, 0.8));
}
.showcase-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone); opacity: 0; transition: opacity 0.5s ease 0.25s;
}
.showcase-slide.is-active .showcase-tag { opacity: 1; }
.showcase-counter {
  position: absolute; right: 20px; bottom: 20px; z-index: 3;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--bone-dim);
}
.showcase-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bone-faint);
  background: rgba(10, 11, 13, 0.4); backdrop-filter: blur(6px); color: var(--bone);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity 0.35s ease, background 0.3s, border-color 0.3s, transform 0.3s;
}
.showcase:hover .showcase-arrow { opacity: 1; }
.showcase-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-50%) scale(1.08); }
.showcase-arrow.prev { left: 16px; }
.showcase-arrow.next { right: 16px; }
.showcase-arrow svg { width: 18px; height: 18px; }
.showcase-dots {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 7px;
}
.showcase-dot {
  width: 7px; height: 7px; border-radius: 999px; background: rgba(236, 233, 225, 0.35);
  border: none; cursor: pointer; padding: 0; transition: width 0.35s ease, background 0.3s;
}
.showcase-dot.is-active { width: 22px; background: var(--accent); }
.showcase.showcase-hero { min-height: clamp(360px, 42vw, 560px); }
.showcase.showcase-hero .showcase-tag { font-size: 0.78rem; }
@media (hover: none) { .showcase-arrow { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-slide img, .showcase-slide.is-active img { transition: none; transform: none; }
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 28px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.price-line .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--accent);
}
.feature-list { margin: 0 0 36px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--bone-dim);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

/* ---------- Placeholder media ---------- */
.ph {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transform: translateZ(0);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 6, 8, 0.75));
}
.ph .ph-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.ph:hover .ph-inner { transform: scale(1.06); }
.ph-label {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.ph-tag {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 7px 14px;
  border: 1px solid var(--bone-faint);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.ph-sky .ph-inner   { background: linear-gradient(140deg, #0d3a5c 0%, #1177b0 50%, #062033 100%); }
.ph-dusk .ph-inner  { background: linear-gradient(140deg, #131a33 0%, #40337a 55%, #0b0d1c 100%); }
.ph-teal .ph-inner  { background: linear-gradient(140deg, #062e2a 0%, #0e8d7f 55%, #04211e 100%); }
.ph-gold .ph-inner  { background: linear-gradient(140deg, #4a2506 0%, #c07a1d 55%, #2a1403 100%); }
.ph-rose .ph-inner  { background: linear-gradient(140deg, #3c1030 0%, #b0446b 55%, #200818 100%); }
.ph-slate .ph-inner { background: linear-gradient(140deg, #14181f 0%, #4e5a6b 55%, #0c0f14 100%); }

/* Placeholder "sensor feed" treatment — a faint scanline texture plus a
   centered AeroLux crosshair watermark, so an empty tile reads as a
   deliberate stand-in rather than a missing image. Swap in a real <img>
   any time; this whole layer goes away with the .ph wrapper. */
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2343c6ff' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='4' r='1.5'/%3E%3Cline x1='12' y1='5.7' x2='4.6' y2='19.4'/%3E%3Cline x1='12' y1='5.7' x2='19.4' y2='19.4'/%3E%3Cline x1='7.52' y1='14' x2='16.48' y2='14'/%3E%3Ccircle cx='4.6' cy='19.4' r='1.3'/%3E%3Ccircle cx='19.4' cy='19.4' r='1.3'/%3E%3C/svg%3E"),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 22px);
  background-repeat: no-repeat, repeat;
  background-position: center, 0 0;
  background-size: 38px 38px, auto;
  transition: opacity 0.5s ease;
}
.ph:hover::after { opacity: 0.85; }

/* A tile filled with a real (stock, for now) photo instead of the gradient
   placeholder — suppress the sensor-texture watermark and let the image fill
   the frame under the existing tag/label/hover treatment. */
.ph.has-photo::after { display: none; }
.ph .ph-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Showreel band ---------- */
.showreel {
  position: relative;
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-align: center;
}
.showreel .display-1 { white-space: nowrap; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px) clamp(40px, 4vw, 64px);
  position: relative;
  transition: background 0.4s;
}
.step:hover { background: var(--ink-2); }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: clamp(32px, 5vw, 72px);
}
.step h3 { font-size: 1.15rem; margin-bottom: 14px; letter-spacing: 0; }
.step p { color: var(--bone-dim); font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.quotes { position: relative; min-height: 320px; }
.quote {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.quote.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.quote blockquote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.quote blockquote .hl { color: var(--accent); }
.quote-who { display: flex; align-items: center; gap: 16px; }
.quote-who .avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
}
.quote-nav { display: flex; gap: 10px; margin-top: 40px; }
.quote-dot {
  width: 32px; height: 4px;
  background: var(--line);
  transition: background 0.3s;
}
.quote-dot.active { background: var(--accent); }

/* ---------- Portfolio gallery ---------- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.35s var(--ease-out);
}
.filter-btn:hover { border-color: var(--bone-faint); color: var(--bone); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.gallery-item { cursor: pointer; }
.gallery-item .ph { min-height: 100%; }
.gallery-item.w-7 { grid-column: span 7; }
.gallery-item.w-5 { grid-column: span 5; }
.gallery-item.w-4 { grid-column: span 4; }
.gallery-item.w-6 { grid-column: span 6; }
.gallery-item.w-8 { grid-column: span 8; }
.gallery-item.h-lg .ph { min-height: clamp(320px, 44vw, 560px); }
.gallery-item.h-md .ph { min-height: clamp(260px, 32vw, 420px); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 9, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: clamp(20px, 5vw, 64px);
}
.lightbox.open { display: flex; }
.lightbox-inner { max-width: 1000px; width: 100%; }
.lightbox .ph { min-height: min(62vh, 600px); }
.lb-video { width: 100%; display: block; border-radius: 4px; background: #000; max-height: 78vh; }
/* Play badge on tiles that have a video */
.ph-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.ph-play span {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(67, 198, 255, 0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; padding-left: 5px;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease-out);
}
.gallery-item:hover .ph-play span { transform: scale(1.14); }
.lightbox-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 1.6rem;
  color: var(--bone);
  width: 56px; height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: all 0.3s;
}
.lightbox-close:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); transform: rotate(90deg); }
.lightbox-caption {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  text-align: center;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.team-card {
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.team-card:hover { border-color: var(--bone-faint); }
.team-card:hover::before { transform: translateY(0); }
.team-card .call {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.team-card h3 { font-size: 1.3rem; letter-spacing: 0; margin-bottom: 6px; }
.team-card .role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: block;
  margin-bottom: 18px;
}
.team-card p { color: var(--bone-dim); font-size: 0.92rem; margin-bottom: 22px; }
.team-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(67, 198, 255, 0.35);
  border-radius: 999px;
  color: var(--accent);
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(24px, 3vw, 36px) 0;
  cursor: pointer;
  transition: padding-left 0.4s var(--ease-out);
}
.faq-q:hover { padding-left: 12px; }
.faq-q .q-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bone-dim);
  letter-spacing: 0.14em;
  flex-shrink: 0;
}
.faq-q .q-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  flex: 1;
}
.faq-q .plus {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
}
.faq-item.open .plus { transform: rotate(45deg); background: var(--accent); color: var(--ink); border-color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-a p {
  padding: 0 0 32px calc(clamp(16px, 3vw, 40px) + 2.4em);
  color: var(--bone-dim);
  max-width: 70ch;
}
.faq-a a { color: var(--accent); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.form-group { margin-bottom: 8px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-top: 22px;
}
input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 16px;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--bone);
  border-radius: 0;
  transition: border-color 0.3s;
}
select { appearance: none; cursor: pointer; }
select option { background: var(--ink-2); color: var(--bone); }
input::placeholder, textarea::placeholder { color: var(--bone-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
textarea { resize: vertical; min-height: 110px; }
input[type="date"] { color-scheme: dark; }
.form-note {
  font-size: 0.78rem;
  color: var(--bone-faint);
  margin-top: 20px;
}
.contact-form .btn { margin-top: 40px; }

.contact-side { border-left: 1px solid var(--line); padding-left: clamp(28px, 3vw, 56px); }
.contact-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.contact-item .mono { display: block; margin-bottom: 10px; }
.contact-item a, .contact-item .big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent); }
.map-wrap {
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; }

/* ---------- Big CTA / footer ---------- */
.cta-giant {
  position: relative;
  padding: clamp(100px, 14vw, 190px) var(--gutter);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-giant .bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 100%, rgba(67, 198, 255, 0.12), transparent 65%);
  pointer-events: none;
}
.cta-giant h2 { margin-bottom: 40px; }
.cta-giant h2 a { display: inline-block; transition: color 0.4s; }
.cta-giant h2 a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--bone-dim);
  margin-bottom: 22px;
}
.footer-grid li { margin-bottom: 12px; }
.footer-grid li a {
  font-size: 0.92rem;
  color: var(--bone-dim);
  transition: color 0.3s, padding-left 0.3s;
}
.footer-grid li a:hover { color: var(--accent); padding-left: 6px; }
.footer-desc { color: var(--bone-dim); font-size: 0.92rem; max-width: 34ch; margin-top: 18px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  margin: 0 calc(-1 * var(--gutter));
}
.footer-bottom span {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-faint);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(150px, 20vh, 220px) 0 clamp(48px, 6vw, 80px);
  position: relative;
}
.page-hero .crumb {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: block;
  margin-bottom: 24px;
}
.page-hero .crumb a { color: var(--accent); }
.page-hero .lead { margin-top: 28px; }

/* ---------- Mobile menu ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--bone);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-expo);
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0% 0); }
body.menu-open .site-header { z-index: 1000; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .site-header .nav-wrap { border-bottom-color: transparent; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
.menu-overlay a.menu-link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.15;
  padding: 6px 0;
  color: var(--bone);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.menu-overlay a.menu-link:hover { color: var(--accent); }
.menu-overlay a.menu-link .m-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
body.menu-open .menu-overlay a.menu-link { opacity: 1; transform: translateY(0); }
.menu-overlay .menu-meta {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

/* ---------- Reveal animations ----------
   Gated behind html.js: if JavaScript is slow, blocked, or fails, none of
   these hiding styles apply and every element is simply visible. This is
   what guarantees a page can never render blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-line { display: block; }
.js .reveal-line { overflow: hidden; }
.js .reveal-line > .line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-expo);
  transition-delay: var(--d, 0s);
}
.js .reveal-line.in-view > .line-inner { transform: translateY(0); }

.js .reveal-clip {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease-expo);
  transition-delay: var(--d, 0s);
}
.js .reveal-clip.in-view { clip-path: inset(0 0 0% 0); }

/* Directional scroll reveals — slide in from a side, or scale up */
.js .reveal-left  { opacity: 0; transform: translateX(-70px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-right { opacity: 0; transform: translateX(70px);  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-scale { opacity: 0; transform: scale(0.86);       transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-left.in-view, .js .reveal-right.in-view, .js .reveal-scale.in-view { opacity: 1; transform: none; }

/* Hold reveals until the preloader has lifted (index only) */
.js body:not(.loaded) .reveal.in-view { opacity: 0; transform: translateY(40px); }
.js body:not(.loaded) .reveal-line.in-view > .line-inner { transform: translateY(110%); }
.js body:not(.loaded) .reveal-clip.in-view { clip-path: inset(0 0 100% 0); }

/* Failsafe: if the page has been loaded for a moment and JS never marked the
   body ".loaded" (e.g. an error before that line), force everything visible. */
@keyframes force-visible { to { opacity: 1; } }

/* ---------- Service detail page: pricing tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 40px 34px;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  isolation: isolate;
  overflow: hidden;
}
.tier::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-2);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-expo);
  z-index: -1;
}
.tier:hover { transform: translateY(-6px); border-color: var(--bone-faint); }
.tier:hover::before { transform: translateY(0); }
.tier.featured { border-color: var(--accent); }
.tier.featured::after {
  content: "MOST POPULAR";
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid rgba(67, 198, 255, 0.4);
  padding: 5px 10px;
  border-radius: 999px;
}
.tier .tier-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 22px;
}
.tier .tier-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tier .tier-price .cur { color: var(--accent); font-size: 0.5em; vertical-align: super; }
.tier .tier-unit {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 10px 0 26px;
  display: block;
}
.tier ul { margin: 0 0 32px; flex: 1; }
.tier ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.tier ul li::before { content: "→"; color: var(--accent); font-family: var(--font-mono); flex-shrink: 0; }
.tier ul li.muted { color: var(--bone-faint); }
.tier ul li.muted::before { content: "·"; color: var(--bone-faint); }

/* ---------- Spec / "what's included" columns ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}
.spec-col {
  border-right: 1px solid var(--line);
  padding: clamp(32px, 3.4vw, 52px) clamp(26px, 2.8vw, 42px);
  transition: background 0.4s;
}
.spec-col h4 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: clamp(28px, 3vw, 40px);
}
.spec-col h4::before { content: ""; width: 32px; height: 1px; background: var(--accent); flex-shrink: 0; }
.spec-col ul li {
  padding: 10px 0;
  color: var(--bone-dim);
  font-size: 0.94rem;
  display: flex;
  gap: 12px;
  transition: color 0.4s;
}
.spec-col ul li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.spec-col:hover { background: var(--ink-2); }

/* ---------- Prev / next service navigation ---------- */
.svc-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-nav a {
  padding: clamp(36px, 5vw, 64px) 0;
  transition: background 0.4s, padding-left 0.4s var(--ease-out), padding-right 0.4s var(--ease-out);
}
.svc-nav a:hover { background: var(--ink-2); }
.svc-nav .prev { padding-left: 0; }
.svc-nav .prev:hover { padding-left: 20px; }
.svc-nav .next {
  text-align: right;
  border-left: 1px solid var(--line);
  padding-right: 0;
}
.svc-nav .next:hover { padding-right: 20px; }
.svc-nav .dir {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: block;
  margin: 0 24px 14px;
}
.svc-nav .svc-nav-name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 24px;
  transition: color 0.3s;
}
.svc-nav a:hover .svc-nav-name { color: var(--accent); }

/* ---------- Two-column intro (service pages) ---------- */
.svc-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.svc-intro .big-stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.svc-intro .big-stat .cur { color: var(--accent); font-size: 0.45em; vertical-align: super; }

/* =========================================================
   KINETIC COMPONENTS
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 950; pointer-events: none;
  background: rgba(236, 233, 225, 0.06);
}
.scroll-progress-bar {
  height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  box-shadow: 0 0 12px rgba(67, 198, 255, 0.6);
}

/* Interactive particle canvas */
.particle-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0.9;
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* Button ripple */
.btn { position: relative; }
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0); opacity: 0.7;
  animation: ripple 0.65s var(--ease-out) forwards;
  pointer-events: none; z-index: 0;
}
.btn-solid .ripple { background: rgba(10, 11, 13, 0.28); }
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* Animated gradient accent text */
.grad-text {
  background: linear-gradient(100deg, var(--accent) 0%, var(--teal) 30%, var(--bone) 60%, var(--accent) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-slide 6s linear infinite;
}
@keyframes grad-slide { to { background-position: 300% 0; } }

/* HUD corner-bracket frame (decorative) */
.hud-frame { position: relative; }
.hud-frame::before, .hud-frame::after {
  content: ""; position: absolute; width: 26px; height: 26px;
  border: 1px solid var(--accent); opacity: 0.5; pointer-events: none;
}
.hud-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hud-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }

/* Scanline shimmer divider */
.scanline {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: scan 4s linear infinite; opacity: 0.5;
}
@keyframes scan { to { background-position: 200% 0; } }

/* ---------- By-the-numbers band ---------- */
.numbers-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.num-cell {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px);
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.num-cell:last-child { border-right: none; }
.num-cell::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(67,198,255,0.12), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.num-cell:hover::before { opacity: 1; }
.num-cell .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.04em;
  display: flex; align-items: baseline;
}
.num-cell .n .suf { color: var(--accent); font-size: 0.5em; margin-left: 4px; }
.num-cell .lbl {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone-dim); margin-top: 16px;
}

/* ---------- Coverage map ---------- */
.coverage {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.map-stage {
  position: relative; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; background: var(--ink-2);
  aspect-ratio: 16 / 10;
}
.map-stage svg { width: 100%; height: 100%; display: block; }
.map-grid line { stroke: rgba(236,233,225,0.05); stroke-width: 1; }
.map-land { fill: rgba(67,198,255,0.06); stroke: rgba(67,198,255,0.4); stroke-width: 1.2; }
.map-path {
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 6 6;
  opacity: 0.8; animation: dash 18s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -400; } }
.map-pin { cursor: pointer; }
.map-pin .dot { fill: var(--accent); }
.map-pin .pulse { fill: var(--accent); opacity: 0.5; transform-origin: center; transform-box: fill-box; animation: pin-pulse 2.4s ease-out infinite; }
.map-pin:nth-child(2) .pulse { animation-delay: 0.5s; }
.map-pin:nth-child(3) .pulse { animation-delay: 1s; }
.map-pin:nth-child(4) .pulse { animation-delay: 1.5s; }
.map-pin:nth-child(5) .pulse { animation-delay: 2s; }
.map-pin .label {
  font-family: var(--font-mono); font-size: 5px; letter-spacing: 0.1em;
  fill: var(--bone-dim); text-transform: uppercase;
}
.map-pin:hover .dot { fill: var(--bone); }
.map-pin:hover .label { fill: var(--bone); }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(6); opacity: 0; } }
.map-readout {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.map-hud-corner {
  position: absolute; width: 18px; height: 18px; border: 1px solid rgba(67,198,255,0.5);
}
.map-hud-corner.tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.map-hud-corner.tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.map-hud-corner.bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.map-hud-corner.br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* ---------- Fleet cards ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.fleet-card {
  border: 1px solid var(--line); padding: clamp(26px, 3vw, 38px);
  position: relative; overflow: hidden; isolation: isolate;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.fleet-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 80% 0%, rgba(67,198,255,0.14), transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.fleet-card:hover { border-color: var(--bone-faint); }
.fleet-card:hover::before { opacity: 1; }
.fleet-card .fleet-ico {
  width: 46px; height: 46px; color: var(--accent); margin-bottom: 24px;
}
.fleet-card .fleet-tag {
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 10px;
}
.fleet-card h3 { font-size: 1.25rem; letter-spacing: 0; margin-bottom: 10px; }
.fleet-card p { color: var(--bone-dim); font-size: 0.9rem; margin-bottom: 18px; }
.fleet-specs { display: flex; gap: 18px; flex-wrap: wrap; }
.fleet-specs span {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bone-dim);
}
.fleet-specs span strong { display: block; color: var(--bone); font-size: 1.1rem; font-family: var(--font-display); letter-spacing: -0.02em; }

/* ---------- Marquee: second row reverse ---------- */
.marquee-track.rev { animation-direction: reverse; }

/* ---------- Pinned horizontal-scroll section ----------
   No-JS / mobile / reduced-motion fallback: a normal side-scrolling row.
   With JS on desktop: a tall runway with a sticky viewport whose track is
   scrubbed horizontally by vertical scroll (handled in main.js). */
.hscroll { position: relative; background: var(--ink); }
.hscroll-sticky { overflow-x: auto; }
.hscroll-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: clamp(40px, 6vw, 90px) var(--gutter); align-items: stretch; }
.hscroll-panel { flex: 0 0 auto; width: min(78vw, 520px); }
.hscroll-intro { display: flex; flex-direction: column; justify-content: center; width: min(80vw, 460px); }
.hscroll-panel .ph { height: 100%; min-height: 300px; }
.hscroll-count {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bone-dim); margin-top: 16px; display: block;
}
.js .hscroll { height: 620vh; } /* scaled up from 340vh — panel count doubled 5→10, keeps scrub pace consistent */
.js .hscroll-sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
}
.js .hscroll-track { will-change: transform; padding-block: 0; }
.js .hscroll-panel .ph { min-height: min(64vh, 560px); }

/* Progress rail under the horizontal section */
.hscroll-rail { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6%; height: 2px; background: var(--line); z-index: 3; }
.hscroll-rail span { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px rgba(67,198,255,0.6); }
.hscroll:not(.js *) .hscroll-rail { display: none; }

/* ---------- Scroll-scrubbed statement / manifesto ----------
   A normal (non-pinned) section whose lines rise + brighten CONTINUOUSLY as
   they pass up the viewport — driven per-frame by scroll position in JS, so it
   feels responsive, never "stuck". Default state is fully visible (no-JS safe);
   JS sets the dim/rise start state at init, then scrubs it. */
.manifesto { position: relative; }
.manifesto-sticky { padding: clamp(90px, 16vh, 200px) 0; }
.manifesto h2 {
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  line-height: 1.03;
  max-width: 15ch;
}
.manifesto .ln { display: block; overflow: hidden; }
.manifesto .ln > span { display: block; will-change: opacity, transform; }
.manifesto .accent { color: var(--accent); }

/* ---------- Gallery / media-tile hover polish ---------- */
.gallery-item { transition: transform 0.5s var(--ease-out); }
.gallery-item:hover { transform: translateY(-8px); }
.gallery-item .ph { transition: box-shadow 0.55s var(--ease-out); }
.gallery-item:hover .ph { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.gallery-item:hover .ph::before { opacity: 0.72; }
.ph .ph-tag { transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.gallery-item:hover .ph-tag { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.ph .ph-label { transition: transform 0.5s var(--ease-out); }
.gallery-item:hover .ph-label { transform: translateY(-4px); }

/* ---------- Footer: animated accent scanline ---------- */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%; animation: scan 5s linear infinite; opacity: 0.55;
  pointer-events: none;
}

/* ---------- Header logo draws itself on load ---------- */
.site-header .logo .mark line, .site-header .logo .mark circle { stroke-dasharray: 64; stroke-dashoffset: 64; }
.js .site-header .logo .mark line, .js .site-header .logo .mark circle { animation: draw 1s var(--ease-out) forwards; }
.js .site-header .logo .mark line:nth-child(2) { animation-delay: .05s; }
.js .site-header .logo .mark line:nth-child(3) { animation-delay: .1s; }
.js .site-header .logo .mark line:nth-child(4) { animation-delay: .15s; }
.js .site-header .logo .mark line:nth-child(5) { animation-delay: .2s; }
.js .site-header .logo .mark circle:nth-child(n+6) { animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Ambient colour that shifts per section as you scroll ----------
   Sits BEHIND all content (base ink moved to <html> so it isn't covered).
   @property lets the colour transition smoothly; unsupported browsers just
   change it instantly — still fine. The .ambient element is injected by JS. */
@property --glow { syntax: "<color>"; inherits: false; initial-value: rgba(67, 198, 255, 0.10); }
html { background: var(--ink); }
body { background: transparent; }
.ambient {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 75% 65% at 50% 26%, var(--glow, rgba(67,198,255,0.10)), transparent 72%);
  transition: --glow 1.4s ease, background 1.4s ease;
}

/* Reduced motion: silence the new looping animations & flatten pinned sections */
@media (prefers-reduced-motion: reduce) {
  .grad-text, .scanline, .map-path, .map-pin .pulse, .scroll-progress-bar,
  .veil-mark, .veil-bar::after, .site-footer::before { animation: none !important; }
  .particle-canvas { display: none !important; }
  .ambient { display: none !important; }
  .marquee { transform: none !important; }
  .site-header .logo .mark line, .site-header .logo .mark circle { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .hscroll { height: auto; }
  .js .hscroll-sticky { position: static; height: auto; overflow-x: auto; }
  .js .manifesto { min-height: 0; }
  .js .manifesto-sticky { position: static; min-height: 0; }
  .js .manifesto .ln > span { opacity: 1 !important; }
}
@media (max-width: 768px) {
  .js .hscroll { height: auto; }
  .js .hscroll-sticky { position: static; height: auto; overflow-x: auto; }
  .js .hscroll-track { padding-block: clamp(40px, 8vw, 70px); }
  .js .hscroll-panel .ph { min-height: 320px; }
  .js .manifesto { min-height: 0; }
  .js .manifesto-sticky { position: static; min-height: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .numbers-band { grid-template-columns: repeat(2, 1fr); }
  .num-cell:nth-child(2) { border-right: none; }
  .num-cell:nth-child(1), .num-cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .coverage { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc-detail { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .badge-rotator { display: none; }
  .tiers { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .svc-intro { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .btn { display: none; }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { justify-content: flex-start; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0; }
  .hero-stat:last-child { border-bottom: none; }
  .svc-row { grid-template-columns: 48px 1fr 40px; }
  .svc-row .tag { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.w-7, .gallery-item.w-5, .gallery-item.w-4,
  .gallery-item.w-6, .gallery-item.w-8 { grid-column: span 1; }
  .gallery-item.h-lg .ph, .gallery-item.h-md .ph { min-height: 300px; }
  .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-left: none; }
  .step { border-left: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .quotes { min-height: 420px; }
  .svc-nav { grid-template-columns: 1fr; }
  .svc-nav .next { text-align: left; border-left: none; border-top: 1px solid var(--line); }
  .svc-nav .next:hover { padding-right: 0; padding-left: 20px; }
  .numbers-band { grid-template-columns: 1fr; }
  .num-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .num-cell:last-child { border-bottom: none; }
  .fleet-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after { display: none; }
  .reveal, .reveal-line > .line-inner, .reveal-clip,
  .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; clip-path: none; }
  html { scroll-behavior: auto; }
}
