/* ==========================================================================
   SWAT — Salvatores L.S.P.D public site
   Palette is aligned with the Command Console (gold on tinted black) and the
   console's default squad colours (Alpha red, Delta green, Shadow violet).
   ========================================================================== */

:root {
  --ink-0: #08090c;
  --ink-1: #0c0e12;
  --ink-2: #12151b;
  --ink-3: #191d25;
  --line: rgba(233, 226, 205, .09);
  --line-2: rgba(233, 226, 205, .16);

  --gold: #e5b53a;
  --gold-hi: #f6d77a;
  --gold-lo: #8c6a15;
  --gold-a: rgba(229, 181, 58, .14);

  --text: #e9e5da;
  --muted: #a19d90;
  --dim: #6c6a62;

  --alpha: #e0645a;  --alpha-soft: #fca5a5;  --alpha-deep: #3a1515;
  --delta: #45c69b;  --delta-soft: #6ee7b7;  --delta-deep: #06352a;
  --bravo: #4aa8ff; --bravo-soft: #bfdcff; --bravo-deep: #0b2447;
  --shadow: #a585ec; --shadow-soft: #d8b4fe; --shadow-deep: #2a0b4d;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Barlow", "Helvetica Neue", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-on body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--ink-0); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink-0); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Grain overlay (fixed, non-interactive) */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.pip { width: 7px; height: 7px; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-a); animation: pip 2.4s ease-in-out infinite; }
@keyframes pip { 50% { box-shadow: 0 0 0 7px rgba(229, 181, 58, 0); } }

.h2 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 68px); line-height: .98; letter-spacing: .01em; color: var(--text);
  text-wrap: balance;
}
.h2 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --clip: 14px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 15px 26px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #c99a26 100%);
  color: #120e04; font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - var(--clip)) 0, 100% var(--clip), 100% 100%, var(--clip) 100%, 0 calc(100% - var(--clip)));
  transition: transform .35s var(--ease-out), filter .35s, box-shadow .35s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { --clip: 9px; padding: 10px 16px; font-size: 14px; letter-spacing: .12em; }
.btn--xl { --clip: 18px; padding: 21px 34px; font-size: clamp(18px, 1.6vw, 21px); letter-spacing: .16em; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 4px;
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid var(--line-2); transition: color .25s, border-color .25s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

/* ==========================================================================
   Entrance sequence
   ========================================================================== */
#intro { display: none; }
html.intro-on #intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; pointer-events: auto;
}
.intro-shutter {
  position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink-0);
  transition: transform 1.05s cubic-bezier(.77, 0, .18, 1);
}
.intro-shutter--top { top: 0; border-bottom: 1px solid rgba(229, 181, 58, .35); }
.intro-shutter--bottom { bottom: 0; border-top: 1px solid rgba(229, 181, 58, .35); }
.intro-core { position: relative; z-index: 2; display: grid; justify-items: center; gap: 26px; transition: opacity .45s, transform .6s var(--ease); }
.intro-emblem { width: clamp(120px, 18vw, 180px); height: auto; filter: drop-shadow(0 0 40px rgba(229, 181, 58, .25)); animation: introEmblem 1.4s var(--ease-out) both; }
.intro-emblem .em-outer, .intro-emblem .em-inner { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes introEmblem { from { opacity: 0; transform: scale(.86); filter: blur(6px); } to { opacity: 1; transform: none; } }
.intro-text { position: relative; height: 18px; width: 320px; text-align: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; }
.intro-line { position: absolute; inset: 0; color: var(--muted); animation: fadeIn .5s .4s both; }
.intro-line--ok { color: var(--gold); opacity: 0; animation: fadeIn .4s 1.65s both; }
.intro-line:not(.intro-line--ok) { animation: fadeIn .5s .4s both, fadeOut .3s 1.5s forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }
.intro-bar { width: 220px; height: 2px; background: var(--line-2); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: bar 1.7s .3s var(--ease) forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.intro-skip {
  position: absolute; right: 24px; bottom: 24px; z-index: 3; background: none; border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; cursor: pointer;
}
.intro-skip:hover { color: var(--gold); border-color: var(--gold); }
#intro.leave .intro-core { opacity: 0; transform: scale(1.06); }
#intro.leave .intro-skip { opacity: 0; }
#intro.leave .intro-shutter--top { transform: translateY(-101%); }
#intro.leave .intro-shutter--bottom { transform: translateY(101%); }
#intro.leave { pointer-events: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(8, 9, 12, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav-inner { max-width: calc(var(--wrap) + 120px); margin: 0 auto; height: var(--nav-h); padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 34px; height: auto; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .16em; }
.brand-text small { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 8px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .25s;
}
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-console { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-console:hover { color: var(--gold); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .35s var(--ease-out); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -4; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%;
  transform: scaleX(-1) scale(1.12); transform-origin: 50% 60%;
  animation: kenburns 28s ease-in-out infinite alternate; filter: saturate(.9) contrast(1.05);
}
@keyframes kenburns { from { transform: scaleX(-1) scale(1.12) translateX(0); } to { transform: scaleX(-1) scale(1.02) translateX(-1.2%); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .96) 0%, rgba(8, 9, 12, .82) 32%, rgba(8, 9, 12, .25) 62%, rgba(8, 9, 12, .35) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, transparent 22%, transparent 62%, var(--ink-0) 100%);
}
.hero-sweep {
  position: absolute; inset: -20% -40%; z-index: -2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 42%, rgba(246, 215, 122, .07) 48%, rgba(246, 215, 122, .13) 50%, rgba(246, 215, 122, .07) 52%, transparent 58%);
  animation: sweep 11s ease-in-out infinite;
}
@keyframes sweep { 0% { transform: translateX(-35%); } 55%, 100% { transform: translateX(35%); } }
.hero-dust { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 20% 45%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 20% 45%, #000, transparent 75%);
}
.hero-hud { position: absolute; inset: calc(var(--nav-h) + 14px) 22px 120px; pointer-events: none; z-index: -1; }
.hud-corner { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(229, 181, 58, .55); }
.hud-corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hero-inner { flex: 1; display: flex; align-items: center; padding-top: calc(var(--nav-h) + 40px); padding-bottom: 60px; }
.hero-copy { max-width: 720px; }
.hero-emblem { position: relative; width: clamp(96px, 10vw, 136px); margin-bottom: 30px; }
.hero-emblem svg { width: 100%; height: auto; position: relative; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(229, 181, 58, .22)); }
.hero-emblem-ring {
  position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px dashed rgba(229, 181, 58, .28); animation: spin 40s linear infinite;
}
.hero-emblem-ring::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px solid rgba(229, 181, 58, .1);
  border-top-color: rgba(229, 181, 58, .6);
  animation: spin2 6s linear infinite reverse;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin2 { to { transform: rotate(360deg); } }
