/* Great Lakes Lead Exchange — public website styles
   Concept: "The Lake Survey" — the visual language of Great Lakes navigation
   charts and county plat maps, set in a quiet, premium financial-services frame. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Color */
  --navy: #0E2A47;        /* Lake navy: hero, footer, primary buttons */
  --navy-deep: #091D33;   /* Deeper water: footer base */
  --paper: #F4F7F9;       /* Chart paper: alternating section ground */
  --white: #FFFFFF;
  --ink: #15222F;         /* Body text */
  --ink-soft: #46576A;    /* Secondary text (7.0:1 on white) */
  --rule: #D5DFE7;        /* Hairlines, table rules */
  --shoal: #8DB4D3;       /* Contour blue, on navy only */
  --green: #2E6B55;       /* Survey green: links, marks (6.4:1 on white) */
  --green-light: #9FD4BA; /* Survey green on navy */

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --wrap: 75rem;
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background: var(--white);
  font-variant-numeric: lining-nums;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--green-light); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--navy); padding: 0.75rem 1rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(141, 180, 211, 0.22);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.5rem; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--white); text-decoration: none;
}
.brand img { width: 2.25rem; height: 2.25rem; }
.brand-name { font-family: var(--serif); font-size: 1.28rem; line-height: 1.1; letter-spacing: -0.005em; }
@media (max-width: 30rem) { .site-header .brand-name { font-size: 1.02rem; } .site-header .brand img { width: 1.9rem; height: 1.9rem; } .nav-toggle { padding: 0.55rem 0.75rem; } }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,0.4); color: var(--white);
  font: 600 0.95rem/1 var(--sans); padding: 0.65rem 0.9rem; border-radius: 4px; cursor: pointer;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: block; padding: 0.6rem 0.8rem; color: #DCE6EF; text-decoration: none;
  font-size: 0.97rem; font-weight: 500; border-radius: 3px;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--green-light); border-radius: 0; }
.site-nav .nav-cta a { border: 1px solid var(--green-light); color: var(--white); margin-left: 0.5rem; }
.site-nav .nav-cta a:hover { background: var(--green-light); color: var(--navy); }

@media (max-width: 60rem) {
  .js .nav-toggle { display: inline-block; }
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 0.85rem; padding-bottom: 0.85rem; row-gap: 0.5rem; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0 0 1.25rem; gap: 0; }
  .site-nav a { padding: 0.9rem 0; border-bottom: 1px solid rgba(141,180,211,0.18); border-radius: 0; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--green-light); }
  .site-nav .nav-cta a { margin: 1rem 0 0; text-align: center; padding: 0.9rem; border-radius: 4px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font: 600 1rem/1.2 var(--sans); text-decoration: none;
  padding: 0.95rem 1.4rem; border-radius: 4px; border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--green-light); color: var(--navy); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-ink { background: var(--navy); color: var(--white); }
.btn-ink:hover { background: var(--green); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  align-items: center; gap: 2rem;
  min-height: min(46rem, calc(100vh - 4.5rem));
  padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-copy { position: relative; z-index: 2; max-width: 42rem; }
.hero h1 { color: var(--white); }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #D4E0EA; margin-top: 1.6rem; max-width: 34rem; }
.hero-status {
  margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid rgba(141,180,211,0.35);
  font-size: 0.95rem; color: #BCCDDC; max-width: 34rem;
}
.hero-status a { color: var(--green-light); }
.hero-art { position: relative; align-self: stretch; margin: calc(-1 * clamp(3rem, 7vw, 5rem)) calc(-1 * (var(--gutter) + max(0px, (100vw - var(--wrap)) / 2))) calc(-1 * clamp(3rem, 7vw, 5rem)) 0; }
.hero-art img, .hero-art .hero-svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% center;
}
.parcel-link { cursor: pointer; outline: none; }
.parcel-link .parcel { transition: fill-opacity .2s ease; }
.parcel-link:hover .parcel, .parcel-link:focus-visible .parcel { fill-opacity: .45; }
.parcel-link:focus-visible circle.pulse { stroke: #FFFFFF; stroke-width: 3; }
.parcel-link:focus-visible text { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .hero-svg { animation: chart-in 1.4s ease-out both; }
  .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out 1.6s infinite; }
  @keyframes pulse { 0% { transform: scale(.55); opacity: .9; } 80%, 100% { transform: scale(1.35); opacity: 0; } }
  @keyframes chart-in { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }
}
@media (max-width: 60rem) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: 22rem; margin: 0 calc(var(--gutter) * -1) calc(-1 * clamp(3rem, 7vw, 5rem)); order: 2; }

}

