/* ============================================================
   FIB — Federal Investigation Bureau
   ============================================================ */
:root {
  --bg: #050608;
  --bg2: #080a0e;
  --panel: #0b0e13;
  --panel2: #10141b;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .14);
  --text: #e6e9ee;
  --muted: #8a93a6;
  --dim: #4b5263;
  --accent: #4da3ff;
  --accent2: #9ccbff;
  --gold: #d9b45b;
  --ok: #2ecc8f;
  --bad: #ef4b5c;
  --warn: #f5b942;
  --wait: #8a93a6;
  --r: 18px;
  --font: 'Tajawal', system-ui, sans-serif;
  --display: 'Archivo', 'Tajawal', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  line-height: 1.7; overflow-x: hidden; min-height: 100vh;
}
::selection { background: var(--accent); color: #000; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); letter-spacing: .08em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .5;
}
.bg-glow {
  position: fixed; inset: -20% -10% auto; height: 80vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(77, 163, 255, .16), transparent 60%);
}
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035;
  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 baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: grid; place-items: center; transition: opacity .7s ease, visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-in { text-align: center; }
.loader .emb { width: 120px; margin: 0 auto 22px; animation: spinIn 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.loader-word { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 12vw, 110px); line-height: .9; font-stretch: 125%; letter-spacing: -.02em; }
.loader-bar { width: 180px; height: 1px; background: var(--line2); margin: 22px auto 10px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.loader-txt { font-size: 10px; color: var(--muted); }
@keyframes spinIn { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; inset-inline: 0; z-index: 50;
  width: min(1200px, 100% - 24px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 16px; border-radius: 16px;
  background: rgba(8, 10, 14, .72); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-stretch: 115%; letter-spacing: .02em; direction: ltr; }
.brand .emb { width: 30px; }
.brand span b { color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: .2s; }
.nav-links a:hover, .nav-links a.on { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line2); font-size: 12px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--wait); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 0 rgba(46, 204, 143, .6); animation: ping 1.8s infinite; }
.dot.off { background: var(--bad); }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46, 204, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 204, 143, 0); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  background: var(--text); color: #000; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .4); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: none; }
.btn.blue { background: var(--accent); color: #00101f; }
.btn.discord { background: #5865f2; color: #fff; }
.btn.discord:hover { box-shadow: 0 10px 30px -10px #5865f2; }
.btn.lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; }
.me img { width: 28px; height: 28px; border-radius: 50%; }
.burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); }
.burger i { display: block; width: 16px; height: 1.5px; background: var(--text); margin: 4px auto; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-in { text-align: center; position: relative; z-index: 2; }
.hero-emb { position: relative; width: min(300px, 62vw); margin: 0 auto 34px; }
.hero-emb .emb { position: relative; z-index: 2; filter: drop-shadow(0 30px 60px rgba(77, 163, 255, .25)); }
.hero-emb .ring { position: absolute; inset: -16%; border-radius: 50%; border: 1px dashed var(--line2); animation: spin 40s linear infinite; }
.hero-emb .ring.r2 { inset: -32%; border-style: solid; border-color: var(--line); animation-duration: 80s; animation-direction: reverse; }
.hero-emb .ring::after { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero h1 { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(72px, 17vw, 210px); line-height: .82; letter-spacing: -.03em; direction: ltr; }
.hero h1 .o { -webkit-text-stroke: 1.5px var(--text); color: transparent; }
.hero .sub { font-family: var(--display); font-weight: 700; font-stretch: 110%; letter-spacing: .32em; font-size: clamp(11px, 1.6vw, 15px); color: var(--muted); margin-top: 16px; direction: ltr; }
.hero-meta { position: absolute; inset: auto 0 28px; display: flex; justify-content: space-between; width: min(1200px, 100% - 32px); margin: auto; font-size: 11px; color: var(--muted); z-index: 2; }
.hero-meta div { display: grid; gap: 4px; }
.hero-meta .r { text-align: left; }
.scan { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(77, 163, 255, .04) 50%); background-size: 100% 4px; pointer-events: none; z-index: 1; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 40px; font-size: 10px; color: var(--muted); }
.scroll-cue i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s 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; } }