.hero .eyebrow { margin-bottom: 22px; }
.hero-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(64px, 11.5vw, 156px); line-height: .86; letter-spacing: -.005em; margin-bottom: 28px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .line > span { display: inline-block; }
.hero-title .gold {
  background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, #a9801c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: #c9c4b6; max-width: 52ch; margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.hero-ctas .btn { box-shadow: 0 18px 50px -12px rgba(229, 181, 58, .45); }

.hero-strip { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 9, 12, .3), rgba(8, 9, 12, .85)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 22px 20px 24px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--text); letter-spacing: .04em; }
.stat span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.stat--clock b { color: var(--gold); font-variant-numeric: tabular-nums; }
.live { font-style: normal; color: #7bd88f; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 6px 1px 2px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.scroll-cue { position: absolute; right: var(--pad); bottom: 128px; width: 26px; height: 42px; border: 1px solid var(--line-2); border-radius: 14px; display: grid; justify-items: center; padding-top: 7px; }
.scroll-cue span { width: 2px; height: 8px; background: var(--gold); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }

/* Hero choreography (runs after intro) */
.js [data-hero] { opacity: 0; transform: translateY(26px); }
.js .hero-title [data-hero] { transform: translateY(105%); opacity: 1; }
.js body.ready [data-hero] { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js body.ready [data-hero="1"] { transition-delay: .05s; }
.js body.ready [data-hero="2"] { transition-delay: .2s; }
.js body.ready [data-hero="3"] { transition-delay: .3s; }
.js body.ready [data-hero="4"] { transition-delay: .44s; }
.js body.ready [data-hero="5"] { transition-delay: .62s; }
.js body.ready [data-hero="6"] { transition-delay: .76s; }
.js body.ready [data-hero="7"] { transition-delay: .95s; }
.js .hero-media img { opacity: 0; }
.js body.ready .hero-media img { opacity: 1; transition: opacity 1.8s ease; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-num { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--ink-0); background: var(--gold); padding: 3px 9px; letter-spacing: .08em; }
.sec-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sec-rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- 01 Overview ---------- */
.overview { background: radial-gradient(800px 500px at 90% 20%, rgba(229, 181, 58, .05), transparent 60%); }
.ov-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.ov-copy .h2 { margin-bottom: 28px; }
.ov-copy .lead { margin-bottom: 18px; color: #c9c4b6; }
.ov-copy > p:not(.lead) { color: var(--muted); max-width: 60ch; }
.pillars { margin-top: 44px; border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background .3s, padding .4s var(--ease-out); }
.pillars li:hover { background: linear-gradient(90deg, var(--gold-a), transparent 70%); padding-left: 14px; }
.pillar-n { font-family: var(--f-display); font-weight: 800; font-size: 30px; color: var(--gold); line-height: 1.1; }
.pillars h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pillars p { color: var(--muted); font-size: 16px; }

.ov-visual { margin: 0; position: sticky; top: calc(var(--nav-h) + 30px); }
.ov-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line-2); clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px)); }
.ov-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.06); transition: transform 1.6s var(--ease-out); filter: saturate(.85); }
.ov-visual:hover .ov-frame img { transform: scale(1.12); }
.ov-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8, 9, 12, .85)); }
.ov-tag { position: absolute; z-index: 2; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; background: rgba(8, 9, 12, .75); border: 1px solid rgba(229, 181, 58, .4); color: var(--gold); backdrop-filter: blur(4px); }
.ov-tag--a { top: 22px; left: 22px; }
.ov-tag--b { bottom: 24px; right: 22px; color: var(--text); border-color: var(--line-2); }
.ov-scan { position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 1; background: linear-gradient(180deg, transparent, rgba(229, 181, 58, .14), transparent); animation: scan 6s linear infinite; pointer-events: none; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(900px); } }
.ov-visual figcaption { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border-top: 1px solid var(--line); }
.ov-visual figcaption div { padding: 14px 16px 0 0; display: grid; gap: 4px; }
.ov-visual figcaption b { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ov-visual figcaption span { color: var(--muted); font-size: 15px; }

/* ---------- 02 Structure ---------- */
.structure { background: linear-gradient(180deg, var(--ink-0), var(--ink-1) 30%, var(--ink-1) 70%, var(--ink-0)); border-top: 1px solid var(--line); }
.st-intro, .sel-intro, .div-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 70px; align-items: end; margin-bottom: clamp(50px, 6vw, 80px); }