/* ---------- Page heads (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-head .wrap { padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); max-width: 20ch; }
.page-head p { color: #D4E0EA; font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 40rem; margin-top: 1.25rem; }
.page-head::after {
  content: ""; position: absolute; top: 0; right: -6%; bottom: 0; width: 46%;
  background: url("../img/lakeshore-chart.svg") left center / cover no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 40%);
          mask-image: linear-gradient(to right, transparent, #000 40%);
}
@media (max-width: 48rem) { .page-head::after { width: 70%; opacity: 0.16; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-paper { background: var(--paper); }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split > :first-child { position: sticky; top: 7rem; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .split > :first-child { position: static; } }

.lede { font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.65rem); line-height: 1.42; color: var(--ink); font-weight: 400; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink); }
.prose h2 { margin: 3.25rem 0 1.1rem; font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.prose h3 { margin: 2.25rem 0 0.75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--green); }
.muted { color: var(--ink-soft); }
.section-intro { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-intro p { margin-top: 1.1rem; color: var(--ink-soft); font-size: 1.12rem; }

/* Audience list: a ruled register, not cards */
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.register li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1.5rem 3rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.register h3 { font-size: 1.4rem; }
.register p { color: var(--ink-soft); margin: 0; }
@media (max-width: 40rem) { .register li { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Products: two bordered columns sharing one frame */
.products { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--navy); background: var(--white); }
.product { padding: clamp(1.75rem, 4vw, 3rem); }
.product + .product { border-left: 1px solid var(--navy); }
.product h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
.product > p { color: var(--ink-soft); }
.product dl { margin: 1.75rem 0 0; }
.product dt { font-weight: 650; font-size: 0.95rem; margin-top: 1.1rem; color: var(--navy); }
.product dd { margin: 0.2rem 0 0; color: var(--ink); }
.product .tag { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: 0.15rem 0.7rem; margin-bottom: 1.25rem; }
@media (max-width: 52rem) {
  .products { grid-template-columns: 1fr; }
  .product + .product { border-left: 0; border-top: 1px solid var(--navy); }
}

/* Sources ledger */
.ledger { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; color: var(--ink-soft); font-size: 0.95rem; padding-bottom: 1rem; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 1.35rem 1.5rem 1.35rem 0; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: 0.9rem; font-weight: 650; color: var(--ink-soft); border-bottom: 1px solid var(--navy); padding-top: 0; padding-bottom: 0.8rem; }
.ledger tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; width: 30%; color: var(--navy); }
.ledger td { color: var(--ink); }
.ledger td.note { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 48rem) {
  .ledger thead { position: absolute; left: -9999px; }
  .ledger tr { display: block; border-bottom: 1px solid var(--rule); padding: 1.2rem 0; }
  .ledger th, .ledger td { display: block; border: 0; padding: 0.25rem 0; width: auto; }
  .ledger tbody th { width: auto; margin-bottom: 0.35rem; }
  .ledger td.note::before { content: "Limits: "; font-weight: 650; color: var(--ink); }
}

/* Process: a true sequence, so it is numbered */
.process { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--navy); }
.process li { counter-increment: step; padding: 1.5rem 1.5rem 0 0; }
.process li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--green); margin-bottom: 0.9rem; }
.process h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.process p { color: var(--ink-soft); font-size: 0.99rem; }
@media (max-width: 56rem) { .process { grid-template-columns: 1fr 1fr; row-gap: 1rem; } }
@media (max-width: 34rem) { .process { grid-template-columns: 1fr; } }

