/* DreamWish Financial website
   Built on the DreamWish Financial Design System v1.0 (Brand Kit v1.2) by KO 360 INC.
   Token names follow the design system. Only colour and opacity animate; everything stops under reduced motion. */

/* ---------- Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/SourceSerif4-latin.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/SourceSerif4-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --brand-burgundy: #461217;
  --brand-burgundy-deep: #321014;
  --brand-burgundy-card: #561D23;
  --brand-olive: #5D6043;
  --brand-olive-dark: #3F432F;
  --brand-gold: #DEB670;
  --brand-cream: #D8D1C3;
  --bg-page: #FAF8F3;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EEE5;
  --bg-warm: #EAE3D6;
  --text-primary: #2F2F2D;
  --text-secondary: #3F432F;
  --text-heading: #461217;
  --text-on-brand: #FFFFFF;
  --text-on-brand-2: #D8D1C3;
  --accent-on-brand: #DEB670;
  --border: #7A796E;
  --divider: #D8D1C3;
  --divider-on-brand: rgba(222, 182, 112, .28);
  --action-primary: #461217;
  --action-primary-hover: #321014;
  --action-secondary-hover: #F1E8E5;
  --focus-ring: #461217;
  --focus-ring-inner: #FFFFFF;
  --status-success: #21633F; --status-success-bg: #EDF6EF;
  --status-warning: #8A4B08; --status-warning-bg: #FFF3DC;
  --status-error: #B42318; --status-error-bg: #FFF0ED;
  --status-info: #24588D; --status-info-bg: #EEF4FB;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", Arial, Helvetica, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 144px;
  --radius-small: 4px; --radius-control: 6px; --radius-card: 12px; --radius-round: 999px;
  --shadow-card: 0 8px 24px rgba(47, 47, 45, .08);
  --shadow-raised: 0 14px 40px rgba(47, 47, 45, .12);
  --shadow-overlay: 0 24px 64px rgba(30, 10, 12, .28);
  --container: 1200px;
  --container-wide: 1360px;
  --measure-reading: 720px;
  --gutter: 32px;
  --duration-fast: 150ms; --duration-base: 200ms; --duration-slow: 900ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --header-h: 120px;
}
@media (max-width: 1023px) { :root { --gutter: 24px; --header-h: 116px; } }
@media (max-width: 767px) { :root { --gutter: 20px; --header-h: 112px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg-page); color: var(--text-primary); font-family: var(--font-sans); font-size: 18px; line-height: 28px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "kern"; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--text-heading); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--duration-fast) var(--ease-standard), text-decoration-color var(--duration-fast) var(--ease-standard); }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; box-shadow: 0 0 0 3px var(--focus-ring-inner); border-radius: 2px; }
.on-brand :focus-visible, .theme-burgundy :focus-visible { outline-color: var(--brand-gold); box-shadow: 0 0 0 3px var(--brand-burgundy); }
::selection { background: var(--brand-burgundy); color: #fff; }
.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: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--brand-burgundy); color: #fff; padding: 12px 20px; border-radius: var(--radius-control); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.num, .dw-num { font-variant-numeric: lining-nums tabular-nums; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: calc(var(--container-wide) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: var(--measure-reading); }
.section { padding-block: var(--space-9); position: relative; }
.section-tight { padding-block: var(--space-8); }
.section.bg-subtle { background: var(--bg-subtle); }
.section.bg-surface { background: var(--bg-surface); }
@media (max-width: 767px) { .section { padding-block: var(--space-8); } .section-tight { padding-block: var(--space-7); } }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: start; }
.split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 1023px) { .split, .split-even, .split-rev { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); } }
.stack > * + * { margin-top: var(--space-5); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- Type ---------- */
.display, .h1, .h2, .prose h2 { font-family: var(--font-serif); font-weight: 600; color: var(--text-heading); font-optical-sizing: auto; }
.display { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.025em; font-weight: 560; }
.h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.018em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.012em; }
.h3 { font: 700 24px/32px var(--font-sans); color: var(--text-primary); letter-spacing: -0.01em; }
.h4 { font: 700 19px/28px var(--font-sans); color: var(--text-primary); }
.serif-it, .display em, .h1 em, .h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 450; }
.display em, .h1 em, .h2 em { color: var(--brand-burgundy); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 13px/20px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text-secondary); margin: 0 0 var(--space-4); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.no-rule::before { display: none; }
.lede { font-size: 20px; line-height: 32px; color: var(--text-secondary); max-width: 640px; }
.lede-lg { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.55; color: var(--text-secondary); max-width: 680px; }
.small { font-size: 16px; line-height: 24px; }
.caption { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.muted { color: var(--text-secondary); }
.section-head { max-width: 760px; margin-bottom: var(--space-7); }
.section-head .h2 + p { margin-top: var(--space-4); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.gold-num { font-family: var(--font-serif); font-style: italic; font-weight: 300; color: var(--brand-gold); font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
@media (max-width: 767px) { body { font-size: 17px; line-height: 27px; } .lede { font-size: 18px; line-height: 29px; } }

/* ---------- Buttons & links ---------- */
.btn { --btn-bg: var(--action-primary); --btn-fg: #fff; --btn-bd: var(--action-primary); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border-radius: var(--radius-control); border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg); font: 700 16px/22px var(--font-sans); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard); white-space: nowrap; }
.btn:hover { --btn-bg: var(--action-primary-hover); --btn-bd: var(--action-primary-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-secondary { --btn-bg: transparent; --btn-fg: var(--brand-burgundy); --btn-bd: var(--brand-burgundy); }
.btn-secondary:hover { --btn-bg: var(--action-secondary-hover); --btn-fg: var(--brand-burgundy); --btn-bd: var(--brand-burgundy); }
.btn-light { --btn-bg: var(--bg-page); --btn-fg: var(--brand-burgundy); --btn-bd: var(--bg-page); }
.btn-light:hover { --btn-bg: #fff; --btn-fg: var(--brand-burgundy-deep); --btn-bd: #fff; }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn-ghost-light:hover { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; --btn-bd: #fff; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { --btn-bg: var(--brand-cream); --btn-bd: var(--brand-cream); --btn-fg: #5f5d55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-burgundy); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 2px; }
.text-link:hover { background-size: 100% 2px; }
.text-link svg { width: 16px; height: 16px; transition: transform var(--duration-fast) var(--ease-standard); }
.on-brand .text-link { color: var(--brand-gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.site-header.is-scrolled { border-bottom-color: var(--divider); box-shadow: 0 6px 24px rgba(47,47,45,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); height: var(--header-h); }
.brand-link { display: block; flex: none; width: 240px; margin-left: -6px; }
.brand-link img { width: 240px; height: 120px; object-fit: contain; margin-block: -4px; }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 13px; border-radius: var(--radius-control); color: var(--text-primary); font: 600 15.5px/20px var(--font-sans); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand-burgundy); background: var(--action-secondary-hover); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--brand-burgundy); box-shadow: inset 0 -2px 0 var(--brand-burgundy); border-radius: 0; }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--duration-fast) var(--ease-standard); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-item { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(860px, 92vw); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-card); box-shadow: var(--shadow-overlay); padding: var(--space-6); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: var(--space-6); opacity: 0; visibility: hidden; transition: opacity var(--duration-base) var(--ease-standard), visibility 0s linear var(--duration-base); }
.mega.mega-sm { width: min(520px, 92vw); grid-template-columns: 1fr 1fr; }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transition-delay: 0s; }
.mega-feature { background: var(--brand-burgundy); color: #fff; border-radius: var(--radius-card); padding: var(--space-5); display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.mega-feature .h4 { color: #fff; font-family: var(--font-serif); font-weight: 600; font-size: 24px; line-height: 30px; }
.mega-feature p { color: var(--text-on-brand-2); font-size: 15px; line-height: 22px; }
.mega h3 { font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: var(--space-3); }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: block; padding: 7px 0; color: var(--text-primary); text-decoration: none; font-size: 15.5px; line-height: 22px; }
.mega li a:hover { color: var(--brand-burgundy); text-decoration: underline; }
.mega li a span { display: block; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); font: 700 15px/20px var(--font-sans); text-decoration: none; min-height: 48px; padding-inline: 6px; }
.header-phone svg { width: 18px; height: 18px; color: var(--brand-burgundy); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--brand-burgundy); border-radius: var(--radius-control); background: transparent; color: var(--brand-burgundy); font: 700 15px/20px var(--font-sans); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 1279px) { .header-phone .lbl { display: none; } }
@media (max-width: 1180px) { .primary-nav, .header-actions .btn, .header-phone { display: none; } .menu-toggle { display: inline-flex; } }
@media (max-width: 400px) { .menu-toggle .lbl { display: none; } .menu-toggle { padding: 10px 12px; } .header-inner { gap: 8px; } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(30, 12, 14, .5); opacity: 0; transition: opacity var(--duration-base) var(--ease-standard); }
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--bg-page); display: flex; flex-direction: column; opacity: 0; transition: opacity var(--duration-base) var(--ease-standard); overflow-y: auto; }
.drawer.is-open .drawer-panel { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--divider); min-height: var(--header-h); }
.drawer-head img { width: 240px; height: auto; margin-block: -8px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-control); border: 1.5px solid var(--divider); background: var(--bg-surface); color: var(--brand-burgundy); cursor: pointer; }
.icon-btn:hover { border-color: var(--brand-burgundy); }
.icon-btn svg { width: 20px; height: 20px; }
.drawer nav { padding: var(--space-4) var(--gutter); }
.drawer details { border-bottom: 1px solid var(--divider); }
.drawer summary, .drawer .drawer-link { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font: 600 19px/26px var(--font-serif); color: var(--text-heading); cursor: pointer; list-style: none; text-decoration: none; border-bottom: 1px solid var(--divider); }
.drawer details summary { border-bottom: 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; height: 18px; transition: transform var(--duration-fast); }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details ul { list-style: none; padding: 0 0 var(--space-4); margin: 0; }
.drawer details li a { display: block; padding: 9px 0; color: var(--text-primary); text-decoration: none; font-size: 16px; }
.drawer-foot { margin-top: auto; padding: var(--space-5) var(--gutter) var(--space-6); display: grid; gap: var(--space-3); background: var(--bg-subtle); }
.drawer-foot .caption { margin: 0; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 767px) {
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--brand-burgundy); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px rgba(30,10,12,.18); }
  .action-bar a, .action-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: #fff; font: 700 12px/16px var(--font-sans); letter-spacing: .04em; text-decoration: none; background: none; border: 0; border-right: 1px solid rgba(255,255,255,.12); cursor: pointer; }
  .action-bar > :last-child { border-right: 0; }
  .action-bar svg { width: 20px; height: 20px; color: var(--brand-gold); }
  body { padding-bottom: 60px; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding-top: clamp(20px, 3vw, 44px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 96px); align-items: end; }
.hero .display { font-size: clamp(50px, 6vw, 88px); line-height: .95; letter-spacing: -0.032em; max-width: 15ch; font-weight: 540; }
.hero .display em { font-weight: 400; letter-spacing: -0.02em; }
.hero-aside { padding-bottom: 6px; }
.hero-aside .lede-lg { margin-bottom: var(--space-5); max-width: 34ch; }
.hero-meta { margin: var(--space-5) 0 0; font-size: 14.5px; line-height: 22px; color: var(--text-secondary); }
.hero-meta span { color: var(--brand-olive); margin-inline: 6px; font-weight: 700; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); align-items: start; } }

/* The street: real team portraits in house-shaped frames, founder first, the visitor's plot last */
.street { position: relative; margin-top: clamp(28px, 3.4vw, 52px); }
.street-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.2fr repeat(calc(var(--houses, 5) - 1), minmax(0, 1fr)); align-items: end; gap: clamp(12px, 1.8vw, 28px); position: relative; z-index: 1; }
.house { position: relative; margin: 0; text-decoration: none; color: inherit; display: block; }
.house-svg { width: 100%; height: auto; overflow: visible; transition: transform 500ms var(--ease-out-expo); }
.house-svg .house-line { stroke: var(--brand-burgundy); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.house-svg image { transition: filter 500ms var(--ease-out-expo); }
a.house:hover .house-svg { transform: translateY(-6px); }
a.house:hover .house-svg image { filter: saturate(1.06) contrast(1.02); }
.house .house-cap { display: block; padding: 14px 2px 0; }
.house .name { display: block; font: 600 18px/22px var(--font-serif); color: var(--text-heading); }
.house .role { display: block; font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: 3px; }
.house .langs { display: block; font-size: 12px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-olive); margin-top: 6px; font-weight: 700; }
a.house:hover .name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.house-next .key { transform-box: fill-box; transform-origin: 30% 80%; transition: transform 600ms var(--ease-out-expo); }
.house-next:hover .key { transform: rotate(-16deg); }
.house-next .house-svg > polygon { fill: transparent; }
.house-next .house-line { stroke-dasharray: .006 .008; }
.street-ground { position: relative; height: 1px; background: var(--brand-burgundy); margin-top: -1px; z-index: 0; transform-origin: left center; }
.street-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px var(--space-5); padding-block: var(--space-4) var(--space-7); margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.street-caption a { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.street-caption a svg { width: 14px; height: 14px; }
@media (max-width: 1023px) {
  .street { margin-inline: calc(var(--gutter) * -1); }
  .street-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gutter) 2px; scrollbar-width: none; align-items: flex-end; overscroll-behavior-x: contain; }
  .street-row::-webkit-scrollbar { display: none; }
  .street-row > li { flex: 0 0 clamp(170px, 42vw, 260px); scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .street-row > li:first-child { flex-basis: clamp(200px, 52vw, 300px); }
  .street-ground { margin-inline: var(--gutter); }
  .street-caption { padding-inline: 0; }
}

/* The street is drawn once on arrival: rooflines first, then the people, then the ground. */
@media (prefers-reduced-motion: no-preference) {
  .hero .house-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dw-draw 1100ms cubic-bezier(.65, 0, .35, 1) forwards; animation-delay: calc(var(--i, 0) * 120ms + 120ms); }
  .hero .house-next .house-line { stroke-dasharray: .006 .008; stroke-dashoffset: 0; animation: dw-fade 900ms var(--ease-out-expo) both; animation-delay: calc(var(--i, 0) * 120ms + 500ms); }
  .hero .house-svg image, .hero .house-svg > polygon, .hero .house-next .key, .hero .house-next text { transform-box: fill-box; animation: dw-rise 900ms var(--ease-out-expo) both; animation-delay: calc(var(--i, 0) * 120ms + 420ms); }
  .hero .house-cap { animation: dw-fade 700ms var(--ease-out-expo) both; animation-delay: calc(var(--i, 0) * 120ms + 700ms); }
  .hero .street-ground { animation: dw-ground 1400ms cubic-bezier(.65, 0, .35, 1) both; animation-delay: 80ms; }
}
@keyframes dw-draw { to { stroke-dashoffset: 0; } }
@keyframes dw-fade { from { opacity: 0; } }
@keyframes dw-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes dw-ground { from { transform: scaleX(0); } }

/* ---------- Burgundy chapters ---------- */
.theme-burgundy, .on-brand { background: var(--brand-burgundy); color: var(--text-on-brand); }
.theme-burgundy .h1, .theme-burgundy .h2, .theme-burgundy .display, .theme-burgundy h2, .theme-burgundy h3 { color: #fff; }
.theme-burgundy .h2 em, .theme-burgundy .h1 em, .theme-burgundy .display em { color: var(--brand-gold); }
.theme-burgundy .eyebrow { color: var(--brand-gold); }
.theme-burgundy .lede, .theme-burgundy .lede-lg, .theme-burgundy .muted, .theme-burgundy .caption { color: var(--text-on-brand-2); }
.theme-burgundy a { color: var(--brand-gold); }
.theme-burgundy a.btn, .on-brand a.btn, .calc-results a.btn, .image-band a.btn, .card a.btn { color: var(--btn-fg); }
.theme-burgundy .h3, .theme-burgundy .h4 { color: #fff; }
.chapter-mark { position: absolute; right: var(--gutter); top: var(--space-6); font: italic 300 14px/20px var(--font-serif); color: var(--brand-gold); letter-spacing: .04em; opacity: .9; }

/* Editorial rows (flyer-style numbered list) */
.ed-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.theme-burgundy .ed-rows { border-color: var(--divider-on-brand); }
.ed-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.1fr) auto; gap: var(--space-6); align-items: start; padding-block: var(--space-6); border-bottom: 1px solid var(--divider); position: relative; }
.theme-burgundy .ed-row { border-color: var(--divider-on-brand); }
.ed-row .ed-title { font: 600 clamp(26px, 2.6vw, 34px)/1.15 var(--font-serif); color: var(--text-heading); letter-spacing: -0.01em; }
.theme-burgundy .ed-row .ed-title { color: #fff; }
.ed-row .ed-kicker { display: block; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-olive); margin-bottom: 10px; }
.theme-burgundy .ed-row .ed-kicker { color: var(--brand-gold); }
.ed-row p { margin: 0; color: var(--text-secondary); }
.theme-burgundy .ed-row p { color: var(--text-on-brand-2); }
.ed-row ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; line-height: 22px; }
.ed-row ul li::before { content: "·"; margin-right: 8px; color: var(--brand-gold); }
.ed-row .ed-go { align-self: center; }
.ed-row a.ed-cover { position: absolute; inset: 0; z-index: 1; }
.ed-row .ed-go .circle { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; color: var(--brand-burgundy); transition: background-color var(--duration-fast), color var(--duration-fast); }
.theme-burgundy .ed-row .ed-go .circle { color: var(--brand-gold); }
.ed-row:hover .ed-go .circle { background: var(--brand-gold); color: var(--brand-burgundy); border-color: var(--brand-gold); }
.ed-row .ed-go svg { width: 20px; height: 20px; }
@media (max-width: 1023px) { .ed-row { grid-template-columns: 80px minmax(0, 1fr) auto; } .ed-row .ed-body { grid-column: 2 / 3; } .ed-row .ed-go { grid-row: 1; grid-column: 3; } }
@media (max-width: 599px) { .ed-row { grid-template-columns: 1fr auto; gap: var(--space-3) var(--space-4); } .ed-row .gold-num { grid-column: 1 / -1; font-size: 44px; } .ed-row .ed-head, .ed-row .ed-body { grid-column: 1 / 2; } .ed-row .ed-go { grid-column: 2; grid-row: 2; } }

