/* RB Shipping SA — design tokens from Stitch "Maritime Precision & Trade Velocity" */
:root {
  --ocean-deep: #050c16;
  --bg: #0b192c;
  --surface: #0e1c2f;
  --surface-2: #132033;
  --surface-3: #1d2a3e;
  --navy: #0f2a4a;
  --slate: #1e293b;
  --slate-border: #334155;
  --line: rgba(255, 255, 255, 0.08);
  --text: #d6e3fe;
  --text-muted: #9aa6ba;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-hover: #d97706;
  --amber-light: #fcd34d;
  --aqua: #8bddbd;
  --green: #10b981;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1280px;
  --gutter: 1.5rem;
  --shadow: 0 20px 40px -15px rgba(5, 12, 22, 0.6);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);          /* strong ease-out: entering / responding */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement */
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--white); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar & header ---------- */
.topbar {
  background: var(--ocean-deep);
  border-bottom: 1px solid var(--line);
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .04em;
  color: var(--text-muted);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar-left { display: flex; align-items: center; gap: .6rem; white-space: nowrap; min-width: 0; }
.topbar a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; transition: color .2s; }
.topbar a:hover { color: var(--amber); }
.topbar-links { display: flex; gap: 1.5rem; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 25, 44, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header.scrolled { background: rgba(5, 12, 22, 0.92); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .9rem; }
/* Logo sits on a deep navy disc with a faint amber halo so the line art reads at small sizes */
.brand-mark-wrap {
  position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #173151 0%, var(--ocean-deep) 75%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .18), 0 6px 18px -6px rgba(245, 158, 11, .35);
  transition: box-shadow 200ms ease;
}
.brand-logo { width: 100%; height: 100%; display: block; transition: transform 300ms var(--ease); }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-text strong { font: 700 19px/1.05 var(--font-head); color: var(--white); letter-spacing: -.015em; white-space: nowrap; }

/* Tagline + typewriter. The hidden sizer reserves the full width so nothing shifts while typing. */
.tagline { display: grid; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.tagline > * { grid-area: 1 / 1; }
.tw-sizer { visibility: hidden; }
.tw .tw-sep { color: var(--amber); }
.tw.typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  background: var(--amber); vertical-align: -0.15em; border-radius: 1px;
  animation: caret 1s steps(1, end) infinite;
}
/* Solid caret while characters are being typed or erased; blink only while resting */
.tw.typing.busy::after { animation: none; }
@keyframes caret { 50% { opacity: 0; } }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  white-space: nowrap; font-weight: 500; font-size: 15px; color: var(--text); position: relative; padding: .5rem 0; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current] { color: var(--white); }
.nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--slate-border); border-radius: var(--radius-sm);
  width: 44px; height: 44px; place-items: center; cursor: pointer; color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 15px/1 var(--font-body); letter-spacing: .01em;
  padding: 1rem 1.5rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease), background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: var(--bg); }
.btn-primary:hover { background: var(--amber-hover); box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .55); }
.btn-secondary { background: rgba(15, 42, 74, .6); border-color: var(--slate-border); color: var(--white); }
.btn-secondary:hover { border-color: var(--aqua); color: var(--aqua); }
.btn-sm { padding: .75rem 1.1rem; font-size: 14px; }
.btn .icon { width: 1.1em; height: 1.1em; }
.arrow { transition: transform 200ms var(--ease); }

/* ---------- Common ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 1rem 0 1rem; }
.section-head p { font-size: 18px; color: var(--text-muted); }
.accent { color: var(--amber); }

.card {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 200ms ease, background-color 200ms ease, transform 250ms var(--ease);
}

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(5, 12, 22, .6); border: 1px solid var(--line);
  font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.badge .dot.amber { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.badge .dot.aqua { background: var(--aqua); box-shadow: 0 0 8px var(--aqua); }

.grid { display: grid; gap: var(--gutter); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero (video) ---------- */
.hero {
  position: relative; min-height: calc(100vh - 114px); min-height: clamp(660px, calc(100svh - 114px), 880px);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 70% 30%, #173151 0%, var(--ocean-deep) 70%);
  padding-bottom: 64px; /* room for the marquee */
}
/* Media layer is slightly oversized so pointer parallax never shows an edge */
.hero-media { position: absolute; inset: -24px; z-index: -3; will-change: transform; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); /* visible from the start so the poster frame shows while the video loads */
  transition: opacity 1.2s ease, transform 9s cubic-bezier(0.16, 1, 0.3, 1); /* slow Ken Burns settle, once */
}
.hero-video.ready { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 55%, rgba(5, 12, 22, .75) 100%),
    linear-gradient(90deg, rgba(5, 12, 22, .94) 0%, rgba(5, 12, 22, .72) 42%, rgba(5, 12, 22, .25) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11, 25, 44, 0) 32%);
}
/* Faint chart grid, faded toward the edges */
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(214, 227, 254, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 227, 254, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 30% 45%, #000 20%, transparent 75%);
}
/* Static film grain */
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-layout { display: block; }
.hero-content { max-width: 720px; padding: 4rem 0 4.5rem; will-change: transform; }