/* ---------- sections ---------- */
section { position: relative; padding: 120px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-tag { font-size: 11px; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.sec-tag::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.sec-title { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: clamp(40px, 7vw, 92px); line-height: .9; letter-spacing: -.02em; direction: ltr; text-align: right; }
.sec-title .o { -webkit-text-stroke: 1.2px var(--text); color: transparent; }
.sec-ar { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin-top: 10px; }
.sec-desc { max-width: 420px; color: var(--muted); font-size: 15px; }

.reveal-text { font-size: clamp(30px, 5.2vw, 70px); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; }
.reveal-text span { color: #1d222c; transition: color .35s; }
.reveal-text span.on { color: var(--text); }
.reveal-text span.hl.on { color: var(--accent); }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; direction: ltr; background: var(--bg2); }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 3vw, 36px); padding-inline: 28px; white-space: nowrap; color: var(--dim); }
.marquee span:nth-child(odd) { color: var(--text); }
.marquee span.st { color: var(--accent); }
@keyframes marq { to { transform: translateX(-50%); } }

.fade { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.fade.in { opacity: 1; transform: none; }

/* ---------- command cards ---------- */
.command { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.agent {
  position: relative; border-radius: 22px; overflow: hidden; background: var(--panel);
  border: 1px solid var(--line); transition: border-color .3s, transform .4s cubic-bezier(.2, .8, .2, 1);
  transform-style: preserve-3d; --ac: var(--accent);
}
.agent:hover { border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.agent::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--ac) 14%, transparent), transparent 40%); opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 1; }
.agent:hover::before { opacity: 1; }
.agent .banner { height: 150px; position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--ac) 50%, #000), #07090d 75%); }
.agent .banner img { width: 100%; height: 100%; object-fit: cover; }
.agent .banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--panel)); }
.agent .banner .wm { position: absolute; left: 14px; top: 10px; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 70px; line-height: 1; color: rgba(255, 255, 255, .07); direction: ltr; z-index: 1; }
.agent .file { position: absolute; top: 12px; right: 14px; z-index: 2; font-size: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); backdrop-filter: blur(6px); }
.agent .body { position: relative; z-index: 2; padding: 0 22px 22px; margin-top: -54px; }
.av { position: relative; width: 104px; height: 104px; }
.av img.a { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid var(--panel); background: var(--panel2); }
.av img.d { position: absolute; inset: -14%; width: 128%; height: 128%; max-width: none; pointer-events: none; }
.av .st { position: absolute; bottom: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ac); border: 4px solid var(--panel); }
.agent .rank { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 10px; border-radius: 8px; font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--ac) 14%, transparent); color: color-mix(in srgb, var(--ac) 80%, #fff); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); direction: ltr; }
.agent h3 { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: 26px; line-height: 1.1; margin-top: 12px; direction: ltr; text-align: right; word-break: break-word; }
.agent .ic { color: var(--muted); font-size: 14px; direction: ltr; text-align: right; margin-top: 4px; }
.agent .ic b { color: var(--text); font-weight: 700; }
.agent .rank-ar { font-size: 13px; color: var(--muted); margin-top: 2px; }
.agent .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line2); font-size: 10.5px; color: var(--muted); direction: ltr; }
.agent .meta .stars { color: var(--gold); letter-spacing: 2px; font-size: 12px; }
.copy-id { cursor: pointer; transition: color .2s; }
.copy-id:hover { color: var(--text); }
.agent.director { --ac: var(--gold); }
.agent.director .banner { height: 190px; }
.agent.director .av { width: 128px; height: 128px; }
.agent.director h3 { font-size: 34px; }