/* ---------- Cards ---------- */
.card { background: var(--bg-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: var(--space-6); position: relative; }
.card-flat { background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-card); padding: var(--space-6); }
.card-link { text-decoration: none; color: inherit; display: block; transition: box-shadow var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard); }
.card-link:hover { box-shadow: var(--shadow-raised); }
.card-link:hover .h3, .card-link:hover .h4 { color: var(--brand-burgundy); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--radius-round); border: 1px solid var(--divider); background: var(--bg-surface); font-size: 14px; line-height: 20px; color: var(--text-primary); text-decoration: none; }
a.chip { min-height: 44px; }
a.chip:hover { border-color: var(--brand-burgundy); color: var(--brand-burgundy); }
.chip.is-active, a.chip[aria-current="true"] { background: var(--brand-burgundy); color: #fff; border-color: var(--brand-burgundy); }
.theme-burgundy .chip { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.theme-burgundy a.chip:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-small); font: 700 12px/18px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; background: var(--bg-subtle); color: var(--text-secondary); }
.badge-gold { background: rgba(222,182,112,.22); color: #6b4a12; }
.badge-brand { background: var(--brand-burgundy); color: #fff; }
.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg-subtle); color: var(--brand-burgundy); margin-bottom: var(--space-4); }
.icon-tile svg { width: 24px; height: 24px; }
.theme-burgundy .icon-tile { background: rgba(255,255,255,.08); color: var(--brand-gold); }

