/* =============================================================================
   ASHFALL — Premium multipurpose DayZ website template
   For communities, clans and fan sites — any map, any playstyle.
   Warm charcoal + gold/rust accents (distinct from Cherno Refuge & Blackpine).
   Edit :root tokens below to re-skin the whole site.
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");

/* -----------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — warm charcoal, never blue */
  --bg: #0b0906;
  --bg-2: #12100a;
  --bg-3: #191510;
  --surface: #16120c;
  --surface-2: #1f1911;
  --surface-3: #2a2217;

  /* Type */
  --text: #f4e9d6;
  --text-2: #bda98a;
  --text-3: #8a7a61;

  /* Accents */
  --gold: #e8b43a;
  --gold-soft: #f7d27a;
  --gold-deep: #a87c15;
  --rust: #c45c2a;
  --rust-soft: #e07a45;
  --online: #9ec94a;
  --danger: #d9483b;

  /* Lines */
  --line: rgba(244, 233, 214, 0.1);
  --line-2: rgba(244, 233, 214, 0.18);
  --line-gold: rgba(232, 180, 58, 0.34);

  /* Shadow */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.65);
  --glow: 0 0 0 1px var(--line-gold), 0 14px 40px rgba(232, 180, 58, 0.12);

  /* Shape */
  --radius-xs: 3px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Fonts */
  --display: "Bebas Neue", "Oswald", "Haettenschweiler", sans-serif;
  --ui: "Oswald", "Bebas Neue", sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Metrics */
  --header-h: 68px;
  --banner-h: 40px;
  --container: 1220px;
  --gutter: clamp(1rem, 4vw, 2.25rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
  --fast: 0.18s var(--ease);
  --slow: 0.55s var(--ease);
}

/* -----------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  font-family: var(--body);
  font-size: 1.0125rem;
  line-height: 1.68;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 80% -10%, rgba(232, 180, 58, 0.09), transparent 60%),
    radial-gradient(900px 520px at 0% 8%, rgba(196, 92, 42, 0.08), transparent 62%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fine dust grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: -60px;
  pointer-events: none;
  z-index: 900;
  opacity: 0.38;
  background-image:
    radial-gradient(rgba(244, 233, 214, 0.16) 0.5px, transparent 0.5px),
    radial-gradient(rgba(196, 92, 42, 0.1) 0.5px, transparent 0.5px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 2px 1px;
  animation: dust-drift 9s steps(6) infinite;
}

@keyframes dust-drift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-8px, 5px, 0); }
  50% { transform: translate3d(6px, -6px, 0); }
  75% { transform: translate3d(-4px, -3px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--fast);
}

a:hover { color: var(--gold-soft); }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: #120d04;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h2 { font-size: clamp(2.15rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }

p + p { margin-top: 0.9rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.7rem 1.2rem;
  background: var(--gold);
  color: #120d04;
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: #120d04;
}

/* -----------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 880px; }

.section {
  position: relative;
  padding: clamp(3.75rem, 8vw, 7rem) 0;
}

.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section--band {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--dune {
  background:
    linear-gradient(180deg, rgba(232, 180, 58, 0.045), transparent 45%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-family: var(--ui);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
}

.section-header--center .section-label { justify-content: center; }

.section-header p {
  margin-top: 0.9rem;
  color: var(--text-2);
  font-size: 1.06rem;
}

.lede {
  font-size: 1.14rem;
  color: var(--text-2);
}

/* -----------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-line: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--btn-line);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ui);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--fast), border-color var(--fast), background var(--fast), color var(--fast), box-shadow var(--fast);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: linear-gradient(160deg, var(--gold-soft), var(--gold) 48%, var(--gold-deep));
  --btn-fg: #150f03;
  --btn-line: transparent;
  box-shadow: 0 10px 26px rgba(232, 180, 58, 0.24);
}

.btn--primary:hover {
  color: #150f03;
  box-shadow: 0 16px 34px rgba(232, 180, 58, 0.34);
}

.btn--rust {
  --btn-bg: linear-gradient(160deg, var(--rust-soft), var(--rust));
  --btn-fg: #1a0c04;
  --btn-line: transparent;
  box-shadow: 0 10px 26px rgba(196, 92, 42, 0.26);
}

.btn--rust:hover { color: #1a0c04; }

.btn--secondary {
  --btn-bg: rgba(244, 233, 214, 0.05);
  --btn-line: var(--line-2);
  backdrop-filter: blur(6px);
}

.btn--secondary:hover {
  --btn-line: var(--line-gold);
  color: var(--gold);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-line: var(--line);
  color: var(--text-2);
}

.btn--ghost:hover {
  --btn-line: var(--line-gold);
  color: var(--gold);
}

.btn--sm {
  padding: 0.56rem 1.05rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.btn--lg { padding: 1.05rem 2.1rem; font-size: 0.98rem; }

.btn--block { width: 100%; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* -----------------------------------------------------------------------------
   5. Demo banner
   -------------------------------------------------------------------------- */