.hero-chip {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .9rem .5rem .75rem; border-radius: 999px;
  background: rgba(5, 12, 22, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text);
}
.chip-sep { width: 1px; height: 12px; background: var(--slate-border); }
.chip-mono { color: var(--amber); }

.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.03; margin: 1.6rem 0 1.5rem; }
.hero h1 .line { display: block; }
/* Masked word reveal: each word slides up from behind its own line clip */
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .w > span {
  display: inline-block; transform: translateY(108%);
  animation: wordUp 900ms var(--ease) forwards; animation-delay: calc(220ms + var(--w) * 70ms);
}
@keyframes wordUp { to { transform: translateY(0); } }
.accent-line { color: var(--amber); }
.swoosh-word { position: relative; display: inline-block; }
.accent-line .w > span {
  background: linear-gradient(100deg, var(--amber) 0%, var(--amber-light) 50%, var(--amber) 100%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordUp 900ms var(--ease) forwards, sheen 1600ms var(--ease-in-out) 1400ms forwards;
  animation-delay: calc(220ms + var(--w) * 70ms), 1400ms;
}
@keyframes sheen { to { background-position: 0 0; } }
/* Hand-drawn wave underline, echoing the logo */
.swoosh { position: absolute; left: -2%; bottom: -.16em; width: 96%; height: .26em; overflow: visible; }
.swoosh path {
  fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1100ms var(--ease-in-out) 900ms forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-lead { font-size: clamp(17px, 1.45vw, 19px); line-height: 1.65; color: var(--text); max-width: 590px; }
.hero-lead strong { color: var(--white); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.25rem 0 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Primary CTA: a light sheen crosses on hover */
.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 600ms var(--ease);
}

/* Glass card: transport modes with travelling route dots */
.route-card {
  position: relative; padding: 1.5rem; width: 100%; max-width: 560px; justify-self: center; border-radius: var(--radius-lg);
  background: rgba(15, 42, 74, .55); border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 30px 60px -25px rgba(5, 12, 22, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.route-card::before {
  content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.rc-head { display: flex; justify-content: space-between; align-items: center; font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.1rem; }
.rc-live { display: inline-flex; align-items: center; gap: .5rem; color: var(--aqua); }
.rc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rc-list li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: .85rem;
  padding: .8rem; border-radius: var(--radius); background: rgba(5, 12, 22, .45); border: 1px solid var(--line);
}
.rc-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--amber); background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .22); }
.rc-icon .icon { width: 20px; height: 20px; }
.rc-text { display: flex; flex-direction: column; min-width: 0; }
.rc-text strong { font: 600 15px/1.2 var(--font-head); color: var(--white); }
.rc-text small { font-size: 12.5px; color: var(--text-muted); }
.rc-route { display: flex; align-items: center; gap: .4rem; font: 600 10px/1 var(--font-mono); letter-spacing: .06em; color: var(--text-muted); }
.rc-track { position: relative; width: 84px; height: 20px; }
.rc-track svg { width: 100%; height: 100%; overflow: visible; }
.rc-track path { fill: none; stroke: rgba(214, 227, 254, .28); stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.rc-dot {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px 2px rgba(245, 158, 11, .55);
  /* Path in the track's own 84x20 px box (the svg path, rescaled) */
  offset-path: path("M1.4 14 Q42 -6 82.6 14"); offset-rotate: 0deg;
  animation: travel var(--dur) var(--ease-in-out) var(--delay) infinite;
}
@keyframes travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.rc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .6rem; }
.rc-foot > div { padding: .9rem 1rem; border-radius: var(--radius); background: rgba(5, 12, 22, .45); border: 1px solid var(--line); }
.rc-foot strong { display: block; font: 600 24px/1 var(--font-mono); color: var(--white); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rc-foot span { display: block; margin-top: .45rem; font: 600 10px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

/* Services marquee along the bottom edge */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--line); background: rgba(5, 12, 22, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hm-track { display: flex; align-items: center; gap: 2rem; width: max-content; padding-left: 2rem; animation: marquee 60s linear infinite; will-change: transform; }
.hm-item { display: inline-flex; align-items: center; gap: .6rem; font: 500 14px/1 var(--font-head); color: var(--text); white-space: nowrap; letter-spacing: .01em; }
.hm-item .icon { width: 18px; height: 18px; color: var(--amber); }
.hm-sep { color: var(--slate-border); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

.video-toggle {
  position: absolute; right: var(--gutter); bottom: calc(64px + 1.25rem); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 12, 22, .6); border: 1px solid var(--line); color: var(--white); cursor: pointer;
  backdrop-filter: blur(8px); transition: border-color 200ms ease, transform 160ms var(--ease);
}
.video-toggle:active { transform: scale(0.94); }

/* ---------- Stats ---------- */
.stats { margin-top: 3rem; position: relative; z-index: 3; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(15, 42, 74, .85); border: 1px solid rgba(245, 158, 11, .25);
  border-radius: var(--radius-lg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 2rem 1.75rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-value { font: 600 clamp(30px, 3vw, 40px)/1 var(--font-mono); color: var(--white); letter-spacing: -.02em; }
.stat-value .unit { color: var(--amber); }
.stat-label { font: 600 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-top: .75rem; }
.stat-desc { font-size: 14px; color: var(--text-muted); margin-top: .35rem; }

/* ---------- Services ---------- */
.service-card { padding: 2rem; display: flex; flex-direction: column; gap: 1rem; position: relative; }
.service-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease);
}
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); display: grid; place-items: center;
  background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .25); color: var(--amber);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 21px; }
