/* ==========================================================================
   Interstate Freight Corp — "The Night Haul"
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg-0: #04060e;
  --bg-1: #0a0f1e;
  --ink: #f2f6ff;
  --muted: #98a2bd;
  --cyan: #3ce6ff;
  --violet: #7c5cff;
  --amber: #ffb03a;
  --grad: linear-gradient(135deg, var(--cyan), var(--violet));
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-brd: rgba(255, 255, 255, 0.13);
  --radius: 20px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.25rem);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: clip;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

/* Keep the wordmark and X toggle above the full-screen menu overlay. */
body.menu-open .nav {
  z-index: 120;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: rgba(60, 230, 255, 0.28);
  color: var(--ink);
}

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

/* ---------- Utilities ---------- */
.container {
  width: min(1200px, calc(100% - 3rem));
  margin-inline: auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.2rem;
  background: var(--bg-1);
  border: 1px solid var(--glass-brd);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-260%);
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.noscript-note {
  position: relative;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: var(--bg-1);
  border-bottom: 1px solid var(--glass-brd);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.noscript-note a {
  color: var(--cyan);
  text-decoration: underline;
}

/* ---------- Liquid glass recipe ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Animated iridescent conic border + specular sweep (feature cards) */
.card,
.carriers-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card::before,
.carriers-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--spin, 0deg),
    var(--cyan),
    var(--violet) 25%,
    transparent 50%,
    transparent 72%,
    var(--cyan) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.35;
  animation: border-spin 8s linear infinite;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.card:hover::before,
.carriers-panel:hover::before {
  opacity: 0.9;
  animation-duration: 3.5s;
}

@keyframes border-spin {
  to {
    --spin: 360deg;
  }
}

.card::after,
.carriers-panel::after {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: 1;
  background: linear-gradient(
    105deg,
    transparent 42%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 58%
  );
  transform: translateX(-80%);
  opacity: 0;
  pointer-events: none;
}

.card:hover::after,
.carriers-panel:hover::after {
  animation: specular-sweep 0.9s var(--ease-out);
}

@keyframes specular-sweep {
  0% {
    transform: translateX(-80%);
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  100% {
    transform: translateX(80%);
    opacity: 0;
  }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-color 0.3s ease,
    filter 0.3s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #8d70ff);
  color: #041018;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(60, 230, 255, 0.28), 0 10px 40px rgba(124, 92, 255, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 24px rgba(60, 230, 255, 0.4), 0 14px 48px rgba(124, 92, 255, 0.38);
}

.btn-ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.btn-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 0.9rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 44ch;
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-brd);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

a.chip-link {
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

a.chip-link:hover {
  border-color: rgba(60, 230, 255, 0.55);
  color: var(--cyan);
}

a.chip-link svg {
  opacity: 0.7;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(6, 10, 24, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--glass-brd);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 0.4rem 0.1rem;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 6rem 2rem 3rem;
  background: rgba(5, 8, 18, 0.82);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.mobile-links a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.35rem 1rem;
  color: var(--ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), color 0.25s ease;
}

.mobile-menu.is-open .mobile-links a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open .mobile-links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-links a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-links a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-links a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-links a:nth-child(6) { transition-delay: 0.3s; }

.mobile-links a:hover {
  color: var(--cyan);
}

.mobile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.mobile-compliance {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-0);
}

.hero-media canvas {
  width: 100%;
  height: 100%;
}

