/* ============================================================
   MAC'S TECH LLC — Midnight & Amber
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Base */
  --void:        #07080A;
  --midnight:    #0C0E11;
  --panel:       #14171B;
  --elevated:    #1C2026;
  /* Amber system */
  --amber:       #FF9A3C;
  --amber-deep:  #E0762A;
  --amber-glow:  #FFC97A;
  --amber-wash:  rgba(255,154,60,0.08);
  --amber-line:  rgba(255,154,60,0.16);
  /* Steel */
  --steel-light: #E8E6E3;
  --steel:       #9A9691;
  --steel-dark:  #4A4744;
  /* Type */
  --ink:         #F4F1EC;
  --ink-muted:   #A29C94;
  --ink-faint:   #6B655E;
  /* Status */
  --status-armed:  #FF9A3C;
  --status-clear:  #4ADE80;
  --status-fault:  #F87171;

  /* Type scale */
  --fs-mega:  clamp(2.75rem, 8.5vw, 8rem);
  --fs-xxl:   clamp(2.5rem, 8vw, 7rem);
  --fs-xl:    clamp(2rem, 5vw, 4rem);
  --fs-lg:    clamp(1.5rem, 3vw, 2.25rem);
  --fs-body:  clamp(1rem, 1.15vw, 1.1875rem);
  --fs-sm:    0.9375rem;
  --fs-util:  0.75rem;

  /* Faces */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;
  --font-mono:    "Azeret Mono", "Consolas", monospace;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: 10rem;

  --run-x: 6vw;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --content-x: clamp(1.25rem, 10vw, 9rem);
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--amber); color: var(--void); }

/* Focus — visible amber rings everywhere */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 10001;
  background: var(--amber); color: var(--void);
  font-family: var(--font-mono); font-size: var(--fs-util);
  text-transform: uppercase; letter-spacing: 0.16em;
  padding: 0.75rem 1.25rem; transition: top 200ms ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Utility type ---------- */
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-util);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-util);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: var(--space-3);
}

/* ---------- Logo mark (recolored renders of the original artwork) ---------- */
.mark { width: 44px; height: 44px; object-fit: contain; }

/* ---------- Status dots ---------- */
.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--status-armed);
  box-shadow: 0 0 8px rgba(255,154,60,0.8);
  animation: dot-pulse 2s ease-in-out infinite;
}
.status-dot--slow { animation-duration: 3.4s; }
.status-dot--clear { background: var(--status-clear); box-shadow: 0 0 8px rgba(74,222,128,0.7); }
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Grain ---------- */
.grain-defs { position: absolute; width: 0; height: 0; }
.grain {
  position: fixed; inset: -50px; z-index: 9998;
  pointer-events: none;
  filter: url(#grain-filter);
  opacity: 0.035;
  mix-blend-mode: overlay;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  padding: 1.05rem 1.9rem;
  min-height: 48px;
  transition: color 240ms ease, transform 120ms ease, border-color 240ms ease;
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 15px; height: 15px; }

.btn--primary { background: var(--amber); color: var(--void); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: var(--amber-glow);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
}
.btn--primary:hover::before { transform: scaleX(1); }
/* keep the label above the hover-wipe overlay */
.btn--primary > * { position: relative; z-index: 1; }

.btn--ghost { color: var(--ink); border: 1px solid var(--amber-line); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms ease;
  z-index: 0;
}
.btn--ghost:hover { color: var(--void); border-color: var(--amber); }
.btn--ghost:hover::before { transform: scaleX(1); }
.btn--ghost > * { position: relative; z-index: 1; }

/* ============================================================
   00 · PRELOADER
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  will-change: transform;
  /* the exit wipe is a CSS transition so it stays smooth even if the main
     thread is busy initializing the page behind it */
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1);
}
.preloader.is-wiping { transform: translateY(-100%); }
.preloader__inner { display: grid; justify-items: center; gap: var(--space-3); }
.mark--preloader { width: 84px; height: 84px; }
.preloader__counter { color: var(--ink-faint); letter-spacing: 0.3em; }
.preloader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px;
  background: linear-gradient(180deg, rgba(255,154,60,0.5), transparent);
  opacity: 0;
}
.preloader.is-wiping::after { opacity: 1; }
.preloader.is-done { display: none; }

