/* ─────────────────────────────────────────────────────────────
   SWAT — monochrome tactical theme
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #060606;
  --bg-2: #0b0b0b;
  --card: #0f0f0f;
  --card-2: #141414;
  --line: #222;
  --line-2: #333;
  --text: #f2f2f2;
  --muted: #8d8d8d;
  --dim: #5c5c5c;
  --white: #fff;
  --radius: 4px;
  --wrap: 1180px;
  --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --font-head: 'Oswald', 'Cairo', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9d9 45%, #8f8f8f 52%, #e6e6e6 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
body::before { /* film grain */
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .72em 1.35em;
  font: 600 .95rem/1 var(--font-body);
  border: 1px solid var(--white);
  background: var(--white); color: #000;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: #d6d6d6; border-color: #d6d6d6; }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.btn.sm { padding: .5em .9em; font-size: .85rem; }
.btn.danger { background: transparent; color: #ff6b6b; border-color: #4a1e1e; }
.btn.danger:hover { background: #2a0f0f; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ── Header ─────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,6,6,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 1.25rem; letter-spacing: .12em; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font: 500 .62rem/1 var(--font-mono); letter-spacing: .28em; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: .45em .85em; font-size: .93rem; color: var(--muted); border-radius: var(--radius); transition: color .15s, background .15s; }
.nav a:hover { color: var(--white); }
.nav a.on { color: var(--white); background: #161616; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 600 .82rem var(--font-body); color: var(--muted); padding: .45em .7em; border: 1px solid var(--line); border-radius: var(--radius); }
.lang:hover { color: var(--white); border-color: var(--line-2); }
.me { display: flex; align-items: center; gap: 10px; padding: 4px; padding-inline-end: 12px; border: 1px solid var(--line); border-radius: 40px; font-size: .88rem; }
.me img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.me:hover { border-color: var(--line-2); }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--white); width: 40px; height: 40px; border-radius: var(--radius); cursor: pointer; }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url('/static/img/banner.jpg') center 30%/cover no-repeat; filter: grayscale(1) contrast(1.05); transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6,6,6,.35) 0%, rgba(6,6,6,.82) 60%, var(--bg) 100%), linear-gradient(180deg, rgba(6,6,6,.4), var(--bg) 96%); }
@keyframes drift { to { transform: scale(1.1) translateY(-1.5%); } }
.hero-inner { padding: 80px 20px 120px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-logo { width: 150px; height: 150px; filter: drop-shadow(0 10px 40px rgba(0,0,0,.9)); }
.kicker { font: 500 .78rem var(--font-mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.kicker::before, .kicker::after { content: ''; width: 34px; height: 1px; background: var(--line-2); }
.hero h1 {
  font-size: clamp(3.6rem, 13vw, 9rem);
  letter-spacing: .08em;
  line-height: .95;
  background: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 #000) drop-shadow(0 18px 30px rgba(0,0,0,.8));
}
.hero .city { font: 400 clamp(.85rem, 2vw, 1.05rem) var(--font-mono); letter-spacing: .6em; color: #cfcfcf; margin-top: -6px; padding-inline-start: .6em; }
.hero .tagline { max-width: 620px; color: #bdbdbd; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hud { position: absolute; bottom: 28px; inset-inline: 0; display: flex; justify-content: space-between; padding-inline: 28px; font: 500 .72rem var(--font-mono); letter-spacing: .2em; color: var(--dim); }
.hud b { color: var(--muted); font-weight: 500; }
.scroll-cue { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1px solid var(--line-2); border-radius: 12px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; background: var(--white); translate: -50% 0; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ── Sections ─────────────────────────────── */
.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-label { font: 500 .74rem var(--font-mono); letter-spacing: .3em; color: var(--dim); text-transform: uppercase; display: block; margin-bottom: 10px; }
.sec-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.sec-sub { color: var(--muted); margin-top: 8px; max-width: 560px; }

.page-hero { position: relative; padding: 90px 0 56px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/static/img/banner-sm.jpg') center/cover; filter: grayscale(1) blur(2px); opacity: .22; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,6,6,.5), var(--bg)); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); }

/* corner brackets — the "tactical" frame used on cards */
.frame { position: relative; }
.frame::before, .frame::after { content: ''; position: absolute; width: 14px; height: 14px; border-color: var(--white); border-style: solid; opacity: .0; transition: opacity .2s; pointer-events: none; }
.frame::before { top: -1px; inset-inline-start: -1px; border-width: 1px 0 0 1px; }
.frame::after { bottom: -1px; inset-inline-end: -1px; border-width: 0 1px 1px 0; }
[dir=rtl] .frame::before { border-width: 1px 1px 0 0; }
[dir=rtl] .frame::after { border-width: 0 0 1px 1px; }
.frame:hover::before, .frame:hover::after, .frame.lit::before, .frame.lit::after { opacity: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, background .2s; }
.card:hover { border-color: var(--line-2); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stat { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
.stat b { font: 700 2.4rem/1 var(--font-head); }
.stat span { color: var(--muted); font-size: .9rem; }
.stat:hover { background: #0e0e0e; }

/* curriculum */
.curr { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.curr li { list-style: none; background: var(--bg-2); box-shadow: 0 0 0 .5px var(--line); padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; transition: background .2s; }
.curr li:hover { background: #111; }
.curr .n { font: 500 .8rem var(--font-mono); color: var(--dim); padding-top: 4px; min-width: 22px; }
.curr ol { margin: 0; padding: 0; display: contents; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card .date { font: 500 .75rem var(--font-mono); letter-spacing: .14em; color: var(--dim); }
.news-card h3 { font-size: 1.25rem; }
.news-card p { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { margin-top: auto; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.news-card img { aspect-ratio: 16/9; object-fit: cover; border-radius: 2px; filter: grayscale(1); margin: -6px -6px 4px; width: calc(100% + 12px); max-width: none; }

/* directives */
.dir-list { display: grid; gap: 16px; }
.dir { display: grid; grid-template-columns: 74px 1fr; gap: 0; padding: 0; overflow: hidden; }
.dir-idx { border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 26px; gap: 10px; font: 500 .8rem var(--font-mono); color: var(--dim); }
.dir-body { padding: 24px 28px; }
.dir-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dir h3 { font-size: 1.35rem; }
.tag { font: 600 .7rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; padding: .35em .7em; border: 1px solid var(--line-2); border-radius: 2px; color: var(--muted); }
.tag.critical { background: var(--white); color: #000; border-color: var(--white); }
.tag.important { color: var(--white); border-color: #777; }
.bul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bul li { position: relative; padding-inline-start: 22px; color: #d0d0d0; }
.bul li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 8px; background: transparent; border: 1px solid var(--white); transform: rotate(45deg); }
.dir-img { margin-top: 18px; border: 1px solid var(--line); border-radius: 2px; max-height: 420px; object-fit: contain; background: #000; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font: 500 .85rem var(--font-body); padding: .45em 1em; border: 1px solid var(--line); border-radius: 30px; color: var(--muted); background: none; cursor: pointer; }
.chip.on, .chip:hover { color: #000; background: var(--white); border-color: var(--white); }

/* handbook */
.hb { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.toc a { padding: .5em 1em; color: var(--muted); font-size: .9rem; display: flex; gap: 10px; border-inline-start: 2px solid transparent; margin-inline-start: -1px; }
.toc a span { font-family: var(--font-mono); color: var(--dim); font-size: .78rem; padding-top: 2px; }
.toc a:hover, .toc a.on { color: var(--white); border-color: var(--white); }
.hb-sec { padding: 40px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.hb-sec:first-child { padding-top: 0; }
.hb-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.hb-num { font: 700 3.2rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px #555; }
.hb-head h2 { font-size: 1.7rem; }
.timer { margin-inline-start: auto; font: 500 .78rem var(--font-mono); letter-spacing: .1em; border: 1px solid var(--line-2); padding: .4em .8em; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; }
.timer::before { content: ''; width: 6px; height: 6px; background: var(--white); border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.steps { counter-reset: s; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); color: #d6d6d6; }
.steps li::before { content: counter(s, decimal-leading-zero); font: 500 .8rem var(--font-mono); color: var(--dim); padding-top: 3px; }
.ref-imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.ref-imgs figure { margin: 0; border: 1px solid var(--line); background: #000; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.ref-imgs img { width: 100%; object-fit: contain; max-height: 460px; }
.ref-imgs figcaption { font: 500 .72rem var(--font-mono); color: var(--dim); padding: 8px 12px; border-top: 1px solid var(--line); letter-spacing: .12em; }
.ref-empty { margin-top: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--dim); font: 500 .8rem var(--font-mono); letter-spacing: .12em; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 200; display: none; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox.on { display: grid; }
.lightbox img { max-height: 92vh; }

/* violations */
.vtable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.vtable th { text-align: start; font: 500 .74rem var(--font-mono); letter-spacing: .2em; color: var(--dim); padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); text-transform: uppercase; }
.vtable td { padding: 18px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vtable tr:hover td { background: #0d0d0d; }
.vtable .idx { font-family: var(--font-mono); color: var(--dim); width: 60px; font-size: .85rem; }
.pen { font-family: var(--font-mono); font-size: .88rem; }
.lvl { display: inline-flex; align-items: center; gap: 8px; font: 600 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.lvl i { width: 30px; height: 6px; display: inline-block; border: 1px solid #777; }
.lvl.warn i { background: linear-gradient(90deg, #fff 33%, transparent 33%); }
.lvl.exclude i { background: linear-gradient(90deg, #fff 66%, transparent 66%); }
.lvl.blacklist i { background: #fff; border-color: #fff; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 1.4rem/1 var(--font-mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.member { text-align: center; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); filter: grayscale(1); background: #111; display: grid; place-items: center; overflow: hidden; }
.member:hover .avatar { filter: none; }
.avatar svg { width: 44%; opacity: .5; }
.member h3 { font-size: 1.15rem; font-family: var(--font-body); }
.member .rank { font: 500 .74rem var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* CTA band */
.band { padding: 80px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse at center, #121212, var(--bg) 70%); }
.band h2 { font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: .06em; }
.band p { color: var(--muted); margin: 10px 0 26px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--dim); font-size: .88rem; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot .brand { font-size: 1rem; color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--white); }

.flash { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 300; background: var(--white); color: #000; padding: 14px 20px; border-radius: var(--radius); font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,.6); animation: fin .3s, fout .4s 4.5s forwards; max-width: calc(100vw - 44px); }
.flash.err { background: #2a0f0f; color: #ffb4b4; border: 1px solid #5a2020; }
@keyframes fin { from { opacity: 0; transform: translateY(10px); } }
@keyframes fout { to { opacity: 0; visibility: hidden; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero-bg { animation: none; } }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
  .nav { position: fixed; top: 68px; inset-inline: 0; flex-direction: column; background: rgba(6,6,6,.98); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .8em 1em; }
  .burger { display: grid; place-items: center; margin-inline-start: auto; }
  .head-actions { margin-inline-start: 0; }
  .hb { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .toc a { border: 0; white-space: nowrap; }
  .me span { display: none; }
  .me { padding-inline-end: 4px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); }
  .dir { grid-template-columns: 1fr; }
  .dir-idx { flex-direction: row; padding: 12px 20px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .dir-body { padding: 20px; }
  .hud { display: none; }
  .brand small { display: none; }
  .lang { padding: .45em .55em; }
  .head-actions .btn span { display: none; }
  .vtable thead { display: none; }
  .vtable, .vtable tbody, .vtable tr, .vtable td { display: block; width: 100%; }
  .vtable tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .vtable td { border: 0; padding: 6px 16px; }
  .hero-logo { width: 110px; height: 110px; }
  .curr { grid-template-columns: 1fr; }
  .news-grid, .team { grid-template-columns: 1fr; }
}

/* ═════════════════════════════════════════════════════════════
   MOTION LAYER — loader, searchlights, embers, cursor, ticker…
   ═════════════════════════════════════════════════════════════ */

/* preloader */
.loader { position: fixed; inset: 0; z-index: 500; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; transition: opacity .6s ease, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader.skip { display: none; }
.loader-emblem { position: relative; width: 110px; height: 110px; display: grid; place-items: center; }
.loader-emblem img { width: 86px; height: 86px; animation: breathe 1.6s ease-in-out infinite; }
.loader-bar { width: 180px; height: 2px; background: #1c1c1c; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 40%; background: var(--white); animation: load 1.1s ease-in-out infinite; }
.loader-txt { font-size: .66rem; letter-spacing: .4em; color: var(--dim); }
.loader-txt::after { content: '_'; animation: blink 1s steps(1) infinite; }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes breathe { 50% { transform: scale(.94); opacity: .75; } }

/* scroll progress */
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #666, #fff); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir=rtl] .progress i { transform-origin: right; background: linear-gradient(270deg, #666, #fff); }

/* header reacts to scroll */
.site-head { transition: background .3s, border-color .3s, box-shadow .3s; }
.site-head.scrolled { background: rgba(4,4,4,.95); box-shadow: 0 10px 40px rgba(0,0,0,.55); }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; bottom: 2px; inset-inline: 30%; height: 1px; background: var(--white); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after { transform: scaleX(1); }
.nav a.on::after { display: none; }

/* tactical crosshair cursor (desktop only) */
.crosshair { display: none; }
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .crosshair { display: block; position: fixed; top: 0; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 400; pointer-events: none; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; transition: width .2s, height .2s, margin .2s, opacity .2s, background .2s; opacity: 0; mix-blend-mode: difference; }
  .crosshair::before, .crosshair::after { content: ''; position: absolute; background: rgba(255,255,255,.7); }
  .crosshair::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 100% 28%, 0 28%, 0 72%, 100% 72%, 100% 100%, 0 100%); }
  .crosshair::after { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); clip-path: polygon(0 0, 28% 0, 28% 100%, 0 100%, 0 0, 72% 0, 100% 0, 100% 100%, 72% 100%); }
  .crosshair i { position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; background: #fff; border-radius: 50%; }
  .crosshair.on { opacity: 1; }
  .crosshair.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255,255,255,.08); }
}

/* hero: searchlights, embers, scanline, emblem rings */
.beam { position: absolute; top: -10%; width: 46vw; height: 130%; z-index: -1; pointer-events: none; mix-blend-mode: screen; opacity: .5; filter: blur(6px); background: conic-gradient(from 180deg at 50% 0%, transparent 0deg, transparent 168deg, rgba(255,255,255,.22) 178deg, rgba(255,255,255,.32) 180deg, rgba(255,255,255,.22) 182deg, transparent 192deg); transform-origin: 50% 0; }
.beam-a { left: 2%; animation: sweepA 11s ease-in-out infinite alternate; }
.beam-b { right: 2%; animation: sweepB 13s ease-in-out infinite alternate; }
@keyframes sweepA { from { transform: rotate(-26deg); } to { transform: rotate(18deg); } }
@keyframes sweepB { from { transform: rotate(24deg); } to { transform: rotate(-20deg); } }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.scanline { position: absolute; inset-inline: 0; height: 120px; top: -120px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,.035), transparent); animation: scan 7s linear infinite; }
@keyframes scan { to { top: 100%; } }

.emblem { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.emblem .hero-logo { position: relative; z-index: 1; animation: float 6s ease-in-out infinite; }
.ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.ring-1 { border: 1px dashed rgba(255,255,255,.28); animation: spin 26s linear infinite; }
.ring-2 { inset: -14px; border: 1px solid transparent; border-top-color: rgba(255,255,255,.7); border-bottom-color: rgba(255,255,255,.18); animation: spin 5s linear infinite reverse; }
.ring-3 { inset: 18px; border: 1px solid rgba(255,255,255,.1); animation: pulse 3s ease-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

/* hero entrance sequence */
.hero-inner > * { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-inner > :nth-child(1) { animation-delay: .15s; }
.hero-inner > :nth-child(2) { animation-delay: .35s; }
.hero-inner > :nth-child(3) { animation-delay: .5s; }
.hero-inner > :nth-child(4) { animation-delay: .65s; }
.hero-inner > :nth-child(5) { animation-delay: .8s; }
.hero-inner > :nth-child(6) { animation-delay: 1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
body.loading .hero-inner > * { animation-play-state: paused; }

/* chrome shine sweeping across the title */
.hero h1 {
  background-image: linear-gradient(110deg, transparent 42%, rgba(255,255,255,.95) 50%, transparent 58%), var(--chrome);
  background-size: 260% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  -webkit-background-clip: text; background-clip: text;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) .5s forwards, shine 5.5s ease-in-out 1.6s infinite;
}
@keyframes shine { 0%, 55% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
.tagline[data-type].typing::after { content: '▌'; margin-inline-start: 2px; animation: blink .8s steps(1) infinite; color: var(--muted); }

/* glitch flicker on the city line */
.hero .city { animation: rise .9s cubic-bezier(.2,.7,.2,1) .65s forwards, flick 9s steps(1) 3s infinite; }
@keyframes flick { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .35; } 98% { opacity: 1; } 99% { opacity: .5; } }

/* ticker */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #080808; direction: ltr; }
.ticker-track { display: flex; align-items: center; gap: 34px; width: max-content; padding-block: 14px; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 500 .78rem var(--font-mono); letter-spacing: .32em; color: #9a9a9a; white-space: nowrap; }
.ticker i { width: 7px; height: 7px; border: 1px solid #777; transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* cards: spotlight that follows the pointer */
.card { background-image: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(255,255,255,.07), transparent 45%); }
.card, .member { will-change: transform; }
.member { transition: transform .25s ease, border-color .2s; }

/* staggered children (delays set by JS) */
.stagger > *, .stagger-rows tbody tr { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.in.stagger > *, .in.stagger-rows tbody tr, .stagger.in > *, .reveal.in .stagger > * { opacity: 1; transform: none; }

/* section labels draw a line in */
.sec-label { position: relative; }
.sec-head .sec-label::after { content: ''; display: inline-block; vertical-align: middle; height: 1px; width: 0; background: var(--line-2); margin-inline-start: 12px; transition: width 1s cubic-bezier(.2,.7,.2,1) .2s; }
.sec-head.in .sec-label::after { width: 60px; }

/* critical directive: scanning edge */
.dir:has(.tag.critical) { position: relative; overflow: hidden; }
.dir:has(.tag.critical) .dir-idx { background: linear-gradient(180deg, rgba(255,255,255,.05), transparent); }
.dir:has(.tag.critical) .dir-idx::after { content: ''; width: 1px; flex: 1; background: linear-gradient(180deg, #fff, transparent); animation: drip 2.4s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* buttons: light sweep on hover */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.btn.ghost::after { background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); }

/* violation level bars fill in */
.lvl i { position: relative; overflow: hidden; }
.reveal.in .lvl i { animation: fill .9s ease forwards .3s; }
@keyframes fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* page hero subtle zoom + grid overlay */
.page-hero::before { animation: drift 30s ease-in-out infinite alternate; }
.page-hero h1, .page-hero .sec-label, .page-hero .sec-sub { opacity: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.page-hero .sec-label { animation-delay: .1s; }
.page-hero h1 { animation-delay: .22s; }
.page-hero .sec-sub { animation-delay: .36s; }
.hero::before, .page-hero .wrap::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); z-index: -1; }

/* handbook step hover */
.steps li { transition: border-color .2s, transform .2s, background .2s; }
.steps li:hover { border-color: var(--line-2); background: #101010; transform: translateX(-3px); }
[dir=ltr] .steps li:hover { transform: translateX(3px); }

/* back to top */
.to-top { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90; width: 44px; height: 44px; border: 1px solid var(--line-2); background: rgba(10,10,10,.9); border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s, transform .3s, border-color .2s; }
.to-top svg { width: 18px; height: 18px; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--white); }

@media (max-width: 640px) {
  .emblem { width: 140px; height: 140px; }
  .beam { width: 80vw; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-inner > *, .page-hero h1, .page-hero .sec-label, .page-hero .sec-sub, .stagger > *, .stagger-rows tbody tr { opacity: 1 !important; transform: none !important; }
}

/* ═════════════ TRAINING ═════════════ */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.tr-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tr-thumb { position: relative; aspect-ratio: 5 / 3; background: #050505; border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.tr-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; filter: grayscale(1) brightness(.9); }
.tr-card:hover .tr-thumb img { transform: scale(1.05); filter: grayscale(1) brightness(1.05); }
.tr-thumb > span.mono { color: var(--dim); font-size: .75rem; letter-spacing: .2em; }
.tr-code { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--white); color: #000; font-weight: 700; font-size: .85rem; padding: .25em .6em; border-radius: 2px; }
.tr-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tr-body h3 { font-size: 1.25rem; font-family: 'Cairo', var(--font-head); }
.tr-body p { color: var(--muted); font-size: .93rem; }
.tr-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 8px; }
.tr-meta > span.mono { font-size: .7rem; letter-spacing: .12em; color: var(--muted); border: 1px solid var(--line-2); padding: .3em .6em; border-radius: 2px; }
.tr-meta .timer { margin: 0; font-size: .7rem; }
.tr-end { text-align: center; padding-top: 70px; }
.tr-end h2 { font-size: 1.6rem; }

.tr-hero { padding-top: 60px; }
.tr-back { font-size: .75rem; letter-spacing: .18em; color: var(--muted); display: inline-block; margin-bottom: 26px; }
.tr-back:hover { color: var(--white); }
[dir=rtl] .tr-back { direction: rtl; }
.tr-hero-row { display: flex; gap: 28px; align-items: center; }
.tr-big { font: 700 clamp(4rem, 12vw, 8rem)/.9 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px #5a5a5a; flex: none; }
.tr-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tr-badges .timer { margin: 0; }
.tr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.tr-main { display: grid; gap: 44px; min-width: 0; }
.tr-diagram { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000; cursor: zoom-in; }
.tr-diagram img { width: 100%; }
.tr-diagram figcaption { font-size: .72rem; letter-spacing: .18em; color: var(--dim); padding: 10px 14px; border-top: 1px solid var(--line); }
.tr-block h2 { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; font-family: 'Cairo', var(--font-head); margin-bottom: 18px; }
.tr-block h2 .mono { font-size: .8rem; color: var(--dim); letter-spacing: .15em; }
.tr-video { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #000; }
.tr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tr-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.tr-check h3 { font: 700 1.2rem 'Cairo', sans-serif; margin: 2px 0 16px; }
.tr-check ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tr-check li { display: flex; gap: 12px; align-items: flex-start; color: #d4d4d4; font-size: .93rem; line-height: 1.6; }
.tr-check .box { width: 18px; height: 18px; border: 1.5px solid #fff; border-radius: 2px; flex: none; margin-top: 3px; position: relative; }
.tr-check .box::after { content: ''; position: absolute; inset: 3px; background: #fff; transform: scale(0); transition: transform .25s; }
.tr-check li:hover .box::after { transform: scale(1); }
.tr-nav { padding: 6px; display: grid; }
.tr-nav a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 2px; }
.tr-nav a + a { border-top: 1px solid var(--line); }
.tr-nav a:hover { background: #151515; }
.tr-nav .mono { font-size: .68rem; letter-spacing: .18em; color: var(--dim); }
.tr-nav b { font-weight: 600; font-size: .95rem; }
@media (max-width: 960px) {
  .tr-layout { grid-template-columns: 1fr; }
  .tr-side { position: static; }
}
@media (max-width: 640px) {
  .tr-grid { grid-template-columns: 1fr; }
  .tr-hero-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