/* The important honesty statement */
.statement { background: var(--white); border-left: 4px solid var(--green); padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3.5rem); }
.statement h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 22ch; }
.statement .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; margin-top: 1.75rem; }
.statement .cols p { color: var(--ink-soft); }
@media (max-width: 48rem) { .statement .cols { grid-template-columns: 1fr; } }

/* Illustration figure */
.figure { margin: 0; }
.figure img { width: 100%; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); }
.figure figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; font-style: italic; font-family: var(--serif); font-size: 1rem; }

/* Navy band */
.band { background: var(--navy); color: var(--white); }
.band h2 { color: var(--white); }
.band p { color: #D4E0EA; }
.band a:not(.btn) { color: var(--green-light); }
.band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.band ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(141,180,211,0.35); }
.band li { padding: 0.85rem 0; border-bottom: 1px solid rgba(141,180,211,0.2); color: #E6EEF5; }
@media (max-width: 52rem) { .band-grid { grid-template-columns: 1fr; } }

/* Status list */
.status { list-style: none; margin: 0; padding: 0; }
.status li { padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--rule); position: relative; }
.status li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.7rem; height: 0.7rem; border: 2px solid var(--green); }
.status li.done::before { background: var(--green); }

/* Contact blocks */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--navy); }
.contact-grid > div { padding: 1.75rem 2rem 1.75rem 0; }
.contact-grid > div + div { padding-left: 2rem; border-left: 1px solid var(--rule); }
.contact-grid h3 { margin-bottom: 0.6rem; }
.contact-grid p { color: var(--ink-soft); }
.contact-grid .btn { margin-top: 1.1rem; }
@media (max-width: 56rem) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}
.address { font-style: normal; line-height: 1.6; }
.address strong { font-weight: 650; }
.email-line { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2rem); word-break: break-word; }

/* Legal pages */
.legal .meta { color: var(--ink-soft); font-size: 0.97rem; }
.legal h2 { font-size: 1.6rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C4D3E0; font-size: 0.95rem; }
.site-footer .wrap { padding-top: 4rem; padding-bottom: 2.5rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(141,180,211,0.2); }
.site-footer h2 { font-family: var(--sans); font-size: 0.95rem; font-weight: 650; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #E2EBF3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-brand p { margin-top: 1rem; max-width: 26rem; }
.footer-bottom { padding-top: 1.75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: #9FB3C6; font-size: 0.88rem; }
.footer-bottom p { max-width: 46rem; }
@media (max-width: 52rem) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-items: center; }

@media print {
  .site-header, .site-footer, .hero-art, .page-head::after, .actions { display: none !important; }
  .hero, .page-head, .band { background: none; color: #000; }
  .hero h1, .page-head h1, .band h2, .hero-lede, .page-head p, .band p { color: #000; }
}

/* Keep secondary text secondary inside prose blocks */
.prose p.muted, .prose .muted { color: var(--ink-soft); }
.mt { margin-top: 1.1rem; }
.mt-l { margin-top: 1.5rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 0.2em; }


/* ---------- Layer stack (home) ---------- */
.anatomy-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.layer-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.layer-btn {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule);
  padding: 1rem 0 1rem 1.25rem; cursor: pointer; font: inherit; color: var(--ink); position: relative;
}
.layer-btn::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.55rem; height: 0.55rem; border: 1.5px solid var(--green); }
.layer-btn[aria-pressed="true"]::before { background: var(--green); }
.layer-name { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--navy); }
.layer-desc { display: block; color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.2rem; }
.js .layer-btn:not([aria-pressed="true"]) .layer-desc { display: none; }
.layer-btn:hover .layer-name { color: var(--green); }