/* ---------- divisions ---------- */
.division { margin-top: 70px; }
.div-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.div-code { font-size: 11px; color: var(--accent); padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 8px; }
.div-head h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 1.2; }
.div-head h3 small { display: block; font-family: var(--display); font-stretch: 120%; font-size: 12px; letter-spacing: .3em; color: var(--muted); font-weight: 700; }
.div-head p { color: var(--muted); font-size: 14px; max-width: 360px; }
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: .3s; }
.mini:hover { border-color: var(--line2); transform: translateY(-3px); }
.mini .av { width: 68px; height: 68px; flex: none; }
.mini .av img.a { border-width: 3px; }
.mini .av .st { width: 14px; height: 14px; border-width: 3px; bottom: 2px; left: 2px; }
.mini .info { min-width: 0; flex: 1; }
.mini h4 { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 18px; line-height: 1.2; direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .ic { font-size: 12.5px; color: var(--muted); direction: ltr; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .rk { display: inline-block; margin-top: 6px; font-size: 10.5px; font-weight: 700; color: var(--accent2); direction: ltr; }
.mini .num { position: absolute; left: 12px; top: 8px; font-size: 10px; color: var(--dim); }

/* ---------- join ---------- */
.join { border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel2), var(--bg) 60%); padding: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.join::after { content: 'FIB'; position: absolute; left: -2%; bottom: -18%; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(160px, 26vw, 360px); color: rgba(255, 255, 255, .025); line-height: 1; pointer-events: none; }
.join-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; position: relative; z-index: 1; }
.join h2 { font-size: clamp(32px, 4.6vw, 58px); font-weight: 900; line-height: 1.15; }
.join p { color: var(--muted); margin-top: 14px; max-width: 460px; }
.join-cta { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.steps-list { display: grid; gap: 12px; }
.step-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.step-row .n { font-family: var(--display); font-weight: 900; font-size: 28px; color: var(--accent); font-stretch: 120%; }
.step-row b { display: block; font-size: 16px; }
.step-row small { color: var(--muted); font-size: 12px; }
.step-row .c { font-size: 11px; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.stat { padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 900; font-stretch: 115%; line-height: 1.1; }
.stat span { font-size: 10px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 60px; color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- apply / status ---------- */
.page { padding: 130px 0 80px; min-height: 100vh; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 40px); position: relative; }
.app-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: 100px; display: grid; gap: 16px; }
.dossier { padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.dossier .top { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 18px; }
.dossier .who { display: flex; gap: 12px; align-items: center; }
.dossier .who img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line2); }
.dossier .who b { display: block; font-size: 16px; direction: ltr; text-align: right; }
.dossier .who small { color: var(--muted); font-size: 11px; }
.prog { display: grid; gap: 6px; margin-top: 4px; }
.prog-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; color: var(--muted); transition: .3s; }
.prog-item .k { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line2); flex: none; }
.prog-item b { display: block; font-size: 14px; color: inherit; }
.prog-item small { font-size: 10px; }
.prog-item.on { color: var(--text); border-color: var(--line2); background: rgba(255, 255, 255, .03); }
.prog-item.on .k { background: var(--accent); color: #001; border-color: var(--accent); }
.prog-item.ok .k { background: rgba(46, 204, 143, .15); color: var(--ok); border-color: rgba(46, 204, 143, .4); }
.bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); width: 0; transition: width .6s cubic-bezier(.2, .8, .2, 1); }

.form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px dashed var(--line2); }
.form-head .code { font-size: 11px; color: var(--accent); }
.form-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; line-height: 1.2; margin-top: 6px; }
.form-head .en { font-family: var(--display); font-stretch: 120%; font-weight: 800; letter-spacing: .25em; font-size: 11px; color: var(--muted); }
.form-head .big { font-family: var(--display); font-weight: 900; font-size: 64px; line-height: .8; color: rgba(255, 255, 255, .06); font-stretch: 125%; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; grid-column: 1 / -1; }
.field.half { grid-column: span 1; }
.field label { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label .en { font-family: var(--mono); font-size: 10px; color: var(--dim); font-weight: 400; letter-spacing: .1em; white-space: nowrap; }
.field .hint { font-size: 12.5px; color: var(--warn); display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.field .hint::before { content: '!'; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--warn); display: grid; place-items: center; font-size: 10px; font-weight: 900; margin-top: 2px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2);
  color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(77, 163, 255, .12); }
.input.ltr { direction: ltr; text-align: left; }
.input[readonly] { color: var(--muted); }
.field.err .input { border-color: var(--bad); }
.field .foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); min-height: 16px; }
.field .foot .e { color: var(--bad); font-family: var(--font); font-size: 12px; }
.field .foot .cnt.ok { color: var(--ok); }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px dashed var(--line2); }
.saved { font-size: 11px; color: var(--dim); }

.center-card { max-width: 560px; margin: 0 auto; text-align: center; }
.center-card .emb { width: 110px; margin: 0 auto 24px; }
.center-card h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.25; }
.center-card p { color: var(--muted); margin-top: 10px; }
.center-card .btn { margin-top: 26px; }

