:root {
  --black: #0b0805;
  --black-soft: #17110b;
  --charcoal: #21170d;
  --orange: #ef6c13;
  --orange-deep: #a73608;
  --yellow: #ffd95a;
  --sand: #f8d889;
  --text: #fff5dc;
  --muted: #c9ad74;
  --line: rgba(255, 217, 90, 0.22);
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  align-items: center;
  background: rgba(11, 8, 5, 0.82);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 16px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: var(--yellow);
  color: var(--black);
  display: inline-flex;
  font-size: 0.8rem;
  justify-content: center;
  width: 36px;
}

.brand-text {
  font-size: 0.95rem;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.9rem;
  color: var(--muted);
}

nav a:hover,
.footer-links a:hover,
.note-card a:hover {
  color: var(--yellow);
}

.hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 8, 5, 0.96) 0%, rgba(11, 8, 5, 0.68) 42%, rgba(11, 8, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(11, 8, 5, 0.82) 0%, rgba(11, 8, 5, 0) 46%);
}

.hero-content {
  max-width: 820px;
  padding: 118px clamp(20px, 6vw, 80px) 84px;
  position: relative;
}

.kicker,
.section-label {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.82;
  margin-bottom: 28px;
  text-shadow: 0 18px 48px var(--shadow);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 0;
}

h3 {
  font-size: 1.13rem;
  line-height: 1.2;
}

.hero-copy {
  color: #ffe8a9;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
}

.button.primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.button.secondary {
  background: rgba(255, 217, 90, 0.06);
  color: var(--yellow);
}

.ticker {
  background: var(--orange);
  color: var(--black);
  display: grid;
  font-size: 0.84rem;
  font-weight: 900;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  text-transform: uppercase;
}

.ticker span {
  background: var(--yellow);
  padding: 12px clamp(14px, 3vw, 28px);
}

.section-band,
.archive,
.lab,
.site-footer {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 6vw, 80px);
}

.intro,
.sequences {
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 108, 19, 0.22), transparent 30%),
    var(--black-soft);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  max-width: 1100px;
}

.intro-grid p {
  color: #f5dda0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.22;
}

.archive {
  background: var(--black);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.filter-bar {
  border: 1px solid var(--line);
  display: flex;
  padding: 4px;
}

.filter-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 38px;
  padding: 0 13px;
}

.filter-button.is-active {
  background: var(--orange);
  color: var(--black);
}

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

.note-card {
  background: linear-gradient(180deg, rgba(255, 217, 90, 0.08), rgba(239, 108, 19, 0.05));
  border: 1px solid var(--line);
  min-height: 275px;
  padding: 24px;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.note-card:hover {
  border-color: rgba(255, 217, 90, 0.58);
  transform: translateY(-3px);
}

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

.note-meta {
  color: var(--yellow);
  display: flex;
  font-size: 0.75rem;
  font-weight: 800;
  justify-content: space-between;
  margin-bottom: 42px;
  text-transform: uppercase;
}

.note-card p {
  color: var(--muted);
}

.note-card a {
  color: var(--orange);
  font-weight: 900;
}

.sequence-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sequence-list article {
  background: var(--black-soft);
  padding: 28px;
}

.sequence-list span {
  color: var(--orange);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 28px;
}

.sequence-list p,
.lab-copy p,
.site-footer p {
  color: var(--muted);
}

.lab {
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(11, 8, 5, 0.96), rgba(33, 23, 13, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 217, 90, 0.11) 0 1px, transparent 1px 80px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
}

.lab-copy {
  max-width: 690px;
}

.lab-panel {
  background: var(--charcoal);
  border: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.metric {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
}

.metric span {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.metric p {
  color: var(--muted);
  margin-bottom: 0;
  text-align: right;
}

.field-note {
  background: rgba(11, 8, 5, 0.62);
  border-left: 4px solid var(--orange);
  color: #ffe8a9;
  min-height: 82px;
  margin: 0;
  padding: 16px;
}

.site-footer {
  align-items: start;
  background: var(--black);
  display: flex;
  gap: 28px;
  justify-content: space-between;
}

.footer-brand {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 10px;
  min-width: 190px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .ticker,
  .intro-grid,
  .note-grid,
  .sequence-list,
  .lab {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: stretch;
  }

  .filter-bar {
    overflow-x: auto;
  }

  .hero {
    min-height: 86vh;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  nav {
    font-size: 0.78rem;
    gap: 10px;
  }

  .hero-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(4.4rem, 26vw, 7rem);
  }

  .button {
    width: 100%;
  }

  .note-meta,
  .metric {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .metric p {
    text-align: left;
  }
}