.chart {
  --gap: 46px;
  position: relative; display: grid; gap: var(--gap); padding: 52px clamp(56px, 5vw, 70px) 52px clamp(110px, 12vw, 150px);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%,
    radial-gradient(600px 300px at 50% 0%, rgba(229, 181, 58, .07), transparent 70%),
    var(--ink-2);
  border: 1px solid var(--line);
}
.tier { position: relative; display: flex; justify-content: center; }
.tier-label { position: absolute; left: calc(-1 * clamp(90px, 10vw, 120px)); top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.node {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; min-width: min(100%, 360px);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-1)); border: 1px solid var(--line-2);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .3s;
}
.node:hover { transform: translateY(-3px); border-color: var(--c, var(--gold)); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--c, var(--gold)) inset; }
.node b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .06em; line-height: 1.1; }
.node span:not(.node-badge) { display: block; font-size: 14px; color: var(--muted); }
.node-badge { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 22px; color: var(--c, var(--gold)); border: 1px solid currentColor; background: color-mix(in srgb, var(--c, var(--gold)) 10%, transparent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.node-badge svg { width: 22px; height: 22px; }
.node--chief { --c: var(--gold); border-color: rgba(229, 181, 58, .5); box-shadow: 0 0 60px -20px rgba(229, 181, 58, .4); }
.node--chief b { color: var(--gold-hi); }
.node--mgmt { --c: #d7dbe2; }
.branch { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; }
.branch .node { min-width: 0; }
@media (min-width: 901px) {
  .tier--2::before, .tier--2::after, .tier--3 .node::before, .tier--4 .squad::before { /* vertical connectors */
    content: ""; position: absolute; left: 50%; width: 2px; transform: translateX(-50%) scaleY(0); transform-origin: top;
    background: rgba(229, 181, 58, .55); transition: transform .5s var(--ease);
  }
  .tier--2::before { top: calc(-1 * var(--gap)); height: var(--gap); background: linear-gradient(180deg, var(--gold), rgba(229, 181, 58, .55)); transition-delay: .25s; }
  .tier--2::after { top: 100%; height: calc(var(--gap) / 2); transition-delay: .55s; }
  .tier--3 .branch::before { /* horizontal bus */
    content: ""; position: absolute; left: 16.66%; right: 16.66%; top: calc(-1 * var(--gap) / 2); height: 2px; background: rgba(229, 181, 58, .55);
    transform: scaleX(0); transition: transform .8s .75s var(--ease);
  }
  .tier--3 .node::before { top: calc(-1 * var(--gap) / 2 - 1px); height: calc(var(--gap) / 2 + 1px); background: color-mix(in srgb, var(--c) 75%, transparent); transition-delay: 1.3s; }
  .tier--4 .squad::before { top: calc(-1 * var(--gap) - 1px); height: var(--gap); background: color-mix(in srgb, var(--c) 60%, transparent); transition-delay: 1.6s; }
  .chart.in .tier--3 .branch::before, html:not(.js) .tier--3 .branch::before { transform: scaleX(1); }
  .chart.in .tier--2::before, .chart.in .tier--2::after, .chart.in .tier--3 .node::before, .chart.in .tier--4 .squad::before,
  html:not(.js) .tier--2::before, html:not(.js) .tier--2::after, html:not(.js) .tier--3 .node::before, html:not(.js) .tier--4 .squad::before { transform: translateX(-50%) scaleY(1); }
}
.squad { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 12px; border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 5%, transparent); transition: background .3s; }
.squad:hover { background: color-mix(in srgb, var(--c) 11%, transparent); }
.squad b { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.ops { display: flex; gap: 7px; }
.ops i { width: 14px; height: 18px; background: var(--c); opacity: .85; clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); transform: scale(0); transition: transform .4s var(--ease-out); }
.chart.in .ops i { transform: scale(1); }
.chart.in .ops i:nth-child(1) { transition-delay: 1.9s; } .chart.in .ops i:nth-child(2) { transition-delay: 1.96s; }
.chart.in .ops i:nth-child(3) { transition-delay: 2.02s; } .chart.in .ops i:nth-child(4) { transition-delay: 2.08s; }
.chart.in .ops i:nth-child(5) { transition-delay: 2.14s; }
.chart .tier { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.chart.in .tier { opacity: 1; transform: none; }
.chart.in .tier--2 { transition-delay: .3s; } .chart.in .tier--3 { transition-delay: .6s; } .chart.in .tier--4 { transition-delay: 1.1s; }
.js .chart[data-reveal] { opacity: 1; transform: none; }
html:not(.js) .chart .tier, html:not(.js) .ops i { opacity: 1; transform: none; }
.hc-bracket { position: absolute; right: 22px; top: 40px; height: calc(75% - 30px); width: 14px; border: 1px solid rgba(229, 181, 58, .45); border-left: 0; }
.hc-bracket b { position: absolute; left: 100%; top: 50%; transform: translate(-50%, -50%) rotate(90deg) translateY(-12px); white-space: nowrap; font-family: var(--f-mono); font-weight: 400; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 0; }
.fact { padding: 28px 28px 32px; border-left: 1px solid var(--line); transition: background .3s; }
.fact:first-child { border-left: 0; }
.fact:hover { background: rgba(229, 181, 58, .035); }
.fact-k { display: block; font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: 8px; }
.fact p { color: var(--muted); font-size: 15.5px; }
.facts .fact:nth-child(2) { --d: .1s; } .facts .fact:nth-child(3) { --d: .2s; }

/* ---------- 03 Selection pipeline ---------- */
.selection { border-top: 1px solid var(--line); }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: s; }
.pipeline::before, .pipeline::after { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: var(--line-2); }
.pipeline::after { background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--gold-hi)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s .2s var(--ease); box-shadow: 0 0 14px rgba(229, 181, 58, .5); }
.js .pipeline[data-reveal] { opacity: 1; transform: none; }
.pipeline.in::after, html:not(.js) .pipeline::after { transform: scaleX(1); }
.stage { position: relative; padding-top: 80px; }
.stage-dot { position: absolute; top: 0; left: 0; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink-3); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .5s, border-color .5s; }
.stage-dot i { font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--muted); transition: color .5s; }
.pipeline.in .stage-dot { background: var(--gold); }
.pipeline.in .stage-dot i { color: var(--ink-0); }
.stage-tag { display: inline-block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(229, 181, 58, .35); padding: 3px 8px; margin-bottom: 14px; }
.stage h3 { font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stage p { color: var(--muted); font-size: 15.5px; }
.stage { opacity: .35; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
html:not(.js) .stage, .pipeline.in .stage { opacity: 1; transform: none; }
.pipeline .stage:nth-child(1), .pipeline .stage:nth-child(1) .stage-dot, .pipeline .stage:nth-child(1) i { transition-delay: .2s; }
.pipeline .stage:nth-child(2), .pipeline .stage:nth-child(2) .stage-dot, .pipeline .stage:nth-child(2) i { transition-delay: .65s; }
.pipeline .stage:nth-child(3), .pipeline .stage:nth-child(3) .stage-dot, .pipeline .stage:nth-child(3) i { transition-delay: 1.1s; }
.pipeline .stage:nth-child(4), .pipeline .stage:nth-child(4) .stage-dot, .pipeline .stage:nth-child(4) i { transition-delay: 1.55s; }
.pipeline .stage:nth-child(5), .pipeline .stage:nth-child(5) .stage-dot, .pipeline .stage:nth-child(5) i { transition-delay: 2s; }
.stage:hover h3 { color: var(--gold-hi); }

/* ---------- 04 Divisions ---------- */
.divisions { border-top: 1px solid var(--line); background: radial-gradient(900px 600px at 50% 30%, rgba(229, 181, 58, .045), transparent 65%), var(--ink-0); }
.div-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: start; perspective: 1400px; }
.div-grid .dcard:nth-child(2) { margin-top: 36px; --d: .1s; }
.div-grid .dcard:nth-child(3) { margin-top: 72px; --d: .2s; }
.div-grid .dcard:nth-child(4) { margin-top: 108px; --d: .3s; }

.dcard {
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden; isolation: isolate; padding: 26px 26px 0; display: flex; flex-direction: column;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c-deep) 70%, var(--ink-2)) 0%, var(--ink-2) 42%, var(--ink-1) 100%);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: border-color .4s, box-shadow .4s;
}
.js .dcard[data-reveal] { transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), border-color .4s; transition-delay: var(--d, 0s); transform: translateY(34px) rotateX(var(--rx)) rotateY(var(--ry)); }
.js .dcard[data-reveal].in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.js .dcard.tilting { transition: opacity .9s var(--ease-out), transform .12s linear, border-color .4s; transition-delay: 0s; }
.dcard::before { /* top colour bar */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--c), var(--c-soft), transparent);
  transform-origin: left; transform: scaleX(.35); transition: transform .6s var(--ease-out);
}
.dcard:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.dcard:hover::before { transform: scaleX(1); }
.dcard-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 20%, transparent), transparent 60%); }
.dcard:hover .dcard-glow { opacity: 1; }
.dcard-water {
  position: absolute; right: -14px; top: 60px; z-index: -1; pointer-events: none;
  font-family: var(--f-display); font-weight: 900; font-size: 280px; line-height: .8; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 18%, transparent);
  transition: transform .8s var(--ease-out), -webkit-text-stroke-color .4s;
}
.dcard:hover .dcard-water { transform: translate(-10px, -6px); -webkit-text-stroke-color: color-mix(in srgb, var(--c) 34%, transparent); }
.dcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; }
.dcard-top .code { color: var(--c-soft); }
.dcard-top .status { color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.dcard-top .status i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: blink 2s infinite; }
.dcard-emblem { width: 104px; height: 104px; color: var(--c); margin-bottom: 22px; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 35%, transparent)); transition: transform .6s var(--ease-out), filter .4s; }
.dcard-emblem svg { width: 100%; height: 100%; overflow: visible; }
.dcard-emblem .ring { transform-origin: 60px 60px; transition: transform 1.2s var(--ease-out); }
.dcard:hover .dcard-emblem { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 0 28px color-mix(in srgb, var(--c) 60%, transparent)); }
.dcard:hover .dcard-emblem .ring { transform: rotate(120deg); }
.dcard-name { font-family: var(--f-display); font-weight: 900; font-size: clamp(52px, 5vw, 68px); line-height: .9; text-transform: uppercase; letter-spacing: .04em; }
.dcard-role { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-soft); margin: 10px 0 18px; }
.dcard-desc { color: #bdb8ab; font-size: 16px; margin-bottom: 24px; }
.dcard-list { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 26px; }
.list-k { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.dcard-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; padding: 6px 0; color: var(--text); transition: transform .3s var(--ease-out); }
.dcard-list li:hover { transform: translateX(4px); }
.dcard-list svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 4px; color: var(--c); }
.dcard-foot { margin: auto -26px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid color-mix(in srgb, var(--c) 22%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); }
.dcard-foot div { padding: 14px 26px 16px; display: grid; gap: 2px; }
.dcard-foot div + div { border-left: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.dcard-foot span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.dcard-foot b { font-family: var(--f-display); font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-soft); }