/* status */
.status-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.case { position: relative; overflow: hidden; }
.case .case-top { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px dashed var(--line2); gap: 10px; flex-wrap: wrap; }
.case h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-top: 26px; line-height: 1.2; }
.case .nm { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 20px; color: var(--muted); direction: ltr; text-align: right; }
.stamp {
  position: absolute; left: 34px; top: 74px; padding: 10px 22px; border: 4px solid currentColor; border-radius: 12px;
  font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(22px, 3.4vw, 36px); letter-spacing: .06em;
  transform: rotate(-12deg); opacity: .9; direction: ltr; animation: stampIn .6s cubic-bezier(.2, 1.6, .4, 1) both .3s;
  mix-blend-mode: screen;
}
.stamp small { display: block; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0; text-align: center; }
@keyframes stampIn { from { transform: rotate(-12deg) scale(2.4); opacity: 0; } }
.s-pending { color: var(--wait); }
.s-review { color: var(--warn); }
.s-accepted { color: var(--ok); }
.s-rejected { color: var(--bad); }
.timeline { margin-top: 36px; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 44px 1fr; gap: 14px; position: relative; padding-bottom: 26px; }
.tl::before { content: ''; position: absolute; right: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line2); background: var(--bg2); color: var(--dim); }
.tl .ic svg { width: 20px; height: 20px; }
.tl b { display: block; font-size: 16px; margin-top: 2px; }
.tl small { color: var(--muted); font-size: 12px; }
.tl.done .ic { color: var(--ok); border-color: rgba(46, 204, 143, .35); background: rgba(46, 204, 143, .08); }
.tl.done::before { background: rgba(46, 204, 143, .35); }
.tl.now .ic { color: var(--warn); border-color: rgba(245, 185, 66, .4); background: rgba(245, 185, 66, .08); animation: glow 2s infinite; }
.tl.bad .ic { color: var(--bad); border-color: rgba(239, 75, 92, .4); background: rgba(239, 75, 92, .08); }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(245, 185, 66, .08); } }
.note-box { margin-top: 10px; padding: 16px 18px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); font-size: 14px; white-space: pre-wrap; }
.note-box .mono { display: block; font-size: 10px; color: var(--muted); margin-bottom: 6px; }
.hist { display: grid; gap: 10px; }
.hist-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); font-size: 13px; }
.hist-item .mono { font-size: 10px; color: var(--muted); }
.badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; border: 1px solid currentColor; white-space: nowrap; }
.badge.s-pending, .badge.s-review, .badge.s-accepted, .badge.s-rejected { background: color-mix(in srgb, currentColor 10%, transparent); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); font-size: 14px; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: var(--bad); }

.success-burst { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(5, 6, 8, .92); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .4s; }
.success-burst.show { opacity: 1; visibility: visible; }
.success-burst .in { text-align: center; }
.success-burst .emb { width: 140px; margin: 0 auto 24px; animation: spinIn 1s cubic-bezier(.2, .8, .2, 1) both; }
.success-burst h2 { font-size: clamp(30px, 5vw, 52px); font-weight: 900; }
.success-burst p { color: var(--muted); }
.success-burst .mono { color: var(--ok); font-size: 12px; margin-top: 8px; }

