:root {
  /* colour — cool near-black ground, brand navy + IU orange, warm-biased neutrals */
  --bg: #0a0d12;
  --bg-soft: #12161d;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.09);
  --ink: #f4f2ec;
  --grey: #9c9a90;
  --grey-dim: #666459;
  --accent: #e64a36;
  --accent-2: #ff9c7c;
  --accent-glow: rgba(230,74,54,0.32);
  --navy: #0d3457;
  --navy-deep: #051627;

  /* type — condensed display (Chicago skyline lineage), Public Sans body (the US gov's own face), Plex Mono for CAD/utility */
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sys: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* consistent radius scale */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sys);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 10% -10%, rgba(230,74,54,0.14), transparent 55%),
    radial-gradient(800px 560px at 100% 0%, rgba(13,52,87,0.6), transparent 52%),
    radial-gradient(900px 700px at 50% 115%, rgba(230,74,54,0.07), transparent 55%);
}
.grain {
  position: fixed; inset: 0; z-index: 0; opacity: 0.025; pointer-events: none; mix-blend-mode: overlay;
  background-image: url("assets/pattern-small-red.png");
  background-size: 460px auto;
  background-repeat: repeat;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: var(--mono); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
@media (max-width: 560px) { .wrap { padding: 0 20px; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.2s !important; }
  .reveal { transform: none !important; }
  .ticker-track { animation: none !important; }
}

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 26px; height: 26px; border-radius: 7px; overflow: hidden; flex-shrink: 0;
  background: var(--ink);
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; color: var(--ink); text-transform: uppercase; }
.brand-text span { color: var(--accent); }