/* Final CTA */
.final-cta {
  position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(90px, 11vw, 150px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px 48px;
  padding: clamp(36px, 5vw, 64px); border: 1px solid rgba(229, 181, 58, .35);
  background: linear-gradient(120deg, rgba(229, 181, 58, .1), transparent 55%), var(--ink-2);
}
.final-cta-bg { position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: repeating-linear-gradient(135deg, rgba(229, 181, 58, .05) 0 2px, transparent 2px 18px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.final-cta::after { content: ""; position: absolute; top: 0; left: -30%; width: 30%; height: 100%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(246, 215, 122, .1), transparent); animation: ctaSweep 6s ease-in-out infinite; }
@keyframes ctaSweep { 0% { transform: translateX(0); } 60%, 100% { transform: translateX(480%); } }
.final-emblem { width: 110px; height: auto; filter: drop-shadow(0 0 26px rgba(229, 181, 58, .3)); }
.final-copy .eyebrow { margin-bottom: 14px; }
.final-copy .h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 12px; }
.final-copy p:last-child { color: var(--muted); }
.final-cta .btn { box-shadow: 0 18px 50px -12px rgba(229, 181, 58, .5); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--ink-1); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 26px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand svg { width: 42px; height: auto; }
.footer-brand b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .16em; line-height: 1; }
.footer-brand span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 24px; }
.footer-links a { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--dim); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-console { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    display: grid; gap: 4px; padding: 10px var(--pad) 28px; background: rgba(8, 9, 12, .97); border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.btn) { display: flex; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 800; font-size: 28px; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-menu a[hidden] { display: none; }
  .mobile-menu em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--gold); letter-spacing: .2em; }
  .mobile-menu .btn { margin-top: 20px; }

  .div-grid { grid-template-columns: 1fr 1fr; }
  .div-grid .dcard:nth-child(2) { margin-top: 56px; }
  .div-grid .dcard:nth-child(3) { margin-top: 0; grid-column: 1 / -1; }
  .pipeline { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 900px) {
  .ov-grid, .st-intro, .sel-intro, .div-intro { grid-template-columns: 1fr; }
  .ov-visual { position: relative; top: 0; }
  .ov-frame { aspect-ratio: 16 / 11; }
  .hero-strip-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }

  /* Chain of command collapses to a vertical tree */
  .chart { padding: 34px 20px 34px 24px; gap: 30px; --gap: 30px; }
  .chart::before { content: ""; position: absolute; left: 48px; top: 44px; bottom: 44px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(229, 181, 58, .15)); transform-origin: top; transform: scaleY(0); transition: transform 1.4s .1s var(--ease); }
  .chart.in::before, html:not(.js) .chart::before { transform: scaleY(1); }
  .hc-bracket { display: none; }
  .tier { display: grid; gap: 10px; justify-content: stretch; padding-left: 56px; }
  .tier-label { position: static; transform: none; }
  .node { min-width: 0; }
  .branch { grid-template-columns: 1fr; gap: 10px; }
  .tier::before { content: ""; position: absolute; left: 17px; top: 7px; width: 12px; height: 12px; border: 2px solid var(--gold); background: var(--ink-2); transform: rotate(45deg); }
  .squad { grid-template-columns: auto 1fr; justify-items: start; align-items: center; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); }
  .fact:first-child { border-top: 0; }

  /* Pipeline becomes vertical */
  .pipeline { grid-template-columns: 1fr; gap: 0; }
  .pipeline::before, .pipeline::after { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .pipeline::after { transform: scaleY(0); transform-origin: top; }
  .pipeline.in::after, html:not(.js) .pipeline::after { transform: scaleY(1); }
  .stage { padding: 0 0 40px 84px; min-height: 96px; }
  .stage:last-child { padding-bottom: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --nav-h: 66px; }
  .brand-text small { display: none; }
  .nav-actions .btn--sm { display: none; }
  .hero-hud { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 9, 12, .7) 0%, rgba(8, 9, 12, .55) 35%, rgba(8, 9, 12, .9) 75%, var(--ink-0) 100%); }
  .hero-media img { object-position: 24% 50%; }
  .hero-inner { align-items: flex-end; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 40px; }
  .hero-ctas .btn { width: 100%; }
  .btn--xl { padding: 19px 22px; letter-spacing: .12em; }
  .stat { padding: 16px 12px 18px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 9.5px; letter-spacing: .14em; }
  .sec-label { white-space: normal; font-size: 11px; }
  .div-grid { grid-template-columns: 1fr; }
  .div-grid .dcard:nth-child(n) { margin-top: 0; grid-column: auto; }
  .dcard { padding: 22px 22px 0; }
  .dcard-foot { margin: auto -22px 0; }
  .dcard-foot div { padding: 12px 22px 14px; }
  .dcard-water { font-size: 220px; }
  .final-cta { grid-template-columns: 1fr; text-align: left; }
  .final-emblem { width: 78px; }
  .final-cta .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .intro-text { width: 280px; font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-sweep, .hero-dust, .ov-scan { display: none; }
}