/* ============================================================
   THE RUN
   ============================================================ */
.run {
  position: absolute; top: 0; left: var(--run-x); width: 1px; height: 100%;
  z-index: 50; pointer-events: none;
}
.run__line {
  position: absolute; top: 0; left: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--amber) 0%, var(--amber-deep) 100%);
  transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 6px rgba(255,154,60,0.35);
}

/* RJ45 plug-in sequence at the top of the run */
.run__plug {
  position: absolute; left: -10.5px; width: 22px;
  max-width: none; /* escape the global svg max-width inside the 1px run */
  overflow: visible;
}
.run__plug path, .run__plug rect { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
.run__plug-cable { stroke-width: 2.2; }
.run__plug-pins { stroke-width: 1.6; opacity: 0.7; }
.run__port {
  position: absolute; left: -14.5px; width: 30px;
  max-width: none;
  overflow: visible;
}
.run__port path { fill: none; stroke: var(--amber-deep); stroke-width: 2; stroke-linejoin: round; transition: stroke 300ms ease; }
.run__port-contacts { stroke-width: 1.4; opacity: 0.55; }
.run__port.is-live path { stroke: var(--amber); }
.run__homelabel {
  position: absolute; left: 24px;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.16em; color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0; transition: opacity 400ms ease, color 400ms ease;
}
.run__homelabel.is-active { opacity: 1; color: var(--amber); }
.run__node {
  position: absolute; left: -4px; width: 9px; height: 9px;
  background: var(--midnight);
  border: 1px solid var(--amber-line);
  transition: background 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
.run__node.is-active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(255,154,60,0.85);
}
.run__branch {
  position: absolute; left: 9px; top: 4px; height: 1px;
  background: var(--amber-line);
  transform: scaleX(0); transform-origin: left;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.run__node.is-active .run__branch { transform: scaleX(1); background: var(--amber-line); }
.run__label {
  position: absolute; left: 12px; top: -0.35rem;
  font-family: var(--font-mono); font-size: 0.625rem;
  letter-spacing: 0.16em; color: var(--ink-faint);
  white-space: nowrap;
  opacity: 0; transition: opacity 400ms ease 200ms, color 400ms ease;
}
.run__node.is-active .run__label { opacity: 1; color: var(--amber); }

/* ============================================================
   01 · NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 400ms ease, border-color 400ms ease, backdrop-filter 400ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(12,14,17,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--amber-line);
}
.nav__logo { display: block; }
.mark--nav { width: 40px; height: 40px; }

.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.75rem); }
.nav__link {
  position: relative; color: var(--ink-muted); padding: 0.35rem 0;
  transition: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms ease;
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.nav__phone {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink);
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  transition: border-color 240ms ease, background 240ms ease;
}
.nav__phone:hover { border-color: var(--amber); background: var(--amber-wash); }

.nav__burger {
  display: none;
  flex-direction: column; gap: 6px;
  padding: 10px 6px;
}
.nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 280ms ease, opacity 280ms ease;
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 800;
  background: var(--void);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  visibility: hidden; opacity: 0;
  transition: opacity 320ms ease, visibility 0s linear 320ms;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu__link {
  display: block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 700; font-size: clamp(2rem, 9vw, 3.25rem);
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); text-transform: uppercase;
  padding: 0.55rem 0;
  transform: translateY(28px); opacity: 0;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms ease;
}
.mobile-menu.is-open .mobile-menu__link { transform: none; opacity: 1; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 60ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 130ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 270ms; }
.mobile-menu__label { display: block; color: var(--amber); margin-bottom: 0.2rem; font-size: 0.625rem; }
.mobile-menu__phone { margin-top: var(--space-4); color: var(--ink-muted); }

/* ============================================================
   02 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6.5rem, 14vh, 9rem) var(--content-x) clamp(5rem, 12vh, 7rem);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.4;
}
.hero__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, transparent 0%, var(--void) 100%);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--void) 4%, rgba(7,8,10,0.55) 38%, transparent 75%);
}

.hero__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 750;
  font-size: var(--fs-mega);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-left: -0.05em;
}
.hero__line { display: block; }
.hero__accent { font-style: normal; color: var(--amber); }

.hero__sub {
  max-width: 62ch;
  color: var(--ink-muted);
  margin-top: var(--space-4);
  max-width: min(62ch, 34rem);
}
.hero__ctas { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }

.hero__status {
  position: absolute; left: var(--content-x); bottom: 2rem;
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.hero__scroll-cue {
  position: absolute; right: var(--gutter); bottom: 2rem;
  width: 1px; height: 56px; overflow: hidden;
}
.hero__scroll-cue span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, var(--amber));
  animation: cue-draw 2.4s ease-in-out infinite;
}
@keyframes cue-draw {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ============================================================
   03 · STATS STRIP
   ============================================================ */
.stats {
  background: var(--midnight);
  border-top: 1px solid var(--amber-line);
  border-bottom: 1px solid var(--amber-line);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats__cell {
  position: relative;
  padding: var(--space-5) var(--space-3);
  text-align: center;
  transition: background 240ms ease;
}
.stats__cell + .stats__cell { border-left: 1px solid rgba(255,154,60,0.09); }
.stats__cell::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: var(--amber);
  opacity: 0; transition: opacity 240ms ease;
}
.stats__cell:hover { background: var(--amber-wash); }
.stats__cell:hover::before { opacity: 1; }
.stats__value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 122;
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1;
  color: var(--ink);
}
.stats__label { margin-top: var(--space-2); }

/* ============================================================
   03b · PLATFORMS
   ============================================================ */
.brands {
  background: var(--void);
  padding: var(--space-5) var(--gutter);
  text-align: center;
}
.brands__label { color: var(--amber); margin-bottom: var(--space-3); }
.brands__list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-2) var(--space-4);
}
.brands__list li {
  color: var(--ink-faint);
  transition: color 240ms ease;
}
.brands__list li:hover { color: var(--ink); }

