/* United Services Recruiting — Home page styles */

/* ─────────── HERO SAGA: sticky truck + 3 scroll-driven scenes ─────────── */
.hero-saga {
  position: relative;
  height: 400svh;                 /* 3 scenes worth of scroll + 1 vh hold */
  background: radial-gradient(120% 90% at 70% 0%, #16243B 0%, #0A0E16 55%, #080B12 100%);
}
.hero-saga-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  z-index: 1;
}
#truck-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
#truck-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.hero-glow { position: absolute; z-index: 0; width: 60vw; height: 60vw; right: -8vw; top: 8%; background: radial-gradient(circle, rgba(77,163,255,0.16), transparent 62%); filter: blur(20px); pointer-events: none; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 180px; background: linear-gradient(180deg, transparent, var(--ink)); z-index: 2; pointer-events: none; }

/* Each scene sits absolutely on top of the sticky stage at its own scroll offset */
.saga-scene {
  position: absolute;
  left: 0; right: 0;
  height: 100svh;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 96px;
  pointer-events: none;            /* let mouse parallax reach the canvas */
}
.saga-scene .wrap { pointer-events: auto; width: 100%; }
.saga-scene[data-scene="1"] { top: 0; }
.saga-scene[data-scene="2"] { top: 100svh; align-items: center; justify-content: flex-end; text-align: right; }
.saga-scene[data-scene="2"] .wrap { display: flex; justify-content: flex-end; }
/* Scene 3: by then the camera is on the truck's left side, so right-align
   the copy to keep it readable against the empty side of the canvas. */
.saga-scene[data-scene="3"] { top: 200svh; align-items: center; justify-content: flex-end; text-align: right; }
.saga-scene[data-scene="3"] .wrap { display: flex; justify-content: flex-end; }

.hero-inner { max-width: 720px; }
.saga-scene[data-scene="2"] .hero-inner,
.saga-scene[data-scene="3"] .hero-inner { max-width: 620px; }
.saga-scene h1, .saga-scene .saga-h { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; margin: 22px 0 0; font-family: var(--font-display); color: var(--white); letter-spacing: -0.025em; font-weight: 800; }
.saga-scene[data-scene="2"] .saga-h,
.saga-scene[data-scene="3"] .saga-h { font-size: clamp(38px, 5.6vw, 72px); }
.saga-scene h1 .l2 { color: var(--white); }
.hero-sub { font-size: clamp(16px, 2vw, 20px); color: var(--silver-txt); max-width: 480px; margin: 26px 0 38px; line-height: 1.6; }
.saga-scene[data-scene="2"] .hero-sub,
.saga-scene[data-scene="3"] .hero-sub { margin-left: auto; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.saga-scene[data-scene="2"] .hero-cta,
.saga-scene[data-scene="3"] .hero-cta { justify-content: flex-end; }
.hero-stats { display: flex; gap: 38px; margin-top: 54px; flex-wrap: wrap; }
.hero-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 32px; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.hero-stat .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--silver-dim); margin-top: 8px; }

/* Scene 2: equipment / route chips */
.saga-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; justify-content: flex-end; max-width: 460px; margin-left: auto; }
.saga-chips span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(199,208,219,0.18); color: var(--silver-txt); background: rgba(8,11,18,0.5); backdrop-filter: blur(8px); }

@media (max-width: 760px) {
  /* Mobile: collapse the saga to a single non-sticky hero + plain stacked scenes */
  .hero-saga { height: auto; }
  .hero-saga-stage { position: relative; height: 58vh; }
  .saga-scene { position: relative; height: auto; min-height: 0; top: auto !important; padding: 40px 0 24px; text-align: left !important; display: block; }
  .saga-scene[data-scene="2"] .wrap,
  .saga-scene[data-scene="2"] .hero-inner,
  .saga-scene[data-scene="2"] .hero-sub,
  .saga-scene[data-scene="2"] .hero-cta,
  .saga-scene[data-scene="2"] .saga-chips,
  .saga-scene[data-scene="3"] .wrap,
  .saga-scene[data-scene="3"] .hero-inner,
  .saga-scene[data-scene="3"] .hero-sub,
  .saga-scene[data-scene="3"] .hero-cta { max-width: 100%; margin-left: 0; margin-right: 0; justify-content: flex-start; text-align: left; }
  .saga-chips { justify-content: flex-start; max-width: 100%; }
  #truck-stage { opacity: 0.6; }
  .hero-inner { max-width: 100%; }
  .scroll-cue { display: none; }
}