.service-card p { color: var(--text-muted); font-size: 15px; flex: 1; }
.service-num { position: absolute; top: 1.75rem; right: 1.75rem; font: 600 11px/1 var(--font-mono); color: var(--slate-border); letter-spacing: .1em; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: 14px; color: var(--amber); }
.service-card .link-arrow { margin-top: .25rem; align-self: flex-start; padding: .25rem 0; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: 14px; color: var(--text); }
.mini-list li { display: flex; gap: .5rem; align-items: flex-start; }
.mini-list .icon { width: 16px; height: 16px; color: var(--aqua); margin-top: 3px; }
.process-wrap { margin-top: 6rem; padding-top: 5rem; border-top: 1px solid var(--line); }

/* One-page anchors land below the sticky header */
.anchor { scroll-margin-top: calc(var(--header-h) - 1px); }
.h2 { font-size: clamp(28px, 3.2vw, 40px); margin: 1rem 0; }
.lead-muted { font-size: 18px; color: var(--text-muted); }
.contact-value { display: block; font: 600 19px/1.4 var(--font-head); font-style: normal; color: var(--white); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; counter-reset: step; }
.process::before {
  content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--slate-border) 60%);
}
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1.5rem; border-radius: 50%; position: relative; z-index: 1;
  display: grid; place-items: center; background: var(--bg); border: 1px solid var(--amber); color: var(--amber);
  font: 600 16px/1 var(--font-mono);
}
.section-alt .step-num { background: var(--surface); }
.step h3 { font-size: 18px; margin-bottom: .5rem; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ---------- Split / values ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.split-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--navy);
}
.split-media video { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,12,22,.75), transparent 55%); }
.media-tag {
  position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 1;
  padding: 1rem 1.25rem; border-radius: var(--radius); background: rgba(15, 42, 74, .85);
  border: 1px solid rgba(245, 158, 11, .35); backdrop-filter: blur(16px);
}
.media-tag strong { display: block; font: 600 22px/1.1 var(--font-head); color: var(--white); }
.media-tag span { font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--amber); text-transform: uppercase; }

.value-list { display: grid; gap: 1rem; margin-top: 2rem; }
.value { display: flex; gap: 1.25rem; padding: 1.5rem; }
.value h3 { font-size: 19px; margin-bottom: .35rem; }
.value p { color: var(--text-muted); font-size: 15px; }

.check-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list .icon { color: var(--aqua); margin-top: 3px; }

.feature { padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--text-muted); font-size: 15px; }

