/* ==========================================================================
   Ramon De Guzman · Miami Home Financing
   Apple-inspired system in the ChatGPT site's palette:
   white · mist #edf5f8 · ocean #135c86 · night #081724
   Every section is its own rounded tile, separated by white space.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #081724;
  --ink-2: #1c2b37;
  --muted: #5b6b78;          /* 5.4:1 on white */
  --soft: #8a98a3;           /* decorative / large text only */
  --line: #dde5e9;
  --line-2: #e9eff2;

  --white: #ffffff;
  --mist: #f2f7f9;
  --mist-2: #edf5f8;
  --sky: #dcefff;
  --sky-2: #c7e5f1;

  --ocean: #135c86;          /* primary — 7.0:1 on white */
  --ocean-hover: #0b3f60;
  --link: #1b6fa0;           /* 5.3:1 on white */
  --azure: #126dcb;
  --night: #081724;
  --night-2: #0f2233;
  --on-night: #f5f8fa;
  --on-night-2: #b8c8d5;     /* 9.6:1 on night */

  --c-pi: #126dcb;
  --c-tax: #41b8bc;
  --c-ins: #9ad8e8;
  --c-hoa: #b2bdcb;
  --c-mi: #102c46;

  --danger: #b3261e;
  --danger-bg: #fdeeec;
  --success: #1f7a52;

  --grad: linear-gradient(100deg, #0b3f60 0%, #135c86 45%, #1e86bd 100%);

  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;   /* Geist by Vercel, on every device */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;   /* big headlines, as on the original site */

  --ease: cubic-bezier(.28, .11, .32, 1);       /* Apple's house curve */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --d-fast: 180ms;
  --d-base: 320ms;

  --r-tile: 28px;
  --r-card: 22px;
  --r-md: 14px;
  --r-pill: 980px;

  --gap: 12px;               /* space between tiles */
  --nav-h: 52px;
  --wrap: 1080px;
  --pad-x: clamp(20px, 5vw, 64px);
  --tile-y: clamp(64px, 9vw, 128px);

  --shadow-card: 0 1px 2px rgba(8, 23, 36, .04), 0 12px 40px -18px rgba(8, 23, 36, .18);
  --shadow-float: 0 2px 6px rgba(8, 23, 36, .06), 0 30px 60px -30px rgba(8, 23, 36, .35);

  --z-nav: 100;
  --z-menu: 90;
  --z-skip: 1000;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

@view-transition { navigation: auto; }   /* smooth cross-page fades (Chrome/Edge/Safari) */
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--sky-2); color: var(--ink); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: var(--z-skip);
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: 14px;
  transform: translateY(-150%); transition: transform var(--d-base) var(--ease);
}
.skip-link:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--pad-x), var(--wrap)); margin-inline: auto; }
.wrap--wide { width: min(100% - 2 * var(--pad-x), 1240px); margin-inline: auto; }
.center { text-align: center; }

/* ---------- 3. Type ---------- */
.eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--link);
}
.h-xl { font-size: clamp(44px, 7vw, 92px); line-height: 1.04; letter-spacing: -.035em; }
.h-l  { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -.03em; }
.h-m  { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1;  letter-spacing: -.025em; }
.h-s  { font-size: clamp(21px, 2vw, 26px);   line-height: 1.2;  letter-spacing: -.02em; }
/* Big headlines on every page use the serif of the home headline (Playfair Display,
   regular), as on the original site. Their blue line is italic, like "My commitment.".
   Small card titles, numbers and body text stay in the sans. */
.h-xl, .h-l, .h-m { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; }
.h-xl .grad, .h-l .grad, .h-m .grad {
  font-style: italic;
  padding-right: .12em; margin-right: -.12em;   /* italic letters lean right; keeps the last one inside the blue */
}
/* About headline ("Personally invested to all Florida."): when the blue line wraps, its
   lines come out even, so "Florida." never sits alone on the last line. */
[data-i18n-html="about.title"] .grad { display: inline-block; text-wrap: balance; }
/* Loan programs headline: always exactly two lines, on every screen and in every language
   (Ramon): "Different homes. Different stories." / "Financing that fits yours." The h1 has
   data-fit-line, so site.js shrinks it just enough for the longer line to fit.
   Ramon: the first line a little smaller, the blue line a little bigger. */
[data-i18n-html="programs.title"] .ptitle__l1 { font-size: .54em; }   /* Ramon picked this with a slider */
@media (max-width: 599px) { [data-i18n-html="programs.title"] .ptitle__l1 { font-size: .55em; } }   /* phones: Ramon's own slider pick (was .75em) */
[data-i18n-html="programs.title"] .grad { font-size: .9em; }
.lead {
  margin-top: 18px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.38;
  letter-spacing: -.015em;
  color: var(--muted);
  font-weight: 450;
}
.center .lead { margin-inline: auto; max-width: 40rem; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--ocean);
}
.muted { color: var(--muted); }
.fine { font-size: 12px; line-height: 1.6; color: var(--muted); letter-spacing: 0; }

/* ---------- 4. Buttons & links ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--ocean); color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease), border-color var(--d-base) var(--ease), transform var(--d-fast) var(--ease), box-shadow var(--d-base) var(--ease);
}
.btn:hover { background: var(--ocean-hover); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ocean); border-color: var(--ocean); }
.btn--ghost:hover { background: var(--ocean); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sky); }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--sm { min-height: 32px; padding: 0 14px; font-size: 13px; font-weight: 500; }
.btn--block { width: 100%; }
.btn .icon { width: 1em; height: 1em; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading > * { opacity: 0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}

.link {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 44px;
  color: var(--link); font-size: 17px; font-weight: 450;
}
.link::after {
  content: "›"; font-size: 1.25em; line-height: 1; margin-left: 3px;
  transition: transform var(--d-base) var(--ease);
}
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover::after { transform: translateX(3px); }
.link--light { color: #8cc8f0; }
.link--out::after { content: "↗"; font-size: .95em; }

.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; }
.center .ctas { justify-content: center; }

/* ---------- 5. Global nav (frosted) ---------- */
.gnav {
  position: sticky; top: 0; z-index: var(--z-nav);
  height: var(--nav-h);
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(8, 23, 36, .07);
  view-transition-name: gnav;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease);
}
.gnav__inner {
  height: 100%;
  width: min(100% - 2 * clamp(16px, 3vw, 32px), 1240px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.gnav__brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.mono {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.gnav__brand small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }
.gnav__links { display: none; align-items: center; gap: 4px; }
.gnav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px;
  font-size: 13px; letter-spacing: -.005em; color: rgba(8, 23, 36, .78);
  transition: color var(--d-fast) var(--ease);
}
.gnav__link:hover { color: var(--ink); }
.gnav__link[aria-current="page"] { color: var(--ink); font-weight: 500; }
.gnav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 9px; height: 1.5px; border-radius: 2px; background: var(--ocean);
}
.gnav__actions { display: flex; align-items: center; gap: 8px; }

.lang {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 2px; border-radius: var(--r-pill); background: rgba(8, 23, 36, .06);
}
.lang__ind {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 3);
  border-radius: var(--r-pill); background: #fff; box-shadow: 0 1px 3px rgba(8,23,36,.14);
  transform: translateX(calc(var(--idx, 0) * 100%)); transition: transform .45s var(--ease);
}
.lang__btn {
  position: relative; z-index: 1; min-width: 34px; min-height: 30px; padding: 0 6px;
  border: 0; background: none; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  transition: color var(--d-fast) var(--ease);
}
.lang__btn[aria-pressed="true"] { color: var(--ink); }

.menu-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -8px; border: 0; background: none;
}
.menu-btn span { position: absolute; width: 18px; height: 1.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.gnav__apply { display: none; }
.gnav__progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--grad); transform: scaleX(var(--progress, 0)); transform-origin: left;
}

@media (min-width: 560px) { .gnav__apply { display: inline-flex; } }
@media (min-width: 1100px) {
  .gnav__links { display: flex; }
  .menu-btn { display: none; }
}

/* Home page: the nav is always see-through, in white (Ramon). At the top it floats
   clear over the photo, with a soft shade that keeps the words readable. Once the
   headline scrolls up to it, site.js adds .gnav--glass: see-through navy glass, so
   the words stay readable over the white boxes too. */