/* ─────────── Section heading block ─────────── */
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(32px, 5vw, 56px); margin-top: 18px; line-height: 1.0; }
.sec-head p { color: var(--silver-txt); font-size: clamp(16px,1.6vw,18px); margin-top: 18px; max-width: 540px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ─────────── MATCHER ─────────── */
.matcher { background: linear-gradient(180deg, #080B12, #0C1828 50%, #080B12); }
.matcher-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 940px) { .matcher-grid { grid-template-columns: 1fr; gap: 28px; } }

.matcher-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.matcher-chip {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(26,42,68,0.6), rgba(10,14,22,0.55));
  border: 1px solid rgba(199,208,219,0.16);
  color: var(--silver-txt);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform .25s var(--ease-out), border-color .25s, color .25s, background .25s, box-shadow .25s;
}
.matcher-chip:hover { transform: translateY(-2px); border-color: rgba(199,208,219,0.4); color: #fff; }
.matcher-chip .mc-check { width: 0; height: 18px; overflow: hidden; display: inline-flex; align-items: center; color: var(--steel); transition: width .28s var(--ease-out); }
.matcher-chip .mc-check svg { width: 18px; height: 18px; flex: none; }
.matcher-chip.on { color: #fff; border-color: rgba(124,192,255,0.7); background: linear-gradient(180deg, rgba(34,70,120,0.75), rgba(14,30,52,0.7)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(77,163,255,0.25), 0 10px 30px -10px var(--steel-glow); }
.matcher-chip.on .mc-check { width: 24px; }
.matcher-chip .mc-shine { position: absolute; top: 0; left: -60%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent); transform: skewX(-18deg); opacity: 0; }
.matcher-chip.shine .mc-shine { animation: chipShine .7s var(--ease-io); }
@keyframes chipShine { 0%{ left:-60%; opacity:0 } 12%{opacity:1} 100%{ left:130%; opacity:0 } }

/* result panel */
.matcher-result { position: relative; min-height: 420px; border-radius: 22px; padding: 30px; background: linear-gradient(180deg, rgba(20,34,56,0.6), rgba(8,12,20,0.6)); border: 1px solid rgba(199,208,219,0.12); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 30px 70px -34px rgba(0,0,0,0.9); transition: border-color .4s, box-shadow .4s; overflow: hidden; }
.matcher-result.yes { border-color: rgba(124,192,255,0.4); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(77,163,255,0.18), 0 30px 80px -30px rgba(77,163,255,0.3); }
.matcher-result::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 80% 0%, rgba(77,163,255,0.14), transparent 60%); opacity: 0; transition: opacity .5s; }
.matcher-result.yes::before { opacity: 1; }

.mr-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; height: 360px; gap: 14px; }
.mr-empty-ico { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(199,208,219,0.18); color: var(--silver-dim); }
.mr-empty-ico svg { width: 26px; height: 26px; }
.mr-empty-t { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.mr-empty-s { color: var(--silver-dim); font-size: 14px; max-width: 280px; }

.mr-top { position: relative; z-index: 1; }
.mr-count { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 6px; }
.mr-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 9vw, 84px); line-height: 0.9; color: #fff; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.mr-unit { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--silver-dim); }
.mr-head { font-size: 26px; margin-top: 4px; }
.mr-offers { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
@media (max-width: 480px) { .mr-offers { grid-template-columns: 1fr; } }
.mr-offer { padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(199,208,219,0.12); animation: offerIn .45s var(--ease-out); }
@keyframes offerIn { from { transform: translateY(8px) } to { transform: none } }
.mr-offer-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mr-offer-h b { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; }
.mr-pay { font-family: var(--font-mono); font-size: 12px; color: var(--steel-hi); white-space: nowrap; }
.mr-offer-tags { display: flex; gap: 6px; margin: 8px 0 6px; }
.mr-offer-tags span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver-dim); padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(199,208,219,0.14); }
.mr-offer-note { font-size: 12px; color: var(--silver-txt); }
.mr-cta { width: 100%; position: relative; z-index: 1; }