.skel { background: linear-gradient(90deg, var(--panel) 25%, var(--panel2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 22px; min-height: 280px; border: 1px solid var(--line); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .command { grid-template-columns: 1fr 1fr; }
  .command .director { grid-column: 1 / -1; }
  .div-grid { grid-template-columns: 1fr 1fr; }
  .join-grid, .app-layout, .status-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .div-head { grid-template-columns: auto 1fr; }
  .div-head p { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; padding: 8px; border-radius: 14px; background: rgba(8, 10, 14, .96); border: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .burger { display: block; }
  .nav .pill { display: none; }
  .command, .div-grid { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .fields { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .hero-meta { font-size: 9px; }
  .stat-row { grid-template-columns: 1fr 1fr 1fr; }
  .stamp { position: static; display: inline-block; margin-top: 20px; }
  .form-head .big { display: none; }
  .me span { display: none; }
  .me { padding: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- division profile cards (small) ---------- */
.div-grid .agent.sm .banner { height: 120px; }
.div-grid .agent.sm .wm { font-size: 56px; }
.div-grid .agent.sm .av { width: 88px; height: 88px; }
.div-grid .agent.sm .body { margin-top: -46px; padding: 0 18px 18px; }
.div-grid .agent.sm h3 { font-size: 22px; }
.div-grid .agent.sm .meta { margin-top: 14px; }

/* ---------- copyright ---------- */
footer .copy { width: min(1200px, 100% - 32px); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); direction: ltr; letter-spacing: .2em; }

/* ---------- wait note ---------- */
.wait-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 16px; border-radius: 12px; background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .35); color: var(--warn); font-size: 14px; font-weight: 700; }
.wait-note svg { width: 18px; height: 18px; flex: none; }
.success-burst .wait-note { margin: 18px auto 4px; }

/* ---------- hero v2 ---------- */
.hero2 { min-height: 100svh; position: relative; display: flex; align-items: center; padding: 120px 0 90px; overflow: hidden; }
.h2-beam { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(600px 420px at 22% 50%, rgba(77, 163, 255, .16), transparent 70%),
  linear-gradient(115deg, transparent 40%, rgba(77, 163, 255, .05) 50%, transparent 60%); }
.h2-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.h2-tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); font-size: 11px; color: var(--muted); }
.h2-tag .sep { color: var(--dim); }
.h2-title { font-size: clamp(48px, 7.4vw, 104px); font-weight: 900; line-height: 1.02; letter-spacing: -.01em; margin-top: 26px; }
.h2-title span { background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2-en { font-family: var(--display); font-weight: 800; font-stretch: 115%; letter-spacing: .34em; font-size: clamp(11px, 1.3vw, 14px); color: var(--muted); margin-top: 20px; direction: ltr; text-align: right; }
.h2-p { color: var(--muted); font-size: 17px; max-width: 460px; margin-top: 18px; }
.h2-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.h2-meta { display: flex; margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; width: fit-content; max-width: 100%; overflow: hidden; }
.h2-meta div { padding: 14px 22px; display: grid; gap: 2px; border-inline-start: 1px solid var(--line); }
.h2-meta div:first-child { border: 0; }
.h2-meta b { font-family: var(--display); font-size: 20px; font-weight: 900; font-stretch: 110%; color: var(--text); }
.h2-meta span { font-size: 9.5px; color: var(--muted); }
.h2-visual { display: grid; place-items: center; }
.h2-frame { position: relative; width: min(440px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.h2-frame .c { position: absolute; width: 34px; height: 34px; border: 2px solid var(--accent); }
.h2-frame .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.h2-frame .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.h2-frame .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.h2-frame .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.h2-orbit { position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed var(--line2); animation: spin 50s linear infinite; }
.h2-orbit::after { content: ''; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.h2-orbit.o2 { inset: 2%; border-style: solid; border-color: var(--line); animation-duration: 90s; animation-direction: reverse; }
.h2-emb { width: 70%; position: relative; z-index: 2; filter: drop-shadow(0 30px 70px rgba(77, 163, 255, .3)); animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
.h2-lbl { position: absolute; font-size: 10px; color: var(--muted); padding: 5px 9px; border: 1px solid var(--line2); border-radius: 7px; background: rgba(5, 6, 8, .8); }
.h2-lbl.l1 { top: 12%; left: -4%; }
.h2-lbl.l2 { bottom: 12%; right: -4%; color: var(--accent); }
.h2-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 2; }
@media (max-width: 900px) {
  .h2-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .h2-visual { order: -1; }
  .h2-frame { width: min(300px, 72vw); }
  .h2-en { text-align: center; }
  .h2-p { margin-inline: auto; }
  .h2-cta, .h2-meta { justify-content: center; margin-inline: auto; }
  .h2-lbl { display: none; }
}
@media (max-width: 420px) { .h2-meta div { padding: 12px 14px; } .h2-meta b { font-size: 16px; } }

/* reveal text — longer copy */
#reveal { font-size: clamp(26px, 4vw, 54px); line-height: 1.4; max-width: 1100px; }

/* ---------- acceptance letter ---------- */
.letter { position: relative; margin-top: 26px; padding: clamp(22px, 4vw, 36px); border-radius: 20px; border: 1px solid rgba(46, 204, 143, .35); background: linear-gradient(160deg, rgba(46, 204, 143, .08), var(--bg2) 55%); overflow: hidden; }
.letter::after { content: 'FIB'; position: absolute; left: -10px; bottom: -40px; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 160px; line-height: 1; color: rgba(255, 255, 255, .025); pointer-events: none; }
.letter-top { display: flex; justify-content: space-between; font-size: 10px; color: var(--ok); padding-bottom: 14px; border-bottom: 1px dashed rgba(46, 204, 143, .3); margin-bottom: 20px; }
.letter-emb { width: 74px; margin-bottom: 14px; }
.letter-title { font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(24px, 3.4vw, 34px); direction: ltr; text-align: right; line-height: 1.1; }
.letter-to { font-family: var(--display); font-weight: 700; color: var(--ok); direction: ltr; text-align: right; margin: 6px 0 16px; }
.letter p { font-weight: 700; font-size: 15.5px; line-height: 1.9; margin-top: 12px; position: relative; z-index: 1; }
.letter-remind { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 14px; border-radius: 12px; background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .35); color: var(--warn); font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.letter-remind svg { width: 18px; height: 18px; }
.letter-btn { display: flex; width: fit-content; margin-top: 22px; position: relative; z-index: 1; }