/* ==========================================================================
   Recruitment page (/apply/)
   ========================================================================== */
.apply-back { padding: 8px 0; font-size: 11.5px; }
.apply-back svg { width: 16px; height: 16px; }
.apply-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line); }
.apply-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .97) 0%, rgba(8, 9, 12, .8) 50%, rgba(8, 9, 12, .55) 100%),
    url("/img/briefing.png") center / cover no-repeat;
}
.apply-hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(60% 70% at 25% 50%, #000, transparent 80%); mask-image: radial-gradient(60% 70% at 25% 50%, #000, transparent 80%); }
.apply-hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px 60px; align-items: center; }
.apply-hero .eyebrow { margin-bottom: 20px; }
.apply-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 9vw, 120px); line-height: .88; margin-bottom: 26px; }
.apply-title .gold { background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 55%, #a9801c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.apply-hero .lead { color: #c9c4b6; margin-bottom: 34px; }
.apply-emblem { width: clamp(140px, 18vw, 240px); height: auto; filter: drop-shadow(0 0 40px rgba(229, 181, 58, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -10px; } }
.apply-status { display: flex; gap: 16px; align-items: flex-start; max-width: 620px; padding: 18px 22px; border: 1px solid rgba(229, 181, 58, .4); border-left-width: 3px; background: rgba(229, 181, 58, .06); }
.apply-status b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-hi); }
.apply-status span { color: var(--muted); font-size: 15.5px; }
.apply-status-dot { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(229, 181, 58, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(229, 181, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 181, 58, 0); } }

