@font-face {
  font-family: "Inter Local";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn Local";
  src: url("/assets/fonts/VazirmatnVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10231f;
  --ink-soft: #29413b;
  --forest: #193d34;
  --sage: #6f8f82;
  --sage-pale: #dce6df;
  --cream: #f2efe6;
  --paper: #fbfaf6;
  --gold: #bd914d;
  --gold-soft: #e7d4ae;
  --line: rgba(16, 35, 31, 0.12);
  --muted: #66736f;
  --danger: #a65a4d;
  --shadow: 0 24px 70px rgba(20, 42, 36, 0.12);
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Vazirmatn Local", Tahoma, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: "Inter Local", Arial, sans-serif; }

button, input { font: inherit; }
a { color: inherit; }
img { display: block; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.page-glow {
  position: fixed;
  z-index: -2;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
  opacity: .55;
}
.page-glow-one { inset: -250px -180px auto auto; background: radial-gradient(circle, var(--gold-soft), transparent 68%); }
.page-glow-two { inset: 62vh auto auto -280px; background: radial-gradient(circle, #cbded5, transparent 67%); }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 24px 0;
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 35, 31, .16);
  transform: rotate(3deg);
}
.brand-mark::after { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; }
.brand-cube { font-family: "Inter Local", sans-serif; font-weight: 800; font-size: 23px; line-height: 1; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font: 750 18px/1.1 "Inter Local", sans-serif; letter-spacing: -.02em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; }

.language-switch {
  display: inline-flex;
  padding: 4px;
  direction: ltr;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.42);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.language-switch a {
  min-width: 45px;
  padding: 7px 11px;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  border-radius: 999px;
  font: 700 12px/1.2 "Inter Local", sans-serif;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.language-switch a.active { color: white; background: var(--ink); box-shadow: 0 4px 12px rgba(16,35,31,.18); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 80px;
  min-height: 570px;
  padding-block: 58px 95px;
}

.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(189,145,77,.13); animation: breathe 2.6s ease-in-out infinite; }

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px, 6.2vw, 83px);
  font-weight: 780;
  line-height: 1.08;
  letter-spacing: -.055em;
}
html[dir="rtl"] .hero h1 { letter-spacing: -.035em; }
.hero h1 em { color: var(--gold); font-style: normal; font-weight: 800; }
.hero p { max-width: 630px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 36px; }
.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 19px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(16,35,31,.18);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.primary-action:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(16,35,31,.23); }
.primary-action img { width: 19px; filter: invert(1); }
.update-note { color: var(--muted); font-size: 12px; }

.hero-art { position: relative; width: min(100%, 470px); aspect-ratio: 1; margin-inline: auto; }
.hero-art::before { content: ""; position: absolute; inset: 13%; border-radius: 42% 58% 51% 49% / 46% 42% 58% 54%; background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(220,230,223,.55)); box-shadow: var(--shadow); animation: morph 13s ease-in-out infinite alternate; }
.orbit { position: absolute; border: 1px solid rgba(16,35,31,.18); border-radius: 50%; }
.orbit-outer { inset: 1%; animation: spin 32s linear infinite; }
.orbit-inner { inset: 17%; border-style: dashed; animation: spin-reverse 24s linear infinite; }
.orbit-node { position: absolute; width: 12px; height: 12px; border: 3px solid var(--cream); border-radius: 50%; background: var(--gold); box-shadow: 0 4px 10px rgba(16,35,31,.2); }
.node-one { inset: 10% 17% auto auto; }
.node-two { inset: auto auto 7% 22%; background: var(--forest); }
.atlas-emblem { position: absolute; inset: 25%; display: grid; place-content: center; text-align: center; border: 1px solid rgba(16,35,31,.16); border-radius: 34%; background: rgba(251,250,246,.83); box-shadow: inset 0 0 0 7px rgba(255,255,255,.45), 0 20px 55px rgba(16,35,31,.13); backdrop-filter: blur(12px); transform: rotate(-3deg); }
.atlas-emblem strong { font: 850 clamp(70px, 9vw, 105px)/.83 "Inter Local", sans-serif; letter-spacing: -.1em; transform: translateX(-.04em); }
.atlas-emblem span { font: 800 10px/1 "Inter Local", sans-serif; letter-spacing: .35em; }
.emblem-top { margin-bottom: 12px; }
.emblem-bottom { margin-top: 13px; color: var(--gold); }
.art-label { position: absolute; padding: 7px 10px; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(16,35,31,.08); font: 700 9px/1 "Inter Local", sans-serif; letter-spacing: .16em; }
.label-one { inset: 18% auto auto 0; transform: rotate(-7deg); }
.label-two { inset: auto 0 22% auto; transform: rotate(7deg); }

