/* ==========================================================================
   Mortgages with Chris Wiz — design system
   Colors come from Chris's logo: cyan #02A9D3 + gray #848484, set on cool
   Great Lakes navy and fog. One accent, hairline rules instead of cards, big
   Urbanist sentences you can interact with (thin weight = emphasis, like the logo). See docs/DESIGN.md.
   ========================================================================== */

:root {
  /* Logo colors */
  --brand: #02a9d3;        /* logo cyan: accents and buttons on dark (6.8:1 on --night) */
  --brand-soft: #52c7e6;   /* hover */
  --brand-deep: #00708d;   /* cyan for text/buttons on light (5.2:1 on --fog) */
  --logo-gray: #848484;    /* logo gray: fine detail on dark only */

  /* Dark surfaces: cool Great Lakes navy */
  --night: #06141d;
  --ink: #0a1d29;
  --navy: #0e2735;
  --light: #eaf2f5;        /* text on dark */
  --mist: #9fb4c0;         /* muted text on dark (8.7:1 on --night) */
  --rule-dark: rgba(234, 242, 245, 0.14);

  /* Light surfaces: fog */
  --fog: #f1f5f6;
  --paper: #fafcfc;
  --ink-text: #0b1f2a;     /* text on light (15:1) */
  --slate: #4f5f69;        /* muted text on light (6:1) */
  --rule-light: rgba(11, 31, 42, 0.13);

  /* Calculator chart (validated for colorblind separation on --navy) */
  --c-principal: #1b9fc4;
  --c-interest: #cc7f3f;

  /* Type */
  --display: "Urbanist", "Segoe UI", system-ui, -apple-system, sans-serif; /* geometric, like the logo lettering */
  --sans: "Inter Tight", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.6rem, min(1.1rem + 5.4vw, 11.5svh), 7.2rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);

  --gutter: clamp(1.1rem, 0.6rem + 2.4vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: clamp(72px, 9vh, 100px); } /* anchors clear the fixed top bar */
body {
  margin: 0;
  background: var(--ink);
  color: var(--light);
  font: 400 1.0625rem / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--brand); color: var(--night); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.section--light :focus-visible, .section--paper :focus-visible { outline-color: var(--brand-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--brand); color: var(--night); border-radius: 4px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 1rem; font: 600 .85rem/1.4 var(--sans); letter-spacing: .01em; color: var(--brand); }
.section--light .eyebrow, .section--paper .eyebrow { color: var(--brand-deep); }

.h1, .h2, .hero__title, .stage__title { font-family: var(--display); font-weight: 600; margin: 0; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.03em; }
.h2 { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -0.03em; }
/* emphasis in display type is a thin weight (like the logo wordmark), never italics */
.h1 em, .h2 em, .hero__title em, .stage__title em, .equation em, .process__line em, .pull em { font-style: normal; font-weight: 300; }
.lead { max-width: 40ch; margin: 1.4rem 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--mist); }

/* One word per headline switches on like a light, in logo cyan */
.glow { color: var(--brand); }
.section--light .glow, .section--paper .glow { color: var(--brand-deep); }
[data-reveal].is-in .glow { animation: switch-on 1.8s var(--ease) .35s both; }
@keyframes switch-on {
  0%   { opacity: .25; text-shadow: none; }
  8%   { opacity: .9; }
  12%  { opacity: .35; }
  20%  { opacity: 1; text-shadow: 0 0 22px rgba(2, 169, 211, .55); }
  26%  { opacity: .6; }
  40%, 100% { opacity: 1; text-shadow: 0 0 26px rgba(2, 169, 211, .3); }
}
.section--light .glow, .section--paper .glow { text-shadow: none !important; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8rem 1.4rem;
  border: 1px solid transparent; border-radius: 4px;
  background: var(--bg); color: var(--fg);
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--brand { --bg: var(--brand); --fg: var(--night); }
.btn--brand:hover { --bg: var(--brand-soft); }
.btn--line { --fg: var(--light); border-color: rgba(234, 242, 245, .4); }
.btn--line:hover { border-color: var(--light); background: rgba(234, 242, 245, .08); }
.btn--ink { --bg: var(--ink-text); --fg: #fff; }
.btn--ink:hover { --bg: var(--brand-deep); }
.btn--sm { min-height: 40px; padding: .6rem 1rem; font-size: .875rem; }
.btn--lg { min-height: 54px; padding: 1rem 1.7rem; font-size: 1rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.2rem; padding: 0;
  border: 0; background: none; font-weight: 600; text-decoration: none; cursor: pointer; color: inherit;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.section--light .link-arrow, .section--paper .link-arrow { color: var(--brand-deep); }

/* ---------- Nav: full-width bar with the real logo ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(6, 20, 29, .94); border-bottom-color: var(--rule-dark); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 84px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 54px; width: auto; }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a { position: relative; padding: .4rem 0; font-size: .92rem; font-weight: 500; text-decoration: none; color: rgba(234, 242, 245, .82); transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--light); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: none; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__phone { font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--light); }
.nav__phone:hover { color: var(--brand); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--rule-dark); border-radius: 4px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--light); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle i:first-of-type { top: 17px; } .nav__toggle i:last-of-type { top: 25px; }
.nav__toggle[aria-expanded="true"] i:first-of-type { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* The panel must never be see-through: it covers the hero, and its text is unreadable against one.
   It is a sibling of .nav (see index.html) and sits just under the bar's z-index, so the logo and
   the close button stay on top. Nothing animates its opacity — a stalled animation would otherwise
   leave the whole menu invisible. */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; padding: 110px var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background-color: var(--night); overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { padding: .3rem 0; border-bottom: 1px solid var(--rule-dark); font: 500 clamp(1.9rem, 8vw, 2.6rem)/1.25 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.menu__foot { display: grid; gap: .75rem; }
/* the entrance moves the contents only, so a frozen animation still leaves a readable menu */
.menu > * { animation: menu-in .42s var(--ease); }
.menu__foot { animation-delay: .06s; }
@keyframes menu-in { from { transform: translateY(10px); } }

/* ---------- Media layers (Higgsfield slots): gradient → poster → video ---------- */
.media { position: absolute; inset: 0; overflow: hidden; background: var(--fallback, var(--navy)); }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); }
.media > .is-ready { opacity: 1; }
.media--drift > img, .media--drift > video { animation: drift 26s var(--ease-io) infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.09) translate3d(-1.2%, -1%, 0); } }

