/* ==========================================================================
   TM Consulting Group / TM Trucking and Logistics
   Single Authoritative Brand Theme: Obsidian (#0E0F11), Gold (#C8A15A), Ivory (#F9F6F0)
   Typography: Outfit (Display) + Source Sans 3 (Body) — Loaded via <link> in <head>
   Polish Layer: emil-design-eng + choreograph + mobile-native
   ========================================================================== */

:root {
  /* Obsidian Surfaces */
  --obsidian: #0E0F11;
  --obsidian-deep: #090A0C;
  --obsidian-mid: #16181C;
  --obsidian-card: #1C1E24;
  --obsidian-hover: #20232A;
  --obsidian-line: rgba(255, 255, 255, 0.12);
  --obsidian-border-strong: rgba(255, 255, 255, 0.2);

  /* Text on Dark Surfaces (WCAG AA+ Verified) */
  --on-dark: #FFFFFF;
  --on-dark-soft: #F4F5F7;
  --on-dark-body: #D4D9E2;
  --on-dark-muted: #A6AEBC;

  /* Executive Gold Accents */
  --gold: #C8A15A;
  --gold-bright: #E0BF80;
  --gold-hover: #D6B06A;
  --gold-ink: #765316; /* >= 6.5:1 contrast on white & ivory */
  --gold-tint: rgba(200, 161, 90, 0.14);
  --gold-rule: rgba(200, 161, 90, 0.44);

  /* Light Surfaces */
  --ivory: #F9F6F0;
  --ivory-deep: #F1EAE0;
  --white: #FFFFFF;

  /* Text & Hairlines on Light Surfaces */
  --ink: #111317;
  --body: #2F343E;
  --muted: #535A68;
  --line: #DDD8CE;
  --line-strong: #C8C1B4;

  /* Typography & Layout */
  --font-display: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1260px;
  --header-h: 80px;

  /* Custom Motion Curves (emil-design-eng) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 12px);
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* Browser Surface Theming */
::selection {
  background: var(--obsidian);
  color: var(--gold-bright);
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--ink);
  line-height: 1.62;
  font-size: 1.04rem;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

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

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}

button {
  font: inherit;
  cursor: pointer;
  background-color: transparent;
  border: none;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Mobile-Native Touch Ergonomics (Controls Only — Body Text Stays Selectable) */
a,
button,
[role="tab"] {
  touch-action: manipulation;
}

button,
[role="tab"],
.btn,
.qb-pill,
.lang-float a,
.lang-float span,
.menu-toggle,
.wa-float,
.fleet-item {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 3000;
  background: var(--gold);
  color: var(--obsidian);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 12px 20px;
}
.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 36px);
}

/* ==========================================================================
   HEADER — Single-Line Proof in EN & ES, >= 44px Touch Targets, Safe-Area
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: rgba(14, 15, 17, 0.98);
  border-bottom: 1px solid rgba(200, 161, 90, 0.28);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.brand-logo img {
  height: 42px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  min-width: 0;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-body);
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  transition: color 180ms var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}

.nav-link.active {
  color: var(--gold-bright);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Architectural Buttons + Tactile Press Feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 24px;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 180ms var(--ease-out);
}

.btn-outline-gold {
  border: 1.5px solid var(--gold);
  color: var(--gold-bright);
  background: rgba(14, 15, 17, 0.65);
}

.btn-solid-gold {
  background: var(--gold);
  color: var(--obsidian);
  border: 1.5px solid var(--gold);
}

.btn-obsidian {
  background: var(--obsidian);
  color: var(--gold-bright);
  border: 1.5px solid var(--obsidian);
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
}

/* Mobile Menu Toggle & Interruptible Drawer */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gold-rule);
  color: var(--on-dark);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-drawer {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top));
  left: 0;
  right: 0;
  background: var(--obsidian);
  border-bottom: 2px solid var(--gold);
  padding: 20px clamp(18px, 4vw, 24px) calc(28px + env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 200ms var(--ease-drawer),
    transform 240ms var(--ease-drawer),
    visibility 0s linear 240ms;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 200ms var(--ease-drawer),
    transform 240ms var(--ease-drawer),
    visibility 0s linear 0s;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.mobile-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  border-bottom: 1px solid var(--obsidian-line);
  transition: color 160ms var(--ease-out);
}

