/* United Services Recruiting — cinematic marketing site
   Grounded in the U.S. Recruiting design system (navy + chrome silver),
   extended into a dark, premium, metallic marketing surface. */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Ink / navy field */
  --ink:        #080B12;   /* near-black base */
  --ink-2:      #0A0E16;
  --navy-deep:  #0E1A2C;
  --navy:       #16243B;   /* brand navy (logo left) */
  --navy-2:     #1A2A44;
  --navy-line:  #233a5a;

  /* Chrome / silver */
  --chrome-1:   #FFFFFF;
  --chrome-2:   #E9EDF2;
  --chrome-3:   #C3CAD3;
  --chrome-4:   #8A95A3;
  --silver-txt: #C7D0DB;
  --silver-dim: #8B97A8;

  /* Accent — luminous steel-blue, used sparingly */
  --steel:      #4DA3FF;
  --steel-hi:   #7CC0FF;
  --steel-glow: rgba(77,163,255,0.45);

  --white:      #FFFFFF;

  /* Chrome gradients */
  --grad-chrome:       linear-gradient(177deg,#FFFFFF 0%,#EDF1F5 24%,#C3CAD3 56%,#8A95A3 84%,#B7C0CC 100%);
  --grad-chrome-text:  linear-gradient(180deg,#FFFFFF 0%,#E9EDF2 32%,#C3CAD3 62%,#8A95A3 100%);
  --grad-chrome-edge:  linear-gradient(180deg,rgba(255,255,255,.9),rgba(138,149,163,.15) 40%,rgba(255,255,255,.5));

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-io:  cubic-bezier(0.65,0,0.35,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--silver-txt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.55;
}

::selection { background: rgba(77,163,255,0.30); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Force the native <select> dropdown to use dark colors instead of OS white.
   Supported in Chrome/Edge/Firefox; Safari uses system colors regardless. */
select option { background-color: #0F1A2C; color: #fff; }
select option:checked,
select option:hover { background: linear-gradient(0deg, rgba(77,163,255,0.25), rgba(77,163,255,0.25)), #0F1A2C; color: #fff; }

h1,h2,h3,h4 { font-family: var(--font-display); color: var(--white); margin: 0; letter-spacing: -0.025em; line-height: 1.02; font-weight: 800; }
p { margin: 0; }

/* ─────────── Layout helpers ─────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(80px, 11vw, 160px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--silver-dim);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow .num { color: var(--steel); }
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--steel), transparent);
}

.chrome-text {
  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.12));
}
.steel-text { color: var(--steel); }

/* ─────────── Buttons ─────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), color .2s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.97); }

.btn-chrome {
  background: var(--grad-chrome);
  color: #10182A;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 6px rgba(138,149,163,.45), 0 10px 28px -8px rgba(0,0,0,.7);
}
.btn-chrome:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,1), inset 0 -2px 8px rgba(138,149,163,.5), 0 14px 38px -8px rgba(120,180,255,.4); }

.btn-steel {
  background: linear-gradient(180deg, var(--steel-hi), var(--steel));
  color: #04142B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 28px -6px var(--steel-glow);
}
.btn-steel:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 12px 40px -6px var(--steel-glow); }

.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--white);
  border-color: rgba(199,208,219,0.22);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: rgba(199,208,219,0.5); background: rgba(255,255,255,0.05); }

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

/* ─────────── Custom cursor ─────────── */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 999px; mix-blend-mode: difference; }
.cursor-dot { width: 6px; height: 6px; background: #fff; transform: translate(-50%,-50%); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); transform: translate(-50%,-50%); transition: width .25s var(--ease-out), height .25s var(--ease-out), background .25s, border-color .25s; }
.cursor-ring.hot { width: 64px; height: 64px; background: rgba(77,163,255,.12); border-color: rgba(124,192,255,.8); }
body.cursor-on { cursor: none; }
body.cursor-on a, body.cursor-on button { cursor: none; }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none !important; } body.cursor-on { cursor: auto; } }

/* ─────────── Backgrounds: blueprint grid + dot matrix ─────────── */
.bp-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(123,150,190,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,150,190,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%);
}
.dot-matrix::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(140,165,200,0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 10%, transparent 70%);
}

/* ─────────── Reveal-on-scroll ─────────── */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ─────────── Navbar (glass pill) ─────────── */
.nav-shell { position: fixed; top: 0; left: 0; right: 0; z-index: 800; display: flex; justify-content: center; padding: 18px var(--gutter); transition: padding .35s var(--ease-out); }
.nav-shell.shrink { padding-top: 12px; }
.nav {
  width: 100%; max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 11px 12px 11px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(22,36,59,0.72), rgba(10,14,22,0.62));
  border: 1px solid rgba(199,208,219,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 50px -18px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .3s, background .3s;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 26px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.nav-brand .bt { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.nav-brand .bs { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--silver-dim); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; font-size: 14px; font-weight: 500; color: var(--silver-txt); padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px; background: linear-gradient(90deg, transparent, var(--steel), transparent); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; background: none; border: none; color: #fff; padding: 8px; }

@media (max-width: 920px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* mobile menu */
.m-menu { position: fixed; inset: 0; z-index: 790; background: rgba(8,11,18,0.96); backdrop-filter: blur(12px); display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--gutter); transform: translateY(-100%); transition: transform .5s var(--ease-io); }
.m-menu.open { transform: none; }
.m-menu a { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: #fff; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-menu .row { display: flex; gap: 12px; margin-top: 24px; }
.m-close { position: absolute; top: 24px; right: var(--gutter); background: none; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 999px; width: 44px; height: 44px; font-size: 20px; }

/* ─────────── Cards ─────────── */
.card {
  position: relative; border-radius: 18px;
  background: linear-gradient(180deg, rgba(26,42,68,0.55), rgba(10,14,22,0.5));
  border: 1px solid rgba(199,208,219,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 20px 50px -28px rgba(0,0,0,0.9);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(199,208,219,0.28); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 30px 60px -28px rgba(0,0,0,0.95); }

/* thin chrome top-edge accent */
.edge-top::after {
  content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  background: var(--grad-chrome-edge); opacity: .7;
}

/* ─────────── Footer ─────────── */
.footer { position: relative; background: linear-gradient(180deg, var(--ink), #05070C); border-top: 1px solid rgba(199,208,219,0.1); padding-block: 72px 36px; overflow: hidden; }
.footer .wrap { position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { width: 40px; margin-bottom: 18px; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver-dim); margin: 0 0 16px; font-weight: 600; }
.foot-col a { display: block; font-size: 14px; color: var(--silver-txt); padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(199,208,219,0.1); flex-wrap: wrap; }
.foot-fam { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--silver-dim); flex-wrap: wrap; }
.foot-fam b { color: var(--silver-txt); font-weight: 500; }
.foot-fam .sep { opacity: .4; }
.foot-fam .me { color: #fff; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* status pill (shared) */
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(199,208,219,0.18); color: var(--silver-txt); background: rgba(255,255,255,0.03); }
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--steel); box-shadow: 0 0 8px var(--steel-glow); }
.pill.live .dot { background: #10E0A0; box-shadow: 0 0 8px rgba(16,224,160,.6); animation: blink 1.8s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

/* loader */
#loader { position: fixed; inset: 0; z-index: 9000; background: var(--ink); display: flex; align-items: center; justify-content: center; transition: opacity .8s var(--ease-out), visibility .8s; }
#loader.done { opacity: 0; visibility: hidden; }
.load-stage { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; }
.load-stage img { width: 84px; opacity: 0; }
.load-bar { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); width: 140px; height: 2px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--chrome-4), var(--chrome-1)); border-radius: 2px; }
.load-cap { position: absolute; bottom: -64px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver-dim); white-space: nowrap; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--silver-dim); z-index: 5; }
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--steel), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: #fff; animation: scrolldn 1.8s var(--ease-io) infinite; }
@keyframes scrolldn { 0%{top:-50%} 100%{top:100%} }