.media--dusk { --fallback: radial-gradient(40% 30% at 62% 64%, rgba(242, 180, 90, .45), transparent 70%), linear-gradient(180deg, #081624 0%, #132a44 45%, #354763 75%, #6c5a5a 100%); }
.media--dawn { --fallback: radial-gradient(50% 40% at 70% 70%, rgba(243, 217, 192, .7), transparent 70%), linear-gradient(180deg, #25324a 0%, #5d6e8c 40%, #b7a3a8 72%, #eecfb8 100%); }
.media--golden { --fallback: radial-gradient(50% 50% at 80% 30%, rgba(247, 205, 138, .75), transparent 70%), linear-gradient(170deg, #2c3a2e 0%, #6e6a3e 45%, #c08c4b 75%, #f0c27a 100%); }
.media--keys { --fallback: radial-gradient(40% 40% at 30% 55%, rgba(242, 166, 90, .85), transparent 70%), linear-gradient(160deg, #1d1410 0%, #5a3220 45%, #a4582d 75%, #f2a65a 100%); }
.media--evening { --fallback: radial-gradient(45% 35% at 60% 60%, rgba(242, 180, 90, .4), transparent 70%), linear-gradient(180deg, #06101a 0%, #13233a 55%, #2f2c2c 100%); }
.media--brass { --fallback: radial-gradient(45% 55% at 78% 40%, rgba(196, 129, 42, .35), transparent 70%), var(--navy); }
.media--threshold { --fallback: radial-gradient(55% 60% at 70% 45%, rgba(242, 180, 90, .7), transparent 70%), linear-gradient(180deg, #111a26 0%, #3d2f26 55%, #a86a33 100%); }

.scrim { position: absolute; inset: 0; pointer-events: none; }
/* daylight-friendly: shade only where the text sits (left and bottom) so the sunlit house stays vivid */
.scrim--hero {
  background:
    linear-gradient(180deg, rgba(6, 20, 29, .45) 0%, rgba(6, 20, 29, 0) 18%),
    linear-gradient(90deg, rgba(6, 20, 29, .66) 0%, rgba(6, 20, 29, .34) 38%, rgba(6, 20, 29, 0) 64%),
    linear-gradient(0deg, rgba(6, 20, 29, .86) 0%, rgba(6, 20, 29, 0) 38%);
}
.hero__title, .hero__lead { text-shadow: 0 2px 28px rgba(6, 20, 29, .45); }
.scrim--journey { background: linear-gradient(90deg, rgba(6, 20, 29, .84) 0%, rgba(6, 20, 29, .4) 55%, rgba(6, 20, 29, .15) 100%), linear-gradient(0deg, rgba(6, 20, 29, .6), transparent 45%); }
.scrim--calc { background: linear-gradient(180deg, rgba(10, 29, 41, .92) 0%, rgba(10, 29, 41, .78) 45%, rgba(10, 29, 41, .94) 100%); }
.scrim--contact { background: linear-gradient(90deg, rgba(6, 20, 29, .92) 0%, rgba(6, 20, 29, .6) 55%, rgba(6, 20, 29, .4) 100%), linear-gradient(0deg, var(--night) 0%, transparent 30%); }
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero (scroll-driven) ----------
   .is-scrub is added by JS: the section grows tall and the pinned frame scrubs the
   crane-down while the loan milestones fill. Without JS or with reduced motion it is a
   normal one-screen hero showing the finished shot. */
.hero { position: relative; }
.hero.is-scrub { height: 340svh; } /* room for the whole afternoon: crane-down, sunset, porch light */
.hero__sticky { position: sticky; top: 0; height: 100svh; min-height: 540px; display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden; }
.hero__sticky > .media, .hero__sticky > .scrim, .hero__sticky > .grain { z-index: -1; }
.hero__still, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still { object-fit: cover; }
.hero.is-scrub .hero__still { visibility: hidden; }
.hero__canvas { opacity: 0; transition: opacity .8s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }

.hero__inner { align-self: end; padding-top: 120px; padding-bottom: 1.5rem; }
.hero__title { font-size: var(--fs-display); line-height: 1; letter-spacing: -0.035em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.1em; }
.hero__title .line > span { display: block; transform: translateY(105%); animation: line-up 1.3s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
/* "keys in hand" stays unlit until the scroll reaches the porch, then switches on */
.hero .glow { color: rgba(234, 242, 245, .5); transition: color .8s var(--ease); }
.hero.is-lit .glow { color: var(--brand); animation: switch-on 1.6s var(--ease) both; }
@keyframes line-up { to { transform: translateY(0); } }
.hero__lead { max-width: 44ch; margin: 1.4rem 0 0; font-size: var(--fs-lead); color: rgba(234, 242, 245, .88); opacity: 0; animation: rise 1s var(--ease) .55s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; opacity: 0; animation: rise 1s var(--ease) .7s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__foot { padding-bottom: clamp(1rem, 3.5svh, 2.2rem); opacity: 0; animation: rise 1s var(--ease) .9s forwards; }
.hero__nmls { margin: 1.1rem 0 0; font-size: .75rem; letter-spacing: .02em; color: var(--mist); }

/* Loan milestones: the track fills with scroll; each stop lights in logo cyan */
.milestones__track { height: 2px; background: rgba(234, 242, 245, .16); }
.milestones__track span { display: block; height: 100%; background: var(--brand); box-shadow: 0 0 12px rgba(2, 169, 211, .6); transform-origin: left; transform: scaleX(var(--bar, 0)); }
.milestones ol { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.milestones li { position: relative; padding: 1.15rem 1.2rem 0 0; }
.milestones li::before {
  content: ""; position: absolute; left: 0; top: -7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--night); border: 2px solid rgba(234, 242, 245, .4);
  transition: background-color .4s, border-color .4s, box-shadow .6s var(--ease), transform .4s var(--ease);
}
.milestones li.is-reached::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px rgba(2, 169, 211, .18), 0 0 16px rgba(2, 169, 211, .7); }
.milestones li.is-current::before { transform: scale(1.25); }
.milestones b { display: block; font-size: .95rem; font-weight: 600; color: rgba(234, 242, 245, .5); transition: color .4s; }
.milestones li.is-reached b { color: var(--light); }
.milestones li:last-child.is-reached b { color: var(--brand); }
.milestones li span { display: block; max-width: 26ch; margin-top: .3rem; font-size: .8rem; line-height: 1.45; color: var(--mist); opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.milestones li.is-current span { opacity: 1; transform: none; }
.milestones__caption { display: none; }
@media (max-height: 780px) and (min-width: 641px) {
  .hero__title { font-size: clamp(2.6rem, 10svh, 7.2rem); }
  .hero__inner { padding-top: 92px; padding-bottom: 1rem; }
  .hero__lead { margin-top: 1rem; font-size: 1.02rem; }
  .hero__cta { margin-top: 1.2rem; }
  .hero__cta .btn--lg { min-height: 48px; padding: .8rem 1.35rem; font-size: .95rem; }
  .milestones li { padding-top: .9rem; }
  .milestones li span { display: none; }
  .hero__nmls { margin-top: .7rem; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section--light { background: var(--fog); color: var(--ink-text); }
.section--paper { background: var(--paper); color: var(--ink-text); }
.section--dark { background: var(--ink); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- About: lender + agent = one person on your side ---------- */
.equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.1fr); align-items: start; gap: 1rem clamp(1rem, 2.5vw, 2.4rem); margin: 1.4rem 0 clamp(3rem, 6vw, 5.5rem); font-weight: 400; }
.equation__term { display: grid; gap: 1rem; }
.equation__word { font: 600 clamp(1.6rem, 1rem + 1.9vw, 2.7rem)/1.1 var(--display); letter-spacing: -0.025em; color: var(--ink-text); }
.equation__term--result .equation__word em { color: var(--brand-deep); }
.equation__note { padding-top: .9rem; border-top: 1px solid var(--rule-light); font: 500 .85rem/1.45 var(--sans); color: var(--slate); }
.equation__term--result .equation__note { border-top-color: var(--brand-deep); }
.equation__op { font: 200 clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem)/.9 var(--display); color: var(--brand); }

.about__cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 2rem clamp(2rem, 4vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--ink-text); }
.about__lead { margin: 0; font: 500 clamp(1.3rem, 1rem + .8vw, 1.7rem)/1.38 var(--display); letter-spacing: -0.01em; color: var(--ink-text); }
.about__text h3 { margin: 0 0 .7rem; font-size: .95rem; font-weight: 700; color: var(--ink-text); }
.about__text p { margin: 0; color: var(--slate); }

/* ---------- Journey (sticky, 4 stages) ---------- */
.journey { position: relative; height: 420vh; background: var(--night); }
.journey__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.journey__media { position: absolute; inset: 0; z-index: -2; }
.journey__media .media { opacity: 0; transition: opacity 1.2s var(--ease); }
.journey__media .media.is-active { opacity: 1; }
.journey__sticky > .scrim, .journey__sticky > .grain { z-index: -1; }
.journey__inner { height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: 1rem 3rem; padding-top: clamp(96px, 15svh, 130px); padding-bottom: clamp(1.5rem, 6svh, 4rem); }
.journey__head { grid-column: 1 / -1; }
.journey__head .h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); }
/* all stages share one grid cell, so the block is as tall as the tallest stage */
.journey__panels { display: grid; align-self: end; }
.stage { grid-area: 1 / 1; align-self: end; max-width: 620px; opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform 1s var(--ease); pointer-events: none; }
.stage.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.stage__time { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mist); }
.stage__time span { padding: .3rem .55rem; border-radius: 3px; background: rgba(2, 169, 211, .18); color: var(--brand); }
.stage__title { font-size: clamp(2rem, min(1.2rem + 3.6vw, 9svh), 4.8rem); line-height: 1.02; letter-spacing: -0.03em; }
.stage__body { max-width: 46ch; margin: 1.3rem 0 1.8rem; font-size: var(--fs-lead); color: rgba(234, 242, 245, .88); }
.journey__rail { align-self: end; display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.journey__rail button { width: 100%; padding: .7rem 1rem; border: 0; border-left: 2px solid rgba(234, 242, 245, .2); background: none; text-align: left; font-size: .95rem; font-weight: 500; color: rgba(234, 242, 245, .55); cursor: pointer; transition: color .3s, border-color .3s, background-color .3s; }
.journey__rail button:hover { color: var(--light); }
.journey__rail button[aria-current="step"] { color: var(--light); border-left-color: var(--brand); background: linear-gradient(90deg, rgba(2, 169, 211, .16), transparent); }
.journey__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(234, 242, 245, .1); }
.journey__progress span { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-height: 720px) {
  .journey__head .h2 { display: none; }
  .journey__head .eyebrow { margin: 0; }
  .stage__body { margin: .8rem 0 1.1rem; }
}

/* ---------- Loans: "I want to…" picker ---------- */
.loans__head { max-width: 900px; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.loans__intro { max-width: 64ch; margin: 1.4rem 0 0; font-size: 1.05rem; line-height: 1.65; color: var(--slate); }

.picker { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink-text); }
.picker__lead { margin: 0 0 .5rem; padding-left: 1.7rem; font: 300 clamp(1.2rem, 1rem + .7vw, 1.55rem)/1.2 var(--display); color: var(--slate); }
.picker__options { position: relative; display: grid; justify-items: start; padding-left: 1.7rem; }
.picker__options button {
  padding: .1em 0; border: 0; background: none; text-align: left; cursor: pointer;
  font: 300 clamp(1.6rem, 1rem + 2vw, 2.8rem)/1.22 var(--display); letter-spacing: -0.025em;
  color: rgba(11, 31, 42, .3); transition: color .35s var(--ease);
}
.picker__options button:hover { color: rgba(11, 31, 42, .62); }
.picker__options button[aria-selected="true"] { color: var(--ink-text); font-weight: 600; }
.picker__light {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(2, 169, 211, .2), 0 0 14px rgba(2, 169, 211, .8);
  transform: translateY(var(--y, 0px)); transition: transform .55s var(--ease);
}
.picker__answers { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 1px solid var(--rule-light); }
.picker__panel { animation: panel-in .6s var(--ease) both; }
.picker__panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.picker__kind { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-deep); }
.picker__title { margin: .5rem 0 0; font: 600 clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem)/1.12 var(--display); letter-spacing: -0.025em; }
.picker__say { max-width: 42ch; margin: 1rem 0 0; font-size: 1.15rem; line-height: 1.55; color: #22333d; }
.picker__list-title { margin: 1.8rem 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--slate); }
.picker__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.picker__list li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--rule-light); font-weight: 500; }
.picker__list li::before { content: ""; position: absolute; left: 0; top: 1.4rem; width: .8rem; height: 2px; background: var(--brand); }
.picker__cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-top: 1.8rem; }
.picker__call { font-weight: 600; color: var(--ink-text); text-decoration-color: rgba(11, 31, 42, .3); text-underline-offset: 4px; }
.picker__call:hover { color: var(--brand-deep); text-decoration-color: currentColor; }

.pull { margin: clamp(4rem, 3rem + 4vw, 7rem) 0; padding: 0; max-width: 980px; }
.pull p { margin: 0; font: 500 clamp(1.4rem, 1rem + 1.6vw, 2.4rem)/1.28 var(--display); letter-spacing: -0.02em; color: var(--ink-text); }
.pull em { color: var(--brand-deep); }
.pull footer { margin-top: 1.4rem; font-size: .85rem; font-weight: 600; color: var(--slate); }

/* How it works: one sentence; the connecting arrows draw in on reveal */
.process { padding-top: 2rem; border-top: 1px solid var(--ink-text); }
.process__label { margin: 0 0 1.4rem; font-size: .85rem; font-weight: 600; color: var(--brand-deep); }
.process__line { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.process__line li { display: grid; grid-template-columns: auto minmax(2.5rem, 1fr); column-gap: 1.2rem; flex: 1 1 0; min-width: 0; }
.process__line li:last-child { grid-template-columns: 1fr; flex-grow: 1.25; }
.process__line b { grid-column: 1; font: 600 clamp(1.5rem, 1rem + 1.5vw, 2.4rem)/1.12 var(--display); letter-spacing: -0.03em; color: var(--ink-text); }
.process__line b em { color: var(--brand-deep); }
.process__line span { grid-column: 1; max-width: 26ch; margin-top: .6rem; font-size: .95rem; color: var(--slate); }
.process__line li:not(:last-child)::after {
  content: ""; grid-column: 2; grid-row: 1; align-self: center; height: 12px; margin-right: 1.2rem;
  background:
    linear-gradient(var(--brand-deep), var(--brand-deep)) left center / calc(100% - 2px) 1.5px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M1 1l6 5-6 5' fill='none' stroke='%2300708D' stroke-width='1.5'/%3E%3C/svg%3E") right center / 9px 12px no-repeat;
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
/* specific enough to beat the phone layout's scaleY(0) start state */
.process.is-in .process__line li::after { transform: none; }
.process.is-in .process__line li:nth-child(1)::after { transition-delay: .35s; }
.process.is-in .process__line li:nth-child(2)::after { transition-delay: .8s; }

/* ---------- Calculator: your numbers → your estimate ---------- */
.calc-section { position: relative; isolation: isolate; padding-block: var(--section); overflow: clip; } /* clip, not hidden: keeps the phone strip sticky */
.calc-section > .media, .calc-section > .scrim { z-index: -1; }
.calc__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.calc__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.calc__side { float: none; margin: 0 0 1.2rem; padding: 0; font-size: .85rem; font-weight: 600; color: var(--mist); }

/* left: one labelled row per value; the slider sits directly under its box */
.calc__inputs { min-width: 0; margin: 0; padding: 0; border: 0; }
.calc__live { display: none; }
.calc__row { padding: 1.1rem 0 .8rem; border-top: 1px solid var(--rule-dark); }
.calc__row--term { padding-bottom: 1.3rem; border-bottom: 1px solid var(--rule-dark); }
.calc__row-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .55rem; }
.calc__row-top label, .calc__label { font-size: 1rem; font-weight: 500; color: var(--light); }
.calc__pct { margin-left: .45rem; font-size: .85rem; font-weight: 600; color: var(--brand); }
.calc__box {
  display: inline-flex; align-items: baseline; gap: .15rem; padding: .35rem .75rem;
  border: 1px solid rgba(234, 242, 245, .28); border-radius: 4px; background: rgba(6, 20, 29, .55);
  font: 600 1.35rem/1.2 var(--display); color: var(--light); cursor: text; transition: border-color .2s, box-shadow .2s;
}
.calc__box:hover { border-color: rgba(234, 242, 245, .5); }
.calc__box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2, 169, 211, .22); }
.calc__box span { font-weight: 400; color: var(--mist); }
.calc__box input { width: 7.4ch; padding: 0; border: 0; outline: none; background: transparent; color: inherit; font: inherit; text-align: right; font-variant-numeric: tabular-nums; }
.calc__box #c-rate { width: 4.6ch; }
.calc__terms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.calc__terms label { cursor: pointer; }
.calc__terms input { position: absolute; opacity: 0; pointer-events: none; }
.calc__terms span { display: block; padding: .6rem 0; border: 1px solid rgba(234, 242, 245, .24); border-radius: 4px; text-align: center; font-size: .92rem; font-weight: 600; color: var(--mist); transition: background-color .2s, border-color .2s, color .2s; }
.calc__terms label:hover span { border-color: rgba(234, 242, 245, .5); color: var(--light); }
.calc__terms input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--night); }
.calc__terms input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--brand) var(--fill), rgba(234, 242, 245, .18) var(--fill)); }
input[type="range"]::-moz-range-track { height: 3px; background: rgba(234, 242, 245, .18); }
input[type="range"]::-moz-range-progress { height: 3px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: var(--light); border: 3px solid var(--brand); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--light); border: 3px solid var(--brand); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }


/* right: the answer first, then what it means */
.calc__result { min-width: 0; padding-left: clamp(0rem, 4vw, 4rem); border-left: 1px solid var(--rule-dark); }
.calc__big { margin: 0; font: 600 clamp(3rem, 2rem + 3.4vw, 5.2rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--light); }
.calc__big small { margin-left: .35rem; font-size: .3em; font-weight: 400; letter-spacing: 0; color: var(--mist); }
.calc__big.is-changed { animation: big-flash 1.1s var(--ease); }
@keyframes big-flash { 0% { color: var(--brand); } 100% { color: var(--light); } }
.calc__delta { min-height: 1.5em; margin: .55rem 0 0; font-size: .95rem; font-weight: 600; color: var(--mist); }
.calc__delta.is-up { color: #eba36a; }     /* paying more */
.calc__delta.is-down { color: var(--brand); } /* paying less */
.calc__explain { max-width: 42ch; margin: .8rem 0 2rem; font-size: 1.05rem; line-height: 1.65; color: var(--mist); }
.calc__explain b { font-weight: 600; color: var(--light); font-variant-numeric: tabular-nums; }

.split { margin-bottom: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-dark); }
.split__title { margin: 0 0 .9rem; font-size: .95rem; color: var(--mist); }
.split__title b, .split__payoff b { font-weight: 600; color: var(--light); }
.split__bar { position: relative; display: flex; gap: 2px; height: 12px; }
.split__seg { height: 100%; min-width: 4px; transition: flex-grow .6s var(--ease); }
.split__seg--p { flex: 1 1 0; border-radius: 4px 0 0 4px; background: var(--c-principal); }
.split__seg--i { flex: 1 1 0; border-radius: 0 4px 4px 0; background: var(--c-interest); }
.split__seg:hover, .split__seg:focus-visible { filter: brightness(1.15); outline: none; }
.split__tip { position: absolute; bottom: calc(100% + 10px); transform: translateX(-50%); padding: .45rem .65rem; border-radius: 4px; background: var(--light); color: var(--ink-text); font-size: .78rem; font-weight: 600; white-space: nowrap; pointer-events: none; }
.split__legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--mist); }
.split__legend li { display: flex; align-items: center; gap: .45rem; }
.split__legend b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--light); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sw--p { background: var(--c-principal); } .sw--i { background: var(--c-interest); }
.split__payoff { margin: .9rem 0 0; font-size: .9rem; color: var(--mist); }
.calc__note { max-width: 60ch; margin: 1rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--mist); }

