/* ============================================================
   LUMN AVIATION DETAILING — GLOBAL STYLESHEET
   Monochrome system: white / light gray / black
   Type: Cormorant Garamond (display) + Manrope (body)
   ============================================================ */

:root {
  /* Color tokens */
  --white: #ffffff;
  --off-white: #fafafa;
  --gray-050: #f4f4f4;
  --gray-100: #ececec;
  --gray-200: #dcdcdc;
  --gray-300: #bdbdbd;
  --gray-500: #7a7a7a;
  --gray-600: #5c5c5c;
  --gray-700: #3d3d3d;
  --ink: #0e0e0e;
  --black: #060606;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--off-white);
  --bg-panel: var(--gray-050);
  --text: var(--ink);
  --text-soft: var(--gray-600);
  --text-faint: var(--gray-500);
  --line: var(--gray-100);
  --line-strong: var(--gray-200);

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-hero: clamp(2.9rem, 8.5vw, 7.25rem);
  --fs-h1: clamp(2.6rem, 6.5vw, 5.5rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 3.9rem);
  --fs-h3: clamp(1.45rem, 2.4vw, 2rem);
  --fs-body-lg: clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  /* Spacing (spacious scale) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: clamp(5rem, 12vw, 10rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.55s;
  --dur-slow: 0.95s;

  --header-h: 5rem;
  --radius: 2px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Film-grain overlay (very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.serif { font-family: var(--font-serif); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--ink);
}
.eyebrow--bare::before { display: none; }

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }

.heading-xl {
  font-family: var(--font-serif);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.heading-lg {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.heading-md {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.15;
}

.lede {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 38em;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.95rem 2.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-soft);
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.38s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleY(1); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark::after { background: var(--white); }
.btn--dark:hover, .btn--dark:focus-visible { color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--white); }

.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light::after { background: transparent; }
.btn--light:hover { opacity: 0.88; }

.btn .btn-arrow { width: 0.9rem; height: 0.9rem; transition: transform var(--dur-fast) var(--ease-soft); }
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* Text link with sliding underline */
.link-line {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.link-line::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.link-line:hover::after {
  transform: scaleX(0);
  transform-origin: right;
  animation: line-return 0.4s var(--ease-out) 0.4s forwards;
}
@keyframes line-return {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 70;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s var(--ease-soft);
}
.site-header.is-scrolled {
  height: 4.25rem;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-mark {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.9rem;
  line-height: 1.5;
}

.main-nav { display: flex; align-items: center; gap: 2.1rem; }

.nav-link {
  position: relative;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.5rem 0;
  transition: color var(--dur-fast) ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta { margin-left: 0.5rem; min-height: 2.75rem; padding: 0.65rem 1.6rem; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 3rem;
  height: 3rem;
  align-items: center;
  z-index: 90;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--white);
  display: flex;
  flex-direction: column;
  /* Content starts at the top and flows down (not vertically centred). */
  justify-content: flex-start;
  padding: 0 clamp(1.5rem, 6vw, 3rem) clamp(2rem, 8vw, 3rem);
  overflow-y: auto;
  visibility: hidden;
  /* Panel slides in from the left. */
  transform: translateX(-100%);
  transition: transform 0.42s var(--ease-soft), visibility 0s linear 0.42s;
}
.mobile-menu.is-open {
  visibility: visible;
  transform: translateX(0);
  transition: transform 0.42s var(--ease-soft);
}

/* Logo + close row, mirroring the site header's height so the panel
   reads as a continuation of it. */
.mobile-menu-top {
  flex-shrink: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(1.25rem, 5vw, 2.25rem);
}
.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.mobile-menu-brand .brand-mark {
  font-size: 1.3rem;
  letter-spacing: 0.24em;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  margin-right: -0.6rem;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
}
.mobile-menu-close svg { width: 1.5rem; height: 1.5rem; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.mobile-menu.is-open .mobile-nav-link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-nav-link:nth-child(6) { transition-delay: 0.38s; }
.mobile-nav-link svg { width: 1.4rem; height: 1.4rem; color: var(--gray-300); }
.mobile-menu-foot {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Masked line reveal for display headlines */
.line-mask { display: block; overflow: hidden; padding-left: 0.1em; }
.line-mask > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform;
}
.is-visible .line-mask > span,
.line-mask.is-visible > span { transform: translateY(0); }

/* Panel wipe reveal */
.wipe {
  position: relative;
  overflow: hidden;
}
.wipe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  z-index: 2;
}
.wipe.is-visible::after { transform: scaleX(0); }

/* Rule line grow */
.rule-grow {
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.rule-grow.is-visible { transform: scaleX(1); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 40rem;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* Giant background wordmark */
.hero-word {
  position: absolute;
  inset-inline: 0;
  top: 47%;
  transform: translateY(-50%);
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(8rem, 27vw, 26rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--gray-050);
  user-select: none;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
/* Per-letter spans for the cursor-repel effect (text-repel.tsx port) */
.hero-word-letter {
  display: inline-block;
  will-change: transform;
}

/* Phones: the 8rem clamp floor forces the wordmark wider than the screen
   (415px of ink in a 375px viewport), clipping the L and N. Below this
   width let the viewport-relative size govern so the whole word fits,
   and sit it slightly higher behind the headline. */
@media (max-width: 560px) {
  .hero-word {
    font-size: 26vw;
    /* Stretch the wordmark vertically so its cap line sits just under the
       eyebrow. Top-anchored (origin 50% 0) so the cap-line — not the box —
       is what gets pinned; scaleX stays 1, so the width is untouched.
       Safe to set transform here: the parallax JS is gated to min-width:900px
       and so never overwrites it on phones. */
    transform-origin: 50% 0;
    transform: scaleY(3.16);
  }
}

/* The eyebrow's offset has two regimes, set by the existing max-height:880px
   rule that tightens spacing on short screens — it sits 164px below the hero
   top when compact, 307px when not. Position the wordmark against whichever
   applies so the cap-line lands on the eyebrow at every phone size:
   ink top = top + (0.277 topLeading x 26vw fontSize x 3.16 scale)
           = top + 22.76vw   ->   top = <eyebrow bottom> - 22.76vw */
@media (max-width: 560px) and (max-height: 880px) {
  .hero-word { top: calc(164px - 22.76vw); }
}
@media (max-width: 560px) and (min-height: 881px) {
  .hero-word { top: calc(307px - 22.76vw); }
}

/* Desktop/tablet: sit the wordmark slightly higher behind the slogans.
   Scoped as the exact complement of the mobile rule above, so phone
   sizing and position are untouched. */
@media (min-width: 561px) {
  .hero-word { top: 44%; }
}

/* Content is top-anchored (its downward offset comes from the headline's
   margin-top); the meta bar floats to the bottom in normal flow, so it can
   never be overlapped at any viewport height. */
.hero-inner { position: relative; z-index: 1; flex-shrink: 0; }

/* The eyebrow carries the block's downward offset, so it drops down to
   sit just above the LUMN wordmark with the slogans right below it. */
.hero-eyebrow { margin-top: 12rem; }

/* Liquid morphing headline (ported from liquid-text.tsx) */
/* .hero-title.hero-morph beats the later .hero-title font-size rule */
.hero-title.hero-morph {
  position: relative;
  display: block;
  /* gap below the (fixed) eyebrow — controls how far the slogan and the
     paragraph sit below the eyebrow, without moving the eyebrow itself */
  margin-top: 6.5rem;
  /* Sized for full-sentence phrases (smaller than the base hero title)
     so the longer phrase stays ~2 lines and the block fits the viewport. */
  font-size: clamp(2.7rem, 6.4vw, 5.75rem);
  line-height: 1.04;
  min-height: 2.12em;
  /* threshold filter + subtle blur = the "liquid" merge between phrases */
  filter: url(#threshold) blur(0.55px);
}
/* Short viewports (laptops): trim the morph size so the CTA buttons
   stay clear of the bottom bar while keeping the lower position. */
@media (max-height: 880px) {
  .hero-title.hero-morph {
    font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  }
  .hero-eyebrow { margin-top: 3rem; }
}
.hero-morph .morph {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.morph-text {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: inline-block;
  will-change: filter, opacity;
}
.morph-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  max-width: 12em;
}
.hero-title em { font-style: italic; font-weight: 500; }

.hero-lede {
  margin-top: var(--space-3);
  max-width: 34em;
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-meta {
  width: 100%;
  margin-top: 3.5rem;
  padding-bottom: 2.2rem;
  z-index: 1;
  flex-shrink: 0;
}
.hero-meta-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-scroll .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: 0.35; }
}

/* Aircraft line-art */
.aircraft-art { width: 100%; height: auto; }
.aircraft-art path,
.aircraft-art line,
.aircraft-art ellipse,
.aircraft-art circle {
  fill: none;
  stroke: var(--gray-300);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}
.draw-path {
  stroke-dasharray: var(--path-len, 1600);
  stroke-dashoffset: var(--path-len, 1600);
  transition: stroke-dashoffset 2.6s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0s);
}
.is-visible .draw-path, .draw-path.is-visible { stroke-dashoffset: 0; }

/* ============================================================
   GRADIENT-BLUR REGION (ported from gradient-blur.tsx)
   Light-grey mouse-trail behind the How-It-Works → Service-Area
   sections. Canvas sits behind, section content sits above.
   ============================================================ */
.gblur-wrap { position: relative; }
.gblur-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.gblur-wrap > section { position: relative; z-index: 1; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-strong);
  padding-block: 1.1rem;
  background: var(--gray-100);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.marquee-item::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gray-200);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEADERS / SHARED BLOCKS
   ============================================================ */
.section-head {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head--split {
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .section-head--split .lede { justify-self: end; }
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  border-top: 1px solid var(--line);
}
.stat {
  padding: 2.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}
.stat-value sup { font-size: 0.45em; vertical-align: super; }
.stat-label {
  margin-top: 0.7rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Service overview cards (home) */
.svc-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 820px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  position: relative;
  background: var(--bg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 22rem;
  overflow: hidden;
  transition: background-color 0.45s ease;
}
.svc-card:hover { background: var(--bg-panel); }
.svc-num {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--gray-300);
  transition: color 0.4s ease;
}
.svc-card:hover .svc-num { color: var(--ink); }
.svc-card .heading-md { flex-grow: 0; }
.svc-desc { color: var(--text-soft); font-size: var(--fs-small); line-height: 1.7; flex-grow: 1; }
.svc-list { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.svc-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--fs-small);
  color: var(--text-soft);
}
.svc-list li::before {
  content: "";
  width: 0.85rem;
  height: 1px;
  background: var(--gray-300);
  flex: none;
  transform: translateY(-0.28em);
}
.svc-card-link {
  margin-top: 1.4rem;
  align-self: flex-start;
}
.svc-card::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.svc-card:hover::after { transform: scaleX(1); }

/* Process steps */
.process-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  counter-reset: step;
}
@media (min-width: 760px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step { position: relative; padding-top: 1.6rem; }
.process-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--line-strong);
}
.process-step-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-faint);
}
.process-step h3 {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.process-step p {
  margin-top: 0.7rem;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-soft);
}

