/* Prosper Legacy Investments. Hand-written, shipped as authored. No build step. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; }

:root {
  /* Client brand kit */
  --navy: #001526;
  --green: #2A8636;
  /* Derived */
  --green-deep: #1F6E2B;
  --spruce: #EDF2EE;
  --slate: #46566A;
  --white: #FFFFFF;
  --line-on-dark: rgba(255, 255, 255, .34);

  --font-display: "Bodoni Moda", "Bodoni fallback", serif;
  --font-body: "Public Sans", "Public Sans fallback", sans-serif;

  --radius: 3px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --band: clamp(4.5rem, 9vw, 8.5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--navy); color: var(--white); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a, button, summary { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; font-variation-settings: "opsz" 28; font-kerning: normal; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4.2vw, 3.75rem); }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 60;
  background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* Buttons: one treatment, one label per intent */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .75rem 1.75rem;
  background: var(--green); color: var(--white);
  border: 0; border-radius: var(--radius);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  user-select: none; cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--green-deep); } }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  color: var(--white);
}
.site-header.solid { position: relative; background: var(--navy); }
.logo { flex: none; display: block; }
.logo img { width: 175px; height: auto; }
.primary-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.call-mobile, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.75rem; min-height: 2.75rem;
  background: none; border: 1px solid var(--line-on-dark); border-radius: var(--radius);
  color: var(--white); text-decoration: none; cursor: pointer;
}
.call-mobile { padding: 0 .85rem; font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.menu-toggle { position: relative; z-index: 50; width: 2.75rem; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
.menu-toggle span:first-child { transform: translateY(-5px); }
.menu-toggle span:last-child { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 1.25rem;
  padding: 5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--navy); color: var(--white);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a:not(.btn) { font-family: var(--font-display); font-size: 2.5rem; line-height: 1.15; text-decoration: none; }
.mobile-nav .btn { margin-top: 1rem; align-self: flex-start; }
body.nav-open { overflow: hidden; }

/* Hero: the type sits in this photo's own sky */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 860px);
  display: flex; flex-direction: column;
  padding: 8.5rem var(--gutter) 300px;
  background: #082137; color: var(--white);
}
.hero-photo { position: absolute; inset: auto 0 0 0; z-index: -1; width: 100%; height: 560px; object-fit: cover; object-position: 66% 100%; }
.hero h1 { font-size: clamp(2.875rem, 5.6vw, 5.25rem); max-width: 11.5em; line-height: 1; }
.hero-sub { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }
.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hero-proof { font-weight: 600; font-size: 1rem; }

/* Photos: hard-edged frames, no rounding, cropped by the frame */
.photo { overflow: hidden; background: var(--spruce); }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Story: running display text with the one number that is real proof, beside a photo that bleeds off the page */
.story { padding: var(--band) 0; display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
.story-inner { padding-inline: var(--gutter); }
.story h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; margin-bottom: 1.5rem; }
.story-lead { font-variation-settings: "opsz" 28; text-wrap: pretty; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.14; }
.story-lead .years { display: inline-block; font-size: 1.7em; line-height: 1.02; color: var(--green-deep); font-weight: 500; }
.story-rest { margin-top: 2rem; max-width: 40rem; font-size: 1.1875rem; }
.story-rest + p { margin-top: 1.25rem; }
.story-block + .story-block { margin-top: clamp(2rem, 3.5vw, 3rem); }
.story-block h2 { margin-bottom: .75rem; }
.story-block p:not(.story-lead) { max-width: 40rem; font-size: 1.1875rem; }
.text-link { font-weight: 600; }
.story-photo { aspect-ratio: 5 / 4; }

