@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ============================================================
   THEME TOKENS
   ============================================================ */
:root,
[data-theme="dark"] {
  --bg: #0b0e13;
  --ink: #eef1f5;
  --muted: #97a2ac;
  --faint: #5f6a75;
  --line: rgba(238, 241, 245, .09);
  --line-strong: rgba(238, 241, 245, .18);
  --surface: #121620;
  --surface-2: #171c28;
  --surface-3: #1d2331;
  --gold: #4f8fff;
  --gold-2: #7ab0ff;
  --teal: #38b28f;
  --red: #e2564a;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .5);
  --watermark-opacity: .07;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --ink: #10151c;
  --muted: #566270;
  --faint: #838d98;
  --line: rgba(16, 21, 28, .09);
  --line-strong: rgba(16, 21, 28, .18);
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --surface-3: #e3e8ee;
  --gold: #2563eb;
  --gold-2: #1d4ed8;
  --teal: #12806a;
  --red: #b3392e;
  --shadow: 0 20px 50px rgba(16, 21, 28, .12);
  --watermark-opacity: .09;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-shell { overflow: hidden; position: relative; }

/* ============================================================
   GRID BACKDROP + WATERMARK
   ============================================================ */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.35) 320px, transparent 620px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9) 0, rgba(0,0,0,.35) 320px, transparent 620px);
}
[data-theme="light"] .grid-overlay { opacity: .35; }

.watermark {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(760px, 90vw);
  transform: translateX(-50%);
  opacity: 0;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 15%, transparent 62%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 15%, transparent 62%);
  pointer-events: none;
  user-select: none;
  animation: watermark-in 1.8s ease .1s forwards;
}
[data-theme="light"] .watermark { filter: grayscale(1) contrast(1.15) invert(0); }
.watermark img { width: 100%; }
@keyframes watermark-in { from { opacity: 0; } to { opacity: var(--watermark-opacity); } }
@media (prefers-reduced-motion: reduce) {
  .watermark { animation: none; opacity: var(--watermark-opacity); }
}
.hero { position: relative; z-index: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0 0;
}
.nav {
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 100px;
  box-shadow: var(--shadow);
  transition: background .25s ease, border-color .25s ease;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .03em; }
.brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font: 600 13px "Inter"; }
.brand small { color: var(--muted); font: 600 10px "Space Grotesk"; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 12px; color: var(--muted); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s ease; }
.nav-links a:not(.nav-discord):after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--gold); transition: right .25s ease;
}
.nav-links a:not(.nav-discord):hover:after,
.nav-links a.active:not(.nav-discord):after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-discord { color: var(--bg) !important; background: var(--gold); padding: 9px 15px; border-radius: 100px; font-weight: 600; transition: transform .2s ease, background .2s ease; }
.nav-discord:hover { background: var(--gold-2); transform: translateY(-1px); }
.nav-discord span { margin-left: 6px; }
.nav-toggle { display: none; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; display: grid; place-items: center;
  font-size: 14px; transition: border-color .2s ease, transform .3s ease;
}
.theme-toggle:hover { border-color: var(--gold); transform: rotate(18deg); }
.theme-toggle:before { content: "\1F319"; }
[data-theme="light"] .theme-toggle:before { content: "\2600\FE0F"; }

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow { color: var(--gold); font: 600 11px/1.2 "Space Grotesk", sans-serif; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 20px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px color-mix(in srgb, var(--teal) 20%, transparent); margin-right: 10px; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; font-family: "Space Grotesk", "Inter", sans-serif; }
h1, h2 { letter-spacing: -.01em; line-height: 1; font-weight: 600; }
h1 { max-width: 660px; margin-bottom: 22px; font-size: clamp(46px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
h3 { font-family: "Inter", sans-serif; font-size: 15px; letter-spacing: -.01em; margin-bottom: 5px; font-weight: 600; }
p { font-family: "Inter", sans-serif; }
em { color: var(--gold); font-style: normal; }
code, .mono { font-family: "JetBrains Mono", monospace; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 600px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-top: 80px; padding-bottom: 66px; }
.hero-lede { max-width: 480px; color: var(--muted); font-size: 16px; line-height: 1.8; margin-bottom: 30px; }
.button-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 100px; border: 1px solid transparent; padding: 12px 18px; font: 600 12px "Inter"; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--bg); background: var(--gold); box-shadow: 0 12px 25px color-mix(in srgb, var(--gold) 25%, transparent); }
.button-primary:hover { background: var(--gold-2); }
.button-primary span { color: var(--bg); }
.button-quiet { color: var(--muted); border-color: var(--line-strong); background: transparent; }
.button-quiet:hover { border-color: var(--gold); color: var(--ink); }
.button span { color: var(--gold); margin-left: 6px; }
.hero-note { margin-top: 64px; color: var(--faint); font: 11px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.hero-note span { color: var(--gold); margin-right: 10px; }
.hero-art { min-height: 420px; position: relative; display: grid; place-items: center; }
.hero-art:before { content: ""; position: absolute; width: 340px; height: 340px; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 50%; }
.hero-art:after { content: ""; position: absolute; width: 455px; height: 455px; border: 1px dashed color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 50%; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-glow { width: 260px; height: 260px; position: absolute; background: color-mix(in srgb, var(--gold) 30%, transparent); filter: blur(75px); border-radius: 50%; }
.hero-logo { width: 220px; height: 220px; object-fit: cover; border-radius: 42px; position: relative; z-index: 1; box-shadow: var(--shadow); }
.hero-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font: 10px "JetBrains Mono", monospace; color: var(--muted); animation: rise .7s both; }
.hero-card-top { top: 42px; right: 0; }
.hero-card-bottom { bottom: 50px; left: 0; display: grid; gap: 3px; }
.hero-card-bottom strong { color: var(--ink); font: 600 14px "Inter"; }
.hero-card-bottom span { font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.green { background: var(--teal); }

/* ============================================================
   METRICS
   ============================================================ */
.metrics { position: relative; z-index: 1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr) 1.4fr; gap: 20px; align-items: center; }
.metrics > div:not(.metric-slogan) { display: grid; gap: 5px; }
.metrics strong { font-size: 26px; letter-spacing: -.02em; }
.metrics span { color: var(--muted); font: 10px "Space Grotesk"; letter-spacing: .12em; text-transform: uppercase; }
.metric-slogan { border-left: 1px solid var(--line); padding-left: 30px; color: var(--gold); font: 15px "Space Grotesk"; line-height: 1.3; }
.metric-slogan span { color: var(--muted); font-family: "Inter"; text-transform: none; letter-spacing: 0; font-size: 13px; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 30px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 40px; }
.section-heading h2 { max-width: 520px; margin-bottom: 0; }
.section-heading > p { max-width: 290px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 3px; font-family: "Inter"; }

/* ============================================================
   DEPARTMENTS — organised, uniform grid
   ============================================================ */
.department-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.department-card {
  height: 240px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
}
.department-card:hover { border-color: color-mix(in srgb, var(--gold) 45%, transparent); transform: translateY(-3px); }
.department-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: transform .5s ease, opacity .3s ease; }
.department-card:hover img { transform: scale(1.05); opacity: .58; }
.department-card:after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 96%, transparent)); }
.department-index {
  position: relative; z-index: 1; align-self: flex-start; font: 600 10px "JetBrains Mono"; color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 100px; padding: 4px 10px; letter-spacing: .06em;
}
.department-content { position: relative; z-index: 1; }
.department-content .eyebrow { color: var(--gold-2); margin-bottom: 6px; font-size: 10px; }
.department-content h3 { font-family: "Space Grotesk"; font-weight: 600; font-size: 20px; margin-bottom: 3px; }
.department-content p { color: color-mix(in srgb, var(--ink) 78%, transparent); font-size: 11px; margin: 0; }

/* ============================================================
   SPLIT SECTION
   ============================================================ */
.split-section { position: relative; z-index: 1; padding-top: 140px; display: grid; grid-template-columns: 1fr 1fr; gap: 75px; align-items: center; }
.image-frame { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.image-frame img { width: 100%; min-height: 400px; object-fit: cover; }
.split-copy > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 470px; font-family: "Inter"; }
.principles { margin-top: 32px; }
.principles article { display: grid; grid-template-columns: 32px 1fr; gap: 14px; border-top: 1px solid var(--line); padding: 18px 0; transition: padding-left .2s ease; }
.principles article:hover { padding-left: 6px; }
.principles article > span, .role-list span { color: var(--gold); font: 600 11px "JetBrains Mono", monospace; }
.principles p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 0; font-family: "Inter"; }

/* ============================================================
   GALLERY — data driven sizes
   ============================================================ */