/* ============================================================
   ROUTE / SERVICE AREA
   ============================================================ */
.route-wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (min-width: 960px) { .route-wrap { grid-template-columns: 1fr 1.1fr; } }

.route-svg { width: 100%; height: auto; }

.route-stops { display: grid; }
.route-stop {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
.route-stop:first-child { border-top: 1px solid var(--line); }
.route-stop:hover { padding-left: 0.8rem; }
.route-stop-city {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
}
.route-stop-meta {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============================================================
   DARK CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.55); }
.cta-band .eyebrow::before { background: rgba(255,255,255,0.7); }
.cta-band ::selection { background: var(--white); color: var(--ink); }
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  text-align: center;
  justify-items: center;
  padding-block: var(--space-7);
}
.cta-band .heading-lg { max-width: 14em; }
.cta-band-sub { color: rgba(255,255,255,0.65); max-width: 32em; font-size: var(--fs-body-lg); line-height: 1.7; }
.cta-band-word {
  position: absolute;
  bottom: -0.18em;
  inset-inline: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(6rem, 20vw, 19rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255,255,255,0.045);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding-top: var(--space-6);
}
.site-footer ::selection { background: var(--white); color: var(--ink); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--space-5);
}
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }

.footer-brand .brand-mark { color: var(--white); font-size: 1.6rem; }
.footer-tagline {
  margin-top: 1.1rem;
  max-width: 24em;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--gray-500);
}
.footer-head {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 1.2rem;
}
.footer-links { display: grid; gap: 0.65rem; }
.footer-links a {
  font-size: var(--fs-small);
  color: var(--gray-300);
  transition: color var(--dur-fast) ease, padding-left var(--dur-fast) var(--ease-soft);
}
.footer-links a:hover { color: var(--white); padding-left: 0.4rem; }