.demo-banner {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  padding: 0.62rem var(--gutter);
  background: repeating-linear-gradient(135deg, #1c1409, #1c1409 12px, #221a0c 12px, #221a0c 24px);
  border-bottom: 1px solid var(--line-gold);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.demo-banner strong { color: var(--gold); font-weight: 600; }

.demo-banner a {
  color: var(--text);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 1px;
}

.demo-banner a:hover { color: var(--gold); }

/* -----------------------------------------------------------------------------
   6. Header + nav
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 9, 6, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast);
}

.site-header.is-stuck {
  background: rgba(11, 9, 6, 0.94);
  border-bottom-color: var(--line-gold);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-sm);
  filter: saturate(1.05) contrast(1.05);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--display);
  font-size: 1.62rem;
  letter-spacing: 0.11em;
  color: var(--text);
}

.logo__sub {
  font-family: var(--ui);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.logo:hover .logo__name { color: var(--gold-soft); }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.6vw, 1.2rem);
  list-style: none;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.35rem;
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.15rem;
  height: 2px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transition: right var(--fast);
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--text); }

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { right: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  padding: 0 9px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(244, 233, 214, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform var(--fast), opacity var(--fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(6, 5, 3, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--fast), visibility var(--fast);
}

body.nav-open .nav-scrim { opacity: 1; visibility: visible; }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    width: min(340px, 86vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: calc(var(--header-h) + 1.75rem) 1.6rem 2rem;
    background: linear-gradient(180deg, var(--bg-3), var(--bg));
    border-left: 1px solid var(--line-gold);
    box-shadow: var(--shadow-lg);
    transform: translateX(105%);
    transition: transform 0.34s var(--ease);
    overflow-y: auto;
  }

  .nav.is-open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li + li { border-top: 1px solid var(--line); }

  .nav-link {
    padding: 0.95rem 0.2rem;
    font-size: 1.05rem;
    letter-spacing: 0.2em;
  }

  .nav-link::after { bottom: 0.55rem; }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .nav-actions .btn { width: 100%; }

  body.nav-open { overflow: hidden; }
}

/* -----------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(560px, 92vh, 980px);
  padding: clamp(5rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #0a0805;
}

.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fallback {
  animation: ken-burns 26s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.06);
}

@keyframes ken-burns {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.2) translate3d(-2.5%, -2%, 0); }
}

.hero__video {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero.has-video .hero__video { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 9, 6, 0.86) 0%, rgba(11, 9, 6, 0.34) 32%, rgba(11, 9, 6, 0.72) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 9, 6, 0.85) 0%, rgba(11, 9, 6, 0.2) 55%, rgba(26, 12, 4, 0.4) 100%);
}

/* Heat shimmer over the horizon */
.hero__haze {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(232, 180, 58, 0.16) 62%, transparent 82%);
  mix-blend-mode: soft-light;
  animation: haze 7s ease-in-out infinite alternate;
}

@keyframes haze {
  0% { transform: translateY(0) scaleY(1); opacity: 0.55; }
  100% { transform: translateY(-14px) scaleY(1.08); opacity: 1; }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 900px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
  font-family: var(--ui);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero__kicker::before {
  content: "";
  width: clamp(28px, 6vw, 54px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero__brand {
  font-size: clamp(4.4rem, 17vw, 13.5rem);
  line-height: 0.8;
  letter-spacing: 0.035em;
  color: var(--text);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.75);
  background: linear-gradient(178deg, #fff8e9 6%, #f0dcb4 42%, var(--gold) 78%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 46px rgba(0, 0, 0, 0.75));
}

.hero__headline {
  margin-top: clamp(0.6rem, 1.6vw, 1.1rem);
  max-width: 20ch;
  font-family: var(--ui);
  font-size: clamp(1.35rem, 3.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--text);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.85);
}

.hero__lead {
  margin-top: clamp(0.85rem, 2vw, 1.35rem);
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.6vw, 1.17rem);
  color: #ded0b6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero .btn-group { margin-top: clamp(1.5rem, 3.4vw, 2.4rem); }

.hero__sound {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 8vh, 5.5rem);
  z-index: 3;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(11, 9, 6, 0.6);
  backdrop-filter: blur(8px);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}

.hero.has-video .hero__sound { display: inline-flex; }

.hero__sound:hover {
  color: var(--gold);
  border-color: var(--line-gold);
}

.hero__sound-icon {
  display: inline-block;
  width: 14px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1;
}

/* -----------------------------------------------------------------------------
   8. Intel ticker (marquee)
   -------------------------------------------------------------------------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  background: linear-gradient(90deg, #1a1409, #241a0b 50%, #1a1409);
  overflow: hidden;
}

.ticker__tag {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 0.72rem 1.1rem;
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: #170f02;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-roll 42s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__list {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding: 0.72rem 1.3rem;
  list-style: none;
  white-space: nowrap;
}

.ticker__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ticker__list li::before {
  content: "";
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--rust);
}

.ticker__list strong {
  color: var(--gold);
  font-weight: 600;
}

@keyframes ticker-roll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* -----------------------------------------------------------------------------
   9. Server console panel
   -------------------------------------------------------------------------- */
.console {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.console__shell {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(232, 180, 58, 0.07), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console__shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rust), var(--gold) 45%, transparent);
}

.console__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.8rem 1.35rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}

