/* =================================================================
   Change Point Psychology — Production Homepage Stylesheet
   Plain CSS, no build step. Faithful rebuild of the approved Design
   Arena concept ("The Waypoint") on the real brand palette/type system.
   ================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #1e2420;
  --paper: #f6f1e7;
  --evergreen: #24402f;
  --ochre: #c08a3e;           /* decorative fills / large-scale accents only */
  --ochre-on-light: #8a5a22;  /* accessible text variant, small text on Paper (~5.2:1) */
  --ochre-on-dark: #d9a860;   /* accessible text variant, small text on Evergreen (~5.2:1) */
  --waypoint: #c1502d;
  --cream: #f6f1e7;           /* text-on-dark tone, same value as Paper by design */
  --rule: rgba(30, 36, 32, 0.16);
  --rule-dark: rgba(239, 233, 221, 0.28);
  --focus: #24402f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Base type ---------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Visible, accessible focus state for every interactive element */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  z-index: 100;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kicker { color: var(--ochre-on-light); font-size: 13px; }
.dark .kicker { color: var(--ochre-on-dark); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--waypoint);
  color: #ffffff;
  padding: 14px 26px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 500;
  border: 1px solid var(--waypoint);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--waypoint); }
.btn.on-dark:hover { color: #ffffff; background: #a8441f; border-color: #a8441f; }
.icon-arrow { flex-shrink: 0; }
.btn .icon-arrow { transition: transform 0.2s ease; } /* transform doesn't affect layout, so button width is unchanged */
.btn:hover .icon-arrow, .btn:focus-visible .icon-arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .btn .icon-arrow { transition: none; }
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.arrow-link:hover { border-color: var(--waypoint); color: var(--waypoint); }
.dark .arrow-link { border-color: var(--rule-dark); }
.dark .arrow-link:hover { color: var(--ochre-on-dark); border-color: var(--ochre-on-dark); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--rule);
}
/* The blur lives on a pseudo-element, not the header itself: backdrop-filter on
   the header creates a containing block for fixed descendants, which collapsed
   the mobile nav panel to ~0 height in testing. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 241, 231, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 50px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-links > ul {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14.5px;
  color: rgba(30, 36, 32, 0.78);
}
.nav-links a:not(.btn):hover { color: var(--ink); }

.has-submenu { position: relative; }
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.submenu-toggle .caret { transition: transform 0.2s ease; }
.has-submenu.is-open .submenu-toggle .caret,
.has-submenu:hover .submenu-toggle .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 18px 32px rgba(30, 36, 32, 0.1);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* Invisible bridge across the gap so the hover isn't lost between toggle and panel */
@media (min-width: 781px) {
  .submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 16px;
  }
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}
.submenu a:hover { background: rgba(30, 36, 32, 0.05); }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 0; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  /* Widened the photo column slightly (was 1.5fr/.5fr) so the taller
     two-photo composition below has room to grow toward the headline's
     top edge. Checked against the headline's own max-width:16ch cap —
     the text column still has slack before this would affect its wrap. */
  grid-template-columns: 1.35fr 0.65fr;
  gap: 64px;
  align-items: end;
  margin-top: 6px; /* was 46px — reduced 40px per art-direction feedback */
  padding-bottom: 70px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(30, 36, 32, 0.6);
  font-weight: 500;
  font-size: 13px;
}
.bearing { height: 1px; width: 78px; background: var(--ochre); flex-shrink: 0; }
.h1-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin-top: 28px;
  font-size: clamp(40px, 6vw, 84px);
  max-width: 16ch;
}
.h1-display .accent { color: var(--evergreen); }
.hero-copy-row {
  display: flex;
  gap: 56px;
  margin-top: 46px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero-copy-row .btn { transform: translateY(-8px); }
.lede {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(30, 36, 32, 0.8);
  max-width: 46ch;
}
/* ---------- Hero photo composition (two-photo, staggered/overlapping) ---------- */
.hero-photo-group {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
}
/* Positioning context for the two photos + mark. Deliberately does NOT
   include the figcaption below, so the secondary photo's offset is always
   calculated against the photos alone, not against the caption's height. */
.hero-photo-frame { position: relative; width: 100%; }
.hero-photo { overflow: hidden; background: var(--evergreen); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Larger, portrait-orientation image — anchored right, in normal flow so it
   sets the frame's height. Secondary photo overlaps its lower-left corner. */
.hero-photo-primary {
  position: relative;
  z-index: 1;
  width: 76%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
}
.hero-photo-primary img { object-position: center 22%; }

/* Smaller, landscape-orientation image — inset over the primary's bottom-left
   corner, extending slightly past its left and bottom edges. The Paper-colored
   ring keeps the two photos visually separated rather than colliding. */
.hero-photo-secondary {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: -36px;
  width: 46%;
  aspect-ratio: 4 / 3;
  box-shadow: 0 0 0 10px var(--paper);
}

/* Quiet Waypoint detail in the negative space above/left of the photos —
   the brand arrow mark, echoing the same graphic used in the primary logo. */
.hero-photo-mark {
  position: absolute;
  top: 3%;
  left: 2%;
  width: 22px;
  height: auto;
}

/* Sits below the frame; margin-top clears the secondary photo's -36px
   overflow (36px) plus the same 12px gap the original single-photo caption
   used, so it never overlaps the second image. */
.cap.hero-photo-cap { margin-top: 48px; }

.cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(30, 36, 32, 0.45);
  margin-top: 12px;
}
.dark .cap { color: rgba(239, 233, 221, 0.45); }

/* ---------- Generic section rhythm ---------- */
.sec { padding: 130px 0; }
h2.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.06;
  font-size: clamp(32px, 3.7vw, 52px);
}
.body {
  font-size: 17.5px;
  line-height: 1.72;
  color: rgba(30, 36, 32, 0.82);
}
.dark { background: var(--evergreen); color: #efe9dd; }
.dark .body { color: rgba(239, 233, 221, 0.78); }
.dark h2.h2 { color: #f6f1e7; }

/* Standardized eyebrow-to-content spacing (About, Practical, The Connected
   Picture) — 30px between the kicker and whatever follows it. */
.about-copy .kicker,
.practical-grid .kicker,
.positioning-grid .kicker {
  margin-bottom: 30px;
}

/* ---------- Recognition ---------- */
.recognition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.recognition-grid .h2 { max-width: 13ch; }

/* ---------- Positioning (dark) ---------- */
.positioning { padding: 120px 0; }
.positioning-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: center; }
.positioning-grid .h2 { max-width: 14ch; }
.positioning-grid .body { margin-top: 34px; max-width: 52ch; }
.positioning-grid .arrow-link { margin-top: 38px; }

.bearing-diagram { display: grid; gap: 14px; }
.bearing-row { display: flex; align-items: center; gap: 18px; }
.bearing-row .line { height: 1px; background: rgba(239, 233, 221, 0.32); }
.bearing-row span.label { color: rgba(239, 233, 221, 0.8); }
.bearing-terminus { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.bearing-terminus .line { height: 1px; width: 220px; background: var(--ochre); }
.bearing-terminus img { width: 26px; height: 26px; }

/* ---------- Trust / approach ---------- */
.about-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 80px; }
/* No fixed aspect-ratio: the grid's default stretch alignment makes this
   figure match the height of the text column beside it (at least as tall,
   per art direction), rather than a ratio that could fall short of it. */
.about-photo { overflow: hidden; background: var(--evergreen); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.about-copy { padding-top: 16px; }
.about-copy .h2 { max-width: 15ch; }
.about-copy .body { margin-top: 32px; max-width: 54ch; }
.about-copy .body + .body { margin-top: 22px; }
.about-copy .arrow-link { margin-top: 38px; }

/* ---------- Promise (pull quote) ---------- */
.promise {
  margin-top: 130px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 104px 0;
}
.promise-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 70px; align-items: end; }
.pull {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 12ch;
}
.pull .accent { color: var(--waypoint); }
.promise-grid .body { padding-bottom: 10px; }

/* ---------- Pathways ---------- */
.pathways-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 24px;
  flex-wrap: wrap;
}
.path-row {
  display: grid;
  /* Fixed third column (rather than auto) so column widths don't shift row
     to row based on each row's own link-text length — otherwise "auto"
     is sized independently per row and the title/body columns drift out
     of alignment with each other. */
  grid-template-columns: 0.9fr 1.35fr 310px;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
}
.path-row:last-of-type { border-bottom: 1px solid var(--rule); }
.path-row:hover .path-title { color: var(--waypoint); }
.path-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  transition: color 0.25s;
}
.path-row .body { font-size: 16.5px; }
.path-row .arrow-link { white-space: nowrap; align-self: center; }