/* ─────────── WHY US (numbered) ─────────── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(199,208,219,0.1); border: 1px solid rgba(199,208,219,0.1); border-radius: 20px; overflow: hidden; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.why-item { position: relative; padding: 40px; background: linear-gradient(180deg, rgba(18,30,50,0.5), rgba(8,12,20,0.5)); transition: background .4s; }
.why-item:hover { background: linear-gradient(180deg, rgba(26,42,68,0.7), rgba(10,16,28,0.6)); }
.why-num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--steel); letter-spacing: 0.1em; }
.why-item h3 { font-size: 26px; margin: 18px 0 12px; line-height: 1.1; }
.why-item p { color: var(--silver-txt); font-size: 15px; line-height: 1.6; }
.why-item .why-ico { position: absolute; top: 36px; right: 36px; width: 26px; height: 26px; color: var(--silver-dim); }

/* ─────────── EQUIPMENT — full-bleed trailer convoy ─────────── */
.equip { background: linear-gradient(180deg, #080B12, #0B1626 50%, #080B12); }

.equip-convoy {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 56px 0 36px;
  padding: 16px 0 8px;
  /* Vertical scroll stays usable on touch; horizontal drags scrub. */
  touch-action: pan-y;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
  /* Side fade so trailers slide in/out smoothly instead of clipping hard */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.equip-convoy.dragging { cursor: grabbing; }
.equip-track {
  display: flex;
  gap: clamp(56px, 7vw, 96px);
  width: max-content;
  align-items: flex-end;
  will-change: transform;
}

.equip-rig {
  flex: 0 0 auto;
  width: 320px;
  text-align: center;
  pointer-events: none;             /* drag handled on .equip-convoy */
}
.equip-rig-svg {
  width: 300px;
  height: 110px;
  color: rgba(124, 192, 255, 0.92);
  filter: drop-shadow(0 0 18px rgba(77, 163, 255, 0.32));
  display: block;
  margin: 0 auto 18px;
}
.equip-rig h4 { font-size: 16px; color: #fff; margin: 0 0 4px; font-family: var(--font-display); font-weight: 700; }
.equip-rig .ec-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver-dim); }

@media (max-width: 600px) {
  .equip-rig { width: 240px; }
  .equip-rig-svg { width: 220px; height: 80px; margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .equip-track { transform: none !important; }
}

/* ─────────── Routes marquee ─────────── */
.routes-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 36px 0 0;
  padding: 14px 0;
  touch-action: pan-y;
  -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.routes-track {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 70px);
  width: max-content;
  will-change: transform;
}
.route-word {
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(199,208,219,0.78);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.route-word b {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.005em;
  font-size: clamp(16px, 1.6vw, 19px);
  text-transform: none;
  background: linear-gradient(180deg, #ffffff 0%, #d6e6ff 55%, #8aa9d6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(124,192,255,0.55));
  position: relative;
}
/* Steel-blue shine sweeping across the bold word, like a chrome reflection */
.route-word b::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    transparent 30%,
    rgba(255,255,255,0.9) 50%,
    transparent 70%);
  background-size: 220% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: routeShine 6s linear infinite;
  pointer-events: none;
}
.route-word em {
  font-style: normal;
  color: var(--steel);
  opacity: 0.85;
}
.route-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--steel);
  box-shadow: 0 0 12px var(--steel-glow), 0 0 24px rgba(77,163,255,0.35);
  flex: 0 0 6px;
}