.gallery-section { position: relative; }
.gallery-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 13px; grid-auto-flow: dense; }
.gallery-grid figure { margin: 0; min-height: 225px; overflow: hidden; position: relative; background: var(--surface-2); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .25s ease; }
.gallery-grid figure:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.gallery-grid figure img, .gallery-grid figure video { width: 100%; height: 100%; min-height: 225px; object-fit: cover; opacity: .78; transition: transform .5s ease, opacity .3s ease; }
.gallery-grid figure:hover img, .gallery-grid figure:hover video { transform: scale(1.04); opacity: .92; }
.gallery-grid figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 11px; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.gallery-grid figcaption span { color: var(--gold-2); font: 600 9px "JetBrains Mono", monospace; letter-spacing: .1em; margin-right: 6px; }
.gallery-grid figure:after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.gallery-feature { grid-row: span 2; min-height: 465px !important; }
.gallery-feature img { min-height: 465px !important; }
.gallery-wide { grid-column: span 2; }

/* ============================================================
   JOIN BANNER + FOOTER
   ============================================================ */
.join-banner { position: relative; z-index: 1; margin-top: 130px; margin-bottom: 130px; padding: 55px 60px; display: flex; justify-content: space-between; gap: 60px; align-items: end; background: linear-gradient(125deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface)); border: 1px solid var(--line-strong); border-radius: 20px; }
.join-banner h2 { margin: 0; }
.join-banner > div:last-child { max-width: 300px; }
.join-banner > div:last-child p { color: var(--muted); font-size: 12px; margin-bottom: 18px; font-family: "Inter"; }
.footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding-top: 35px; padding-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 42px 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.footer-brand strong { font: 600 12px "Inter"; }
.footer-brand p { color: var(--muted); font-size: 10px; margin: 3px 0 0; }
.footer-links { justify-self: end; display: flex; gap: 18px; color: var(--muted); font-size: 10px; flex-wrap: wrap; justify-content: end; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--gold); }
.footer-bottom { grid-column: span 2; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; color: var(--faint); font: 10px "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.footer-bottom a { color: var(--muted); }

/* ============================================================
   PAGE HERO (staff / ingame / comms)
   ============================================================ */
.page-hero { position: relative; z-index: 1; padding-top: 108px; padding-bottom: 78px; }
.page-hero h1 { max-width: 700px; margin-bottom: 20px; }
.page-hero > p:last-child { color: var(--muted); max-width: 460px; font-size: 15px; line-height: 1.9; font-family: "Inter"; }
.page-hero-compact { padding-bottom: 48px; }

/* ============================================================
   STAFF PAGE — grouped by role
   ============================================================ */
.staff-spotlight { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 65px; align-items: center; padding-bottom: 90px; }
.staff-spotlight img { height: 370px; width: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.staff-spotlight > div > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.9; margin-bottom: 25px; font-family: "Inter"; }
.role-group { margin-bottom: 46px; }
.role-group-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.role-group-heading h3 { font-family: "Space Grotesk"; font-size: 22px; font-weight: 600; margin: 0; }
.role-group-heading .count { color: var(--faint); font: 10px "JetBrains Mono"; letter-spacing: .08em; text-transform: uppercase; }
.role-group-heading:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.staff-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s ease, border-color .25s ease; }
.staff-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.staff-avatar { width: 54px; height: 54px; object-fit: cover; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.staff-card .eyebrow { margin: 0; font-size: 9px; }
.staff-card h3 { margin: 6px 0 0; font-family: "Space Grotesk"; font-size: 19px; font-weight: 600; }
.staff-id { color: var(--faint); font: 9px "JetBrains Mono", monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-info, .server-help { position: relative; z-index: 1; margin-top: 110px; margin-bottom: 120px; padding: 46px 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.staff-info h2, .server-help h2 { margin: 0; }
.role-list { display: grid; gap: 0; }
.role-list > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.role-list strong, .role-list small { grid-column: 2; }
.role-list small { color: var(--muted); font-size: 10px; margin-top: -8px; }

/* ============================================================
   IN-GAME
   ============================================================ */
.server-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; padding-bottom: 50px; }
.server-intro { position: sticky; top: 108px; }
.server-intro p, .server-help p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 350px; font-family: "Inter"; }
.server-code-large { font-family: "Space Grotesk"; font-size: 40px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 15px; }
.server-code-large span { color: var(--gold); font-weight: 400; }
.server-list { display: grid; gap: 10px; }
.server-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 24px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .2s ease; }
.server-card:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); transform: translateY(-2px); }
.server-card .eyebrow { margin: 0 0 6px; font-size: 9px; }
.server-card h3 { margin: 0 0 4px; }
.server-card p { color: var(--muted); margin: 0; font-size: 11px; font-family: "Inter"; }
.server-card .server-code { font: 500 15px "JetBrains Mono", monospace; color: var(--gold-2); }
.server-help { margin-top: 70px; }
.text-link { color: var(--gold); font-size: 12px; font-weight: 700; }
.text-link span { margin-left: 7px; }

/* ============================================================
   COMMS PAGE
   ============================================================ */
