/* ── Variables ── */
:root {
  --ink: #0b0b0d;
  --muted: #5f646d;
  --line: #dedfe3;
  --surface: #ffffff;
  --wash: #f5f6f8;
  --red: #c90d19;
  --red-dark: #990711;
  --red-bright: #e02020;
  --charcoal: #17181c;
  --deep: #0d0e11;
  --dark: #111113;
  --dark-2: #1a1a1d;
  --shadow: 0 18px 44px rgba(11,11,13,0.14);
  /* Header height — matches .site-header computed height (brand + padding).
     Used for sticky topbar offset AND sub-view top clearance.
     Desktop brand 52px + 2×16px padding = 84px.
     Mobile (≤840px) brand 46px + 2×16px padding = 78px — see responsive block. */
  --header-h: 84px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; font-family:'Inter',Arial,sans-serif; color:var(--ink); background:var(--surface); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,h4,p,li { margin-top:0; overflow-wrap:break-word; word-break:normal; }

/* ── Focus ring ─────────────────────────────────────────────────────────────
   Strip the browser's default blue outline for pointer/touch interactions.
   Restore a branded red ring ONLY for keyboard navigation (:focus-visible).
────────────────────────────────────────────────────────────────────────── */
*:focus                    { outline: none; }
*:focus-visible            { outline: 2px solid rgba(201,13,25,.65); outline-offset: 3px; border-radius: 4px; }
input:focus, textarea:focus { outline: none; } /* these use border + box-shadow instead */
h1 { font-size:clamp(3rem,8vw,6.4rem); line-height:.94; letter-spacing:-.025em; margin-bottom:24px; }
h2 { font-size:clamp(2rem,4vw,3.6rem); line-height:1.02; letter-spacing:-.02em; margin-bottom:18px; }
h3 { font-size:1.18rem; letter-spacing:-.01em; }

/* ── Word-split animation ── */
.word-wrap { display:inline-block; overflow:hidden; vertical-align:bottom; padding-bottom:.12em; margin-bottom:-.12em; }
.word-inner { display:inline-block; transform:translateY(105%); opacity:0; transition:transform .65s cubic-bezier(.22,1,.36,1), opacity .65s ease; }
.word-inner.show { transform:translateY(0); opacity:1; }

/* ── Splash ── */
#splash {
  position:fixed; inset:0; z-index:200;
  background:var(--deep);
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
#splash.is-leaving { animation:splashUp .9s cubic-bezier(.76,0,.24,1) forwards; }
@keyframes splashUp { to { transform:translateY(-100%); } }

.splash-content {
  display:flex; flex-direction:column; align-items:center;
  gap:20px; text-align:center; position:relative; z-index:2;
}

.splash-letters {
  display:flex; align-items:flex-end; gap:6px;
  font-family:'Inter',sans-serif; font-weight:900;
  font-size:clamp(80px,20vw,160px); line-height:1;
  letter-spacing:-.04em;
}
/* ── Letter animations: 3D perspective rush + chromatic aberration ── */
.sl-f {
  color:#fff; display:inline-block;
  animation: fRush 1.2s cubic-bezier(.16,1,.3,1) .28s both;
}
.sl-s {
  color:#fff; display:inline-block;
  animation: sRush 1.2s cubic-bezier(.16,1,.3,1) .52s both;
}
.sl-i {
  color:var(--red); display:inline-block; font-style:italic;
  animation: iRush 1.2s cubic-bezier(.16,1,.3,1) .40s both;
}

/* F — rushes from deep left, chromatic split settles on landing */
@keyframes fRush {
  0% {
    opacity:0;
    transform:perspective(900px) translateX(-340px) translateZ(-700px) rotateY(40deg);
    filter:blur(14px);
    text-shadow: 18px 3px 0 rgba(255,20,60,.8), -18px -3px 0 rgba(20,110,255,.8);
  }
  42% {
    opacity:1;
    filter:blur(4px);
    text-shadow: 9px 1px 0 rgba(255,20,60,.55), -9px -1px 0 rgba(20,110,255,.55);
  }
  74% {
    transform:perspective(900px) translateX(10px) translateZ(24px) rotateY(-4deg);
    filter:blur(0);
    text-shadow: 14px 2px 0 rgba(255,20,60,.38), -14px -2px 0 rgba(20,110,255,.38);
  }
  86% {
    transform:perspective(900px) translateX(-2px) translateZ(-4px) rotateY(1deg);
    text-shadow: 3px 0 0 rgba(255,20,60,.15), -3px 0 0 rgba(20,110,255,.15);
  }
  100% {
    opacity:1; filter:blur(0);
    transform:perspective(900px) translateX(0) translateZ(0) rotateY(0);
    text-shadow:none;
  }
}

/* S — drops from deep above, chromatic split settles on landing */
@keyframes sRush {
  0% {
    opacity:0;
    transform:perspective(900px) translateY(-310px) translateZ(-700px) rotateX(-40deg);
    filter:blur(14px);
    text-shadow: 3px 18px 0 rgba(255,20,60,.8), -3px -18px 0 rgba(20,110,255,.8);
  }
  42% {
    opacity:1;
    filter:blur(4px);
    text-shadow: 1px 9px 0 rgba(255,20,60,.55), -1px -9px 0 rgba(20,110,255,.55);
  }
  74% {
    transform:perspective(900px) translateY(10px) translateZ(24px) rotateX(4deg);
    filter:blur(0);
    text-shadow: 2px 14px 0 rgba(255,20,60,.38), -2px -14px 0 rgba(20,110,255,.38);
  }
  86% {
    transform:perspective(900px) translateY(-2px) translateZ(-4px) rotateX(-1deg);
    text-shadow: 0 3px 0 rgba(255,20,60,.15), 0 -3px 0 rgba(20,110,255,.15);
  }
  100% {
    opacity:1; filter:blur(0);
    transform:none; text-shadow:none;
  }
}

/* i — rushes from deep right, red-tinted chromatic split */
@keyframes iRush {
  0% {
    opacity:0;
    transform:perspective(900px) translateX(300px) translateZ(-700px) rotateY(-40deg);
    filter:blur(14px);
    text-shadow: -18px 3px 0 rgba(255,200,50,.8), 18px -3px 0 rgba(255,40,180,.8);
  }
  42% {
    opacity:1;
    filter:blur(4px);
    text-shadow: -9px 1px 0 rgba(255,200,50,.55), 9px -1px 0 rgba(255,40,180,.55);
  }
  74% {
    transform:perspective(900px) translateX(-10px) translateZ(24px) rotateY(4deg);
    filter:blur(0);
    text-shadow: -14px 2px 0 rgba(255,200,50,.38), 14px -2px 0 rgba(255,40,180,.38);
  }
  86% {
    transform:perspective(900px) translateX(2px) translateZ(-4px) rotateY(-1deg);
    text-shadow: -3px 0 0 rgba(255,200,50,.15), 3px 0 0 rgba(255,40,180,.15);
  }
  100% {
    opacity:1; filter:blur(0);
    transform:none; text-shadow:none;
    color:var(--red);
  }
}

/* ── Scan line (sweeps before letters arrive) ── */
.splash-scan {
  position:absolute; top:0; left:-8%; width:116%; height:2px;
  background:linear-gradient(90deg,
    transparent,
    rgba(255,255,255,.25) 20%,
    rgba(201,13,25,.85)   50%,
    rgba(255,255,255,.25) 80%,
    transparent
  );
  box-shadow:0 0 18px rgba(201,13,25,.6), 0 0 40px rgba(201,13,25,.3);
  animation:scanSweep .8s cubic-bezier(.25,.46,.45,.94) .06s both;
  pointer-events:none; z-index:3;
}
@keyframes scanSweep {
  0%   { transform:translateY(0);     opacity:1;   }
  75%  { opacity:.7; }
  100% { transform:translateY(100vh); opacity:0;   }
}

.splash-name {
  margin:0; color:rgba(255,255,255,.6); font-size:clamp(.9rem,2vw,1.1rem);
  font-weight:700; letter-spacing:.18em; text-transform:uppercase;
  animation:fadeUp .7s ease 1.5s both;
}
.splash-line {
  width:0; height:2px; background:var(--red); border-radius:2px;
  animation:lineGrow .7s cubic-bezier(.22,1,.36,1) 1.7s forwards;
}
@keyframes lineGrow { to { width:200px; } }

.splash-tagline {
  margin:0; color:rgba(255,255,255,.45); font-style:italic;
  font-size:clamp(.82rem,2vw,.96rem); font-weight:500; max-width:340px; line-height:1.6;
  animation:fadeUp .7s ease 2.0s both;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }

/* tsParticles ambient sparkles container */
#tsparticles-splash {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.splash-content { position: relative; z-index: 2; }


/* ── Header ── */
.site-header {
  position:fixed; top:0; left:0; right:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:16px clamp(20px,5vw,64px); color:#fff;
  transition:background .18s ease, box-shadow .18s ease, color .18s ease;
}
.site-header.is-elevated {
  color:#fff; background:rgba(10,10,11,.92);
  box-shadow:0 1px 0 rgba(255,255,255,.06), 0 12px 30px rgba(0,0,0,.5);
  backdrop-filter:blur(16px);
}
.brand { display:inline-flex; align-items:center; width:80px; height:52px; padding:6px; border-radius:8px; background:#fff; flex-shrink:0; }
.brand img { display:block; width:100%; height:100%; object-fit:contain; }
.site-nav { display:flex; align-items:center; gap:24px; font-size:.92rem; font-weight:700; }
.site-nav a,.header-action { opacity:.9; transition:opacity .14s; cursor:pointer; }
.site-nav a:hover,.header-action:hover { opacity:1; }
.nav-cta { display:none; }
.header-action { min-height:42px; display:inline-flex; align-items:center; padding:10px 18px; border:1px solid currentColor; border-radius:8px; font-weight:800; white-space:nowrap; flex-shrink:0; }
.site-header.is-elevated .header-action:hover { background:var(--red); color:#fff; border-color:var(--red); opacity:1; }
.nav-toggle { display:none; flex-direction:column; justify-content:center; gap:5px; background:none; border:none; cursor:pointer; padding:6px; color:inherit; border-radius:6px; }
.nav-toggle span { display:block; width:22px; height:2px; background:currentColor; border-radius:2px; transition:transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* Active nav link */
.site-nav a.nav-active { color:var(--red) !important; opacity:1; position:relative; }
.site-nav a.nav-active::after {
  content:'';
  position:absolute; bottom:-4px; left:0; right:0; height:2px;
  background:var(--red); border-radius:2px;
}
@media (max-width:840px) {
  .site-nav a.nav-active { border-left:3px solid var(--red); padding-left:calc(clamp(20px,5vw,64px) - 3px); background:rgba(201,13,25,.04); }
  .site-nav a.nav-active::after { display:none; }
}

/* ── View Router ── */
.views-wrap { padding-top:0; }
.view { display:none; }
.view.active { display:block; animation:viewIn .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes viewIn { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }

/* Sub-views (services / training / startup / contact) push content below the
   fixed header by padding the view itself. This ensures the sticky topbar's
   *natural document position* equals its sticky threshold (--header-h), so it
   is visible at scroll:0 rather than hidden behind the header. */
#view-services,
#view-training,
#view-startup,
#view-contact { padding-top: var(--header-h); }

.view-topbar {
  display:flex; align-items:center; gap:16px;
  padding:20px clamp(20px,5vw,64px);
  border-bottom:1px solid var(--line);
  background:var(--surface);
  position:sticky; top:var(--header-h); z-index:10;
}
.back-btn {
  display:inline-flex; align-items:center; gap:6px;
  background:none; border:none; cursor:pointer; font:inherit;
  font-size:.88rem; font-weight:700; color:var(--muted);
  padding:6px 12px; border-radius:6px; border:1px solid var(--line);
  transition:color .15s, border-color .15s, background .15s;
}
.back-btn:hover { color:var(--red); border-color:var(--red); background:rgba(201,13,25,.04); }
.back-btn svg { width:14px; height:14px; }
.view-crumb { font-size:.88rem; font-weight:800; color:var(--ink); }

/* ── Eyebrow ── */
.eyebrow { margin:0 0 14px; color:var(--red); font-size:.75rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }

/* ── Buttons ── */
.button {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:50px; padding:14px 26px; border:1px solid transparent;
  border-radius:8px; font:inherit; font-weight:900; font-size:.94rem;
  cursor:pointer;
  transition:background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.button.primary { color:#fff; background:var(--red); }
.button.primary:hover { background:var(--red-dark); box-shadow:0 4px 18px rgba(201,13,25,.3); transform:translateY(-1px); }
.button.secondary { color:#fff; border-color:rgba(255,255,255,.6); }
.button.secondary:hover { border-color:#fff; background:rgba(255,255,255,.1); }

/* ── Section ── */
.section { padding:88px clamp(20px,7vw,96px); }
.section-heading { margin-bottom:52px; }
.section-sub { color:var(--muted); font-size:1.05rem; line-height:1.65; max-width:640px; margin-bottom:0; }

/* ── Cursor glow (follows mouse on dark backgrounds) ── */
:root { --mx: 50%; --my: 50%; }
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle 480px at var(--mx) var(--my), rgba(201,13,25,.055) 0%, transparent 65%);
  transition: background .08s linear;
}

/* ── Scroll indicator ── */
.hero-scroll {
  position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:rgba(255,255,255,.4); font-size:.7rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
  animation:fadeUp .7s ease 5.2s both;
  transition:opacity .3s;
}
.hero-scroll.hidden { opacity:0; pointer-events:none; }
.hero-scroll-line {
  width:1px; height:40px; background:linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation:scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform:scaleY(1); opacity:.4; }
  50% { transform:scaleY(1.35); opacity:.8; }
}

/* ── Back to top ── */
.back-to-top {
  position:fixed; bottom:28px; right:28px; z-index:100;
  width:46px; height:46px; border-radius:50%;
  background:var(--red); color:#fff; border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 18px rgba(201,13,25,.3);
  opacity:0; transform:translateY(12px);
  transition:opacity .25s ease, transform .25s ease, background .15s;
  pointer-events:none;
}
.back-to-top.visible { opacity:1; transform:none; pointer-events:auto; }
.back-to-top:hover { background:var(--red-dark); }
.back-to-top svg { width:18px; height:18px; }

/* ── Hero ── */
.hero {
  position:relative; min-height:92vh; display:grid; align-items:center;
  overflow:hidden; padding:132px clamp(20px,7vw,96px) 82px; color:#fff;
}
.hero-image,.hero-overlay { position:absolute; inset:0; width:100%; height:100%; }
.hero-image {
  z-index:-2; object-fit:cover;
  will-change:transform;
  animation:heroBurns 22s ease-in-out infinite;
  transform-origin:62% 52%;
}
@keyframes heroBurns {
  0%   { transform:scale(1.0)  translate(0,      0);     }
  33%  { transform:scale(1.055) translate(-0.7%, 0.3%);  }
  66%  { transform:scale(1.045) translate( 0.4%, -0.2%); }
  100% { transform:scale(1.0)  translate(0,      0);     }
}
.hero-overlay { z-index:-1; background:linear-gradient(90deg,rgba(0,0,0,.88),rgba(0,0,0,.58) 46%,rgba(0,0,0,.18)),linear-gradient(0deg,rgba(0,0,0,.42),rgba(0,0,0,.02)); }
/* Bottom fade — blends hero into the dark About section below */
.hero::after {
  content:''; position:absolute; left:0; right:0; bottom:0; height:42%;
  background:linear-gradient(to bottom, transparent, var(--deep));
  pointer-events:none; z-index:0;
}
.hero-content { position:relative; z-index:2; }
/* Industrial red accent on the headline block */
.hero-h1 {
  border-left:4px solid var(--red); padding-left:clamp(16px,2.4vw,28px);
  font-size:clamp(1.9rem,9vw,6rem); line-height:1.02;
  opacity:0; transform:translateY(20px);
  transition:opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.hero-h1.show { opacity:1; transform:none; }
.hero-line { display:block; }
/* Rotating tagline (Motion One reel — vanilla recreation of the framer hero) */
.hero-rotate { position:relative; display:block; height:1.05em; padding-bottom:.16em; overflow:hidden; }
.hero-rotate-word {
  position:absolute; left:0; top:0; white-space:nowrap;
  opacity:0; color:var(--red); will-change:transform, opacity;
}

/* ── Hero Cinematic FX ── */

/* Red ambient pulse — engine idling feel */
.hero-fx-glow {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse 58% 42% at 66% 74%, rgba(201,13,25,.24) 0%, transparent 62%);
  animation:fxGlowBreath 5.5s ease-in-out infinite;
  mix-blend-mode:screen;
}
@keyframes fxGlowBreath {
  0%,100% { opacity:.4;  transform:scale(1);    }
  50%     { opacity:.95; transform:scale(1.12); }
}

/* Warehouse dock lights — irregular flicker */
.hero-fx-lights {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse 22% 32% at 83% 26%, rgba(255,215,100,.07) 0%, transparent 55%),
    radial-gradient(ellipse 12% 22% at 96% 44%, rgba(255,215,100,.045) 0%, transparent 55%);
  animation:fxLightFlicker 9s ease-in-out infinite;
}
@keyframes fxLightFlicker {
  0%,100% { opacity:.55; }
  18%     { opacity:.9;  }
  30%     { opacity:.45; }
  52%     { opacity:1;   }
  67%     { opacity:.65; }
  80%     { opacity:.5;  }
  90%     { opacity:.92; }
}

/* Fog / low mist drifting across scene */
.hero-fx-fog {
  position:absolute; inset:-8% -6%; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse 88% 32% at 12% 68%, rgba(195,210,225,.06) 0%, transparent 58%),
    radial-gradient(ellipse 65% 28% at 78% 55%, rgba(195,210,225,.04) 0%, transparent 52%);
  animation:fxFogDrift 30s ease-in-out infinite alternate;
}
@keyframes fxFogDrift {
  0%   { transform:translate(0,    0);    }
  100% { transform:translate(2.8%, 1.2%); }
}

/* Wet pavement warm shimmer at bottom */
.hero-fx-pavement {
  position:absolute; bottom:0; left:0; right:0; height:48%;
  pointer-events:none; z-index:0;
  background:linear-gradient(to top,
    rgba(201,13,25,.065)   0%,
    rgba(170,120,60,.03)   18%,
    transparent            55%
  );
  animation:fxPavementShimmer 6s ease-in-out infinite alternate;
}
@keyframes fxPavementShimmer {
  0%   { opacity:.45; }
  100% { opacity:.9;  }
}

/* Rain canvas */
.hero-fx-rain {
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:1;
}

.hero-copy { max-width:640px; color:rgba(255,255,255,.82); font-size:clamp(1.05rem,1.8vw,1.28rem); line-height:1.65; }
.hero-copy-reveal,.hero-actions-reveal,.hero-tagline-reveal { opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.hero-copy-reveal.show,.hero-actions-reveal.show,.hero-tagline-reveal.show { opacity:1; transform:none; }
.hero-actions { display:flex; flex-wrap:wrap; gap:14px; margin-top:34px; }
.hero-tagline { margin-top:40px; margin-bottom:0; color:rgba(255,255,255,.4); font-style:italic; font-size:.88rem; font-weight:500; }

/* ── Perspective Scroll Reveal base ── */
[data-psr] { transition: none; } /* JS drives this — no CSS transition interference */

/* ── About (dark split + live route map) ── */
.about { background:var(--deep); color:#fff; overflow:hidden; }
.about .eyebrow { color:var(--red); }
.about-inner { display:grid; grid-template-columns:1fr 1.15fr; gap:clamp(48px,8vw,100px); align-items:stretch; }
.about-copy { display:flex; flex-direction:column; justify-content:center; }
.about-copy h2 { color:#fff; }
.about-copy > p { color:rgba(255,255,255,.65); line-height:1.7; max-width:480px; }

.about-stats-row { display:flex; gap:28px; margin-top:32px; padding-top:26px; border-top:1px solid rgba(255,255,255,.1); flex-wrap:wrap; }
.about-stat-item { display:flex; flex-direction:column; gap:4px; }
.about-stat-main { display:flex; align-items:flex-end; gap:2px; }
.about-stat-num { font-size:clamp(2rem,3.5vw,2.8rem); font-weight:900; color:var(--red); line-height:1; letter-spacing:-.03em; }
.about-stat-suffix { font-size:clamp(1.1rem,2vw,1.6rem); font-weight:900; color:var(--red); line-height:1; padding-bottom:.1em; }
.about-stat-str-inline { font-size:clamp(2rem,3.5vw,2.8rem); font-weight:900; color:var(--red); line-height:1; letter-spacing:-.03em; }
.about-stat-item p { color:rgba(255,255,255,.45); font-size:.78rem; margin:4px 0 0; line-height:1.4; }
.about-cta { margin-top:36px; align-self:flex-start; }

/* Route map panel */
.about-map-wrap {
  position:relative; border-radius:16px; overflow:hidden;
  border:1px solid rgba(255,255,255,.07);
  background:#06070a;
  min-height:420px;
}
.about-map-canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.about-map-badge {
  position:absolute; top:14px; left:16px; z-index:2;
  display:flex; align-items:center; gap:8px;
  font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.3); pointer-events:none;
}
.about-map-dot {
  width:6px; height:6px; border-radius:50%; background:var(--red);
  flex-shrink:0; animation:mapDotPulse 2s ease-in-out infinite;
}
@keyframes mapDotPulse {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(201,13,25,.6); }
  50%     { opacity:.6; box-shadow:0 0 0 5px rgba(201,13,25,0); }
}

/* ── Trust Bar ── */
.trust-bar { display:grid; grid-template-columns:repeat(4,1fr); background:var(--charcoal); }
.trust-item { padding:28px; border-right:1px solid rgba(255,255,255,.08); }
.trust-item:last-child { border-right:none; }
.trust-num { display:block; font-size:clamp(1.1rem,2vw,1.4rem); font-weight:900; color:var(--red); }
.trust-num sup { font-size:.6em; }
.trust-str { display:block; font-size:clamp(.95rem,1.6vw,1.15rem); font-weight:900; color:var(--red); }
.trust-item p { margin:6px 0 0; color:rgba(255,255,255,.5); font-size:.8rem; line-height:1.5; }

/* ── Teaser cards (dark premium) ── */
.teasers { background:var(--charcoal); }
.teasers .eyebrow { color:var(--red); }
.teasers .section-heading h2 { color:#fff; }
.teaser-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.teaser-card {
  position:relative; padding:36px 26px 30px;
  border:1px solid rgba(255,255,255,.08); border-radius:14px;
  background:rgba(255,255,255,.04); text-align:left; cursor:pointer; overflow:hidden;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  display:flex; flex-direction:column; gap:10px; color:#fff;
}
.teaser-card:hover {
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(201,13,25,.28);
  border-color:rgba(201,13,25,.35);
  background:rgba(255,255,255,.07);
}
.teaser-card:hover .tc-glow { opacity:1; }
.tc-num {
  position:absolute; top:14px; right:20px;
  font-size:clamp(3.8rem,6vw,5.5rem); font-weight:900; line-height:1;
  letter-spacing:-.04em; color:rgba(255,255,255,.045);
  user-select:none; pointer-events:none; transition:color .22s;
}
.teaser-card:hover .tc-num { color:rgba(201,13,25,.12); }
.tc-glow { position:absolute; inset:0; background:radial-gradient(circle at 50% 0%,rgba(201,13,25,.12) 0%,transparent 65%); pointer-events:none; opacity:0; transition:opacity .3s; }
.tc-icon { width:44px; height:44px; color:var(--red); margin-bottom:4px; position:relative; z-index:1; }
.tc-icon svg { width:100%; height:100%; }
.teaser-card h3 { font-size:1.1rem; color:#fff; margin-bottom:0; position:relative; z-index:1; }
.teaser-card p { font-size:.88rem; color:rgba(255,255,255,.5); line-height:1.6; margin-bottom:0; flex:1; position:relative; z-index:1; }
.tc-cta { display:inline-flex; align-items:center; gap:6px; font-size:.8rem; font-weight:800; color:var(--red); text-transform:uppercase; letter-spacing:.06em; margin-top:auto; position:relative; z-index:1; }
.tc-cta svg { width:14px; height:14px; transition:transform .2s; }
.teaser-card:hover .tc-cta svg { transform:translateX(4px); }
/* Featured (Get a Quote) */
.teaser-featured { background:rgba(201,13,25,.1); border-color:rgba(201,13,25,.22); }
.teaser-featured:hover { background:rgba(201,13,25,.18); border-color:rgba(201,13,25,.45); box-shadow:0 20px 50px rgba(0,0,0,.5),0 0 0 1px rgba(201,13,25,.45); }
.teaser-featured .tc-glow { background:radial-gradient(circle at 50% 0%,rgba(201,13,25,.28) 0%,transparent 65%); }
.teaser-featured .tc-num { color:rgba(201,13,25,.15); }
.teaser-featured:hover .tc-num { color:rgba(201,13,25,.25); }

/* ── Services view (dark treatment) ── */
.view-intro { background:var(--deep); }
.view-intro .eyebrow { color:var(--red); }
.view-intro h2 { color:#fff; }
.view-intro .section-sub { color:rgba(255,255,255,.6); }
.view-intro h2,.view-intro .section-sub { max-width:720px; }
.svc-grid-section { background:var(--dark); }
.svc-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.svc-card {
  padding:36px 32px; border:1px solid rgba(255,255,255,.08);
  border-top:2px solid transparent; border-radius:6px;
  background:var(--dark-2);
  transition:box-shadow .22s, border-color .22s, transform .22s, border-top-color .22s;
}
.svc-card:hover { box-shadow:0 16px 42px rgba(0,0,0,.5); border-color:rgba(201,13,25,.4); border-top-color:var(--red); transform:translateY(-4px); }
.svc-num { font-size:.78rem; font-weight:900; letter-spacing:.08em; color:var(--red); margin-bottom:12px; }
.svc-icon { width:44px; height:44px; color:var(--red); margin-bottom:18px; }
.svc-icon svg { width:100%; height:100%; }
.svc-card h3 { margin-bottom:12px; color:#fff; }
.svc-card p { color:rgba(255,255,255,.55); line-height:1.7; margin-bottom:18px; font-size:.92rem; }
.svc-list { padding:0 0 0 0; margin:0 0 16px; list-style:none; display:flex; flex-wrap:wrap; gap:6px; }
.svc-list li { font-size:.8rem; font-weight:600; padding:5px 12px; background:rgba(255,255,255,.05); border-radius:100px; color:rgba(255,255,255,.82); border:1px solid rgba(255,255,255,.1); }
.svc-link-btn { background:none; border:none; cursor:pointer; font:inherit; font-size:.84rem; font-weight:800; color:var(--red); padding:0; }
.svc-link-btn:hover { color:var(--red-dark); text-decoration:underline; }

/* Timeline items scroll reveal */
.timeline-item {
  opacity:0; transform:translateX(-28px);
  transition:opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.timeline-item.reveal { opacity:1; transform:none; }

/* Process section in services view */
.process-section { background:var(--charcoal); color:#fff; }
.process-inner { display:grid; grid-template-columns:minmax(260px,.9fr) 1fr; gap:clamp(36px,7vw,92px); }
.process-inner h2 { color:#fff; margin-bottom:0; }
.process-inner .eyebrow { color:var(--red); }
.timeline { border-top:1px solid rgba(255,255,255,.15); }
.timeline-item { display:grid; grid-template-columns:140px 1fr; gap:24px; padding:28px 0; border-bottom:1px solid rgba(255,255,255,.15); }
.timeline-item span { color:#fff; font-weight:900; font-size:.94rem; }
.timeline-item p { margin:0; color:rgba(255,255,255,.65); line-height:1.7; }

/* CTA strip */
.cta-strip { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:40px clamp(20px,7vw,96px); background:var(--ink); color:#fff; flex-wrap:wrap; }
.cta-strip p { margin:0; font-size:1.1rem; font-weight:700; }
.cta-strip.light { background:var(--wash); color:var(--ink); }
.cta-strip.light p { color:var(--ink); }

/* ── Training (dark section) ── */
.training-dark { background:var(--deep); padding:88px clamp(20px,7vw,96px); }
.training-eyebrow { color:var(--red); }
.training-header { margin-bottom:52px; }
.training-title { color:#fff; }
.training-sub { color:rgba(255,255,255,.5); font-size:1rem; line-height:1.7; max-width:600px; margin:0; }
.cat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:24px; }
.cat-card {
  position:relative; padding:32px 28px; border:1px solid rgba(255,255,255,.1);
  border-radius:14px; background:rgba(255,255,255,.04); text-align:left; cursor:pointer;
  overflow:hidden; transition:border-color .22s, background .22s, transform .22s;
  color:#fff; display:flex; flex-direction:column; gap:8px;
}
.cat-card:hover { background:rgba(255,255,255,.07); transform:translateY(-3px); }
.cat-card.active { border-color:var(--red); background:rgba(201,13,25,.08); }
.cat-glow { position:absolute; top:-40px; left:50%; transform:translateX(-50%); width:180px; height:180px; background:radial-gradient(circle,rgba(201,13,25,.35) 0%,transparent 70%); pointer-events:none; opacity:0; transition:opacity .3s; }
.cat-card.active .cat-glow { opacity:1; }
.cat-icon-wrap { width:40px; height:40px; color:var(--red); margin-bottom:10px; }
.cat-icon-wrap svg { width:100%; height:100%; }
.cat-num { font-size:clamp(3rem,6vw,5rem); font-weight:900; line-height:1; letter-spacing:-.04em; color:rgba(255,255,255,.3); transition:color .22s; }
.cat-card.active .cat-num { color:var(--red); }
.cat-name { font-size:1.2rem; font-weight:800; color:#fff; margin:0; }
.cat-desc { font-size:.84rem; color:rgba(255,255,255,.5); line-height:1.6; margin:0; flex:1; }
.cat-cta { display:inline-flex; align-items:center; gap:6px; font-size:.78rem; font-weight:800; color:rgba(255,255,255,.3); text-transform:uppercase; letter-spacing:.07em; margin-top:8px; transition:color .2s; }
.cat-card.active .cat-cta { color:var(--red); }
.cat-cta svg { width:13px; height:13px; transition:transform .2s; }
.cat-card.active:hover .cat-cta svg { transform:translateX(3px); }
.course-panel { background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:32px; }
.course-panel-meta { display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,.08); flex-wrap:wrap; gap:10px; }
.course-panel-label { font-size:.76rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; color:var(--red); }
.course-panel-hint { font-size:.75rem; color:rgba(255,255,255,.3); }
.training-panel { display:none; }
.training-panel.active { display:block; }
.course-grid { display:flex; flex-wrap:wrap; gap:10px; }
.course-pill { display:inline-flex; align-items:center; padding:9px 16px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); border-radius:100px; font-size:.84rem; font-weight:500; color:rgba(255,255,255,.8); line-height:1; transition:border-color .15s, background .15s, color .15s; cursor:default; }
.course-pill:hover { border-color:rgba(201,13,25,.5); background:rgba(201,13,25,.12); color:#fff; }

/* ── Startup (redesigned as process steps) ── */
.startup-hero { background:var(--charcoal); color:#fff; }
.startup-hero-inner { max-width:800px; }
.startup-hero .eyebrow { color:var(--red); }
.startup-hero h2 { color:#fff; }
.startup-hero .section-sub { color:rgba(255,255,255,.65); }
.startup-hero-actions { display:flex; align-items:center; gap:24px; flex-wrap:wrap; margin-top:36px; }
.startup-hero-badge { display:inline-flex; align-items:center; gap:8px; font-size:.88rem; font-weight:700; color:rgba(255,255,255,.5); }
.trust-num-inline { font-size:1.2rem; font-weight:900; color:var(--red); }

.startup-process-section { background:var(--surface); }
.process-label { margin-bottom:52px; }
.process-label h3 { font-size:clamp(1.3rem,2.5vw,2rem); margin-bottom:0; }

.startup-steps { display:flex; flex-direction:column; gap:0; }
.startup-step {
  display:grid;
  grid-template-columns:72px 2px 1fr;
  gap:0 24px;
  position:relative;
}
/* Pin children to explicit columns so the body always lands in the 1fr track,
   even on the last step which omits the .step-connector element. */
.step-badge     { grid-column:1; }
.step-connector { grid-column:2; }
.step-body      { grid-column:3; min-width:0; }
.step-badge {
  width:52px; height:52px; border-radius:50%;
  background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.82rem; font-weight:900; letter-spacing:.06em;
  flex-shrink:0; z-index:1;
  box-shadow:0 4px 18px rgba(201,13,25,.25);
  align-self:flex-start; margin-top:4px;
  transition:transform .2s, box-shadow .2s;
}
.startup-step:hover .step-badge { transform:scale(1.08); box-shadow:0 6px 24px rgba(201,13,25,.38); }
.step-connector {
  width:2px; background:var(--line);
  margin:52px 0 0; /* starts right after badge */
  align-self:stretch;
  position:relative; left:25px; /* centered under badge */
}
.startup-step:last-child .step-connector { display:none; }
.step-body {
  padding:0 0 48px 0;
}
.step-icon { width:36px; height:36px; color:var(--red); margin-bottom:12px; }
.step-icon svg { width:100%; height:100%; }
.step-body h4 { font-size:1.18rem; font-weight:800; margin-bottom:8px; }
.step-body > p { color:var(--muted); line-height:1.7; font-size:.92rem; margin-bottom:16px; }
.step-tags { display:flex; flex-wrap:wrap; gap:6px; }
.step-tags span { font-size:.77rem; font-weight:600; padding:4px 12px; border-radius:100px; background:var(--wash); border:1px solid var(--line); color:var(--ink); }

@media (max-width:640px) {
  .startup-step { grid-template-columns:52px 2px 1fr; gap:0 16px; }
  .step-badge { width:42px; height:42px; font-size:.74rem; }
  .step-connector { left:21px; }
  /* Guard against grid/flex text columns collapsing to one-word-per-line */
  .step-body, .startup-step > * { min-width:0; }
  .step-body > p, .step-tags span { overflow-wrap:break-word; }
}

/* ── Contact ── */
.contact { display:grid; grid-template-columns:.85fr 1fr; gap:clamp(36px,7vw,92px); align-items:start; background:var(--wash); }
.contact-copy > p { color:var(--muted); line-height:1.7; }
.contact-list { display:flex; flex-direction:column; gap:10px; margin-top:28px; }
.contact-list a { display:inline-flex; align-items:center; gap:11px; min-height:46px; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); font-weight:700; font-size:.88rem; transition:border-color .16s, color .16s, box-shadow .16s; }
.contact-list a:hover { border-color:var(--red); color:var(--red-dark); box-shadow:0 2px 10px rgba(201,13,25,.08); }
.contact-list a svg { width:16px; height:16px; color:var(--red); flex-shrink:0; }
.contact-form { display:grid; gap:16px; padding:clamp(22px,4vw,34px); border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }
label { display:grid; gap:7px; color:#2e3138; font-weight:700; font-size:.88rem; }
.label-optional { font-weight:400; color:var(--muted); }
input,textarea { width:100%; border:1px solid #cfd1d6; border-radius:8px; padding:13px 14px; font:inherit; font-size:.93rem; color:var(--ink); background:#fff; transition:border-color .16s, box-shadow .16s; }
textarea { resize:vertical; }
input:focus,textarea:focus { outline:none; border-color:var(--red); box-shadow:0 0 0 3px rgba(201,13,25,.12); }
.form-note { min-height:22px; margin:0; font-weight:700; font-size:.86rem; line-height:1.5; }
.form-note.success { color:#176b35; }
.form-note.error { color:var(--red-dark); }

/* ── Footer (dark) ── */
.site-footer { animation:fadeUp .7s ease .2s both; }
.site-footer { display:grid; grid-template-columns:1fr 1fr 1fr auto; align-items:start; gap:36px; padding:52px clamp(20px,7vw,96px) 40px; border-top:2px solid var(--red); background:#0a0a0b; color:#fff; }
.footer-brand { display:flex; flex-direction:column; gap:16px; }
.footer-brand img { width:72px; height:auto; background:#fff; padding:8px; border-radius:8px; }
.footer-tagline { font-style:italic; color:rgba(255,255,255,.5); font-size:.82rem; line-height:1.65; margin:0; }
.footer-info p { color:rgba(255,255,255,.55); font-size:.86rem; line-height:1.75; margin:0; }
.footer-info strong { color:#fff; }
.footer-info a { color:var(--red); font-weight:700; transition:color .14s; }
.footer-info a:hover { color:var(--red-bright); }
.footer-nav { display:flex; flex-direction:column; gap:8px; }
.footer-nav button { background:none; border:none; cursor:pointer; font:inherit; font-size:.86rem; font-weight:600; color:rgba(255,255,255,.6); padding:0; text-align:left; transition:color .14s; }
.footer-nav button:hover { color:var(--red); }
.footer-copy { font-size:.78rem; color:rgba(255,255,255,.4); margin:0; align-self:end; grid-column:1/-1; padding-top:22px; margin-top:8px; border-top:1px solid rgba(255,255,255,.08); }

/* ── Compliance / capability marquee ── */
.compliance-strip {
  background:var(--red); color:#fff;
  padding:13px 0; overflow:hidden; white-space:nowrap;
  position:relative;
}
.compliance-track { display:inline-flex; align-items:center; will-change:transform; animation:marquee 42s linear infinite; }
.compliance-track > span { display:inline-flex; align-items:center; font-size:.8rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; padding:0 20px; }
.compliance-track .dot { padding:0; opacity:.55; font-size:.7rem; }
.compliance-strip:hover .compliance-track { animation-play-state:paused; }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ── FSi System / self-drawing wireframe truck ── */
.system-section { background:var(--deep); color:#fff; overflow:hidden; }
.system-inner { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(40px,7vw,92px); align-items:center; }
.system-visual { position:relative; }
/* Framed, brand-treated freight photo */
.system-photo {
  position:relative; border-radius:16px; overflow:hidden;
  border:1px solid rgba(201,13,25,.28);
  box-shadow:0 26px 64px rgba(0,0,0,.55);
}
.system-photo img {
  display:block; width:100%; height:100%;
  aspect-ratio:16/10; object-fit:cover;
  filter:contrast(1.04) saturate(1.05) brightness(.94);
}
.system-photo-overlay {
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(13,14,17,.42), transparent 45%),
    linear-gradient(0deg, rgba(13,14,17,.5), transparent 55%),
    radial-gradient(130% 90% at 72% 28%, transparent 38%, rgba(13,14,17,.6)),
    linear-gradient(0deg, rgba(201,13,25,.12), rgba(201,13,25,.04));
}
.system-section .eyebrow { color:var(--red); }
.system-section h2 { color:#fff; }
.system-body { color:rgba(255,255,255,.6); line-height:1.7; max-width:520px; margin:0; }
.system-list { list-style:none; padding:0; margin:26px 0 0; display:grid; gap:13px; }
.system-list li { position:relative; padding-left:24px; color:rgba(255,255,255,.85); font-size:.95rem; font-weight:600; }
.system-list li::before { content:''; position:absolute; left:0; top:.45em; width:8px; height:8px; border-radius:50%; background:var(--red); box-shadow:0 0 0 4px rgba(201,13,25,.15); }

@media (prefers-reduced-motion: reduce) {
  .compliance-track { animation:none; white-space:normal; flex-wrap:wrap; justify-content:center; }
}

/* ── Responsive ── */
@media (max-width:1100px) {
  .teaser-grid { grid-template-columns:repeat(2,1fr); }
  .svc-grid { grid-template-columns:1fr; }
  .site-footer { grid-template-columns:1fr 1fr; }
}
@media (max-width:840px) {
  /* Mobile header is 78px (brand 46px + 2×16px padding) */
  :root { --header-h: 78px; }
  .nav-toggle { display:flex; }
  .site-nav { display:none; position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; background:#fff; color:var(--ink); padding:8px 0; box-shadow:0 12px 28px rgba(11,11,13,.12); gap:0; }
  .site-nav.is-open { display:flex; }
  .site-nav a { padding:14px clamp(20px,5vw,64px); border-bottom:1px solid var(--line); font-size:1rem; opacity:1; }
  .nav-cta { display:block; color:var(--red) !important; font-weight:900; border-bottom:none !important; }
  .header-action { display:none; }
  .brand { width:70px; height:46px; }
  .hero { min-height:88vh; padding-top:120px; }
  h1 { font-size:clamp(3rem,14vw,4.5rem); }
  .about-inner,.process-inner,.contact,.startup,.system-inner { grid-template-columns:1fr; }
  .system-visual { order:-1; max-width:440px; margin-inline:auto; width:100%; }
  .system-list { justify-items:start; }
  .about-map-wrap { min-height:280px; }
  .trust-bar { grid-template-columns:repeat(2,1fr); }
  .trust-item { border-bottom:1px solid rgba(255,255,255,.08); }
  .trust-item:nth-child(odd) { border-right:1px solid rgba(255,255,255,.08); }
  .trust-item:nth-child(even) { border-right:none; }
  .trust-item:nth-last-child(-n+2) { border-bottom:none; }
  .teaser-grid { grid-template-columns:1fr; }
  .cat-grid { grid-template-columns:1fr; }
  .startup-list { grid-template-columns:1fr; }
  .timeline-item { grid-template-columns:1fr; gap:6px; }
  .site-footer { grid-template-columns:1fr; gap:24px; }
}
@media (max-width:520px) {
  .section { padding-top:64px; padding-bottom:64px; }
  .hero-actions,.button { width:100%; }
  .trust-bar { grid-template-columns:1fr; }
  .trust-item { border-right:none !important; border-bottom:1px solid rgba(255,255,255,.08) !important; }
  .trust-item:last-child { border-bottom:none !important; }
  .cta-strip { flex-direction:column; align-items:flex-start; }
}