/* ---------- Quote / CTA ---------- */
.quote-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, #132e52 60%, #1b3a60 100%);
  border: 1px solid rgba(245, 158, 11, .3); padding: 4rem;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
}
.quote-band::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .22), transparent 70%); pointer-events: none;
}
.quote-band h2 { font-size: clamp(28px, 3vw, 40px); margin: 1rem 0; }
.quote-band p { color: var(--text); font-size: 18px; }
.quote-band .actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Forms ---------- */
.form-card { padding: 2rem 2rem 1.75rem; background: rgba(15, 42, 74, .7); border: 1px solid rgba(245, 158, 11, .25); border-radius: var(--radius-lg); backdrop-filter: blur(24px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 24px; margin-bottom: .5rem; }
.form-card > p { color: var(--text-muted); margin-bottom: 1.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm);
  background: rgba(5, 12, 22, .55); border: 1px solid var(--slate-border); color: var(--white);
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239aa6ba' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: var(--surface-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 16px rgba(245, 158, 11, .25); }
.field input::placeholder, .field textarea::placeholder { color: #6b7890; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: 14px; color: var(--text-muted); grid-column: 1 / -1; }
.consent input { width: 18px; height: 18px; accent-color: var(--amber); margin-top: 2px; flex: none; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: 1rem; }
.form-status { margin-top: .75rem; font-size: 14px; color: var(--aqua); }
.form-status:empty { display: none; }

/* ---------- Contact ---------- */
/* Compact contact: call + email side by side, then one card that pairs a small map with the address */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.contact-card { display: flex; gap: .9rem; padding: 1.1rem; align-items: center; min-width: 0; }
.contact-card .service-icon, .visit-body .service-icon { width: 42px; height: 42px; flex: none; }
.contact-card .service-icon .icon, .visit-body .service-icon .icon { width: 20px; height: 20px; }
.contact-card > div { min-width: 0; }
.contact-card h3, .visit-card h3 { font-size: 11px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); font-weight: 600; margin-bottom: .25rem; }
.contact-card .contact-value { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Both columns end level: the map tile takes whatever height the form leaves over */
.contact-split { align-items: stretch; }
.contact-left { display: flex; flex-direction: column; }
.visit-card { margin-top: .9rem; overflow: hidden; flex: 1; display: flex; flex-direction: column; }
.visit-card .map-wrap { flex: 1; min-height: 200px; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.visit-body { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; }
.visit-body > div { flex: 1; min-width: 0; }
.visit-body .contact-value { font-size: 16px; }
.visit-body .link-arrow { flex: none; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.9); }

/* ---------- Service detail rows ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.chip {
  padding: .6rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--slate-border);
  background: rgba(5, 12, 22, .5); font-size: 14px; font-weight: 500; transition: border-color .2s, color .2s;
}
.chip:hover { border-color: var(--amber); color: var(--amber); }
.svc-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; padding: 4.5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.svc-row:last-child { border-bottom: 0; }
.svc-row:nth-child(even) .svc-visual { order: 2; }
.svc-visual {
  aspect-ratio: 5 / 4; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #1b3a60, var(--navy) 55%, var(--ocean-deep));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.svc-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}
.svc-visual .big-icon { width: 120px; height: 120px; color: var(--amber); stroke-width: 1.1; position: relative; filter: drop-shadow(0 0 30px rgba(245, 158, 11, .35)); }
.svc-visual .code { position: absolute; left: 1.25rem; top: 1.25rem; font: 600 11px/1 var(--font-mono); letter-spacing: .12em; color: var(--aqua); }
.svc-body h2 { font-size: clamp(28px, 3vw, 38px); margin: 1rem 0 1.25rem; }
.svc-body > p { font-size: 18px; color: var(--text); }
.svc-body .check-list { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg); overflow: hidden; }

/* Layered waves drifting at different speeds, echoing the logo. Transform-only, linear, seamless loop. */
.footer-waves { position: relative; height: clamp(70px, 9vw, 130px); margin-bottom: -1px; }
.fw { position: absolute; left: 0; bottom: 0; width: 200%; max-width: none; height: 100%; will-change: transform; animation: drift linear infinite; }
.fw-back  { animation-duration: 46s; }
.fw-back path { fill: var(--navy); opacity: .55; }
.fw-mid   { animation-duration: 32s; animation-direction: reverse; }
.fw-mid path { fill: #081527; }
.fw-front { animation-duration: 24s; }
.fw-front path { fill: var(--ocean-deep); }
.fw-front .fw-line { fill: none; stroke: var(--amber); stroke-opacity: .5; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@keyframes drift { to { transform: translateX(-50%); } }

.footer-body {
  position: relative; background: var(--ocean-deep); padding: 3.5rem 0 0;
  background-image:
    radial-gradient(ellipse 45% 35% at 82% 42%, rgba(245, 158, 11, .07), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(139, 221, 189, .05), transparent 70%);
}

.footer-top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding-bottom: 3.5rem; margin-bottom: 3.5rem; border-bottom: 1px solid var(--line);
}
.footer-statement { font: 600 clamp(24px, 3.1vw, 42px)/1.18 var(--font-head); letter-spacing: -.025em; color: var(--white); max-width: 880px; }
.to-top {
  flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--slate-border); color: var(--white); background: rgba(15, 42, 74, .5);
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.to-top .icon { width: 22px; height: 22px; transition: transform 250ms var(--ease); }
.to-top:active { transform: scale(0.95); }

.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.35fr 1.2fr; gap: 3rem; }
.footer h4 {
  display: flex; align-items: center; gap: .6rem;
  font: 600 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 1.4rem;
}
.footer h4::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-brand p { color: var(--text-muted); font-size: 15px; margin-top: 1.25rem; max-width: 320px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.footer-clock {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem;
  font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase;
}
.footer-clock strong { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(3); opacity: 0; } }

.footer-links { display: grid; gap: .8rem; font-size: 15px; }
.footer-links.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.footer-links a, .footer-contact a { color: var(--text-muted); position: relative; transition: color 150ms ease; }
.footer-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 200ms var(--ease);
}

.footer-contact { display: grid; gap: 1.1rem; font-size: 15px; }
.footer-contact li { display: flex; gap: .9rem; align-items: flex-start; }
.fc-icon {
  flex: none; width: 36px; height: 36px; border-radius: var(--radius-sm); display: grid; place-items: center;
  color: var(--amber); background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .2);
}
.fc-icon .icon { width: 17px; height: 17px; }
.footer-contact li > a, .footer-contact address { padding-top: 7px; }
.footer-contact a { color: var(--white); font-weight: 500; }
.footer address { font-style: normal; color: var(--text); line-height: 1.6; }
.fc-directions { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; font-size: 13px; color: var(--amber) !important; font-weight: 600; }

