@import "brand/tokens.css";

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--acm-ink);
  background-color: var(--acm-paper);
  background-image: linear-gradient(rgba(26, 27, 25, 0.08) 1px, transparent 1px);
  background-size: 100% 64px;
  font-family: var(--acm-body);
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--acm-hero-black);
  color: var(--acm-cream);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 4px solid var(--acm-ink);
  background: rgba(220, 204, 180, 0.96);
  backdrop-filter: blur(8px);
}

.brand-link img { width: 204px; }

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 22px;
  font-family: var(--acm-display);
  font-size: 16px;
  text-transform: uppercase;
}

.site-nav a {
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus { border-color: var(--acm-rust); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 3px solid var(--acm-rust);
  background: var(--acm-rust);
  color: var(--acm-cream);
  font-family: var(--acm-display);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.button-secondary-dark {
  border-color: var(--acm-cream);
  background: transparent;
  color: var(--acm-cream);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  border: 3px solid var(--acm-ink);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 5px auto;
  background: var(--acm-ink);
}

main { width: 100%; margin: 0; }

section { scroll-margin-top: 96px; }

.hero-section,
.problem-band,
.services-band,
.proof-band,
.founder-band,
.one-sheet-band,
.next-band {
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px);
  border-bottom: 4px solid var(--acm-ink);
}

.problem-grid,
.section-grid,
.proof-intro,
.artifact-grid,
.founder-grid,
.one-sheet-grid,
.next-band > div,
.next-steps,
.next-band > .button,
.section-rule {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.section-rule {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 58px);
  font-family: var(--acm-display);
  font-size: clamp(22px, 3vw, 34px);
  text-transform: uppercase;
}

.section-rule span {
  height: 5px;
  background: var(--acm-ink);
}

h1,
h2,
h3,
.section-label,
.site-footer,
.field-ledger th,
.one-sheet-form label,
.stamp-list,
figcaption {
  font-family: var(--acm-display);
  text-transform: uppercase;
  letter-spacing: 0;
}

p {
  font-size: 22px;
  line-height: 1.4;
}

.hero-section {
  padding: 0;
}

.hero-board {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 4px solid var(--acm-ink);
  border-radius: 0;
  background: var(--acm-hero-black);
}

.hero-map-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) minmax(500px, 1.04fr);
  min-height: clamp(520px, calc(100vh - 250px), 660px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(20, 19, 16, 0.92) 0%, rgba(20, 19, 16, 0.78) 42%, rgba(20, 19, 16, 0.32) 100%),
    url("assets/textures/hero-map-field-crisp.svg");
  background-color: var(--acm-hero-black);
  background-size: cover;
  background-position: center;
}

.hero-map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(244, 235, 221, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 235, 221, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mix-blend-mode: screen;
  opacity: 0.46;
}

.hero-map-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(244, 235, 221, 0.08), inset 0 -18px 40px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 76px) clamp(28px, 5vw, 76px);
}

.hero-copy h1 {
  margin: 14px 0 20px;
  max-width: 620px;
  color: var(--acm-cream);
  font-size: clamp(72px, 8vw, 124px);
  line-height: 0.92;
  text-align: left;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.hero-copy h1 span { display: block; }
.hero-copy h1 .rust-line { color: var(--acm-rust); white-space: nowrap; }

.hero-kicker,
.hero-note {
  color: var(--acm-cream);
  font-family: var(--acm-display);
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0;
  max-width: 520px;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.1;
  overflow-wrap: break-word;
}

.hero-lede {
  max-width: 560px;
  margin: 0;
  color: var(--acm-cream);
  font-size: clamp(21px, 1.6vw, 24px);
  overflow-wrap: break-word;
}

.hero-note {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--acm-cream);
  opacity: 0.78;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.18;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-map-layer {
  position: relative;
  z-index: 1;
  min-height: 585px;
}

.hero-route {
  position: absolute;
  inset: 7% 0 2% -5%;
  width: 108%;
  height: 95%;
  overflow: visible;
}

.range-ring,
.route-line,
.route-shadow { fill: none; }

.range-ring-main {
  stroke: rgba(129, 52, 28, 0.78);
  stroke-width: 3;
}

.range-ring-small {
  stroke: rgba(200, 164, 106, 0.42);
  stroke-width: 3;
}

.route-shadow {
  stroke: rgba(0, 0, 0, 0.52);
  stroke-width: 8;
  stroke-linecap: round;
}

.route-line {
  stroke: rgba(244, 235, 221, 0.92);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 3 13;
}

.map-pin {
  position: absolute;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -100%) rotate(45deg);
  border: 4px solid rgba(20, 19, 16, 0.65);
  border-radius: 50% 50% 50% 0;
  background: #d9c2a0;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.24);
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 9px;
  left: 9px;
  border-radius: 50%;
  background: var(--acm-hero-black);
}

