/* Proximity Partners
   Palette is the logo navy (#19293E), tints of it, and warm neutrals. Nothing else. */

:root {
  /* Brand */
  --navy: #19293E;        /* sampled from logo.png */
  --navy-deep: #0F1A28;   /* darker shade for bands and footer */
  --slate: #4F5D70;       /* secondary text, 6.1:1 on paper */
  --mist: #A9B4C2;        /* muted text on navy, 7.0:1 */
  --rule: #D5DAE1;        /* hairlines and map strokes (decorative) */
  --rule-soft: #E6E9EE;

  /* Neutrals */
  --paper: #F6F4EF;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.9rem, 1.75rem + 5.4vw, 6.25rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  --fs-h3: clamp(1.6rem, 1.35rem + 1vw, 2.125rem);
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* Layout */
  --gutter: 1rem;
  --max: 77.5rem;
  --section: clamp(5rem, 3.5rem + 6vw, 9rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 48em) { :root { --gutter: 2rem; } }
@media (min-width: 80em) { :root { --gutter: 3rem; } }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
/* the counter dot from the P mark */
.eyebrow::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow-light { color: var(--mist); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: var(--navy);
  color: var(--paper);
  font: 600 1rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-small { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.875rem; }

.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--paper); border-color: var(--navy); }

.btn-light { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-light:hover { background: var(--white); border-color: var(--white); }
.btn-light:focus-visible { outline-color: var(--paper); }

.btn-block { width: 100%; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 3.25rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.2s var(--ease);
}
.link-quiet:hover { text-decoration-color: var(--navy); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand { display: block; flex: none; }
.brand img { width: auto; height: 2.25rem; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--navy);
  font: 600 0.875rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-toggle-bars { position: relative; transform: translateY(-3px); }
.nav-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }

.site-nav ul { display: flex; flex-direction: column; }
.site-nav a:not(.btn) {
  display: block;
  padding: 0.85rem 0;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

/* Mobile: collapsible panel. Without JS, nav is simply shown. */
.js .site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.js .site-nav:not(.is-open) { display: none; }
.site-nav .btn { margin-top: 1.25rem; width: 100%; }

html:not(.js) .nav-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; }
html:not(.js) .site-nav { width: 100%; padding-bottom: 1rem; }

@media (min-width: 60em) {
  .brand img { height: 2.5rem; }
  .nav-toggle { display: none; }
  .js .site-nav,
  .js .site-nav:not(.is-open),
  html:not(.js) .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { flex-direction: row; gap: 2rem; }
  .site-nav a:not(.btn) {
    padding: 0.5rem 0;
    border: 0;
    font-size: 0.9375rem;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s var(--ease);
  }
  .site-nav a:not(.btn):hover { text-decoration-color: currentColor; }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 1rem + 5vw, 5.5rem) 0 0; }

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.98;
  margin-bottom: 1.75rem;
  max-width: 11ch;
}

.lede {
  max-width: 34rem;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--slate);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  margin-top: 2.25rem;
}

.hero-map {
  position: relative;
  margin: 0;
  max-width: 26rem;
}
.map-svg { width: 100%; border: 1px solid var(--rule); }
.map-bg { fill: var(--white); }
.map-minor path { stroke: var(--rule-soft); stroke-width: 1.5; fill: none; }
.map-major path { stroke: var(--rule); stroke-width: 9; fill: none; stroke-linecap: round; }
.map-blocks rect { fill: var(--paper); }
.map-dots circle { fill: var(--mist); }
.map-ring { fill: none; stroke: var(--navy); stroke-opacity: 0.18; stroke-width: 1.5; }
.map-ring-outer { stroke-opacity: 0.08; }

.map-pin {
  position: absolute;
  /* mark's counter dot sits over ring center: (352, 262) in a 520x560 box */
  left: calc(352 / 520 * 100%);
  top: calc(262 / 560 * 100%);
  width: 15%;
  height: auto;
  transform: translate(-45%, -32%); /* counter dot of the mark over the ring center */
}

.map-tag {
  position: absolute;
  right: calc((1 - 352 / 520) * 100% + 7%);
  top: calc(262 / 560 * 100% - 17%);
  padding: 0.35rem 0.6rem;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-caption {
  margin-top: 0.75rem;
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
}

.hero-facts {
  display: grid;
  margin-top: clamp(3.5rem, 2rem + 5vw, 6rem);
  border-top: 1px solid var(--navy);
}
.hero-facts li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}

.fact-k {
  display: inline-block;
  min-width: 5.5rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}