/* ============================================================
   04 · MISSION
   ============================================================ */
.mission { padding: var(--space-7) var(--gutter); background: var(--void); }
.mission__inner {
  max-width: 52rem; margin: 0 auto; text-align: center;
}
.mission__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-xxl);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.mission__headline .w { opacity: 0.18; }
.mission__body {
  max-width: 62ch; margin: var(--space-5) auto 0;
  text-align: left;
  color: var(--ink-muted);
  display: grid; gap: var(--space-3);
}

/* ============================================================
   05 · PILLARS
   ============================================================ */
.pillars { background: var(--void); }
.pillar {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--void);
}
.pillar__media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
  overflow: hidden;
}
.pillar__video {
  width: 100%; height: 100%; object-fit: cover;
}
.pillar__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--void) 0%, rgba(7,8,10,0.25) 45%, rgba(7,8,10,0.05) 100%);
}
.pillar__ghost {
  position: absolute; left: 2vw; bottom: -2vw;
  font-family: var(--font-mono);
  font-size: clamp(12rem, 30vw, 26rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
  letter-spacing: -0.06em;
}
.pillar__content {
  position: relative; z-index: 2;
  width: min(44%, 34rem);
  padding-left: var(--content-x);
  padding-right: var(--space-3);
}
.pillar__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.pillar__title .ch { display: inline-block; }
.pillar__rule {
  height: 1px; background: var(--amber);
  margin: var(--space-3) 0;
  transform: scaleX(0); transform-origin: left;
}
.pillar__copy { color: var(--ink-muted); }
.pillar__proof { margin-top: var(--space-3); color: var(--amber); }

/* ============================================================
   06 · STORY
   ============================================================ */
.story { padding: var(--space-7) var(--gutter); background: var(--midnight); }
.story__inner {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.story__figure { position: sticky; top: 12vh; }
.story__frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--amber-line);
  padding: 0.75rem;
}
.story__frame::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(180deg, var(--amber-glow), var(--amber-deep));
  box-shadow: 0 0 18px rgba(255,154,60,0.35);
}
.story__frame img { width: 100%; height: auto; }
.story__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.story__text > p:not(.eyebrow) {
  color: var(--ink-muted);
  max-width: 62ch;
  margin-bottom: var(--space-3);
}
.story__quote {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 650;
  font-size: var(--fs-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--amber);
  margin-top: var(--space-5);
  max-width: 24ch;
}
.story__quote .w { opacity: 0.18; }

