:root {
  --ink: #17130f;
  --ink-soft: #453c33;
  --paper: #f5f0e7;
  --paper-deep: #e4dacb;
  --bone: #fffaf0;
  --mahogany: #552b23;
  --oxide: #9b4934;
  --moss: #465944;
  --blue: #243f56;
  --gold: #c6923e;
  --line: rgba(23, 19, 15, 0.16);
  --line-dark: rgba(255, 250, 240, 0.18);
  --shadow: 0 22px 70px rgba(23, 19, 15, 0.16);
  --max: 1180px;
  --radius: 8px;
  --font-body: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Avenir Next", Avenir, "Futura", "Trebuchet MS", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(23, 19, 15, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  font-family: var(--font-body);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 42px);
  color: var(--bone);
  background: rgba(18, 16, 13, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand small {
  color: rgba(255, 250, 240, 0.68);
  font-family: var(--font-body);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.site-nav a {
  padding: 9px 12px;
  color: rgba(255, 250, 240, 0.72);
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--bone);
  background: rgba(255, 250, 240, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--bone);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: grid;
  align-items: end;
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.92), rgba(18, 16, 13, 0.65) 58%, rgba(18, 16, 13, 0.4)),
    url("/assets/archive-plate.svg"),
    linear-gradient(135deg, #17130f, #2b2118 48%, #243f56);
  background-size: cover, min(1100px, 130vw), cover;
  background-position: center, right bottom, center;
  border-bottom: 1px solid rgba(23, 19, 15, 0.4);
}

.hero-inner {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 13vh, 150px) 0 clamp(54px, 9vh, 100px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 250, 240, 0.72);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.6vw, 4.2rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-family: var(--font-display);
  font-weight: 760;
  line-height: 1.14;
}

.lead {
  max-width: 780px;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid rgba(255, 250, 240, 0.3);
  border-radius: var(--radius);
  color: var(--bone);
  background: rgba(255, 250, 240, 0.1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #1e1710;
  border-color: var(--gold);
  background: var(--gold);
}

.button.dark {
  color: var(--bone);
  border-color: rgba(23, 19, 15, 0.9);
  background: var(--ink);
}

.button.light {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.66);
}

.section {
  padding: clamp(56px, 9vw, 112px) clamp(18px, 4vw, 42px);
}

.section.dark {
  color: var(--bone);
  background:
    linear-gradient(rgba(255, 250, 240, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.04) 1px, transparent 1px),
    #17130f;
  background-size: 54px 54px;
}

.section.band {
  background: var(--bone);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.section-head p,
.page-intro p,
.body-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.dark .section-head p,
.dark .body-copy p,
.dark .metric p {
  color: rgba(255, 250, 240, 0.7);
}

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

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

.tile,
.pillar,
.archive-row,
.route-panel,
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.54);
  box-shadow: 0 8px 32px rgba(23, 19, 15, 0.06);
}

.tile,
.pillar,
.route-panel,
.notice {
  padding: clamp(20px, 3vw, 30px);
}

.dark .tile,
.dark .pillar {
  border-color: var(--line-dark);
  background: rgba(255, 250, 240, 0.055);
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--oxide);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: var(--gold);
}

.tile p,
.pillar p,
.route-panel p,
.archive-row p,
.notice p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.dark .tile p,
.dark .pillar p {
  color: rgba(255, 250, 240, 0.68);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.52fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

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

.statement {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.statement:last-child {
  border-bottom: 0;
}

.statement strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-body);
}

.visual-stack {
  display: grid;
  gap: 14px;
}

.folio {
  position: relative;
  min-height: 390px;
  padding: 28px;
  color: var(--bone);
  background:
    linear-gradient(rgba(18, 16, 13, 0.35), rgba(18, 16, 13, 0.82)),
    url("/assets/corpus-map.svg"),
    linear-gradient(145deg, var(--mahogany), var(--blue));
  background-size: cover, 120%, cover;
  background-position: center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.folio h3 {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 64px;
  max-width: 390px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.folio p {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  margin: 0;
  color: rgba(255, 250, 240, 0.7);
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--line-dark);
}

.metric {
  padding: 24px;
  background: rgba(255, 250, 240, 0.06);
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1;
}

.metric p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
}

.route-hero {
  padding: clamp(70px, 12vw, 132px) clamp(18px, 4vw, 42px) clamp(46px, 8vw, 86px);
  color: var(--bone);
  background:
    linear-gradient(90deg, rgba(18, 16, 13, 0.94), rgba(36, 63, 86, 0.75)),
    url("/assets/archive-plate.svg"),
    #17130f;
  background-size: cover, min(900px, 140vw), cover;
  background-position: center, right center, center;
}

.route-hero-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.route-hero p {
  max-width: 760px;
  color: rgba(255, 250, 240, 0.76);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.archive-list {
  display: grid;
  gap: 12px;
}

.archive-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 130px;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.archive-row span,
.archive-row em {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-style: normal;
}

.archive-row strong {
  display: block;
  font-size: 1.1rem;
}

.principles {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  list-style: none;
  background: rgba(255, 250, 240, 0.62);
}

.principles span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--bone);
  background: var(--blue);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
}

.notice {
  margin-top: 22px;
  border-color: rgba(155, 73, 52, 0.32);
  background: rgba(155, 73, 52, 0.08);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px clamp(18px, 4vw, 42px);
  color: rgba(255, 250, 240, 0.7);
  background: #12100d;
  border-top: 1px solid var(--line-dark);
}

.footer div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer p {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

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

  .site-nav {
    position: fixed;
    inset: 71px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(18, 16, 13, 0.98);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

  .section-head,
  .split,
  .grid.two {
    grid-template-columns: 1fr;
  }

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

  .archive-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  h1 {
    font-size: clamp(2.7rem, 18vw, 4.6rem);
  }

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

  .hero-actions,
  .actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .folio {
    min-height: 330px;
  }
}