.stats-shell { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -25px; padding: 12px; border: 1px solid rgba(255,255,255,.9); border-radius: 22px; background: rgba(251,250,246,.75); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.stat-card { display: flex; align-items: center; gap: 15px; min-height: 88px; padding: 16px 20px; border-inline-end: 1px solid var(--line); }
.stat-card:last-child { border-inline-end: 0; }
.stat-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; background: var(--sage-pale); border-radius: 12px; }
.stat-icon img { width: 21px; opacity: .72; }
.stat-card div { display: grid; }
.stat-card strong { color: var(--ink); font: 760 25px/1.1 "Inter Local", sans-serif; }
.stat-card span:last-child { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }

.roster-section { padding-block: 120px 130px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-kicker { color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 7px 0 5px; font-size: clamp(32px, 4vw, 49px); line-height: 1.2; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.refresh-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background 180ms ease, transform 180ms ease; }
.refresh-button:hover { background: rgba(255,255,255,.65); transform: translateY(-1px); }
.refresh-button img { width: 17px; }
.refresh-button.loading img { animation: spin 800ms linear infinite; }

.directory-stage {
  position: relative;
  margin-top: 35px;
  padding: 28px;
  overflow: hidden;
  color: #e6eef7;
  background:
    radial-gradient(720px 320px at 4% -8%, rgba(39,179,255,.16), transparent 62%),
    radial-gradient(620px 320px at 96% 0%, rgba(0,255,136,.10), transparent 62%),
    linear-gradient(155deg, #0c1218, #111a24 54%, #0d151e);
  border: 1px solid #2b3f54;
  border-radius: 26px;
  box-shadow: 0 26px 65px rgba(7,18,27,.26);
  isolation: isolate;
}
.directory-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .36;
  background-image:
    linear-gradient(rgba(39,179,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,179,255,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  animation: atlas-grid 28s linear infinite;
}
.directory-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255,255,255,.055);
}
.stage-orb { position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; filter: blur(75px); opacity: .16; pointer-events: none; animation: stage-drift 13s ease-in-out infinite alternate; }
.stage-orb-one { inset: 8% auto auto -100px; background: #27b3ff; }
.stage-orb-two { inset: auto -100px 4% auto; background: #00ff88; animation-delay: -5s; }

.filter-panel { position: relative; display: flex; align-items: center; gap: 15px; padding: 10px; border: 1px solid #2b3f54; border-radius: 17px; background: rgba(22,32,44,.78); box-shadow: 0 12px 35px rgba(0,0,0,.16); backdrop-filter: blur(14px); }
.search-box { display: flex; flex: 0 0 min(330px, 36%); align-items: center; gap: 10px; min-height: 43px; padding: 0 13px; background: #111a24; border: 1px solid #2b3f54; border-radius: 11px; }
.search-box:focus-within { border-color: #27b3ff; box-shadow: 0 0 0 3px rgba(39,179,255,.12); }
.search-box img { width: 18px; opacity: .72; filter: invert(89%) sepia(8%) saturate(442%) hue-rotate(167deg); }
.search-box input { min-width: 0; flex: 1; color: #e6eef7; background: transparent; border: 0; outline: 0; font-size: 13px; }
.search-box input::placeholder { color: #71879b; }
.search-box kbd { padding: 2px 6px; color: #9ab0c5; background: #1c2b3a; border: 1px solid #2b3f54; border-radius: 5px; font: 600 10px/1.4 "Inter Local", sans-serif; }
.rank-filters { display: flex; flex: 1; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rank-filters::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; padding: 9px 13px; color: #9ab0c5; background: transparent; border: 0; border-radius: 9px; cursor: pointer; white-space: nowrap; font-size: 11px; font-weight: 700; transition: color 180ms ease, background 180ms ease, transform 180ms ease; }
.filter-chip:hover { color: #e6eef7; background: #1c2b3a; transform: translateY(-1px); }
.filter-chip.active { color: #07131a; background: linear-gradient(135deg, #27b3ff, #50ffc2); box-shadow: 0 5px 16px rgba(39,179,255,.2); }

.roster-status { display: flex; min-height: 210px; align-items: center; justify-content: center; gap: 12px; color: #9ab0c5; font-size: 13px; }
.status-spinner { width: 18px; height: 18px; border: 2px solid #2b3f54; border-top-color: #27b3ff; border-radius: 50%; animation: spin 700ms linear infinite; }
.rank-groups { display: grid; gap: 58px; margin-top: 50px; }
.rank-group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.rank-group-head h3 { margin: 0; color: #e6eef7; font-size: 19px; letter-spacing: -.02em; }
.rank-count { display: grid; min-width: 27px; height: 27px; place-items: center; color: #7dd8ff; background: rgba(39,179,255,.11); border: 1px solid rgba(39,179,255,.2); border-radius: 8px; font: 750 11px/1 "Inter Local", sans-serif; }
.rank-line { flex: 1; height: 1px; background: linear-gradient(90deg, #2b3f54, transparent); }
html[dir="rtl"] .rank-line { background: linear-gradient(270deg, #2b3f54, transparent); }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.staff-card {
  --tone-a: #27b3ff;
  --tone-b: #00ff88;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #16202c, #111a24);
  border: 1px solid #2b3f54;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
  transition: transform .32s cubic-bezier(.2,.75,.25,1), border-color .32s ease, box-shadow .32s ease;
  transform: translateZ(0);
}
.staff-card::before { content: ""; position: absolute; z-index: 4; inset: 0 auto 0 -120%; width: 72%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.075), transparent); transform: skewX(-18deg); transition: left .7s ease; }
.staff-card:hover { z-index: 2; transform: translateY(-6px) scale(1.008); border-color: color-mix(in srgb, var(--tone-a) 42%, #2b3f54); box-shadow: 0 20px 42px rgba(0,0,0,.3), 0 0 22px color-mix(in srgb, var(--tone-a) 12%, transparent); }
.staff-card:hover::before { left: 145%; }
.tone-owner { --tone-a: #ffbe0b; --tone-b: #ff8a3d; }
.tone-admin { --tone-a: #27b3ff; --tone-b: #50ffc2; }
.tone-moderator { --tone-a: #b84fff; --tone-b: #27b3ff; }
.tone-helper { --tone-a: #00d9ff; --tone-b: #00ff88; }
.tone-builder { --tone-a: #f59e0b; --tone-b: #00d9ff; }
.tone-discord { --tone-a: #7c8cff; --tone-b: #b84fff; }
.staff-cover { position: relative; height: 92px; overflow: hidden; background: linear-gradient(128deg, color-mix(in srgb, var(--tone-a) 66%, #101a24), color-mix(in srgb, var(--tone-b) 35%, #111a24)); border-bottom: 1px solid rgba(255,255,255,.08); }
.staff-cover::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; transform: perspective(160px) rotateX(48deg) scale(1.35); transform-origin: bottom; }
.staff-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 65%; background: linear-gradient(transparent, rgba(12,18,24,.25)); }
.card-atlas-mark { position: absolute; z-index: 1; inset: -37px auto auto -14px; width: 145px; height: 145px; object-fit: cover; border-radius: 50%; opacity: .16; mix-blend-mode: screen; filter: saturate(.8) contrast(1.15); transform: rotate(-8deg); transition: transform .55s ease, opacity .4s ease; }
html[dir="rtl"] .card-atlas-mark { inset-inline: auto -14px; }
.staff-card:hover .card-atlas-mark { opacity: .25; transform: rotate(-3deg) scale(1.06); }
.cover-label { position: absolute; z-index: 2; inset: 15px 16px auto auto; color: rgba(255,255,255,.82); font: 750 8px/1 "Inter Local", sans-serif; letter-spacing: .18em; }
html[dir="rtl"] .cover-label { inset-inline: 16px auto; }
.staff-card-body { position: relative; padding: 0 17px 17px; }
.staff-profile { position: relative; z-index: 3; display: flex; align-items: flex-end; gap: 12px; min-height: 75px; margin-top: -39px; }
.staff-avatar-frame { position: relative; flex: 0 0 76px; width: 76px; height: 76px; padding: 3px; background: linear-gradient(135deg, var(--tone-a), var(--tone-b)); border-radius: 50%; box-shadow: 0 7px 20px rgba(0,0,0,.32); }
.staff-avatar { width: 100%; height: 100%; object-fit: cover; background: #16202c; border: 3px solid #111a24; border-radius: 50%; }
.avatar-ring { position: absolute; inset: -4px; border: 1px solid color-mix(in srgb, var(--tone-a) 55%, transparent); border-radius: 50%; opacity: .6; animation: avatar-breathe 3.2s ease-in-out infinite; }
.staff-identity { min-width: 0; flex: 1; padding-bottom: 6px; }
.staff-name { display: block; overflow: hidden; color: #f4f8fc; font-size: 14px; font-weight: 780; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"] .staff-name { font-family: "Inter Local", sans-serif; }
.staff-handle { display: block; overflow: hidden; margin-top: 2px; color: #8299ae; font: 560 10px/1.3 "Inter Local", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.staff-details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #26394c; }
.staff-detail { display: flex; align-items: center; min-width: 0; gap: 8px; padding: 9px; background: rgba(12,18,24,.43); border: 1px solid rgba(43,63,84,.72); border-radius: 11px; }
.detail-icon { display: grid; flex: 0 0 27px; width: 27px; height: 27px; place-items: center; color: var(--tone-a); background: color-mix(in srgb, var(--tone-a) 11%, transparent); border: 1px solid color-mix(in srgb, var(--tone-a) 18%, transparent); border-radius: 8px; font: 800 8px/1 "Inter Local", sans-serif; }
.detail-copy { display: grid; min-width: 0; }
.detail-copy small { color: #71879b; font-size: 8px; line-height: 1.2; }
.detail-copy bdi, .detail-copy strong { overflow: hidden; margin-top: 3px; color: #dfe9f2; font-size: 10px; font-weight: 680; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.staff-level { margin-top: 3px; color: #8299ae; font-size: 8px; line-height: 1.2; }
.leave-badge { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 9px; padding: 4px 7px; color: #ff9f91; background: rgba(239,68,68,.11); border: 1px solid rgba(239,68,68,.18); border-radius: 6px; font-size: 8px; font-weight: 750; white-space: nowrap; }
.leave-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.staff-card.animate__animated { --animate-duration: .48s; }
.staff-card:nth-child(2) { animation-delay: 45ms; }
.staff-card:nth-child(3) { animation-delay: 90ms; }
.staff-card:nth-child(4) { animation-delay: 135ms; }
.staff-card:nth-child(5) { animation-delay: 180ms; }
.staff-card:nth-child(6) { animation-delay: 225ms; }

.empty-state { padding: 90px 20px; color: #e6eef7; text-align: center; }
.empty-state img { width: 34px; margin: 0 auto 17px; opacity: .4; }
.empty-state h3 { margin: 0; font-size: 19px; }
.empty-state p { margin: 7px 0 0; color: #9ab0c5; font-size: 13px; }

.site-footer { padding: 32px 0 max(32px, env(safe-area-inset-bottom)); color: #d9e2de; background: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark.small { width: 38px; height: 38px; color: var(--ink); background: var(--paper); box-shadow: none; }
.brand-mark.small .brand-cube { font-size: 18px; }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; font: 720 14px/1.2 "Inter Local", sans-serif; }
.footer-brand div span { margin-top: 4px; color: #96aaa3; font-size: 10px; }
.footer-meta { display: flex; align-items: center; gap: 18px; color: #96aaa3; font-size: 10px; }
.footer-meta a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); }
.footer-meta a:hover { color: white; }

noscript { position: fixed; inset: auto 20px 20px; z-index: 20; padding: 12px; color: white; background: var(--danger); text-align: center; border-radius: 10px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 10px rgba(189,145,77,0); } }
@keyframes morph { 0% { border-radius: 42% 58% 51% 49% / 46% 42% 58% 54%; transform: rotate(-2deg); } 100% { border-radius: 55% 45% 43% 57% / 53% 58% 42% 47%; transform: rotate(3deg); } }
@keyframes atlas-grid { to { background-position: 44px 44px; } }
@keyframes stage-drift { to { transform: translate3d(35px, -24px, 0) scale(1.12); } }
@keyframes avatar-breathe { 50% { opacity: .2; transform: scale(1.055); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr minmax(300px, .72fr); gap: 30px; min-height: 520px; }
  .hero h1 { font-size: clamp(45px, 7.5vw, 67px); }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-shell { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-inline-end: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filter-panel { align-items: stretch; flex-direction: column; }
  .search-box { flex-basis: auto; width: 100%; }
}

@media (max-width: 700px) {
  :root { --shell: min(100% - 28px, 600px); }
  html { scroll-padding-top: 76px; }
  .site-header { padding: 16px 0; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { display: none; }
  .language-switch a { min-width: 41px; padding: 7px 9px; }
  .hero { display: flex; min-height: auto; padding-block: 45px 75px; text-align: center; flex-direction: column; }
  .hero-copy { display: flex; align-items: center; flex-direction: column; }
  .eyebrow { margin-bottom: 19px; }
  .hero h1 { font-size: clamp(41px, 13vw, 61px); line-height: 1.14; }
  .hero p { margin-top: 20px; font-size: 14px; line-height: 1.85; }
  .hero-actions { justify-content: center; margin-top: 29px; }
  .update-note { flex-basis: 100%; }
  .hero-art { width: min(82vw, 340px); margin-top: 8px; }
  .art-label { display: none; }
  .stats-shell { margin-top: 0; padding: 7px; border-radius: 18px; }
  .stat-card { min-height: 78px; padding: 12px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .stat-icon img { width: 18px; }
  .stat-card strong { font-size: 21px; }
  .stat-card span:last-child { font-size: 9px; }
  .roster-section { padding-block: 85px 90px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 12px; }
  .refresh-button span { display: none; }
  .refresh-button { padding: 10px; }
  .directory-stage { margin-top: 25px; padding: 14px; border-radius: 20px; }
  .filter-panel { margin-top: 0; border-radius: 14px; }
  .rank-filters { width: 100%; padding-bottom: 1px; }
  .staff-grid { grid-template-columns: 1fr; gap: 10px; }
  .rank-groups { gap: 44px; margin-top: 38px; }
  .rank-group-head { margin-bottom: 13px; }
  .staff-card { padding: 0; }
  .staff-avatar-frame { width: 70px; height: 70px; flex-basis: 70px; }
  .staff-avatar { width: 100%; height: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { width: 100%; justify-content: space-between; }
}

@media (max-width: 390px) {
  :root { --shell: calc(100% - 22px); }
  .hero h1 { font-size: 39px; }
  .hero-art { width: 88vw; }
  .stats-shell { grid-template-columns: 1fr 1fr; }
  .stat-card { padding-inline: 8px; }
  .stat-icon { display: none; }
  .section-heading h2 { font-size: 30px; }
  .staff-name { font-size: 13px; }
  .directory-stage { padding: 11px; }
  .staff-card-body { padding-inline: 13px; }
  .staff-details { gap: 7px; }
  .staff-detail { padding: 8px 7px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Unified AtlasCraft dark theme */
[hidden] { display: none !important; }
body {
  color: #e6eef7;
  background:
    radial-gradient(900px 450px at 12% -8%, rgba(39,179,255,.16), transparent 62%),
    radial-gradient(1100px 420px at 92% -14%, rgba(80,255,194,.11), transparent 58%),
    radial-gradient(650px 340px at 50% 110%, rgba(255,188,59,.07), transparent 65%),
    #0c1218;
}
.page-glow-one { background: radial-gradient(circle,rgba(39,179,255,.24),transparent 68%); }
.page-glow-two { background: radial-gradient(circle,rgba(80,255,194,.16),transparent 67%); }
.grain { opacity: .045; filter: invert(1); }
.site-header { position: sticky; top: 0; padding: 15px 0; background: rgba(12,18,24,.78); border-bottom: 1px solid rgba(43,63,84,.8); box-shadow: 0 7px 24px rgba(0,0,0,.12); backdrop-filter: blur(18px); }
.brand-mark { color: #06151b; background: linear-gradient(135deg,#27b3ff,#50ffc2); box-shadow: 0 8px 24px rgba(39,179,255,.16); }
.brand-mark::after { border-color: rgba(7,19,26,.2); }
.brand-copy strong { color: #eaf5fb; }
.brand-copy small { color: #8299ae; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.header-login { padding: 9px 13px; color: #cce8f5; background: rgba(22,32,44,.8); border: 1px solid #2b3f54; border-radius: 10px; text-decoration: none; font-size: 11px; font-weight: 750; transition: border-color .2s ease,color .2s ease; }
.header-login:hover { color: #52ccff; border-color: #27b3ff; }
.language-switch { border-color: #2b3f54; background: rgba(22,32,44,.75); }
.language-switch a { color: #8299ae; }
.language-switch a.active { color: #07131a; background: linear-gradient(135deg,#27b3ff,#50ffc2); box-shadow: 0 5px 15px rgba(39,179,255,.2); }
.eyebrow { color: #9fe8ff; }
.live-dot { background: #50ffc2; box-shadow: 0 0 0 6px rgba(80,255,194,.11); }
.hero h1 { color: #edf7fc; }
.hero h1 em { color: #49c9ff; }
.hero p,.update-note { color: #9ab0c5; }
.primary-action { color: #06151b; background: linear-gradient(135deg,#27b3ff,#50ffc2); border-color: transparent; box-shadow: 0 12px 25px rgba(39,179,255,.2); }
.primary-action img { filter: none; }
.hero-art::before { background: linear-gradient(145deg,rgba(28,43,58,.95),rgba(16,26,36,.8)); box-shadow: 0 25px 65px rgba(0,0,0,.35); }
.orbit { border-color: rgba(82,204,255,.3); }
.orbit-node { border-color: #0c1218; background: #27b3ff; }
.node-two { background: #50ffc2; }
.atlas-emblem { color: #eaf8ff; background: rgba(17,26,36,.88); border-color: #2b3f54; box-shadow: inset 0 0 0 7px rgba(39,179,255,.03),0 20px 55px rgba(0,0,0,.3); }
.emblem-bottom { color: #50ffc2!important; }
.art-label { color: #bcd4e3; background: #16202c; border-color: #2b3f54; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.stats-shell { border-color: #2b3f54; background: rgba(22,32,44,.84); box-shadow: 0 24px 65px rgba(0,0,0,.28); }
.stat-card { border-color: #2b3f54; }
.stat-icon { background: rgba(39,179,255,.1); }
.stat-icon img { filter: invert(86%) sepia(20%) saturate(1000%) hue-rotate(166deg); }
.stat-card strong { color: #eff9ff; }
.stat-card span:last-child { color: #8299ae; }
.section-heading h2 { color: #eff9ff; }
.section-heading p { color: #9ab0c5; }
.section-kicker { color: #52ccff; }
.refresh-button { color: #c8d8e7; border-color: #2b3f54; }
.refresh-button:hover { background: #16202c; border-color: #27b3ff; }
.refresh-button img { filter: invert(84%) sepia(16%) saturate(624%) hue-rotate(165deg); }
.search-box { flex: 1; max-width: 540px; }
.staff-card { color: inherit; text-decoration: none; }
.staff-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.staff-cover:has(.staff-banner-image)::before { opacity: .16; }
.staff-cover:has(.staff-banner-image)::after { height: 100%; background: linear-gradient(90deg,rgba(12,18,24,.42),transparent 55%),linear-gradient(transparent 40%,rgba(12,18,24,.62)); }
.staff-cover:has(.staff-banner-image) .card-atlas-mark { opacity: .09; }
.staff-subtitle { display: block; overflow: hidden; margin-top: 4px; color: #a8c2d3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.card-mini-badges { display: flex; gap: 6px; margin-top: 12px; }
.card-mini-badges img { width: 26px; height: 26px; filter: drop-shadow(0 4px 7px rgba(0,0,0,.28)); transition: transform .2s ease; }
.card-mini-badges img:hover { transform: translateY(-2px) scale(1.08); }
.site-footer { border-top: 1px solid #2b3f54; background: #080e13; }

@media (max-width:700px) {
  .header-login { padding: 8px 10px; }
  .nav-actions { gap: 7px; }
  .search-box { max-width: none; }
}