/* ============================================================
   07 · COVERAGE
   ============================================================ */
.coverage { padding: var(--space-7) var(--gutter); background: var(--void); }
.coverage__inner { max-width: 64rem; margin: 0 auto; text-align: center; }
.coverage__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-xxl);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.coverage__map { max-width: 34rem; margin: var(--space-5) auto 0; }
.coverage__map svg { width: 100%; height: auto; }
.state {
  fill: transparent;
  stroke: var(--amber);
  stroke-width: 1.1;
  stroke-linejoin: round;
  opacity: 0.85;
}
.state--home { fill: var(--amber-wash); }
.install-dot {
  fill: var(--amber);
  filter: drop-shadow(0 0 4px rgba(255,154,60,0.55));
}
.coverage__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}
.coverage__pulse {
  fill: none; stroke: var(--amber); stroke-width: 1.5;
  opacity: 0;
}
.coverage__states {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-4);
  margin-top: var(--space-5);
  max-width: 56rem;
  margin-left: auto; margin-right: auto;
  text-align: left;
}
.coverage__states li[data-state-label="UT"] { grid-column: 1 / -1; }
.coverage__state-name {
  display: block;
  color: var(--amber);
  margin-bottom: 0.4rem;
}
.coverage__cities {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.coverage__note { color: var(--ink-faint); margin-top: var(--space-4); font-size: var(--fs-sm); }

/* ============================================================
   08 · FEATURED WORK
   ============================================================ */
.work { background: var(--midnight); padding-top: var(--space-7); }
.work__head { padding: 0 var(--content-x); margin-bottom: var(--space-5); }
.work__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-xxl);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.work__note { margin-top: var(--space-2); }
.work__viewport { overflow: hidden; padding-bottom: var(--space-7); }
.work__track {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem);
  padding: 0 var(--content-x);
  width: max-content;
  will-change: transform;
}
.work-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(240px, 26vw, 380px);
  background: var(--panel);
  border: 1px solid var(--amber-line);
  overflow: hidden;
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}
.work-card img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-3);
  background: linear-gradient(0deg, rgba(7,8,10,0.92) 30%, transparent 100%);
  transition: transform 260ms ease;
}
.work-card__sector { color: var(--amber); margin-bottom: 0.4rem; }
.work-card__scope { color: var(--ink-muted); text-transform: none; letter-spacing: 0.04em; font-size: 0.8125rem; line-height: 1.5; }
.work-card:hover { border-color: var(--amber); transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.5); }
.work-card:hover img { transform: scale(1.04); }
.work-card:hover .work-card__caption { transform: translateY(-8px); }

/* ============================================================
   09 · CONTACT
   ============================================================ */
.contact { padding: var(--space-7) var(--gutter); background: var(--void); }
.contact__inner { max-width: 72rem; margin: 0 auto; }
.contact__headline {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 120;
  font-weight: 700;
  font-size: var(--fs-xxl);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 14ch;
}
.contact__routes {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: var(--space-6);
  background: var(--amber-line);
  border: 1px solid var(--amber-line);
}
.route {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  background: var(--panel);
  padding: var(--space-5) var(--space-4);
  text-align: left;
  transition: background 240ms ease;
}
.route:hover { background: var(--elevated); }
.route__num { color: var(--amber); }
.route__title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 650;
  font-size: 1.4rem;
  letter-spacing: 0;
  text-transform: uppercase;
}
.route__copy { color: var(--ink-muted); font-size: var(--fs-sm); }
.route__cue {
  margin-top: auto; padding-top: var(--space-3);
  position: relative; color: var(--amber);
}
.route__cue::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms ease;
}
.route:hover .route__cue::after { transform: scaleX(1); }

