:root {
  --bg: #650e13;
  --bg-deep: #300408;
  --surface: rgba(246, 231, 216, 0.94);
  --surface-strong: #f6e7d8;
  --ink: #221316;
  --muted: #6f5b58;
  --line: rgba(40, 10, 15, 0.12);
  --red: #c1121f;
  --red-deep: #8f1019;
  --gold: #f6d8a8;
  --shadow: 0 20px 50px rgba(15, 3, 5, 0.24);
  --radius: 28px;
  --radius-sm: 18px;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Trebuchet MS", "Lucida Grande", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(241, 201, 148, 0.22), transparent 28%),
    linear-gradient(180deg, #a20f1d 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 14px),
    linear-gradient(45deg, rgba(0, 0, 0, 0.06) 0, rgba(0, 0, 0, 0.06) 1px, transparent 1px, transparent 18px);
  background-size: 18px 18px, 22px 22px;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 28px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 12px;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff9f2;
}

.brand-lockup h1,
.section-heading h2,
.hero-copy h2,
.site-footer h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

.brand-lockup h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.eyebrow,
.panel-label,
.module-index,
.card-kicker,
.media-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 244, 233, 0.78);
}

.top-nav {
  display: none;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 244, 233, 0.14);
  border-radius: 999px;
  color: #fff9f2;
  background: rgba(53, 7, 10, 0.35);
}

.top-nav a {
  opacity: 0.82;
}

.top-nav a:hover {
  opacity: 1;
}

.hero-section {
  display: grid;
  gap: 20px;
  padding: 30px 0 22px;
}

.hero-copy,
.hero-panel,
.module-card,
.timeline-card,
.recruitment-card,
.media-card,
.site-footer {
  position: relative;
  border: 1px solid rgba(255, 235, 215, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 26px;
  color: #fff8f2;
  background:
    linear-gradient(140deg, rgba(255, 245, 235, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(103, 12, 18, 0.65), rgba(31, 4, 7, 0.68));
}

.hero-pill {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.hero-copy h2 {
  font-size: clamp(2rem, 7vw, 4.6rem);
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 247, 240, 0.84);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.primary {
  color: #fff6f0;
  background: linear-gradient(180deg, #e12633 0%, #aa1220 100%);
}

.button.ghost {
  color: #fff9f2;
  border: 1px solid rgba(255, 244, 233, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.hero-metrics div {
  padding: 15px 16px;
  border: 1px solid rgba(255, 244, 233, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics dt {
  font-size: 1.35rem;
  font-weight: 800;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 248, 242, 0.8);
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-card h3 {
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.panel-card p,
.panel-card li {
  color: var(--muted);
  line-height: 1.65;
}

.live-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 14px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff8f2;
  background: #374151;
}

.live-badge.is-online {
  background: linear-gradient(180deg, #ca1725 0%, #8f1019 100%);
}

.live-badge.is-pending {
  background: linear-gradient(180deg, #9b7b2f 0%, #7c611e 100%);
}

.live-badge.is-offline {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
}

.live-meta,
.live-footnote {
  font-size: 0.88rem;
  color: var(--muted);
}

.panel-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.ticker-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 14px 6px;
  margin: 4px auto 10px;
  width: min(1120px, calc(100% - 28px));
  color: #fff7ef;
}

.ticker-strip div {
  padding: 10px 14px;
  border: 1px solid rgba(255, 244, 233, 0.12);
  border-radius: 999px;
  background: rgba(57, 8, 12, 0.38);
  white-space: nowrap;
}

.section-block {
  padding: 28px 0;
}

.section-heading {
  margin-bottom: 18px;
  color: #fff9f2;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
}

.module-grid,
.recruitment-grid,
.media-layout {
  display: grid;
  gap: 16px;
}

.module-card,
.recruitment-card,
.media-card,
.timeline-card {
  padding: 22px;
  background: var(--surface-strong);
}

.module-index,
.card-kicker,
.media-label {
  color: var(--red);
}

.module-card h3,
.recruitment-card h3,
.media-card h3 {
  margin: 10px 0 10px;
  font-size: 1.45rem;
  font-family: var(--font-display);
}

.module-card p,
.recruitment-card p,
.media-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-card {
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 5px solid var(--red);
}

.timeline-step strong {
  font-size: 1.08rem;
}

.timeline-step span {
  color: var(--muted);
}

.demo-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.demo-bars span {
  position: relative;
  display: block;
  padding: 12px 14px;
  color: #fff8f2;
  font-weight: 700;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(55, 15, 18, 0.12);
}

.demo-bars span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--size);
  background: linear-gradient(90deg, #8f1019, #d61f2c);
  border-radius: inherit;
  z-index: 0;
}

.demo-bars span {
  position: relative;
  z-index: 1;
}

.site-footer {
  margin-top: 16px;
  margin-bottom: 88px;
  padding: 24px;
  color: #fff8f2;
  background:
    linear-gradient(160deg, rgba(255, 246, 235, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(180deg, rgba(123, 12, 19, 0.64), rgba(31, 4, 7, 0.72));
}

.footer-meta {
  margin: 18px 0 0;
  color: rgba(255, 247, 240, 0.74);
}

.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 240, 224, 0.12);
  border-radius: 24px;
  background: rgba(36, 5, 8, 0.88);
  backdrop-filter: blur(18px);
}

.mobile-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(255, 246, 235, 0.78);
}

.mobile-dock a.active {
  color: #fff8f2;
  background: linear-gradient(180deg, rgba(229, 35, 48, 0.96), rgba(157, 16, 27, 0.92));
}

@media (min-width: 760px) {
  .site-header {
    padding-top: 24px;
  }

  .top-nav {
    display: inline-flex;
  }

  .hero-section {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: stretch;
  }

  .hero-copy {
    padding: 34px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recruitment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .media-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .timeline-card {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .timeline-step {
    min-height: 100%;
  }
}

@media (min-width: 1040px) {
  .module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