.footer-bottom {
  margin-top: 4rem; padding: 1.75rem 0; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font: 500 12px/1.4 var(--font-mono); color: #6b7890; letter-spacing: .04em;
}

/* Giant wordmark bleeding off the bottom edge; an amber fill sweeps across once when it comes into view */
.footer-giant {
  position: relative; height: .8em; overflow: hidden; user-select: none; pointer-events: none; margin-top: .5rem;
  font: 700 clamp(36px, 11.6vw, 204px)/1 var(--font-head); letter-spacing: -.045em;
  text-align: center; white-space: nowrap;
}
.footer-giant span { position: absolute; left: 0; right: 0; top: -.04em; }
.fg-outline { color: transparent; -webkit-text-stroke: 1px rgba(214, 227, 254, .16); }
.fg-fill {
  color: transparent;
  background: linear-gradient(180deg, rgba(245, 158, 11, .9) 0%, rgba(245, 158, 11, .35) 45%, rgba(245, 158, 11, 0) 80%);
  -webkit-background-clip: text; background-clip: text;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1600ms var(--ease-in-out) 200ms;
}
.footer-giant.in .fg-fill { clip-path: inset(0 0 0 0); }

/* ---------- Reveal ---------- */
/* Scroll reveal: marketing content seen once, so slightly longer than UI motion. Staggered 60ms via --i. */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal:not(.settled) { transition: opacity 500ms var(--ease), transform 500ms var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }
/* .settled (added by JS once revealed) hands transitions back to the element's own, faster rules */

/* Hero entrance on load, staggered 80ms */
.hero-in { opacity: 0; transform: translateY(12px); animation: heroIn 600ms var(--ease) forwards; animation-delay: calc(120ms + var(--d, 0) * 80ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Hover only where hover is real, so taps on phones don't leave sticky states */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); }
  .btn:hover .arrow, .link-arrow:hover .arrow, .card:hover .link-arrow .arrow { transform: translateX(3px); }
  .card:hover { border-color: rgba(245, 158, 11, .35); transform: translateY(-3px); background-color: rgba(30, 41, 59, 0.75); }
  .service-card:hover::before { transform: scaleX(1); }
  .brand:hover .brand-logo { transform: rotate(-8deg); }
  .footer-links a:hover, .footer-contact a:hover { color: var(--white); }
  .footer-links a:hover::after { transform: scaleX(1); }
  .to-top:hover { background-color: var(--amber); border-color: var(--amber); color: var(--bg); }
  .to-top:hover .icon { transform: translateY(-3px); }
  .btn-shine:hover::after { transform: translateX(120%); }
  .video-toggle:hover { border-color: var(--amber); }
  .hero-marquee:hover .hm-track { animation-play-state: paused; }
  .brand:hover .brand-mark-wrap { box-shadow: 0 0 0 1px rgba(245, 158, 11, .4), 0 8px 22px -6px rgba(245, 158, 11, .5); }
}
a.card:active { transform: scale(0.99); }

/* Reduced motion: keep gentle fades, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-in { transform: none !important; }
  .reveal { transition: opacity 300ms ease; transition-delay: 0ms; }
  .hero-in { animation: fadeOnly 300ms ease forwards; }
  .hero h1 .w > span, .accent-line .w > span { animation: fadeOnly 400ms ease forwards; transform: none; opacity: 0; }
  .accent-line .w > span { background-position: 0 0; }
  .swoosh path { animation: none; stroke-dashoffset: 0; }
  .hero-video { transform: none; }
  .rc-dot { animation: none; offset-distance: 50%; }
  .hm-track { animation: none; }
  .btn-shine::after { display: none; }
  .card, .btn, .brand-logo, .arrow { transform: none !important; }
  .fw, .pulse::after { animation: none; }
  .fg-fill { transition: opacity 600ms ease; clip-path: none; opacity: 0; }
  .footer-giant.in .fg-fill { opacity: 1; }
}
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Spotlight cards: a soft amber glow follows the pointer (set per card by JS) ---------- */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 158, 11, .11), transparent 60%);
  opacity: 0; transition: opacity 250ms ease;
}