/* ============================================================
   10 · FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: var(--void);
  padding: var(--space-6) var(--gutter) var(--space-4);
  overflow: hidden;
}
.footer::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 50%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(255,154,60,0.07), transparent 70%);
  pointer-events: none;
}
.footer__termination {
  position: absolute; left: calc(var(--run-x) - 7px); top: var(--space-4);
  display: flex; align-items: center; gap: 0.75rem;
}
.footer__junction-block {
  width: 15px; height: 15px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(255,154,60,0.7);
}
.footer__junction-label { color: var(--ink-faint); font-size: 0.625rem; }
.footer__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-5);
  max-width: 76rem; margin: 0 auto;
  padding-left: calc(var(--run-x));
}
.footer__logo { width: 220px; height: auto; }
.footer__tag { margin-top: var(--space-3); }
.footer__links { display: grid; gap: 0.85rem; align-content: start; }
.footer__links a {
  color: var(--ink-muted); font-size: var(--fs-sm);
  position: relative; width: fit-content;
}
.footer__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms ease;
}
.footer__links a:hover::after { transform: scaleX(1); }
.footer__meta { display: grid; gap: 0.85rem; align-content: start; }
.footer__meta a { color: var(--ink-muted); }
.footer__meta a:hover { color: var(--amber); }
.footer__bottom {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  border-top: 1px solid var(--amber-line);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  max-width: 76rem; margin-left: auto; margin-right: auto;
}

/* ============================================================
   CHAT
   ============================================================ */
.chat-launcher {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 950;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--amber-line);
  display: flex; align-items: center; justify-content: center;
  animation: launcher-breathe 3.6s ease-in-out infinite;
  transition: border-color 240ms ease, transform 240ms ease;
}
.chat-launcher:hover { border-color: var(--amber); transform: scale(1.05); }
.chat-launcher .mark { width: 30px; height: 30px; }
@keyframes launcher-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,154,60,0.25); }
  50% { box-shadow: 0 0 0 12px rgba(255,154,60,0); }
}
.chat-launcher.is-hidden { display: none; }

