:root {
  --ink: #0d0f10;
  --charcoal: #171a1b;
  --graphite: #242829;
  --paper: #eeeade;
  --paper-deep: #ddd7ca;
  --amber: #e39a34;
  --amber-soft: #f1bd70;
  --ice: #9ecbd2;
  --muted: #a9aaa5;
  --line-dark: rgba(238, 234, 222, 0.2);
  --line-light: rgba(13, 15, 16, 0.22);
  --max: 1220px;
  --gutter: clamp(1.2rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--amber-soft);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  width: min(100%, var(--max));
  min-height: 78px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand::before {
  content: "●";
  margin-right: 0.65rem;
  color: var(--amber);
  font-size: 0.72rem;
  vertical-align: 0.08em;
}

.site-nav ul,
.footer-links {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.45rem;
  list-style: none;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 100%;
  margin-top: 0.28rem;
  border-bottom: 1px solid var(--amber);
}

.hero {
  min-height: 690px;
  color: var(--paper);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(158, 203, 210, 0.08) 50%, transparent 50.1%),
    linear-gradient(var(--ink), var(--charcoal));
}

.hero-inner {
  width: min(100%, var(--max));
  min-height: 690px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 7rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
  align-items: end;
  gap: clamp(3rem, 7vw, 7rem);
}

.hero-copy {
  padding-top: 6rem;
}

.eyebrow,
.micro-label,
.note-label,
.section-kicker,
.footer-label,
.coord {
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker {
  color: var(--amber-soft);
}

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

h1 {
  max-width: 790px;
  margin-bottom: 1.5rem;
  font-size: clamp(3.1rem, 7.2vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero-deck {
  max-width: 660px;
  margin: 0;
  color: #c8c7c0;
  font-size: clamp(1.03rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.image-window {
  position: relative;
  align-self: center;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--ice);
  border-bottom: 1px solid var(--line-dark);
}

.image-window::before,
.image-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.image-window::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--amber);
  border-left: 1px solid var(--amber);
}

.image-window::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--ice);
  border-bottom: 1px solid var(--ice);
}

.image-window img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.72) contrast(1.07) brightness(0.82);
}

.coord {
  position: absolute;
  z-index: 3;
  color: var(--ice);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.59rem;
}

.coord-a {
  top: -1.65rem;
  left: 0;
}

.coord-b {
  right: 0;
  bottom: -1.65rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}

.section-dark {
  color: var(--paper);
  background: var(--charcoal);
}

.section-light {
  color: var(--ink);
  background: var(--paper);
}

.section-amber {
  color: var(--ink);
  background: var(--amber);
}

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

.section-head {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.section-no {
  color: var(--amber);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.72;
}

.section-light .section-no,
.section-amber .section-no {
  color: rgba(13, 15, 16, 0.23);
}

h2 {
  max-width: 820px;
  margin-bottom: 1.3rem;
  font-size: clamp(2.15rem, 4.8vw, 4.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.16rem;
  line-height: 1.25;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.prose {
  max-width: 730px;
}

.prose p + p {
  margin-top: 1.35rem;
}

.technical-note {
  padding: 1.2rem 0 1.2rem 1.35rem;
  border-left: 2px solid var(--amber);
  color: inherit;
}

.section-dark .technical-note {
  color: #c7c7c0;
}

.technical-note p:last-child {
  margin-bottom: 0;
}

.note-label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--amber);
}

.split-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.section-light .split-list {
  border-color: var(--line-light);
}

.split-list li {
  min-height: 165px;
  padding: 1.6rem 1.5rem 1.8rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.section-light .split-list li {
  border-color: var(--line-light);
}

.split-list li:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-dark);
}

.section-light .split-list li:nth-child(even) {
  border-color: var(--line-light);
}

.item-no {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--ice);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.section-light .item-no {
  color: #416e76;
}

.split-list p {
  margin-bottom: 0;
  color: #c4c4be;
}

.section-light .split-list p {
  color: #474946;
}

.sound-band {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 9vw, 9rem);
  align-items: end;
}

.meter {
  min-height: 330px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--ink);
  border-top: 1px solid var(--ice);
}

.meter span {
  flex: 1;
  min-width: 7px;
  background: var(--amber);
}

.meter span:nth-child(1) { height: 22%; }
.meter span:nth-child(2) { height: 41%; }
.meter span:nth-child(3) { height: 74%; }
.meter span:nth-child(4) { height: 56%; }
.meter span:nth-child(5) { height: 88%; background: var(--ice); }
.meter span:nth-child(6) { height: 62%; }
.meter span:nth-child(7) { height: 35%; }
.meter span:nth-child(8) { height: 48%; }
.meter span:nth-child(9) { height: 27%; }

.sequence {
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.sequence li {
  position: relative;
  padding: 1.4rem 0 1.4rem 4.6rem;
  border-top: 1px solid var(--line-light);
  counter-increment: steps;
}

.sequence li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.25rem;
  color: #315f67;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 700;
}

.sequence strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.checklist {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2.2rem;
  border-top: 1px solid rgba(13, 15, 16, 0.34);
}

.checklist li::before {
  content: "□";
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-size: 1.3rem;
}

.closing-note {
  max-width: 790px;
  margin: clamp(3rem, 6vw, 5rem) 0 0 auto;
  padding: 1.5rem 0 0 1.5rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.6rem);
  line-height: 1.45;
}

.page-hero {
  padding: clamp(5rem, 11vw, 9rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  color: var(--paper);
  background: var(--charcoal);
  border-bottom: 1px solid var(--line-dark);
}

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

.page-hero h1 {
  max-width: 960px;
  margin: 0;
}

.page-hero .eyebrow {
  margin-bottom: 1.2rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
}

.legal-aside {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-light);
  color: #555752;
  font-size: 0.84rem;
}

.legal-copy {
  max-width: 800px;
}

.legal-copy h2 {
  margin: 3.8rem 0 1.15rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy ul {
  padding-left: 1.2rem;
}

.legal-copy li + li {
  margin-top: 0.65rem;
}

.contact-line {
  margin-top: 2.5rem;
  padding: 1.3rem 0 1.3rem 1.4rem;
  border-left: 2px solid var(--amber);
}

.site-footer {
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 2.3rem var(--gutter);
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
}

.footer-contact a,
.footer-links a {
  color: var(--paper);
  font-size: 0.85rem;
}

.footer-links {
  justify-content: flex-end;
}

@media (max-width: 850px) {
  .header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .image-window {
    width: min(82%, 520px);
    justify-self: end;
  }

  .section-head,
  .story-grid,
  .sound-band,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .section-no {
    font-size: 5rem;
  }

  .legal-aside {
    position: static;
    max-width: 480px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-nav ul {
    gap: 0.65rem 1rem;
  }

  .site-nav a {
    font-size: 0.66rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  .hero-inner {
    gap: 3.5rem;
  }

  .image-window {
    width: 92%;
  }

  .split-list,
  .checklist {
    grid-template-columns: 1fr;
  }

  .split-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