.console__title {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  text-transform: uppercase;
}

.console__title span { color: var(--gold); }

.console__live {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--online);
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--online);
  box-shadow: 0 0 0 3px rgba(158, 201, 74, 0.16);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--online);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  80%, 100% { transform: scale(3.1); opacity: 0; }
}

.console__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.05fr;
  gap: 1px;
  background: var(--line);
}

.console__cell {
  padding: clamp(1.35rem, 2.6vw, 2rem) clamp(1.1rem, 2.4vw, 1.9rem);
  background: var(--surface);
}

.console__label {
  margin-bottom: 0.7rem;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}

.console__ip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.console__ip {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.9vw, 1.22rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: break-all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(232, 180, 58, 0.1);
  color: var(--gold);
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), transform var(--fast);
}

.copy-btn:hover {
  background: var(--gold);
  color: #150f03;
  transform: translateY(-1px);
}

.copy-btn.is-copied {
  background: var(--online);
  border-color: var(--online);
  color: #0d1503;
}

.console__hint {
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-3);
}

/* Population meter */
.pop {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 2.9rem);
  line-height: 1;
  color: var(--text);
}

.pop small {
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.meter {
  margin-top: 0.9rem;
  height: 7px;
  border-radius: 999px;
  background: rgba(244, 233, 214, 0.08);
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: var(--pct, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  box-shadow: 0 0 14px rgba(232, 180, 58, 0.5);
  animation: meter-in 1.4s var(--ease) both;
}

@keyframes meter-in {
  from { width: 0; }
}

.queue-note {
  margin-top: 0.7rem;
  font-family: var(--ui);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.35rem, 1.2vw, 0.7rem);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.1rem;
  padding: 0.5rem 0.35rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
}

.countdown__num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.countdown__lbl {
  margin-top: 0.25rem;
  font-family: var(--ui);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.countdown__sep {
  align-self: center;
  padding-bottom: 0.85rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--rust);
  animation: pulse-sep 1s steps(1) infinite;
}

@keyframes pulse-sep {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.15; }
}