.chat {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 960;
  width: min(420px, 100vw);
  background: var(--panel);
  border-left: 1px solid var(--amber-line);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 420ms;
  visibility: hidden;
}
.chat.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.chat__handle { display: none; }
.chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--amber-line);
  flex-shrink: 0;
}
.chat__title { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.chat__close { color: var(--ink-muted); padding: 0.4rem; }
.chat__close:hover { color: var(--ink); }
.chat__close .icon, .chat__send .icon { width: 18px; height: 18px; }

.chat__messages {
  flex: 1; overflow-y: auto;
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  scrollbar-width: thin; scrollbar-color: var(--steel-dark) transparent;
}
.chat__msg {
  max-width: 88%;
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  white-space: pre-wrap;
}
.chat__msg--assistant {
  align-self: flex-start;
  background: var(--elevated);
  color: var(--ink);
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--amber-wash);
  border-left: 2px solid var(--amber);
  color: var(--ink);
}
.chat__msg--typing {
  display: inline-flex; gap: 5px; align-items: center;
  padding: 1rem;
}
.chat__msg--typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: typing-pulse 1.2s ease-in-out infinite;
}
.chat__msg--typing i:nth-child(2) { animation-delay: 0.15s; }
.chat__msg--typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.chat__chips {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0 1.25rem 0.85rem;
  flex-shrink: 0;
}
.chat__chip {
  border: 1px solid var(--amber-line);
  color: var(--ink-muted);
  padding: 0.45rem 0.8rem;
  font-size: 0.6875rem;
  text-transform: none; letter-spacing: 0.05em;
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.chat__chip:hover { border-color: var(--amber); color: var(--ink); background: var(--amber-wash); }
.chat__chips.is-hidden { display: none; }

.chat__form {
  display: flex; gap: 0.5rem;
  padding: 0.85rem 1.25rem 1.25rem;
  border-top: 1px solid var(--amber-line);
  flex-shrink: 0;
}
.chat__input {
  flex: 1;
  background: var(--midnight);
  border: 1px solid var(--amber-line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  padding: 0.75rem 0.9rem;
}
.chat__input::placeholder { color: var(--ink-faint); }
.chat__input:focus-visible { outline-offset: 0; border-color: var(--amber); }
.chat__send {
  width: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--amber); color: var(--void);
  transition: background 200ms ease;
}
.chat__send:hover { background: var(--amber-glow); }

/* ============================================================
   BOOKING MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 970;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-3);
  visibility: hidden; opacity: 0;
  transition: opacity 300ms ease, visibility 0s linear 300ms;
}
.modal.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(7,8,10,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 90dvh;
  background: var(--panel);
  border: 1px solid var(--amber-line);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.985);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal__panel { transform: none; }
.modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--amber-line);
}
.modal__title { color: var(--ink); }
.modal__close { color: var(--ink-muted); padding: 0.4rem; }
.modal__close:hover { color: var(--ink); }
.modal__close .icon { width: 18px; height: 18px; }
/* Google's scheduler is white and can't be dark-themed — give it a clean
   white sheet under the dark header so it reads as intentional */
.modal__body { flex: 1; min-height: 420px; background: #fff; }
.modal__body iframe { width: 100%; height: min(640px, 74dvh); border: 0; display: block; }
.modal__fallback { padding: var(--space-4); color: #3a3a3a; }
.modal__fallback a { color: var(--amber-deep); text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pillar__content { width: min(50%, 30rem); padding-left: var(--gutter); }
  .footer__grid { grid-template-columns: 1fr 1fr; padding-left: 0; }
}

@media (max-width: 768px) {
  /* The Run stays on mobile in lean form: cable + plug + dots, no labels */
  .run { left: 14px; }
  .run__branch, .run__label { display: none; }
  .run__homelabel { left: 18px; font-size: 0.5625rem; }
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: flex; }

  .hero { padding-left: var(--gutter); padding-right: var(--gutter); }
  .hero__status { left: var(--gutter); max-width: 70vw; }
  .hero__video { display: none; }
  .hero__media {
    background: url("assets/img/poster-scene-01-threshold.webp") center / cover no-repeat;
  }
  .hero__ctas .btn { width: 100%; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__cell:nth-child(n+3) { border-top: 1px solid rgba(255,154,60,0.09); }
  .stats__cell:nth-child(3) { border-left: 0; }

  .pillar { align-items: flex-end; }
  .pillar__media { width: 100%; }
  .pillar__scrim {
    background: linear-gradient(0deg, var(--void) 12%, rgba(7,8,10,0.55) 55%, rgba(7,8,10,0.2) 100%);
  }
  .pillar__content { width: 100%; padding: 0 var(--gutter) var(--space-6); }
  .pillar__ghost { left: auto; right: 0; bottom: auto; top: 4vh; font-size: 9rem; }

  .story__inner { grid-template-columns: 1fr; }
  .story__figure { position: static; max-width: 26rem; }

  .coverage__states { grid-template-columns: 1fr 1fr; }
  .coverage__label { font-size: 14px; }

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

  /* Work: native swipe carousel */
  .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .work__viewport::-webkit-scrollbar { display: none; }
  .work__track { padding: 0 var(--gutter); }
  .work-card { scroll-snap-align: center; width: min(78vw, 340px); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .footer__termination { position: static; margin-bottom: var(--space-4); }

  .chat {
    width: 100vw;
    top: auto; height: 100dvh;
    border-left: 0; border-top: 1px solid var(--amber-line);
    transform: translateY(105%);
  }
  .chat.is-open { transform: none; }
  .chat__handle {
    display: block;
    width: 44px; height: 4px; border-radius: 2px;
    background: var(--steel-dark);
    margin: 0.6rem auto 0;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  :root { --content-x: 1.25rem; }
  .hero__headline { font-size: clamp(2.9rem, 15.5vw, 4.5rem); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .work-card { width: 82vw; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__scroll-cue { display: none; }
}