/* ==========================================================================
   01. HERO + CHOREOGRAPHED ENTRANCE + TELEMETRY + FLEET STRIP
   ========================================================================== */
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(var(--rise, 10px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-stage {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
}

.hero {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--obsidian);
  color: var(--on-dark);
  overflow: hidden;
}

.hero > .container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

/* Static background truck — anchors the frame immediately */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-truck.webp");
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--obsidian) 0%,
    rgba(14, 15, 17, 0.94) 38%,
    rgba(14, 15, 17, 0.46) 64%,
    rgba(14, 15, 17, 0.12) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 4.5svh, 72px) 0 clamp(32px, 4.5svh, 68px);
  max-width: 680px;
}

/* Lead: h1 (0ms / 520ms / 12px) */
.hero-title {
  --rise: 12px;
  font-size: clamp(2.35rem, 4.8vw, 4.05rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--on-dark);
  margin-bottom: 18px;
  animation: heroRise 520ms var(--ease-out) 0ms both;
}

/* Support 1: gold rule + subtitle (70ms / 460ms / 8px) */
.hero-gold-rule {
  --rise: 8px;
  width: 72px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 18px;
  animation: heroRise 460ms var(--ease-out) 70ms both;
}

.hero-subtitle {
  --rise: 8px;
  font-size: clamp(1.04rem, 1.4vw, 1.2rem);
  color: var(--on-dark-body);
  line-height: 1.52;
  max-width: 560px;
  margin-bottom: 26px;
  animation: heroRise 460ms var(--ease-out) 70ms both;
}

/* Support 2: CTAs (120ms / 440ms / 6px) */
.hero-cta-group {
  --rise: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroRise 440ms var(--ease-out) 120ms both;
}

/* Decoration: telemetry bar (180ms / 420ms / fade only) */
.hero-telemetry {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(200, 161, 90, 0.24);
  background: rgba(9, 10, 12, 0.84);
  padding: 11px 0;
  animation: heroFade 420ms var(--ease-out) 180ms both;
}

.telemetry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.telemetry-row strong {
  color: var(--gold-bright);
  margin-right: 4px;
}

/* Warm Ivory Fleet Strip */
.fleet-strip {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.fleet-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fleet-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid transparent;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 120ms var(--ease-out);
}

.fleet-item:active {
  transform: scale(0.98);
}

.fleet-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: var(--gold);
}

.fleet-icon {
  color: var(--gold);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fleet-icon svg {
  height: 38px;
  width: auto;
}

.fleet-label {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ==========================================================================
   SECTION ARCHITECTURE (Alternating Surfaces — Zero Adjacent Identical Grounds)
   ========================================================================== */
.section {
  padding: clamp(68px, 8vw, 108px) 0;
}

.section-ivory {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-obsidian {
  background: linear-gradient(160deg, var(--obsidian-mid) 0%, var(--obsidian-deep) 100%);
  color: var(--on-dark);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-obsidian .section-title {
  color: var(--on-dark);
}

.section-lead {
  font-size: 1.08rem;
  color: var(--body);
  max-width: 660px;
  line-height: 1.62;
}

.section-obsidian .section-lead {
  color: var(--on-dark-body);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 32px;
  align-items: end;
  padding-bottom: 30px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.section-obsidian .split-heading {
  border-bottom-color: var(--obsidian-line);
}

/* ==========================================================================
   02. UNIFIED SERVICES — Sticky Command Rail + Crossfading 2x3 Matrix
   ========================================================================== */
.command-deck {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.services-rail {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top) + 24px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: var(--ivory);
}

.service-tab {
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--body);
  background-color: transparent;
  transition:
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.service-tab:active {
  transform: scale(0.985);
}

.service-tab:last-child {
  border-bottom: none;
}

.tab-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tab-num {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-ink);
  flex-shrink: 0;
}

.tab-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.tab-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
  flex-shrink: 0;
}

.service-tab[aria-selected="true"] {
  background-color: var(--obsidian);
  border-left-color: var(--gold);
  color: var(--on-dark);
}

.service-tab[aria-selected="true"] .tab-num,
.service-tab[aria-selected="true"] .tab-icon {
  color: var(--gold-bright);
}

.service-tab[aria-selected="true"] .tab-name {
  color: var(--on-dark);
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-panel {
  border: 1px solid var(--line-strong);
  background: var(--white);
  overflow: hidden;
}

.service-panel.is-animating {
  animation: panelReveal 190ms var(--ease-out) both;
}

.service-panel[hidden] {
  display: none;
}

.panel-visual-strip {
  height: 175px;
  position: relative;
  overflow: hidden;
  background: var(--obsidian);
}

.panel-visual-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) contrast(1.05);
}

.panel-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 15, 17, 0.92) 0%, rgba(14, 15, 17, 0.35) 100%);
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.panel-watermark {
  position: absolute;
  right: 24px;
  bottom: -12px;
  font-family: var(--font-display);
  font-size: 5.2rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: rgba(200, 161, 90, 0.22);
  pointer-events: none;
}