.pin-one { top: 24%; left: 23%; }
.pin-two { top: 48%; left: 46%; }
.pin-three { top: 27%; left: 66%; }
.pin-four { top: 66%; left: 33%; }
.pin-five { top: 55%; left: 84%; }

.hero-proof-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid rgba(26, 27, 25, 0.42);
  background:
    linear-gradient(rgba(26, 27, 25, 0.05) 1px, transparent 1px),
    var(--acm-cream);
  background-size: 100% 34px;
}

.hero-proof-band article {
  min-height: 154px;
  padding: 25px 22px 22px;
  text-align: center;
  color: var(--acm-ink);
}

.hero-proof-band h2 {
  margin: 12px 0 5px;
  font-size: 20px;
  line-height: 1;
}

.hero-proof-band p {
  max-width: 210px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.25;
}

.proof-icon {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
}

.proof-target { border: 4px solid var(--acm-ink); border-radius: 50%; }
.proof-target::before,
.proof-target::after,
.proof-check::after,
.proof-bars::before,
.proof-arrow::after { content: ""; position: absolute; }
.proof-target::before { width: 54px; height: 4px; left: -9px; top: 18px; background: var(--acm-ink); }
.proof-target::after { width: 4px; height: 54px; left: 18px; top: -9px; background: var(--acm-ink); }
.proof-check { border: 4px solid var(--acm-ink); }
.proof-check::after { left: 9px; top: 9px; width: 18px; height: 10px; border-left: 4px solid var(--acm-ink); border-bottom: 4px solid var(--acm-ink); transform: rotate(-45deg); }
.proof-bars::before {
  inset: 8px 7px 7px;
  background:
    linear-gradient(to top, var(--acm-ink) 60%, transparent 60%) 0 100% / 7px 100% no-repeat,
    linear-gradient(to top, var(--acm-ink) 78%, transparent 78%) 14px 100% / 7px 100% no-repeat,
    linear-gradient(to top, var(--acm-ink) 100%, transparent 100%) 28px 100% / 7px 100% no-repeat;
}
.proof-arrow { border: 4px solid var(--acm-ink); border-radius: 50%; }
.proof-arrow::after { left: 13px; top: 11px; width: 14px; height: 14px; border-top: 4px solid var(--acm-ink); border-right: 4px solid var(--acm-ink); transform: rotate(45deg); }

.problem-grid,
.section-grid,
.one-sheet-grid,
.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.problem-grid h2,
.section-grid h2,
.proof-intro h2,
.one-sheet-grid h2,
.next-band h2,
.founder-card h2 {
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.86;
}

.problem-grid p,
.section-grid p,
.proof-intro p,
.one-sheet-grid p,
.founder-card p {
  margin-top: 0;
}

.field-ledger {
  width: 100%;
  border-collapse: collapse;
  background: rgba(244, 235, 221, 0.32);
  border-top: 5px solid var(--acm-ink);
}

.field-ledger th,
.field-ledger td {
  padding: 20px 22px;
  border: 3px solid rgba(26, 27, 25, 0.72);
  vertical-align: top;
  text-align: left;
}

.field-ledger th {
  width: 280px;
  font-size: 20px;
}

.field-ledger td {
  font-size: 19px;
  line-height: 1.35;
}

.system-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  padding: 84px clamp(18px, 4vw, 56px);
  color: var(--acm-cream);
  background-color: var(--acm-hero-black);
  background-image: linear-gradient(rgba(20, 19, 16, 0.24), rgba(20, 19, 16, 0.24)), url("assets/textures/hero-map-field-crisp.svg");
  background-size: cover;
  border-bottom: 4px solid var(--acm-ink);
}

.section-label {
  color: var(--acm-rust);
  font-size: 16px;
}

.dark-copy h2 {
  margin: 18px 0 24px;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 0.9;
}

.dark-copy p {
  color: var(--acm-cream);
}

.process-strip,
.next-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-strip article,
.next-steps article {
  padding: 22px;
  border-top: 5px solid currentColor;
  background: rgba(244, 235, 221, 0.12);
}

.process-strip strong,
.next-steps strong {
  color: var(--acm-rust);
  font-family: var(--acm-display);
  font-size: 20px;
}

.process-strip h3,
.next-steps h3 {
  margin: 10px 0;
  font-size: 27px;
}

.process-strip p,
.next-steps p {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.proof-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: end;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 42px;
}

.artifact-grid figure,
.business-card-proof,
.worksheet-preview {
  border: 3px solid rgba(26, 27, 25, 0.74);
  background: rgba(244, 235, 221, 0.38);
}