@media (min-width: 48em) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li { flex-direction: column; gap: 0.35rem; padding: 1.25rem 1.5rem 1.25rem 0; border-bottom: 0; }
  .hero-facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
}

@media (min-width: 60em) {
  .hero-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-map { grid-column: 8 / span 5; justify-self: end; width: 100%; max-width: 30rem; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }

h2 { font-size: var(--fs-h2); }

.split { display: grid; gap: 2.5rem; }

@media (min-width: 60em) {
  .split { grid-template-columns: repeat(12, 1fr); gap: 2rem; }
  .split-aside { grid-column: 1 / span 4; }
  .split > :last-child { grid-column: 6 / span 7; }
  .split-sticky { position: sticky; top: 7rem; align-self: start; }
}

/* ---------- How it works ---------- */

.how { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.how h2 { max-width: 10ch; }

.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.step:first-child { border-top-color: var(--navy); }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--navy);
}
.step h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
.step p { color: var(--slate); max-width: 34rem; }

@media (min-width: 48em) {
  .step { grid-template-columns: 7rem 1fr; padding: 2.5rem 0; }
  .step-num { font-size: 4rem; }
}

/* ---------- Plans ---------- */

.plans { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.plans-head { display: grid; gap: 0; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.plans-head h2 { max-width: 16ch; }
.plans-intro { margin-top: 1.25rem; max-width: 26rem; color: var(--slate); }

@media (min-width: 60em) {
  .plans-head { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; align-items: end; }
  .plans-head .eyebrow { grid-column: 1 / -1; }
  .plans-head h2 { grid-column: 1 / span 8; }
  .plans-intro { grid-column: 9 / span 4; margin-top: 0; }
}

.plan-grid {
  display: grid;
  border-top: 1px solid var(--navy);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 0 2.75rem;
}
.plan + .plan { border-top: 1px solid var(--rule); }

.plan-top { margin-bottom: 1.75rem; }
.plan h3 { font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); }
.plan-for { margin-top: 0.5rem; color: var(--slate); }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.price-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.8rem + 3vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.price-unit { font-weight: 600; color: var(--slate); }
.plan-setup {
  margin-top: 0.6rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}

.dot-list { margin: 1.5rem 0 2.25rem; }
.dot-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
}
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--navy);
}
.plan .btn { margin-top: auto; align-self: flex-start; }

.plan-pay {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.plan-pay-label { max-width: 22rem; margin-bottom: 1rem; font-size: var(--fs-small); color: var(--slate); }
.paypal-slot {
  /* PayPal's iframes carry a high z-index; contain them so the sticky header and menu stay on top */
  position: relative;
  z-index: 0;
  max-width: 20rem;
  min-height: 6.5rem;
}
.plan-pay-fallback { font-size: var(--fs-small); color: var(--slate); }

@media (min-width: 48em) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .plan-for { min-height: 3.2em; } /* keeps both prices on one baseline when a line wraps */
  .plan { padding: 2.75rem 2.5rem 3rem 0; }
  .plan + .plan { border-top: 0; border-left: 1px solid var(--rule); padding-left: 2.5rem; padding-right: 0; }
}
@media (min-width: 80em) {
  .plan { padding-right: 4.5rem; }
  .plan + .plan { padding-left: 4.5rem; }
}

.terms {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--navy);
}
.terms dt {
  margin-bottom: 0.4rem;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.terms dd { margin: 0; max-width: 32rem; }

@media (min-width: 48em) {
  .terms { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .terms > div + div { padding-left: 2.5rem; border-left: 1px solid var(--rule); }
}
@media (min-width: 80em) {
  .terms > div + div { padding-left: 4.5rem; }
}

/* ---------- Founding clients ---------- */

.founding {
  position: relative;
  overflow: hidden;
  padding: var(--section) 0;
  background: var(--navy-deep);
  color: var(--paper);
}
.founding :focus-visible { outline-color: var(--paper); }

.founding-mark {
  position: absolute;
  right: -6%;
  bottom: -18%;
  width: clamp(14rem, 40vw, 34rem);
  height: auto;
  opacity: 0.06;
  pointer-events: none;
}

.founding-grid { position: relative; display: grid; gap: 0.5rem; }
.founding h2 { margin-bottom: 1.75rem; }
.founding-body p { max-width: 36rem; font-size: var(--fs-lede); color: var(--mist); }
.founding-body p + p { margin-top: 1rem; }
.founding-body .btn { margin-top: 2.5rem; }

@media (min-width: 60em) {
  .founding-grid { grid-template-columns: repeat(12, 1fr); column-gap: 2rem; }
  .founding-grid .eyebrow { grid-column: 1 / span 4; padding-top: 1.1rem; align-self: start; }
  .founding-body { grid-column: 6 / span 7; }
}

/* ---------- About ---------- */

.about-grid { display: grid; gap: 3rem; }

.about-figure { order: 2; margin: 0; max-width: 18rem; }
.nowrap { white-space: nowrap; }
.about-photo-fallback {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--white);
  border: 1px solid var(--rule);
}
.about-photo-fallback img { width: 34%; height: auto; }
.about-figure > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-figure figcaption {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  color: var(--slate);
}

.about h2 { margin-bottom: 2rem; }
.prose p { max-width: 36rem; font-size: var(--fs-lede); }
.prose p + p { margin-top: 1.25rem; }
.prose p:not(:first-child) { color: var(--slate); }

@media (min-width: 60em) {
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: end; }
  .about-figure { order: 0; max-width: 24rem; grid-column: 1 / span 4; }
  .about-copy { grid-column: 6 / span 7; padding-bottom: 2.5rem; }
}

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); }
.faq-more { margin-top: 1.5rem; color: var(--slate); font-size: var(--fs-small); overflow-wrap: anywhere; }