/* Services: two hard-edged colour fields, each under its own photo */
.services-head { padding: 0 var(--gutter) clamp(2rem, 4vw, 3.25rem); max-width: 60rem; }
.service-fields { display: grid; }
.field { display: flex; flex-direction: column; }
.field-photo { aspect-ratio: 3 / 2; }
.field-body { flex: 1; padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.field p { max-width: 28rem; font-size: 1.1875rem; }
.field a { margin-top: auto; padding-top: 1.25rem; min-height: 2.75rem; font-weight: 600; }
.field-green .field-body { background: var(--green); color: var(--white); }
.field-spruce .field-body { background: var(--spruce); color: var(--navy); }

/* Inner page heads: a navy field beside a photo, or a navy field standing on the ridge */
.page-head { display: grid; background: var(--navy); color: var(--white); }
.page-head-text { padding: clamp(3rem, 6vw, 5.5rem) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.page-head h1 { font-size: clamp(2.75rem, 5vw, 4.75rem); line-height: 1.02; max-width: 12em; }
.page-head p { margin-top: 1.25rem; max-width: 34rem; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; }
.page-head-photo { aspect-ratio: 3 / 2; }
.page-head-ridge { display: block; width: 100%; height: 13vw; min-height: 72px; margin-bottom: -1px; }
.page-head .page-head-tag { font-family: var(--font-display); font-variation-settings: "opsz" 28; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.25; max-width: 26em; }
.page-head.is-short .page-head-text { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }

/* Text beside a photo that bleeds off one edge */
.split { padding: var(--band) var(--gutter); display: grid; gap: 2.5rem; align-items: center; }
.split-photo { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 3 / 2; }
.split-text > * + * { margin-top: 1.25rem; }
.split-text p { max-width: 36rem; font-size: 1.1875rem; }
.split-text .btn { margin-top: 2rem; }
.is-spruce { background: var(--spruce); }
.prose-lead { font-variation-settings: "opsz" 28; font-family: var(--font-display); font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.16; text-wrap: pretty; }

/* About: the story beside the one real number */
.about-story { padding: var(--band) var(--gutter); display: grid; gap: 2.5rem; }
.about-story-text > * + * { margin-top: 1.25rem; }
.about-story-text p:not(.prose-lead) { max-width: 36rem; font-size: 1.1875rem; }
.about-years { font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.about-years span { display: block; white-space: nowrap; font-variation-settings: "opsz" 28; font-family: var(--font-display); font-size: clamp(7rem, 15vw, 14rem); line-height: .9; font-weight: 500; color: var(--green-deep); margin-bottom: .5rem; }

/* A wide photo with the text panel standing on its lower edge */
.overlap-photo { aspect-ratio: 3 / 2; }
.overlap-photo img { object-position: 50% 8%; }
.overlap-panel { background: var(--spruce); padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter); }

/* Statement: one sentence set large in a colour field */
.statement { padding: var(--band) var(--gutter); }
.statement h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
.statement-big { margin-top: 1.25rem; max-width: 22em; font-variation-settings: "opsz" 28; font-family: var(--font-display); font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.12; text-wrap: pretty; }
.statement-small { margin-top: 1.5rem; max-width: 36rem; font-size: 1.1875rem; }
.statement-green { background: var(--green); color: var(--white); }
.statement-navy { background: var(--navy); color: var(--white); }

/* Ridge standing on a navy band: closes the Services and Approach pages */
.ridge-close { background: var(--white); }
.ridge-close-line { display: block; width: 100%; height: 16vw; min-height: 96px; margin-bottom: -1px; }
.ridge-close-body { background: var(--navy); color: var(--white); padding: 1.5rem var(--gutter) var(--band); }
.ridge-close-body p { margin-top: 1rem; max-width: 38rem; font-size: 1.1875rem; }
.ridge-close-body .btn { margin-top: 2rem; }
.ridge-close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.ridge-close-actions a:not(.btn) { margin-top: 2rem; font-weight: 600; font-size: 1.125rem; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* Contact */
.contact-grid { padding: var(--band) var(--gutter); display: grid; gap: clamp(3rem, 6vw, 5rem); }
.contact-grid h2 { font-size: clamp(1.875rem, 3vw, 2.75rem); margin-bottom: 1.25rem; }
.form-slot { background: var(--spruce); padding: clamp(1.75rem, 3vw, 2.75rem); }
.form-slot p { font-size: 1.1875rem; max-width: 34rem; }
.form-slot a { font-weight: 600; overflow-wrap: anywhere; }
.contact-grid > * { min-width: 0; }
.contact-block + .contact-block { margin-top: 1.75rem; }
.contact-block h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.3; margin-bottom: .35rem; }
.contact-big { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 600; text-decoration: none; display: inline-block; padding-block: .2rem; }
.contact-block a:not(.contact-big) { display: inline-block; padding-block: .3rem; overflow-wrap: anywhere; }
.map-frame { display: block; width: 100%; height: clamp(320px, 38vw, 520px); border: 0; background: var(--spruce); }

/* Terms and Privacy: a plain reading column */
.legal-doc { padding: clamp(3rem, 6vw, 5rem) var(--gutter) var(--band); }
.legal-doc > * { max-width: 44rem; }
.legal-doc h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.3125rem; line-height: 1.3; margin-top: 2.5rem; margin-bottom: .6rem; }
.legal-doc p + p, .legal-doc ul + p { margin-top: 1rem; }
.legal-doc ul { padding-left: 1.25rem; margin-top: .75rem; }
.legal-doc li + li { margin-top: .35rem; }
.legal-doc p a { display: inline-block; padding-block: .3rem; }

/* Ridge: three age groups on the profile of the client's own logo mountain */
.ridge { background: var(--white); }
.ridge-head { padding: var(--band) var(--gutter) 0; max-width: 60rem; }
.ridge-head p { margin-top: 1rem; font-size: 1.1875rem; color: var(--slate); max-width: 40rem; }
.ridge-line { position: relative; margin-top: 1.5rem; height: 42vw; pointer-events: none; }
.ridge-line svg { position: absolute; inset: 0 0 -1px 0; width: 100%; height: calc(100% + 1px); }
.ridge-stops { display: none; }
.kern-w { margin-right: -.09em; }
.stages { background: var(--navy); color: var(--white); padding: 1.5rem var(--gutter) var(--band); display: grid; gap: 2.5rem; list-style: none; }
.stage-age { font-variation-settings: "opsz" 28; font-family: var(--font-display); font-size: clamp(2.75rem, 4.6vw, 4.25rem); line-height: 1; font-weight: 500; }
.stage h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; margin-top: .75rem; }
.stage p:last-child { margin-top: .5rem; max-width: 22rem; }