.panel-visual-overlay h3 {
  font-size: clamp(1.38rem, 2.3vw, 1.88rem);
  font-weight: 800;
  color: var(--on-dark);
  max-width: 640px;
}

.panel-body {
  padding: clamp(24px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.panel-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-desc {
  font-size: 1.02rem;
  color: var(--body);
  max-width: 560px;
  margin: 0;
}

.subservice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.subservice-item {
  padding: 16px 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: background-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.subservice-item.is-highlighted {
  background: var(--ivory-deep);
  box-shadow: inset 3px 0 0 var(--gold);
}

.subservice-marker {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  background: var(--ivory);
  border: 1px solid var(--gold-rule);
  color: var(--gold-ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.subservice-item.is-highlighted .subservice-marker {
  background: var(--obsidian);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.subservice-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 3px;
}

.subservice-text span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.44;
}

.panel-adv-box {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 20px 24px;
}

.panel-adv-box h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 12px;
}

.panel-adv-box .spec-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ==========================================================================
   03. TECHNOLOGY & EXPERIENCE — Inline Icons (Obsidian Surface)
   ========================================================================== */
.kpi-architectural-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--obsidian-line);
  border-bottom: 1px solid var(--obsidian-line);
  margin-bottom: 40px;
}

.kpi-cell {
  padding: 28px 22px;
  border-right: 1px solid var(--obsidian-line);
}

.kpi-cell:last-child {
  border-right: none;
}

.kpi-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-bright);
  line-height: 1.05;
  margin-bottom: 8px;
}

.kpi-lbl {
  font-size: 0.94rem;
  color: var(--on-dark-body);
}

.telemetry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.telemetry-card {
  background: var(--obsidian-card);
  border: 1px solid var(--obsidian-line);
  border-top: 3px solid var(--gold);
  padding: 28px 26px;
}

.telemetry-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.telemetry-head svg {
  width: 22px;
  height: 22px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.telemetry-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--on-dark);
}

.telemetry-card p {
  font-size: 0.96rem;
  color: var(--on-dark-body);
}

/* ==========================================================================
   04. ABOUT US — Editorial Magazine Split + Balanced Visual Bento (Ivory)
   ========================================================================== */
.about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 4.5vw, 56px);
  align-items: start;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-cols p {
  font-size: 1rem;
  color: var(--body);
  line-height: 1.66;
}

.editorial-pullquote {
  background: var(--obsidian);
  color: var(--on-dark);
  padding: 24px 28px;
  border: 1px solid var(--gold-rule);
}

.editorial-pullquote p {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.48;
  color: var(--on-dark-soft);
}

.editorial-pullquote span {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.about-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 276px auto;
  align-content: start;
  gap: 16px;
}

.about-photo-tile {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  background: var(--obsidian);
  border: 1px solid var(--obsidian);
}

.about-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.84);
}

.photo-tile-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 15, 17, 0.94) 100%);
  color: var(--on-dark);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.photo-tile-caption strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.photo-tile-caption span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  white-space: nowrap;
}

.about-mini-tile {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--obsidian);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-mini-tile.gold-top {
  border-top-color: var(--gold);
}

.about-mini-tile h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink);
}

.about-mini-tile p {
  font-size: 0.93rem;
  color: var(--body);
  line-height: 1.54;
}