.stack { perspective: 1800px; height: clamp(24rem, 46vw, 34rem); display: grid; place-items: center; }
.stack-inner { position: relative; width: clamp(11rem, 21vw, 16rem); aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-38deg); margin-top: 9rem; }
.sheet {
  position: absolute; inset: 0; background: #FFFFFF; border: 1px solid var(--navy);
  box-shadow: 0 1px 0 rgba(14,42,71,.25);
  transform: translateZ(calc(var(--i) * var(--gap, 4.4rem)));
  transition: transform .7s cubic-bezier(.2,.7,.2,1), opacity .5s ease, border-color .3s ease, background-color .3s ease;
}
.sheet:nth-child(1) { --i: 0; } .sheet:nth-child(2) { --i: 1; } .sheet:nth-child(3) { --i: 2; }
.sheet:nth-child(4) { --i: 3; } .sheet:nth-child(5) { --i: 4; }
.sheet svg { width: 100%; height: 100%; }
.sheet text { font: italic 19px var(--serif); fill: var(--navy); }
.sheet-conditional { border-style: dashed; background: #FBFCFD; }
/* before the section is reached, the sheets lie flat together */
.stack.is-collapsed .sheet { transform: translateZ(0); opacity: 0; }
.stack.is-collapsed .sheet:first-child { opacity: 1; }
/* focusing a single layer */
.stack.has-focus .sheet { opacity: .22; }
.stack.has-focus .sheet.is-focus { opacity: 1; border-color: var(--green); border-width: 2px; background: #FFFFFF; transform: translateZ(calc(var(--i) * var(--gap, 4.4rem) + 1.5rem)); }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
@media (max-width: 52rem) {
  .anatomy-grid { grid-template-columns: 1fr; }
  .stack { order: -1; height: 19rem; position: sticky; top: 4.4rem; z-index: 2; background: var(--paper); }
  .stack-inner { --gap: 2.6rem; margin-top: 5.5rem; width: 10rem; }
}

/* ---------- Michigan map ---------- */
.mi-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.mi-figure { max-width: 36rem; justify-self: end; width: 100%; }
.mi-map { width: 100%; height: auto; overflow: visible; }
.mi-counties path { fill: #FFFFFF; stroke: var(--navy); stroke-opacity: .32; stroke-width: .8; transition: fill .15s ease; }
.mi-counties path:hover, .mi-counties path.is-active { fill: #CFE6DB; stroke-opacity: .8; }
.mi-outline { fill: none; stroke: var(--navy); stroke-width: 1.4; pointer-events: none; }
.mi-lakes text { font: italic 19px var(--serif); fill: var(--ink-soft); pointer-events: none; }
.mi-pin { pointer-events: none; }
.mi-pin circle { fill: var(--green); stroke: #FFFFFF; stroke-width: 2; }
.mi-pin text { font: 600 14px var(--sans); fill: var(--navy); }
.mi-readout { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--navy); font-family: var(--serif); font-size: 1.6rem; color: var(--navy); min-height: 3.4rem; }
.mi-readout .mi-county.is-placeholder, .mi-readout .mi-county:empty { color: var(--ink-soft); }
.mi-source { font-size: 0.88rem; color: var(--ink-soft); }
html:not(.js) .mi-readout { display: none; }
@media (max-width: 52rem) { .mi-grid { grid-template-columns: 1fr; } .mi-figure { justify-self: center; } }

/* ---------- Scroll-drawn rail (How it works) ---------- */
.rail-wrap { position: relative; padding-left: 4rem; }
.rail { position: absolute; left: 0; top: 0; width: 2.5rem; height: 100%; overflow: visible; }
.rail path { fill: none; vector-effect: non-scaling-stroke; }
.rail-ghost { stroke: var(--rule); stroke-width: 1.5; }
.rail-line { stroke: var(--green); stroke-width: 2.5; }
.js .rail-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rail-wrap .ledger tbody th { position: relative; }
.rail-wrap .ledger tbody th::before {
  content: ""; position: absolute; left: -3.15rem; top: 1.6rem; width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--white); border: 2px solid var(--green); transition: background-color .3s ease, transform .3s ease;
}
.rail-wrap .ledger tr.is-reached th::before, html:not(.js) .rail-wrap .ledger tbody th::before { background: var(--green); }
@media (max-width: 48rem) {
  .rail-wrap { padding-left: 2.5rem; }
  .rail { width: 1.5rem; }
  .rail-wrap .ledger tbody th::before { left: -2.2rem; top: 0.55rem; }
}

/* ---------- Sample record (Products) ---------- */
.sample-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.record { background: var(--white); border: 1px solid var(--navy); position: relative; }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.25rem 1.75rem; background: var(--navy); color: var(--white); }
.record-head h3 { color: var(--white); font-size: 1.5rem; }
.record-flag { margin: 0; font-weight: 650; font-size: 0.9rem; color: var(--navy); background: var(--green-light); padding: 0.2rem 0.7rem; border-radius: 999px; white-space: nowrap; }
.record-group { padding: 1.25rem 1.75rem; border-top: 1px solid var(--rule); }
.record-group:first-of-type { border-top: 0; }
.record-group h4 { margin: 0 0 0.75rem; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--navy); }
.record-group h4 span { font-family: var(--sans); font-size: 0.85rem; color: var(--green); font-weight: 500; margin-left: 0.5rem; }
.record dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; }
.record dl div { border-bottom: 1px dotted var(--rule); padding-bottom: 0.45rem; }
.record dt { font-size: 0.82rem; color: var(--ink-soft); }
.record dd { margin: 0.1rem 0 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.record-conditional { border-top-style: dashed; background: repeating-linear-gradient(-45deg, transparent 0 9px, rgba(14,42,71,.035) 9px 10px); }
.record-conditional p { color: var(--ink-soft); font-size: 0.97rem; }
.sample-notes h3 { margin-bottom: 1rem; }
.sample-notes p { color: var(--ink-soft); }
@media (max-width: 56rem) { .sample-grid { grid-template-columns: 1fr; } }
@media (max-width: 30rem) {
  .record dl { grid-template-columns: 1fr; }
  .record-group, .record-head { padding-left: 1.1rem; padding-right: 1.1rem; }
  .record-group h4 span { display: block; margin: 0.15rem 0 0; }
}

/* ---------- Early-access form (Contact) ---------- */
.signup-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; color: var(--navy); }
.field-wide { grid-column: 1 / -1; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #8C9DAE; border-radius: 4px; padding: 0.75rem 0.85rem;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: #A3332B; }
.field-error { color: #A3332B; font-size: 0.9rem; margin: 0.35rem 0 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-foot .btn { border: 0; cursor: pointer; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.form-status:empty { display: none; }
.form-status { margin: 0; padding: 1rem 1.25rem; border-left: 4px solid var(--green); background: var(--paper); }
.form-status.is-error { border-left-color: #A3332B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-fallback { display: none; padding: 1.25rem 1.5rem; border-left: 4px solid var(--green); background: var(--paper); }
/* Until a Formspree form ID is set, hide the form and show the email fallback */
.signup-form[action*="YOUR_FORM_ID"] { display: none; }
.signup-form[action*="YOUR_FORM_ID"] + .signup-fallback { display: block; }
@media (max-width: 40rem) { .signup-form { grid-template-columns: 1fr; } }
.anatomy { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.anatomy .section-intro { margin-bottom: clamp(1rem, 3vw, 2rem); }
.field input, .field select { min-height: 3.25rem; }

/* ---------- Illustrated scenes ---------- */
.scene { margin: clamp(3rem, 7vw, 5.5rem) 0 0; }
.scene img { width: 100%; height: auto; }
.scene-band { margin: 0; background: var(--navy); }
.scene-band img { width: 100%; height: clamp(16rem, 38vw, 34rem); object-fit: cover; object-position: 30% center; }
@media (max-width: 40rem) {
  .scene-street { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); overflow: hidden; }
  .scene-street img { width: 170%; max-width: none; margin-left: -35%; }
}