.gnav::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(100% + 36px);
  background: linear-gradient(180deg, rgba(4, 23, 36, .42), rgba(4, 23, 36, 0));
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.gnav__brand, .gnav__brand small, .gnav__link, .lang, .lang__btn, .mono { transition: color .4s var(--ease), background-color .4s var(--ease); }
.menu-btn span { transition: transform .4s var(--ease), background-color .4s var(--ease); }
.js:not(.menu-open) .gnav--clear {
  background-color: rgba(255, 255, 255, 0); border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.js:not(.menu-open) .gnav--clear::before { opacity: 1; }
.js:not(.menu-open) .gnav--clear .gnav__brand { color: #fff; text-shadow: 0 1px 8px rgba(4, 23, 36, .35); }
.js:not(.menu-open) .gnav--clear .gnav__brand small { color: rgba(255, 255, 255, .8); }
.js:not(.menu-open) .gnav--clear .mono { background: #fff; color: var(--ink); text-shadow: none; }
.js:not(.menu-open) .gnav--clear .gnav__link { color: rgba(255, 255, 255, .86); text-shadow: 0 1px 8px rgba(4, 23, 36, .4); }
.js:not(.menu-open) .gnav--clear .gnav__link:hover,
.js:not(.menu-open) .gnav--clear .gnav__link[aria-current="page"] { color: #fff; }
.js:not(.menu-open) .gnav--clear .gnav__link[aria-current="page"]::after { background: #fff; }
.js:not(.menu-open) .gnav--clear .lang { background: rgba(255, 255, 255, .18); }
.js:not(.menu-open) .gnav--clear .lang__btn { color: rgba(255, 255, 255, .88); }
.js:not(.menu-open) .gnav--clear .lang__btn[aria-pressed="true"] { color: var(--ink); }
.js:not(.menu-open) .gnav--clear .menu-btn span { background: #fff; }
.js:not(.menu-open) .gnav--clear.gnav--glass {
  background-color: rgba(8, 23, 36, var(--nav-glass, .40));   /* Ramon picked 40% with a slider (was 55%) */
  border-bottom-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
}
.js:not(.menu-open) .gnav--clear.gnav--glass::before { opacity: 0; }
.js:not(.menu-open) .gnav--glass .gnav__brand, .js:not(.menu-open) .gnav--glass .gnav__link { text-shadow: 0 1px 6px rgba(4, 23, 36, .55); }   /* keeps the white words crisp on the lighter glass */

/* Home page, phone/tablet menu: instead of a white sheet, a deep-navy frosted
   glass over the photo (one piece with the top bar, which stays clear with
   white text, like the computer view). */
.has-scene .menu {
  inset: 0; padding-top: calc(var(--nav-h) + 28px);
  background: rgba(6, 20, 30, .38);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  color: #fff;
  text-shadow: 0 1px 10px rgba(4, 23, 36, .45);
}
.has-scene .menu .btn { text-shadow: none; }
.has-scene .menu__link { color: #fff; }
.has-scene .menu__link[aria-current="page"] { color: #9fd3f2; }
.has-scene .menu__card { background: rgba(6, 20, 30, .42); border: 1px solid rgba(255, 255, 255, .12); }
.has-scene .menu__who, .has-scene .menu__line { color: #fff; }
.has-scene .menu__who small, .has-scene .menu__co { color: rgba(255, 255, 255, .8); }
.has-scene .menu__line .icon { color: #9fd3f2; }
.menu-open .has-scene .gnav {
  background-color: rgba(255, 255, 255, 0); border-bottom-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.menu-open .has-scene .gnav__brand { color: #fff; }
.menu-open .has-scene .gnav__brand small { color: rgba(255, 255, 255, .78); }
.menu-open .has-scene .mono { background: #fff; color: var(--ink); }
.menu-open .has-scene .lang { background: rgba(255, 255, 255, .16); }
.menu-open .has-scene .lang__btn { color: rgba(255, 255, 255, .88); }
.menu-open .has-scene .lang__btn[aria-pressed="true"] { color: var(--ink); }
.menu-open .has-scene .menu-btn span { background: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .has-scene .menu { background: rgba(6, 20, 30, .94); }
}

/* Mobile menu (Apple-style full-screen sheet) */
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: var(--z-menu);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px var(--pad-x) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.menu__links li { opacity: 0; transform: translateY(-8px); transition: opacity .45s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu__links li { opacity: 1; transform: none; }
.menu.is-open .menu__links li:nth-child(2) { transition-delay: .03s; }
.menu.is-open .menu__links li:nth-child(3) { transition-delay: .06s; }
.menu.is-open .menu__links li:nth-child(4) { transition-delay: .09s; }
.menu.is-open .menu__links li:nth-child(5) { transition-delay: .12s; }
.menu.is-open .menu__links li:nth-child(6) { transition-delay: .15s; }
.menu__link { display: flex; align-items: center; min-height: 52px; font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.menu__link[aria-current="page"] { color: var(--ocean); }
.menu__foot { display: grid; gap: 12px; }
/* Ramon's details at the bottom of the menu */
.menu__card { display: grid; padding: 14px 16px 12px; border-radius: 18px; background: var(--mist); }
.menu__who { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; color: var(--ink); }
.menu__who img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #e9ecee; }
.menu__who strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.menu__who small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); letter-spacing: 0; }
.menu__line { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; font-size: 15px; color: var(--ink); }
.menu__line .icon { color: var(--ocean); }
.menu__co { margin-top: 4px; font-size: 12px; line-height: 1.5; color: var(--muted); letter-spacing: 0; }
.menu__co a { display: inline-block; margin-top: 2px; color: inherit; text-decoration: underline; text-decoration-color: rgba(127, 127, 127, .45); text-underline-offset: 3px; }   /* company address: opens Maps */
@media (max-height: 720px) {   /* shorter phones: everything fits without scrolling the menu (now incl. the company address) */
  .menu { gap: 18px; padding-top: 20px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .has-scene .menu { padding-top: calc(var(--nav-h) + 18px); }
  .menu__link { min-height: 42px; font-size: 26px; }
  .menu__line { min-height: 34px; }
}
html.menu-open { overflow: hidden; }

/* ---------- 6. Tiles (each section is its own panel) ---------- */
main { display: flex; flex-direction: column; gap: var(--gap); padding: var(--gap); }
.tile {
  position: relative;
  border-radius: var(--r-tile);
  padding: var(--tile-y) 0;
  overflow: clip;            /* clip (not hidden) so sticky children still work */
  background: var(--mist);
  isolation: isolate;
}
.tile--mist .pcard, .tile--mist .card, .tile--mist .form-card, .tile--mist .summary__item:not(.summary__item--main) { background: #fff; }
.tile--white .ccard { background: var(--mist); }
.tile--mist .seg-bar { background: rgba(242, 247, 249, .85); }
.tile--white { background: var(--white); border: 1px solid var(--line-2); }
.tile--plain { background: var(--white); border-radius: 0; }
.tile--mist { background: var(--mist); }
.tile--sky { background: linear-gradient(180deg, #e9f5fb 0%, #dcefff 100%); }
.tile--night { background: var(--night); color: var(--on-night); }
.tile--night .lead, .tile--night .muted { color: var(--on-night-2); }
.tile--night .eyebrow { color: #7fc0ea; }
/* An eyebrow Ramon writes in capitals ("LOCAL KNOWLEDGE. STATEWIDE COMMITMENT."): small, tracked caps in every language */
.eyebrow--caps { text-transform: uppercase; letter-spacing: .16em; font-size: clamp(12px, .95vw, 14px); margin-bottom: 18px; text-wrap: balance; }
/* "Florida is more than a destination." / "It's a place to build your future.": always the computer's
   two lines, also on phones (Ramon) — the h2 has data-fit-line, so site.js shrinks it to fit */
.tile--night .fine { color: var(--on-night-2); }
.tile--night .grad { background: linear-gradient(100deg, #9fd3f2, #dcefff 60%, #ffffff); -webkit-background-clip: text; background-clip: text; }
.tile--night :focus-visible { outline-color: #8cc8f0; }

/* Home closing box: a quieter, more refined headline (Ramon found the full size too big) */
.cta-closing .eyebrow {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
}
.cta-closing .eyebrow::before, .cta-closing .eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.cta-closing .h-l { max-width: 22em; margin-inline: auto; font-size: clamp(28px, 3.3vw, 44px); line-height: 1.22; letter-spacing: -.005em; }
.cta-closing .ctas { margin-top: clamp(30px, 3.6vw, 42px); }
.cta-closing .fine { letter-spacing: .01em; opacity: .85; }
/* always one line (Ramon's choice): site.js shrinks the text to fit the screen, even on phones */
[data-fit-line] { white-space: nowrap; }
/* two lines of the same width (site.js sizes each one; Loan programs closing box, Ramon) */
[data-even-lines] > span { display: inline-block; white-space: nowrap; }
/* Phones (Ramon, 2026-11-19): the last box of every page keeps the "—— LABEL ——" lines too,
   close to the words like on a computer. Shorter lines and a little less letter-spacing; the
   label has data-fit-line, so a long one shrinks slightly to stay on one line. */
@media (max-width: 420px) {
  .cta-closing .eyebrow { display: flex; justify-content: safe center; gap: .65em; letter-spacing: .17em; }
  .cta-closing .eyebrow::before, .cta-closing .eyebrow::after { width: 1.5em; }   /* in em, so the lines shrink with a long label */
}
.tile--tight { padding: clamp(48px, 6vw, 80px) 0; }

@media (max-width: 599px) {
  :root { --gap: 8px; --r-tile: 22px; }
}

/* Page hero (inner pages) */
.phero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 88px); text-align: center; background: var(--white); border-radius: 0; }
.phero .lead { margin-inline: auto; max-width: 40rem; }
/* Loan programs: a cinematic band of six family photos (Ramon, 2026-11-20) across the bottom of the
   intro. The photos melt into each other side to side, and the whole band is solid at the bottom
   and fades into white up to about the middle of the intro text, so the words stay readable.
   A light golden-hour grade keeps the six looking like one scene. Tablets show 3, phones 2. */
.phero:has(.pband) { position: relative; overflow: hidden; isolation: isolate; --pband-room: 250px; padding-bottom: var(--pband-room); }
.phero:has(.pband) > .wrap { position: relative; z-index: 1; }
.pband {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: calc(var(--pband-room) + 40px);
  display: flex; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 22%, rgba(0, 0, 0, .6) 52%, rgba(0, 0, 0, .18) 78%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 22%, rgba(0, 0, 0, .6) 52%, rgba(0, 0, 0, .18) 78%, transparent 100%);
}
.pband img {
  flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover;
  filter: sepia(.12) saturate(1.08) contrast(1.05) brightness(.97);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.pband img + img { margin-left: -5%; }
.pband img:nth-child(5) { object-position: 50% 60%; }
/* Loan programs: the 3rd family photo slides right inside its frame so the lifted baby is in view
   (Ramon's slider pick, 80%). Only the picture moves; the frame, size and fades stay the same. */
.pband img[src$="family-3.jpg"] { object-position: 80% 50%; }
/* The 2nd family photo's left fade is shorter (9% instead of 14%), so the younger boy's face at its
   left edge isn't half-ghosted over photo 1 (Ramon's slider pick). Only the fade line moved.
   Computers and tablets; phones use the grid's own fades. */
@media (min-width: 600px) {
  .pband img[src$="family-2.jpg"] {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 86%, transparent 100%);
  }
}
.pband img:first-child { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%); mask-image: linear-gradient(to right, #000 86%, transparent 100%); }
.pband img:last-child { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
/* About: the same band with Miami at night (Ramon). A dark base so the soft seams between the
   night photos melt dark instead of white, and a crisper night grade instead of the warm one. */
.pband--night { background: #08111c; height: calc(var(--pband-room) + 70px); }   /* fade starts a little higher (Ramon's slider pick; the family band uses +40) */
.pband--night img { filter: saturate(1.08) contrast(1.06) brightness(.98); }
/* tablets: the same as computers (Ramon): all six families in one row, fading up into the text */
@media (min-width: 600px) and (max-width: 899px) { .phero:has(.pband) { --pband-room: 220px; } }
/* phones: all six families (Ramon's pick), two rows of three under the text. Each photo is
   feathered on every side and slightly enlarged, so neighbours melt into each other; the band only
   fades at its very top. */
@media (max-width: 599px) {
  .phero:has(.pband) { --pband-room: 250px; }
  .pband img:nth-child(n+7) { display: none !important; }   /* the grid holds six */
  /* About: keep the Breakwater (4th) in the middle here too, centre of the bottom row */
  .pband--night img:nth-child(5) { order: 1; } .pband--night img:nth-child(4) { order: 2; } .pband--night img:nth-child(6) { order: 3; }
  /* the 3rd family photo: the whole family centred in its grid square (Ramon's slider pick on phones; computers keep 80%) */
  .pband img[src$="family-3.jpg"] { object-position: 56% 50%; }
  .pband {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr));
    height: calc(var(--pband-room) + 6px);
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 80%, transparent 100%);
    mask-image: linear-gradient(to top, #000 0%, #000 80%, transparent 100%);
  }
  .pband img, .pband img:nth-child(n) {
    display: block; width: 100%; height: 100%; margin: 0; transform: scale(1.14);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 13%, #000 87%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}

/* Two-column tile content */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }

/* ---------- 7. Reveal motion (Apple-style fade up) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Intro speed, picked by Ramon with a slider: 1.5 = 50% slower than the first version.
   It stretches every duration and every delay (--d, in index.html) together. */
:root { --intro-k: 1.5; }
.js .hero [data-intro] {
  opacity: 0; transform: translate3d(0, 24px, 0); filter: blur(6px);
  transition: opacity calc(1.1s * var(--intro-k)) var(--ease), transform calc(1.2s * var(--intro-k)) var(--ease), filter calc(1.1s * var(--intro-k)) var(--ease);
  transition-delay: calc(var(--d, 0s) * var(--intro-k));
}
.js.is-loaded .hero [data-intro] { opacity: 1; transform: none; filter: none; }
/* Home: the top bar is the last thing to appear, once the opening has played (Ramon).
   It drifts down softly as Ramon's card settles into place. */
.js .gnav[data-clear] { opacity: 0; transform: translate3d(0, -10px, 0); }
.js.is-loaded .gnav[data-clear] {
  opacity: 1; transform: none;
  transition:
    opacity calc(.75s * var(--intro-k)) var(--ease) calc(1.3s * var(--intro-k)),   /* Ramon: sooner after the photo card, twice (first 1.1s after 1.6s) */
    transform calc(.85s * var(--intro-k)) var(--ease) calc(1.3s * var(--intro-k)),
    background-color .4s var(--ease), border-color .4s var(--ease),
    -webkit-backdrop-filter .4s var(--ease), backdrop-filter .4s var(--ease);
}

.lang-anim [data-i18n], .lang-anim [data-i18n-html] { animation: lang-in .45s var(--ease); }

/* ---------- 8. Home: full-screen waterfront scene ----------
   The photo is fixed behind the whole home page. The headline sits right on it;
   every section after it glides over the photo as frosted glass, so the picture
   carries on underneath. As you scroll, the photo pans down from the skyline to
   the palm reflections (site.js sets --pan and --sp; water.js follows --pan). */
.scene {
  --pan: .56;
  --sp: 0;
  position: fixed; top: 0; left: 0; z-index: 0;
  width: 100%; height: 100vh; height: 100lvh;   /* lvh: no jump when phone toolbars hide */
  overflow: hidden; pointer-events: none;
  background: #a9bfcf;
}
/* iPhone Safari (iOS 26) won't draw this fixed photo behind its floating bottom toolbar; it fills
   that strip with the page's own colour. A water-blue strip was tried on 2026-11-22 and Ramon
   preferred it WHITE (the page's normal colour), so nothing is set here on purpose.
   iPhones only, on the first screen of Home (Ramon: "I want the moving water at the bottom when you
   open it"): the photo is NOT pinned there, so Safari draws it (and the moving water) behind its
   glass toolbar too. site.js keeps it in place while that first screen scrolls, then pins it again. */
.scene.is-unpinned { position: absolute; }
.scene__zoom {
  position: absolute; inset: 0;
  transform: scale(calc(1 + var(--sp) * .05));
  transform-origin: 50% 100%;
  will-change: transform;
}
.scene__img, .scene__water {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% calc(var(--pan) * 100%);
}
/* Wide windows start the view a little higher (more sky, the whole skyline).
   site.js works out the exact value; these just avoid a jump before it runs. */
@media (min-aspect-ratio: 3/2) { .scene { --pan: .46; } }
@media (min-aspect-ratio: 8/5) { .scene { --pan: .44; } }
.scene__water { opacity: 0; transition: opacity 1.2s var(--ease); }
.scene__water.is-ready { opacity: 1; }
.scene:has(.scene__water.is-ready) .scene__img { visibility: hidden; transition: visibility 0s linear 1.3s; }

.has-scene main { position: relative; z-index: 1; }
.has-scene .gfoot { position: relative; z-index: 1; }

/* Deep-navy wash over the photo behind the headline (as on the original site),
   so the white words read. It fades as you scroll, so the glass sections
   below still show the bright photo. */
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 23, 36, .5) 0%, rgba(4, 23, 36, .32) 40%, rgba(4, 23, 36, .1) 70%, rgba(4, 23, 36, 0) 100%),
    linear-gradient(0deg, rgba(4, 23, 36, .22) 0%, rgba(4, 23, 36, 0) 30%);
  opacity: var(--shade, calc(1 - var(--sp) * 1.3));   /* --shade: site.js keeps it on until the "Where Your Goals" box arrives */
}

.hero {
  --sp: 0;
  position: relative;
  min-height: calc(100svh - var(--nav-h) - var(--gap));
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: clamp(32px, 6vh, 80px) var(--pad-x) clamp(150px, 20vh, 190px);
  padding-left: max(var(--pad-x), 6vw);
  text-align: left; color: #fff;
}
.hero__text {
  position: relative; max-width: 48rem;
  opacity: calc(1 - var(--sp) * 1.8);
  transform: translate3d(0, calc(var(--sp) * -6vh), 0);
}
.hero .eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(16px, 2.4vh, 26px);
  font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;   /* size picked by Ramon */
  color: #e4f2f7;
  text-shadow: 0 1px 2px rgba(4, 23, 36, .4), 0 1px 12px rgba(4, 23, 36, .55);
}
.hero .eyebrow::before { box-shadow: 0 1px 3px rgba(4, 23, 36, .4); }
.hero .eyebrow::before { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
.hero__title {
  max-width: 9.4em;   /* "Your home." and "Your future." stack, like the original */
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(50px, 6.4vw, 100px); line-height: 1.04; letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(4, 23, 36, .3);
}
.hero__title span { display: block; }
.hero__em { font-style: italic; color: #c7e5f1; }
.hero__text .lead {
  max-width: 30rem; margin-top: clamp(18px, 2.6vh, 28px);
  color: rgba(255, 255, 255, .92); font-weight: 400;
  text-shadow: 0 1px 2px rgba(4, 23, 36, .35), 0 1px 16px rgba(4, 23, 36, .5);
}
.hero__text .ctas { margin-top: clamp(26px, 4vh, 40px); gap: 12px 32px; }
.hero__link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: #fff; font-size: 16px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 9px; text-decoration-color: rgba(255, 255, 255, .6);
  transition: text-decoration-color var(--d-base) var(--ease);
}
.hero__link:hover { text-decoration-color: #fff; }

@media (max-aspect-ratio: 4/5) {
  /* portrait phones & tablets: the whole photo shows, the words sit in the sky */
  .hero { justify-content: flex-start; padding-top: clamp(24px, 4.5vh, 64px); }
  .scene::after {
    background: linear-gradient(180deg, rgba(4, 23, 36, .5) 0%, rgba(4, 23, 36, .42) 48%, rgba(4, 23, 36, .26) 70%, rgba(4, 23, 36, .06) 100%);
  }
}
@media (max-width: 599px) {
  .hero__title { font-size: min(46px, 10.8vw); }   /* keeps "My commitment." on one line, in all 3 languages */
}

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: clamp(8px, 2vh, 20px);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0 16px;
}
.hero__cue {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff;
}
.hero__cue svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(8, 23, 36, .55));
  animation: cue 2.6s var(--ease) infinite;
}

/* Every section after the hero floats over the photo as frosted glass */
.has-scene .tile--mist,
.has-scene .btile {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(170%) blur(28px); backdrop-filter: saturate(170%) blur(28px);
  border: 1px solid rgba(255, 255, 255, .55);
}
.has-scene .btile--white { background: rgba(255, 255, 255, .86); }
.has-scene .btile--sky { background: linear-gradient(180deg, rgba(242, 249, 253, .78), rgba(216, 236, 248, .86)); }
.has-scene .btile--night,
.has-scene .tile--night {
  background: rgba(8, 23, 36, .78); border: 1px solid rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: saturate(150%) blur(28px); backdrop-filter: saturate(150%) blur(28px);
}
.has-scene .statement__text .w { color: rgba(8, 23, 36, .2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-scene .tile--mist, .has-scene .btile, .has-scene .btile--sky { background: rgba(255, 255, 255, .95); }
  .has-scene .btile--night, .has-scene .tile--night { background: rgba(8, 23, 36, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .has-scene .tile--mist, .has-scene .btile, .has-scene .btile--sky { background: rgba(255, 255, 255, .96); }
  .has-scene .btile--night, .has-scene .tile--night { background: rgba(8, 23, 36, .97); }
}

/* Ramon's card, as on the original site. The whole card links to the About page.
   Phones and narrow screens: a compact row above the scroll arrow.
   Wider screens: a portrait card on the right of the photo. */
.hero__card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: 100%;
  padding: 10px 20px 10px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .95); color: #102331;
  box-shadow: 0 18px 50px -14px rgba(4, 23, 36, .5);
  text-align: left;
  opacity: calc(1 - var(--sp, 0) * 2.8);   /* fades before it reaches the clear nav */
  transition: transform var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
/* once faded out, the headline links and the card stop catching clicks */
.hero.is-past-card .hero__card, .hero.is-past-text .hero__text { visibility: hidden; }
.hero__card:hover { transform: translateY(-4px); box-shadow: 0 28px 64px -16px rgba(4, 23, 36, .6); }
.hero__card:active { transform: translateY(-1px); }
.hero__card img {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; background: #e9ecee;
}
.hero__card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: 19px; line-height: 1.12; letter-spacing: -.005em;
}
.hero__card small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; color: #3d4c58; letter-spacing: 0; }
.hero__card small + small { margin-top: 0; }

@media (min-width: 900px) and (min-aspect-ratio: 4/5) {
  .hero__card {
    position: absolute; right: max(var(--pad-x), 6vw); bottom: clamp(56px, 11vh, 120px);
    flex-direction: column; align-items: stretch; gap: 0;
    width: clamp(200px, 16.5vw, 240px); padding: 15px;
  }
  .hero__card img { width: 100%; height: auto; aspect-ratio: 1; }
  .hero__card strong { margin: 14px 0 6px; font-size: clamp(21px, 1.75vw, 25px); }
  .hero__card small { margin-top: 0; }
}
/* wide windows: card height chosen by Ramon with a slider (10% of the screen height) */
@media (min-width: 900px) and (min-aspect-ratio: 3/2) {
  .hero__card { bottom: clamp(40px, 10vh, 120px); }
}

/* ---------- 9. Home: scroll-lit statement ---------- */
.statement__text {
  max-width: 980px; margin-inline: auto; padding: 0 var(--pad-x);
  font-family: var(--serif);
  font-size: clamp(24px, 2.9vw, 40px); line-height: 1.2; font-weight: 400; letter-spacing: -.01em;   /* sized for Ramon's longer statement: it fits on one screen */
  color: var(--ink);
}
.statement__title { padding: 0 var(--pad-x); margin-bottom: clamp(22px, 3vw, 40px); }
/* Computers: Ramon set each line with a slider: "Where Your Goals" at 95% of the usual
   headline size, "Meet My Expertise" at 120% (61px / 77px on a wide screen). Phones unchanged. */
@media (min-width: 600px) {
  #intro-title { font-size: calc(clamp(36px, 5.2vw, 64px) * .95); }
  #intro-title .grad { font-size: calc(1.2 / .95 * 1em); }
}
/* Open space around the statement box so it reads on its own, with the photo showing
   in the gap. Ramon picked these with sliders: 50% of a screen above, 10% below.
   (svh: steady on phones when the browser bars show and hide) */
#intro { margin-top: 50vh; margin-top: 50svh; margin-bottom: 10vh; margin-bottom: 10svh; }
@media (max-width: 599px) {   /* phones: Ramon's own setting, 10% above, 5% below */
  #intro { margin-top: 10vh; margin-top: 10svh; margin-bottom: 5vh; margin-bottom: 5svh; }
}
/* Computers: the box feels longer (Ramon picked 80% of the screen height with a slider;
   it was about 60%). The words stay centered inside. Phones keep their natural height. */
@media (min-width: 600px) {
  #intro { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; min-height: 80svh; }
}
/* Ramon (2026-11-20): on computers and tablets the whole box is 80% of its size, scaled corner to
   corner, so it keeps exactly the same look and line breaks. site.js sets --intro-w to the full
   width it would have had; zoom then shrinks everything inside proportionally. The open gap
   above stays 50% of a screen (zoom would otherwise shrink the margin too). */
@media (min-width: 600px) {
  #intro { zoom: .8; width: var(--intro-w, 100%); margin-left: auto; margin-right: auto; margin-top: calc(50svh / .8); }
}
.js .statement__text .w { color: #b9c6cf; transition: color .5s var(--ease); }
.js .statement__text .w.is-lit { color: var(--ink); }
.statement .ctas { margin-top: 36px; }

/* Home: floating photo strip in the open gap under "Where Your Goals" (Ramon, 2026-11-20).
   Tall 2:3 photo frames glide right to left without end; no spin, no tilt. Ramon's picks:
   260px tall (2:3, 173px wide), 26px apart, 36 px/s (site.js sets the loop time), 6% of a screen
   above and below. */
#intro:has(+ .reel) { margin-bottom: 0; }   /* the strip brings its own space */
.reel { --h: 260px; --shape: 2 / 3; --gap: 26px; position: relative; margin: 6vh -10px; margin-block: 6svh; padding: 18px 0; overflow: hidden; contain: layout paint; }
.reel__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel__track { display: flex; width: max-content; }
.js .reel__track { animation: reel-drift var(--reel-dur, 60s) linear infinite; will-change: transform; }
.reel__frame {
  flex: none; height: var(--h); aspect-ratio: var(--shape); margin-right: var(--gap);   /* margin, not gap: keeps the loop exact */
  position: relative; perspective: 1100px;
}
/* Each frame is a two-sided card. site.js turns one card over at a time (a slow half-turn, like
   turning over a print), so a different photo shows on the back (Ramon, 2026-11-20). */
.reel__card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.7s cubic-bezier(.65, .02, .22, 1); }
.reel__frame.is-turned .reel__card { transform: rotateY(180deg); }
.reel__face {
  position: absolute; inset: 0; overflow: hidden; background: #135c86;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 18px 40px -18px rgba(8, 23, 36, .55), 0 2px 6px rgba(8, 23, 36, .18);
}
.reel__face--back { transform: rotateY(180deg); }
/* "Golden hour" cinematic grade on every strip photo, at 50% strength (Ramon's slider pick,
   2026-11-20): a soft warm tint, light edge shading and faint film grain, so the mixed Pexels
   photos read as one set. */
.reel__face img { filter: sepia(.11) saturate(1.09) contrast(1.04) brightness(.985); }
.reel__face::before, .reel__face::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.reel__face::before {
  opacity: .5; mix-blend-mode: multiply;
  background: radial-gradient(120% 90% at 50% 35%, rgba(0, 0, 0, 0) 45%, rgba(40, 18, 0, .45) 100%),
              linear-gradient(180deg, rgba(255, 170, 80, .18), rgba(255, 120, 40, .08) 60%, rgba(20, 10, 0, .18));
}
.reel__face::after {
  opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-motion: reduce) { .reel__card { transition: none; } }
.reel__frame b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 3vw, 40px); text-shadow: 0 2px 12px rgba(8, 23, 36, .35); }
.reel__frame small { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
@keyframes reel-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 599px) { .reel { --h: 170px; --gap: 16px; margin-block: 4svh; padding: 12px 0; } }   /* phones: 113 × 170 */
@media (prefers-reduced-motion: reduce) { .js .reel__track { animation: none; } }

/* Home: three fixed video spots between the Loan Programs / Calculator row and "Who you'll
   work with" (Ramon, 2026-11-20): 200px tall, 4px apart, 28px extra space above and below. No tilt. */
.vrow { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 28px 0; }
.vrow > div { height: 200px; position: relative; overflow: hidden; background: #0b2233; }
/* The still photo sits underneath; site.js adds two <video> layers per spot and fades the next clip
   in ON TOP of the one playing (so there is never a dark dip), then hides the old one. */
.vrow img, .vrow video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vrow video { z-index: 1; opacity: 0; transition: opacity 1.6s cubic-bezier(.45, 0, .25, 1); will-change: opacity; transform: translateZ(0); backface-visibility: hidden; pointer-events: none; }
.vrow video.is-top { z-index: 2; }
.vrow video.is-on { opacity: 1; }
/* phones: ONE video across the full width, shaped like the video (16:9), so the whole picture shows
   with nothing cut off (Ramon's pick). The side spots are hidden and site.js doesn't load them; the
   one video plays all 12 clips (middle and side). Tablets and computers keep the three spots. */
@media (max-width: 599px) {
  .vrow { margin: 18px 0; grid-template-columns: 1fr; }
  .vrow > div { height: auto; aspect-ratio: 16 / 9; }
  .vrow > div:not([data-pool="mid"]) { display: none; }
}
@media (min-width: 600px) and (max-width: 1099px) { .vrow > div { height: 136px; } }   /* tablets: Ramon's pick */

/* ---------- 10. Home: bento tiles ---------- */
.bento { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento__wide { grid-column: 1 / -1; } }
.btile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: clamp(520px, 52vw, 640px);
  padding: clamp(44px, 5vw, 64px) var(--pad-x) 0;
  border-radius: var(--r-tile); overflow: hidden; isolation: isolate;
  background: var(--mist);
}
.btile .h-l { font-size: clamp(25.5px, 3.15vw, 40.5px); }   /* box headlines: size picked by Ramon with a slider (75% of the first try) */
.btile .lead { font-size: clamp(17px, 1.5vw, 21px); max-width: 26rem; margin-inline: auto; margin-top: 10px; }
.btile .ctas { margin-top: 18px; justify-content: center; }
/* tiles without a picture: content sits in the middle, equal space above and below */
.btile--center { justify-content: center; padding-bottom: clamp(44px, 5vw, 64px); }
.btile__art { position: relative; flex: 1; width: 100%; display: grid; place-items: center; padding: 28px 0 40px; }
.btile--night { background: var(--night); color: var(--on-night); }
.btile--night .lead { color: var(--on-night-2); }
.btile--night .eyebrow { color: #7fc0ea; }
.btile--sky { background: linear-gradient(180deg, #f2f9fd 0%, #d8ecf8 100%); }
.btile--white { background: #fff; border: 1px solid var(--line-2); }
/* The last row is three boxes side by side on computers (Ramon, 2026-11-21): the grid has six
   tracks, normal boxes take three, the thirds take two, so the gaps stay exactly the same. */
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento > * { grid-column: span 3; }
  .bento > .bento__wide, .bento > .vrow { grid-column: 1 / -1; }
  .bento > .bento__third { grid-column: span 2; }
  .bento__third .hellos { font-size: clamp(56px, 7.4vw, 124px); }   /* "Hola." fits the narrower box */
  .bento__third .ring { width: min(240px, 84%); }                   /* the 8-steps circle keeps room for "steps" */
  .bento__third .ring__num { font-size: clamp(48px, 4.6vw, 80px); }
}
/* Broker vs. bank box: your home in the middle, linked to six lenders. The lines draw in and the
   lenders appear one by one as the box rises; everything is simply shown without motion. */
.has-scene .bento > .btile.bento__third.btile--sky { background: linear-gradient(180deg, #eef7fc 0%, #d6ebf8 100%); }
.lnet { position: relative; width: min(240px, 74%); aspect-ratio: 1; }
.lnet > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lnet line { stroke: rgba(19, 92, 134, .32); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1s var(--ease); }
.is-in .lnet line { stroke-dasharray: 100 0; }
.lnet line:nth-child(2) { transition-delay: 60ms; } .lnet line:nth-child(3) { transition-delay: 120ms; }
.lnet line:nth-child(4) { transition-delay: 180ms; } .lnet line:nth-child(5) { transition-delay: 240ms; } .lnet line:nth-child(6) { transition-delay: 300ms; }
.lnet__hub {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: linear-gradient(135deg, #135c86, #1e86bd);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .7), 0 18px 34px -12px rgba(19, 92, 134, .6);
}
.lnet__hub .icon { width: 42%; height: 42%; stroke-width: 1.6; }
.lnet__node {
  position: absolute; left: var(--x); top: var(--y); width: 18%; aspect-ratio: 1;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ocean);
  box-shadow: 0 10px 20px -10px rgba(8, 23, 36, .35);
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(350ms + var(--d, 0) * 80ms);
}
.is-in .lnet__node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.lnet__node .icon { width: 46%; height: 46%; }
.lnet__label { margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--muted); }
html:not(.js) .lnet line { stroke-dasharray: 100 0; }
html:not(.js) .lnet__node { opacity: 1; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) {
  .lnet line { stroke-dasharray: 100 0; transition: none; }
  .lnet__node { opacity: 1; transform: translate(-50%, -50%); transition: none; }
}
/* The whole tile is clickable through its "Learn more" link */
.btile__link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.btile:has(.btile__link) { cursor: pointer; }
/* The "Where Your Goals" box works the same way: anywhere in it opens About (Ramon, 2026-11-21) */
#intro:has(.btile__link) { cursor: pointer; }
@media (hover: hover) {
  .btile:has(.btile__link) { transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms), 0s, 0s; }  .btile:has(.btile__link):hover { transform: scale(1.008); box-shadow: var(--shadow-card); }
}
/* Home boxes rise in quickly as you scroll (Ramon: "more faster"): they start just before they
   come onto the screen, take 0.4s (was 1s), and the box beside follows by 40ms. */
.js .bento > .btile[data-reveal], .js #intro[data-reveal], .js .welcomes[data-reveal] {   /* the "Where Your Goals" box and "Welcome." behave the same (Ramon) */
  transition: opacity .4s var(--ease), transform .45s var(--ease), box-shadow .6s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms), calc(var(--i, 0) * 40ms), 0s;
}
.js .bento > .btile[data-reveal]:not(.is-in), .js #intro[data-reveal]:not(.is-in), .js .welcomes[data-reveal]:not(.is-in) { transform: translate3d(0, 18px, 0); }
.js .bento > .btile[data-reveal][data-from="top"]:not(.is-in),
.js #intro[data-reveal][data-from="top"]:not(.is-in),
.js .welcomes[data-reveal][data-from="top"]:not(.is-in) { transform: translate3d(0, -18px, 0); }   /* scrolling back up: drifts down into place */
@media (hover: hover) { .js .bento > .btile[data-reveal].is-in:hover { transition-delay: 0s; } }

/* Ramon's final look for the home boxes (picked live in a preview): square corners,
   tight 10px gaps, the light boxes in solid white, and the two navy boxes
   ("From Pre-Approval to Closing" and the closing box) kept as see-through glass. */
.has-scene main { --gap: 10px; }
.has-scene #intro, .has-scene .bento > .btile, .has-scene .cta-closing { border-radius: 0; }
.has-scene #intro,
.has-scene .bento > .btile:not(.btile--night) {
  background: #fff; border-color: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
/* Under the mouse: a faint light follows the pointer (20% strength, set by Ramon with a
   slider) and the box leans very slightly toward it. Mouse only (site.js); no lean with
   reduced motion. The closing box gets the light but does not lean. */
.has-scene #intro::before, .has-scene .bento > .btile::before, .has-scene .cta-closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), var(--glow, rgba(30, 134, 189, .10)), transparent 62%);
  opacity: 0; transition: opacity .35s ease;
}
.has-scene .bento > .btile--night, .has-scene .cta-closing { --glow: rgba(160, 215, 250, .16); }
.has-scene #intro.is-pointer::before, .has-scene .bento > .btile.is-pointer::before, .has-scene .cta-closing.is-pointer::before { opacity: .2; }
/* The two big boxes (the statement and "Who you'll work with") lean less. The same angle moves
   their far edges about twice as much, so the lean felt stronger there (Ramon). 1 = the normal
   lean of the other boxes (Ramon picked 45% with a slider); site.js reads this when the mouse comes in. */
.has-scene #intro, .has-scene .bento > .bento__wide { --tilt-k: .45; }
@media (prefers-reduced-motion: no-preference) {
  .js .has-scene #intro.is-in.is-pointer, .js .has-scene .bento > .btile.is-in.is-pointer {
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .2s ease-out, opacity .4s var(--ease), box-shadow .6s var(--ease);
    transition-delay: 0s;
  }
}

/* chips cloud (programs tile) */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 460px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-pill);
  background: #fff; box-shadow: 0 1px 2px rgba(8,23,36,.05), 0 8px 24px -14px rgba(8,23,36,.28);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
}
.chip .icon { color: var(--ocean); }
.js .chips .chip { opacity: 0; transform: translateY(18px) scale(.92); transition: opacity .3s var(--ease), transform .4s var(--ease-out); transition-delay: calc(var(--i, 0) * 25ms); }   /* quick (Ramon) */
.js .is-in .chips .chip { opacity: 1; transform: none; }
.chip:nth-child(3n+1) { animation: float 6s ease-in-out infinite; }
.chip:nth-child(3n+2) { animation: float 7s ease-in-out -2s infinite; }
.chip:nth-child(3n) { animation: float 8s ease-in-out -4s infinite; }

/* mini donut (calculator tile) */
.mini-calc { position: relative; width: min(280px, 72%); aspect-ratio: 1; }
.mini-calc svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-calc circle { fill: none; stroke-width: 16; stroke-linecap: butt; }
.mini-calc .seg { stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease), stroke-dashoffset .8s var(--ease); }
.mini-calc__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mini-calc__center strong { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mini-calc__center span { font-size: 13px; color: var(--muted); }

/* journey ring (night tile) */
.ring { position: relative; width: min(260px, 66%); aspect-ratio: 1; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring__track { stroke: rgba(255,255,255,.1); }
.ring__bar { stroke: url(#g-ring); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s var(--ease); }
.is-in .ring__bar { stroke-dasharray: 100 0; }
.ring__num { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ring__label { position: absolute; bottom: 26%; font-size: 13px; color: var(--on-night-2); }

/* Ramon + Standard Mortgage card (wide home tile): Ramon left, company right, on every screen */
.company { padding: 26px 0 clamp(28px, 4vw, 48px); }
.company__card {
  container-type: inline-size;
  width: min(100%, 880px); margin-inline: auto; padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 34px) 18px;
  border-radius: 24px; text-align: left;
  background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(8, 23, 36, .04), 0 18px 44px -24px rgba(8, 23, 36, .35);
}
/* always side by side (Ramon's choice), a divider between. Both sides share one row grid
   (subgrid), so picture, name, title and details line up even when a name takes two lines. */
.company__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(4, auto); row-gap: 0; }
.company__side { min-width: 0; display: grid; grid-row: span 4; grid-template-rows: subgrid; padding-right: clamp(10px, 3cqi, 34px); }
.company__side + .company__side { padding: 0 0 0 clamp(10px, 3cqi, 34px); border-left: 1px solid rgba(8, 23, 36, .1); }
.company__head { display: contents; }
.company__media { height: 96px; display: grid; place-items: center; margin-bottom: 14px; }
/* Ramon's photo sits a little lower than the logo (his request); the logo stays put */
.company__media--photo { --photo-drop: 14px; height: auto; padding-top: var(--photo-drop); }
.company__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #e9ecee; box-shadow: 0 10px 26px -12px rgba(8, 23, 36, .45); }
.company__logo { display: block; width: 172px; height: auto; border-radius: 0; }   /* square corners: rounding clipped the "STANDARD" box */
.company__name { align-self: end; text-align: center; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.company__sub { align-self: start; text-align: center; margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.company__list { margin: 8px 0 0; align-self: start; }
.company__row { padding: 13px 0; border-top: 1px solid rgba(8, 23, 36, .08); }
.company__row dt {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.company__row dt .icon { width: 16px; height: 16px; color: var(--ocean); }
.company__row dd { margin: 4px 0 0 24px; font-size: 15.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.company__row dd a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease); }
.company__row dd a:hover { color: var(--link); }
.company__verify {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  margin-top: 14px; padding-top: 16px; border-top: 1px solid rgba(8, 23, 36, .1);
  font-size: 13px; color: var(--muted);
}
.company__verify a { color: var(--link); }
.company__verify a::after { content: " \2197"; font-size: .85em; }

/* narrower cards: same side-by-side layout, scaled down in two steps to fit two columns */
@container (max-width: 640px) {
  .company__media { height: 80px; margin-bottom: 12px; }
  .company__media--photo { --photo-drop: 12px; height: auto; }
  .company__photo { width: 80px; height: 80px; }
  .company__logo { width: min(100%, 140px); }
  .company__name { font-size: 19px; }
  .company__sub { font-size: 12px; }
  .company__row { padding: 11px 0; }
  .company__row dt { font-size: 10.5px; letter-spacing: .06em; gap: 6px; line-height: 1.3; }
  .company__row dt .icon { width: 14px; height: 14px; flex: none; }
  .company__row dd { margin: 3px 0 0; font-size: 14px; line-height: 1.4; }
  .company__verify { font-size: 12px; gap: 4px 14px; }
}
@container (max-width: 360px) {
  .company__media { height: 64px; margin-bottom: 10px; }
  .company__media--photo { --photo-drop: 10px; height: auto; }
  .company__photo { width: 64px; height: 64px; }
  .company__logo { width: min(100%, 112px); }
  .company__name { font-size: 16px; }
  .company__sub { font-size: 11px; }
  .company__row { padding: 10px 0; }
  .company__row dt { font-size: 9.5px; letter-spacing: .06em; gap: 5px; line-height: 1.3; }
  .company__row dt .icon { width: 12px; height: 12px; flex: none; }
  .company__row dd { margin: 3px 0 0; font-size: 12.5px; line-height: 1.4; }
  .company__verify { font-size: 11.5px; gap: 4px 12px; }
}

/* portrait (about tile) */
.portrait-orb { position: relative; width: min(300px, 70%); aspect-ratio: 1; }
.portrait-orb::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,109,203,.22), transparent 62%);
  animation: breathe 7s ease-in-out infinite;
}
.portrait-orb img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-float); background: #fff; }

/* hello words (languages tile) */
.hellos { display: grid; place-items: center; height: 1.2em; font-family: var(--serif); font-size: clamp(64px, 11vw, 150px); font-weight: 400; font-style: italic; letter-spacing: -.02em; line-height: 1; overflow: hidden; }
.hellos span {
  grid-area: 1 / 1; opacity: 0; transform: translateY(40%);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ocean);
  padding: 0 .14em .1em .04em;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}
.hellos span.is-on { opacity: 1; transform: none; }
.hellos span.is-off { opacity: 0; transform: translateY(-40%); }
.no-js .hellos span:first-child { opacity: 1; transform: none; }
/* Welcome · Bienvenidos · Bem-vindos on the home photo (Ramon, 2026-11-20). It fills the open gap
   above "Where Your Goals" (so that box keeps its place) and has no background: white to the
   pale blue of "My commitment.", with a soft shadow so it reads on the photo. */
.welcome { height: 50vh; height: 50svh; display: grid; place-items: center; pointer-events: none; }
.welcome + #intro { margin-top: 0; }
.welcomes span { background: linear-gradient(100deg, #ffffff 20%, #c7e5f1 80%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 4px 22px rgba(8, 23, 36, .45)); }
@media (max-width: 599px) {
  .welcome { height: 10vh; height: 10svh; }
  /* phones (Ramon): up over the bay, under the skyline (20% of a screen higher, his slider pick). It
     only shows once Ramon's photo card at the bottom of the first screen has faded away, so they never overlap. */
  .welcomes { font-size: 46px; position: relative; top: -20vh; top: -20svh; top: round(-20svh, 1px); }
  .js .hero:not(.is-past-card) ~ .welcome .welcomes { opacity: 0; }
}
@media (min-width: 600px) {   /* Ramon's slider picks: 85% of the Hello size; the word sits 19% of a screen
                                  below the top of the gap; the gap is 70% of a screen (more room under the word) */
  .welcome { height: 70vh; height: 70svh; }
  /* moved up with position (not transform) so the letters land on whole pixels and stay crisp */
  .welcomes { position: relative; top: -16vh; top: -16svh; top: round(-16svh, 1px); font-size: calc(clamp(64px, 11vw, 150px) * .85); }
}
/* Ramon: changes faster than the Hello tile (every 1.4 s, set in index.html), with a quicker fade */
.welcomes span { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.lang-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.lang-row b { color: var(--ink); font-weight: 600; }

/* ---------- 11. Segmented control & program cards ---------- */
.seg-bar {
  position: sticky; top: var(--nav-h); z-index: 5;
  padding: 12px 0;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: var(--r-tile);
}
.seg {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  width: fit-content; max-width: 100%; margin-inline: auto; padding: 4px;
  border-radius: var(--r-pill); background: rgba(8, 23, 36, .06);
}
.seg__btn {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(8,23,36,.14); }
.seg-count { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 599px) {
  .seg-bar { position: static; background: transparent; padding: 0 0 8px; }
  .seg { background: transparent; padding: 0; gap: 8px; }
  .seg__btn { background: rgba(8, 23, 36, .06); }
  .seg__btn[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
}

.pgrid { display: grid; gap: var(--gap); margin-top: 8px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pcard {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  padding: 32px 30px 24px; border-radius: var(--r-card);
  background: var(--mist); isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.pcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(18,109,203,.10), transparent 60%);
  transition: opacity .5s var(--ease);
}
@media (hover: hover) {
  .pcard:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow-card); }
  .pcard:hover::before { opacity: 1; }
}
/* Program cards rise in as you scroll, row by row: within a row each card follows the one
   beside it by a beat (90ms), but there's no growing wait down the list of 16 (the old way
   made the last card wait 2+ seconds). Once shown, the hover lift reacts right away. */
.js .pgrid .pcard[data-reveal] {
  transition: opacity .7s var(--ease), transform .8s var(--ease), box-shadow .45s var(--ease), background-color .45s var(--ease);
  transition-delay: 0s;
}
.js .pgrid .pcard[data-reveal]:not(.is-in) { transform: translate3d(0, 26px, 0); }
@media (min-width: 640px) and (max-width: 1039px) {
  .js .pgrid .pcard[data-reveal].is-in:nth-child(2n) { transition-delay: 90ms; }
}
@media (min-width: 1040px) {
  .js .pgrid .pcard[data-reveal].is-in:nth-child(3n+2) { transition-delay: 90ms; }
  .js .pgrid .pcard[data-reveal].is-in:nth-child(3n) { transition-delay: 180ms; }
}
@media (hover: hover) { .js .pgrid .pcard[data-reveal].is-in:hover { transition-delay: 0s; } }   /* hover lift: no wait */
.pcard__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 16px; background: #fff; color: var(--ocean);
  box-shadow: 0 1px 2px rgba(8,23,36,.05), 0 6px 18px -10px rgba(8,23,36,.25);
}
.pcard__icon .icon { width: 26px; height: 26px; }
.pcard__cat { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--link); margin-bottom: 6px; }
.pcard__title { font-size: 24px; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 10px; }
.pcard__desc { flex: 1; font-size: 16px; color: var(--muted); }
.pcard__links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 14px; }
.pcard__links .link { font-size: 15px; }
/* Ramon: the program cards match the home boxes, square and tightly packed (10px), and
   they float: each drifts very gently up and down, a little out of step with its
   neighbours. They stand out from the background in 3D: a lit top edge, a thin shaded
   bottom edge, and a stack of shadows from a close contact shadow to a wide soft one.
   Under the mouse a card lifts, tips toward the pointer and its icon rises off the card.
   No drift with reduced motion. */
.pgrid { gap: 10px; }
.pcard {
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(8, 23, 36, .07),
    0 1px 1px rgba(8, 23, 36, .05), 0 3px 6px rgba(8, 23, 36, .05),
    0 10px 18px -4px rgba(8, 23, 36, .08), 0 26px 44px -16px rgba(8, 23, 36, .24);
}
.pcard__icon { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
@media (hover: hover) {
  .pgrid .pcard:hover, .js .pgrid .pcard[data-reveal].is-in:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px);
    transition: opacity .7s var(--ease), transform .25s ease-out, box-shadow .45s var(--ease), background-color .45s var(--ease);
    box-shadow:
      inset 0 1px 0 #fff, inset 0 -1px 0 rgba(8, 23, 36, .07),
      0 2px 3px rgba(8, 23, 36, .05), 0 8px 14px rgba(8, 23, 36, .06),
      0 22px 36px -8px rgba(8, 23, 36, .12), 0 48px 70px -24px rgba(8, 23, 36, .32);
  }
  .pcard:hover .pcard__icon { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(8, 23, 36, .06), 0 14px 26px -10px rgba(8, 23, 36, .35); }
}
@media (prefers-reduced-motion: no-preference) {
  .pcard { animation: pfloat 7s ease-in-out infinite; }
  .pcard:nth-child(4n+2) { animation-delay: -1.75s; }
  .pcard:nth-child(4n+3) { animation-delay: -3.5s; }
  .pcard:nth-child(4n) { animation-delay: -5.25s; }
}
@keyframes pfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }

/* A category reads like a story (Ramon, inspired by a museum page). "All" keeps the grid
   above. Choosing a category turns the same cards into chapters of one story: they run
   down the page on a thin thread, the one in the middle of the screen is lit and the
   others rest softly. Beside them a floating ring stays in place, shows the icon of the
   program you're reading and fills as you move through (site.js picks the current one). */
.pstage { display: none; }
.pwrap.is-story .pgrid { display: block; position: relative; margin-top: 12px; padding-left: 36px; counter-reset: ch; }
.pwrap.is-story .pgrid::before {
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(19, 92, 134, .28) 10%, rgba(19, 92, 134, .28) 90%, transparent);
}
.pwrap.is-story .pcard {
  counter-increment: ch;
  justify-content: center; min-height: 58vh; min-height: 58svh;
  padding: clamp(36px, 7vh, 72px) 0; overflow: visible;
  background: transparent; box-shadow: none; animation: none;
}
.pwrap.is-story .pcard::before { display: none; }
.pwrap.is-story .pcard::after {
  content: ""; position: absolute; left: -32px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--mist); border: 1.5px solid rgba(19, 92, 134, .35);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.pwrap.is-story .pcard.is-current::after { background: var(--ocean); border-color: var(--ocean); box-shadow: 0 0 0 6px rgba(19, 92, 134, .12); }
.js .pwrap.is-story .pgrid .pcard[data-reveal].is-in { transition-delay: 0s; }
.js .pwrap.is-story .pgrid .pcard[data-reveal].is-in:not(.is-current) { opacity: .3; }
@media (hover: hover) {
  .js .pwrap.is-story .pgrid .pcard[data-reveal].is-in:hover, .pwrap.is-story .pgrid .pcard:hover { transform: none; box-shadow: none; }
}
.pwrap.is-story .pcard__cat { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.pwrap.is-story .pcard__cat::before { content: counter(ch, decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--ocean); }
.pwrap.is-story .pcard__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -.015em; margin-bottom: 16px; }
.pwrap.is-story .pcard__desc { flex: none; max-width: 32rem; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; }
.pwrap.is-story .pcard__links { margin-top: 20px; }
.pwrap.is-story .pcard__icon { width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px; }
@media (max-width: 899px) { .pwrap.is-story .pcard { min-height: 0; padding: 44px 0; } }   /* phones: shorter chapters, less scrolling */

@media (min-width: 900px) {
  .pwrap.is-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); gap: clamp(32px, 5vw, 88px); }
  .pwrap.is-story .pcard__icon { display: none; }   /* the ring shows it */
  .pwrap.is-story .pstage {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
    position: sticky; top: calc(var(--nav-h) + 96px); align-self: start;
    height: calc(100vh - var(--nav-h) - 120px); height: calc(100svh - var(--nav-h) - 120px);
  }
}
.pstage__ring {
  position: relative; width: clamp(220px, 24vw, 330px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #fff 0%, #fff 55%, #f4f9fc 100%);
  box-shadow:
    inset 0 1px 0 #fff, 0 2px 4px rgba(8, 23, 36, .05), 0 14px 28px -10px rgba(8, 23, 36, .12),
    0 40px 80px -30px rgba(19, 92, 134, .45);
  animation: pfloat 7s ease-in-out infinite;
}
.pstage__track { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); transform: rotate(-90deg); overflow: visible; }
.pstage__base, .pstage__bar { fill: none; stroke-width: 1.2; }
.pstage__base { stroke: rgba(19, 92, 134, .16); }
.pstage__bar { stroke: var(--ocean); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .8s var(--ease); }
.pstage__icon { display: grid; place-items: center; color: var(--ocean); transition: opacity .25s var(--ease), transform .45s var(--ease); }
.pstage__icon .icon { width: clamp(70px, 8vw, 104px); height: clamp(70px, 8vw, 104px); stroke-width: 1.2; }
.pstage__icon.is-swap { opacity: 0; transform: scale(.9); }
.pstage__count { display: flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-size: 22px; color: var(--ocean); font-variant-numeric: tabular-nums; }
.pstage__of, .pstage__t { font-size: 15px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pstage__ring { animation: none; } }

/* Flip a box to read the story (Ramon). The page always shows boxes now; on every tab,
   "All" included, clicking a box turns it over and its back opens as a large panel holding
   the story above (the programs of the tab you're on, chapters + floating ring). site.js
   runs the flip. */
.pgrid.is-flippable .pcard { cursor: pointer; }
.pgrid.is-flippable .pcard:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; }
.pflip { position: fixed; inset: 0; z-index: 300; }
.pflip__veil {
  position: absolute; inset: 0; background: rgba(8, 23, 36, .42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.pflip.is-open .pflip__veil { opacity: 1; }
.pflip__front {
  position: fixed; z-index: 1; margin: 0; list-style: none;
  background: #fff; border-radius: 0; opacity: 1; animation: none;
  box-shadow: 0 30px 60px -24px rgba(8, 23, 36, .45);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.pflip__panel {
  position: absolute; z-index: 2;
  top: calc(var(--nav-h) + 20px); bottom: 20px;
  left: max(20px, calc((100% - 1240px) / 2)); right: max(20px, calc((100% - 1240px) / 2));
  display: flex; flex-direction: column; background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 50px 120px -30px rgba(8, 23, 36, .6);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.pflip__head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px 12px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--line-2);
}
.pflip__head .eyebrow { margin: 0; }
.pflip__close {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(8, 23, 36, .06); color: var(--ink); cursor: pointer;
  transition: background-color var(--d-fast) var(--ease);
}
.pflip__close:hover { background: rgba(8, 23, 36, .12); }
.pflip__close .icon { width: 18px; height: 18px; stroke-width: 2; }
.pflip__body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(20px, 4vw, 56px); }
.pflip .pwrap.is-story .pgrid { margin-top: 0; padding-top: 16vh; padding-bottom: 28vh; }
.pflip .pwrap.is-story .pcard { min-height: 46vh; min-height: 46svh; transition: opacity .5s var(--ease); }
.pflip .pwrap.is-story .pcard:not(.is-current) { opacity: .3; }
/* Ramon's longer write-up for each program: only in the story, never on the boxes.
   In the story it is the main text (bigger, darker); the short line above it, which the
   box already shows, steps back to a small soft summary (Ramon). */
.pcard__more { display: none; }
.pflip__body .pwrap.is-story .pcard__desc { font-size: clamp(14px, 1vw, 15px); line-height: 1.55; color: var(--soft); max-width: 32rem; }
/* Ramon chose "option D": the write-up sits under a blue line across the top with a small
   "In detail" label (translated; site.js puts it in data-label). He then made the card's
   baby-blue fill fully see-through with a slider. */
.pflip__body .pcard__more {
  display: block; max-width: 38rem; margin-top: 18px; padding: 14px clamp(16px, 2vw, 22px) 18px;
  background: transparent; border-top: 3px solid var(--ocean);
  font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.62; color: var(--ink);
}
.pflip__body .pcard__more::before {
  content: attr(data-label); display: block; margin-bottom: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ocean);
}
@media (min-width: 900px) { .pflip .pwrap.is-story .pstage { top: 0; } }
/* Story photos (Ramon, 2026-11-20): each program has a Pexels photo behind its ring
   (assets/img/programs/<program>.jpg), clear on the right and fading into white toward the
   text. The photo crossfades with the icon as you scroll. Computers: the tall stage beside the
   text. Phones and tablets (Ramon): the bar at the top of the story, with the same fade toward
   the left, plus a soft fade at its bottom into the text. */
.pstage__photo { display: none; }
.pflip .pstage { isolation: isolate; }
.pflip .pstage__photo { display: block; position: absolute; z-index: -1; overflow: hidden; pointer-events: none; }
/* fades in with the same timing as the lit chapter (.55s), settling from a slight zoom like the icon */
.pflip .pstage__photo img {
  position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.035); transition: opacity .55s var(--ease), transform 1.1s var(--ease);
}
.pflip .pstage__photo img.is-top { z-index: 1; }
.pflip .pstage__photo img.is-on { opacity: 1; transform: scale(1); }
/* the "01 / 09" count sits on a small white pill so it reads on any photo */
.pflip .pstage__count {
  padding: 5px 14px; border-radius: 999px; background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(8, 23, 36, .08);
}
@media (min-width: 900px) {
  .pflip .pstage__photo {
    top: 0; bottom: 0; left: -40px; right: calc(-1 * clamp(20px, 4vw, 56px));
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .25) 22%, rgba(0, 0, 0, .8) 48%, #000 62%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .25) 22%, rgba(0, 0, 0, .8) 48%, #000 62%);
  }
}
/* Phones and tablets (Ramon): each program has its own photo down its right side, inside the
   story text area, so it scrolls with the program and sits beside it while you read. Same left fade
   as on computers, but half strength because the text runs over it, and soft at the top and bottom
   so the photos melt from one program into the next. (site.js adds an img.pcard__photo to each.) */
.pcard__photo { display: none; }
@media (max-width: 899px) {
  .pflip .pstage__photo { display: none; }
  .pflip .pwrap.is-story .pcard { position: relative; isolation: isolate; }
  .pflip .pcard__photo {
    display: block; position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(-1 * clamp(20px, 4vw, 56px));
    width: 48%; height: 100%; object-fit: cover; pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, .4) 48%, rgba(0, 0, 0, .5) 62%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, .4) 48%, rgba(0, 0, 0, .5) 62%), linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
  }
}
@media (prefers-reduced-motion: reduce) { .pflip .pstage__photo img { transition: none; } }
@media (max-width: 899px) {
  .pflip__panel { top: 10px; bottom: 10px; left: 10px; right: 10px; }
  .pflip .pwrap.is-story { display: flex; flex-direction: column; }
  .pflip .pwrap.is-story .pstage {
    order: -1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 18px;
    position: sticky; top: 0; z-index: 2; height: auto !important;
    margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 14px 0;
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-2);
  }
  .pflip .pstage__ring { width: 76px; animation: none; }
  .pflip .pstage__track { inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); }
  .pflip .pstage__icon .icon { width: 32px; height: 32px; }
  .pflip .pwrap.is-story .pcard__icon { display: none; }
  .pflip .pwrap.is-story .pgrid { padding-top: 4vh; }
  .pflip .pwrap.is-story .pcard { min-height: 0; }
}
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.28,.11,.32,1); }