/* ---------- Why ---------- */
.why-section { overflow: hidden; }
.why-section > .container { position: relative; }
.contours {
  position: absolute; left: 0; top: 6%; width: 100%; height: 62%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.contours path { fill: none; stroke: rgba(139, 221, 189, .08); stroke-width: 1; vector-effect: non-scaling-stroke; }

.rc-stage { position: relative; width: 100%; max-width: 600px; justify-self: center; padding: 3rem 0 2.25rem 2.5rem; }
.rc-stage .route-card { max-width: none; }
.rc-stage .rc-head { padding-left: 88px; }
.seal {
  position: absolute; left: -6px; top: -26px; z-index: 2; width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #173151, var(--ocean-deep) 75%);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .25), 0 20px 40px -15px rgba(5, 12, 22, .9);
}
.seal img { width: 56px; height: 56px; }
.seal-text { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 30s linear infinite; }
.seal-text text { font: 600 9px var(--font-mono); fill: var(--amber); letter-spacing: .1em; }
@keyframes spin { to { transform: rotate(360deg); } }
.float-chip {
  position: absolute; right: -8px; bottom: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem; padding: .65rem 1rem; border-radius: 999px;
  background: rgba(5, 12, 22, .88); border: 1px solid rgba(16, 185, 129, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(5, 12, 22, .9);
  animation: bob 4.5s var(--ease-in-out) infinite alternate;
}
.float-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
@keyframes bob { to { transform: translateY(-8px); } }

.value { position: relative; }
.value-num {
  position: absolute; right: 1.1rem; top: .75rem; font: 700 46px/1 var(--font-head); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 227, 254, .12); transition: -webkit-text-stroke-color 250ms ease;
}

/* Bento grid for "What sets us apart" */
.bento {
  display: grid; gap: var(--gutter); grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "fleet a globe" "fleet b c" "wide wide wide";
}
.bento > .tile-fleet { grid-area: fleet; }
.bento > :nth-child(2) { grid-area: a; }
.bento > .tile-globe { grid-area: globe; }
.bento > :nth-child(4) { grid-area: b; }
.bento > :nth-child(5) { grid-area: c; }
.bento > .tile-wide { grid-area: wide; }
.bento-tile { padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.bento-tile h3 { font-size: 19px; }
.bento-tile p { color: var(--text-muted); font-size: 15px; }
.tile-fleet { background: linear-gradient(160deg, rgba(15, 42, 74, .92), rgba(30, 41, 59, .5)); }
.tile-fleet h3 { font-size: clamp(22px, 2.2vw, 28px); }
.tile-fleet p { max-width: 36ch; }
.road {
  margin-top: auto; position: relative; height: 84px; border-radius: var(--radius);
  background: rgba(5, 12, 22, .65); border: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.road-lane {
  position: absolute; left: 0; right: -36px; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(245, 158, 11, .7) 0 18px, transparent 18px 36px);
  animation: lane 900ms linear infinite;
}
@keyframes lane { to { transform: translateX(-36px); } }
.road-truck { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -70%); color: var(--white); filter: drop-shadow(0 4px 10px rgba(245, 158, 11, .35)); }
.road-truck .icon { width: 34px; height: 34px; stroke-width: 1.5; }

.tile-globe .orbit { position: absolute; right: -36px; top: -36px; width: 180px; height: 180px; pointer-events: none; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(139, 221, 189, .25); }
.orbit-ring.r2 { inset: 34px; border: 1px solid rgba(245, 158, 11, .16); }
.orbit-dot { position: absolute; inset: 0; animation: spin 10s linear infinite; }
.orbit-dot::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--aqua); box-shadow: 0 0 12px var(--aqua);
}

.tile-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 2rem; }
.tile-wide-text { display: flex; gap: 1.1rem; align-items: flex-start; }
.tile-wide-text h3 { margin-bottom: .35rem; }
.commit-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.commit-chips li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px;
  background: rgba(5, 12, 22, .5); border: 1px solid var(--line); font-size: 14px; color: var(--text);
}
.commit-chips .icon { width: 15px; height: 15px; color: var(--aqua); }