/* Values / pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--divider); }
.pillar { padding: var(--space-6) var(--space-6) var(--space-6) 0; border-right: 1px solid var(--divider); }
.pillar + .pillar { padding-left: var(--space-6); }
.pillar:last-child { border-right: 0; }
.pillar .gold-num { font-size: 40px; display: block; margin-bottom: var(--space-4); color: var(--brand-olive); }
.theme-burgundy .pillars, .theme-burgundy .pillar { border-color: var(--divider-on-brand); }
.theme-burgundy .pillar .gold-num { color: var(--brand-gold); }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: var(--space-5) 0; border-right: 0; border-bottom: 1px solid var(--divider); } .theme-burgundy .pillar { border-color: var(--divider-on-brand); } }

/* ---------- Founder feature ---------- */
.founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8); align-items: center; }
.founder-photo { position: relative; }
.founder-photo .house-frame { aspect-ratio: 4 / 5.2; }
.founder-photo .house-outline { inset: -10px -10px 0; }
.founder-photo .tag { position: absolute; left: -12px; bottom: 28px; z-index: 3; background: var(--brand-burgundy); color: #fff; padding: 14px 18px; border-radius: var(--radius-control); box-shadow: var(--shadow-raised); }
.founder-photo .tag strong { display: block; font: 600 18px/22px var(--font-serif); }
.founder-photo .tag span { font-size: 13px; line-height: 18px; color: var(--text-on-brand-2); }
blockquote.pull { margin: 0 0 var(--space-6); font: italic 400 clamp(26px, 2.8vw, 38px)/1.25 var(--font-serif); color: var(--text-heading); letter-spacing: -0.01em; position: relative; }
blockquote.pull::before { content: "\201C"; position: absolute; left: -0.55em; top: -0.12em; font-size: 2.2em; color: var(--brand-gold); font-style: normal; line-height: 1; }
blockquote.pull footer { margin-top: var(--space-4); font: 600 15px/22px var(--font-sans); font-style: normal; color: var(--text-secondary); letter-spacing: .01em; }
.theme-burgundy blockquote.pull { color: #fff; }
@media (max-width: 1023px) { .founder { grid-template-columns: 1fr; gap: var(--space-7); } .founder-photo { max-width: 420px; } blockquote.pull::before { position: static; display: block; height: .5em; } }

/* ---------- Journey ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: var(--space-5); position: relative; counter-reset: step; }
.journey::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 1.5px; background: var(--brand-olive); opacity: .7; }
.theme-burgundy .journey::before { background: var(--brand-gold); opacity: .45; }
.journey li { position: relative; padding-top: 52px; }
.journey li::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-gold); box-shadow: 0 0 0 6px var(--bg-page); }
.journey li:first-child::before { background: var(--brand-burgundy); }
.theme-burgundy .journey li::before { box-shadow: 0 0 0 6px var(--brand-burgundy); }
.theme-burgundy .journey li:first-child::before { background: #fff; }
.bg-subtle .journey li::before { box-shadow: 0 0 0 6px var(--bg-subtle); }
.journey .step-n { font: italic 400 15px/20px var(--font-serif); color: var(--brand-olive); display: block; margin-bottom: 6px; }
.theme-burgundy .journey .step-n { color: var(--brand-gold); }
.journey h3 { font: 700 19px/26px var(--font-sans); margin-bottom: 8px; color: var(--text-primary); }
.theme-burgundy .journey h3 { color: #fff; }
.journey p { font-size: 16px; line-height: 25px; color: var(--text-secondary); margin: 0; }
.theme-burgundy .journey p { color: var(--text-on-brand-2); }
@media (max-width: 1023px) {
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 14px; right: auto; top: 14px; bottom: 14px; width: 1.5px; height: auto; }
  .journey li { padding: 0 0 var(--space-6) 56px; }
  .journey li::before { top: 2px; }
}

/* ---------- Team directory ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); } }
.person { text-decoration: none; color: inherit; display: block; }
.person .portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-warm); position: relative; }
.person .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: opacity var(--duration-base); }
.person:hover .portrait img { opacity: .9; }
.person .p-name { display: block; font: 600 21px/26px var(--font-serif); color: var(--text-heading); margin-top: var(--space-4); overflow-wrap: anywhere; }
.person:hover .p-name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.person .p-role { display: block; font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: 2px; }
.person .p-meta { display: block; font-size: 13px; line-height: 18px; color: var(--brand-olive); margin-top: 8px; font-weight: 700; letter-spacing: .04em; }
.portrait-placeholder { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--bg-warm), #E1D8C8); }
.portrait-placeholder .mono { font: italic 400 clamp(40px, 6vw, 72px)/1 var(--font-serif); color: var(--brand-burgundy); opacity: .85; }
.portrait-placeholder .ph-note { position: absolute; left: 10px; right: 10px; bottom: 10px; font: 700 11px/15px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: #5a3105; background: var(--status-warning-bg); border: 1px dashed #8A4B08; padding: 5px 8px; border-radius: 4px; text-align: center; }
.name-tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; background: var(--brand-burgundy); color: #fff; }
.name-tile svg { width: 56%; color: var(--brand-gold); opacity: .55; margin-bottom: auto; }
.name-tile svg path { stroke: currentColor; }
.name-tile span { font: italic 400 clamp(20px, 2vw, 26px)/1.2 var(--font-serif); }
.portrait-placeholder svg { position: absolute; inset: 14% 14% auto; width: 72%; opacity: .14; }
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: end; margin-bottom: var(--space-7); padding: var(--space-5); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-card); }
.filter-bar .field { margin: 0; min-width: 200px; flex: 1; }
.filter-count { font-size: 15px; color: var(--text-secondary); margin: 0 0 var(--space-5); }

/* ---------- Profile pages ---------- */
.profile-hero { padding-top: var(--space-7); padding-bottom: var(--space-8); }
.profile-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: var(--space-8); align-items: start; }
.profile-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-photo .portrait { aspect-ratio: 4 / 5; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-warm); position: relative; }
.profile-photo .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile-card { margin-top: var(--space-5); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-card); padding: var(--space-5); }
.profile-card dl { margin: 0; display: grid; gap: 14px; }
.profile-card dt { font: 700 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.profile-card dd { margin: 3px 0 0; font-size: 16px; line-height: 24px; overflow-wrap: anywhere; }
.profile-card dd a { font-weight: 600; }
.profile-title { font-size: 15px; letter-spacing: .02em; color: var(--text-secondary); margin: var(--space-3) 0 var(--space-5); font-weight: 600; }
.profile-quote { font: italic 400 clamp(22px, 2.2vw, 28px)/1.35 var(--font-serif); color: var(--text-heading); border-left: 2px solid var(--brand-gold); padding-left: var(--space-5); margin: var(--space-6) 0; }
.contact-actions { display: grid; gap: 10px; margin-top: var(--space-5); }
.contact-actions .btn { width: 100%; justify-content: flex-start; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); }
.social-row a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--divider); color: var(--brand-burgundy); background: var(--bg-surface); }
.social-row a:hover { border-color: var(--brand-burgundy); background: var(--action-secondary-hover); }
.social-row svg { width: 18px; height: 18px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--divider); margin: var(--space-6) 0; }
.fact { padding: var(--space-5) var(--space-4) var(--space-5) 0; }
.fact + .fact { padding-left: var(--space-5); border-left: 1px solid var(--divider); }
.fact .k { display: block; font: 700 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.fact .v { font: 600 22px/28px var(--font-serif); color: var(--text-heading); }
@media (max-width: 1023px) { .profile-grid { grid-template-columns: 1fr; gap: var(--space-7); } .profile-photo { position: static; max-width: 460px; } }
@media (max-width: 599px) { .fact-grid { grid-template-columns: 1fr; } .fact + .fact { border-left: 0; border-top: 1px solid var(--divider); padding-left: 0; } }
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 24px; padding: 12px 14px; background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-control); }
.spec-list svg { width: 18px; height: 18px; color: var(--brand-olive); flex: none; margin-top: 3px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 var(--space-5); }
.tick-list li { position: relative; padding-left: 32px; margin-bottom: 12px; }
.tick-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23461217' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.theme-burgundy .tick-list li::before { background-color: rgba(255,255,255,.1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DEB670' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* ---------- Page heads ---------- */
.page-head { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); position: relative; }
.page-head .h1 { max-width: 18ch; }
.page-head .lede-lg { margin-top: var(--space-5); }
.page-head.theme-burgundy { padding-bottom: clamp(56px, 7vw, 104px); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: var(--space-8); align-items: end; }
@media (max-width: 1023px) { .page-head-grid { grid-template-columns: 1fr; gap: var(--space-5); } }
.breadcrumbs { font-size: 14px; line-height: 20px; margin-bottom: var(--space-5); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.breadcrumbs li + li::before { content: "/"; color: var(--border); }
.breadcrumbs a { color: var(--text-secondary); }
.theme-burgundy .breadcrumbs li, .theme-burgundy .breadcrumbs a { color: var(--text-on-brand-2); }
.window-motif { position: absolute; right: var(--gutter); bottom: 0; width: min(420px, 38vw); opacity: .9; pointer-events: none; }

/* ---------- Editorial images ---------- */
.ed-figure { margin: 0; position: relative; }
.ed-figure img { width: 100%; border-radius: var(--radius-card); aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-warm); }
.ed-figure.tall img { aspect-ratio: 4 / 5; }
.ed-figure figcaption { margin-top: 10px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.ed-figure .frame-corner { position: absolute; width: 64px; height: 64px; border-left: 1.5px solid var(--brand-gold); border-top: 1.5px solid var(--brand-gold); left: -14px; top: -14px; }

/* ---------- Prose / articles ---------- */
.prose { max-width: var(--measure-reading); font-size: 19px; line-height: 31px; }
.prose > * + * { margin-top: var(--space-5); }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-top: var(--space-8); }
.prose h3 { font: 700 21px/29px var(--font-sans); margin-top: var(--space-6); color: var(--text-primary); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--brand-burgundy); }
.prose blockquote { margin-left: 0; padding-left: var(--space-5); border-left: 2px solid var(--brand-gold); font-family: var(--font-serif); font-style: italic; font-size: 23px; line-height: 34px; color: var(--text-heading); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.prose th { font-weight: 700; background: var(--bg-subtle); }
.prose .note, .callout { background: var(--bg-subtle); border-radius: var(--radius-card); padding: var(--space-5) var(--space-6); border-top: 1px solid var(--brand-olive); border-radius: 0 0 var(--radius-card) var(--radius-card); font-size: 17px; line-height: 27px; }
.callout-title { display: block; font: 700 13px/18px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-olive); margin-bottom: 6px; }
.prose a { font-weight: 600; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--text-secondary); margin-top: var(--space-5); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--space-5); }
.toc { font-size: 15px; line-height: 22px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--divider); }
.toc li a { display: block; padding: 6px 0 6px 16px; color: var(--text-secondary); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--brand-burgundy); border-left-color: var(--brand-burgundy); }
.sources { font-size: 15px; line-height: 23px; color: var(--text-secondary); border-top: 1px solid var(--divider); padding-top: var(--space-5); margin-top: var(--space-8); }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }
.resource-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--bg-surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--divider); transition: box-shadow var(--duration-base); }
.resource-card:hover { box-shadow: var(--shadow-raised); }
.resource-card .rc-art { aspect-ratio: 16 / 9; background: var(--brand-burgundy); position: relative; overflow: hidden; }
.resource-card .rc-art img { width: 100%; height: 100%; object-fit: cover; }
.resource-card .rc-art .rc-num { position: absolute; left: 20px; bottom: 14px; font: italic 300 64px/1 var(--font-serif); color: var(--brand-gold); }
.resource-card .rc-art .rc-topic { position: absolute; right: 18px; top: 16px; font: 700 11px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-brand-2); }
.resource-card .rc-body { padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.resource-card .rc-title { font: 600 22px/28px var(--font-serif); color: var(--text-heading); }
.resource-card:hover .rc-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.resource-card p { font-size: 16px; line-height: 24px; color: var(--text-secondary); margin: 0; }
.resource-card .rc-meta { margin-top: auto; font-size: 13px; color: var(--text-secondary); padding-top: 8px; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--space-5); }
.field label, .field .label, fieldset legend { display: block; font: 600 16px/22px var(--font-sans); color: var(--text-primary); margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--text-secondary); }
.field .hint { display: block; font-size: 14px; line-height: 20px; color: var(--text-secondary); margin-top: -2px; margin-bottom: 8px; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-control); background: var(--bg-surface); color: var(--text-primary); font: 400 17px/24px var(--font-sans); transition: border-color var(--duration-fast); appearance: none; -webkit-appearance: none; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-secondary); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 2px; border-color: var(--brand-burgundy); }
.textarea { min-height: 128px; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23461217' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input-affix { position: relative; display: flex; align-items: stretch; }
.input-affix .affix { display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--border); background: var(--bg-subtle); color: var(--text-secondary); font-weight: 700; font-size: 16px; }
.input-affix .affix.pre { border-right: 0; border-radius: var(--radius-control) 0 0 var(--radius-control); }
.input-affix .affix.post { border-left: 0; border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.input-affix .input { border-radius: 0; }
.input-affix .input:first-child { border-radius: var(--radius-control) 0 0 var(--radius-control); }
.input-affix .affix.pre + .input:last-child { border-radius: 0 var(--radius-control) var(--radius-control) 0; }
.input-affix .affix.pre + .input:not(:last-child) { border-radius: 0; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border: 2px solid var(--status-error); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--status-error); font-size: 15px; line-height: 21px; margin-top: 8px; font-weight: 600; }
.field-error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--space-5); min-width: 0; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-size: 16px; line-height: 24px; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--border); border-radius: var(--radius-small); background: #fff; display: grid; place-items: center; cursor: pointer; }
.choice input[type="radio"] { border-radius: 50%; }
.choice input:checked { background: var(--brand-burgundy); border-color: var(--brand-burgundy); }
.choice input[type="checkbox"]:checked::after { content: ""; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.choice input[type="radio"]:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-control); font-size: 15px; font-weight: 600; background: #fff; cursor: pointer; }
.seg input:checked + span { background: var(--brand-burgundy); border-color: var(--brand-burgundy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-card); font-size: 16px; line-height: 24px; margin-bottom: var(--space-5); border: 1px solid transparent; }
.alert svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 4px 0 0; }
.alert ul { margin: 6px 0 0; padding-left: 1.1em; }
.alert-error { background: var(--status-error-bg); color: var(--status-error); border-color: rgba(180,35,24,.25); }
.alert-error a { color: var(--status-error); font-weight: 700; }
.alert-success { background: var(--status-success-bg); color: var(--status-success); border-color: rgba(33,99,63,.25); }
.alert-info { background: var(--status-info-bg); color: var(--status-info); border-color: rgba(36,88,141,.2); }
.alert-warning { background: var(--status-warning-bg); color: var(--status-warning); border-color: rgba(138,75,8,.25); }
.alert-success p, .alert-info p, .alert-warning p { color: var(--text-primary); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: var(--bg-surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: clamp(24px, 3.5vw, 44px); }
.form-legal { font-size: 14px; line-height: 21px; color: var(--text-secondary); margin-top: var(--space-4); }
.consent-box { background: var(--bg-subtle); border-radius: var(--radius-control); padding: 6px 16px; margin-bottom: var(--space-5); }
.consent-box .choice { font-size: 15px; line-height: 22px; }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-raised); background: var(--bg-surface); }
.calc-inputs { padding: clamp(24px, 3.4vw, 44px); }
.calc-results { background: var(--brand-burgundy); color: #fff; padding: clamp(24px, 3.4vw, 44px); position: relative; display: flex; flex-direction: column; }
.calc-results .eyebrow { color: var(--brand-gold); }
.calc-big { font: 500 clamp(44px, 5.4vw, 72px)/1 var(--font-serif); letter-spacing: -0.02em; color: #fff; font-variant-numeric: lining-nums tabular-nums; margin: 8px 0 6px; }
.calc-big small { font: 600 16px/22px var(--font-sans); color: var(--text-on-brand-2); letter-spacing: 0; margin-left: 8px; }
.calc-sub { color: var(--text-on-brand-2); font-size: 15px; line-height: 22px; margin: 0; }
.calc-table { width: 100%; border-collapse: collapse; margin-top: var(--space-6); font-size: 16px; line-height: 22px; }
.calc-table caption { text-align: left; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold); padding-bottom: 8px; }
.calc-table th, .calc-table td { padding: 11px 0; border-bottom: 1px solid var(--divider-on-brand); text-align: left; font-weight: 400; color: var(--text-on-brand-2); vertical-align: top; }
.calc-table td { text-align: right; color: #fff; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; padding-left: 12px; }
.calc-table tr.total th, .calc-table tr.total td { color: #fff; font-weight: 700; border-bottom: 0; padding-top: 14px; font-size: 18px; }
.calc-table tr.neg td { color: #9ED3B0; }
.calc-msg { margin-top: var(--space-5); padding: 14px 16px; border-radius: var(--radius-control); background: rgba(255,255,255,.07); border: 1px solid var(--divider-on-brand); font-size: 15px; line-height: 22px; color: var(--text-on-brand-2); }
.calc-msg strong { color: #fff; }
.calc-msg.warn { border-color: rgba(242,201,138,.6); }
.calc-msg.warn strong { color: #F2C98A; }
.calc-msg.err { border-color: rgba(255,180,169,.7); }
.calc-msg.err strong { color: #FFB4A9; }
.calc-results .btn-row { margin-top: auto; padding-top: var(--space-6); }
.calc-chart { margin-top: var(--space-6); }
.calc-chart svg { width: 100%; height: auto; overflow: visible; }
.calc-legend { display: flex; gap: 16px; font-size: 13px; color: var(--text-on-brand-2); margin-top: 8px; flex-wrap: wrap; }
.calc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.range-wrap { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--brand-burgundy) var(--fill, 50%), var(--brand-cream) var(--fill, 50%)); }
.range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--brand-cream); }
.range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--brand-burgundy); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-burgundy); margin-top: -9px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-burgundy); }
.range:focus-visible { outline: none; box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.calc-assump { margin-top: var(--space-7); }
.calc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.schedule-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--divider); border-radius: var(--radius-card); margin-top: var(--space-4); background: #fff; }
.schedule { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
.schedule caption { text-align: left; padding: 12px 14px; font-weight: 700; }
.schedule th, .schedule td { padding: 10px 14px; border-bottom: 1px solid var(--divider); text-align: right; white-space: nowrap; }
.schedule th:first-child, .schedule td:first-child { text-align: left; }
.schedule thead th { position: sticky; top: 0; background: var(--bg-subtle); font-weight: 700; }
@media (max-width: 899px) { .calc { grid-template-columns: 1fr; } }
.mini-calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-6); align-items: stretch; }
.mini-calc .calc-results { border-radius: var(--radius-card); }
@media (max-width: 899px) { .mini-calc { grid-template-columns: 1fr; } }
.calc-hub-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: var(--space-6); border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--divider); text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: box-shadow var(--duration-base), border-color var(--duration-base); }
.calc-hub-card:hover { box-shadow: var(--shadow-raised); border-color: transparent; }
.calc-hub-card .gold-num { color: var(--brand-olive); font-size: 56px; }
.calc-hub-card .h3 { font-family: var(--font-serif); font-weight: 600; font-size: 28px; line-height: 34px; color: var(--text-heading); margin: var(--space-4) 0 var(--space-3); }
.calc-hub-card p { font-size: 16px; line-height: 25px; color: var(--text-secondary); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--divider); }
.acc-item { border-bottom: 1px solid var(--divider); }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding: 22px 0; cursor: pointer; font: 600 19px/27px var(--font-sans); color: var(--text-primary); min-height: 48px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--brand-burgundy); }
.acc-item summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--divider); position: relative; transition: background-color var(--duration-fast); }
.acc-item summary .pm::before, .acc-item summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--brand-burgundy); transform: translate(-50%, -50%); }
.acc-item summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity var(--duration-fast); }
.acc-item[open] summary .pm { background: var(--brand-burgundy); border-color: var(--brand-burgundy); }
.acc-item[open] summary .pm::before { background: #fff; }
.acc-item[open] summary .pm::after { opacity: 0; }
.acc-body { padding: 0 56px 24px 0; color: var(--text-secondary); font-size: 17px; line-height: 27px; }
.acc-body p:last-child { margin-bottom: 0; }
.theme-burgundy .accordion, .theme-burgundy .acc-item { border-color: var(--divider-on-brand); }
.theme-burgundy .acc-item summary { color: #fff; }
.theme-burgundy .acc-body { color: var(--text-on-brand-2); }
@media (max-width: 599px) { .acc-body { padding-right: 0; } }

/* ---------- Reviews ---------- */
.review-card { background: var(--bg-surface); border-radius: var(--radius-card); padding: var(--space-6); border: 1px solid var(--divider); display: flex; flex-direction: column; gap: var(--space-4); height: 100%; }
.review-card .stars { color: var(--brand-gold); letter-spacing: 2px; font-size: 18px; }
.review-card blockquote { margin: 0; font: italic 400 20px/30px var(--font-serif); color: var(--text-primary); }
.review-card footer { margin-top: auto; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.review-card footer strong { color: var(--text-primary); display: block; font-size: 15px; }
.video-card { border-radius: var(--radius-card); overflow: hidden; background: var(--brand-burgundy-deep); position: relative; aspect-ratio: 9 / 16; }
.video-card.landscape { aspect-ratio: 16 / 9; }
.video-card button, .video-card a.vc-link { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: none; color: #fff; text-align: left; display: block; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity var(--duration-base); }
.video-card:hover img { opacity: .95; }
.video-card .vc-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(250,248,243,.94); display: grid; place-items: center; color: var(--brand-burgundy); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.video-card .vc-play svg { width: 22px; height: 22px; margin-left: 3px; }
.video-card .vc-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(30,8,10,.88)); font: 600 16px/22px var(--font-sans); }
.video-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--space-4); scrollbar-width: thin; }
.video-rail > * { scroll-snap-align: start; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: var(--space-7); align-items: end; }
.cta-band .h2 { font-size: clamp(34px, 4.4vw, 60px); max-width: 15ch; }
.cta-contacts { display: grid; gap: 14px; }
.cta-contacts a.big-line { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--divider-on-brand); color: #fff; text-decoration: none; font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--font-serif); }
.cta-contacts a.big-line span { font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold); }
.cta-contacts a.big-line:hover { color: var(--brand-gold); }
.cta-band .house-line { position: absolute; right: -40px; top: -20px; width: 520px; opacity: .12; pointer-events: none; }
@media (max-width: 1023px) { .cta-band .inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-burgundy-deep); color: var(--text-on-brand-2); padding-top: var(--space-9); font-size: 15px; line-height: 24px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-7); padding-bottom: var(--space-8); }
.footer-brand img { width: 240px; height: auto; margin: -24px 0 4px -10px; }
.footer-brand p { max-width: 34ch; }
.site-footer h2 { font: 700 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brand-gold); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--brand-gold); }
.site-footer .social-row a { background: transparent; border-color: rgba(255,255,255,.2); color: #fff; }
.site-footer .social-row a:hover { border-color: var(--brand-gold); color: var(--brand-gold); background: transparent; }
.footer-disclosure { border-top: 1px solid rgba(222,182,112,.22); padding-block: var(--space-6); font-size: 13px; line-height: 20px; color: var(--text-on-brand-2); display: grid; gap: 10px; }
.footer-disclosure .legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-disclosure .legal-links a { color: var(--text-on-brand-2); }
@media (max-width: 1023px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 499px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Chat assistant ---------- */
.chat-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px 10px 14px; border-radius: var(--radius-round); background: var(--brand-burgundy); color: #fff; border: 0; box-shadow: var(--shadow-overlay); font: 700 15px/20px var(--font-sans); cursor: pointer; transition: background-color var(--duration-fast); }
.chat-launcher:hover { background: var(--brand-burgundy-deep); }
.chat-launcher .cl-dot { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-gold); color: var(--brand-burgundy); }
.chat-launcher svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .chat-launcher { display: none; } }
.chat-panel { position: fixed; right: 24px; bottom: 24px; z-index: 70; width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 48px)); background: var(--bg-page); border-radius: 16px; box-shadow: var(--shadow-overlay); display: flex; flex-direction: column; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--duration-base) var(--ease-standard), visibility 0s linear var(--duration-base); }
.chat-panel.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
@media (max-width: 767px) { .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; } }
.chat-head { background: var(--brand-burgundy); color: #fff; padding: 16px 16px 16px 20px; display: flex; align-items: center; gap: 12px; }
.chat-head .ch-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-page); display: grid; place-items: center; flex: none; }
.chat-head .ch-avatar img { width: 28px; height: 28px; }
.chat-head .ch-title { font: 600 18px/22px var(--font-serif); }
.chat-head .ch-sub { font-size: 13px; line-height: 18px; color: var(--text-on-brand-2); }
.chat-head .icon-btn { margin-left: auto; background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.chat-head .icon-btn:hover { border-color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px 16px 8px; display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 14px; font-size: 15.5px; line-height: 23px; }
.msg p { margin: 0 0 8px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 6px 0; padding-left: 1.1em; }
.msg-bot { background: var(--bg-surface); border: 1px solid var(--divider); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-user { background: var(--brand-burgundy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg-bot a { font-weight: 700; }
.msg-note { align-self: stretch; max-width: none; font-size: 13px; line-height: 19px; color: var(--text-secondary); background: var(--bg-subtle); border-radius: 10px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.chat-options button, .chat-options a { min-height: 44px; padding: 9px 14px; border-radius: var(--radius-round); border: 1.5px solid var(--brand-burgundy); background: var(--bg-surface); color: var(--brand-burgundy); font: 700 14px/20px var(--font-sans); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.chat-options button:hover, .chat-options a:hover { background: var(--action-secondary-hover); }
.chat-options button.primary { background: var(--brand-burgundy); color: #fff; }
.chat-options button:disabled { opacity: .45; cursor: default; }
body.chat-open .chat-launcher { opacity: 0; pointer-events: none; }
.chat-foot { border-top: 1px solid var(--divider); padding: 12px; background: var(--bg-surface); }
.chat-foot form { display: flex; gap: 8px; }
.chat-foot .input { min-height: 48px; font-size: 16px; }
.chat-foot .btn { min-height: 48px; padding-inline: 16px; }
.chat-foot .caption { margin: 8px 2px 0; font-size: 12px; line-height: 17px; }
.chat-form .field { margin-bottom: 14px; }
.chat-form .field label { font-size: 14px; margin-bottom: 6px; }
.chat-form .input, .chat-form .select, .chat-form .textarea { min-height: 46px; font-size: 16px; padding: 10px 12px; }
.chat-form .textarea { min-height: 90px; }
.chat-review dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0; font-size: 14px; }
.chat-review dt { color: var(--text-secondary); }
.chat-review dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

/* ---------- Misc ---------- */
.map-embed { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--divider); aspect-ratio: 4 / 3; background: var(--bg-warm); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-block { display: grid; gap: var(--space-5); }
.contact-line { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-line .icon-tile { width: 44px; height: 44px; margin: 0; }
.contact-line .icon-tile svg { width: 20px; height: 20px; }
.contact-line .k { display: block; font: 700 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; }
.contact-line .v { display: block; font-size: 18px; line-height: 26px; font-weight: 600; }
.contact-line .v .muted { font-size: 14px; font-weight: 500; }
.contact-line .v a { text-decoration: none; }
.contact-line .v a:hover { text-decoration: underline; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--divider); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.service-hero-art { position: relative; }
.stat-line { display: flex; flex-wrap: wrap; gap: var(--space-6); border-top: 1px solid var(--divider); padding-top: var(--space-5); margin-top: var(--space-6); }
.stat-line div { min-width: 140px; }
.stat-line .v { display: block; font: 600 30px/36px var(--font-serif); color: var(--text-heading); }
.stat-line .k { font-size: 14px; color: var(--text-secondary); }
.empty-state { text-align: center; padding: var(--space-8) var(--space-5); border: 1px dashed var(--border); border-radius: var(--radius-card); background: var(--bg-surface); }
.empty-state .h3 { font-family: var(--font-serif); font-weight: 600; color: var(--text-heading); margin-bottom: var(--space-3); }
.event-card { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-5); padding: var(--space-5); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: var(--radius-card); text-decoration: none; color: inherit; }
.event-date { background: var(--brand-burgundy); color: #fff; border-radius: var(--radius-control); text-align: center; padding: 14px 8px; }
.event-date .m { display: block; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold); }
.event-date .d { display: block; font: 500 44px/1 var(--font-serif); margin-top: 4px; }
.divider-line { height: 1px; background: var(--divider); border: 0; margin: var(--space-7) 0; }
.house-line-svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.draw-on path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .draw-on:not(.is-drawn) path { stroke-dashoffset: var(--len, 2000); }
  .js .draw-on path { transition: stroke-dashoffset 2.2s var(--ease-standard); }
  .js .reveal { opacity: 0; transition: opacity var(--duration-slow) var(--ease-standard); }
  .js .reveal.is-in { opacity: 1; }
  .js .reveal-stagger > * { opacity: 0; transition: opacity var(--duration-slow) var(--ease-standard); }
  .js .reveal-stagger.is-in > * { opacity: 1; }
  .js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 90ms; }
  .js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 180ms; }
  .js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 270ms; }
  .js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 360ms; }
  .js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 450ms; }
  .js .reveal-stagger.is-in > *:nth-child(n+7) { transition-delay: 540ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .chat-launcher, .chat-panel, .action-bar, .btn { display: none !important; }
  body { background: #fff; padding: 0; }
  .calc { box-shadow: none; border: 1px solid #ccc; }
  .calc-results { background: #fff; color: #000; }
  .calc-results * { color: #000 !important; }
}
@media (forced-colors: active) {
  .btn, .chip, .input, .select, .textarea { border: 1px solid CanvasText; }
  .house-frame { outline: 1px solid CanvasText; }
}

/* Full-bleed editorial band */
.image-band { position: relative; min-height: clamp(420px, 56vw, 720px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.image-band-media, .image-band-media picture { position: absolute; inset: 0; }
.image-band-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.image-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(50,16,20,.86) 0%, rgba(50,16,20,.55) 42%, rgba(50,16,20,0) 75%); }
.image-band-copy { position: relative; z-index: 1; padding-block: var(--space-9); }
.image-band .eyebrow { color: var(--brand-gold); }
.image-band-line { font: 500 clamp(36px, 5vw, 68px)/1.05 var(--font-serif); letter-spacing: -0.02em; max-width: 11ch; margin: 0 0 var(--space-6); }
.image-band-line em { font-style: italic; font-weight: 400; color: var(--brand-gold); }
@media (max-width: 767px) { .image-band::after { background: linear-gradient(0deg, rgba(50,16,20,.9) 0%, rgba(50,16,20,.5) 55%, rgba(50,16,20,.1) 100%); } }

/* =====================================================================
   Premium pass (31 Oct 2026): one drawn-line language across the site.
   ===================================================================== */

/* Browser surfaces carry the palette too */
html { scrollbar-color: #b9a99a var(--bg-page); accent-color: var(--brand-burgundy); }
input, textarea { caret-color: var(--brand-burgundy); }
::selection { background: var(--brand-gold); color: var(--brand-burgundy-deep); }
.theme-burgundy ::selection { background: var(--brand-gold); color: var(--brand-burgundy-deep); }
.num, .calc-big, .sp-num, .big-line { font-variant-numeric: lining-nums tabular-nums; }
.split-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-7); }
.split-head .h2 { max-width: 18ch; }
.text-link:hover svg { transform: translateX(3px); }

/* Header steps out of the way while reading down, returns on the way up */
.site-header { transition: transform 420ms var(--ease-out-expo), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
/* Header: fixed and always reachable; compacts after the first scroll without moving the page */
.site-header { position: fixed; left: 0; right: 0; top: 0; }
body { padding-top: var(--header-h); }
.header-inner { transition: height 360ms var(--ease-out-expo); }
.brand-link img { transition: transform 360ms var(--ease-out-expo); transform-origin: left center; }
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 36px); }
.site-header.is-scrolled .brand-link img { transform: scale(.66); }
@media (max-width: 767px) { .site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 26px); } .site-header.is-scrolled .brand-link img { transform: scale(.68); } }

/* Page-to-page continuity (Chrome, Edge, Safari 18.2+; other browsers simply navigate) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: dw-header; }
::view-transition-old(root) { animation: 220ms cubic-bezier(.4, 0, 1, 1) both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out-expo) both vt-in; }
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: var(--ease-out-expo); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Priorities: a list that shows its picture */
.priorities { overflow: hidden; }
.pri-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--space-5) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.pri-head .h2 { max-width: 16ch; }
.pri-head .lede { margin: 0; }
.pri-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.pri-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider-on-brand); }
.pri-item a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px var(--space-5); padding: var(--space-6) 0; border-bottom: 1px solid var(--divider-on-brand); color: #fff; text-decoration: none; }
.pri-media { display: none; }
.pri-title { font: 500 clamp(28px, 3vw, 42px)/1.08 var(--font-serif); letter-spacing: -0.018em; color: #fff; transition: color 400ms var(--ease-out-expo); }
.pri-text { grid-column: 1; color: var(--text-on-brand-2); max-width: 50ch; font-size: 17px; line-height: 27px; }
.pri-tags { grid-column: 1; font-size: 14px; line-height: 20px; color: var(--brand-gold); letter-spacing: .01em; }
.pri-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(222, 182, 112, .5); color: var(--brand-gold); transition: background-color 300ms var(--ease-out-expo), color 300ms, transform 400ms var(--ease-out-expo); }
.pri-go svg { width: 20px; height: 20px; }
.js .pri-item:not(.is-active) .pri-title { color: rgba(255, 255, 255, .58); }
.pri-item.is-active .pri-go, .pri-item a:hover .pri-go { background: var(--brand-gold); color: var(--brand-burgundy); border-color: var(--brand-gold); transform: translateX(4px); }
.pri-stage { position: sticky; top: calc(var(--header-h) + 24px); display: grid; }
.pri-frame { grid-area: 1 / 1; margin: 0; opacity: 0; transform: scale(1.035); transition: opacity 600ms var(--ease-out-expo), transform 900ms var(--ease-out-expo); }
.pri-frame.is-active { opacity: 1; transform: none; }
.pri-frame .house-svg .house-line { stroke: var(--brand-gold); }
.pri-frame .house-svg > polygon { fill: var(--brand-burgundy-card); }
.pri-more { margin: var(--space-7) 0 0; font-size: 15px; line-height: 26px; color: var(--text-on-brand-2); max-width: 900px; }
.pri-more span:first-child { color: #fff; font-weight: 700; margin-right: 6px; }
.pri-more a { color: var(--text-on-brand-2); text-decoration: underline; text-decoration-color: rgba(222, 182, 112, .5); }
.pri-more a:hover { color: var(--brand-gold); }
@media (max-width: 1023px) {
  .pri-head, .pri-grid { grid-template-columns: 1fr; }
  .pri-stage { display: none; }
  .pri-media { display: block; grid-column: 1 / -1; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: var(--space-3); }
  .pri-media img { width: 100%; height: 100%; object-fit: cover; }
  .js .pri-item:not(.is-active) .pri-title { color: #fff; }
}

/* Why DreamWish: the claim, the person saying it, and the three rules behind it */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.why-copy .h2 { max-width: 15ch; }
.why-copy .lede { margin: var(--space-5) 0 var(--space-4); }
.why-video { margin: 0; }
.why-video figcaption { margin-top: 14px; display: grid; gap: 2px; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.why-video figcaption strong { color: var(--text-primary); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-8) 0 0; border-top: 1px solid var(--divider); }
.principles > div { padding: var(--space-5) var(--space-6) 0 0; }
.principles > div + div { padding-left: var(--space-6); border-left: 1px solid var(--divider); }
.principles dt { font: 600 22px/1.25 var(--font-serif); color: var(--text-heading); margin-bottom: 10px; letter-spacing: -0.005em; }
.principles dd { margin: 0; color: var(--text-secondary); font-size: 17px; line-height: 27px; }
@media (max-width: 1023px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .principles { grid-template-columns: 1fr; } .principles > div, .principles > div + div { padding: var(--space-5) 0; border-left: 0; border-bottom: 1px solid var(--divider); } }

/* Featured video: a real poster, one clear play control, YouTube only on request */
.feature-video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--brand-burgundy-deep); box-shadow: 0 40px 80px -40px rgba(70, 18, 23, .55), 0 2px 6px rgba(47, 47, 45, .08); }
.feature-video button { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; text-align: left; }
.feature-video button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 10, 12, 0) 45%, rgba(30, 10, 12, .78) 100%); }
.feature-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out-expo); }
.feature-video button:hover img { transform: scale(1.03); }
.fv-play { position: absolute; z-index: 1; left: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--bg-page); color: var(--brand-burgundy); transition: transform 400ms var(--ease-out-expo); }
.fv-play svg { width: 22px; height: 22px; margin-left: 3px; fill: currentColor; }
.feature-video button:hover .fv-play { transform: scale(1.06); }
.feature-video button:active .fv-play { transform: scale(.96); }
.fv-meta { position: absolute; z-index: 1; left: calc(clamp(16px, 2.4vw, 28px) + 88px); right: 20px; bottom: clamp(20px, 2.6vw, 32px); display: grid; gap: 2px; }
.fv-title { font: 600 clamp(17px, 1.6vw, 21px)/1.3 var(--font-serif); text-wrap: balance; }
.fv-sub { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .78); }
.feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 479px) { .fv-play { width: 56px; height: 56px; } .fv-meta { left: 88px; } .fv-title { font-size: 15px; } }

