:root {
  --bg: #151311;
  --bg-soft: #1d1916;
  --panel: rgba(31, 27, 24, 0.82);
  --panel-strong: rgba(40, 33, 28, 0.95);
  --line: rgba(227, 185, 120, 0.16);
  --text: #f2eadf;
  --muted: #b7ab9e;
  --accent: #df7b31;
  --accent-soft: #f1bb73;
  --ok: #85b88d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(201, 113, 45, 0.22), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(255, 190, 116, 0.12), transparent 24%),
    linear-gradient(180deg, #120f0d 0%, #181310 38%, #0f0d0b 100%);
  color: var(--text);
  font-family: "Oswald", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 90%);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.topbar,
.hero-panel,
.story-card,
.timeline-item,
.table-wrap,
.scene-slot {
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 17, 15, 0.72);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 24px rgba(223, 123, 49, 0.55);
}

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

.brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span,
.nav-links a,
.eyebrow,
.metric-label,
.timeline-tag,
.table-search span,
.scene-plate,
.status-kicker,
.assembly-row span:first-child,
.timeline-note,
.table-footnote,
.source-chip {
  font-family: "IBM Plex Mono", monospace;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.hero {
  padding: 18px 0 10px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-copy {
  padding: 36px 34px 34px;
  min-height: 560px;
  box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 72% 24%, rgba(248, 191, 104, 0.18), transparent 22%),
    radial-gradient(circle at 14% 18%, rgba(120, 156, 185, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(44, 31, 23, 0.92), rgba(20, 16, 14, 0.94));
}

.hero-copy--with-image {
  background:
    linear-gradient(180deg, rgba(16, 13, 11, 0.26), rgba(16, 13, 11, 0.72)),
    linear-gradient(90deg, rgba(16, 13, 11, 0.82) 0%, rgba(16, 13, 11, 0.48) 42%, rgba(16, 13, 11, 0.72) 100%),
    url("./images/astra-garage-hero.png") center / cover;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -4% 14% auto;
  width: 54%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 224, 173, 0.05) 0 18%, transparent 19%),
    radial-gradient(circle, rgba(255, 224, 173, 0.05) 0 18%, transparent 19%);
  background-position: 30% 40%, 76% 66%;
  background-size: 120px 120px, 100px 100px;
  opacity: 0.45;
  filter: blur(2px);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(246, 193, 124, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.35));
  pointer-events: none;
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.3rem, 8vw, 7rem);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.lede,
.section-copy,
.story-card p,
.timeline-body p,
.scene-slot p,
.status-card p {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.97rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: #17110d;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

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

.hero-metrics li {
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
}

.metric-label {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-metrics strong {
  display: block;
  font-size: 1rem;
}

.hero-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(32, 28, 24, 0.88), rgba(18, 16, 14, 0.96));
  box-shadow: var(--shadow);
}

.panel-glow {
  position: absolute;
  inset: -20% auto auto 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(240, 175, 96, 0.32), transparent 70%);
  filter: blur(22px);
}

.status-card,
.assembly-card {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.status-card {
  padding: 22px;
  margin-bottom: 16px;
}

.status-kicker {
  margin: 0 0 8px;
  font-size: 0.74rem;
  color: var(--accent-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-card h2 {
  margin-bottom: 14px;
  max-width: 10ch;
}

.assembly-card {
  padding: 6px 18px;
}

.assembly-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.assembly-row:last-child {
  border-bottom: 0;
}

.assembly-row span:last-child {
  color: var(--text);
  text-align: right;
}

.section {
  margin-top: 42px;
  padding: 28px 0 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.story-grid,
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.story-card,
.scene-slot,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.story-card {
  padding: 22px;
}

.timeline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button,
.sort-button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  cursor: pointer;
}

.filter-button.is-active,
.sort-button.is-active {
  color: #18120e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease;
}

.timeline-item.is-hidden {
  display: none;
}

.timeline-step {
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  color: var(--accent-soft);
  background: rgba(223, 123, 49, 0.08);
  border-right: 1px solid var(--line);
}

.timeline-body {
  padding: 18px 20px 20px;
}

.timeline-tag {
  margin: 0 0 10px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.timeline-note,
.table-footnote {
  margin: 14px 0 0;
  color: #8f8377;
  font-size: 0.78rem;
  line-height: 1.6;
}

.table-tools {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.table-search {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
}

.table-search span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-search input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(16, 14, 12, 0.88);
  color: var(--text);
  font: inherit;
}

.sort-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
}

.programmer-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
}

.programmer-table th,
.programmer-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.programmer-table th {
  color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.programmer-table td {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  font-size: 0.92rem;
}

.programmer-table tbody tr:last-child td {
  border-bottom: 0;
}

.programmer-table tbody tr.is-hidden {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill-ok {
  background: rgba(133, 184, 141, 0.16);
  color: #d3f0d8;
}

.pill-warn {
  background: rgba(241, 187, 115, 0.14);
  color: #f7dab1;
}

.pill-neutral {
  background: rgba(255, 255, 255, 0.08);
  color: #d9d0c7;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(98, 129, 166, 0.13);
  border: 1px solid rgba(169, 197, 230, 0.16);
  color: #c6d8ee;
  font-size: 0.72rem;
  white-space: nowrap;
}

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

.scene-slot {
  position: relative;
  min-height: 280px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background:
    linear-gradient(180deg, rgba(19, 17, 15, 0.2), rgba(19, 17, 15, 0.96)),
    radial-gradient(circle at top right, rgba(230, 154, 74, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 30%);
}

.scene-slot::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  pointer-events: none;
}

.scene-slot > * {
  position: relative;
  z-index: 1;
}

.scene-plate {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 13, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  margin-bottom: 14px;
}

.scene-image-frame {
  margin: 0 0 16px;
  min-height: 176px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(242, 184, 101, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.1));
}

.scene-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 1080px) {
  .hero-grid,
  .story-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: start;
    border-radius: 24px;
  }

  .hero-copy,
  .hero-panel,
  .story-card,
  .timeline-item,
  .scene-slot {
    border-radius: 22px;
  }

  .hero-copy {
    min-height: unset;
    padding: 26px 22px 24px;
  }

  .hero-panel {
    padding: 18px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .programmer-table {
    min-width: 760px;
  }
}