/* Beliefs: one large, two small */
.beliefs { padding: var(--band) var(--gutter); }
.beliefs-grid { margin-top: clamp(2rem, 4vw, 3.5rem); display: grid; gap: 2.5rem; }
.belief-lead { font-variation-settings: "opsz" 28; font-family: var(--font-display); font-size: clamp(1.875rem, 3vw, 2.75rem); line-height: 1.16; }
.belief-small { display: grid; gap: 1.75rem; align-content: start; font-size: 1.125rem; }

/* FAQ: centred band, left-aligned rows */
.faq { background: var(--spruce); padding: var(--band) var(--gutter); }
.faq h2 { text-align: center; }
.faq-list { max-width: 46rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.faq details { border-top: 1px solid rgba(0, 21, 38, .24); }
.faq details:last-child { border-bottom: 1px solid rgba(0, 21, 38, .24); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  min-height: 3.5rem; padding: 1.1rem 0;
  font-weight: 600; font-size: 1.1875rem; line-height: 1.35; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; }

/* Close */
.close { padding: var(--band) var(--gutter); text-align: center; }
.close h2 { max-width: 16em; margin-inline: auto; }
.close-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1.5rem; }
.close-phone { font-weight: 600; font-size: 1.125rem; min-height: 2.75rem; display: inline-flex; align-items: center; }

/* Footer as real information */
.site-footer { background: var(--navy); color: var(--white); padding: clamp(3.5rem, 6vw, 5rem) var(--gutter) 2rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-badge { width: 120px; height: auto; }
.footer-head { font-weight: 600; margin-bottom: .5rem; }
.footer-grid a { display: inline-block; padding-block: .3rem; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .15rem 1.25rem; }
.footer-nav { display: grid; gap: .1rem; }
.disclosure { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-dark); font-size: .9375rem; max-width: 62rem; }
.legal-line { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-size: .9375rem; }
.legal-line a { display: inline-block; padding-block: .3rem; }

@media (min-width: 768px) {
  .logo img { width: 240px; }
  .primary-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); font-weight: 500; }
  .primary-nav a:not(.btn) { text-decoration: none; padding-block: .5rem; }
  .primary-nav .btn { min-height: 2.875rem; padding: .5rem 1.25rem; font-size: 1rem; }
  .nav-phone { font-weight: 600; white-space: nowrap; }
  .header-actions, .mobile-nav { display: none; }
  .mobile-nav[hidden] { display: none; }

  .hero { padding-top: clamp(10rem, 19vh, 11.5rem); padding-bottom: 3rem; }
  .hero-photo { inset: 0; height: 100%; object-position: center 44%; }

  .primary-nav a:not(.btn) {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat; background-position: 0 calc(100% - .3rem); background-size: 0 1px;
    transition: background-size 180ms var(--ease-out);
  }
  .primary-nav a[aria-current="page"] { background-size: 100% 1px; }

  .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
  .story-inner { padding-right: 0; align-self: center; }
  .story-photo { aspect-ratio: auto; min-height: 34rem; }

  .service-fields { grid-template-columns: 1fr 1fr; }

  .page-head.has-photo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 34rem; }
  .page-head.has-photo .page-head-photo { aspect-ratio: auto; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .split.is-photo-left { padding-left: 0; }
  .split.is-photo-right { padding-right: 0; }
  .split-photo { margin-inline: 0; aspect-ratio: 5 / 4; }
  .is-photo-right .split-photo { order: 2; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .about-story { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
  .overlap { padding-bottom: var(--band); }
  .overlap-photo { aspect-ratio: 21 / 9; }
  .overlap-panel { position: relative; width: min(46rem, 58%); margin: -9vw var(--gutter) 0 auto; }

  /* Columns start exactly where the stops sit on the ridge */
  .ridge-line { height: 26vw; margin-top: 0; }
  .ridge-stops { display: block; }
  .ridge-stop { position: absolute; bottom: 0; width: 1px; background: var(--line-on-dark); }
  .ridge-stop::before {
    content: ""; position: absolute; top: -6px; left: -6px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--green); border: 2px solid var(--white);
  }
  .stages {
    padding: 0 3vw var(--band) 14vw;
    grid-template-columns: repeat(3, 1fr); gap: 0;
  }
  .stage { padding: 0 2vw 0 1.5vw; border-left: 1px solid var(--line-on-dark); }

  .beliefs-grid { grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); }

  .footer-grid { grid-template-columns: 1fr 1.2fr 1.1fr .8fr; gap: 2rem clamp(2rem, 4vw, 4rem); }
}

