:root {
  --black: #090806;
  --charcoal: #14110e;
  --panel: #211b16;
  --paper: #f3eadc;
  --muted: #b9a993;
  --line: rgba(243, 234, 220, 0.18);
  --red: #bb2634;
  --amber: #d7a83d;
  --teal: #2d8a86;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(187, 38, 52, 0.2), transparent 34rem),
    linear-gradient(180deg, #090806 0%, #15100d 48%, #0c0b0a 100%);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(9, 8, 6, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.logo {
  color: var(--amber);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible {
  color: var(--paper);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: stretch;
  min-height: calc(100vh - 70px);
  padding: clamp(28px, 5vw, 70px) clamp(18px, 5vw, 72px) 28px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  padding: clamp(24px, 5vw, 54px) 0;
}

.kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 17vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5.2vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-panel p:not(.kicker) {
  max-width: 620px;
  color: #ded1bf;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--amber);
  border-radius: 4px;
  background: var(--amber);
  color: #160f0b;
  font-weight: 900;
  padding: 12px 18px;
  text-decoration: none;
  text-transform: uppercase;
}

.button.ghost {
  background: transparent;
  color: var(--paper);
}

.hero-art {
  position: relative;
  align-self: end;
  margin: 0;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 58% 50%;
}

figcaption {
  color: var(--muted);
  font-size: 0.76rem;
}

.hero-art figcaption,
.project-art figcaption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  color: rgba(243, 234, 220, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(33, 27, 22, 0.86);
}

.stats article {
  min-height: 150px;
  padding: 24px clamp(16px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats span,
.project-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
}

.stats p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.bio,
.milestones,
.legacy {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
}

.bio-text {
  color: #ded1bf;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.image-band {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(240px, 0.85fr);
  align-items: center;
  gap: clamp(24px, 5vw, 58px);
  padding: clamp(26px, 5vw, 50px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  color: #16110d;
}

.image-band img {
  width: 100%;
  aspect-ratio: 16 / 8.6;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.image-band .kicker {
  color: var(--red);
}

.image-band p:last-child {
  color: #5c5145;
  font-size: 1.05rem;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 110px minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--amber);
  font-weight: 900;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filters button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 8px 14px;
  text-transform: uppercase;
}

.filters button.active,
.filters button:hover,
.filters button:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.project-art {
  position: sticky;
  top: 92px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.project-art img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card,
.legacy-cards article {
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(33, 27, 22, 0.82);
}

.project-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(215, 168, 61, 0.6);
  background: rgba(42, 34, 28, 0.96);
}

.project-card.is-hidden {
  display: none;
}

.project-card p,
.legacy-cards p {
  margin-bottom: 0;
  color: var(--muted);
}

.legacy {
  background: rgba(187, 38, 52, 0.13);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legacy-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legacy-cards article {
  border-top: 4px solid var(--teal);
}

.sources {
  padding: 42px clamp(18px, 5vw, 72px);
  color: var(--muted);
}

.sources h2 {
  margin-bottom: 10px;
  color: var(--paper);
  font-size: 1.35rem;
}

.sources p {
  max-width: 980px;
  margin-bottom: 0;
}

.sources a {
  color: var(--amber);
  font-weight: 900;
}

code {
  color: var(--paper);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #050403;
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--paper);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .hero,
  .bio,
  .image-band,
  .milestones,
  .project-layout,
  .legacy {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art,
  .hero-art img {
    min-height: 560px;
  }

  .project-art {
    position: relative;
    top: auto;
  }

  .legacy-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar,
  footer,
  .project-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav,
  .filters {
    justify-content: flex-start;
  }

  .stats,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-art,
  .hero-art img {
    min-height: 480px;
  }
}