/* ---------- dispatch ticker ---------- */
.ticker {
  position: relative; z-index: 51; overflow: hidden;
  background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ticker-track {
  display: flex; align-items: center; white-space: nowrap; width: max-content;
  padding: 7px 0; animation: ticker-scroll 36s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.03em; color: var(--accent-2);
  padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.09);
}
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- nav ---------- */
.navbar { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; padding-top: 14px; }
nav {
  width: min(820px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: rgba(10,13,18,0.72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.navlinks { display: flex; gap: 24px; font-size: 13.5px; color: var(--grey); }
.navlinks a { transition: color 0.2s ease; }
.navlinks a:hover { color: var(--ink); }
@media (max-width: 700px) { .navlinks { display: none; } }
.nav-cta {
  background: var(--accent); color: #170f0c !important; padding: 9px 18px;
  border-radius: 999px; font-size: 13px; font-weight: 700;
  transition: transform 0.15s cubic-bezier(0.16,1,0.3,1);
}
.nav-cta:active { transform: scale(0.95); }

/* ---------- hero ---------- */
.hero { padding: 72px 32px 0; max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; }
@media (max-width: 560px) { .hero { padding-left: 20px; padding-right: 20px; } }
.hero h1 { max-width: 700px; text-wrap: balance; }
.hero .hero-sub { max-width: 54ch; }

h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 0.98; letter-spacing: 0.005em;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); font-weight: 500;
  margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-sub { color: var(--grey); font-size: 17px; margin-top: 20px; line-height: 1.65; }
.hero-meta { display: flex; gap: 24px; margin-top: 24px; font-family: var(--mono); font-size: 11.5px; color: var(--grey-dim); flex-wrap: wrap; }
.hero-meta strong { color: var(--grey); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.btn-primary, .btn-roblox {
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 9px;
  transition: transform 0.15s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
}
.btn-primary { background: var(--accent); color: #170f0c; box-shadow: 0 8px 24px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:active, .btn-roblox:active { transform: scale(0.95); }
.btn-roblox { background: var(--ink); color: #0d1015; box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.btn-roblox::before { content: ""; width: 13px; height: 13px; border-radius: 3px; background: #0d1015; }
.btn-secondary {
  border: 1px solid var(--panel-border); background: var(--panel); color: var(--ink);
  padding: 14px 24px; border-radius: 999px; font-size: 14.5px; display: inline-block;
  transition: transform 0.15s cubic-bezier(0.16,1,0.3,1), border-color 0.2s ease;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.28); }
.btn-secondary:active { transform: scale(0.95); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- hero banner + countdown ---------- */
.hero-banner {
  margin-top: 40px; position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 64px -28px rgba(230,74,54,0.3);
}
.countdown-chip {
  position: absolute; left: 20px; bottom: 20px;
  background: rgba(6,10,14,0.8); border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(12px); border-radius: var(--r-sm); padding: 12px 18px;
}
.countdown-label { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grey); margin-bottom: 5px; }
.countdown-timer { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .countdown-chip { position: static; margin-top: 14px; display: inline-block; } }

/* ---------- section shared ---------- */
section { position: relative; z-index: 1; }
.section-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: 0.005em; max-width: 560px; line-height: 1.05; text-wrap: balance; }
.section-desc { color: var(--grey); max-width: 46ch; font-size: 15px; margin-top: 14px; line-height: 1.6; }

/* ---------- server info strip ---------- */
.info-strip { padding: 40px 0 0; }
.info-row { display: flex; gap: 14px; flex-wrap: wrap; }
.info-cell { flex: 1 1 200px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 16px 18px; background: var(--panel); }
.info-cell-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-dim); margin-bottom: 7px; }
.info-cell-value { font-family: var(--sys); font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* ---------- stripe divider ---------- */
.stripe-wrap { overflow: hidden; margin: 6px 0 96px; }
.stripe { height: 40px; background-image: url("assets/pattern-small-red.png"); background-size: 170px auto; background-repeat: repeat; transform: rotate(-1.3deg) scale(1.04); opacity: 0.85; }

/* ---------- how to join: numbered rows ---------- */
.how-section { padding-top: 26px; padding-bottom: 104px; }
.flow { margin-top: 46px; display: flex; flex-direction: column; }
.flow-row { display: grid; grid-template-columns: 84px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.08); align-items: start; }
.flow-row:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.flow-num { font-family: var(--display); font-size: 30px; color: rgba(255,255,255,0.15); font-weight: 700; }
.flow-content h3 { font-family: var(--display); font-size: 21px; font-weight: 700; text-transform: uppercase; margin-bottom: 7px; letter-spacing: 0.005em; }
.flow-content p { color: var(--grey); font-size: 14.5px; max-width: 52ch; line-height: 1.6; }
@media (max-width: 600px) { .flow-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- owner / leadership ---------- */
.owner-section { padding-bottom: 104px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
@media (max-width: 720px) { .owner-section { grid-template-columns: 1fr; } }
.owner-badge { width: 210px; margin: 0 auto; }
.owner-badge-shape {
  width: 210px; height: 256px;
  clip-path: polygon(50% 0%, 100% 17%, 100% 66%, 50% 100%, 0% 66%, 0% 17%);
  background-image: url("assets/logo-variant-6.png");
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow: 0 26px 54px -18px rgba(0,0,0,0.55);
}
.owner-badge-tag { text-align: center; margin-top: 13px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--grey-dim); text-transform: uppercase; }
.owner-name { font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; margin-top: 4px; letter-spacing: 0.005em; }
.owner-name span { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.05em; margin-left: 10px; vertical-align: middle; text-transform: uppercase; }
.owner-bio { color: var(--grey); font-size: 15px; line-height: 1.7; margin-top: 15px; max-width: 58ch; }
.owner-links { margin-top: 20px; }
.staff-note { grid-column: 1 / -1; margin-top: 40px; padding: 20px 22px; border: 1px dashed var(--panel-border); border-radius: var(--r-md); display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.staff-note p { color: var(--grey); font-size: 14px; max-width: 46ch; line-height: 1.6; }

/* ---------- departments: patch grid ---------- */
.departments-section { padding-bottom: 108px; }
.patch-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .patch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .patch-grid { grid-template-columns: 1fr; } }
.patch { border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 22px 18px; background: var(--panel); text-align: center; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), border-color 0.3s ease; }
.patch:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }
.patch-badge {
  width: 66px; height: 80px; margin: 0 auto 15px;
  clip-path: polygon(50% 0%, 100% 17%, 100% 66%, 50% 100%, 0% 66%, 0% 17%);
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.patch-name { font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.patch-code { font-family: var(--mono); font-size: 10px; color: var(--grey-dim); letter-spacing: 0.06em; margin-bottom: 11px; }
.patch-note { font-size: 12.5px; color: var(--grey); line-height: 1.5; }
.patch.open { border-style: dashed; background: transparent; }
.patch.open .patch-badge {
  clip-path: none; border-radius: 50%; background: none; border: 1.5px dashed rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--grey-dim);
}

/* ---------- rules preview ---------- */
.rules-section { padding-bottom: 120px; }
.rules-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 700px) { .rules-grid { grid-template-columns: 1fr; } }
.rule-row { display: flex; gap: 16px; padding: 19px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); background: var(--panel); }
.rule-index { font-family: var(--display); font-size: 21px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.rule-row h4 { font-family: var(--display); font-size: 15px; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.005em; }
.rule-row p { font-size: 13px; color: var(--grey); line-height: 1.55; }
.rules-more { margin-top: 22px; }

/* ---------- cta banner ---------- */
.cta-banner { position: relative; border-radius: var(--r-lg); overflow: hidden; margin: 0 auto 86px; max-width: 1120px; }
.cta-banner-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 6%; gap: 16px; }
.cta-banner h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.005em; max-width: 420px; }
@media (max-width: 640px) { .cta-banner-inner { padding: 22px 6%; } .cta-banner h2 { font-size: 20px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 0 32px 40px; position: relative; z-index: 1; }
@media (max-width: 560px) { footer { padding-left: 20px; padding-right: 20px; } }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; padding-top: 46px; }
@media (max-width: 620px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--grey-dim); font-size: 13px; max-width: 250px; line-height: 1.6; }
.footer-col h4 { font-family: var(--mono); font-size: 10.5px; color: var(--grey-dim); font-weight: 500; margin-bottom: 13px; letter-spacing: 0.06em; }
.footer-col a { display: block; font-size: 13.5px; color: var(--grey); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { max-width: 1120px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 12px; color: var(--grey-dim); line-height: 1.7; }

::selection { background: var(--accent); color: #170f0c; }