.footer-word {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-word span {
  display: block;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(4.5rem, 18vw, 17rem);
  letter-spacing: 0.08em;
  line-height: 0.86;
  transform: translateY(0.08em);
  color: rgba(255,255,255,0.06);
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  /* The decorative word bleeds past the right edge by design. `clip` (not
     `hidden`) contains that bleed without forcing overflow-y to `auto`, so
     the heading's descenders stay fully visible. */
  overflow-x: clip;
}
.page-hero .heading-xl { max-width: 11em; }
.page-hero .lede { margin-top: var(--space-3); }
.page-hero-word {
  position: absolute;
  right: -0.06em;
  bottom: 0.05em;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(7rem, 20vw, 17rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--gray-050);
  pointer-events: none;
  user-select: none;
  z-index: -1;
  white-space: nowrap;
}
/* Per-letter spans for cursor-repel effect on page-hero-word */
.page-hero-word-letter {
  display: inline-block;
  will-change: transform;
}

/* Phones: the 7rem clamp floor makes these words far wider than the screen
   (SERVICES measured 583px of ink in a 375px viewport, 202px of it cut off
   the left edge). Because the words differ a lot in width at the same size
   — I-15 is 1.92em wide, SERVICES 5.21em — a single font-size would either
   clip SERVICES or leave I-15 tiny. Size per letter-count instead so each
   word lands at ~86vw of ink, and pull the right-edge bleed back on-screen.
   Ratios are measured, not guessed: font-vw = 88 / (ink-width-in-em). */
@media (max-width: 560px) {
  .page-hero-word { right: 0.1em; }
  .page-hero-word[data-len="4"] { font-size: 28vw; }    /* I-15            */
  .page-hero-word[data-len="5"] { font-size: 24vw; }    /* TRUST HELLO TERMS */
  .page-hero-word[data-len="6"] { font-size: 20.5vw; }  /* POLICY REFUND   */
  .page-hero-word[data-len="8"] { font-size: 16.5vw; }  /* SERVICES        */
}

/* Breadcrumb-ish page label */
.page-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: var(--space-3);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.svc-section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.svc-section + .svc-section { border-top: 1px solid var(--line); }

.svc-section-head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 900px) {
  .svc-section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
}