.countdown.is-done + .console__hint,
.countdown.is-done { color: var(--rust); }

.console__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.console__chip {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 0.9rem 1.25rem;
  border-right: 1px solid var(--line);
}

.console__chip:last-child { border-right: 0; }

.console__chip dt {
  font-family: var(--ui);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
}

.console__chip dd {
  margin-top: 0.2rem;
  font-family: var(--ui);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}

@media (max-width: 900px) {
  .console__grid { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------------------------
   10. Feature strip
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  background: var(--surface);
  transition: background var(--fast);
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--rust));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.feature:hover { background: var(--surface-2); }
.feature:hover::before { transform: scaleY(1); }

.feature__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--rust);
}

.feature h3 {
  margin: 0.6rem 0 0.55rem;
  font-size: 1.5rem;
  color: var(--text);
}

.feature p {
  color: var(--text-2);
  font-size: 0.97rem;
}

/* -----------------------------------------------------------------------------
   11. Split feature (image + copy)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.split--flip .split__media { order: 2; }

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.split__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.split__media:hover img { transform: scale(1.05); }

.split__stat {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.85rem 1.3rem;
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: #150f03;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.split__stat span {
  display: block;
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.tick-list {
  margin-top: 1.5rem;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--text-2);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border: 2px solid var(--gold);
  background: rgba(232, 180, 58, 0.2);
}

.tick-list strong { color: var(--text); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
}

/* -----------------------------------------------------------------------------
   12. Zones / heat map
   -------------------------------------------------------------------------- */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
}

.zone {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color var(--fast), box-shadow 0.4s var(--ease);
}

.zone:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.zone__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.zone__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.9s var(--ease);
}

.zone:hover .zone__media img { transform: scale(1.07); }

.zone__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 9, 6, 0.9));
}

.zone__grid-ref {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  z-index: 2;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-xs);
  background: rgba(11, 9, 6, 0.7);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.zone__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}

.zone__body h3 {
  font-size: 1.6rem;
  color: var(--text);
}

.zone__type {
  margin-top: 0.3rem;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust-soft);
}

.zone__body p {
  margin-top: 0.75rem;
  flex: 1;
  color: var(--text-2);
  font-size: 0.95rem;
}

.heat {
  margin-top: 1.15rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
}

.heat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.heat__label {
  font-family: var(--ui);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.heat__val {
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.heat[data-level="extreme"] .heat__val { color: var(--danger); }
.heat[data-level="high"] .heat__val { color: var(--rust-soft); }
.heat[data-level="low"] .heat__val { color: var(--online); }

.heat__bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 233, 214, 0.08);
  overflow: hidden;
}

.heat__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--online), var(--gold) 55%, var(--danger));
  transition: width 1.2s var(--ease);
}

.zone.is-visible .heat__bar i { width: var(--heat, 50%); }

