/* ==========================================================
   Steel Belt Redevelopment Partners
   Palette: warm charcoal hero, cream body, amber accent
   Type: Archivo (display + body), one-family for simplicity
   ========================================================== */

:root {
  --charcoal: #1A1613;
  --charcoal-2: #221C18;
  --cream: #F5EFE6;
  --cream-2: #EEE6D9;
  --ink: #1A1613;
  --ink-soft: #4A3F36;
  --muted: #7B6F62;
  --rule: #D9CEBC;
  --rule-dark: #3A2F27;

  /* Accent, amber default */
  --accent: #B8873A;
  --accent-deep: #8F6628;

  /* `--serif` retained as token name for minimal churn; value is now Archivo. */
  --serif: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --sans: 'General Sans', 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-accent="copper"] {
  --accent: #9A4E2A;
  --accent-deep: #743A1F;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  font-optical-sizing: auto;
}

/* Archivo — strong grotesque sans. Weight 600 on all headlines, tightened
   letter-spacing at display sizes for a more architectural feel. */
.section-headline,
.hero__headline,
.focus__headline,
.caplist h3,
.step__title {
  font-weight: 600;
  letter-spacing: -0.015em;
}
.hero__headline {
  font-weight: 600;
  letter-spacing: -0.025em;
}
/* Italic numerals/labels: Archivo has no italic variants by design; use upright
   at medium weight with a touch of tracking for small caps feel. */
.caplist__num,
.step__num {
  font-weight: 500;
  font-style: normal;
}
.mi-map .city-label,
.diagram .hall-label,
.diagram .north-label {
  font-style: normal;
  font-weight: 500;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--cream); }

/* Layout -------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Type utilities ----------------------------------------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 2rem 0;
  font-weight: 500;
}
.eyebrow--light { color: rgba(245,239,230,0.65); }

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem 0;
  font-weight: 500;
}
.focus .section-label, .contact .section-label { color: var(--muted); }
.focus .section-label { color: rgba(245,239,230,0.55); }

.section-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 2rem 0;
  max-width: 22ch;
}

.prose {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 1.1rem 0;
}
.prose--light { color: rgba(245,239,230,0.78); }

/* Nav ---------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--charcoal);
  color: var(--cream);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(245,239,230,0.08);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.wordmark svg {
  display: block;
  height: 42px;
  width: auto;
}
.nav__links {
  display: flex;
  gap: 2.25rem;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,239,230,0.82);
  font-weight: 500;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--accent); }

/* Hero --------------------------------------------------- */
.hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(90px, 14vh, 160px) 0 clamp(110px, 16vh, 180px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Full-cover dark Midwest map with blue lakes as the hero backdrop. */
  content: "";
  position: absolute; inset: 0;
  background-image: url("brand/hero_map_dark.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.9;
  pointer-events: none;
}
.hero::after {
  /* Soft darkening so the headline reads cleanly over the map. */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26,22,19,0.55) 0%,
      rgba(26,22,19,0.35) 45%,
      rgba(26,22,19,0.70) 100%),
    linear-gradient(90deg,
      rgba(26,22,19,0.55) 0%,
      rgba(26,22,19,0.25) 40%,
      rgba(26,22,19,0.15) 100%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .hero::before {
    background-size: cover;
    background-position: center center;
    opacity: 0.75;
  }
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(26,22,19,0.72) 0%,
        rgba(26,22,19,0.55) 45%,
        rgba(26,22,19,0.82) 100%);
  }
}
.hero__inner { position: relative; z-index: 2; }
.hero .eyebrow { color: rgba(245,239,230,0.6); margin-bottom: 2.5rem; }
.hero__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 1.75rem 0;
  max-width: 18ch;
}
.hero__headline br { display: block; }
.hero__headline-break { display: inline; }
@media (min-width: 700px) {
  .hero__headline-break { display: block; height: 0; width: 0; }
}
.hero__sub {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: rgba(245,239,230,0.78);
  max-width: 56ch;
  margin: 0 0 2.5rem 0;
  font-weight: 400;
}
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid var(--accent);
  transition: gap .3s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.cta-link:hover {
  gap: 20px;
  color: var(--cream);
  border-color: var(--cream);
}
.hero__rule {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(245,239,230,0.08);
}

/* What We Do -------------------------------------------- */
.what {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.what__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.what__left .section-headline { max-width: 18ch; }
.what__left .prose:last-child { margin-bottom: 0; }

.caplist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.caplist li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
.caplist__num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  line-height: 1.2;
  padding-top: 2px;
}
.caplist h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.caplist p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}