/* WebGL-failure fallback + no-JS fallback: static cinematic gradient */
.hero-media.hero-fallback,
html:not(.js) .hero-media {
  background:
    radial-gradient(58% 46% at 72% 64%, rgba(124, 92, 255, 0.3), transparent 66%),
    radial-gradient(48% 42% at 24% 38%, rgba(60, 230, 255, 0.22), transparent 62%),
    radial-gradient(30% 18% at 50% 88%, rgba(255, 176, 58, 0.12), transparent 70%),
    linear-gradient(180deg, #05081a 0%, var(--bg-0) 100%);
}

.hero-media.hero-fallback canvas,
html:not(.js) .hero-media canvas {
  display: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(92deg, rgba(4, 6, 14, 0.78) 0%, rgba(4, 6, 14, 0.45) 38%, transparent 66%),
    radial-gradient(120% 90% at 50% 40%, transparent 28%, rgba(4, 6, 14, 0.38) 62%, rgba(4, 6, 14, 0.92) 100%),
    linear-gradient(180deg, rgba(4, 6, 14, 0.6) 0%, transparent 26%, transparent 68%, var(--bg-0) 100%);
}

.hero-title .grad-text {
  filter: drop-shadow(0 4px 16px rgba(4, 6, 14, 0.9));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 6rem;
}

.hero-eyebrow {
  color: rgba(178, 190, 220, 0.95);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin-top: 1.1rem;
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(4, 6, 14, 0.6);
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(207, 216, 238, 0.98);
  text-shadow: 0 2px 20px rgba(4, 6, 14, 0.7);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero .chip-row {
  margin-top: 2.4rem;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.cue-label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.cue-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}

.cue-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, transparent, #ffffffcc);
  animation: cue-drop 2.2s ease-in-out infinite;
}

@keyframes cue-drop {
  0% {
    top: -50%;
  }
  70%,
  100% {
    top: 110%;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}

.ticker.is-paused .ticker-track {
  animation-play-state: paused;
}

.ticker-list {
  display: flex;
  flex-shrink: 0;
}

.ticker-list li {
  display: flex;
  align-items: center;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker .sep {
  display: inline-block;
  margin-inline: 1.6rem;
  font-size: 0.7rem;
  color: var(--amber);
  opacity: 0.85;
}

@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.panel {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.about-panel p + p {
  margin-top: 1.1rem;
}

.about-panel p {
  color: rgba(212, 220, 240, 0.96);
}

.chip-group {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chip-group-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.about-bullets {
  display: grid;
  gap: 0.9rem;
}

.bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
}

.bullet p {
  color: rgba(212, 220, 240, 0.96);
  font-size: 0.95rem;
}

.bullet-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(60, 230, 255, 0.8);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service-card {
  padding: 1.8rem 1.6rem;
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s ease;
  will-change: transform;
}

.service-card.is-tilting {
  transition: transform 0.08s linear, box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(60, 230, 255, 0.07);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(60, 230, 255, 0.08);
  border: 1px solid rgba(60, 230, 255, 0.22);
  color: var(--cyan);
  margin-bottom: 1.3rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.service-card p {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  color: var(--muted);
}

/* ---------- Coverage ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.map-panel {
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  align-items: center;
}

#map-canvas {
  width: 100%;
  aspect-ratio: 100 / 64;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  align-content: center;
}

.stat {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-suffix {
  font-size: 0.72em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Equipment ---------- */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.equip-item {
  position: relative;
  padding: 1.7rem 1.6rem;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.equip-item:hover {
  border-color: rgba(124, 92, 255, 0.4);
  background: rgba(255, 255, 255, 0.075);
}

.equip-index {
  position: absolute;
  top: 0.9rem;
  right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(135deg, rgba(60, 230, 255, 0.22), rgba(124, 92, 255, 0.22));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.equip-item h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  padding-right: 3rem;
}

.equip-item p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Carriers CTA ---------- */
.carriers-panel {
  padding: clamp(2.25rem, 6vw, 4.5rem);
  text-align: center;
  background:
    radial-gradient(60% 90% at 50% 110%, rgba(124, 92, 255, 0.14), transparent 70%),
    radial-gradient(45% 70% at 12% -10%, rgba(60, 230, 255, 0.1), transparent 70%),
    var(--glass-bg);
}

.carriers-panel .section-title {
  margin-inline: auto;
}

.carriers-copy {
  max-width: 62ch;
  margin: 1.3rem auto 2.1rem;
  color: rgba(212, 220, 240, 0.96);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.contact-form-panel {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.contact-info {
  padding: clamp(1.5rem, 3vw, 2.2rem);
}

.info-list {
  display: grid;
  gap: 1.6rem;
}

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: var(--violet);
}

.info-list li:first-child .info-icon {
  background: rgba(60, 230, 255, 0.08);
  border-color: rgba(60, 230, 255, 0.25);
  color: var(--cyan);
}

.info-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.info-value {
  font-weight: 600;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

a.info-value {
  transition: color 0.25s ease;
}

a.info-value:hover {
  color: var(--cyan);
}

.info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--cyan);
  border-bottom: 1px solid rgba(60, 230, 255, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s ease;
}

.info-link:hover {
  border-bottom-color: var(--cyan);
}

/* ---------- Forms ---------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
  min-width: 0;
}

.field label:not(.consent),
.radio-field legend {
  display: block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(212, 220, 240, 0.96);
  margin-bottom: 0.45rem;
}

.req {
  color: var(--cyan);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(152, 162, 189, 0.85);
}

.field select:has(option[value='']:checked) {
  color: rgba(152, 162, 189, 0.85);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(60, 230, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(60, 230, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2398a2bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}

.field select option {
  background: var(--bg-1);
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: rgba(255, 107, 107, 0.65);
}

.field-error {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #ff9d9d;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--glass-brd);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.consent input:checked {
  border-color: transparent;
  background: var(--grad);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23041018' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--cyan), var(--violet));
  background-size: 12px 12px, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.consent input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.consent span {
  line-height: 1.5;
}

.radio-field {
  border: 0;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.radio:hover {
  border-color: rgba(60, 230, 255, 0.4);
}

.radio input {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
}

.radio:has(input:checked) {
  border-color: rgba(60, 230, 255, 0.65);
  background: rgba(60, 230, 255, 0.08);
}

/* Honeypot — visually removed, still in DOM */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-alert {
  margin: 0.4rem 0 0.9rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  background: rgba(255, 107, 107, 0.08);
  font-size: 0.9rem;
  color: #ffc2c2;
}

.form-alert a {
  color: var(--cyan);
  text-decoration: underline;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: 2.5rem 1.5rem;
}

.form-success[hidden] {
  display: none;
}

.form-success p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  max-width: 34ch;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(60, 230, 255, 0.1);
  border: 1px solid rgba(60, 230, 255, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 40px rgba(60, 230, 255, 0.25);
}

/* ---------- Modals ---------- */
.modal {
  margin: auto;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(86vh, 46rem);
  overflow-y: auto;
  padding: clamp(1.4rem, 4vw, 2.1rem);
  border: 1px solid var(--glass-brd);
  color: var(--ink);
  background: rgba(10, 15, 30, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

.modal[open] {
  animation: modal-in 0.45s var(--ease-out);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

.modal::backdrop {
  background: rgba(4, 6, 14, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-sub {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.modal-close {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-brd);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.modal-close:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(10, 15, 30, 0.6));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-tagline {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 0.2rem 0;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--ink);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-legal a {
  color: var(--cyan);
  transition: opacity 0.25s ease;
}

.footer-legal a:hover {
  opacity: 0.8;
}

/* ---------- Scroll reveals (JS-gated so no-JS users see everything) ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out),
    filter 0.6s var(--ease-out);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 2.5rem);
  }

  .services-grid,
  .equipment-grid {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-ctas .btn {
    flex: 1 1 auto;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 1.15rem 1.05rem;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .nav-actions .btn-primary {
    display: none;
  }
}

/* ---------- Reduced motion: everything static, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .card::before,
  .carriers-panel::before {
    animation: none;
    opacity: 0.5;
  }

  .card::after,
  .carriers-panel::after {
    display: none;
  }

  .cue-line::after {
    animation: none;
  }

  .ticker {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
  }

  .ticker-list {
    flex-wrap: wrap;
    flex-shrink: 1;
    padding-inline: 1.25rem;
  }

  .ticker-list[aria-hidden='true'] {
    display: none;
  }

  .service-card,
  .btn,
  [data-magnetic] {
    transform: none !important;
  }
}

/* =========================================================================
   Legal pages (privacy.html, terms.html) — static, no JS, no hero canvas.
   ========================================================================= */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(4, 6, 14, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-brd);
}

.legal-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  flex-wrap: wrap;
}

.legal-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
}

.legal-nav-links a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.legal-nav-links a:hover,
.legal-nav-links a[aria-current='page'] {
  color: var(--ink);
}

.legal-nav-links .btn {
  color: var(--ink);
}

.legal-main {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 clamp(3rem, 7vw, 5rem);
}

.legal-doc {
  max-width: 74ch;
  margin-inline: auto;
}

.legal-head {
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-doc h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0.5rem 0 0.9rem;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-intro {
  margin-top: 1.1rem;
  color: rgba(212, 220, 240, 0.96);
}

.legal-panel {
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 2.3rem 0 0.75rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.legal-doc h2:first-of-type,
.legal-panel > h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.legal-doc p,
.legal-doc li {
  color: rgba(212, 220, 240, 0.92);
}

.legal-doc p {
  margin-bottom: 0.95rem;
}

.legal-doc ul {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.legal-doc ul li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
}

.legal-doc ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.legal-doc a:not(.btn) {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.legal-doc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Emphasised callout used for the carrier-required SMS disclosures. */
.legal-callout {
  margin: 1.4rem 0;
  padding: 1.1rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(60, 230, 255, 0.28);
  background: rgba(60, 230, 255, 0.06);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.35rem;
}

.legal-toc {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.legal-toc li {
  padding-left: 0;
}

.legal-toc li::before {
  display: none;
}

@media (max-width: 640px) {
  .legal-nav-inner {
    padding-block: 0.7rem;
  }
  .legal-nav-links {
    gap: 1rem;
    font-size: 0.88rem;
  }
}

/* Consent disclosure: carrier-required SMS wording with the policy URLs shown
   inline. Anchors inside a <label> do not toggle the checkbox (the label's
   activation behavior is skipped for interactive descendants). */
.consent span a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