/* -----------------------------------------------------------------------------
   13. Filter chips (map page)
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}

.chip {
  padding: 0.55rem 1.15rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(244, 233, 214, 0.03);
  color: var(--text-2);
  font-family: var(--ui);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--fast);
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-gold);
}

.chip[aria-pressed="true"] {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  border-color: transparent;
  color: #150f03;
  box-shadow: 0 8px 20px rgba(232, 180, 58, 0.22);
}

.chip__count {
  margin-left: 0.4rem;
  opacity: 0.6;
  font-size: 0.72rem;
}

.filter-status {
  margin-bottom: 1.25rem;
  font-family: var(--ui);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.zone.is-hidden { display: none; }

.zone.is-filtered-in { animation: chip-in 0.4s var(--ease) both; }

@keyframes chip-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* -----------------------------------------------------------------------------
   14. Gallery + lightbox
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(130px, 17vw, 190px);
  gap: clamp(0.6rem, 1.4vw, 1rem);
}

.gallery__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color var(--fast), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.92);
  transition: transform 0.8s var(--ease), filter var(--fast);
}

.gallery__item:hover {
  border-color: var(--line-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.gallery__item:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) brightness(1.02);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 9, 6, 0.88));
  opacity: 0;
  transition: opacity var(--fast);
}

.gallery__item:hover::after { opacity: 1; }

.gallery__cap {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 2;
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--fast), transform var(--fast);
  text-align: left;
}

.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6, 5, 3, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__figure {
  position: relative;
  max-width: min(1180px, 100%);
  max-height: 100%;
  margin: 0;
  transform: scale(0.97);
  transition: transform 0.3s var(--ease);
}

.lightbox.is-open .lightbox__figure { transform: scale(1); }

.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__caption {
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ui);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}

.lightbox__counter {
  font-family: var(--mono);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.lightbox__btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(22, 18, 12, 0.85);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--fast);
}

.lightbox__btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #150f03;
}

.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { top: 50%; left: clamp(0.75rem, 2.5vw, 2rem); transform: translateY(-50%); }
.lightbox__next { top: 50%; right: clamp(0.75rem, 2.5vw, 2rem); transform: translateY(-50%); }

/* -----------------------------------------------------------------------------
   15. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns 34s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 9, 6, 0.78), rgba(11, 9, 6, 0.9) 60%, var(--bg)),
    linear-gradient(90deg, rgba(11, 9, 6, 0.9), rgba(11, 9, 6, 0.42));
}

.page-hero h1 {
  font-size: clamp(2.9rem, 8.5vw, 6rem);
  color: var(--text);
}

.page-hero p {
  margin-top: 1rem;
  max-width: 62ch;
  color: var(--text-2);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.breadcrumb a { color: var(--gold); }

/* -----------------------------------------------------------------------------
   16. Accordion (rules)
   -------------------------------------------------------------------------- */
.rule-stack {
  display: grid;
  gap: 0.75rem;
}

.acc {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--fast), background var(--fast);
}

.acc.is-open {
  border-color: var(--line-gold);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.acc__btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem clamp(1rem, 2.4vw, 1.6rem);
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.acc__no {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  background: rgba(232, 180, 58, 0.08);
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--gold);
  transition: background var(--fast), color var(--fast);
}

.acc.is-open .acc__no {
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: #150f03;
}

.acc__title {
  flex: 1;
  font-family: var(--ui);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.acc__tag {
  flex-shrink: 0;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.acc__tag--ban { background: rgba(217, 72, 59, 0.16); color: #f2938a; }
.acc__tag--warn { background: rgba(196, 92, 42, 0.18); color: var(--rust-soft); }
.acc__tag--info { background: rgba(232, 180, 58, 0.14); color: var(--gold); }

.acc__icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  transition: transform 0.3s var(--ease);
}

.acc__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.acc__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.acc.is-open .acc__icon::after { transform: translate(-50%, -50%) scaleY(0); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.acc.is-open .acc__panel { grid-template-rows: 1fr; }

.acc__panel > div { overflow: hidden; }

.acc__body {
  padding: 0 clamp(1rem, 2.4vw, 1.6rem) 1.35rem calc(clamp(1rem, 2.4vw, 1.6rem) + 3.35rem);
  color: var(--text-2);
}

.acc__body ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.acc__body li::marker { color: var(--gold); }

.acc__body strong { color: var(--text); }

@media (max-width: 620px) {
  .acc__body { padding-left: clamp(1rem, 2.4vw, 1.6rem); }
  .acc__tag { display: none; }
}

.acc-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* -----------------------------------------------------------------------------
   17. Staff
   -------------------------------------------------------------------------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
}

.staff-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color var(--fast), box-shadow 0.4s var(--ease);
}

.staff-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.staff-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.staff-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) contrast(1.08) sepia(0.16);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}