/* ---------- Services ---------- */
.services-section { overflow: hidden; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.25rem; }
.svc-total { display: flex; align-items: center; gap: 1rem; flex: none; }
.svc-total strong {
  font: 700 clamp(64px, 8vw, 116px)/.8 var(--font-head); letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(245, 158, 11, .6);
}
.svc-total span { font: 600 11px/1.6 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

.svc-toolbar { margin-bottom: 2rem; }
.filter {
  position: relative; display: inline-flex; gap: .25rem; padding: .3rem; border-radius: 999px; max-width: 100%;
  background: rgba(5, 12, 22, .55); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.filter::-webkit-scrollbar { display: none; }
.filter button {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .5rem; flex: none;
  padding: .7rem 1.1rem; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 14px/1 var(--font-body); color: var(--text-muted); white-space: nowrap;
  transition: color 200ms ease, transform 160ms var(--ease);
}
.filter button small { font: 600 10px/1 var(--font-mono); padding: .22rem .42rem; border-radius: 999px; background: rgba(214, 227, 254, .08); transition: background-color 200ms ease; }
.filter button[aria-pressed="true"] { color: var(--bg); }
.filter button[aria-pressed="true"] small { background: rgba(11, 25, 44, .16); }
.filter button:active { transform: scale(0.97); }
.filter-pill {
  position: absolute; z-index: 0; top: .3rem; bottom: .3rem; left: 0; width: 0; border-radius: 999px;
  background: var(--amber); box-shadow: 0 6px 18px -6px rgba(245, 158, 11, .6);
  transition: transform 300ms var(--ease), width 300ms var(--ease);
}

.services-section .service-card {
  transition: border-color 200ms ease, background-color 200ms ease, transform 250ms var(--ease), opacity 300ms ease, filter 300ms ease;
}
.services-section .service-card p { flex: none; }
.services-section .service-num { display: none; }
.service-card.is-dim { opacity: .28; filter: saturate(.2); transform: scale(0.98); }
.svc-mark {
  position: absolute; right: -.06em; top: -.2em; pointer-events: none;
  font: 700 96px/1 var(--font-head); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(214, 227, 254, .06);
  transition: -webkit-text-stroke-color 250ms ease, transform 400ms var(--ease);
}
.svc-cta {
  position: relative; z-index: 1; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--white);
}
.svc-cta-icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--slate-border); color: var(--amber);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.svc-cta-icon .icon { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform 250ms var(--ease); }
.svc-cta:active .svc-cta-icon { transform: scale(0.94); }

/* How it works: line fills as you scroll, steps light up as it reaches them */
.process::before { display: none; }
.process-line { position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; border-radius: 2px; background: var(--slate-border); overflow: hidden; }
.process-fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  transition: transform 500ms var(--ease);
}
.step-num { border-color: var(--slate-border); color: var(--text-muted); transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease; }
.step h3 { transition: color 300ms ease; }
.step.lit .step-num { background: var(--amber); color: var(--bg); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(245, 158, 11, .12), 0 0 24px rgba(245, 158, 11, .4); }