.svc-items { display: grid; }
.svc-item {
  display: grid;
  gap: 0.9rem;
  padding-block: clamp(1.6rem, 3.5vw, 2.4rem);
  border-top: 1px solid var(--line);
  transition: background-color 0.4s ease;
}
.svc-item:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 860px) {
  .svc-item { grid-template-columns: 4.5rem 1.15fr 1fr; gap: 2.5rem; align-items: start; }
}
.svc-item-idx {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gray-300);
  padding-top: 0.35rem;
}
.svc-item-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
}
.svc-item-tag {
  display: inline-block;
  margin-top: 0.7rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}
.svc-item-desc {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-soft);
  padding-top: 0.35rem;
}
.svc-item-list {
  list-style: none;
  padding-top: 0.35rem;
  display: grid;
  gap: 0.55rem;
}
.svc-item-list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--text-soft);
}
.svc-item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* ============================================================
   CERTIFICATES PAGE
   ============================================================ */
.cert-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cert-grid { grid-template-columns: repeat(3, 1fr); } }

.cert-card {
  background: var(--bg);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-height: 17rem;
  transition: background-color 0.45s ease;
}
.cert-card:hover { background: var(--bg-panel); }
.cert-icon {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 0.4s ease;
}
.cert-card:hover .cert-icon { border-color: var(--ink); }
.cert-icon svg { width: 1.1rem; height: 1.1rem; stroke: var(--ink); fill: none; stroke-width: 1.5; }
.cert-card h3 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.cert-card p { font-size: var(--fs-small); line-height: 1.7; color: var(--text-soft); flex-grow: 1; }
.cert-note {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 960px) {
  .about-split { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-split .sticky-col { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.value-list { display: grid; }
.value-item {
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
}
.value-item:last-child { border-bottom: 1px solid var(--line); }
.value-item h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.value-item h3 .idx {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gray-300);
  font-weight: 400;
}
.value-item p { font-size: var(--fs-small); line-height: 1.75; color: var(--text-soft); max-width: 36em; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}
@media (min-width: 960px) { .contact-split { grid-template-columns: 1fr 1.2fr; } }

.contact-info { display: grid; gap: 2rem; align-content: start; }
.contact-block h3 {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.6rem;
}
.contact-block a, .contact-block p {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.contact-block a { border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.contact-block a:hover { border-color: var(--ink); }

.form-grid { display: grid; gap: 1.6rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field--full { grid-column: 1 / -1; }
}
.form-field { display: grid; gap: 0.5rem; }
.form-field label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.8rem 0;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230e0e0e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
  cursor: pointer;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray-300); }

.form-note { font-size: 0.8125rem; color: var(--text-faint); line-height: 1.6; }

.form-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem 1.5rem;
  padding-top: 0.3rem;
}
@media (min-width: 520px) {
  .form-checkbox-grid { grid-template-columns: 1fr 1fr; }
}
.form-checkbox-grid .form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  line-height: 1.4;
}
.form-checkbox-grid .form-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin: 0.1rem 0 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.form-checkbox-grid .form-checkbox input[type="checkbox"]:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.form-checkbox-grid .form-checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.14rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.form-checkbox-grid .form-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* Inline confirmation shown after a successful quote submission. */
.form-success {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.6rem 2.2rem;
  background: var(--bg-alt);
  animation: form-success-in var(--dur-slow, 0.5s) var(--ease-soft, ease) both;
}
.form-success h3 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.form-success p {
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 34em;
}
@keyframes form-success-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MISC
   ============================================================ */
.divider { height: 1px; background: var(--line); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-small);
  border-radius: var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Responsive: header collapse ---------- */
@media (max-width: 899px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  /* .brand-sub stays visible on phones too — the rule + "Aviation Detailing"
     lockup should read the same as it does on desktop. Tightened slightly
     below so it clears the hamburger on narrow screens. */
}
@media (max-width: 400px) {
  .brand-sub {
    letter-spacing: 0.24em;
    padding-left: 0.65rem;
  }
  .brand { gap: 0.65rem; }
}
@media (min-width: 900px) {
  .mobile-menu { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal, .line-mask > span, .wipe::after, .rule-grow, .draw-path {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .marquee-track { animation: none !important; }
}