.staff-card:hover .staff-card__media img {
  transform: scale(1.06);
  filter: grayscale(0) contrast(1.05) sepia(0.05);
}

.staff-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 9, 6, 0.1) 30%, rgba(11, 9, 6, 0.95));
}

.staff-card__role {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-xs);
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  color: #150f03;
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.staff-card__role--rust { background: linear-gradient(160deg, var(--rust-soft), var(--rust)); color: #1a0c04; }
.staff-card__role--mute { background: rgba(244, 233, 214, 0.12); color: var(--text); }

.staff-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 1.2rem 1.25rem 1.35rem;
}

.staff-card__name {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.staff-card__handle {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gold);
}

.staff-card__bio {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-2);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin var(--fast);
}

.staff-card:hover .staff-card__bio,
.staff-card:focus-within .staff-card__bio {
  max-height: 9rem;
  opacity: 1;
}

.staff-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.7rem;
  font-family: var(--ui);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* -----------------------------------------------------------------------------
   18. Forms (whitelist)
   -------------------------------------------------------------------------- */
.form-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .form-layout { grid-template-columns: 1fr; }
}

.form-shell {
  position: relative;
  padding: clamp(1.5rem, 3.4vw, 2.6rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(232, 180, 58, 0.055), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow);
}

.form-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--rust), var(--gold) 45%, transparent);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.field { display: flex; flex-direction: column; gap: 0.42rem; }
.field--full { grid-column: 1 / -1; }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  font-family: var(--ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

.field label .req { color: var(--rust-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.6rem;
}

.field select option { background: var(--surface-2); color: var(--text); }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(232, 180, 58, 0.15);
}

.field__hint {
  font-size: 0.82rem;
  color: var(--text-3);
}

.field__error {
  display: none;
  font-family: var(--ui);
  font-size: 0.73rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f2938a;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217, 72, 59, 0.14);
}

.field.has-error .field__error { display: block; }

.field.has-error { animation: shake 0.35s var(--ease); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.checkline {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  grid-column: 1 / -1;
}

.checkline input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.18rem;
  accent-color: var(--gold);
  padding: 0;
}

.checkline label {
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-3);
}

.form-success {
  display: none;
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(158, 201, 74, 0.4);
  border-radius: var(--radius-lg);
  background: rgba(158, 201, 74, 0.08);
}

.form-success.is-shown {
  display: block;
  animation: chip-in 0.45s var(--ease) both;
}

.form-success h3 {
  font-size: 1.35rem;
  color: var(--online);
}

.form-success p {
  margin-top: 0.5rem;
  color: var(--text-2);
  font-size: 0.96rem;
}