.about-brand-seal {
  grid-column: 1 / -1;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.about-brand-seal img {
  height: 44px;
  width: auto;
}

.about-seal-meta {
  text-align: right;
}

.about-seal-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.about-seal-meta span {
  display: block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-top: 2px;
}

/* ==========================================================================
   05. WHAT WE DO — Asymmetric 12-Col Bento Grid (White Ground, Ivory Cards)
   ========================================================================== */
.solutions-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-tier {
  padding: clamp(26px, 3.2vw, 38px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.bento-tier-1 {
  grid-column: span 5;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--obsidian);
}

.bento-tier-2 {
  grid-column: span 7;
  background: linear-gradient(155deg, var(--obsidian-card) 0%, var(--obsidian) 100%);
  color: var(--on-dark);
  border: 1px solid var(--obsidian);
  border-top: 4px solid var(--gold);
}

.bento-tier-3 {
  grid-column: span 12;
  background: var(--ivory);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--gold);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.bento-tier h3 {
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.bento-tier p {
  font-size: 0.98rem;
  color: var(--body);
}

.bento-tier-2 p {
  color: var(--on-dark-body);
}

.spec-list {
  list-style: none;
  display: grid;
  gap: 9px;
}

.spec-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}

.bento-tier-2 .spec-list li {
  color: var(--on-dark-soft);
}

.spec-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 9px;
}

/* ==========================================================================
   06. HOW WE WORK — Connected Architectural Timeline
   ========================================================================== */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.timeline-step {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-step:last-child {
  border-right: none;
}

.timeline-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 4px;
}

.node-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--obsidian);
  line-height: 1;
}

.node-tag {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.timeline-step h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}

.timeline-step p {
  font-size: 0.95rem;
  color: var(--body);
}

/* ==========================================================================
   07. CLIENTS & SECTORS — Swiss Hairline Matrix + Editorial Quote Slabs
   ========================================================================== */
.sector-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
  margin-bottom: 44px;
}

.sector-cell {
  padding: 28px 26px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--white);
  transition: background-color 180ms var(--ease-out);
}

.sector-cell h3 {
  font-size: 1.14rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.sector-cell p {
  font-size: 0.95rem;
  color: var(--body);
}

.corridor-ribbon {
  background: var(--obsidian);
  color: var(--on-dark);
  padding: 24px 28px;
  border: 1px solid var(--gold-rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.corridor-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.corridor-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.corridor-tag {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 11px 14px;
  border: 1px solid var(--obsidian-border-strong);
  color: var(--on-dark-soft);
  text-align: center;
}

.quotes-editorial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quote-slab {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 2.6rem;
  line-height: 0.8;
  color: var(--gold);
}

.quote-text {
  font-size: 0.98rem;
  color: var(--body);
  line-height: 1.62;
}

.quote-meta {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quote-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink);
}

.quote-meta span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-ink);
}

/* ==========================================================================
   08. DISPATCH CONSOLE (CHUNKED 4+4, NO FORMS) & MIAMI HUB DOSSIER
   ========================================================================== */
.dispatch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  gap: 26px;
  align-items: stretch;
}

.dispatch-console {
  background: var(--obsidian);
  color: var(--on-dark);
  border-top: 4px solid var(--gold);
  padding: clamp(24px, 3.8vw, 38px);
}

.console-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--obsidian-line);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.qb-step {
  margin-bottom: 22px;
}

.qb-step-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-soft);
  margin-bottom: 10px;
}

.qb-subgroups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qb-subgroup-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 6px;
}

.qb-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.qb-options.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qb-pill {
  width: 100%;
  padding: 10px 12px;
  min-height: 46px;
  border: 1px solid var(--obsidian-border-strong);
  background: var(--obsidian-mid);
  color: var(--on-dark-body);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  line-height: 1.25;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 120ms var(--ease-out);
}

.qb-pill:active {
  transform: scale(0.97);
}

.qb-pill[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--obsidian);
  font-weight: 700;
}

.qb-preview-box {
  background: var(--obsidian-deep);
  border: 1px solid var(--gold-rule);
  padding: 16px 18px;
  margin-bottom: 22px;
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out);
}

.qb-preview-box.is-updated {
  border-color: var(--gold-bright);
  background: #14161B;
}

.qb-preview-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.qb-preview-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark-soft);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.qb-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.qb-actions .btn {
  padding: 11px 14px;
  font-size: 0.8rem;
}

.copy-feedback {
  display: block;
  font-size: 0.86rem;
  color: var(--gold-bright);
  margin-top: 10px;
  min-height: 1.2em;
}