/* ---------- 12. Calculator ---------- */
.calc-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1000px) { .calc-grid { grid-template-columns: 380px minmax(0, 1fr); } }
.card {
  border-radius: var(--r-card); background: #fff; padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
}
.card--mist { background: var(--mist); border-color: transparent; }
.card h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 18px; }
.calc-inputs { display: grid; gap: 16px; }
@media (min-width: 600px) and (max-width: 999px) { .calc-inputs { grid-template-columns: 1fr 1fr; } .calc-inputs h3, .calc-inputs .reset-row { grid-column: 1 / -1; } }
.cfield { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.cfield > span { line-height: 1.3; }
/* Label + a small Year / Month switch on one line (Ramon: two tiny buttons, not a dropdown) */
.cfield__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ptog { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-pill); background: rgba(8, 23, 36, .06); }
.ptog__btn {
  min-height: 24px; padding: 0 10px; border: 0; border-radius: var(--r-pill); background: transparent;
  font: inherit; font-size: 12px; font-weight: 500; line-height: 1; color: var(--muted); cursor: pointer;
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease), box-shadow var(--d-base) var(--ease);
}
.ptog__btn:hover { color: var(--ink); }
.ptog__btn[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(8, 23, 36, .14); }
.ptog__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 109, 203, .28); }
.unit { display: flex; gap: 6px; }
.cinput, .cselect {
  width: 100%; min-width: 0; min-height: 46px; padding: 0 14px;
  border: 1px solid #cfdbe2; border-radius: 12px; background: #fff;
  font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums;
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.cselect, .select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.unit .cselect { width: 72px; flex: none; padding: 0 28px 0 12px; background-position: right 8px center; }
.cinput:focus-visible, .cselect:focus-visible { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(18,109,203,.22); }
.cinput:invalid { border-color: var(--danger); }
.reset-row { display: flex; justify-content: flex-end; }
.text-btn { border: 0; background: none; padding: 0; min-height: 44px; color: var(--link); font-size: 15px; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.calc-results { container-type: inline-size; }
.summary { display: grid; gap: var(--gap); }
/* the monthly payment gets the full width on top; the two totals share the row below */
@container (min-width: 480px) { .summary { grid-template-columns: 1fr 1fr; } .summary__item--main { grid-column: 1 / -1; } }
.summary__item { padding: 22px 24px; border-radius: var(--r-card); background: var(--mist); container-type: inline-size; }
.summary__item span { display: block; font-size: 13px; color: var(--muted); }
/* amounts never break mid-number; they shrink to fit their box (room for "$1,234,567") */
.summary__item strong { display: block; margin-top: 6px; font-size: clamp(18px, 16cqi, 34px); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__item--main { background: var(--ocean); color: #fff; }
.summary__item--main span { color: #cfe6f5; }
.results-grid { display: grid; gap: var(--gap); margin-top: var(--gap); }
@media (min-width: 1200px) { .results-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.breakdown { display: grid; gap: 24px; align-items: center; }
@media (min-width: 640px) { .breakdown { grid-template-columns: 220px 1fr; } }
.donut { position: relative; width: 220px; aspect-ratio: 1; margin-inline: auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut .seg { transition: stroke-dasharray .7s var(--ease), stroke-dashoffset .7s var(--ease); }
.donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut__center strong { font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.donut__center span { font-size: 12px; color: var(--muted); }
.legend { display: grid; }
.legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.legend b { font-weight: 500; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line-2); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.program-note { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--mist); font-size: 13px; line-height: 1.55; color: var(--muted); }
.payoff .cfield { margin-bottom: 14px; }
.savings { display: grid; gap: 14px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.savings span { display: block; font-size: 12px; color: var(--muted); }
.savings strong { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--azure); font-variant-numeric: tabular-nums; }
.calc-error { padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 14px; margin-bottom: var(--gap); }
.assump { margin-top: 18px; font-size: 13px; color: var(--muted); }
.assump summary { cursor: pointer; font-weight: 500; color: var(--link); min-height: 44px; display: flex; align-items: center; }
.assump p { margin-top: 6px; line-height: 1.6; }
.assump a { color: var(--link); text-decoration: underline; }

/* ---------- 13. About ---------- */
.profile-photo {
  position: relative; border-radius: var(--r-tile); overflow: hidden;
  background: linear-gradient(180deg, #e9f5fb, #c7e5f1);
  aspect-ratio: 4 / 5; max-width: 480px; margin-inline: auto; width: 100%;
}
.profile-photo img { position: absolute; left: 50%; top: 45%; width: 76%; translate: -50% -50%; border-radius: 50%; box-shadow: var(--shadow-float); }
.profile-photo::before {
  content: ""; position: absolute; left: 50%; top: 45%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(18,109,203,.18), transparent 65%); animation: breathe 7s ease-in-out infinite;
}
.profile-photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1;
  display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 600;
}
.profile-photo figcaption span { font-weight: 400; color: var(--muted); }
.bio p + p { margin-top: 16px; }
.bio p { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
/* Ramon's bio (2026-11-19): two paragraphs, a "Read my full story" button that smoothly opens
   the rest, then his closing line in the headline font. The photo stays in view beside it. */
.split--bio { align-items: start; }
@media (min-width: 900px) { .split--bio .profile-photo { position: sticky; top: calc(var(--nav-h) + 32px); } }
.bio__text { margin-top: 22px; }
.bio__text p { hyphens: none; -webkit-hyphens: none; }   /* the bio's soft hyphens only break where it's justified (≥1100px) */
.bio__moreIn p { margin-top: 16px; }
.bio__more.is-collapsible { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .7s var(--ease), opacity .5s var(--ease); }
.bio__more.is-collapsible.is-open { grid-template-rows: 1fr; opacity: 1; }
.bio__more.is-collapsible > .bio__moreIn { overflow: hidden; min-height: 0; }
.bio__toggle {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 42px; padding: 0 18px;
  border: 1px solid rgba(19, 92, 134, .25); border-radius: var(--r-pill); background: #fff;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ocean); cursor: pointer;
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease);
}
.bio__toggle:hover { background: #f1f8fc; border-color: rgba(19, 92, 134, .45); }
.bio__toggle .icon { width: 16px; height: 16px; stroke-width: 2; transition: transform .45s var(--ease); }
.bio__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.bio__toggleClose, .bio__toggle[aria-expanded="true"] .bio__toggleOpen { display: none; }
.bio__toggle[aria-expanded="true"] .bio__toggleClose { display: inline; }
.bio .bio__close { margin-top: 24px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.45; color: var(--ocean); }
/* Computers (Ramon): the whole story fits in the box with no button. The photo column is
   narrower and the bio flows in two columns, with the closing line across both.
   Tablets and phones keep "Read my full story" (site.js lifts the fold at this width). */
@media (min-width: 1100px) {
  .split--bio { grid-template-columns: minmax(280px, .6fr) 1.4fr; align-items: center; }
  .split--bio .profile-photo { position: relative; top: auto; }
  .split--bio .bio__text { column-count: 2; column-gap: clamp(32px, 3vw, 48px); }
  .split--bio .bio__text p { font-size: 16px; line-height: 1.62; orphans: 3; widows: 3; }
  /* both edges of each column even (Ramon's request); soft hyphens come from bio-hyphens.js */
  .split--bio .bio__text p:not(.bio__close) { text-align: justify; hyphens: manual; -webkit-hyphens: manual; text-wrap: wrap; }   /* not "pretty": with justify it leaves loose lines */
  .split--bio .bio__more.is-collapsible { display: block; opacity: 1; }
  .split--bio .bio__more.is-collapsible > .bio__moreIn { overflow: visible; }
  .split--bio .bio__toggle { display: none; }
  .split--bio .bio .bio__close { column-span: all; margin-top: 26px; font-size: clamp(20px, 1.6vw, 24px); }
}
.creds { display: grid; gap: 10px; margin-top: 26px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.creds .icon { color: var(--ocean); margin-top: 2px; }

.pillars { display: grid; gap: var(--gap); margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 680px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { padding: 30px 26px; border-radius: var(--r-card); background: #fff; position: relative; isolation: isolate; overflow: hidden; }
.tile--white .pillar { background: var(--mist); }
.pillar .pcard__icon { margin-bottom: 18px; }
.pillar h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; color: #000; }   /* true black so the titles stand out on the photos (Ramon) */
/* About, "Why work with Ramon": a photo across the top of each box, behind the icon, fading out
   before the title (Ramon's picks with sliders: from top, 65% strength, fade ends at 86% of the
   photo). The photo is a fixed 132px tall, the height he tuned it at, so the fade line sits at the
   same spot above the title on every screen, even where the boxes are taller.
   Pexels 8815909, 8730001, 9869384, 7982798. */
.pillar__photo {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; width: 100%; height: 132px;
  object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .455) 38.7%, transparent 86%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .455) 38.7%, transparent 86%);
}
.pillar p { font-size: 16px; color: var(--muted); }

.mlist { display: grid; gap: 0; margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .mlist { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.mitem { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12); }
.mitem__num { font-size: 15px; font-weight: 600; color: #7fc0ea; font-variant-numeric: tabular-nums; padding-top: 4px; }
.mitem h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 6px; }
.mitem p { color: var(--on-night-2); font-size: 16px; }

/* ---------- 14. Resources: journey explorer ---------- */
.journey { display: grid; gap: var(--gap); margin-top: clamp(36px, 4vw, 56px); text-align: left; }
@media (min-width: 900px) { .journey { grid-template-columns: 320px minmax(0, 1fr); align-items: start; } }
.journey__tabs { display: grid; gap: 6px; }
@media (max-width: 899px) { .journey__tabs { grid-template-columns: 1fr 1fr; } }
.journey__tab {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 16px;
  border: 0; border-radius: 16px; background: transparent; color: var(--on-night-2);
  text-align: left; font-size: 15px; font-weight: 500; line-height: 1.3;
  transition: background-color var(--d-base) var(--ease), color var(--d-base) var(--ease);
}
.journey__tab span { font-size: 13px; color: #7fc0ea; font-variant-numeric: tabular-nums; }
.journey__tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.journey__tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: #fff; }
.journey__panel { position: relative; border-radius: var(--r-card); background: #fff; color: var(--ink); padding: clamp(24px, 3.5vw, 44px); min-height: 460px; }
@media (min-width: 900px) { .journey__panel { position: sticky; top: calc(var(--nav-h) + 24px); } }
.journey__bar { height: 4px; border-radius: 4px; background: var(--mist-2); overflow: hidden; margin-bottom: 26px; }
.journey__bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(var(--jp, .125)); transform-origin: left; transition: transform .6s var(--ease); }
.stage { animation: stage-in .5s var(--ease); }
/* Hidden copies of all 8 steps (built in site.js) keep the box at the height of the longest step on a computer. */
#stage-body { display: grid; }
#stage-body > .stage { grid-area: 1 / 1; align-self: start; }
.stage--ghost { visibility: hidden; pointer-events: none; animation: none; }
@media (max-width: 899px) { .stage--ghost { display: none; } }
.stage__num { font-size: 14px; font-weight: 600; color: var(--link); }
.stage h3 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 8px 0 12px; }
.stage > p { font-size: 18px; color: var(--muted); }
.stage__roles { display: grid; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .stage__roles { grid-template-columns: 1fr 1fr; } }
.stage__roles h4 { font-size: 13px; color: var(--ocean); margin-bottom: 4px; }
.stage__roles p { font-size: 15px; color: var(--ink-2); }
.stage__tip { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: var(--mist-2); font-size: 14px; color: var(--ink-2); }
.stage__tip strong { display: block; font-size: 12px; color: var(--ocean); margin-bottom: 2px; }
.stage__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.stage__nav .text-btn:disabled { opacity: .35; cursor: default; text-decoration: none; }

/* Resources: Mortgage broker vs. bank (Ramon, 2026-11-21). The same explorer as the journey, on a
   light tile: dark tab text, the chosen tab lifts as a white pill, and the white card keeps the
   height of the longest point on computers so nothing below jumps. */
#options, #journey { scroll-margin-top: calc(var(--nav-h) + 12px); }   /* the home boxes link here */
.options__sub { display: inline-block; margin-top: .3em; font-size: .5em; line-height: 1.25; }
.options__lead { max-width: 46rem; margin-inline: auto; }
.journey--light .journey__tab { color: var(--ink-2); }
.journey--light .journey__tab span { color: var(--ocean); }
.journey--light .journey__tab:hover { background: rgba(255, 255, 255, .65); color: var(--ink); }
.journey--light .journey__tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 10px 26px -14px rgba(8, 23, 36, .28); }
/* a long name splits into two even lines ("Direct Communication & / Problem-Solving"), never "Problem- / Solving" */
.journey--light .journey__tab b { text-wrap: balance; }
.options__panel { min-height: 0; box-shadow: 0 30px 60px -32px rgba(8, 23, 36, .28); isolation: isolate; overflow: hidden; }
/* A photo for each point, in a band along the bottom of the card behind Previous / Next, fading
   up toward the text (Ramon picked "Along bottom" at 50% with a slider). It crossfades with the
   point (site.js). Pexels 4118101, 8292895, 38880963, 8292887 (assets/img/options). */
.options__photos { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.options__photos img {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; object-fit: cover;
  opacity: 0; transition: opacity .55s var(--ease);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .3) 45%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .3) 45%, transparent 100%);
}
.options__photos img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .options__photos img { transition: none; } }
.options__body { display: grid; }
.options__body > .options__item { grid-area: 1 / 1; align-self: start; animation: none; }
.options__item.is-on { animation: stage-in .5s var(--ease); }
.options__item:not(.is-on) { visibility: hidden; pointer-events: none; }
@media (max-width: 899px) { .options__item:not(.is-on) { display: none; } }
.options__close { margin-top: clamp(32px, 4vw, 52px); }
.options__close-t { font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.9vw, 34px);   /* Ramon: a little bigger (was 22–30px); 34px picked with a slider */ line-height: 1.25; color: var(--ink); margin-bottom: 10px; }
.options__close .fine { max-width: 40rem; margin-inline: auto; }

/* FAQ */
.faq { max-width: 820px; margin: clamp(32px, 4vw, 52px) auto 0; text-align: left; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 68px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.02em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q .icon { width: 22px; height: 22px; color: var(--ocean); transition: transform .45s var(--ease); }
.faq__item[open] .faq__q .icon { transform: rotate(45deg); }
.faq__a { padding: 0 40px 22px 0; font-size: 17px; color: var(--muted); }
.faq__item[open] .faq__a { animation: faq-in .5s var(--ease); }

/* Checklist dialog */
.dialog {
  width: min(92vw, 560px); max-height: 88vh; padding: clamp(24px, 4vw, 40px);
  border: 0; border-radius: var(--r-tile); background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(8,23,36,.3);
}
.dialog[open] { animation: dialog-in .45s var(--ease-out); }
.dialog::backdrop { background: rgba(8, 23, 36, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog__close { float: right; display: grid; place-items: center; width: 40px; height: 40px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: var(--mist); font-size: 22px; }
.checklist { counter-reset: c; display: grid; gap: 14px; margin: 22px 0 24px; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 16px; color: var(--ink-2); }
.checklist li::before { content: counter(c); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist-2); color: var(--ocean); font-size: 13px; font-weight: 600; }

/* ---------- 15. Contact & pre-approval form ---------- */
.ccards { display: grid; gap: var(--gap); margin-top: clamp(32px, 4vw, 52px); }
@media (min-width: 560px) { .ccards { grid-template-columns: 1fr 1fr; } }
/* four in a row from 1,150px (was 1,000px), so the email always fits on one line at a readable size (Ramon) */
@media (min-width: 1150px) { .ccards { grid-template-columns: repeat(4, 1fr); } }
.ccards > li { display: flex; }
.ccard {
  width: 100%;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 26px 24px; border-radius: var(--r-card); background: #fff; text-align: left;
  position: relative; isolation: isolate; overflow: hidden; container-type: inline-size;
}
/* Ramon: these four cards stay steady. No lift on hover, and no fade-in on scroll (contact.html). */
.ccard .pcard__icon { margin-bottom: 12px; }
.ccard strong { font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
/* A photo on each card's right side, fading into the text (Ramon picked: fade from the side, full
   strength). Pexels 4909336 call, 6669795 text, 7821760 email, 7821577 apply (assets/img/contact). */
.ccard__photo {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: 0; width: 78%; height: 100%;
  object-fit: cover; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .85) 70%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, .35) 35%, rgba(0, 0, 0, .85) 70%, #000 100%);
}
/* The phone number, email and "Secure application portal": ocean blue on a soft white box, so
   they read clearly on the photo (Ramon's picks). */
.ccard__line {
  font-size: 15px; color: var(--ocean);
  padding: 3px 10px; margin-left: -10px; border-radius: 10px;
  background: rgba(255, 255, 255, .88); box-shadow: 0 2px 10px rgba(8, 23, 36, .08);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* "Save my contact" under the four cards: one tap adds Ramon to the visitor's phone (Ramon, 2026-11-21) */
.csave { margin-top: clamp(22px, 3vw, 34px); display: grid; justify-items: center; gap: 10px; text-align: center; }
.csave .btn .icon { width: 20px; height: 20px; }
.csave .fine { margin: 0; }
/* the email stays on one line (Ramon): it shrinks a little only when the card is narrow, never
   below about 13.7px with the four-in-a-row breakpoint above */
.ccard__email { white-space: nowrap; font-size: min(15px, calc(100cqi / 14)); }

.apply-grid { display: grid; gap: var(--gap); align-items: start; margin-top: clamp(32px, 4vw, 52px); text-align: left; }
/* Computers (Ramon): the application box sits centered under "Start your pre-approval", and
   "What happens next" sits just to its right, toward the edge of the page. Three columns with
   equal sides keep the box in the middle; the grid reaches into the page margins for room. */
@media (min-width: 1180px) {
  .apply-grid {
    grid-template-columns: minmax(260px, 1fr) minmax(0, 720px) minmax(260px, 1fr); column-gap: 28px;
    margin-inline: calc(24px - var(--pad-x));
  }
  .apply-grid > .form-card { grid-column: 2; }
  .apply-grid > .next-card { grid-column: 3; justify-self: start; width: min(100%, 340px); padding: 26px 24px; }
}
/* smaller windows and tablets: the box stays centered, with "What happens next" under it */
@media (min-width: 700px) and (max-width: 1179px) { .apply-grid { max-width: 720px; margin-inline: auto; } }
.form-card { border-radius: var(--r-card); background: #fff; padding: clamp(22px, 4vw, 44px); }
/* Ramon's ARIVE application inside the box (Contact page). It fills the box edge to edge, and
   the box is as tall as ARIVE's first page, so there's no scrolling inside: it reads as part
   of the box (Ramon). ARIVE's sign-up page measures about 1,220–1,255px tall at every width
   from phone to computer; 1,290px leaves room for its "required field" messages. ARIVE is
   another website, so its later screens can't be measured from here: a longer one scrolls
   inside the box. The line below opens it full screen in case a browser blocks it. */
.form-card:has(.arive) { padding: 0; overflow: hidden; }
.arive__frame { display: block; width: 100%; height: 1290px; border: 0; background: #fff; }
@media (max-width: 599px) {
  .form-card:has(.arive) { margin-inline: calc(6px - var(--pad-x)); }   /* phones: give the application nearly the full width */
}
/* Under the box (Ramon: friendlier): a reassuring note on the left and a soft button on the
   right. The sentence always stays on one line (Ramon; site.js shrinks it to fit). When the
   box is narrow (phones, small windows) everything stacks in the center, with the button
   right under the sentence. */
.arive { container-type: inline-size; }
.arive__alt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 20px;
  padding: 18px clamp(18px, 3vw, 28px) 20px; border-top: 1px solid var(--line-2); background: #fbfdfe; text-align: left;
}
.arive__safe { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.arive__badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e8f3f9; color: var(--ocean); }
.arive__badge .icon { width: 20px; height: 20px; }
.arive__safe p { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.arive__safe p [data-fit-line] { display: block; overflow: hidden; }
.arive__safe strong { font-size: 15px; font-weight: 600; color: var(--ink); }
@container (max-width: 780px) {
  .arive__alt { flex-direction: column; gap: 12px; text-align: center; }
  .arive__safe { flex: none; width: 100%; flex-direction: column; gap: 8px; }
  .arive__safe p { width: 100%; }
}
.arive__full {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px;
  border-radius: var(--r-pill); background: #fff; border: 1px solid rgba(19, 92, 134, .22);
  font-size: 14px; font-weight: 600; color: var(--ocean);
  transition: background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease), box-shadow var(--d-fast) var(--ease);
}
.arive__full .icon { width: 16px; height: 16px; }
.arive__full:hover { background: #f1f8fc; border-color: rgba(19, 92, 134, .45); box-shadow: 0 6px 16px -10px rgba(19, 92, 134, .5); }
@media (max-width: 599px) { .arive__full { width: 100%; justify-content: center; } }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper__item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.stepper__num { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--mist-2); font-size: 13px; font-weight: 600; transition: background-color .4s var(--ease), color .4s var(--ease); }
.stepper__item.is-current { color: var(--ink); font-weight: 600; }
.stepper__item.is-current .stepper__num { background: var(--ocean); color: #fff; }
.stepper__item.is-done .stepper__num { background: var(--sky-2); color: var(--ocean); }
.stepper__bar { height: 4px; margin: 16px 0 8px; border-radius: 4px; background: var(--mist-2); overflow: hidden; }
.stepper__bar span { display: block; height: 100%; background: var(--grad); transform: scaleX(var(--sp, .3333)); transform-origin: left; transition: transform .6s var(--ease); }
.form-steplabel { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
@media (max-width: 479px) {
  .stepper { grid-template-columns: auto auto 1fr; gap: 12px; }
  .stepper__label { display: none; }
  .stepper__item.is-current .stepper__label { display: inline; }
}
.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in .5s var(--ease); }
.form-step.is-active.from-left { animation-name: step-in-left; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field__label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
fieldset.field > .field__label { margin-bottom: 10px; }
.field__opt { font-weight: 400; color: var(--muted); }
.req { color: var(--danger); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { display: none; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 500; color: var(--danger); }
.field__error:not(:empty) { display: flex; }
.field__error:not(:empty)::before { content: "!"; flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; }
.input, .select {
  width: 100%; min-height: 52px; padding: 0 16px;
  border: 1px solid #cfdbe2; border-radius: 12px; background: #fff;
  font-size: 17px; color: var(--ink);
  transition: border-color var(--d-fast), box-shadow var(--d-fast);
}
.input::placeholder { color: #87949e; }
.input:focus-visible, .select:focus-visible { outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(18,109,203,.22); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.select.is-flash { animation: flash 1.4s var(--ease); }
.choices { display: grid; gap: 10px; }
@media (min-width: 440px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; }
.choice input, .pill input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.choice__box {
  display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 14px 16px;
  border: 1px solid #cfdbe2; border-radius: 14px; background: #fff;
  font-size: 16px; font-weight: 500; line-height: 1.3; cursor: pointer;
  transition: border-color var(--d-fast), background-color var(--d-fast), box-shadow var(--d-fast), transform var(--d-fast) var(--ease);
}
.choice__box .icon { width: 22px; height: 22px; color: var(--ocean); }
.choice:active .choice__box { transform: scale(.98); }
.choice input:checked + .choice__box { border-color: var(--azure); background: #f0f7fd; box-shadow: 0 0 0 1px var(--azure); }
.choice input:focus-visible + .choice__box, .pill input:focus-visible + span, .check input:focus-visible + .check__box { outline: 2px solid var(--azure); outline-offset: 2px; }
fieldset[data-invalid] .choice__box, fieldset[data-invalid] .pill span { border-color: var(--danger); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid #cfdbe2; border-radius: var(--r-pill); background: #fff;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color var(--d-fast), border-color var(--d-fast), color var(--d-fast);
}
.pill input:checked + span { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border: 1.5px solid #9fb0bc; border-radius: 7px; background: #fff; color: #fff; transition: background-color var(--d-fast), border-color var(--d-fast); }
.check__box .icon { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; transform: scale(.6); transition: opacity var(--d-fast), transform var(--d-base) var(--ease-out); }
.check input:checked + .check__box { background: var(--ocean); border-color: var(--ocean); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--danger); }
.check__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.form-privacy { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.form-privacy .icon { color: var(--ocean); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-actions [data-action="next"], .form-actions [data-action="submit"] { margin-left: auto; }
@media (max-width: 479px) { .form-actions .btn { flex: 1 1 auto; } .form-actions [data-action="submit"] { flex-basis: 100%; white-space: normal; } }
.error-summary { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; background: var(--danger-bg); color: var(--ink); }
.error-summary:focus-visible { outline: 2px solid var(--danger); outline-offset: 2px; }
.error-summary__title { font-weight: 600; color: var(--danger); margin-bottom: 6px; }
.error-summary ul { display: grid; gap: 4px; padding-left: 22px; list-style: disc; }
.error-summary a { color: var(--danger); text-decoration: underline; }
.form-fail { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--danger-bg); color: var(--danger); font-size: 15px; font-weight: 500; }
.form-success { text-align: center; padding: clamp(16px, 4vw, 40px) 0; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 20px; color: var(--success); }
.success-mark circle, .success-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.form-success:not([hidden]) .success-mark circle { animation: draw .9s var(--ease) forwards; }
.form-success:not([hidden]) .success-mark path { animation: draw .6s var(--ease) .55s forwards; }
.form-success h3 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; margin-bottom: 10px; }
.form-success h3:focus { outline: none; }
.form-success p { max-width: 30rem; margin: 0 auto 24px; color: var(--muted); }
.next-card { border-radius: var(--r-card); background: var(--night); color: var(--on-night); padding: clamp(24px, 3vw, 34px); }
@media (min-width: 1000px) { .next-card { position: sticky; top: calc(var(--nav-h) + 24px); } }
.next-card h3 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 18px; }
.next-card ol { counter-reset: n; display: grid; gap: 16px; }
.next-card li { counter-increment: n; display: grid; grid-template-columns: 30px 1fr; gap: 10px; color: var(--on-night-2); font-size: 15px; }
.next-card li::before { content: counter(n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; }
.next-card__who { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.next-card__who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--sky); }
.next-card__who strong { display: block; font-size: 16px; }
.next-card__who a { display: block; color: #8cc8f0; font-size: 15px; min-height: 28px; }

/* ---------- 16. Footer ---------- */
.gfoot { padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--white); font-size: 12px; line-height: 1.6; color: var(--muted); }
.gfoot__grid { display: grid; gap: 28px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .gfoot__grid { grid-template-columns: 1.2fr 1fr 1fr 110px; } }
.gfoot__logo { width: 200px; height: auto; margin-bottom: 12px; }
.gfoot h2 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: -.01em; }
.gfoot a { color: var(--ink-2); }
.gfoot a:hover { text-decoration: underline; }
.gfoot__nav { display: grid; gap: 2px; }
.gfoot__nav a { display: inline-flex; min-height: 32px; align-items: center; }
.gfoot__eho { width: 80px; height: auto; }
.gfoot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gfoot__links a { display: inline-flex; min-height: 32px; align-items: center; }
.gfoot__legal { padding-top: 16px; display: grid; gap: 8px; max-width: 980px; }

/* ---------- 17. Motion accessibility ---------- */
.no-anim [data-reveal], .no-anim .hero [data-intro], .no-anim .chips .chip { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero [data-intro], .js .chips .chip { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .statement__text .w { color: var(--ink); }
  .scene__zoom, .hero__text { transform: none !important; }
  .hero__text { opacity: 1 !important; }
  .scene__water { display: none; }
  .scene .scene__img { visibility: visible !important; }
  .hero__cue svg { animation: none; }
  .success-mark circle, .success-mark path { stroke-dashoffset: 0; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- 18. Keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0%, 100% { transform: translateY(-3px); opacity: .55; } 50% { transform: translateY(4px); opacity: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes breathe { 0%, 100% { opacity: .6; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes step-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-24px); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(18,109,203,.45); border-color: var(--azure); } 100% { box-shadow: 0 0 0 12px rgba(18,109,203,0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lang-in { from { opacity: 0; } }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