/* Founder band */
.founder-copy .pull { margin-bottom: var(--space-6); }
.founder-copy .pull p { margin: 0; }
.founder-name { font: 600 26px/1.2 var(--font-serif); color: var(--text-heading); margin-bottom: var(--space-4); }
.founder-name span { display: block; font: 600 14px/20px var(--font-sans); color: var(--text-secondary); margin-top: 4px; letter-spacing: .01em; }
.founder-copy .btn-row { margin-top: var(--space-6); }

/* Journey: the connecting line draws itself as the section arrives */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .journey::before { transform-origin: left center; animation: dw-ground linear both; animation-timeline: view(); animation-range: entry 30% cover 45%; }
    .journey li::before { animation: dw-pop linear both; animation-timeline: view(); animation-range: entry 40% cover 40%; }
    @media (max-width: 1023px) { .journey::before { transform-origin: center top; animation-name: dw-down; } }
  }
}
@keyframes dw-pop { from { transform: scale(.4); opacity: .2; } }
@keyframes dw-down { from { transform: scaleY(0); } }

/* Calculator links as a quiet index rather than three more cards */
.calc-links { list-style: none; margin: var(--space-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--divider); }
.calc-links a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--space-4); height: 100%; padding: var(--space-5) var(--space-5) var(--space-5) 0; text-decoration: none; color: inherit; }
.calc-links li + li a { padding-left: var(--space-5); border-left: 1px solid var(--divider); }
.cl-title { font: 600 21px/1.25 var(--font-serif); color: var(--text-heading); }
.cl-text { grid-column: 1; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.calc-links svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 20px; height: 20px; color: var(--brand-burgundy); transition: transform 400ms var(--ease-out-expo); }
.calc-links a:hover svg { transform: translateX(4px); }
.calc-links a:hover .cl-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 899px) { .calc-links { grid-template-columns: 1fr; } .calc-links li + li a { padding-left: 0; border-left: 0; border-top: 1px solid var(--divider); } }

/* Review spotlight: the score as type, one voice at a time */
.sp-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.sp-num { font: 500 clamp(104px, 11vw, 168px)/.82 var(--font-serif); color: var(--brand-burgundy); letter-spacing: -0.045em; margin: 0; }
.sp-stars { display: flex; gap: 4px; margin: var(--space-4) 0 var(--space-5); color: #B8893A; }
.sp-stars svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.sp-title { max-width: 22ch; margin-bottom: var(--space-3); font-size: 20px; line-height: 28px; }
.sp-links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: var(--space-5); }
.sp-links svg { width: 15px; height: 15px; }
.sp-track { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-7); }
.sp-item figure { margin: 0; position: relative; padding-top: 56px; }
.sp-item figure::before { content: "\201C"; position: absolute; top: -18px; left: -6px; font: 400 120px/1 var(--font-serif); color: var(--brand-gold); }
.sp-item blockquote { margin: 0; }
.sp-item blockquote p { margin: 0; font: italic 400 clamp(22px, 2.3vw, 32px)/1.38 var(--font-serif); color: var(--text-heading); letter-spacing: -0.008em; text-wrap: pretty; max-width: 36ch; }
.sp-item figcaption { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 15px; line-height: 22px; }
.sp-item figcaption strong { color: var(--text-primary); }
.sp-item figcaption span { color: var(--text-secondary); }
.sp-controls { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.sp-count { font-size: 14px; color: var(--text-secondary); min-width: 5ch; text-align: center; }
.js .sp-track { gap: 0; }
.js .sp-item { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 450ms var(--ease-out-expo), transform 650ms var(--ease-out-expo), visibility 0s linear 650ms; }
.js .sp-item.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .js .sp-item { transform: none; } }
@media (max-width: 899px) { .sp-grid { grid-template-columns: 1fr; } .sp-num { font-size: 104px; } }

/* Testimonial rail: title under the frame, not burned over it */
.video-rail { grid-auto-columns: minmax(220px, 270px); gap: var(--space-5); }
.video-rail .video-card { overflow: visible; background: none; aspect-ratio: auto; }
.video-rail .video-card button { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: var(--brand-burgundy-deep); }
.video-rail .video-card img { opacity: 1; transition: transform 900ms var(--ease-out-expo); }
.video-rail .video-card button:hover img { transform: scale(1.03); }
.video-rail .video-card iframe { position: relative; aspect-ratio: 9 / 16; height: auto; border-radius: 6px; }
.video-card .vc-title { position: static; padding: 12px 2px 0; background: none; font: 600 16px/22px var(--font-sans); color: var(--text-primary); margin: 0; }
.video-card .vc-play svg { fill: currentColor; }

/* Resources: one lead story and a short list */
.res-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.res-lead, .res-list a { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 10px; }
.res-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; margin-bottom: var(--space-3); background: var(--bg-warm); }
.res-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease-out-expo); }
.res-lead:hover .res-img img { transform: scale(1.03); }
.res-title { font: 600 clamp(26px, 2.4vw, 34px)/1.16 var(--font-serif); color: var(--text-heading); letter-spacing: -0.01em; text-wrap: balance; }
.res-text { color: var(--text-secondary); font-size: 17px; line-height: 27px; max-width: 56ch; }
.res-meta { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.res-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.res-list a { padding: var(--space-5) 0; border-bottom: 1px solid var(--divider); gap: 8px; }
.res-list .res-title { font-size: 22px; line-height: 1.25; }
.res-lead:hover .res-title, .res-list a:hover .res-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (max-width: 899px) { .res-feature { grid-template-columns: 1fr; } }

/* Image band settles into place as it scrolls by */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .image-band-media img { animation: band-settle linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
  }
}
@keyframes band-settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Monogram tile for people without a headshot yet */
.name-tile { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; background: var(--bg-warm); color: var(--brand-burgundy); overflow: hidden; }
.name-tile svg { position: absolute; inset: 14% 14% 0; width: 72%; height: 86%; stroke: var(--brand-burgundy); opacity: .5; }
.nt-mono { position: relative; margin-top: 18%; font: italic 400 clamp(44px, 6vw, 88px)/1 var(--font-serif); letter-spacing: -0.02em; }

/* Chat launcher: smaller footprint, label shows on wide screens only */
.chat-launcher { min-height: 52px; padding: 8px 18px 8px 8px; font-size: 14.5px; transition: background-color var(--duration-fast), transform 400ms var(--ease-out-expo), opacity 300ms; }
@media (max-width: 1279px) { .chat-launcher { padding: 8px; } .chat-launcher .cl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Team: house-framed portraits, founder first, a filter you can read aloud */
.person-house { display: block; }
.person-house .house-svg { transition: transform 500ms var(--ease-out-expo); }
.person:hover .person-house .house-svg, .team-founder:hover .person-house .house-svg { transform: translateY(-5px); }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) clamp(24px, 4vw, 64px); }
@media (max-width: 1023px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); } .person .p-name { font-size: 18px; line-height: 23px; } }
.person .p-name { margin-top: var(--space-4); }
.team-founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 104px); align-items: end; text-decoration: none; color: inherit; padding-bottom: var(--space-8); border-bottom: 1px solid var(--divider); }
.team-founder .person-house { max-width: 420px; }
.tf-role { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: .02em; color: var(--brand-olive); margin-bottom: var(--space-3); }
.tf-copy .h2 { margin-bottom: var(--space-4); }
.tf-copy .lede { margin-bottom: var(--space-5); }
.team-founder:hover .text-link { background-size: 100% 2px; }
@media (max-width: 767px) { .team-founder { grid-template-columns: 1fr; } .team-founder .person-house { max-width: 300px; } }
.team-sentence { margin: var(--space-8) 0 var(--space-3); font: 400 clamp(22px, 2.4vw, 32px)/1.6 var(--font-serif); color: var(--text-heading); letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .32em; }
.select-inline { appearance: none; -webkit-appearance: none; font: italic 500 1em/1.2 var(--font-serif); color: var(--brand-burgundy); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23461217' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center / .6em no-repeat; border: 0; border-bottom: 1.5px solid var(--brand-gold); border-radius: 0; padding: 0 1em 2px 0; min-height: 44px; cursor: pointer; max-width: 100%; }
.select-inline:hover { border-bottom-color: var(--brand-burgundy); }
.select-inline:focus-visible { outline-offset: 2px; }
.filter-count { margin-bottom: var(--space-7); }

/* Profile portrait */
.profile-photo .person-house { max-width: 440px; }

/* How it works: the house is built as you read the steps */
.build { padding-top: var(--space-6); }
.build-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.build-steps { list-style: none; margin: 0; padding: 0; }
.build-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-block: var(--space-7); border-top: 1px solid var(--divider); }
.build-step:last-child { min-height: 70vh; }
.build-step .step-n { font: italic 400 16px/22px var(--font-serif); color: var(--brand-olive); margin-bottom: var(--space-3); }
.build-title { font: 500 clamp(30px, 3.4vw, 46px)/1.08 var(--font-serif); letter-spacing: -0.018em; color: var(--text-heading); margin-bottom: var(--space-4); max-width: 14ch; }
.build-step p { font-size: 19px; line-height: 30px; color: var(--text-secondary); max-width: 44ch; margin: 0; }
.js .build-step { transition: opacity 500ms var(--ease-out-expo); }
.js .build-step:not(.is-current) { opacity: .38; }
.build-stage { position: sticky; top: calc(50vh - 260px); }
.build-svg { width: 100%; max-width: 480px; height: auto; margin-inline: auto; overflow: visible; }
.build-svg path, .build-svg rect { stroke: var(--brand-burgundy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.build-svg .b-ground { stroke-width: 1.5; }
.build-svg .b-glow { stroke: none; fill: var(--brand-gold); opacity: 0; }
.build-svg .b-knob { fill: var(--brand-burgundy); stroke: none; opacity: 0; }
.build-svg .b-path { stroke: var(--brand-gold); stroke-dasharray: 1; }
.build-caption { text-align: center; font: italic 400 18px/26px var(--font-serif); color: var(--brand-olive); margin-top: var(--space-4); min-height: 26px; }
.js .build-svg .b-part { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms cubic-bezier(.65, 0, .35, 1); }
.js .build-svg .b-glow, .js .build-svg .b-knob { transition: opacity 900ms var(--ease-out-expo); }
.js [data-step="1"] .b-1, .js [data-step="2"] :is(.b-1, .b-2), .js [data-step="3"] :is(.b-1, .b-2, .b-3), .js [data-step="4"] :is(.b-1, .b-2, .b-3, .b-4 .b-part), .js [data-step="5"] .b-part { stroke-dashoffset: 0; }
.js [data-step="5"] .b-glow { opacity: .85; }
.js [data-step="5"] .b-knob { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .build-svg .b-part, .js .build-step { transition: none; } }
@media (max-width: 899px) {
  .build-grid { grid-template-columns: 1fr; }
  .build-stage { display: none; }
  .build-step, .build-step:last-child { min-height: 0; padding-block: var(--space-6); }
  .js .build-step:not(.is-current) { opacity: 1; }
}
.prep-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--divider); }
.prep-cols > div { padding: var(--space-5) var(--space-6) 0 0; }
.prep-cols > div + div { padding-left: var(--space-6); border-left: 1px solid var(--divider); }
.prep-cols .h4 { margin-bottom: var(--space-4); }
@media (max-width: 899px) { .prep-cols { grid-template-columns: 1fr; } .prep-cols > div, .prep-cols > div + div { padding: var(--space-5) 0; border-left: 0; border-bottom: 1px solid var(--divider); } }

/* Hover motion is for mouse users; buttons answer a press */
@media (hover: none), (pointer: coarse) {
  a.house:hover .house-svg, .person:hover .person-house .house-svg, .team-founder:hover .person-house .house-svg { transform: none; }
}
.btn { transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform 140ms var(--ease-out-expo); }
.btn:active { transform: scale(.97); }
.ed-row.ed-plain { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; }
.ed-row.ed-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 767px) { .ed-row.ed-plain, .ed-row.ed-two { grid-template-columns: 1fr auto; } .ed-row.ed-plain .ed-body, .ed-row.ed-two p { grid-column: 1 / -1; } }
.theme-burgundy .principles { border-color: var(--divider-on-brand); }
.theme-burgundy .principles > div + div { border-color: var(--divider-on-brand); }
.theme-burgundy .principles dt { color: #fff; }
.theme-burgundy .principles dd { color: var(--text-on-brand-2); }
.theme-burgundy .principles { margin-top: 0; }
.about-figure { margin: 0; max-width: 460px; justify-self: end; width: 100%; }
.about-figure figcaption { margin-top: 10px; font-size: 13px; color: var(--text-secondary); }
.sv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.sv-grid .lede { margin-top: var(--space-4); }
.sv-points { list-style: none; padding: 0; margin: var(--space-5) 0 0; border-top: 1px solid var(--divider); }
.sv-points li { padding: 14px 0; border-bottom: 1px solid var(--divider); font-size: 16px; line-height: 25px; color: var(--text-primary); }
@media (max-width: 1023px) { .sv-grid { grid-template-columns: 1fr; } .about-figure { justify-self: start; } }
.video-rail .video-card button { aspect-ratio: 4 / 5; }
.video-card picture { display: block; width: 100%; height: 100%; }

/* Reviews page: varied lengths set as a column flow, not a grid of equal boxes */
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-4) clamp(24px, 4vw, 64px); align-items: center; padding-bottom: var(--space-7); margin-bottom: var(--space-7); border-bottom: 1px solid var(--divider); }
.rv-sum-line { font: 600 24px/1.3 var(--font-serif); color: var(--text-heading); margin-bottom: 6px; }
.rv-summary .caption { margin: 0; max-width: 60ch; }
.rv-sum-actions { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 899px) { .rv-summary { grid-template-columns: 1fr; } }
.rv-columns { columns: 3 300px; column-gap: clamp(24px, 3vw, 48px); }
.rv-columns .review-card { break-inside: avoid; margin: 0 0 clamp(24px, 3vw, 40px); height: auto; border: 0; border-top: 1px solid var(--divider); border-radius: 0; background: none; padding: var(--space-5) 0 0; display: block; }
.review-card { margin: 0; }
.review-card .stars { display: flex; gap: 3px; color: #B8893A; margin-bottom: var(--space-4); }
.review-card .stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review-card blockquote { margin: 0; }
.review-card blockquote p { margin: 0; font: italic 400 20px/1.5 var(--font-serif); color: var(--text-heading); }
.review-card figcaption { margin-top: var(--space-4); font-size: 14px; line-height: 20px; color: var(--text-secondary); display: grid; gap: 2px; }
.review-card figcaption strong { color: var(--text-primary); font-size: 15px; }
.rv-columns .review-card:nth-child(3n+1) blockquote p { font-size: 23px; }
@media (max-width: 1023px) { .pri-go { display: none; } .pri-item a { grid-template-columns: 1fr; } }
.contact-ways { margin: 0 0 var(--space-8); }
.contact-ways .cl-title, .calc-index .cl-title { font-size: clamp(22px, 2vw, 28px); }
.calc-index { margin-top: 0; }
.calc-index a, .contact-ways a { padding-block: var(--space-6); }
.rc-meta { display: block; }
.myth { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--brand-gold); }
.sit-list { border-top: 1px solid var(--divider); }
.sit-link { display: block; padding: 16px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: inherit; }
.sit-title { display: block; font: 600 19px/1.3 var(--font-serif); color: var(--text-heading); }
.sit-text { display: block; margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.sit-link:hover .sit-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.calc-links:has(li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc-links:has(li:nth-child(4)) li:nth-child(odd) a { padding-left: 0; border-left: 0; }
.calc-links:has(li:nth-child(4)) li:nth-child(n+3) a { border-top: 1px solid var(--divider); }
/* Phones: portrait, then the person, then the licence and contact card */
@media (max-width: 1023px) {
  .profile-photo { display: contents; }
  .profile-photo .person-house { order: 1; max-width: 320px; }
  .profile-grid > div { order: 2; }
  .profile-photo .profile-card { order: 3; margin-top: 0; }
}

/* Honest Talk videos */
.feature-video.is-vertical { aspect-ratio: 9 / 16; max-width: 340px; }
.why-video.is-vertical { justify-self: center; max-width: 340px; width: 100%; }
.feature-video.is-vertical .fv-meta { left: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + 84px); }
.video-feature .sv-grid { align-items: center; }
.pod-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); align-items: start; }
.pod-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--divider); }
.pod-list a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: inherit; }
.pod-date { font-size: 13px; line-height: 18px; color: var(--brand-olive); font-weight: 700; letter-spacing: .02em; }
.pod-title { font: 600 19px/1.3 var(--font-serif); color: var(--text-heading); }
.pod-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-secondary); }
.pod-meta svg { width: 13px; height: 13px; }
.pod-list a:hover .pod-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cv-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .pod-grid, .cv-grid { grid-template-columns: 1fr; } }
.feature-video button::after { display: none; }
.feature-video .fv-play { box-shadow: 0 10px 30px rgba(30, 10, 12, .35); }
.why-video figcaption strong { font: 600 18px/1.3 var(--font-serif); color: var(--text-heading); margin-bottom: 2px; }
.video-rail .video-card button { height: auto; }