@media (hover: hover) and (pointer: fine) {
  .spot:hover::after { opacity: 1; }
  .value:hover .value-num { -webkit-text-stroke-color: rgba(245, 158, 11, .55); }
  .filter button:not([aria-pressed="true"]):hover { color: var(--white); }
  .service-card:hover .svc-mark { -webkit-text-stroke-color: rgba(245, 158, 11, .22); transform: translateY(4px); }
  .service-card:hover .svc-cta-icon { background-color: var(--amber); border-color: var(--amber); color: var(--bg); }
  .service-card:hover .svc-cta-icon .icon { transform: rotate(0deg); }
  .service-card.is-dim:hover { transform: scale(0.98); opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .seal-text, .float-chip, .orbit-dot, .road-lane { animation: none; }
  .process-fill { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .process::before { display: none; }
  .split, .svc-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-row:nth-child(even) .svc-visual { order: 0; }
  .svc-visual { aspect-ratio: 16 / 8; }
  .quote-band { grid-template-columns: 1fr; padding: 3rem 2rem; }
  .quote-band .actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .process-line { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "fleet a" "fleet globe" "b c" "wide wide"; }
  .tile-wide { grid-template-columns: 1fr; gap: 1.25rem; }
  .commit-chips { justify-content: flex-start; }
  .svc-head { align-items: flex-start; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem 1rem 2rem; background: rgba(5, 12, 22, .98); border-bottom: 1px solid var(--line);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    /* exit: fast */
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  }
  .nav.open {
    opacity: 1; transform: none; visibility: visible;
    /* enter: ease-out, slightly slower */
    transition: opacity 220ms var(--ease), transform 220ms var(--ease), visibility 0s;
  }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 1rem 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current] { color: var(--amber); }
}

@media (max-width: 640px) {
  :root { --gutter: 1rem; }
  .topbar-links a:last-child span { display: none; }
  .topbar-left { display: none; }
  :root { --header-h: 68px; }
  .header .container { height: 68px; }
  .brand { gap: .7rem; }
  .brand-mark-wrap { width: 44px; height: 44px; }
  .brand-text strong { font-size: 17px; }
  .tagline { font-size: 9.5px; letter-spacing: .06em; }
  .process-wrap { margin-top: 4rem; padding-top: 3.5rem; }
  .section { padding: 4rem 0; }
  .hero-content { padding: 3rem 0 3.5rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-chip { font-size: 10px; }
  .chip-sep, .chip-mono { display: none; }
  .hero { padding-bottom: 52px; }
  .hero-marquee { height: 52px; }
  .hm-item { font-size: 13px; }
  .video-toggle { bottom: calc(52px + 1rem); }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .stats { margin-top: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.5rem 1.1rem; }
  .stat-value { font-size: 24px; }
  .stat-value .icon { width: 20px; height: 20px; }
  .process { grid-template-columns: 1fr; text-align: left; row-gap: 1.5rem; }
  /* Vertical progress line down the step numbers */
  .process-line { display: block; top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .process-fill { transform-origin: top; transform: scaleY(0); }
  .bento { grid-template-columns: 1fr; grid-template-areas: none; }
  .bento > * { grid-area: auto !important; }
  .tile-fleet .road { height: 72px; margin-top: .5rem; }
  .rc-stage { padding: 2.75rem 0 2rem 0; }
  .seal { width: 96px; height: 96px; left: auto; right: -4px; top: -8px; }
  .seal img { width: 42px; height: 42px; }
  .seal-text text { font-size: 11.5px; }
  .rc-stage .rc-head { padding-left: 0; padding-right: 70px; }
  .float-chip { right: auto; left: 8px; bottom: -4px; }
  .svc-total { display: none; }
  .filter { display: flex; }
  .value-num { font-size: 36px; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; text-align: left; padding: 0; }
  .step-num { margin: 0; }
  .form-card { padding: 1.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-band { padding: 2.25rem 1.25rem; }
  .quote-band .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-bottom: 2.5rem; margin-bottom: 2.5rem; }
  .to-top { width: 50px; height: 50px; }
  .footer-body { padding-top: 2.5rem; }
  .footer-bottom { margin-top: 2.5rem; flex-direction: column; }
  .page-hero { padding: 4.5rem 0 3.5rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .visit-card .map-wrap { height: 180px; }
}

/* Top bar: drop the location text before the contact links run out of room */
@media (max-width: 760px) { .topbar-left { display: none; } }

/* ---------- Coming Soon page (index.html when built with --coming-soon) ---------- */
.cs-body { min-height: 100svh; display: flex; flex-direction: column; background: var(--ocean-deep); }
.hero.cs { flex: 1; min-height: 100svh; text-align: center; }
/* Centered composition: darken evenly around the middle instead of from the left */
.hero.cs::before {
  background:
    radial-gradient(ellipse 70% 65% at 50% 46%, rgba(5, 12, 22, .55) 0%, rgba(5, 12, 22, .9) 100%),
    linear-gradient(0deg, rgba(5, 12, 22, .9) 0%, rgba(5, 12, 22, 0) 35%);
}
.hero.cs .hero-grid { -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 48%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 60% 55% at 50% 48%, #000 15%, transparent 75%); }
.cs-inner { display: flex; flex-direction: column; align-items: center; padding: 4rem var(--gutter) 3.5rem; }
.cs-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; text-align: left; }
.cs-mark { width: 72px; height: 72px; }
.cs-brand .brand-text strong { font-size: 24px; }
.cs-brand .tagline { font-size: 11px; }
.hero.cs h1 { font-size: clamp(42px, 7vw, 92px); margin: 1.5rem 0 1.4rem; }
.hero.cs .hero-lead { margin: 0 auto; max-width: 620px; }
.hero.cs .hero-ctas { justify-content: center; margin: 2.25rem 0 1.75rem; }
.hero.cs .btn .icon { width: 1.15em; height: 1.15em; }
.cs-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1rem; font-size: 14px; color: var(--text-muted); }
.cs-meta > span:first-child { display: inline-flex; align-items: center; gap: .45rem; }
.cs-meta .icon { width: 16px; height: 16px; color: var(--amber); }
.cs-copy { margin: 0; padding: 1rem; text-align: center; font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; color: #6b7890; background: var(--ocean-deep); }
@media (max-width: 640px) {
  .cs-inner { padding: 3rem var(--gutter) 2.5rem; }
  .cs-mark { width: 56px; height: 56px; }
  .cs-brand .brand-text strong { font-size: 20px; }
  .hero.cs .hero-ctas .btn { flex: 1 1 100%; }
  .hero.cs .chip-sep, .hero.cs .chip-mono { display: inline-block; }
}