:root {
  color-scheme: dark;
  --ink: #f1f4ea;
  --muted: #b2bba9;
  --quiet: #879285;
  --bg: #07100d;
  --bg-2: #0b1712;
  --panel: rgba(15, 29, 23, 0.9);
  --panel-2: rgba(19, 38, 31, 0.88);
  --line: rgba(219, 229, 212, 0.18);
  --line-strong: rgba(219, 229, 212, 0.34);
  --moss: #9fbd98;
  --stone: #bcc2b8;
  --brass: #c79a6b;
  --blue: #83a4b5;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
  --inset: inset 0 1px 0 rgba(241, 244, 234, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    linear-gradient(rgba(191, 209, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 209, 184, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 22% 8%, rgba(131, 164, 181, 0.12), transparent 30rem),
    radial-gradient(circle at 82% 0%, rgba(199, 154, 107, 0.08), transparent 28rem),
    var(--bg);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(152deg, transparent 0 34px, rgba(219, 229, 212, 0.028) 35px 36px, transparent 37px 72px),
    linear-gradient(180deg, rgba(7, 16, 13, 0.18), rgba(7, 16, 13, 0.72));
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding: 0 0 56px;
}

header {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 auto;
  padding: 16px 0;
  background: rgba(7, 16, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.34);
}

.brand,
.brand a {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: min(214px, 48vw);
  height: 54px;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

nav {
  color: var(--muted);
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

nav a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

main {
  padding: 86px 0 22px;
}

.hero-panel,
.panel,
.summary,
.entry,
.fact,
.stage,
.metric,
.sequence div {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 5vw, 52px);
  align-items: end;
  margin-bottom: 34px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-panel::before,
.panel::before,
.entry::before,
.boundary::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(199, 154, 107, 0.12), transparent 34%);
  opacity: 0.72;
}

.hero-panel::after,
.hero-logo-panel::after,
.entry::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(219, 229, 212, 0.075);
  border-radius: 5px;
}

.hero-panel > *,
.panel > *,
.entry > *,
.boundary > * {
  position: relative;
}

.hero-logo-panel {
  position: relative;
  align-self: start;
  display: grid;
  align-content: space-between;
  gap: 20px;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(rgba(219, 229, 212, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(219, 229, 212, 0.035) 1px, transparent 1px),
    rgba(8, 18, 14, 0.76);
  background-size: 28px 28px, 28px 28px, auto;
  padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--inset);
}

.hero-logo {
  display: block;
  width: min(390px, 100%);
  height: 156px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  background: rgba(5, 11, 9, 0.5);
}

.instrument-strip {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-title {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 780;
}

.instrument-strip span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.instrument-strip b {
  color: var(--moss);
  font-weight: 800;
}

.eyebrow,
.metric span,
table th,
.sequence div::before {
  color: var(--brass);
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
.brand {
  color: var(--ink);
}

h1 {
  font-size: clamp(2.7rem, 6.6vw, 6.2rem);
  line-height: 0.96;
}

.hero-panel-home h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 4.75vw, 4.9rem);
  line-height: 1.02;
}

p,
.lead,
li {
  color: var(--muted);
}

.btn {
  border: 1px solid rgba(159, 189, 152, 0.72);
  background: #dcebd7;
  color: #08110e;
  box-shadow: none;
}

.btn:hover {
  background: #eef5e8;
}

.btn.secondary {
  border-color: var(--line-strong);
  background: rgba(8, 18, 14, 0.68);
  color: var(--ink);
}

.section {
  border-top: 1px solid var(--line);
}

.summary-grid,
.facts,
.entries,
.metric-grid,
.chain,
.sequence,
.two {
  gap: 14px;
}

.summary,
.entry,
.fact,
.stage,
.metric,
.panel {
  position: relative;
  border-radius: 8px;
  box-shadow: var(--inset);
}

.summary,
.fact,
.stage,
.metric {
  background: rgba(16, 31, 25, 0.78);
}

.summary b,
.fact b,
.stage b {
  color: var(--ink);
}

.summary span,
.fact span,
.stage span,
.metric span,
.panel p {
  color: var(--muted);
}

.entry,
.panel {
  padding: 20px;
  overflow: hidden;
}

.boundary {
  position: relative;
  border: 1px solid var(--line-strong);
  background: rgba(8, 18, 14, 0.9);
  border-radius: 8px;
  overflow: hidden;
}

.boundary p,
.boundary li {
  color: #d9e3d4;
}

.metric strong {
  color: var(--moss);
}

.sequence div {
  background: rgba(16, 31, 25, 0.78);
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  color: var(--quiet);
}

.site-mark {
  color: var(--blue);
}

.hero.city-hero {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(131, 164, 181, 0.14), transparent 36%),
    rgba(15, 29, 23, 0.9);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
}

.hero.city-hero .panel {
  background:
    linear-gradient(135deg, rgba(131, 164, 181, 0.12), transparent 42%),
    rgba(8, 18, 14, 0.72);
}

@media (min-width: 881px) {
  .hero-panel-home {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.62fr);
    align-items: start;
    min-height: 0;
  }

  .hero-panel-home .hero-logo-panel {
    width: 100%;
    max-width: 390px;
    justify-self: end;
    min-height: 0;
    padding: 24px;
  }

  .hero-panel-home .hero-logo {
    height: 164px;
  }
}

@media (max-width: 880px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  header {
    position: static;
  }

  .hero-panel,
  .hero.city-hero {
    grid-template-columns: 1fr;
  }

  .hero-logo-panel {
    min-height: 220px;
  }

  .brand img {
    width: min(200px, 72vw);
    height: 50px;
  }

  .hero-logo {
    height: 132px;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
    line-height: 1.02;
  }

  .hero-panel-home h1 {
    max-width: none;
    font-size: clamp(2.25rem, 10.5vw, 3.35rem);
    line-height: 1.04;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  main {
    padding-top: 44px;
  }

  .hero-panel,
  .hero.city-hero,
  .section {
    margin-bottom: 26px;
  }

  .hero-panel,
  .hero.city-hero {
    padding: 20px;
  }

  .hero-logo-panel {
    min-height: 196px;
    padding: 18px;
  }

  .hero-logo {
    height: 116px;
  }

  .instrument-strip {
    font-size: 0.7rem;
  }

  .instrument-strip span {
    display: grid;
    gap: 4px;
  }

  .actions,
  nav {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