/* =====================================================================
   Creative refinement (31 Oct 2026): one home, from first sketch to lights on.
   ===================================================================== */

/* Hero: the copy and one architectural scene */
.hero-scene-wrap { padding-top: clamp(12px, 2vw, 36px); padding-bottom: clamp(40px, 5vw, 88px); overflow: hidden; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 80px); align-items: center; min-height: min(calc(100svh - var(--header-h) - 32px), 860px); }
.hero-copy { padding-bottom: clamp(4px, 1vw, 16px); }
.hero-copy .display { font-size: clamp(48px, 5.4vw, 84px); max-width: 11ch; margin-bottom: var(--space-5); }
.hero-copy .lede-lg { max-width: 34ch; margin-bottom: var(--space-6); }
.hero-proof { list-style: none; margin: var(--space-7) 0 0; padding: var(--space-5) 0 0; border-top: 1px solid var(--divider); display: grid; gap: 10px; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.hero-proof strong { font: 600 19px/1 var(--font-serif); color: var(--text-heading); margin-right: 4px; }
.scene { position: relative; margin: 0; aspect-ratio: 1000 / 760; justify-self: end; width: min(100%, calc((100svh - var(--header-h) - 72px) * 1.316)); }
.scene-media { position: absolute; inset: 0; clip-path: polygon(1.6% 100%, 1.6% 31.7%, 50% 2.29%, 98.4% 31.7%, 98.4% 100%); overflow: hidden; background: var(--bg-warm); }
.scene-media picture, .scene-media img, .scene-video { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-media img, .scene-video { object-fit: cover; object-position: 50% 58%; transform-origin: 50% 70%; }
.scene-video { opacity: 0; transition: opacity 900ms var(--ease-out-expo); }
.scene-video.is-playing { opacity: 1; }
.scene-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.scene-line path { fill: none; stroke: var(--brand-burgundy); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.scene-line-tall { display: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.arrive) .scene-line path, html.arrived .scene-line path { stroke-dasharray: 1; animation: dw-draw-in 1500ms cubic-bezier(.65, 0, .35, 1) 150ms both; }
  html.arrive:not(.arrived) .scene-line path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html:not(.arrive) .scene-media img, html.arrived .scene-media img { animation: scene-settle 1800ms var(--ease-out-expo) both; }
  html:not(.arrive) .hero-copy > :not(h1), html.arrived .hero-copy > :not(h1) { animation: dw-fade-up 900ms var(--ease-out-expo) both; }
  .hero-copy > :nth-child(2) { animation-delay: 380ms !important; } .hero-copy > :nth-child(3) { animation-delay: 460ms !important; } .hero-copy > :nth-child(4) { animation-delay: 540ms !important; } .hero-copy > :nth-child(5) { animation-delay: 620ms !important; }
  html:not(.arrive) .hero-copy .w > span, html.arrived .hero-copy .w > span { animation: word-rise 1100ms var(--ease-out-expo) both; animation-delay: calc(var(--wi, 0) * 70ms + 60ms); }
  html.arrive:not(.arrived) .hero-copy .w > span { transform: translateY(105%); }
}
@keyframes dw-draw-in { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes scene-settle { from { transform: scale(1.07); } }
@keyframes dw-fade-up { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 1023px) and (min-width: 768px) { .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
@media (max-width: 767px) {
  .hero-layout { grid-template-columns: 1fr; min-height: 0; gap: var(--space-6); }
  .scene { order: -1; aspect-ratio: 600 / 640; width: auto; justify-self: stretch; margin-inline: calc(var(--gutter) * -0.4); }
  .scene-media { clip-path: polygon(2.33% 100%, 2.33% 27.7%, 50% 2.47%, 97.67% 27.7%, 97.67% 100%); }
  .scene-media img, .scene-video { object-position: 50% 60%; }
  .scene-line-wide { display: none; } .scene-line-tall { display: block; }
  .hero-copy .display { font-size: clamp(44px, 12.5vw, 56px); }
  .hero-proof { margin-top: var(--space-6); }
}

/* Arrival: the mark draws itself, then hands over to the header (first visit per session) */
.arrival { display: none; }
html.arrive .arrival { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--bg-page); animation: arrival-failsafe 400ms ease 2600ms forwards; }
html.arrived .arrival { pointer-events: none; }
.arrival-mark { position: relative; width: min(320px, 70vw); }
.arrival-mark img { display: block; width: 100%; height: auto; opacity: 0; animation: dw-appear 700ms var(--ease-out-expo) 320ms forwards; }
@keyframes dw-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.arrive:not(.arrived) .brand-link img { opacity: 0; }
.arrival-line { position: absolute; left: -18%; right: -18%; top: -22%; width: 136%; height: auto; overflow: visible; }
.arrival-line path { fill: none; stroke: var(--brand-gold); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: dw-draw-in 900ms cubic-bezier(.65, 0, .35, 1) 60ms forwards; }
.arrival-skip { position: absolute; right: var(--gutter); bottom: calc(var(--gutter) + env(safe-area-inset-bottom)); background: none; border: 0; padding: 12px 8px; font: 600 14px/20px var(--font-sans); color: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
@keyframes arrival-failsafe { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { html.arrive .arrival { display: none; } }

/* Step inside: the doorway opens as you scroll */
.image-band.is-scrubbed .image-band-media { clip-path: polygon(var(--l, 0%) 100%, var(--l, 0%) var(--e, 0%), 50% var(--p, 0%), calc(100% - var(--l, 0%)) var(--e, 0%), calc(100% - var(--l, 0%)) 100%); }
.image-band.is-scrubbed { background: var(--bg-page); }
.image-band.is-scrubbed::after { opacity: var(--shade, 1); clip-path: polygon(var(--l, 0%) 100%, var(--l, 0%) var(--e, 0%), 50% var(--p, 0%), calc(100% - var(--l, 0%)) var(--e, 0%), calc(100% - var(--l, 0%)) 100%); }
.image-band.is-scrubbed .image-band-media img { animation: none; }

/* Lights on: the closing band shows the same home at dusk */
.cta-scene { position: absolute; inset: 0; overflow: hidden; }
.cta-scene picture, .cta-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-scene img { object-fit: cover; object-position: 70% 55%; }
.cta-scene .cta-night { opacity: var(--night, 1); }
.cta-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(50, 16, 20, .94) 0%, rgba(50, 16, 20, .82) 38%, rgba(50, 16, 20, .25) 72%, rgba(50, 16, 20, .1) 100%); }
.cta-band.has-scene { min-height: clamp(560px, 70vh, 760px); display: flex; align-items: center; }
.cta-band.has-scene .house-line-svg { display: none; }
.cta-band.has-scene .inner { position: relative; z-index: 1; width: 100%; }
@media (max-width: 767px) { .cta-scene img { object-position: 62% 50%; } .cta-scene::after { background: linear-gradient(0deg, rgba(50, 16, 20, .95) 0%, rgba(50, 16, 20, .82) 55%, rgba(50, 16, 20, .35) 100%); } }

/* The sketch develops into the photograph (first visit only) */
@property --dev { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.scene-sketch { display: none; }
html.arrive .scene-sketch { display: block; position: absolute; inset: 0; z-index: 1; }
html.arrive .scene-sketch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
html.arrived .scene-sketch { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 58%, transparent var(--dev), #000 calc(var(--dev) + 34%)); mask-image: radial-gradient(ellipse 70% 80% at 50% 58%, transparent var(--dev), #000 calc(var(--dev) + 34%)); animation: scene-develop 2200ms cubic-bezier(.55, 0, .2, 1) 250ms forwards; }
@keyframes scene-develop { to { --dev: 150%; } }
html.arrived .scene-media img { animation-delay: 250ms; }
@media (max-width: 767px) { html.arrive .scene-sketch img { object-position: 50% 60%; } }

/* ==========================================================================
   Ultra premium pass (31 Oct 2026, evening): living home, real faces, scroll-scrubbed film.
   ========================================================================== */
/* Headline: each word rises out of its own line mask */
.hero-copy .display .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .1em 0; margin: 0 -.08em -.1em 0; }
.hero-copy .display .w > span { display: inline-block; will-change: transform; }
@keyframes word-rise { from { transform: translateY(105%); } }

/* The team, in the first screen: real headshots, never animated */
.hero-team { display: flex; align-items: center; gap: 14px; margin-top: var(--space-6); text-decoration: none; color: inherit; width: fit-content; }
.hero-faces { display: flex; flex: none; }
.hero-faces > * { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bg-page); margin-left: -10px; flex: none; background: var(--bg-warm); object-fit: cover; object-position: 50% 22%; }
.hero-faces > :first-child { margin-left: 0; width: 52px; height: 52px; }
.hero-face-mono { display: grid; place-items: center; font: italic 500 15px/1 var(--font-serif); color: var(--brand-burgundy); }
.hero-team-text { display: grid; gap: 2px; font-size: 14.5px; line-height: 20px; color: var(--text-secondary); }
.hero-team-text strong { font-weight: 650; color: var(--text-heading); }
.hero-team:hover .hero-team-text strong, .hero-team:focus-visible .hero-team-text strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-team + .hero-proof { margin-top: var(--space-5); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-faces > * { transition: transform 300ms var(--ease-out-expo); }
  .hero-team:hover .hero-faces > * { transform: translateX(calc(var(--n, 0) * 2px)); }
  /* Reserve the fan-out room so the last portrait never reaches the text beside it. */
  .hero-team .hero-faces { margin-right: calc((var(--faces, 1) - 1) * 2px); }
}

/* The living home: video fades in over the still once it can play */
.scene-video { z-index: 2; }
.scene-toggle { position: absolute; z-index: 3; right: 4.5%; bottom: 5%; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(47, 47, 45, .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: .78; transition: opacity 200ms ease, transform 160ms ease; }
.scene-toggle:hover, .scene-toggle:focus-visible { opacity: 1; }
.scene-toggle:active { transform: scale(.94); }
.scene-toggle[hidden] { display: none; }
.st-pause { width: 12px; height: 12px; border-inline: 3.5px solid currentColor; box-sizing: border-box; }
.scene-toggle[aria-pressed="true"] .st-pause { border: 0; width: 0; height: 0; border-left: 11px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }

/* Scroll-scrubbed films (doorway, dusk): desktop only, the still stays underneath */
.band-video, .cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease; pointer-events: none; }
.band-video { object-position: center 60%; }
.cta-video { object-position: 70% 55%; }
.band-video.is-ready, .cta-video.is-ready { opacity: 1; }
.cta-scene::after { z-index: 1; }
/* Below 1400px the hero copy column is narrow: faces go above the text so the line never squeezes. */
@media (max-width: 1399px) { .hero-team { flex-direction: column; align-items: flex-start; gap: 10px; } .hero-team .hero-faces { margin-right: 0; } }
@media (max-width: 767px) { .hero-team { flex-direction: column; align-items: flex-start; gap: 10px; } .hero-faces > * { width: 40px; height: 40px; } .hero-faces > :first-child { width: 46px; height: 46px; } }
/* Section titles: a masked rise, applied by scenes.js only to titles still below the fold */
.rise { clip-path: inset(0 0 100% 0); transform: translateY(.35em); }
.rise.is-risen { clip-path: inset(-.2em -.2em -.3em -.2em); transform: none; transition: clip-path 1100ms var(--ease-out-expo), transform 1100ms var(--ease-out-expo); }

/* =====================================================================
   Refinement pass 4 (1 November 2026)
   ===================================================================== */
:root { --bp-ink: var(--brand-burgundy); --bp-paper: var(--bg-page); --wa: #25D366; --wa-deep: #0F7D42; /* 5.2:1 with white text */ --ease-draw: cubic-bezier(.65, 0, .35, 1); }

/* ---------- Header: Home link, WhatsApp, a calmer breakpoint ---------- */
@media (max-width: 1599px) { .header-phone .lbl { display: none; } }
.nav-link, .header-phone, .header-actions .btn { white-space: nowrap; }
@media (max-width: 1360px) { .nav-link { padding-inline: 10px; } }
@media (max-width: 1259px) { .primary-nav, .header-actions .btn, .header-phone, .header-wa { display: none; } .menu-toggle { display: inline-flex; } }
.header-wa { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--wa-deep); transition: background var(--duration-fast); }
.header-wa:hover { background: rgba(37, 211, 102, .1); }
.wa-icon { width: 22px; height: 22px; flex: none; }
.wa-icon .wa-bubble { fill: var(--wa); }
.wa-icon .wa-phone { fill: #fff; }
.btn-wa { --btn-bg: var(--wa-deep); --btn-fg: #fff; --btn-bd: var(--wa-deep); }
.btn-wa:hover { --btn-bg: #0E7A3F; --btn-bd: #0E7A3F; }
.btn-wa .wa-icon .wa-bubble { fill: #fff; } .btn-wa .wa-icon .wa-phone { fill: var(--wa-deep); }
.btn-wa:hover .wa-icon .wa-phone { fill: #0E7A3F; }

/* Mega menu for mortgage options */
.mega.mega-opts { width: min(1080px, 94vw); grid-template-columns: minmax(0, 3.2fr) minmax(0, 4.2fr) minmax(0, 4.6fr); gap: var(--space-6); padding: var(--space-5); left: 0; transform: none; }
.mega-opts .mega-feature { min-height: 0; gap: 12px; justify-content: flex-start; position: relative; overflow: hidden; }
.mega-opts .mega-feature::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 180px; height: 150px; border: 1.5px solid rgba(222, 182, 112, .3); border-bottom: 0; clip-path: polygon(0 100%, 0 40%, 50% 0, 100% 40%, 100% 100%); pointer-events: none; }
.mega-opts .mega-feature .btn { align-self: flex-start; margin-top: 6px; }
.mega-opts .mega-feature .btn svg { width: 16px; height: 16px; }
.mega-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font: 600 14px/20px var(--font-sans); text-decoration: none; margin-top: auto; padding-top: 8px; }
.mega-wa:hover { text-decoration: underline; }
.mega-wa .wa-icon { width: 20px; height: 20px; }
.mega-pri li + li { border-top: 1px solid var(--divider); }
.mega-pri li a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; font-weight: 650; }
.mega-pri img { width: 72px; height: 48px; object-fit: cover; border-radius: 4px; clip-path: polygon(0 100%, 0 32%, 50% 0, 100% 32%, 100% 100%); transition: transform 400ms var(--ease-out-expo); }
.mega-pri li a:hover img { transform: scale(1.04); }
.mega-pri .mp-t span { font-weight: 400; }
.mega-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--space-5); align-content: start; }
.mega-groups h3, .mega-groups .text-link { grid-column: 1 / -1; }
.mega-groups .text-link { margin-top: 10px; font-size: 14.5px; justify-self: start; }
.mg-label { font: italic 400 15px/20px var(--font-serif); color: var(--brand-olive); margin: 4px 0 2px; }
.mega-groups li a { padding: 5px 0; font-size: 15px; }

/* Drawer: grouped options, Home first, call and WhatsApp side by side */
.drawer-opts { padding-bottom: var(--space-4); }
.drawer-pri { display: grid; gap: 6px; margin-bottom: 10px !important; }
.drawer-pri a { display: grid !important; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px 0 !important; font-weight: 650; }
.drawer-pri img { width: 56px; height: 40px; object-fit: cover; border-radius: 3px; clip-path: polygon(0 100%, 0 32%, 50% 0, 100% 32%, 100% 100%); }
.drawer-label { font: italic 400 15px/20px var(--font-serif); color: var(--brand-olive); margin: 12px 0 2px; }
.drawer-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; color: var(--brand-burgundy); text-decoration: none; min-height: 44px; }
.drawer-all svg { width: 16px; height: 16px; }
.drawer .drawer-link.is-active { color: var(--brand-burgundy); }
.drawer-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.drawer-duo .btn { padding-inline: 12px; }

/* WhatsApp elsewhere */
.wa-float { position: fixed; right: calc(24px + var(--cl-w, 270px) + 10px); bottom: 26px; z-index: 60; display: inline-flex; align-items: center; gap: 0; height: 48px; padding: 0 12px; border-radius: 999px; background: var(--bg-surface); color: var(--text-primary); border: 1px solid var(--divider); box-shadow: var(--shadow-card); text-decoration: none; font: 700 14px/1 var(--font-sans); transition: gap 300ms var(--ease-out-expo), box-shadow var(--duration-base); }
.wa-float .wa-icon { width: 24px; height: 24px; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width 360ms var(--ease-out-expo); }
.wa-float:hover, .wa-float:focus-visible { gap: 8px; box-shadow: var(--shadow-raised); }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 90px; }
body.chat-open .wa-float { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .wa-float { display: none; } }
@media (max-width: 767px) {
  .action-bar { grid-template-columns: repeat(4, 1fr); }
  .action-bar .ab-wa .wa-icon { width: 21px; height: 21px; }
  .action-bar .ab-wa .wa-icon .wa-bubble { fill: var(--brand-gold); } .action-bar .ab-wa .wa-icon .wa-phone { fill: var(--brand-burgundy); }
}
.cta-contacts a.big-wa .bw-v { display: inline-flex; align-items: center; gap: 12px; }
.cta-contacts a.big-wa .wa-icon { width: 26px; height: 26px; }
.cta-contacts a.big-wa .wa-icon .wa-bubble { fill: var(--brand-gold); } .cta-contacts a.big-wa .wa-icon .wa-phone { fill: var(--brand-burgundy); }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; }
.footer-wa .wa-icon { width: 18px; height: 18px; }
.contact-ways { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.contact-ways .is-wa .wa-icon { width: 26px; height: 26px; }
@media (max-width: 1023px) { .contact-ways { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .contact-ways { grid-template-columns: 1fr !important; } }

/* Footer: the brand line and the licensing disclosure are separate */
.footer-brandline { font-weight: 600; color: #fff; }
.footer-licence { font-size: 13.5px; line-height: 21px; opacity: .82; }

/* ---------- Arrival: the mark stays clear while house lines open around it ---------- */
.arrival-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.arrival-glow { position: absolute; left: 50%; top: 50%; width: 120vmax; height: 120vmax; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(222, 182, 112, .2), rgba(222, 182, 112, .07) 45%, transparent 70%); opacity: 0; animation: dw-appear 1200ms var(--ease-out-expo) 80ms forwards; }
.arrival-rings { position: absolute; left: 50%; top: 50%; width: calc(min(320px, 70vw) * 2000 / 260); max-width: none; height: auto; transform: translate(-50%, -50%); overflow: visible; }
.arrival-mark { z-index: 1; }
.arrival-rings path { fill: none; stroke: var(--brand-gold); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: calc(.75 - var(--r, 0) * .11); animation: dw-draw-in 820ms var(--ease-draw) calc(var(--r, 0) * 70ms + 100ms) forwards; }
.arrival-rings .arrival-ground { stroke: var(--brand-burgundy); opacity: .14; animation-delay: 60ms; animation-duration: 1200ms; }
.arrival.is-leaving .arrival-rings { transition: transform 900ms var(--ease-out-expo), opacity 700ms var(--ease-out-expo); transform: translate(-50%, -50%) scale(1.18); opacity: 0; }
.arrival.is-leaving .arrival-glow { transition: opacity 600ms; opacity: 0 !important; }
.arrival-line { display: none; }

/* ---------- Hero: confident, masked headline; a swash that draws under the italic ---------- */
.hero-copy .display em { position: relative; display: inline-block; }
.swash { position: absolute; left: .02em; right: .04em; bottom: -.04em; width: calc(100% - .06em); height: .2em; overflow: visible; pointer-events: none; }
.swash path { fill: none; stroke: var(--brand-gold); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.arrive) .hero-copy .w > span, html.arrived .hero-copy .w > span { animation: word-rise-2 1150ms cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--wi, 0) * 65ms + 80ms); }
  html.arrive:not(.arrived) .hero-copy .w > span { transform: translateY(110%) rotate(4deg); }
  .js .swash path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html:not(.arrive) .swash path, html.arrived .swash path { animation: dw-draw-in 900ms var(--ease-draw) 720ms forwards; }
  html:not(.arrive) .hero-copy > .lede-lg, html.arrived .hero-copy > .lede-lg { animation: line-reveal 1000ms cubic-bezier(.19, 1, .22, 1) 420ms both !important; }
  html:not(.arrive) .hero-copy > .btn-row > *, html.arrived .hero-copy > .btn-row > * { animation: soft-rise 900ms cubic-bezier(.19, 1, .22, 1) both; }
  .hero-copy > .btn-row > :nth-child(1) { animation-delay: 560ms !important; } .hero-copy > .btn-row > :nth-child(2) { animation-delay: 640ms !important; }
  html:not(.arrive) .hero-copy > .btn-row, html.arrived .hero-copy > .btn-row { animation: none !important; }
  html:not(.arrive) .hero-faces > *, html.arrived .hero-faces > * { animation: face-in 700ms cubic-bezier(.19, 1, .22, 1) both; animation-delay: calc(var(--n, 0) * 60ms + 760ms); }
  html.arrive:not(.arrived) .hero-copy > .lede-lg, html.arrive:not(.arrived) .hero-copy > .btn-row > *, html.arrive:not(.arrived) .hero-faces > * { opacity: 0; }
  html:not(.arrive) .hero-proof, html.arrived .hero-proof { animation: none !important; }
  html:not(.arrive) .hero-proof li, html.arrived .hero-proof li { animation: soft-rise 800ms cubic-bezier(.19, 1, .22, 1) both; }
  .hero-proof li:nth-child(1) { animation-delay: 940ms !important; } .hero-proof li:nth-child(2) { animation-delay: 1010ms !important; } .hero-proof li:nth-child(3) { animation-delay: 1080ms !important; }
}
@keyframes word-rise-2 { from { transform: translateY(110%) rotate(4deg); } }
@keyframes line-reveal { from { clip-path: inset(0 0 100% 0); transform: translateY(14px); opacity: 0; } to { clip-path: inset(0 0 -20% 0); transform: none; opacity: 1; } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes face-in { from { opacity: 0; transform: translateY(8px) scale(.86); } }
.hero-copy .display .w { transform-origin: 0 100%; }
.hero-copy .display .w > span { transform-origin: 0 100%; }

/* ---------- Section titles reveal line by line (JS splits them) ---------- */
.tl-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.tl-line > span { display: inline-block; transform: translateY(105%); transition: transform 1050ms cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--li, 0) * 90ms); }
.is-risen .tl-line > span { transform: none; }
.rise-follow { opacity: 0; transform: translateY(12px); transition: opacity 900ms var(--ease-out-expo) 240ms, transform 900ms var(--ease-out-expo) 240ms; }
.rise-follow.is-risen { opacity: 1; transform: none; }