.comms-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 60px; }
.comms-code {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 16px 22px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 100px;
}
.comms-code strong { font: 700 20px "JetBrains Mono", monospace; color: var(--gold-2); letter-spacing: .04em; }
.comms-code span { color: var(--faint); font: 10px "Space Grotesk"; text-transform: uppercase; letter-spacing: .12em; }
.comms-steps { display: grid; gap: 12px; }
.comms-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.comms-step:hover { border-color: color-mix(in srgb, var(--gold) 40%, transparent); transform: translateY(-2px); }
.comms-step span {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2);
  font: 600 12px "JetBrains Mono", monospace;
}
.comms-step h3 { font-size: 16px; margin-bottom: 5px; font-family: "Inter"; }
.comms-step p { color: var(--muted); font-size: 12.5px; line-height: 1.8; margin: 0; font-family: "Inter"; }
.comms-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: grid; gap: 14px; }
.comms-faq h3 { font-size: 15px; }
.comms-faq dl {
  margin: 0; display: grid; gap: 4px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px 18px;
}
.comms-faq dt { color: var(--gold-2); font: 600 12px "JetBrains Mono", monospace; }
.comms-faq dd { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; font-family: "Inter"; }
.ping-example { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold-2); font: 600 12px "JetBrains Mono", monospace; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { animation: rise .7s both; }
.delay-1 { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal-io { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-io.in-view { opacity: 1; transform: none; }

/* ============================================================
   ADMIN PORTAL
   ============================================================ */
.admin-main { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 80px; }
.admin-login { max-width: 430px; min-height: 500px; margin: 30px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.admin-mark img { width: 76px; height: 76px; object-fit: cover; border-radius: 20px; margin-bottom: 24px; border: 1px solid var(--line); }
.admin-login h1, .dashboard-top h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 16px; }
.admin-login > p:not(.eyebrow):not(.form-message) { color: var(--muted); font-size: 13px; line-height: 1.8; margin-bottom: 26px; font-family: "Inter"; }
.dashboard-top { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.dashboard-top p:not(.eyebrow) { color: var(--muted); font-size: 13px; margin: 0; font-family: "Inter"; }
.dashboard-user { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.dashboard-user img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.dashboard-user .button { margin-left: 6px; padding: 8px 12px; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 30px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; width: fit-content; }
.admin-tab { border: 0; background: transparent; color: var(--muted); padding: 9px 17px; border-radius: 100px; font: 600 11px "Inter"; cursor: pointer; transition: background .2s ease, color .2s ease; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { background: var(--gold); color: var(--bg); }

.tab-panel { display: none; animation: rise .4s both; }
.tab-panel.active { display: block; }

.editor-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 16px; }
.editor-heading { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 20px; }
.editor-heading h2 { font-size: 24px; margin: 0; }
.editor-heading label { display: grid; color: var(--muted); font: 10px "JetBrains Mono"; text-transform: uppercase; gap: 5px; }
.editor-heading input { width: 60px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; border-top: 1px solid var(--line); padding: 14px 0; position: relative; }
.field-row:first-child { border-top: 0; padding-top: 0; }
.field-row label, .link-fields label { display: grid; gap: 5px; color: var(--faint); font: 9px "JetBrains Mono"; text-transform: uppercase; }
.field-row label:first-child { grid-column: span 2; }
.field-row .remove-row { position: absolute; top: 14px; right: 0; color: var(--red); border: 0; background: none; font-size: 13px; cursor: pointer; transition: transform .2s ease; }
.field-row .remove-row:hover { transform: scale(1.2); }
.link-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-fields label { grid-column: span 2; }
input, textarea, select {
  width: 100%; color: var(--ink); background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--line); border-radius: 8px; outline: 0; padding: 9px 10px; font: 12px "JetBrains Mono", monospace;
  transition: border-color .2s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); }
select { appearance: none; cursor: pointer; }
.editor-card > .button { margin-top: 6px; padding: 9px 13px; font-size: 10px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 20px; margin-top: 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); padding: 12px; border-radius: 100px; border: 1px solid var(--line); }
.form-message { color: var(--muted); font-size: 11px; min-height: 18px; font-family: "Inter"; }
.form-message.error { color: var(--red); }
.form-message.success { color: var(--teal); }
.hidden { display: none !important; }

.staff-row-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; border-top: 1px solid var(--line); padding: 14px 0; position: relative; }
.staff-row-card:first-child { border-top: 0; padding-top: 0; }
.staff-row-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.staff-row-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }
.staff-row-fields label { display: grid; gap: 4px; color: var(--faint); font: 9px "JetBrains Mono"; text-transform: uppercase; }
.staff-row-meta { color: var(--faint); font: 9px "JetBrains Mono"; }