@keyframes routeShine {
  0%   { background-position: 200% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .routes-track { transform: none !important; }
  .route-word b::after { animation: none; }
}

/* (Legacy .routes / .route-pill styles removed — replaced by .routes-marquee above.) */

/* ─────────── OFFERS GRID ─────────── */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .offers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .offers-grid { grid-template-columns: 1fr; } }
.offer-card { padding: 24px; }
.offer-card .oc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.offer-card .oc-co { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.offer-card .oc-loc { font-family: var(--font-mono); font-size: 11px; color: var(--silver-dim); margin-top: 4px; letter-spacing: 0.05em; }
.offer-card .oc-pay { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--steel-hi); white-space: nowrap; letter-spacing: -0.02em; }
.offer-card .oc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.offer-card .oc-meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(199,208,219,0.16); color: var(--silver-txt); }
.offer-card .oc-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid rgba(199,208,219,0.1); }
.offer-card .oc-foot a { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #fff; display: inline-flex; align-items: center; gap: 6px; transition: gap .25s, color .25s; }
.offer-card .oc-foot a svg { width: 16px; height: 16px; }
.offer-card:hover .oc-foot a { gap: 10px; color: var(--steel-hi); }

/* ─────────── HOW IT WORKS — sticky stacking cards ─────────── */
.how-sticky { position: relative; padding-block: 0; }
.how-intro { padding-block: clamp(80px, 11vw, 160px) clamp(40px, 6vw, 80px); }
.how-intro .sec-head p { font-size: clamp(16px, 1.7vw, 19px); color: var(--silver-txt); margin-top: 18px; max-width: 540px; margin-inline: auto; }

.how-stack {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(80px, 11vw, 160px);
}

.how-step {
  position: sticky;
  margin-bottom: 28px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #16243B 0%, #0A1322 60%, #080B12 100%);
  border: 1px solid rgba(199,208,219,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 90px -40px rgba(0,0,0,0.9);
}
/* Stagger the sticky tops so cards visibly stack as you scroll past */
.how-step[data-step="01"] { top: 90px; }
.how-step[data-step="02"] { top: 110px; }
.how-step[data-step="03"] { top: 130px; }
.how-step::after {
  content: "";
  position: absolute; top: 0; left: 24px; right: 24px; height: 1px;
  background: var(--grad-chrome-edge); opacity: .7;
}

.how-step-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(36px, 5.5vw, 72px);
  min-height: 540px;
}
@media (max-width: 820px) {
  .how-step-inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 36px 28px; }
}

.how-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 18vw, 240px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  background: var(--grad-chrome-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.1));
}

.how-step-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: 14px;
}

.how-step h3 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.98;
  margin: 0 0 22px;
}

.how-step-lead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--silver-txt);
  line-height: 1.55;
  margin: 0 0 28px;
}

.how-step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 14px;
}
.how-step-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--silver-txt);
  line-height: 1.55;
}
.how-step-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--steel), transparent);
}
.how-step-list b {
  color: #fff;
  font-weight: 600;
  margin-right: 8px;
}

.how-step-note {
  font-size: 14px;
  color: var(--silver-dim);
  line-height: 1.6;
  border-top: 1px solid rgba(199,208,219,0.1);
  padding-top: 18px;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .how-step { position: static; }
}

/* ─────────── CTA BAND ─────────── */
.cta-band { position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; border-radius: 28px; padding: clamp(40px, 7vw, 80px); text-align: center; background: linear-gradient(160deg, #16243B, #0A1322); border: 1px solid rgba(199,208,219,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 40px 90px -40px rgba(0,0,0,0.9); }
.cta-inner h2 { font-size: clamp(34px, 6vw, 68px); line-height: 0.98; }
.cta-inner p { color: var(--silver-txt); font-size: 18px; margin: 22px auto 36px; max-width: 520px; }
.cta-inner .hero-cta { justify-content: center; }
.cta-band .glow { position: absolute; width: 50vw; height: 50vw; left: 50%; top: 30%; transform: translateX(-50%); background: radial-gradient(circle, rgba(77,163,255,0.16), transparent 60%); filter: blur(30px); z-index: 0; }