.req-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px 80px; align-items: start; }
.req-list { border-top: 1px solid var(--line); }
.req-list li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease-out), background .3s; }
.req-list li:hover { padding-left: 12px; background: linear-gradient(90deg, var(--gold-a), transparent 70%); }
.req-list svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 4px; color: var(--gold); }
.req-list b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .05em; }
.req-list span { color: var(--muted); font-size: 15.5px; }
.req-list li:nth-child(2) { --d: .08s; } .req-list li:nth-child(3) { --d: .16s; } .req-list li:nth-child(4) { --d: .24s; }

.apply-process { border-top: 1px solid var(--line); background: var(--ink-1); }
.apply-divs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(60px, 8vw, 100px); }
.apply-div { position: relative; display: grid; gap: 4px; padding: 22px 24px; border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); background: color-mix(in srgb, var(--c) 6%, var(--ink-2)); transition: transform .4s var(--ease-out), border-color .3s, background .3s; }
.apply-div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.apply-div:hover { transform: translateY(-4px); border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, var(--ink-2)); }
.apply-div b { font-family: var(--f-display); font-weight: 900; font-size: 34px; text-transform: uppercase; letter-spacing: .05em; line-height: 1; }
.apply-div span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.apply-divs .apply-div:nth-child(2) { --d: .1s; } .apply-divs .apply-div:nth-child(3) { --d: .2s; } .apply-divs .apply-div:nth-child(4) { --d: .3s; }

@media (max-width: 900px) {
  .apply-hero-inner, .req-grid { grid-template-columns: 1fr; }
  .apply-emblem { grid-row: 1; width: 110px; }
}
@media (max-width: 680px) {
  .apply-back { font-size: 0; gap: 0; border: 0; }
  .apply-back svg { width: 22px; height: 22px; }
  .apply-divs { grid-template-columns: 1fr; }
}

/* ---- Recruit registration (stage 1) ---- */
.reg { position: relative; padding: clamp(110px, 14vw, 160px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.reg-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.reg-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.reg-steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; }
.reg-steps i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); }
.reg-steps li.on { color: var(--gold); }
.reg-steps li.on i { border-color: var(--gold); background: var(--gold-a); }
.reg-card { position: relative; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.reg-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.reg-card--wide { max-width: 720px; margin-top: 28px; }
.reg-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.reg-card-head svg { width: 34px; height: 40px; }
.reg-card-head b { display: block; font-family: var(--f-display); font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.reg-card-head span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input { width: 100%; padding: 14px 16px; background: var(--ink-1); color: var(--text); border: 1px solid var(--line-2); border-radius: 0; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.field input:hover { border-color: rgba(233,226,205,.3); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-a); }
.field.has-err input { border-color: #e5604f; }
.field-err { min-height: 0; margin: 6px 0 0; font-size: 13.5px; color: #ff8c7d; }
.field-err:empty { display: none; }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; bottom: 6px; padding: 0 12px; background: none; border: 0; color: var(--gold); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.reg-submit { width: 100%; justify-content: center; position: relative; margin-top: 6px; }
.reg-submit:disabled { cursor: progress; filter: saturate(.7) brightness(.9); transform: none; }
.reg-spin { display: none; width: 18px; height: 18px; margin-left: 12px; border: 2px solid rgba(8,9,12,.35); border-top-color: var(--ink-0); border-radius: 50%; animation: regspin .7s linear infinite; }
.is-loading .reg-spin { display: inline-block; }
@keyframes regspin { to { transform: rotate(360deg); } }
.reg-alert, .reg-toast { margin-bottom: 16px; padding: 12px 14px; font-size: 14.5px; border-left: 3px solid; }
.reg-alert { background: rgba(229,96,79,.1); border-color: #e5604f; color: #ffb3a8; }
.reg-toast { background: rgba(86,190,120,.12); border-color: #56be78; color: #b5ebc6; }
.reg-foot { margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.reg-foot a { color: var(--gold); }
@media (max-width: 860px) { .reg-grid { grid-template-columns: 1fr; } .reg-steps { display: none; } }
@media (prefers-reduced-motion: reduce) { .reg-spin { animation-duration: 1.6s; } }

/* =====================================================================
   Application form (Stage 02) and application ticket (Stage 03)
   ===================================================================== */
.app-wrap { max-width: 1040px; }
.app-head .lead { margin-bottom: 26px; }
.app-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 clamp(22px, 3.5vw, 34px); padding: 0; }
.app-steps li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.app-steps i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); font-size: 11.5px; }
.app-steps svg { width: 14px; height: 14px; }
.app-steps li.on { color: var(--gold); }
.app-steps li.on i { border-color: var(--gold); background: var(--gold-a); }
.app-steps li.done { color: var(--muted); }
.app-steps li.done i { border-color: rgba(86, 190, 120, .55); background: rgba(86, 190, 120, .12); color: #7ddba0; }

.app-user { margin: 0 0 16px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.app-user b { color: var(--gold); font-weight: 600; }

.app-form { display: block; }
.app-form[hidden], .tk[hidden], #app-gate[hidden], #tk-gate[hidden] { display: none; }
.app-panel { position: relative; min-width: 0; margin: 0 0 22px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.app-panel::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 70%); }
.app-panel > legend { float: left; width: 100%; padding: 0; margin: 0 0 24px; }
.app-panel > legend + * { clear: both; }
.app-panel-head { display: flex; align-items: center; gap: 16px; }
.app-panel-num { flex: 0 0 auto; display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: .06em; color: var(--ink-0); background: var(--gold); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.app-panel-head b { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.app-panel-head small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.app-grid .field--full { grid-column: 1 / -1; }
.req { color: var(--gold); }

.field textarea { display: block; width: 100%; min-height: 96px; padding: 14px 16px; background: var(--ink-1); color: var(--text); border: 1px solid var(--line-2); border-radius: 0; font: inherit; font-size: 16px; line-height: 1.55; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field textarea:hover { border-color: rgba(233, 226, 205, .3); }
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-a); }
.field.has-err textarea { border-color: #e5604f; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); opacity: 1; }
.field-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 6px 0 0; }
.field-meta .field-hint { margin: 0; }
.field-count { flex: 0 0 auto; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--dim); font-variant-numeric: tabular-nums; }
.field-count.is-near { color: var(--gold); }
fieldset.has-err { border-color: rgba(229, 96, 79, .6); }
fieldset .field-err { margin-top: 16px; }

/* Division cards */
.dopts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dopt { position: relative; display: flex; }
.dopt-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dopt-card { position: relative; display: flex; flex-direction: column; width: 100%; padding: 22px 22px 0; overflow: hidden; cursor: pointer;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c-deep) 62%, var(--ink-2)) 0%, var(--ink-2) 46%, var(--ink-1) 100%);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line-2));
  transition: transform .35s var(--ease-out), border-color .25s, box-shadow .35s; }