.artifact-grid figure,
.business-card-proof {
  margin: 0;
  padding: 16px;
}

figcaption {
  margin-top: 12px;
  color: var(--acm-rust);
  font-size: 14px;
}

.founder-band {
  background: rgba(244, 235, 221, 0.2);
}

.founder-card {
  padding-top: 0;
}

.founder-title {
  color: var(--acm-rust);
  font-family: var(--acm-display);
  text-transform: uppercase;
}

.stamp-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.stamp-list li {
  padding: 14px 16px;
  border: 3px solid var(--acm-rust);
  color: var(--acm-rust);
  font-size: 16px;
}

.one-sheet-grid {
  align-items: stretch;
}

.worksheet-preview {
  width: min(100%, 560px);
  margin-top: 30px;
  padding: 12px;
}

.one-sheet-form {
  padding: 26px;
  border: 3px solid var(--acm-ink);
  background: rgba(244, 235, 221, 0.44);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.one-sheet-form label {
  display: grid;
  gap: 8px;
  color: var(--acm-rust);
  font-size: 16px;
}

.one-sheet-form label:nth-child(n + 5) {
  grid-column: 1 / -1;
}

.one-sheet-form input,
.one-sheet-form textarea {
  width: 100%;
  border: 3px solid var(--acm-ink);
  background: rgba(244, 235, 221, 0.62);
  color: var(--acm-ink);
  padding: 13px 14px;
  font: 19px/1.3 var(--acm-body);
}

.one-sheet-form textarea { resize: vertical; }
.one-sheet-form button { margin-top: 22px; }

.form-status {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.mailto-link {
  display: none;
  margin-top: 12px;
  color: var(--acm-rust);
  font-family: var(--acm-display);
  text-transform: uppercase;
}

.mailto-link.is-visible {
  display: inline-block;
}

.next-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.next-steps {
  grid-template-columns: repeat(3, 1fr);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(18px, 4vw, 56px);
  color: var(--acm-cream);
  background: var(--acm-hero-black);
}

.site-footer img { width: 76px; }

.site-footer p {
  margin: 10px 0 0;
  color: var(--acm-rust);
  font-size: 22px;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 18px;
}

.site-footer a {
  color: var(--acm-cream);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 180px auto;
  }

  .brand-link img { width: 176px; }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    border-bottom: 4px solid var(--acm-ink);
    background: var(--acm-paper);
  }

  body.nav-open .site-nav { display: flex; }

  .site-nav a {
    padding: 14px 0;
    font-size: 24px;
  }

  .hero-map-panel,
  .problem-grid,
  .section-grid,
  .system-band,
  .proof-intro,
  .founder-grid,
  .one-sheet-grid,
  .next-band {
    grid-template-columns: 1fr;
  }

  .hero-map-layer {
    min-height: 360px;
    margin-top: -18px;
  }

  .hero-proof-band,
  .process-strip,
  .artifact-grid,
  .next-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header { padding: 12px 16px; }

  .hero-section,
  .problem-band,
  .services-band,
  .proof-band,
  .founder-band,
  .one-sheet-band,
  .next-band {
    padding: 42px 14px;
  }

  .hero-section { padding: 0; }

  .hero-copy { padding: 34px 22px 18px; }

  .hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(56px, 14vw, 72px);
    line-height: 0.94;
  }

  .hero-copy .hero-kicker {
    max-width: 330px;
    font-size: 17px;
    line-height: 1.12;
  }

  .hero-copy .hero-lede {
    max-width: 330px;
    font-size: 18px;
    line-height: 1.32;
  }

  .hero-copy .hero-note {
    max-width: 330px;
    font-size: 15px;
    line-height: 1.18;
  }

  .hero-copy p,
  p {
    font-size: 18px;
  }

  .hero-map-layer { min-height: 285px; }

  .hero-route {
    inset: 0 -38% 0 -24%;
    width: 144%;
    height: 100%;
  }

  .map-pin {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }

  .map-pin::after {
    width: 8px;
    height: 8px;
    top: 7px;
    left: 7px;
  }

  .hero-proof-band,
  .process-strip,
  .artifact-grid,
  .next-steps,
  .form-grid,
  .stamp-list {
    grid-template-columns: 1fr;
  }

  .hero-proof-band article {
    min-height: auto;
    padding: 20px;
  }

  .problem-grid h2,
  .section-grid h2,
  .proof-intro h2,
  .one-sheet-grid h2,
  .next-band h2,
  .founder-card h2,
  .dark-copy h2 {
    font-size: 38px;
  }

  .section-rule {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .section-rule span { display: none; }

  .field-ledger th,
  .field-ledger td {
    display: block;
    width: 100%;
  }

  .one-sheet-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: start;
  }
}