/* ---------- Real estate: two sides, no boxes ---------- */
.re__head { max-width: 920px; margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.re__intro { max-width: 64ch; margin: 1.4rem 0 0; font-size: 1.05rem; line-height: 1.65; color: var(--slate); }
.re__split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 5rem); }
.re__photo.media { position: relative; inset: auto; aspect-ratio: 3 / 2; margin-bottom: 1.8rem; border-radius: 3px; }
.re__title { margin: 0 0 1rem; font: 600 clamp(1.6rem, 1.2rem + 1.1vw, 2.2rem)/1.12 var(--display); letter-spacing: -0.025em; }
.re__list, .re__route { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-light); }
.re__list li, .re__route li { position: relative; padding: .85rem 0 .85rem 2.2rem; border-bottom: 1px solid var(--rule-light); font-weight: 500; }
.re__list li::before { content: ""; position: absolute; left: .1rem; top: 1.45rem; width: .8rem; height: 2px; background: var(--brand); }
.re__route { counter-reset: route; }
.re__route li { counter-increment: route; }
.re__route li::before { content: counter(route); position: absolute; left: 0; top: 50%; transform: translateY(-46%); font: 300 1.4rem/1 var(--display); color: var(--brand-deep); }
.re__call { margin: clamp(2.5rem, 4vw, 3.5rem) 0 0; font: 500 clamp(1.25rem, 1rem + .9vw, 1.7rem)/1.4 var(--display); letter-spacing: -0.015em; }
.re__call a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.re__call a:hover { color: var(--ink-text); }