/* Focus Area -------------------------------------------- */
.focus {
  background: var(--charcoal);
  color: var(--cream);
  padding: clamp(80px, 12vh, 140px) 0;
  position: relative;
}
.focus .eyebrow--light { margin-bottom: 1.5rem; }
.focus__headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 3rem 0;
  max-width: 20ch;
  color: var(--cream);
}
.focus__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.focus__map {
  margin: 0;
  border: 1px solid rgba(245,239,230,0.12);
  background: var(--charcoal-2);
  padding: 16px;
  border-radius: 2px;
}
.focus__map svg { width: 100%; height: auto; }

.focus__copy .prose { margin-bottom: 1.2rem; }

.site-diagram {
  margin: 2rem 0 0 0;
  padding: 18px 18px 14px;
  border: 1px solid rgba(245,239,230,0.12);
  background: var(--charcoal-2);
  border-radius: 2px;
}
.site-diagram svg { width: 100%; height: auto; }
.site-diagram figcaption {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(245,239,230,0.6);
  margin-top: 10px;
  font-style: italic;
}

/* Process ----------------------------------------------- */
.process {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.process .section-headline { margin-bottom: 3.5rem; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  padding: 2.5rem clamp(20px, 3vw, 40px) 2.5rem 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: clamp(20px, 3vw, 40px); }
.step__num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
  display: block;
  margin-bottom: 1.25rem;
}
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 0.9rem 0;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.step__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 36ch;
}

/* Contact ----------------------------------------------- */
.contact {
  background: var(--cream-2);
  padding: clamp(80px, 12vh, 140px) 0 clamp(100px, 14vh, 160px);
}
.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.contact__headline {
  max-width: 26ch;
  margin-bottom: 1.25rem;
}
.contact__framing {
  margin-bottom: 3rem;
  max-width: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.field {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0 0.9rem;
  border-bottom: 1px solid var(--rule);
  transition: border-color .25s var(--ease);
}
.field:focus-within { border-color: var(--accent); }
.field__label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  border: none;
  background: transparent;
  outline: none;
  color: var(--ink);
  padding: 2px 0;
  resize: vertical;
  line-height: 1.5;
}
.field textarea { min-height: 90px; }