.faq-list { border-top: 1px solid var(--navy); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  position: relative;
  display: block;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.875rem);
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 1rem;
  height: 1.5px;
  background: var(--navy);
  transition: transform 0.25s var(--ease);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.answer { padding: 0 0 1.75rem; max-width: 38rem; color: var(--slate); }
.answer p + p { margin-top: 1rem; }

/* ---------- Contact ---------- */

.contact { background: var(--white); border-top: 1px solid var(--rule); }

.contact-grid { display: grid; gap: 3rem; }
.contact h2 { margin-bottom: 1.5rem; }
.contact-copy > p:not(.eyebrow) { max-width: 30rem; color: var(--slate); font-size: var(--fs-lede); }

.contact-direct { margin-top: 2.5rem; border-top: 1px solid var(--navy); }
.contact-direct li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.contact-direct .fact-k { min-width: 7.5rem; }
.contact-direct a { overflow-wrap: anywhere; }

.audit-form {
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
}
.field + .field { margin-top: 1.25rem; }
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--slate);
  border-radius: 2px;
  background: var(--white);
  color: var(--navy);
  font: 500 1rem/1.3 var(--font-body);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:hover,
.field select:hover { border-color: var(--navy); }
.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--navy);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field select { appearance: none; padding-right: 2.5rem; }
.hint { margin-top: 0.4rem; font-size: 0.875rem; color: var(--slate); }

.audit-form .btn { margin-top: 1.75rem; }
.form-note { margin-top: 1rem; font-size: 0.875rem; color: var(--slate); }

@media (min-width: 48em) {
  .audit-form { padding: 2.25rem; }
}
@media (min-width: 60em) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: start; }
  .contact-copy { grid-column: 1 / span 5; }
  .audit-form { grid-column: 7 / span 6; }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(3.5rem, 2.5rem + 3vw, 5rem) 0 2rem;
  background: var(--navy);
  color: var(--mist);
  font-size: var(--fs-small);
}
.site-footer :focus-visible { outline-color: var(--paper); }
.site-footer a { color: var(--paper); text-decoration-color: transparent; transition: text-decoration-color 0.2s var(--ease); }
.site-footer a:hover { text-decoration-color: currentColor; text-decoration-line: underline; }

.footer-grid { display: grid; gap: 2.5rem; }
.footer-brand img { width: 11rem; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 20rem; }
.footer-nav ul { display: grid; gap: 0.6rem; }
.footer-nav a { text-decoration: none; }
.footer-contact { display: grid; gap: 0.6rem; align-content: start; font-style: normal; }
.footer-contact a { overflow-wrap: anywhere; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(169, 180, 194, 0.3);
  /* rule spans content width only */
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  padding-inline: 0;
  font-size: 0.8125rem;
}

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.25fr; }
}

/* ---------- Simple pages (thanks, 404) ---------- */

.simple {
  padding: clamp(4rem, 3rem + 6vw, 8rem) 0 var(--section);
}
.simple h1 { font-size: var(--fs-h2); margin-bottom: 1.5rem; max-width: 14ch; }
.simple p:not(.eyebrow) { max-width: 34rem; color: var(--slate); font-size: var(--fs-lede); }
.simple p:not(.eyebrow) + p { margin-top: 1rem; }
.simple .btn { margin-top: 2.5rem; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