/* ---------- Listing: a property sheet ---------- */
.sheet { border-top: 2px solid var(--ink-text); padding-top: 1.6rem; }
.sheet__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule-light); }
.sheet__address { margin: 0; font: 600 clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem)/1.06 var(--display); letter-spacing: -0.03em; }
.sheet__address span { display: block; margin-top: .7rem; font: 500 1rem/1.4 var(--sans); letter-spacing: 0; color: var(--slate); }
.sheet__price { margin: 0; text-align: right; font: 300 clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem)/1 var(--display); letter-spacing: -0.02em; }
.sheet__price span { display: block; margin-top: .5rem; font: 600 .92rem/1.4 var(--sans); color: var(--brand-deep); }
.sheet__specs { display: flex; flex-wrap: wrap; margin: 0; padding: 1.1rem 0; list-style: none; border-bottom: 1px solid var(--rule-light); }
.sheet__specs li { padding: .15rem 1.3rem; border-left: 1px solid var(--rule-light); color: var(--slate); }
.sheet__specs li:first-child { padding-left: 0; border-left: 0; }
.sheet__specs b { font-weight: 700; color: var(--ink-text); }
.sheet__body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem clamp(2rem, 4vw, 3.5rem); padding: 2rem 0; }
.sheet__desc { margin: 0; font-size: 1.08rem; line-height: 1.7; color: #26363f; }
.sheet__terms { padding: 1.4rem 1.6rem; background: var(--fog); border-left: 3px solid var(--brand); }
.sheet__terms p { margin: 0; color: #26363f; }
.sheet__terms .sheet__terms-title { margin-bottom: .5rem; font-weight: 700; color: var(--brand-deep); }
.sheet__btns { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.3rem; }
.sheet__btns .link-arrow { margin: 0; }
.sheet__meta { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--rule-light); font-size: .85rem; color: var(--slate); }

/* ---------- Gallery ---------- */
.gallery .lead { color: var(--mist); }
.section__head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section__head--split .lead { margin: 0; }
.masonry { columns: 4 240px; column-gap: 12px; }
.masonry button { display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: var(--navy); cursor: zoom-in; break-inside: avoid; }
.masonry img { width: 100%; height: auto; filter: saturate(.9); transition: transform 1s var(--ease), filter .6s; }
.masonry button:hover img { transform: scale(1.04); filter: saturate(1.05); }
.lightbox { max-width: min(92vw, 1100px); max-height: 92svh; padding: 0; border: 0; border-radius: 4px; background: var(--night); overflow: hidden; }
.lightbox::backdrop { background: rgba(6, 20, 29, .9); }
.lightbox img { max-height: 92svh; width: auto; margin: auto; }
.lightbox img { transition: opacity .25s var(--ease); }
.lightbox.is-swapping img { opacity: .35; }
.lightbox__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(6, 20, 29, .75); color: var(--light); font-size: 1.6rem; line-height: 1; cursor: pointer; }
/* step through the gallery without closing: arrows, arrow keys or a swipe */
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(6, 20, 29, .75); color: var(--light); cursor: pointer; transition: background-color .2s, color .2s; }
.lightbox__nav:hover { background: var(--brand); color: var(--night); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--light); text-shadow: 0 1px 8px rgba(6, 20, 29, .9); pointer-events: none; }