/* ---------- The drawn house ---------- */
.bp { width: 100%; height: auto; overflow: visible; }
.bp .bp-ground { stroke: var(--bp-ink); stroke-width: 1.4; opacity: .35; fill: none; vector-effect: non-scaling-stroke; }
.bp .bp-p { fill: none; stroke: var(--bp-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.bp .bp-thin { stroke-width: 1; opacity: .75; }
.bp .bp-studs { opacity: .3; }
.bp .bp-dash { stroke-dasharray: .012 .01; opacity: .5; stroke-width: 1; }
.bp .bp-roof { fill: var(--bp-paper); fill-opacity: 0; }
.bp .bp-stone { fill: #EFE7D8; stroke: var(--bp-ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp .bp-glass { fill: var(--bp-paper); stroke: var(--bp-ink); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.bp .bp-brick { opacity: 0; }
.bp .bp-brickline { fill: none; stroke: var(--bp-ink); stroke-width: .6; opacity: .22; }
.bp .bp-glow { opacity: 0; }
.bp .bp-halo { fill: #F2D394; opacity: 0; }
.bp .bp-leaf { fill: #8C916A; fill-opacity: .55; stroke: var(--brand-olive-dark); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.bp .bp-4 .bp-stone, .bp .bp-4 .bp-glass { opacity: 0; }
/* Each stage draws in turn; [data-step] or .is-drawn-all controls how far the house has come */
.js .bp .bp-g .bp-p { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1300ms var(--ease-draw); }
.js .bp .bp-dash { stroke-dasharray: .012 .01; stroke-dashoffset: 0; opacity: 0; transition: opacity 800ms; }
.bp .bp-roof { transition: fill-opacity 700ms ease 500ms, stroke-dashoffset 1300ms var(--ease-draw); }
.bp .bp-4 .bp-stone, .bp .bp-4 .bp-glass, .bp .bp-brick { transition: opacity 900ms var(--ease-out-expo); }
.bp .bp-glow, .bp .bp-halo, .bp .bp-leaf { transition: opacity 1100ms var(--ease-out-expo); }
.bp .bp-studs { transition: stroke-dashoffset 1300ms var(--ease-draw), opacity 900ms ease !important; }
[data-step="1"] .bp-1 .bp-p, [data-step="2"] :is(.bp-1, .bp-2) .bp-p, [data-step="3"] :is(.bp-1, .bp-2, .bp-3) .bp-p, [data-step="4"] :is(.bp-1, .bp-2, .bp-3, .bp-4) .bp-p, [data-step="5"] .bp-p, .is-drawn-all .bp-p { stroke-dashoffset: 0 !important; }
[data-step="1"] .bp-1 .bp-dash, [data-step="2"] .bp-1 .bp-dash { opacity: .5 !important; }
:is([data-step="3"], [data-step="4"], [data-step="5"]) .bp-studs, .is-drawn-all .bp-studs { opacity: .08 !important; }
:is([data-step="3"], [data-step="4"], [data-step="5"]) .bp-roof, .is-drawn-all .bp-roof { fill-opacity: 1; }
:is([data-step="4"], [data-step="5"]) :is(.bp-4 .bp-stone, .bp-4 .bp-glass), .is-drawn-all :is(.bp-4 .bp-stone, .bp-4 .bp-glass) { opacity: 1; }
:is([data-step="4"], [data-step="5"]) .bp-brick, .is-drawn-all .bp-brick { opacity: 1; }
[data-step="5"] .bp-glow, .is-drawn-all .bp-glow { opacity: .95; }
[data-step="5"] .bp-halo { opacity: .28; }
[data-step="5"] .bp-leaf, .is-drawn-all .bp-leaf { opacity: 1; }

html:not(.js) .bp .bp-roof { fill-opacity: 1; } html:not(.js) .bp :is(.bp-glow, .bp-leaf, .bp-brick, .bp-4 .bp-stone, .bp-4 .bp-glass) { opacity: 1; }

/* ---------- Five steps ---------- */
.bs-head { max-width: 780px; }
.bs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.bs-stage { position: sticky; top: calc(var(--header-h) - 36px + max(16px, (100svh - var(--header-h) + 36px - 560px) / 2)); order: 2; }
.bs-card { position: relative; background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 16px; padding: clamp(18px, 2.4vw, 32px) clamp(18px, 2.4vw, 32px) 20px; box-shadow: 0 30px 60px -36px rgba(70, 18, 23, .28); --bp-paper: var(--bg-surface); overflow: hidden; }
.bs-card::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(70, 18, 23, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 18, 23, .045) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.bs-card > * { position: relative; }
.bs-meter { list-style: none; margin: 0 0 clamp(8px, 1.4vw, 18px); padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bs-meter li { height: 3px; border-radius: 3px; background: var(--divider); overflow: hidden; }
.bs-meter li span { display: block; height: 100%; width: 0; background: var(--brand-burgundy); transition: width 700ms var(--ease-out-expo); }
.bs-meter li.is-done span { width: 100%; }
.bs-cap { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 0; font: italic 400 19px/26px var(--font-serif); color: var(--brand-olive); }
.bs-cap-n { font: 600 13px/20px var(--font-sans); font-style: normal; letter-spacing: .12em; color: var(--brand-burgundy); }
.bs-steps { list-style: none; margin: 0; padding: 0; order: 1; counter-reset: s; }
.bs-step { display: grid; min-height: 58vh; align-content: center; padding-block: var(--space-7); border-top: 1px solid var(--divider); }
.bs-step:last-child { min-height: 64vh; }
.bs-num { font: 400 44px/1 var(--font-serif); color: var(--brand-gold); letter-spacing: -0.02em; padding-top: 2px; transition: color 500ms; }
.bs-title { font: 500 clamp(26px, 2.8vw, 38px)/1.1 var(--font-serif); letter-spacing: -0.016em; color: var(--text-heading); margin-bottom: var(--space-3); }
.bs-step p { font-size: 18px; line-height: 29px; color: var(--text-secondary); max-width: 44ch; margin: 0 0 var(--space-4); }
.bs-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/18px var(--font-sans); color: var(--brand-olive-dark); background: rgba(93, 96, 67, .1); padding: 7px 12px; border-radius: 999px; }
.bs-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); }
.js .bs-step :is(.bs-title, p, .bs-num, .bs-tag) { transition: color 600ms var(--ease-out-expo), background-color 600ms; }
.js .bs-step:not(.is-current) .bs-title { color: #8A7470; }
.js .bs-step:not(.is-current) p { color: #6F6E66; }
.js .bs-step:not(.is-current) .bs-num { color: #8F7B55; }
.js .bs-step:not(.is-current) .bs-tag { color: #5C5E4A; background: rgba(93, 96, 67, .06); }
.js .bs-step.is-current .bs-num { color: var(--brand-burgundy); }
.bs-link { margin-top: var(--space-6); }
.bg-subtle .bs-card { background: var(--bg-surface); }
@media (max-width: 899px) {
  .bs-grid { grid-template-columns: 1fr; gap: 0; }
  .bs-stage { order: 0; top: calc(var(--header-h) - 26px); z-index: 2; padding: 8px 0 12px; background: linear-gradient(var(--section-bg, var(--bg-page)) 82%, transparent); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .bg-subtle .bs-stage { --section-bg: var(--bg-subtle); } .bg-surface .bs-stage { --section-bg: var(--bg-surface); }
  .bs-card { padding: 12px 14px 10px; border-radius: 12px; }
  .bs-card .bp { max-height: 30svh; }
  .bs-cap { font-size: 16px; line-height: 22px; margin-top: 2px; }
  .bs-step { min-height: 46svh; padding-block: var(--space-6); } .bs-inner { grid-template-columns: 44px minmax(0, 1fr) !important; gap: 0 14px !important; }
  .bs-step:last-child { min-height: 50svh; }
  .bs-num { font-size: 34px; }
  .bs-step p { font-size: 17px; line-height: 27px; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) { .bs-step, .bs-step:last-child { min-height: 0; } .js .bp .bp-g .bp-p { transition: none; } }

/* ---------- Sasitha's videos ---------- */
.reel-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(196px, 1fr); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: -4px -4px 0; scrollbar-width: thin; }
.reel-rail > * { scroll-snap-align: start; }
.reel-rail.is-wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; }
.reel-rail.is-short { grid-auto-columns: minmax(180px, 220px); }
.reel { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--brand-burgundy-deep); cursor: pointer; color: #fff; text-align: left; isolation: isolate; box-shadow: 0 18px 40px -26px rgba(50, 16, 20, .55); transition: transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out-expo); }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 10, 12, .38) 0%, transparent 26%, transparent 46%, rgba(30, 10, 12, .9) 100%); }
.reel:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -24px rgba(50, 16, 20, .6); }
.reel:hover img { transform: scale(1.045); }
.reel-src { position: absolute; z-index: 2; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border-radius: 999px; background: rgba(20, 8, 10, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 700 11.5px/1 var(--font-sans); letter-spacing: .04em; }
.reel-src svg { width: 15px; height: 15px; }
.reel-play { position: absolute; z-index: 2; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brand-burgundy); transition: transform 400ms var(--ease-out-expo); }
.reel-play svg { width: 13px; height: 13px; margin-left: 2px; fill: currentColor; }
.reel:hover .reel-play { transform: scale(1.1); }
.reel-meta { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 4px; }
.reel-topic { font: 700 11px/14px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-gold); }
.reel-title { font: 600 17px/1.25 var(--font-serif); }
.follow { display: grid; gap: 10px; }
.follow-lead { margin: 0; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.follow-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.follow-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; border: 1px solid var(--divider); border-radius: 999px; background: var(--bg-surface); color: var(--text-primary); text-decoration: none; font-size: 14px; line-height: 18px; transition: border-color var(--duration-fast), transform 300ms var(--ease-out-expo); }
.follow-list a:hover { border-color: var(--brand-burgundy); transform: translateY(-1px); }
.follow-list a > svg { width: 20px; height: 20px; color: var(--brand-burgundy); }
.follow-list a strong { display: block; font-weight: 700; }
.follow-list a span span { display: block; color: var(--text-secondary); font-size: 13px; }
.follow.is-compact .follow-list a { min-height: 44px; padding: 6px 14px 6px 10px; }
.learn-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.learn-copy .lede { margin: var(--space-4) 0 var(--space-6); }
.learn .split-head { align-items: end; }
.reel-filter { margin: var(--space-6) 0 var(--space-5); gap: 8px; flex-wrap: wrap; }
.es-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.es-grid .lede { margin: var(--space-4) 0 var(--space-5); }
.founder-copy .follow { margin-top: var(--space-6); }
@media (max-width: 1023px) { .learn-grid, .es-grid { grid-template-columns: 1fr; } .reel-rail { grid-auto-columns: minmax(170px, 46%); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } .reel-rail.is-wrap { margin-inline: 0; padding-inline: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
@media (max-width: 480px) { .reel-rail { grid-auto-columns: 62%; } .reel-title { font-size: 15.5px; } }

/* The player */
.media-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow: hidden; }
.media-dialog::backdrop { background: rgba(22, 8, 10, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.media-dialog[open] { display: grid; place-items: center; }
.md-inner { display: grid; gap: 12px; width: min(420px, calc(100vw - 32px)); animation: md-in 500ms var(--ease-out-expo); }
.md-frame { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: calc(100svh - 110px); border-radius: 14px; overflow: hidden; background: #000; }
.md-frame.is-ig { aspect-ratio: auto; height: min(760px, calc(100svh - 110px)); background: #fff; }
.md-frame.is-wide { aspect-ratio: 16 / 9; }
.md-inner.is-wide { width: min(1100px, calc(100vw - 32px)); }
.md-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.md-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.md-out { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; font-size: 14px; }
.md-out svg { width: 14px; height: 14px; }
.md-close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; }
.md-close svg { width: 20px; height: 20px; }
@keyframes md-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }

/* ---------- Podcast: on air ---------- */
.why-grid { align-items: center; }
.on-air { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--brand-burgundy); color: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 80px -48px rgba(50, 16, 20, .7); }
.on-air .feature-video { border-radius: 0; }
.oa-body { padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 6px; }
.oa-show { margin: 0; display: inline-flex; align-items: center; gap: 10px; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-gold); }
.oa-dot { width: 8px; height: 8px; border-radius: 50%; background: #E2554B; box-shadow: 0 0 0 0 rgba(226, 85, 75, .6); }
@media (prefers-reduced-motion: no-preference) { .oa-dot { animation: oa-pulse 2.4s ease-out infinite; } }
@keyframes oa-pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 85, 75, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(226, 85, 75, 0); } }
.oa-title { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--font-serif); color: #fff; margin: 4px 0 0; }
.oa-meta { margin: 0 0 10px; color: var(--text-on-brand-2); font-size: 15px; }
.oa-jump { margin: 6px 0 2px; font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-on-brand-2); }
.oa-chapters { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.oa-chapters button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(222, 182, 112, .35); background: rgba(255, 255, 255, .04); color: #fff; font: 600 14px/18px var(--font-sans); cursor: pointer; transition: background var(--duration-fast), border-color var(--duration-fast); }
.oa-chapters button .num { color: var(--brand-gold); font-weight: 700; }
.oa-chapters button:hover, .oa-chapters button.is-on { background: rgba(222, 182, 112, .14); border-color: var(--brand-gold); }
.oa-more { margin: 4px 0 6px; color: var(--text-on-brand-2); font-size: 15px; line-height: 23px; }
.oa-more a { color: #fff; }
.on-air .caption { color: var(--text-on-brand-2); margin: 0; font-size: 13px; }

/* ---------- Promises ---------- */
.promises { margin-top: var(--space-9); }
.promises-title { font: 600 clamp(26px, 2.6vw, 34px)/1.15 var(--font-serif); color: var(--text-heading); margin-bottom: var(--space-6); max-width: 22ch; letter-spacing: -0.012em; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.promise { position: relative; padding-top: var(--space-6); }
.promise::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--brand-gold); transform-origin: 0 50%; }
.js .promise::before { transform: scaleX(0); transition: transform 1200ms var(--ease-out-expo); }
.js .promises.is-in .promise::before { transform: none; }
.js .promises.is-in .promise:nth-child(2)::before { transition-delay: 150ms; } .js .promises.is-in .promise:nth-child(3)::before { transition-delay: 300ms; }
.promise-icon { width: 44px; height: 44px; margin-bottom: var(--space-4); fill: none; stroke: var(--brand-burgundy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.promise-t { font: italic 400 clamp(23px, 2.1vw, 28px)/1.22 var(--font-serif); color: var(--text-heading); margin-bottom: var(--space-3); letter-spacing: -0.01em; }
.promise p { color: var(--text-secondary); font-size: 17px; line-height: 27px; margin: 0; max-width: 38ch; }
.promises-sign { display: flex; align-items: center; gap: 12px; margin: var(--space-7) 0 0; font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.promises-sign img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.section > .container > .promises:first-child { margin-top: 0; }
@media (max-width: 899px) { .promise-list { grid-template-columns: 1fr; gap: var(--space-6); } .promises { margin-top: var(--space-8); } }

/* ---------- Founder title ---------- */
.founder-name .founder-role { font: 600 17px/24px var(--font-sans); color: var(--text-heading); margin-top: 6px; letter-spacing: .005em; }
.founder-name .founder-co { font: italic 400 17px/24px var(--font-serif); color: var(--brand-olive); margin-top: 0; }

/* ---------- Calculators as tools ---------- */
.tools-head { font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); margin: var(--space-8) 0 var(--space-4); }
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tool { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 6px; height: 100%; padding: 24px 24px 22px; background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 14px; text-decoration: none; color: var(--text-primary); overflow: hidden; transition: border-color var(--duration-base), transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo); }
.tool:hover { border-color: var(--brand-burgundy); transform: translateY(-3px); box-shadow: 0 26px 50px -34px rgba(70, 18, 23, .45); }
.tool-glyph { width: 140px; height: auto; margin-bottom: 10px; overflow: visible; }
.tool-glyph .g-axis { fill: none; stroke: var(--divider); stroke-width: 1.5; }
.tool-glyph .g-bars { fill: none; stroke: var(--brand-gold); stroke-width: 5; stroke-linecap: round; opacity: .55; }
.tool-glyph .g-line { fill: none; stroke: var(--brand-burgundy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tool-glyph .g-needle { stroke: var(--brand-burgundy); stroke-width: 2.2; stroke-linecap: round; transform-origin: 82px 84px; }
.tool-glyph .g-dot { fill: var(--brand-burgundy); }
@media (prefers-reduced-motion: no-preference) {
  .js .tool .g-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-draw) 200ms; }
  .js .tools.is-in .tool .g-line { stroke-dashoffset: 0; }
  .tool:hover .g-line { animation: g-redraw 1200ms var(--ease-draw); }
  .js .tool .g-needle { transform: rotate(-70deg); transition: transform 1400ms cubic-bezier(.34, 1.56, .64, 1) 400ms; }
  .js .tools.is-in .tool .g-needle { transform: none; }
}
@keyframes g-redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.tool-n { position: absolute; right: 22px; top: 18px; font: 400 26px/1 var(--font-serif); color: #8F7B55; }
.tool-title { font: 600 22px/1.2 var(--font-serif); color: var(--text-heading); }
.tool-text { font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.tool-points { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 21px; }
.tool-points li { display: flex; gap: 10px; } .tool-points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-gold); margin-top: 8px; flex: none; }
.tool-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--brand-burgundy); }
.tool-go svg { width: 16px; height: 16px; transition: transform var(--duration-fast); }
.tool:hover .tool-go svg { transform: translateX(4px); }
.tools.is-large .tool { padding: 30px 30px 26px; }
.tools.is-large .tool-glyph { width: 170px; }
.tools.is-large .tool-title { font-size: 26px; }
.calc-sec .mini-calc { margin-top: 0; }
@media (max-width: 899px) { .tools { grid-template-columns: 1fr; } .tool { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: none; column-gap: 18px; align-items: start; } .tool-glyph { width: 112px; grid-row: 1 / span 4; margin: 4px 0 0; } .tool > :not(.tool-glyph):not(.tool-n) { grid-column: 2; } .tools.is-large .tool-glyph { width: 112px; } }
@media (max-width: 420px) { .tool { grid-template-columns: 1fr; } .tool-glyph { grid-row: auto; width: 120px !important; margin-bottom: 6px; } .tool > :not(.tool-glyph):not(.tool-n) { grid-column: 1; } }

.calc-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.calc-hero .h1 em { font-style: italic; font-weight: 500; }
.calc-hero .lede-lg { margin: var(--space-5) 0 var(--space-6); }
.calc-art { position: relative; padding: clamp(16px, 2.4vw, 32px); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 18px; --bp-paper: var(--bg-surface); box-shadow: 0 40px 80px -50px rgba(70, 18, 23, .4); }
.calc-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: linear-gradient(rgba(70, 18, 23, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(70, 18, 23, .045) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.calc-art .bp { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .js .calc-art .bp-g .bp-p { transition-duration: 1500ms; }
  .js .calc-art .bp-1 .bp-p { transition-delay: 100ms; } .js .calc-art .bp-2 .bp-p { transition-delay: 450ms; } .js .calc-art .bp-3 .bp-p { transition-delay: 800ms; } .js .calc-art .bp-4 .bp-p { transition-delay: 1100ms; } .js .calc-art .bp-5 .bp-p { transition-delay: 1400ms; }
  .js .calc-art .bp-glow, .js .calc-art .bp-leaf, .js .calc-art .bp-brick, .js .calc-art .bp-4 :is(.bp-stone, .bp-glass) { transition-delay: 1600ms; }
  .js .calc-art .bp-roof { transition-delay: 1300ms; }
  .js .calc-art:not(.is-live) .bp { --hold: 1; }
  .js .calc-art:not(.is-live) .bp .bp-p { stroke-dashoffset: 1 !important; }
  .js .calc-art:not(.is-live) .bp :is(.bp-glow, .bp-leaf, .bp-brick, .bp-4 .bp-stone, .bp-4 .bp-glass) { opacity: 0 !important; }
  .js .calc-art:not(.is-live) .bp .bp-roof { fill-opacity: 0 !important; }
  .js .calc-art .bp-tag { opacity: 0; transform: translate(-50%, -50%) translateY(8px); transition: opacity 600ms var(--ease-out-expo), transform 600ms var(--ease-out-expo); }
  .js .calc-art.is-live .bp-tag { opacity: 1; transform: translate(-50%, -50%); }
  .js .calc-art.is-live .bp-tag:nth-of-type(1) { transition-delay: 1900ms; } .js .calc-art.is-live .bp-tag:nth-of-type(2) { transition-delay: 2050ms; } .js .calc-art.is-live .bp-tag:nth-of-type(3) { transition-delay: 2200ms; }
}
.bp-tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 999px; box-shadow: var(--shadow-card); text-decoration: none; color: var(--text-primary); white-space: nowrap; z-index: 2; }
.bp-tag:hover { border-color: var(--brand-burgundy); }
.bp-tag-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-burgundy); box-shadow: 0 0 0 4px rgba(222, 182, 112, .45); flex: none; }
.bp-tag-label { display: grid; font-size: 13px; line-height: 17px; }
.bp-tag-label strong { font-size: 14.5px; color: var(--text-heading); }
.bp-tag-label span { color: var(--text-secondary); }
@media (max-width: 1023px) { .calc-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .bp-tag { padding: 6px 10px 6px 8px; } .bp-tag-label span { display: none; } .bp-tag-label strong { font-size: 13px; } }
.calc-head-side .tool-glyph { display: block; width: 132px; height: auto; margin: 0 0 var(--space-4); }
.calc-page-head .tool-glyph .g-line { stroke-dashoffset: 0; }
@media (max-width: 767px) { .calc-head-side .tool-glyph { width: 104px; margin-bottom: var(--space-3); } }

/* ---------- Mortgage options: priorities and the finder ---------- */
.opt-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.opt-card { display: grid; gap: 8px; color: #fff; text-decoration: none; height: 100%; align-content: start; }
.opt-art { display: block; margin-bottom: 14px; }
.opt-art .house-svg { width: 100%; height: auto; display: block; transition: transform 700ms var(--ease-out-expo); }
.opt-art .house-svg > polygon { fill: var(--brand-burgundy-card); }
.opt-art .house-svg .house-line { stroke: var(--brand-gold); }
.opt-card:hover .house-svg { transform: translateY(-6px); }
.opt-n { font: 400 22px/1 var(--font-serif); color: var(--brand-gold); }
.opt-title { font: 500 clamp(26px, 2.6vw, 34px)/1.12 var(--font-serif); letter-spacing: -0.015em; }
.opt-text { color: var(--text-on-brand-2); font-size: 16.5px; line-height: 26px; }
.theme-burgundy .opt-go { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-gold); font-weight: 700; font-size: 15px; margin-top: 6px; }
.opt-go svg { width: 16px; height: 16px; transition: transform var(--duration-fast); }
.opt-card:hover .opt-go svg { transform: translateX(4px); }
@media (max-width: 899px) { .opt-cards { grid-template-columns: 1fr; gap: var(--space-7); } .opt-art { max-width: 360px; } }
.finder-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--space-8); align-items: end; margin-bottom: var(--space-7); }
.finder-head .lede { margin: 0; }
.finder-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--divider); margin-bottom: var(--space-6); }
.finder-tabs button { position: relative; display: grid; gap: 4px; text-align: left; min-height: 64px; padding: 14px 18px 16px 0; border: 0; background: none; cursor: pointer; font: 600 17px/1.25 var(--font-serif); color: var(--text-secondary); transition: color var(--duration-base); }
.finder-tabs button::after { content: ""; position: absolute; left: 0; right: 18px; bottom: -1px; height: 2px; background: var(--brand-burgundy); transform: scaleX(0); transform-origin: 0 50%; transition: transform 500ms var(--ease-out-expo); }
.finder-tabs button[aria-selected="true"] { color: var(--text-heading); }
.finder-tabs button[aria-selected="true"]::after { transform: none; }
.finder-tabs button:hover { color: var(--text-heading); }
.ft-n { font: 700 12px/16px var(--font-sans); letter-spacing: .12em; color: #7A6A48; }
.fp-title { font: 600 24px/1.2 var(--font-serif); color: var(--text-heading); margin: 0 0 var(--space-4); }
.js .finder-tabs:not([hidden]) ~ .finder-panels .fp-title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.finder-panel + .finder-panel { margin-top: var(--space-7); }
.js .finder-tabs:not([hidden]) ~ .finder-panels .finder-panel + .finder-panel { margin-top: 0; }
.finder-panel[hidden] { display: none; }
.fp-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.fp-opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; height: 100%; padding: 22px 22px 22px 24px; border: 1px solid var(--divider); border-radius: 14px; background: var(--bg-surface); text-decoration: none; color: var(--text-primary); transition: border-color var(--duration-base), transform 500ms var(--ease-out-expo), box-shadow 500ms var(--ease-out-expo); }
.fp-opt:hover { border-color: var(--brand-burgundy); transform: translateY(-2px); box-shadow: 0 24px 46px -34px rgba(70, 18, 23, .45); }
.fp-t { font: 600 21px/1.25 var(--font-serif); color: var(--text-heading); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fp-badge { font: 700 10.5px/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-olive-dark); background: rgba(222, 182, 112, .3); padding: 5px 8px; border-radius: 999px; }
.fp-d { grid-column: 1; font-size: 15.5px; line-height: 24px; color: var(--text-secondary); }
.fp-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--divider); color: var(--brand-burgundy); transition: background var(--duration-base), color var(--duration-base); }
.fp-go svg { width: 16px; height: 16px; }
.fp-opt:hover .fp-go { background: var(--brand-burgundy); color: #fff; border-color: var(--brand-burgundy); }
.finder-foot { margin: var(--space-6) 0 0; color: var(--text-secondary); }
.js .finder-panel.is-entering .fp-opt { animation: soft-rise 600ms var(--ease-out-expo) both; }
.js .finder-panel.is-entering li:nth-child(2) .fp-opt { animation-delay: 60ms; } .js .finder-panel.is-entering li:nth-child(3) .fp-opt { animation-delay: 120ms; } .js .finder-panel.is-entering li:nth-child(4) .fp-opt { animation-delay: 180ms; }
@media (max-width: 899px) {
  .finder-head { grid-template-columns: 1fr; }
  .finder-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border: 0; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .finder-tabs::-webkit-scrollbar { display: none; }
  .finder-tabs button { flex: none; scroll-snap-align: start; min-height: 48px; padding: 10px 16px; border: 1px solid var(--divider); border-radius: 999px; background: var(--bg-surface); font: 600 15px/20px var(--font-sans); display: inline-flex; align-items: center; gap: 8px; }
  .finder-tabs button::after { display: none; }
  .finder-tabs button[aria-selected="true"] { background: var(--brand-burgundy); color: #fff; border-color: var(--brand-burgundy); }
  .finder-tabs button[aria-selected="true"] .ft-n { color: var(--brand-gold); }
  .fp-list { grid-template-columns: 1fr; }
  .fp-opt { padding: 18px; }
  .fp-t { font-size: 19px; }
}

/* ---------- Areas map ---------- */
.areas-wrap { margin: var(--space-7) 0 var(--space-8); }
.areas { margin: 0; background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 18px; padding: clamp(16px, 2.6vw, 32px); }
.areas-svg { width: 100%; height: auto; overflow: visible; }
.am-lake { fill: #E7EEF1; }
.am-shore { fill: none; stroke: #8FA7B3; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.am-water { font: italic 400 22px var(--font-serif); fill: #6E8894; letter-spacing: .04em; }
.am-ring { fill: none; stroke: var(--brand-gold); stroke-width: 1.2; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; opacity: .9; }
.am-km { font: 600 12px var(--font-sans); fill: var(--brand-olive); letter-spacing: .06em; }
.am-city circle { fill: var(--bg-surface); stroke: var(--brand-burgundy); stroke-width: 2; vector-effect: non-scaling-stroke; }
.am-city text { font: 600 15px var(--font-sans); fill: var(--text-primary); }
.am-office circle { fill: var(--brand-burgundy); }
.am-office text { font: 700 15px var(--font-sans); fill: var(--brand-burgundy); }
.am-office .am-pulse { fill: var(--brand-gold); opacity: .45; transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .am-office .am-pulse { animation: am-pulse 2.6s ease-out infinite; }
  .js .areas .am-shore { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--ease-draw); }
  .js .areas.is-in .am-shore { stroke-dashoffset: 0; }
  .js .areas .am-city, .js .areas .am-ring, .js .areas .am-km { opacity: 0; transition: opacity 600ms ease; transition-delay: calc(var(--i, 0) * 90ms + 500ms); }
  .js .areas.is-in .am-city, .js .areas.is-in .am-km { opacity: 1; } .js .areas.is-in .am-ring { opacity: .9; }
}
@keyframes am-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(3.2); opacity: 0; } }
.areas figcaption { margin-top: 14px; font-size: 14px; line-height: 21px; color: var(--text-secondary); max-width: 80ch; }
@media (max-width: 600px) { .am-city text { font-size: 20px; } .am-office text { font-size: 19px; } .am-km { font-size: 16px; } .am-water { font-size: 26px; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 767px) {
  .why-grid { gap: var(--space-6); }
  .oa-chapters button { min-height: 44px; }
  .founder-name .founder-role, .founder-name .founder-co { font-size: 16px; }
  .chat-launcher { bottom: 76px; }
}

/* Rail controls */
.reel-wrap { position: relative; min-width: 0; }
.reel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.reel-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--divider); background: var(--bg-surface); color: var(--brand-burgundy); display: grid; place-items: center; cursor: pointer; transition: border-color var(--duration-fast), opacity var(--duration-fast); }
.reel-nav button:hover { border-color: var(--brand-burgundy); }
.reel-nav button[disabled] { opacity: .35; cursor: default; }
.reel-nav svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .reel-wrap .reel-rail:not(.is-wrap) { grid-auto-columns: calc((100% - 3 * 16px) / 3.35); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } .reel-wrap.at-end .reel-rail { -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 1023px) { .reel-nav { display: none; } }
.cta-contacts a.big-wa span.bw-v { font: inherit; letter-spacing: inherit; text-transform: none; color: inherit; }
.theme-burgundy .opt-card { color: #fff; }
.areas-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.areas-copy .lede { margin: var(--space-4) 0 var(--space-5); }
@media (max-width: 1023px) { .areas-wrap { grid-template-columns: 1fr; } }
.contact-ways .cl-text strong { color: var(--text-primary); }
@media (max-width: 767px) {
  .header-wa { display: none; }
  .follow-list a span span { display: none; }
  .follow-list a { min-height: 44px; padding: 6px 14px 6px 10px; }
}
.map-facade { display: grid; place-items: center; background: linear-gradient(135deg, var(--bg-warm), var(--bg-subtle)); }
.map-load { display: inline-flex; align-items: center; gap: 14px; max-width: 320px; padding: 16px 20px; border: 1px solid var(--divider); border-radius: 12px; background: var(--bg-surface); color: var(--text-primary); text-align: left; cursor: pointer; box-shadow: var(--shadow-card); }
.map-load:hover { border-color: var(--brand-burgundy); }
.map-load > svg { width: 26px; height: 26px; color: var(--brand-burgundy); flex: none; }
.map-load strong { display: block; font-size: 15px; } .map-load span span { display: block; font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: 2px; }

/* ---------- Pass 4b: contact people, follow card, synced steps ---------- */
.visit-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.contact-people { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 560px; justify-self: end; width: 100%; }
.cp-photo { width: 78%; }
.cp-photo .house-svg { width: 100%; height: auto; display: block; }
.cp-card { position: absolute; right: 0; bottom: 8%; width: min(320px, 62%); background: var(--bg-surface); border: 1px solid var(--divider); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-raised); display: grid; gap: 10px; }
.cp-who { margin: 0; display: grid; } .cp-who strong { font: 600 19px/1.2 var(--font-serif); color: var(--text-heading); } .cp-who span { font-size: 14px; color: var(--text-secondary); }
.cp-text { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.cp-team { white-space: nowrap; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; text-decoration: none; font-weight: 700; font-size: 14.5px; color: var(--brand-burgundy); min-height: 44px; }
.cp-team > span:last-child { display: inline-flex; align-items: center; gap: 6px; } .cp-team svg { width: 15px; height: 15px; }
.cp-team .hero-faces > * { width: 36px; height: 36px; } .cp-team .hero-faces > :first-child { width: 36px; height: 36px; }
.cp-team:hover > span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.footer-x { display: block; font-weight: 700; color: #fff; }
@media (max-width: 1023px) { .visit-wrap { grid-template-columns: 1fr; } .contact-people { justify-self: start; } }
@media (max-width: 560px) { .cp-photo { width: 100%; } .cp-card { position: relative; right: auto; bottom: auto; width: auto; margin: -48px 12px 0; } }

.follow-card { border: 1px solid var(--divider); border-radius: 16px; background: var(--bg-page); padding: 16px; display: grid; gap: 12px; max-width: 420px; }
.bg-surface .follow-card { background: var(--bg-page); }
.fc-lead { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.fc-lead span { font: 700 12px/16px var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--text-secondary); }
.fc-lead strong { font: italic 500 16px/22px var(--font-serif); color: var(--text-heading); }
.fc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc-grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--divider); text-decoration: none; color: var(--text-primary); transition: border-color var(--duration-fast), transform 300ms var(--ease-out-expo); }
.fc-grid a:hover { border-color: var(--brand-burgundy); transform: translateY(-2px); }
.fc-grid a > svg { width: 22px; height: 22px; flex: none; color: var(--brand-burgundy); }
.fc-grid a strong { display: block; font-size: 14.5px; line-height: 18px; }
.fc-grid a span span { display: block; font-size: 12.5px; line-height: 16px; color: var(--text-secondary); }
.learn-copy .lede { margin-bottom: var(--space-5); }