.dopt:hover .dopt-card { transform: translateY(-4px); border-color: var(--c); }
.dopt-input:checked + .dopt-card { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 28px 60px -26px color-mix(in srgb, var(--c) 60%, transparent);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c-deep) 100%, var(--ink-2)) 0%, color-mix(in srgb, var(--c-deep) 30%, var(--ink-2)) 48%, var(--ink-1) 100%); }
.dopt-input:focus-visible + .dopt-card { outline: 2px solid var(--gold); outline-offset: 4px; }
.dopt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dopt-code { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--c-soft); }
.dopt-mark { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); color: transparent; transition: background .25s, border-color .25s, color .25s; }
.dopt-mark svg { width: 14px; height: 14px; }
.dopt-input:checked + .dopt-card .dopt-mark { background: var(--c); border-color: var(--c); color: var(--ink-0); }
.dopt-emblem { width: 76px; height: 76px; margin-bottom: 14px; overflow: visible; color: var(--c); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--c) 35%, transparent)); transition: transform .5s var(--ease-out), filter .4s; }
.dopt-emblem .ring { transform-origin: 60px 60px; transition: transform 1.1s var(--ease-out); }
.dopt:hover .dopt-emblem, .dopt-input:checked + .dopt-card .dopt-emblem { transform: scale(1.06); filter: drop-shadow(0 0 26px color-mix(in srgb, var(--c) 60%, transparent)); }
.dopt:hover .dopt-emblem .ring, .dopt-input:checked + .dopt-card .dopt-emblem .ring { transform: rotate(120deg); }
.dopt-name { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 3.8vw, 52px); line-height: .9; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; }
.dopt-role { display: block; margin: 10px 0 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-soft); }
.dopt-desc { display: block; margin-bottom: 16px; font-size: 15px; line-height: 1.55; color: #bdb8ab; }
.dopt-list { display: block; margin-bottom: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.dopt-li { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; font-size: 14.5px; line-height: 1.45; }
.dopt-li svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 4px; color: var(--c); }
.dopt-pick { display: block; margin: auto -22px 0; padding: 14px 22px; border-top: 1px solid color-mix(in srgb, var(--c) 24%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-soft); transition: background .25s, color .25s; }
.dopt-pick-on { display: none; }
.dopt-input:checked + .dopt-card .dopt-pick { background: var(--c); color: var(--ink-0); }
.dopt-input:checked + .dopt-card .dopt-pick-off { display: none; }
.dopt-input:checked + .dopt-card .dopt-pick-on { display: inline; }

.app-submit { margin-top: 8px; }
.app-submit .btn { width: 100%; justify-content: center; }
.app-fine { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
html.js .app-form:not([hidden]) .app-panel { animation: appIn .65s var(--ease-out) both; }
html.js .app-form:not([hidden]) .app-panel:nth-of-type(2) { animation-delay: .08s; }
html.js .app-form:not([hidden]) .app-panel:nth-of-type(3) { animation-delay: .16s; }
@keyframes appIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .dopts { grid-template-columns: 1fr; }
  .dopt-card { padding-bottom: 0; }
  .dopt:hover .dopt-card, .dopt-input:checked + .dopt-card { transform: none; }
}
@media (max-width: 640px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-steps { gap: 10px 18px; }
  .app-steps span { font-size: 11px; letter-spacing: .12em; }
}

/* Ticket */
.tk { --c: var(--gold); --c-soft: var(--gold-hi); max-width: 880px; margin-top: 28px; }
.tk-card { position: relative; overflow: hidden; margin-bottom: 22px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tk-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c), transparent 80%); }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px clamp(20px, 3vw, 32px) 14px; }
.tk-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tk-brand svg { flex: 0 0 auto; width: 34px; height: 40px; }
.tk-brand b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.tk-brand span { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.tk-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(229, 181, 58, .45); background: rgba(229, 181, 58, .08); }
.tk-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.tk-status[data-tone="live"]::before, .tk-status[data-tone="wait"]::before { animation: blink 2s infinite; }
.tk-status[data-tone="ok"] { color: #7ddba0; border-color: rgba(86, 190, 120, .5); background: rgba(86, 190, 120, .1); }
.tk-status[data-tone="closed"] { color: #ff9d90; border-color: rgba(229, 96, 79, .5); background: rgba(229, 96, 79, .1); }
.tk-idrow { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 10px clamp(20px, 3vw, 32px) 28px; }
.tk-k { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.tk-id { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 7vw, 60px); line-height: 1; letter-spacing: .06em; overflow-wrap: anywhere; background: linear-gradient(180deg, var(--gold-hi) 10%, var(--gold) 60%, #a9801c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: all; }
.tk-copy { padding: 10px 16px; background: none; color: var(--gold); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.tk-copy:hover { border-color: var(--gold); background: var(--gold-a); }
.tk-perf { position: relative; border-top: 2px dashed var(--line-2); }
.tk-perf::before, .tk-perf::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink-0); border: 1px solid var(--line-2); }
.tk-perf::before { left: -13px; }
.tk-perf::after { right: -13px; }
.tk-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; margin: 0; padding: 26px clamp(20px, 3vw, 32px) 8px; }
.tk-meta dt, .tk-grid dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.tk-meta dd, .tk-grid dd { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.tk-meta div:first-child dd { color: var(--c-soft); font-weight: 600; }
.tk-track { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 26px clamp(12px, 2vw, 24px) 6px; }
.tk-track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tk-track li + li::before { content: ""; position: absolute; top: 22px; right: 50%; width: 100%; height: 2px; background: var(--line-2); }
.tk-track li.is-done + li::before, .tk-track li.is-done + li.is-current::before { background: linear-gradient(90deg, var(--gold-lo), var(--gold)); }
.tk-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; background: var(--ink-3); border: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); transition: background .4s; }
.tk-dot i { font-family: var(--f-display); font-style: normal; font-weight: 800; font-size: 16px; color: var(--dim); }
.tk-track b { font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tk-track .is-done .tk-dot { background: var(--gold); }
.tk-track .is-done .tk-dot i { color: var(--ink-0); }
.tk-track .is-done b { color: var(--text); }
.tk-track .is-current .tk-dot { background: var(--c); box-shadow: 0 0 0 0 transparent; animation: tkPulse 2.2s ease-in-out infinite; }
.tk-track .is-current .tk-dot i { color: var(--ink-0); }
.tk-track .is-current b { color: var(--c-soft); }
@keyframes tkPulse { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 10px var(--c)); } }
.tk[data-tone="closed"] .tk-track { opacity: .55; }
.tk-next { margin: 0; padding: 14px clamp(20px, 3vw, 32px) 28px; text-align: center; color: var(--muted); font-size: 15.5px; }
.tk-details { margin-bottom: 22px; }
.tk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 0; }
.tk-grid .wide { grid-column: 1 / -1; }
.tk-grid .long { white-space: pre-wrap; padding: 12px 14px; background: var(--ink-1); border: 1px solid var(--line); font-size: 15.5px; }
.tk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tk-actions .btn-ghost { padding: 12px 20px; cursor: pointer; }
.tk-actions button.btn-ghost { background: none; font: inherit; font-family: var(--f-mono); }