/* ---------- Contact: a note to Chris ---------- */
.contact { position: relative; isolation: isolate; padding-block: calc(var(--section) + 2rem) var(--section); overflow: hidden; }
.contact > .media, .contact > .scrim, .contact > .grain { z-index: -1; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__lines { max-width: 460px; margin: 2.4rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-dark); }
.contact__lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--rule-dark); }
.contact__lines li > span:first-child { font-size: .85rem; font-weight: 600; color: var(--mist); }
.contact__lines a, .contact__place { font: 500 1.3rem/1.1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.contact__lines a:hover { color: var(--brand); }
.social { display: flex; gap: 1.4rem; margin-top: 1.4rem; }
.social a { font-weight: 600; font-size: .92rem; color: var(--light); text-decoration-color: rgba(234, 242, 245, .35); text-underline-offset: 5px; }
.social a:hover { color: var(--brand); text-decoration-color: currentColor; }

.note { padding: clamp(1.5rem, 1rem + 2vw, 2.6rem); border: 1px solid var(--rule-dark); border-top: 3px solid var(--brand); border-radius: 3px; background: rgba(6, 20, 29, .86); }
.note__to { margin: 0 0 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rule-dark); font-size: .85rem; font-weight: 600; color: var(--mist); }
.note__body { margin: 0; font: 300 clamp(1.25rem, .95rem + 1vw, 1.75rem)/1.75 var(--display); letter-spacing: -0.01em; color: var(--light); }
.note__field { display: inline-block; max-width: 100%; margin: 0 .08em; border-bottom: 1.5px solid var(--brand); transition: background-color .2s, border-color .2s; }
.note__field:focus-within { background: rgba(2, 169, 211, .14); }
.note__field:has([aria-invalid="true"]) { border-bottom-color: #ff8a73; }
.note__field input, .note__field select { width: 6ch; min-width: 4ch; max-width: 100%; padding: 0 .12em; border: 0; outline: none; background: transparent; color: var(--brand); font: inherit; }
.note__field input::placeholder { color: rgba(2, 169, 211, .6); font-weight: 400; }
.note__field select { width: auto; padding-right: .7em; appearance: none; -webkit-appearance: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2302A9D3' stroke-width='1.6'/%3E%3C/svg%3E") right 60% / .38em auto no-repeat; }
.note__field select option { color: var(--ink-text); background: #fff; font-size: 1rem; }
.note__more { display: block; margin: 1.6rem 0 .5rem; font-size: .85rem; font-weight: 600; color: var(--mist); }
.note textarea { width: 100%; min-height: 96px; padding: .8rem 1rem; resize: vertical; border: 1px solid var(--rule-dark); border-radius: 3px; background: rgba(234, 242, 245, .05); color: var(--light); font-size: 1rem; }
.note textarea:focus { outline: none; border-color: var(--brand); }
.note__send { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.4rem; }
.hp { position: absolute; left: -9999px; }
.form-status { flex: 1 1 220px; min-height: 1.4em; margin: 0; font-size: .92rem; color: var(--brand); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom)); background: var(--night); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--rule-dark); }
.footer__logo { height: 64px; width: auto; }
.footer__call { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.footer__call p { margin: 0; font: 500 clamp(1.2rem, 1rem + .7vw, 1.6rem)/1.3 var(--display); letter-spacing: -0.015em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule-dark); }
.footer__nav a { font-weight: 500; text-decoration: none; color: var(--mist); }
.footer__nav a:hover { color: var(--light); }
.footer__legal { display: grid; gap: .5rem; padding-top: 1.6rem; font-size: .8rem; color: var(--mist); }
.footer__legal p { margin: 0; }
.footer__legal a { color: var(--light); }
.ehl { display: flex; align-items: center; gap: .5rem; }
.ehl svg { width: 20px; height: 20px; fill: var(--mist); }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .equation { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .equation > :nth-child(4) { display: none; } /* the "=" moves onto its own line before the result */
  .equation__term--result { grid-column: 1 / -1; padding-top: .5rem; }
  .equation__term--result::before { content: "="; font: 200 clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem)/.9 var(--display); color: var(--brand); }
}
@media (max-width: 900px) {
  .about__cols, .section__head--split, .re__split, .contact__grid, .calc__form, .sheet__body { grid-template-columns: 1fr; }
  .calc__result { padding: 2rem 0 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
  .calc__row--term { border-bottom: 0; }
  .calc__live {
    position: sticky; top: 66px; z-index: 5; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem;
    margin: 0 calc(var(--gutter) * -1) .4rem; padding: .7rem var(--gutter);
    background: rgba(6, 20, 29, .95); border-bottom: 1px solid var(--rule-dark); font-size: .95rem; color: var(--mist);
  }
  .calc__live b { font: 600 1.35rem/1 var(--display); letter-spacing: -0.02em; color: var(--light); }
  .calc__live span { font-weight: 600; }
  .calc__live span.is-up { color: #eba36a; }
  .calc__live span.is-down { color: var(--brand); }
  .journey__inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
  .journey__rail { grid-template-columns: repeat(4, 1fr); gap: .25rem; align-self: auto; }
  .journey__rail button { padding: .6rem .5rem; border-left: 0; border-top: 2px solid rgba(234, 242, 245, .2); font-size: .8rem; }
  .journey__rail button[aria-current="step"] { border-top-color: var(--brand); background: none; }
  .picker { grid-template-columns: 1fr; }
  .picker__answers { margin-top: 1.8rem; padding: 1.8rem 0 0; border-left: 0; border-top: 1px solid var(--rule-light); }
  .sheet__price { text-align: left; }
}
@media (max-width: 640px) {
  .nav__bar { height: 66px; }
  .nav__logo img { height: 46px; }
  .nav__actions > .btn { display: none; }
  .nav__phone { font-size: .88rem; } /* tap-to-call stays in the bar on phones */
  .media > img, .media > video { object-position: 64% 50%; }
  .hero.is-scrub { height: 290svh; }
  /* phones: text sits over the middle of the image, so shade top-to-bottom instead of left-to-right */
  .scrim--hero { background: linear-gradient(180deg, rgba(6, 20, 29, .5) 0%, rgba(6, 20, 29, .18) 28%, rgba(6, 20, 29, .5) 58%, rgba(6, 20, 29, .9) 100%); }
  .hero__inner { padding-top: 96px; }
  .milestones li { padding: 0; height: 6px; }
  .milestones b, .milestones li span { display: none; }
  .milestones__caption { display: block; min-height: 2.9em; margin: 1rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--mist); }
  .milestones__caption b { color: var(--light); font-weight: 600; }
  .equation { grid-template-columns: 1fr; gap: .6rem; }
  .equation__op { display: block !important; font-size: 2.4rem; }
  .equation__term--result::before { content: none; }
  .process__line { flex-direction: column; }
  .process__line li, .process__line li:last-child { grid-template-columns: 1fr; }
  .process__line li:not(:last-child)::after {
    grid-column: 1; grid-row: 3; width: 12px; height: 2.6rem; margin: .9rem 0 .9rem .2rem;
    background:
      linear-gradient(var(--brand-deep), var(--brand-deep)) center top / 1.5px calc(100% - 2px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M1 1l5 6 5-6' fill='none' stroke='%2300708D' stroke-width='1.5'/%3E%3C/svg%3E") center bottom / 12px 9px no-repeat;
    transform: scaleY(0); transform-origin: top;
  }
  .calc__terms span { font-size: .85rem; }
  .sheet__specs { gap: .2rem 1.1rem; }
  .sheet__specs li, .sheet__specs li:first-child { padding: 0; border-left: 0; }
  .footer__logo { height: 52px; }
  .callbar {
    position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .5rem; border-radius: 6px;
    background: rgba(6, 20, 29, .92); border: 1px solid var(--rule-dark);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .callbar.is-shown { transform: none; }
  .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* ---------- Touch devices: comfortable targets, nothing trapped under the call bar ---------- */
@media (hover: none) {
  /* ~44px minimum for anything tappable */
  .link-arrow, .picker__call, .re__call a, .nav__phone, .social a, .footer__nav a, .footer__legal a, .contact__lines a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact__lines li { padding-block: .5rem; }
  .calc__box { padding: .6rem .9rem; }
  .calc__terms span { padding: .9rem 0; }
  .note__field input, .note__field select { padding-block: .3rem; }
  input[type="range"] { height: 44px; }
  input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -9.5px; }
  input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; }
  .masonry button, .btn, .journey__rail button, .picker__options button { touch-action: manipulation; }
  a, button, input, select, textarea, label { -webkit-tap-highlight-color: rgba(2, 169, 211, .18); }
}
@media (max-width: 640px) {
  /* the journey is pinned to the screen, so its own bottom must clear the floating call bar */
  .journey__inner { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
  .journey__progress { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
  .contact { padding-bottom: calc(var(--section) + 4rem); }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span, .hero__lead, .hero__cta, .hero__foot { transform: none; opacity: 1; }
  [data-reveal] { opacity: 1; transform: none; }
  .grain { display: none; }
}