.discord-picker { position: relative; margin-bottom: 18px; }
.discord-picker-label { margin: 0 0 8px; color: var(--faint); font: 600 9px "JetBrains Mono"; text-transform: uppercase; letter-spacing: .1em; }
.discord-picker-input { position: relative; }
.discord-picker-input input { padding-left: 34px; }
.discord-picker-input:before { content: "\1F50D"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 11px; opacity: .6; }
.discord-picker-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 5; max-height: 260px; overflow-y: auto;
  background: var(--surface-3); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow);
  animation: rise .18s both;
}
.discord-picker-result { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; transition: background .15s ease; }
.discord-picker-result:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.discord-picker-result img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.discord-picker-result span { font-size: 12px; }
.discord-picker-result small { color: var(--faint); font: 9px "JetBrains Mono"; margin-left: auto; }
.discord-picker-note { color: var(--faint); font-size: 11px; margin: 8px 0 0; font-family: "Inter"; }

.manager-list { display: grid; gap: 10px; }
.manager-card { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface-3); border: 1px solid var(--line); border-radius: 10px; }
.manager-card img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.manager-card strong { display: block; font-size: 13px; }
.manager-card small { color: var(--faint); font: 9px "JetBrains Mono"; }
.manager-badge { margin-left: auto; font: 600 9px "JetBrains Mono"; color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); border-radius: 100px; padding: 3px 9px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
  .container { width: min(100% - 32px, 620px); }
  .nav { height: 62px; border-radius: 22px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 78px; left: 22px; right: 22px; padding: 10px 16px 16px; background: color-mix(in srgb, var(--surface) 97%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .nav-discord { text-align: center; margin-top: 6px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 76px; gap: 30px; }
  h1 { font-size: clamp(45px, 13vw, 68px); }
  .hero-art { min-height: 320px; }
  .hero-art:before { width: 250px; height: 250px; }
  .hero-art:after { width: 330px; height: 330px; }
  .hero-logo { width: 160px; height: 160px; border-radius: 35px; }
  .hero-card-top { top: 10px; right: 0; }
  .hero-card-bottom { bottom: 10px; left: 0; }
  .metrics { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .metric-slogan { grid-column: span 3; border-left: 0; border-top: 1px solid var(--line); padding: 15px 0 0; }
  .section { padding-top: 85px; }
  .section-heading, .split-section, .staff-spotlight, .server-layout, .staff-info, .server-help, .comms-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { align-items: start; }
  .department-grid { grid-template-columns: 1fr 1fr; }
  .department-card { height: 210px; }
  .split-section { padding-top: 95px; }
  .image-frame img { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-feature { grid-row: auto; min-height: 300px !important; }
  .gallery-feature img { min-height: 300px !important; }
  .gallery-wide { grid-column: span 2; }
  .join-banner { margin-top: 90px; margin-bottom: 90px; padding: 35px 25px; display: grid; gap: 25px; }
  .footer { grid-template-columns: 1fr; gap: 25px; }
  .footer-links { justify-self: start; justify-content: start; }
  .footer-bottom { grid-column: auto; gap: 15px; flex-direction: column; }
  .page-hero { padding-top: 72px; padding-bottom: 50px; }
  .staff-spotlight { padding-bottom: 45px; }
  .staff-spotlight img { height: 250px; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
  .staff-info, .server-help { margin-top: 70px; margin-bottom: 80px; padding: 28px 23px; }
  .server-intro { position: static; }
  .server-layout { padding-bottom: 20px; }
  .admin-main { padding-top: 30px; }
  .dashboard-top { align-items: start; flex-direction: column; }
  .dashboard-user { width: 100%; flex-wrap: wrap; }
  .staff-row-fields { grid-template-columns: 1fr; }
  .staff-row-card { grid-template-columns: 36px 1fr; }
  .staff-row-card > button.remove-row { position: static; grid-column: span 2; justify-self: start; }
  .save-bar { justify-content: space-between; }
}

@media (max-width: 470px) {
  .department-grid, .staff-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-feature, .gallery-wide { grid-column: auto; }
  .gallery-wide { min-height: 225px !important; }
  .gallery-wide video { min-height: 225px; }
  .link-fields { grid-template-columns: 1fr; }
  .link-fields label { grid-column: auto; }
  .field-row { grid-template-columns: 1fr; }
  .field-row label:first-child { grid-column: auto; }
  .hero-note { margin-top: 42px; }
  .admin-tabs { width: 100%; overflow-x: auto; }
}
