@font-face {
  font-family: "Big Shoulders";
  src: url("assets/fonts/BigShoulders.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("assets/fonts/IBMPlexSans-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 100%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #efece6;
  --paper-2: #e4e0d7;
  --ink: #141311;
  --mute: #5e5a54;
  --line: rgba(20, 19, 17, 0.14);
  --line-strong: rgba(20, 19, 17, 0.3);
  --rust: #e24e16;
  --rust-deep: #c44312;
  --inverse: #161513;
  --inverse-text: #efece6;
  --inverse-mute: rgba(239, 236, 230, 0.64);
  --inverse-line: rgba(239, 236, 230, 0.28);
  --font-display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --header-h: 4.15rem;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.8rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .route-map .route { stroke-dasharray: none; stroke-dashoffset: 0; }
  .hline span { transform: none; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 0.8rem;
  top: -4rem;
  z-index: 100;
  background: var(--rust);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-rust {
  background: var(--rust);
  color: var(--ink);
  border-color: var(--rust);
}
.btn-rust:hover, .btn-rust:focus-visible { background: var(--rust-deep); border-color: var(--rust-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--inverse-text);
  border-color: var(--inverse-line);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--inverse-text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.9rem;
  border-radius: 0;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--rust); color: var(--ink); }

/* Hero */
.hero {
  padding: clamp(2.4rem, 6vw, 4.5rem) 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: end;
}
.hero-copy { max-width: 40rem; min-width: 0; }

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust-deep);
}
.eyebrow.inverse { color: var(--rust); }

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 7.6rem);
  line-height: 0.82;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
  text-wrap: balance;
}
.hline { display: block; overflow: hidden; }
.hline span {
  display: block;
  animation: rise 0.95s cubic-bezier(.22, 1, .36, 1) both;
}
.hline:nth-child(2) span { animation-delay: 0.12s; }
@keyframes rise {
  from { transform: translateY(108%); }
  to { transform: translateY(0); }
}

.lede {
  margin: 0 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.4;
  color: var(--ink-soft, #2c2a27);
  max-width: 28.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}
.text-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--rust-deep); }

.hero-visual { position: relative; min-height: 12rem; }
.route-map {
  width: 100%;
  height: auto;
  color: var(--ink);
}
.route-map .route {
  stroke-linecap: square;
  stroke-linejoin: miter;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.route-primary {
  stroke: var(--rust);
  stroke-width: 2.2;
  animation: draw 1.8s cubic-bezier(.22, 1, .36, 1) forwards 0.35s;
}
.route-secondary {
  stroke: var(--ink);
  stroke-width: 1.15;
  opacity: 0.38;
  stroke-dasharray: 0.01 0.018;
  animation: draw 2.2s ease forwards 0.2s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.nodes circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.6;
}
.nodes .node-end { fill: var(--rust); stroke: var(--rust); }
.map-labels text {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--ink);
  font-weight: 500;
}

.props {
  list-style: none;
  margin: clamp(2.2rem, 5vw, 3.4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
}
.props li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1rem 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.props li:nth-child(odd) { padding-right: 1rem; }
.props li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.prop-num {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rust-deep);
}
.prop-text {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Categories */
.categories {
  background: var(--paper-2);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-head { max-width: 36rem; margin-bottom: 2rem; }
.section-head h2,
.mbe h2,
.quote h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.section-copy { margin: 0; color: var(--mute); max-width: 34rem; }

.cat-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.cat-index li {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.25s ease;
}
.cat-index li:hover,
.cat-index li:focus-within {
  padding-left: 0.55rem;
}
.cat-num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--mute);
  transition: color 0.2s ease;
}
.cat-index li:hover .cat-num { color: var(--rust-deep); }
.cat-name {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1;
}
.cat-icon {
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  justify-self: end;
}
.cat-icon svg { width: 100%; height: 100%; }
.cat-index li:hover .cat-icon { color: var(--rust-deep); }

/* MBE */
.mbe {
  padding: clamp(2.6rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.mbe-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem 1.8rem;
}
.mbe-mark {
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  color: var(--ink);
}
.mbe-mark text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: var(--rust-deep);
}
.mbe h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 0.4rem; }
.mbe p { margin: 0; color: var(--mute); max-width: 38rem; }

/* Quote */
.quote {
  background: var(--inverse);
  color: var(--inverse-text);
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}
.quote-grid {
  display: grid;
  gap: 2.2rem 3.5rem;
}
.quote-intro p { margin: 0 0 0.55rem; color: var(--inverse-mute); }
.quote-intro h2 { color: var(--inverse-text); }
.quote-email { margin-top: 1rem !important; }
.quote-email a {
  color: var(--inverse-text);
  font-weight: 600;
  text-decoration-color: var(--rust);
  text-underline-offset: 0.2em;
}
.quote-email a:hover { color: var(--rust); }

.quote-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem 1.35rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.optional {
  font-weight: 450;
  letter-spacing: 0;
  text-transform: none;
  color: var(--inverse-mute);
}
.field input,
.field select,
.field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--inverse-line);
  border-radius: 0;
  padding: 0.55rem 0 0.7rem;
  outline: none;
  width: 100%;
  color: var(--inverse-text);
  transition: border-color 0.15s ease;
}
.field textarea {
  border: 1px solid var(--inverse-line);
  padding: 0.7rem 0.8rem;
  resize: vertical;
  min-height: 7.5rem;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(239, 236, 230, 0.38); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--rust); }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23efece6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.4rem;
}
.field option { color: var(--ink); background: var(--paper); }
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: #ff8a6a; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.2rem;
  margin-top: 0.4rem;
}
.btn-submit { border: 0; min-width: 10.5rem; }
.form-note { margin: 0; font-size: 0.88rem; color: var(--inverse-mute); }

.thank-you { max-width: 32rem; }
.thank-you h2 { margin-bottom: 0.55rem; color: var(--inverse-text); }
.thank-you p { color: var(--inverse-mute); margin: 0 0 0.5rem; }
.thank-you .btn { margin-top: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--inverse);
  color: var(--inverse-mute);
  padding: 0 0 2.2rem;
  border-top: 1px solid var(--inverse-line);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 1.6rem;
}
.brand-foot { color: var(--inverse-text); }
.brand-foot .brand-sub { color: rgba(239, 236, 230, 0.62); }
.footer-meta { margin: 0; font-size: 0.9rem; line-height: 1.7; }
.footer-meta a { color: var(--inverse-text); text-decoration: none; }
.footer-meta a:hover, .footer-meta a:focus-visible {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.copyright { margin: 0.3rem 0 0; font-size: 0.8rem; color: rgba(239, 236, 230, 0.42); }

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

@media (max-width: 639px) {
  .nav-link { display: none; }
  .route-map { max-height: 15.5rem; object-fit: cover; }
  .mbe-inner { align-items: flex-start; }
  .mbe-mark { width: 3.6rem; height: 3.6rem; }
}

@media (min-width: 640px) {
  .wrap { width: min(calc(100% - 3rem), var(--max)); }
  .quote-form { grid-template-columns: 1fr 1fr; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
  }
  .footer-right { text-align: right; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
  }
  .props {
    grid-template-columns: repeat(4, 1fr);
  }
  .props li,
  .props li:nth-child(odd),
  .props li:nth-child(even) {
    padding: 1.25rem 1.25rem 1.5rem 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 1px solid var(--line);
  }
  .props li:last-child { border-right: 0; padding-right: 0; }
  .quote-grid {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }
}