@media (max-width: 760px) {
  .tk-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-grid { grid-template-columns: 1fr; }
  .tk-track { grid-template-columns: 1fr; gap: 0; padding-left: 28px; }
  .tk-track li { flex-direction: row; align-items: center; gap: 16px; padding: 8px 0; text-align: left; }
  .tk-track li + li::before { top: -22px; right: auto; left: 22px; width: 2px; height: 44px; }
  .tk-track li.is-done + li::before, .tk-track li.is-done + li.is-current::before { background: linear-gradient(180deg, var(--gold-lo), var(--gold)); }
}
@media (max-width: 520px) {
  .tk-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .app-form:not([hidden]) .app-panel, .tk-track .is-current .tk-dot, .tk-status::before { animation: none; }
  .dopt-card, .dopt-emblem, .dopt-emblem .ring { transition: none; }
}
@media print {
  .nav, .footer, .grain, .skip, .apply-hero-bg, .app-steps, .tk-actions, .tk-copy, .eyebrow { display: none !important; }
  body { background: #fff; color: #111; }
  .reg { padding: 0; }
  .apply-title, .apply-title .gold { color: #111; -webkit-text-fill-color: #111; background: none; font-size: 36px; }
  .tk-card, .app-panel, .tk-grid .long { background: #fff; border-color: #888; box-shadow: none; }
  .tk-id { background: none; -webkit-text-fill-color: #111; color: #111; }
  .tk-meta dt, .tk-grid dt, .tk-k, .tk-brand span, .tk-next, .tk-track b { color: #444; }
  .tk-perf::before, .tk-perf::after { background: #fff; }
}

/* ---------- Division intake: a full team is locked on the application form ---------- */
.dopt.is-full .dopt-card { cursor: not-allowed; filter: grayscale(1) brightness(.7); border-style: dashed; border-color: var(--line-2); box-shadow: none; }
.dopt.is-full:hover .dopt-card { transform: none; border-color: var(--line-2); }
.dopt.is-full:hover .dopt-emblem, .dopt.is-full:hover .dopt-emblem .ring { transform: none; }
.dopt.is-full .dopt-input { cursor: not-allowed; }
.dopt.is-full .dopt-pick { background: transparent; color: var(--dim); }
.dopt-full {
  position: absolute; z-index: 3; left: 50%; top: 15%; width: min(80%, 270px); transform: translate(-50%, -50%) rotate(-4deg);
  padding: 12px 16px 11px; text-align: center; pointer-events: none;
  background: rgba(8, 9, 12, .92); border: 2px solid #e5604f; color: #ff8c7d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(229, 96, 79, .25);
}
.dopt-full b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.dopt-full span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: var(--text); }

/* slots left on the division picker (sits inside the card, above the Select bar) */
.dopt-left { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 11px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-soft, var(--gold)); border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 40%, transparent); background: color-mix(in srgb, var(--c, var(--gold)) 10%, transparent); }
.dopt-left::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--gold)); }

/* Four divisions: two columns on mid-size screens (the one-column phone rules above still win below their breakpoints). */
@media (min-width: 901px) and (max-width: 1180px) { .dopts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 681px) and (max-width: 1080px) {
  .div-grid .dcard:nth-child(n) { margin-top: 0; grid-column: auto; }
  .div-grid .dcard:nth-child(even) { margin-top: 40px; }
}

/* Sign-in choice for accepted members: SWAT Console or Review ticket */
.login-choice { display: grid; gap: 14px; margin-top: 6px; }
.login-choice-hi { margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.login-choice .btn, .login-choice .btn-ghost { width: 100%; justify-content: center; text-align: center; }