.form-success dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.form-success dt {
  font-family: var(--ui);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

.form-success dd {
  margin-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

/* Side rail */
.rail {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}

.rail__card {
  padding: 1.4rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.rail__card h3 {
  font-size: 1.35rem;
  color: var(--text);
}

.rail__card p {
  margin-top: 0.6rem;
  font-size: 0.94rem;
  color: var(--text-2);
}

.steps {
  counter-reset: step;
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.steps li {
  position: relative;
  padding-left: 2.6rem;
  color: var(--text-2);
  font-size: 0.94rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.1rem;
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--gold);
}

.steps strong {
  display: block;
  font-family: var(--ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 900px) {
  .rail { position: static; }
}

/* -----------------------------------------------------------------------------
   19. Store
   -------------------------------------------------------------------------- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 1.75rem);
  align-items: start;
}

.kit {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color var(--fast), box-shadow 0.4s var(--ease);
}

.kit:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: var(--shadow);
}

.kit--featured {
  border-color: var(--line-gold);
  box-shadow: var(--glow);
}

.kit__ribbon {
  position: absolute;
  top: 1rem;
  right: -2.6rem;
  z-index: 3;
  width: 11rem;
  padding: 0.32rem 0;
  transform: rotate(38deg);
  background: linear-gradient(160deg, var(--rust-soft), var(--rust));
  color: #1a0c04;
  font-family: var(--ui);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.kit__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.kit__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) brightness(0.86);
  transition: transform 0.9s var(--ease), filter var(--fast);
}

.kit:hover .kit__media img { transform: scale(1.06); filter: brightness(1); }

.kit__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--surface));
}

.kit__tier {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 2;
  font-family: var(--display);
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.9);
}

.kit__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.5rem;
}

.kit__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--display);
  font-size: 2.7rem;
  line-height: 1;
  color: var(--gold);
}

.kit__price small {
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.kit__blurb {
  margin-top: 0.7rem;
  font-size: 0.94rem;
  color: var(--text-2);
}

.kit__list {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.15rem 0 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  flex: 1;
}

.kit__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  color: var(--text-2);
}

.kit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
}

.kit__list li.is-off { color: var(--text-3); }
.kit__list li.is-off::before { background: transparent; border: 1px solid var(--text-3); }

.pledge-note {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: clamp(1.25rem, 2.6vw, 1.9rem);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.25);
}

.pledge-note h3 { color: var(--text); font-size: 1.4rem; }
.pledge-note p { margin-top: 0.6rem; color: var(--text-2); font-size: 0.96rem; }

/* -----------------------------------------------------------------------------
   20. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ken-burns 40s ease-in-out infinite alternate;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 50% 50%, rgba(196, 92, 42, 0.24), transparent 70%),
    linear-gradient(180deg, var(--bg), rgba(11, 9, 6, 0.88) 45%, var(--bg));
}

.cta h2 { font-size: clamp(2.6rem, 7.5vw, 5rem); }

.cta p {
  max-width: 58ch;
  margin: 1rem auto 0;
  color: var(--text-2);
  font-size: 1.08rem;
}

.cta .btn-group { justify-content: center; margin-top: 2rem; }

.cta__mini {
  margin-top: 1.6rem;
  font-family: var(--ui);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* -----------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #0e0b07, #070503);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo { margin-bottom: 1rem; }

.footer-brand p {
  max-width: 38ch;
  color: var(--text-3);
  font-size: 0.94rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.3rem;
}

.footer-logos img {
  height: 26px;
  width: auto;
  opacity: 0.55;
  transition: opacity var(--fast);
}

.footer-logos img:hover { opacity: 1; }

.footer-col h4 {
  margin-bottom: 1rem;
  font-family: var(--ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul { list-style: none; display: grid; gap: 0.55rem; }

.footer-col a {
  color: var(--text-2);
  font-size: 0.94rem;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--text-3);
}

.footer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.footer-credit a::before {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(160deg, var(--gold), var(--rust));
}

.footer-credit a:hover { color: var(--gold); }

/* -----------------------------------------------------------------------------
   22. Toast
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: clamp(0.85rem, 3vw, 1.75rem);
  bottom: clamp(0.85rem, 3vw, 1.75rem);
  z-index: 960;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 240px;
  max-width: min(360px, 90vw);
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(24, 19, 12, 0.97);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  pointer-events: auto;
  animation: toast-in 0.32s var(--ease) both;
}

.toast.is-out { animation: toast-out 0.28s var(--ease) both; }

.toast--ok { border-left-color: var(--online); }
.toast--err { border-left-color: var(--danger); }

.toast__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 180, 58, 0.16);
  color: var(--gold);
  font-size: 0.8rem;
}

.toast--ok .toast__icon { background: rgba(158, 201, 74, 0.16); color: var(--online); }
.toast--err .toast__icon { background: rgba(217, 72, 59, 0.16); color: #f2938a; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes toast-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(10px) scale(0.97); }
}

/* -----------------------------------------------------------------------------
   23. Reveal animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--left { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(0.96); }

/* -----------------------------------------------------------------------------
   24. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  body::after { animation: none; }
  .hero__fallback, .page-hero__bg img, .cta__bg img { animation: none; }
  .hero__video {
    display: none !important;
  }
  .hero__sound {
    display: none !important;
  }
  .hero--static .hero__fallback,
  .hero__fallback {
    opacity: 1;
    visibility: visible;
  }
}