.hub-dossier {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--obsidian);
  padding: clamp(24px, 3.2vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.hub-dossier h3 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.dossier-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dossier-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}

.dossier-item .dossier-icon {
  width: 40px;
  height: 40px;
  background: var(--obsidian);
  border: 1px solid var(--gold-rule);
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dossier-icon svg {
  width: 18px;
  height: 18px;
  color: var(--gold-bright);
}

.dossier-item > div {
  min-width: 0;
}

.dossier-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.dossier-item a,
.dossier-item span {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dossier-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.hub-dossier .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* ==========================================================================
   09. FOOTER, AUTO-HIDING FLOATING WHATSAPP CTA & LEGAL MODAL
   ========================================================================== */
.site-footer {
  background: var(--obsidian-deep);
  color: var(--on-dark-body);
  border-top: 2px solid var(--gold);
  padding: 60px 0 calc(32px + env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr 1fr;
  gap: 32px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--obsidian-line);
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.93rem;
  color: var(--on-dark-body);
  text-align: left;
  overflow-wrap: anywhere;
  transition: color 160ms var(--ease-out);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--on-dark-muted);
}

/* Floating Language Selector (Bottom-Left, Safe-Area Aware) */
.lang-float {
  position: fixed;
  left: calc(22px + env(safe-area-inset-left));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 950;
  display: inline-flex;
  align-items: center;
  background: var(--obsidian);
  border: 1.5px solid var(--gold);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-float a,
.lang-float span {
  min-width: 46px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--on-dark-body);
  white-space: nowrap;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.lang-float a:active {
  transform: scale(0.95);
}

.lang-float .lang-active {
  background: var(--gold);
  color: var(--obsidian);
}

/* Direct WhatsApp Float — Safe-Area Aware & Auto-Hidden Over #contact */
.wa-float {
  position: fixed;
  right: calc(22px + env(safe-area-inset-right));
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 950;
  min-height: 48px;
  min-width: 48px;
  background: var(--obsidian);
  color: var(--gold-bright);
  border: 1.5px solid var(--gold);
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  transition:
    background-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    opacity 200ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.wa-float:active {
  transform: scale(0.96);
}

.wa-float.is-hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.wa-float svg {
  width: 19px;
  height: 19px;
}

/* Native Legal Modal — Starts From scale(0.96) via @starting-style */
dialog.legal-modal {
  margin: auto;
  width: min(680px, calc(100vw - 32px));
  max-height: 84svh;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--gold);
  padding: 0;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.6);
  opacity: 1;
  transform: scale(1);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

@starting-style {
  dialog.legal-modal[open] {
    opacity: 0;
    transform: scale(0.96);
  }
}

dialog.legal-modal::backdrop {
  background: rgba(9, 10, 12, 0.78);
}

.modal-header {
  background: var(--obsidian);
  color: var(--on-dark);
  padding: 18px 24px;
  border-bottom: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-header h3 {
  font-size: 1.08rem;
}

.modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--obsidian-border-strong);
  color: var(--on-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(84svh - 82px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.96rem;
  color: var(--body);
}

.modal-body h4 {
  color: var(--ink);
  font-size: 1.02rem;
  margin-top: 6px;
}

/* ==========================================================================
   DESKTOP-ONLY HOVER STATES (mobile-native: zero sticky hover on touch)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover {
    color: var(--gold-bright);
  }
  .nav-link:hover::after {
    transform: scaleX(1);
  }
  .lang-float a:hover {
    color: var(--on-dark);
    background: rgba(255, 255, 255, 0.1);
  }
  .btn:hover svg {
    transform: translateX(3px);
  }
  .btn-outline-gold:hover {
    background: var(--gold);
    color: var(--obsidian);
  }
  .btn-solid-gold:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
  }
  .btn-obsidian:hover {
    background: var(--obsidian-hover);
    border-color: var(--gold);
  }
  .mobile-nav-list a:hover {
    color: var(--gold-bright);
  }
  .fleet-item:hover {
    background: var(--ivory-deep);
    border-bottom-color: var(--gold);
  }
  .service-tab:hover {
    background-color: var(--ivory-deep);
  }
  .service-tab[aria-selected="true"]:hover {
    background-color: var(--obsidian);
  }
  .subservice-item:hover {
    background: var(--ivory);
  }
  .sector-cell:hover {
    background: var(--ivory);
  }
  .qb-pill:hover {
    border-color: var(--gold);
    color: var(--on-dark);
  }
  .qb-pill[aria-pressed="true"]:hover {
    color: var(--obsidian);
  }
  .dossier-item a:hover {
    color: var(--gold-ink);
    text-decoration: underline;
  }
  .footer-links a:hover,
  .footer-links button:hover {
    color: var(--gold-bright);
  }
  .wa-float:hover {
    background: var(--gold);
    color: var(--obsidian);
  }
  .modal-close:hover {
    border-color: var(--gold);
    color: var(--gold-bright);
  }
}

/* ==========================================================================
   REDUCED MOTION — Collapse Delays & Movement, Preserve State Feedback
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-title,
  .hero-gold-rule,
  .hero-subtitle,
  .hero-cta-group,
  .hero-telemetry,
  .service-panel.is-animating {
    animation: none;
  }
  .btn:active,
  .qb-pill:active,
  .service-tab:active,
  .wa-float:active,
  .menu-toggle:active,
  .modal-close:active,
  .fleet-item:active {
    transform: none;
  }
  .nav-link::after,
  .mobile-drawer,
  dialog.legal-modal,
  .wa-float {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (1120px -> 920px -> 640px -> 360px)
   ========================================================================== */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .command-deck {
    grid-template-columns: 1fr;
  }
  .services-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-tab {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 920px) {
  .hero-stage {
    min-height: auto;
  }
  .hero > .container {
    display: block;
  }
  .split-heading,
  .about-editorial,
  .dispatch-grid,
  .bento-tier-3 {
    grid-template-columns: 1fr;
  }
  .panel-intro-row {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-adv-box .spec-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bento-tier-1,
  .bento-tier-2 {
    grid-column: span 12;
  }
  .kpi-architectural-strip,
  .timeline-track,
  .sector-matrix,
  .corridor-tags,
  .qb-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qb-options.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .kpi-cell:nth-child(2),
  .timeline-step:nth-child(2) {
    border-right: none;
  }
  .kpi-cell:nth-child(1),
  .kpi-cell:nth-child(2) {
    border-bottom: 1px solid var(--obsidian-line);
  }
  .timeline-step:nth-child(1),
  .timeline-step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .telemetry-cards,
  .quotes-editorial {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fleet-strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fleet-item:nth-child(2)::after {
    display: none;
  }
  .fleet-item:nth-child(1),
  .fleet-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .hero-backdrop {
    background-position: 75% center;
  }
  .hero-backdrop::after {
    background: linear-gradient(
      180deg,
      rgba(14, 15, 17, 0.88) 0%,
      rgba(14, 15, 17, 0.84) 65%,
      rgba(14, 15, 17, 0.95) 100%
    );
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }
  .brand-logo img {
    height: 35px;
  }
  .header-cta {
    display: none;
  }
  .about-cols,
  .about-bento,
  .services-rail,
  .subservice-grid,
  .corridor-tags,
  .qb-actions,
  .sector-matrix,
  .kpi-architectural-strip,
  .timeline-track,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  /* Mobile-Native Dispatch Console: compact 2-column grid instead of 15-button vertical wall */
  .qb-options,
  .qb-options.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qb-options.cols-3 .qb-pill:last-child {
    grid-column: 1 / -1;
  }
  .qb-pill {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
  .about-bento {
    grid-template-rows: 210px auto auto auto;
  }
  .about-seal-meta {
    text-align: left;
  }
  .kpi-cell,
  .timeline-step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .kpi-cell {
    border-bottom-color: var(--obsidian-line);
  }
  .kpi-cell:last-child,
  .timeline-step:last-child {
    border-bottom: none;
  }
  .service-tab {
    border-right: none;
  }
  .hero-cta-group .btn,
  .qb-actions .btn {
    width: 100%;
  }
  .telemetry-row {
    flex-direction: column;
    gap: 6px;
  }
  .fleet-item {
    padding: 20px 10px;
  }
  .fleet-label {
    font-size: 0.84rem;
    letter-spacing: 0.08em;
  }
  .lang-float {
    left: calc(14px + env(safe-area-inset-left));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .lang-float a,
  .lang-float span {
    min-width: 44px;
    min-height: 44px;
  }
  .wa-float {
    padding: 11px 14px;
    font-size: 0.74rem;
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .site-footer {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }
}