/* ---------- Practical info ---------- */
.practical-photo { aspect-ratio: 21 / 9; overflow: hidden; }
.practical-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; filter: saturate(0.8); }
.practical-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 64px; }
.practical-grid .h2 { max-width: 12ch; }
.practical-grid .arrow-link { margin-top: 36px; }
.practical-grid .body + .body { margin-top: 22px; }

/* ---------- Closing CTA ---------- */
.closing { padding: 120px 0; }
.closing-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.closing-grid .h2 { font-size: clamp(40px, 5.4vw, 76px); }
.closing-grid .body { margin-top: 26px; max-width: 44ch; }
.closing-grid .btn { padding: 20px 34px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(246, 241, 231, 0.72); padding: 80px 0 46px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.6fr 0.6fr 0.8fr; gap: 60px; }
.footer-about p { margin-top: 22px; font-size: 14.5px; line-height: 1.7; max-width: 30ch; }
.footer-col { display: grid; gap: 12px; font-size: 14.5px; align-content: start; }
.footer-col .mono { color: var(--ochre-on-dark); }
.site-footer a:hover { color: var(--ochre-on-dark); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .mono { color: rgba(246, 241, 231, 0.5); }
.footer-bottom-right { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-bottom .mono a { color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.footer-bottom .mono a:hover, .footer-bottom .mono a:focus-visible { color: var(--paper); }

/* ---------- Notice pages (Privacy Policy, Good Faith Estimate) ---------- */
.notice { padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 128px); }
.notice-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.notice-head { position: sticky; top: 124px; }
.notice-head .kicker { margin-bottom: 26px; }
.notice-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(38px, 4.6vw, 62px);
}
.notice-date { margin-top: 28px; color: rgba(30, 36, 32, 0.6); }
.prose p, .prose li {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(30, 36, 32, 0.82);
}
.prose p { margin: 0 0 1.15em; max-width: 64ch; }
.prose p.lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.2em;
}
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--waypoint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.prose a:hover, .prose a:focus-visible { color: var(--waypoint); }
.prose .links-para { border-top: 1px solid var(--rule); padding-top: 1.15em; margin-top: 1.6em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 2.2em 0 0.7em;
}
.prose h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-on-light);
  margin: 1.8em 0 0.8em;
}
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; list-style: disc; max-width: 64ch; }
.prose li { margin: 0.3em 0; padding-left: 0.2em; }
.prose li::marker { color: var(--ochre); }
.prose .important { border-left: 2px solid var(--waypoint); padding-left: 18px; }
.footer-bottom a[aria-current="page"] { color: var(--paper); }