/* Phones: standalone links get a full 44px target */
@media (max-width: 767px) {
  .footer-grid a, .legal-line a, .text-link, .contact-block a, .legal-doc p a, .ridge-close-actions a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: 0;
  }
  .contact-big { min-height: 2.75rem; }
  .ridge-close-actions a:not(.btn) { margin-top: 0; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .nav-phone { display: none; }
}

/* Motion. The hero never animates on load, so the first paint stays fast. Reveals play once, as an
   element comes into view; html.js is set in the head, so with no JS everything is simply visible. */
@media (hover: hover) and (pointer: fine) {
  .primary-nav a:not(.btn):hover { background-size: 100% 1px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Page to page: a short cross-fade */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: 120ms; }
  ::view-transition-new(root) { animation-duration: 180ms; }

  /* Mobile menu */
  .mobile-nav:not([hidden]) { animation: menu-in 240ms var(--ease-out); }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-.5rem); } }

  /* FAQ opens instead of jumping */
  html { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 220ms var(--ease-out), content-visibility 220ms allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }

  /* Hero: a slow push-in tied to scrolling away, never on load */
  @supports (animation-timeline: scroll()) {
    .hero { overflow: clip; }
    .hero-photo { transform-origin: 50% 100%; animation: hero-push linear both; animation-timeline: scroll(root); animation-range: 0 860px; }
    @keyframes hero-push { to { transform: scale(1.14); } }
  }

  /* Photos: the frame wipes open from the edge the photo bleeds off, and the picture settles */
  html.js .reveal { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-out); }
  html.js .story-photo.reveal, html.js .is-photo-right .reveal { clip-path: inset(0 0 0 100%); }
  html.js .is-photo-left .reveal { clip-path: inset(0 100% 0 0); }
  html.js .reveal img { transform: scale(1.16); transition: transform 1500ms var(--ease-out); }
  html.js .reveal.in { clip-path: inset(0 0 0 0); }
  html.js .reveal.in img { transform: none; }

  /* Large statements and the About number come up once */
  html.js .rise { opacity: 0; transform: translateY(1.75rem); transition: opacity 800ms ease, transform 900ms var(--ease-out); }
  html.js .rise.in { opacity: 1; transform: none; }

  /* The one number on Home takes its colour as it arrives */
  html.js .years { color: var(--navy); transition: color 900ms ease 250ms; }
  html.js .years.in { color: var(--green-deep); }

  /* Ridge: the land comes up, the three stops rise onto it left to right, then their text follows */
  html.js .ridge-line, html.js .ridge-close { overflow: clip; }
  html.js .ridge-line svg, html.js .ridge-close-line { transform: translateY(100%); transition: transform 1300ms var(--ease-out); }
  html.js .ridge-line.in svg, html.js .ridge-close-line.in { transform: none; }
  html.js .ridge-stop { clip-path: inset(100% -12px 0 -12px); transition: clip-path 650ms var(--ease-out); }
  html.js .ridge-line.in .ridge-stop { clip-path: inset(-12px -12px 0 -12px); }
  html.js .ridge-stop:nth-child(1) { transition-delay: 550ms; }
  html.js .ridge-stop:nth-child(2) { transition-delay: 750ms; }
  html.js .ridge-stop:nth-child(3) { transition-delay: 950ms; }
  html.js .stage { opacity: 0; transform: translateY(1.25rem); transition: opacity 700ms ease, transform 800ms var(--ease-out); }
  html.js .ridge-line.in ~ .stages .stage { opacity: 1; transform: none; }
  html.js .stage:nth-child(1) { transition-delay: 700ms; }
  html.js .stage:nth-child(2) { transition-delay: 900ms; }
  html.js .stage:nth-child(3) { transition-delay: 1100ms; }
}

/* Reduced motion: photos and statements fade, nothing travels */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .rise { opacity: 0; transition: opacity 400ms ease; }
  html.js .reveal.in, html.js .rise.in { opacity: 1; }
}
@media print {
  html.js .reveal, html.js .rise, html.js .stage, html.js .ridge-stop, html.js .ridge-line svg, html.js .ridge-close-line, html.js .reveal img { opacity: 1 !important; clip-path: none !important; transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .menu-toggle span, .faq summary svg, .primary-nav a:not(.btn) { transition: none; }
  .btn:active { transform: none; }
}