/* Steps: the step being drawn is lifted onto a card, its number filled, and named under the drawing */
.bs-inner { position: relative; isolation: isolate; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 var(--space-4); }
.bs-inner::before { content: ""; position: absolute; z-index: -1; inset: -24px -24px -24px -24px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--divider); box-shadow: 0 24px 48px -34px rgba(70, 18, 23, .4); opacity: 0; transform: scale(.985); transition: opacity 500ms var(--ease-out-expo), transform 500ms var(--ease-out-expo); }
.bs-inner::after { content: ""; position: absolute; left: -24px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--brand-burgundy); transform: scaleY(0); transition: transform 600ms var(--ease-out-expo); }
.js .bs-step.is-current .bs-inner::before { opacity: 1; transform: none; }
.js .bs-step.is-current .bs-inner::after { transform: none; }
.bs-num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 22px !important; padding: 0 !important; transition: background 500ms, color 500ms, border-color 500ms; }
.js .bs-step.is-current .bs-num { background: var(--brand-burgundy); border-color: var(--brand-burgundy); color: #fff; }
.bg-subtle .bs-inner::before { background: #fff; }
.bs-meter li.is-now span { background: var(--brand-gold); }
.bs-cap { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: baseline; }
.bs-cap-n { grid-row: 1 / span 2; align-self: center; padding: 6px 10px; border-radius: 999px; background: rgba(70, 18, 23, .07); white-space: nowrap; }
.bs-cap-t { font: 600 17px/22px var(--font-serif); font-style: normal; color: var(--text-heading); }
.bs-cap-s { font: italic 400 15px/20px var(--font-serif); color: var(--brand-olive); }
@media (max-width: 899px) {
  .bs-inner::before { inset: -14px -12px; } .bs-inner::after { left: -12px; top: 6px; bottom: 6px; }
  .bs-num { width: 40px; height: 40px; font-size: 17px !important; }
  .bs-cap-t { font-size: 15px; line-height: 20px; } .bs-cap-s { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { .bs-inner::before, .bs-inner::after { display: none; } }

/* ---------- Header, refined: even rhythm, quiet underline, grouped contact ---------- */
.header-inner { gap: clamp(20px, 2.4vw, 40px); }
.brand-link, .brand-link img { width: clamp(200px, 15.5vw, 240px); }
.brand-link img { height: auto; }
.primary-nav { flex: 1; justify-content: center; }
.primary-nav > ul { gap: clamp(20px, 2.1vw, 34px); align-items: center; }
.nav-link { position: relative; padding: 8px 0; min-height: 48px; border-radius: 0; background: none !important; font: 600 15px/20px var(--font-sans); letter-spacing: .005em; color: var(--text-primary); }
.nav-link svg { flex: none; width: 12px; height: 12px; opacity: .7; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1.5px; background: var(--brand-burgundy); transform: scaleX(0); transform-origin: 50% 50%; transition: transform 320ms var(--ease-out-expo); }
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--brand-burgundy); }
.nav-link:hover::after, .nav-link[aria-expanded="true"]::after, .nav-link[aria-current="page"]::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link[aria-current="page"], .nav-link.is-active { box-shadow: none; color: var(--brand-burgundy); }
.nav-item.is-open .mega { margin-top: 2px; }
.header-actions { gap: 16px; flex: none; }
.header-icons { display: inline-flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid var(--divider); }
.header-icons .header-phone { width: 44px; height: 44px; min-height: 0; justify-content: center; padding: 0; border-radius: 50%; transition: background var(--duration-fast); }
.header-icons .header-phone:hover { background: var(--action-secondary-hover); }
.header-icons .header-phone .lbl { display: none; }
@media (min-width: 1600px) { .header-icons .header-phone { width: auto; padding: 0 12px 0 10px; border-radius: 999px; } .header-icons .header-phone .lbl { display: inline; } }
.header-cta { padding-inline: 20px; }
.header-cta .cta-short { display: none; }
@media (max-width: 1439px) { .header-cta .cta-long { display: none; } .header-cta .cta-short { display: inline; } }
@media (max-width: 1259px) { .header-icons { border-left: 0; padding-left: 0; } .header-icons .header-phone { display: none; } }
@media (max-width: 767px) { .header-icons { display: none; } }

/* Down payment: dollars or percent, kept in step */
.down-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 8.5rem); align-items: center; gap: 10px; }
.down-pair .input-affix { min-width: 0; }
.down-pair .input { min-width: 0; width: 100%; }
.down-or { font-size: 14px; color: var(--text-secondary); }
.down-field .down-hint { margin: 8px 0 0; }
.down-field .range { margin-top: 12px; }
@media (max-width: 379px) { .down-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 7rem); } .down-or { display: none; } }
/* Five platforms: the last one runs the full width of the 2-column card */
.fc-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Office and cell numbers in the header, stacked; the phone icon stands in where they do not fit */
.header-nums { display: none; flex-direction: column; justify-content: center; gap: 1px; padding-right: 8px; }
.header-nums a { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; color: var(--text-primary); text-decoration: none; font: 700 13.5px/18px var(--font-sans); white-space: nowrap; }
.header-nums a:hover .num { color: var(--brand-burgundy); text-decoration: underline; text-underline-offset: 3px; }
.header-nums .hn-k { font: 700 10px/18px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
@media (min-width: 1360px) { .header-nums { display: flex; } .header-icons .header-phone { display: none; } }
.drawer-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; }
.drawer-nums a { color: var(--text-primary); text-decoration: none; font-weight: 700; }
.drawer-nums a span:first-child { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }

/* Five steps on phones: the whole panel pins under the header. The drawing sits on top and the current step's
   text swaps in beneath it, so nothing slides under the card. The list below stays in the page for screen
   readers and as the scroll distance that moves the steps on. Larger screens and reduced motion are unchanged. */
.bs-now { display: none; }
@media (max-width: 899px) {
  .js .bs-stage { display: flex; flex-direction: column; gap: 14px; min-height: calc(100svh - var(--header-h) + 26px); padding: 10px var(--gutter) 84px; background: var(--section-bg, var(--bg-page)); }
  .js .bs-card .bp { max-height: 34svh; }
  .js .bs-card .bs-cap { display: none; }
  .js .bs-card .bs-meter { margin-bottom: 10px; }
  .js .bs-now { display: grid; }
  .bs-now-i { grid-area: 1 / 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; align-items: start; opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--ease-out-expo), transform 480ms var(--ease-out-expo); pointer-events: none; }
  .bs-now-i .bs-num { background: var(--brand-burgundy); border-color: var(--brand-burgundy); color: #fff; }
  .bs-now-t { font: 500 24px/1.15 var(--font-serif); letter-spacing: -0.01em; color: var(--text-heading); margin: 4px 0 8px; }
  .bs-now-d { font-size: 16.5px; line-height: 25px; color: var(--text-secondary); margin: 0 0 12px; }
  .bs-stage:is([data-step="0"], [data-step="1"]) [data-now="1"], .bs-stage[data-step="2"] [data-now="2"], .bs-stage[data-step="3"] [data-now="3"], .bs-stage[data-step="4"] [data-now="4"], .bs-stage[data-step="5"] [data-now="5"] { opacity: 1; transform: none; pointer-events: auto; transition-delay: 120ms; }
  /* The list becomes even scroll distance behind the pinned panel */
  .js .bs-step { min-height: 44svh; padding: 0; border: 0; }
  .js .bs-step:last-child { min-height: 64svh; }
  .js .bs-step > * { opacity: 0; pointer-events: none; }
}
/* Phones that ask for reduced motion still see the house build, with a plain fade for the text and quicker lines */
@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .bs-now-i { transform: none !important; transition: opacity 300ms linear; }
  .js .bp .bp-g .bp-p { transition-duration: 700ms; }
}

/* Payment calculator: closing costs for Toronto and elsewhere in Ontario, side by side */
.calc-close { margin-top: var(--space-6); }
.calc-close-t thead th, .calc-close-t thead td { padding: 0 0 8px 10px; border-bottom: 1px solid var(--divider-on-brand); }
.calc-close-t thead th { text-align: right; font: 700 11px/14px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-gold); vertical-align: bottom; }
.calc-close-t td { padding-left: 10px; }
.calc-close-t .calc-est { display: block; font-size: 13px; line-height: 18px; opacity: .8; }
.calc-close-t tr.sub th, .calc-close-t tr.sub td { color: #fff; font-weight: 700; }
@media (max-width: 479px) { .calc-close-t { font-size: 14.5px; } .calc-close-t thead th { font-size: 10px; letter-spacing: .06em; } .calc-close-t td { padding-left: 8px; } }
@media (max-width: 379px) { .calc-close-t tr.total th, .calc-close-t tr.total td { font-size: 16px; } .calc-close-t .calc-est { font-size: 12px; } }

/* Team page: client care and operations (no profile pages, so the cards are not links) */
.team-staff { margin-top: var(--space-9, 96px); padding-top: var(--space-7); border-top: 1px solid var(--divider); }
.team-staff-head { max-width: 640px; margin-bottom: var(--space-6); }
.team-staff-head .muted { margin: 8px 0 0; }
.team-grid-staff { list-style: none; margin: 0; padding: 0; }
.person.is-static:hover .p-name { text-decoration: none; }
.team-staff-head .h2 { font-size: clamp(28px, 3vw, 38px); }

/* Live minimum down payment line under the $ and % boxes */
.down-min { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-control); background: var(--bg-subtle); font-size: 14.5px; line-height: 20px; color: var(--text-secondary); }
.down-min strong { color: var(--text-primary); font-variant-numeric: lining-nums tabular-nums; }
.down-min.is-low { display: block; background: var(--status-warning-bg); color: var(--status-warning); }
.down-min.is-low strong { color: var(--status-warning); }
.down-min:empty { display: none; }
/* Long button labels and the down payment fieldset must never widen the calculator on small phones */
.calc [data-set-min] { white-space: normal; text-align: left; max-width: 100%; }
.down-field { min-inline-size: 0; min-width: 0; }

/* Small phones (320px): single-column layouts must shrink to the screen, never stretch to their widest child */
@media (max-width: 1023px) {
  .article-layout, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .article-layout > *, .profile-grid > *, .article-aside > * { min-width: 0; }
}
.person-house, .person-house .house-svg { max-width: 100%; }
.person-house .house-svg { height: auto; }
@media (max-width: 479px) {
  .prose table { font-size: 14.5px; line-height: 21px; }
  .prose th, .prose td { overflow-wrap: break-word; hyphens: auto; }
}
/* Grid children may shrink below their content's natural width, so nothing pushes a phone screen sideways */
:is(.split, .split-even, .split-rev, .hero-grid, .founder, .page-head-grid, .calc, .mini-calc, .cta-band .inner, .form-grid, .footer-top, .pillars, .journey, .contact-block, .team-founder, .profile-grid, .article-layout) > * { min-width: 0; }
.contact-line { grid-template-columns: 44px minmax(0, 1fr); }
.contact-actions .btn, .btn-row .btn { white-space: normal; text-align: left; }
.btn-row .btn { min-width: 0; }
.contact-line .v, .site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Breadcrumb links: at least 24px tall so they are easy to tap on phones */
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 24px; }

/* Sponsoring brokerage logo beside the licensing disclosure (the file carries its own white plate) */
.brokerage-logo { display: block; height: auto; max-width: 100%; }
.footer-licence-row { display: flex; align-items: center; gap: 16px; }
.footer-licence-row .brokerage-logo { flex: none; width: 135px; border-radius: 4px; }
.footer-licence-row .footer-licence { margin: 0; }
@media (max-width: 599px) { .footer-licence-row { flex-direction: column; align-items: flex-start; gap: 10px; } }
.brokerage-logo.is-page { width: 166px; border: 1px solid var(--divider); border-radius: 6px; }
.brokerage-logo.is-card { width: 124px; margin: 4px 0 8px; border: 1px solid var(--divider); border-radius: 4px; }

/* Licence table on phones: one small card per person instead of four squeezed columns */
@media (max-width: 599px) {
  .prose table.licence-table, .licence-table tbody, .licence-table tr, .licence-table td { display: block; width: 100%; }
  .licence-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .licence-table tr { padding: 12px 14px; border: 1px solid var(--divider); border-radius: 10px; background: var(--bg-surface); margin-bottom: 10px; }
  .licence-table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; }
  .licence-table td::before { content: attr(data-label); font: 700 11px/20px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
  .licence-table td[data-label="Name"] { font-weight: 700; }
}
/* The logo's white plate starts 2px inside its own frame; line it up with the text edge */
.footer-licence-row .brokerage-logo { margin-left: -2px; }
.brokerage-logo.is-card { width: 150px; }
/* The three licensing parts sit evenly, spaced only by the footer's own gap */
.footer-disclosure .footer-licence, .footer-disclosure .footer-licence-row { margin: 0; }

/* Keep phone numbers whole inside buttons */
.nowrap { white-space: nowrap; }

/* Business consulting (/business-consulting/ and the homepage band) */
.biz-hero.split { align-items: center; }
.biz-hero-text { max-width: 820px; }
.biz-hero .lede-lg { margin-top: var(--space-5); }
.biz-band { padding-block: var(--space-8); }
.biz-band-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7); align-items: center; padding-block: var(--space-7); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.biz-band-inner.has-img { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.biz-band-inner .lede { margin: var(--space-4) 0 0; max-width: 620px; }
.biz-band-tags { margin: var(--space-4) 0 var(--space-5); font-size: 15px; line-height: 24px; color: var(--text-secondary); max-width: 620px; }
.biz-areas .ed-row ul { flex-direction: column; flex-wrap: nowrap; gap: 8px; margin-top: 16px; font-size: 16px; line-height: 24px; }
.biz-areas .ed-row ul li { position: relative; padding-left: 20px; }
.biz-areas .ed-row ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; margin: 0; border-radius: 50%; background: var(--brand-olive); }
.biz-pressure-fig { margin-bottom: var(--space-6); }
.biz-note { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--divider-on-brand); }
.biz-disclaimer { max-width: 860px; margin-top: var(--space-7); }
@media (max-width: 1023px) { .biz-band-inner, .biz-band-inner.has-img { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } }
@media (max-width: 767px) {
  .biz-areas .ed-row.ed-two { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .biz-areas .ed-row .ed-title { font-size: 26px; }
  .biz-pressure-btn { white-space: normal; width: 100%; text-align: center; }
  .biz-band-tags { display: none; }
}

/* A second job title (e.g. Senior Underwriter) sits on its own line under the licence title, never joined to it. */
.also-role { display: block; }
/* Smallest phones: long surnames (e.g. Vinayagamoorthy) fit the two-column team card without breaking mid-word. */
@media (max-width: 359px) { .person .p-name { font-size: 15px; line-height: 20px; } }