.btn {
  align-self: flex-start;
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 26px;
  border: none;
  cursor: pointer;
  transition: background .25s var(--ease), gap .3s var(--ease);
}
.btn:hover {
  background: var(--accent-deep);
  gap: 18px;
}
.form__note {
  margin-top: 1.25rem;
  font-size: 13px;
  color: var(--muted);
}
.form__note a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Footer ------------------------------------------------ */
.footer {
  background: var(--charcoal);
  color: rgba(245,239,230,0.72);
  padding: 28px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer a { color: var(--cream); border-bottom: 1px solid rgba(245,239,230,0.3); padding-bottom: 1px; transition: border-color .25s var(--ease); }
.footer a:hover { border-color: var(--accent); }

/* Palette toggle (dev preview) -------------------------- */
.palette-toggle { display: none !important; } /* locked to amber for final */
.palette-toggle-old {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 60;
  display: inline-flex;
  background: rgba(26,22,19,0.92);
  border: 1px solid rgba(245,239,230,0.12);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.palette-toggle button {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,239,230,0.72);
  background: transparent;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s, background .25s;
}
.palette-toggle button.is-active {
  background: var(--accent);
  color: var(--charcoal);
}

/* Map SVG ---------------------------------------------- */
.mi-map { --map-bg: #1F1915; }
.mi-map .county {
  fill: rgba(245,239,230,0.035);
  stroke: rgba(245,239,230,0.32);
  stroke-width: 0.8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill .3s var(--ease);
}
.mi-map .county:hover { fill: rgba(184,135,58,0.08); }
.mi-map .county-label {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  fill: rgba(245,239,230,0.48);
  font-weight: 500;
  text-anchor: middle;
}
.mi-map .water {
  /* hatch pattern already set inline */
}
.mi-map .fiber path {
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  opacity: 0.85;
  fill: none;
}
.mi-map .fiber-legend { stroke: var(--accent); stroke-dasharray: 2 4; stroke-width: 1; }
.mi-map .pin .pin-halo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.8;
  opacity: 0.45;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo 3.2s ease-out infinite;
}
.mi-map .pin:nth-child(2n) .pin-halo { animation-delay: -1.1s; }
.mi-map .pin:nth-child(3n) .pin-halo { animation-delay: -2.2s; }
.mi-map .pin-dot { fill: var(--accent); }
.mi-map .sub-box { fill: none; stroke: rgba(245,239,230,0.78); stroke-width: 1; }
.mi-map .sub-tick { stroke: rgba(245,239,230,0.78); stroke-width: 1; }
.mi-map .city-dot { fill: rgba(245,239,230,0.95); }
.mi-map .city-label {
  font-family: var(--serif);
  font-size: 15px;
  fill: rgba(245,239,230,0.92);
}
.mi-map .legend text {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  fill: rgba(245,239,230,0.72);
}
@keyframes halo {
  0%   { r: 9;  opacity: 0.55; }
  70%  { r: 22; opacity: 0; }
  100% { r: 22; opacity: 0; }
}

/* Site diagram ----------------------------------------- */
.diagram { --d-line: rgba(245,239,230,0.55); --d-muted: rgba(245,239,230,0.42); --d-label: rgba(245,239,230,0.72); }
.diagram .parcel { fill: none; stroke: var(--d-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.diagram .tick { stroke: rgba(245,239,230,0.35); stroke-width: 1; }
.diagram .dim-label {
  font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.18em;
  fill: rgba(245,239,230,0.55);
}
.diagram .comp-label {
  font-family: var(--sans); font-size: 8.5px; letter-spacing: 0.14em;
  fill: var(--d-label);
}
.diagram .comp-label-bold {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em;
  fill: var(--cream); font-weight: 600;
}
.diagram .hall-label {
  font-family: var(--serif); font-size: 13px;
  fill: rgba(245,239,230,0.78);
}
.diagram .facility {
  fill: rgba(184,135,58,0.08);
  stroke: var(--accent);
  stroke-width: 1.1;
}
.diagram .facility-stroke { stroke: rgba(184,135,58,0.55); stroke-width: 0.75; }
.diagram .equip { fill: rgba(245,239,230,0.04); stroke: var(--d-muted); stroke-width: 0.9; }
.diagram .equip-alt { fill: rgba(245,239,230,0.02); }
.diagram .equip-stroke { stroke: var(--d-muted); stroke-width: 0.6; }
.diagram .equip-hatch line { stroke: var(--d-muted); stroke-width: 0.5; }
.diagram .gen-circle { fill: none; stroke: var(--d-muted); stroke-width: 0.9; }
.diagram .mmr { fill: var(--accent); opacity: 0.9; }
.diagram .sub-box { fill: none; stroke: var(--d-line); stroke-width: 1; }
.diagram .sub-tick { stroke: var(--d-line); stroke-width: 1; }
.diagram .feed {
  fill: none;
  stroke: rgba(245,239,230,0.6);
  stroke-width: 1.2;
}
.diagram text.feed-label {
  font-family: var(--sans); font-size: 8px; letter-spacing: 0.14em;
  fill: rgba(245,239,230,0.55);
}
.diagram .fiber path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.diagram .fiber-label {
  font-family: var(--sans); font-size: 8px; letter-spacing: 0.18em;
  fill: var(--accent);
}
.diagram .storm { fill: rgba(245,239,230,0.04); stroke: var(--d-muted); stroke-width: 0.8; }
.diagram .access { stroke: rgba(245,239,230,0.35); stroke-width: 0.8; stroke-dasharray: 1 3; }
.diagram .north { stroke: var(--d-line); stroke-width: 1; }
.diagram .north-head { fill: var(--d-line); }
.diagram .north-label {
  font-family: var(--serif); font-size: 11px;
  fill: var(--d-line);
}

.form__done {
  margin-top: 1.25rem;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  letter-spacing: 0.02em;
}

/* Reveal animation ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .nav__inner { padding-top: 16px; padding-bottom: 16px; }
  .nav__links { gap: 1.2rem; }
  .nav__links a { font-size: 12px; letter-spacing: 0.1em; }

  .hero { padding: 80px 0 100px; }
  .hero__headline { font-size: clamp(38px, 9vw, 60px); }

  .what__grid { grid-template-columns: 1fr; gap: 40px; }

  .focus__grid { grid-template-columns: 1fr; gap: 32px; }

  .steps { grid-template-columns: 1fr; border-bottom: 1px solid var(--rule); }
  .step { border-right: none; border-bottom: 1px solid var(--rule); padding: 2rem 0; }
  .step:last-child { border-bottom: none; }
  .step:not(:first-child) { padding-left: 0; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .wordmark svg { height: 36px; }
  .section-headline { font-size: clamp(26px, 7vw, 36px); }
  .hero__headline br { display: none; }
}

/* Reduced motion -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