/* Contact page */
.contact-lede { margin-top: 28px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 36px; }
.contact-body { display: grid; gap: 40px; }
.contact-body .prose h2:first-child { margin-top: 0; }
.contact-card { padding: 40px; }
.contact-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.contact-details dt { margin-bottom: 10px; }
.contact-details dd { margin: 0; font-size: 18px; line-height: 1.55; color: #f6f1e7; }
.contact-details address { font-style: normal; }
.contact-details dd a:not(.arrow-link) { text-decoration: underline; text-decoration-color: var(--ochre-on-dark); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-details dd a:not(.arrow-link):hover { color: var(--ochre-on-dark); }
.contact-details .arrow-link { margin-top: 14px; font-size: 15px; }
.contact-note { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: 15.5px; line-height: 1.65; color: rgba(239, 233, 221, 0.78); }
.crisis-note { font-size: 14.5px; line-height: 1.65; color: rgba(30, 36, 32, 0.7); max-width: 64ch; }
.crisis-note a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a[aria-current="page"], .footer-col a[aria-current="page"] { color: var(--paper); }

/* =================================================================
   RESPONSIVE — designed per breakpoint, not a mechanical stack
   ================================================================= */

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .notice-grid { grid-template-columns: 1fr; gap: 32px; }
  .notice-head { position: static; }
  .wrap { padding: 0 36px; }
  .sec { padding: 96px 0; }
  .positioning { padding: 96px 0; }
  .closing { padding: 96px 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero-photo-group { margin-left: 0; max-width: 260px; order: -1; }
  .hero-photo-secondary { bottom: -24px; box-shadow: 0 0 0 7px var(--paper); }
  .hero-photo-mark { width: 18px; }
  .cap.hero-photo-cap { margin-top: 36px; } /* clears the reduced -24px overlap + 12px gap */
  .hero-copy-row { flex-direction: column; align-items: flex-start; gap: 28px; }

  .recognition-grid { grid-template-columns: 1fr; gap: 32px; }
  .recognition-grid .h2 { max-width: none; }

  .positioning-grid { grid-template-columns: 1fr; gap: 48px; }
  .positioning-grid .h2 { max-width: none; }
  .bearing-diagram { max-width: 420px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Stacked layout has no sibling column to stretch-match, and the photo is
     now a portrait headshot rather than a landscape office shot, so it needs
     its own sensible ratio here instead of inheriting the desktop stretch. */
  .about-photo { aspect-ratio: 3 / 4; }
  .about-copy { padding-top: 0; }
  .about-copy .h2, .about-copy .body { max-width: none; }

  .promise { margin-top: 96px; padding: 72px 0; }
  .promise-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .pull { max-width: none; }

  .path-row { grid-template-columns: 1fr; gap: 14px; }
  .path-row .arrow-link { justify-self: start; }

  .practical-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .practical-grid .h2 { max-width: none; }

  .closing-grid { grid-template-columns: 1fr; text-align: left; gap: 32px; }
  .closing-grid .btn { justify-self: start; }

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

/* ---------- Mobile nav ---------- */
@media (max-width: 780px) {
  .nav-inner { height: 76px; }
  .logo-link img { height: 42px; }
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    border-top: 1px solid var(--rule);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 40px;
    font-size: 18px;
  }
  .nav-links > ul > li { border-bottom: 1px solid var(--rule); }
  .nav-links > ul > li > a:not(.btn),
  .nav-links .submenu-toggle { display: flex; padding: 20px 4px; width: 100%; justify-content: space-between; }
  .nav-links .btn { margin: 24px 4px 0; justify-content: center; }

  .submenu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .has-submenu.is-open .submenu { display: block; }
  .has-submenu:hover .submenu { display: none; } /* hover dropdown disabled on touch widths */
  .has-submenu.is-open:hover .submenu { display: block; }
}

/* ---------- Mobile layout ---------- */
@media (max-width: 640px) {
  .contact-card { padding: 28px 22px; }
  .contact-details { grid-template-columns: 1fr; gap: 26px; }
  .wrap { padding: 0 22px; }
  .sec { padding: 72px 0; }
  .positioning { padding: 72px 0; }
  .closing { padding: 72px 0; }

  .hero { padding-top: 0; }
  .hero-grid { margin-top: 32px; padding-bottom: 48px; }
  .hero-photo-group { max-width: 190px; }
  .hero-photo-secondary { bottom: -16px; box-shadow: 0 0 0 5px var(--paper); }
  .hero-photo-mark { display: none; } /* too small a space for the detail to read cleanly here */
  .cap.hero-photo-cap { margin-top: 28px; } /* clears the reduced -16px overlap + 12px gap */
  .eyebrow { font-size: 11.5px; gap: 10px; }
  .bearing { width: 40px; }
  .lede { font-size: 16.5px; }

  h2.h2 { font-size: clamp(28px, 8vw, 38px); }
  .body { font-size: 16px; }
  .pull { font-size: clamp(30px, 9vw, 42px); }

  .bearing-row .line { display: none; } /* converging-lines device reads as clutter at narrow widths */
  .bearing-diagram { gap: 10px; }
  .bearing-terminus .line { width: 60px; }

  .path-row { padding: 32px 0; gap: 10px; }
  .path-title { font-size: 22px; }

  .practical-photo { aspect-ratio: 4 / 3; }

  .closing-grid .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}
