/* =========================================================
   SL Mortgage — a clearer path home
   Palette, type and geometry follow the SL Mortgage brand study.
   ========================================================= */

:root {
  /* Brand */
  --evergreen: #153D36;
  --forest:    #0D2925;
  --ivory:     #F7F5EF;
  --white:     #FFFFFF;
  --sage:      #92B5A5;
  --gold:      #C8A96B;
  --slate:     #273632;
  --muted:     #687873;

  /* Derived */
  --ivory-deep: #EFEBE1;
  --line:       rgba(39, 54, 50, 0.14);
  --line-soft:  rgba(39, 54, 50, 0.08);
  --line-light: rgba(247, 245, 239, 0.18);

  /* Type */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Geometry */
  --r-card:   18px;
  --r-input:  12px;
  --r-btn:    12px;
  --r-large:  24px;

  /* Layout */
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(76px, 9vw, 136px);

  /* Elevation — used sparingly, only on floating surfaces */
  --lift: 0 22px 60px -32px rgba(13, 41, 37, 0.45);
  --lift-sm: 0 12px 34px -22px rgba(13, 41, 37, 0.4);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--evergreen); color: var(--ivory); }

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

.sr-only {
  position: absolute; 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: 50%; top: 8px;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--evergreen); color: var(--ivory);
  padding: 10px 20px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 600;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Layout primitives ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type scale ---------- */
h1, h2 { font-family: var(--serif); letter-spacing: -0.012em; }

h2 {
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  line-height: 1.12;
  color: var(--evergreen);
}

h3 {
  font-family: var(--sans);
  font-size: 1.135rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  color: var(--evergreen);
}

.lede {
  font-size: clamp(1.04rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 54ch;
}

/* Eyebrow: a hairline of brand gold, then a quiet sentence-case label.
   Deliberately not a tracked-out all-caps tag. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--light { color: rgba(247, 245, 239, 0.8); }

.section-head { max-width: 62ch; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
}
.section-head--center .section-head__lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background-color 220ms var(--ease), color 220ms var(--ease),
              border-color 220ms var(--ease);
}
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 0.94rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--evergreen); color: var(--ivory); }
.btn--primary:hover { background: var(--forest); }

.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold:hover { background: #d8bd85; }

.btn--outline {
  background: transparent;
  color: var(--evergreen);
  border-color: var(--evergreen);
}
.btn--outline:hover { background: var(--evergreen); color: var(--ivory); }

.btn--ghost {
  background: rgba(247, 245, 239, 0.08);
  color: var(--ivory);
  border-color: rgba(247, 245, 239, 0.45);
}
.btn--ghost:hover { background: rgba(247, 245, 239, 0.16); border-color: var(--ivory); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--evergreen);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 220ms var(--ease), color 220ms var(--ease);
}
.link-arrow:hover { border-color: var(--gold); }
.chev { width: 16px; height: 16px; flex: none; transition: transform 240ms var(--ease); }
.link-arrow:hover .chev { transform: translateX(3px); }

/* ---------- Reveal (one system, used once per element) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: calc(var(--d, 0) * 85ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media img { transform: none; will-change: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   UTILITY STRIP + HEADER
   ========================================================= */
.utility {
  background: var(--forest);
  color: rgba(247, 245, 239, 0.72);
  font-size: 0.82rem;
  position: relative;
  z-index: 40;
}
.utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding-block: 8px;
}
.utility__item { display: inline-flex; align-items: center; gap: 10px; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage); flex: none;
}
.utility__links { display: flex; gap: 26px; }
.utility__links a { transition: color 200ms var(--ease); }
.utility__links a:hover { color: var(--ivory); }

.header {
  position: sticky;
  /* the mobile menu hangs off this box, so it tracks the header exactly */
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 239, 0);
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 84px;
}

/* Over the hero photograph the header is light; once scrolled past it goes solid ivory. */
.header .brand__sl, .header .brand__word, .header .nav a { color: var(--ivory); }
.header .btn--primary { background: var(--ivory); color: var(--forest); }
.header .btn--primary:hover { background: var(--white); }
.header .burger span { background: var(--ivory); }

.header.is-stuck {
  background: rgba(247, 245, 239, 0.93);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.header.is-stuck .brand__sl, .header.is-stuck .brand__word { color: var(--evergreen); }
.header.is-stuck .nav a { color: var(--slate); }
.header.is-stuck .brand__mark-img--light { opacity: 0; }
.header.is-stuck .brand__mark-img--dark { opacity: 1; }
.header.is-stuck .btn--primary { background: var(--evergreen); color: var(--ivory); }
.header.is-stuck .btn--primary:hover { background: var(--forest); }
.header.is-stuck .burger span { background: var(--evergreen); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  position: relative;
  display: block;
  width: 35px;
  height: 39px;
  flex: none;
}
.brand__mark-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 320ms var(--ease);
}
/* over the hero photograph the ivory mark shows; on ivory surfaces the evergreen one does */
.brand__mark-img--dark { opacity: 0; }
.brand__text { display: inline-flex; align-items: baseline; gap: 7px; line-height: 1; }
.brand__sl {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--evergreen);
}
.brand__word {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; gap: 34px; }
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-block: 6px;
  transition: color 200ms var(--ease);
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 20px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 6px;
  background: none; border: 0;
}
.burger span {
  width: 22px; height: 1.5px;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  margin-top: -126px;   /* pulls the sticky header over the photograph */
  color: var(--ivory);
}

/* The stage holds still at the top of the viewport while the runway below it
   is scrolled through — that scroll distance is what drives the zoom. Sticky,
   not scroll-jacking: the scrollbar keeps its normal one-to-one meaning. */
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  padding-top: 126px;
  padding-bottom: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__runway { height: 120vh; }

.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  /* the scroll-driven zoom writes to this transform; nothing else animates here */
  transform: scale(1.45);
  transform-origin: 58% 46%;
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(13, 41, 37, 0.94) 0%, rgba(13, 41, 37, 0.82) 38%, rgba(13, 41, 37, 0.24) 72%, rgba(13, 41, 37, 0.3) 100%),
    linear-gradient(to bottom, rgba(13, 41, 37, 0.5) 0%, rgba(13, 41, 37, 0) 30%);
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(28px, 4vw, 52px);
  max-width: min(var(--shell), 100%);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.1rem, 7.4vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero__title em {
  font-style: italic;
  color: var(--sage);
}

.hero__lede {
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.58;
  color: rgba(247, 245, 239, 0.86);
  max-width: 52ch;
  margin-bottom: 38px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__panel-wrap { flex: none; }
.hero__panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ivory);
  border-radius: var(--r-large);
  box-shadow: var(--lift);
  overflow: hidden;
}
.panel-cell {
  padding: 30px 28px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.panel-cell:last-child { border-right: 0; }
.panel-cell__label { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.panel-cell__value {
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 1.1;
  color: var(--evergreen);
  letter-spacing: -0.02em;
}
.panel-cell__value small { font-size: 0.55em; }
.panel-cell__note { font-size: 0.82rem; color: var(--muted); }
.panel-cell--cta {
  background: var(--evergreen);
  color: rgba(247, 245, 239, 0.86);
  gap: 14px;
  justify-content: center;
}
.panel-cell--cta p { font-size: 0.92rem; line-height: 1.5; }
.panel-cell--cta .link-arrow {
  color: var(--gold);
  border-color: rgba(200, 169, 107, 0.4);
  align-self: flex-start;
}
.panel-cell--cta .link-arrow:hover { border-color: var(--gold); }

/* =========================================================
   TRUST
   ========================================================= */
.trust { padding-block: var(--section); }
.trust__label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}
.trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat__value {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--evergreen);
  font-variant-numeric: tabular-nums;
}
.stat__value small { font-size: 0.42em; color: var(--muted); }
.stat__label { font-size: 0.92rem; color: var(--muted); max-width: 22ch; }

/* =========================================================
   PATH / MANIFESTO
   ========================================================= */
.path { padding-block: var(--section); background: var(--ivory-deep); }
.path__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.path__figure { margin: 0; position: relative; }
.path__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-large);
}
.path__figure figcaption {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  background: rgba(13, 41, 37, 0.88);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 1.28rem;
  padding: 16px 22px;
  border-radius: 14px;
  border-left: 2px solid var(--gold);
}

.path__list { display: grid; gap: 30px; margin-top: 42px; }
.path__list li { padding-left: 24px; border-left: 1px solid var(--line); }
.path__list h3 { margin-bottom: 6px; }
.path__list p { color: var(--muted); font-size: 0.99rem; max-width: 48ch; }
.path .link-arrow { margin-top: 40px; }

/* =========================================================
   SOLUTIONS
   ========================================================= */
.solutions { padding-block: var(--section); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-large);
  overflow: hidden;
}
.card {
  background: var(--ivory);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 280ms var(--ease);
}
.card:hover { background: var(--white); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--evergreen);
  margin-bottom: 10px;
  transition: border-color 280ms var(--ease), color 280ms var(--ease);
}
.card:hover .card__icon { border-color: var(--sage); color: var(--sage); }
.card__icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card__meta {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
}

/* =========================================================
   CALCULATOR
   ========================================================= */
.calc {
  padding-block: var(--section);
  background: var(--evergreen);
  color: var(--ivory);
}
.calc__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: start;
}
.calc__intro { position: sticky; top: 118px; }
.calc__intro h2 { color: var(--ivory); margin-bottom: 24px; }
.calc__intro p { color: rgba(247, 245, 239, 0.78); max-width: 46ch; }
.calc__note {
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: 0.88rem;
  color: rgba(247, 245, 239, 0.6) !important;
}

.calc__card {
  background: var(--white);
  color: var(--slate);
  border-radius: var(--r-large);
  padding: clamp(26px, 3vw, 40px);
  box-shadow: var(--lift);
  display: grid;
  gap: 26px;
}

.field { display: grid; gap: 10px; }
.field__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field label, .field__legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--evergreen);
}
.field__badge {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--evergreen);
  background: rgba(146, 181, 165, 0.22);
  padding: 4px 10px;
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 0 16px;
  background: var(--white);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field__input:focus-within {
  border-color: var(--evergreen);
  box-shadow: 0 0 0 3px rgba(146, 181, 165, 0.3);
}
.field__input input, .field__input select {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: none;
  outline: none;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--evergreen);
  font-variant-numeric: tabular-nums;
}
.field__input select { cursor: pointer; appearance: none; }
.field__input .prefix, .field__input .suffix {
  font-size: 1.05rem; font-weight: 600; color: var(--muted);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Range */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 2px; background: var(--ivory-deep);
}
input[type="range"]::-moz-range-track {
  height: 3px; border-radius: 2px; background: var(--ivory-deep);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: -8.5px;
  border-radius: 50%;
  background: var(--evergreen);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color 180ms var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--evergreen);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
input[type="range"]:hover::-webkit-slider-thumb { background: var(--forest); }

/* Segmented control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--ivory);
  border-radius: var(--r-input);
}
.seg {
  min-height: 44px;
  border: 0;
  background: none;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.seg:hover { color: var(--evergreen); }
.seg.is-active { background: var(--evergreen); color: var(--ivory); }

/* Result */
.result {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: grid;
  gap: 22px;
}
.result__main { display: flex; flex-direction: column; gap: 4px; }
.result__label { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.result__value {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--evergreen);
  font-variant-numeric: tabular-nums;
}
.result__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
  margin: 0;
}
.result__grid dt { font-size: 0.85rem; color: var(--muted); margin-bottom: 2px; }
.result__grid dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--evergreen);
  font-variant-numeric: tabular-nums;
}
.result__flag {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--evergreen);
  background: rgba(200, 169, 107, 0.16);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
}

/* Chart */
.chart { margin: 0; display: grid; gap: 14px; }
.chart__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--evergreen);
}
.chart__key { display: flex; gap: 16px; }
.key {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
}
.key__swatch { width: 11px; height: 11px; border-radius: 3px; }
.key__swatch--principal { background: var(--evergreen); }
.key__swatch--interest { background: var(--sage); }

.chart__plot { position: relative; }
.chart__plot svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart__tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--forest);
  color: var(--ivory);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  box-shadow: var(--lift-sm);
}
.chart__tip b { display: block; font-size: 0.86rem; margin-bottom: 3px; }
.chart__tip span { color: rgba(247, 245, 239, 0.72); }
.chart__tip em { font-style: normal; font-weight: 600; color: var(--ivory); }

.chart__data { font-size: 0.86rem; }
.chart__data summary {
  cursor: pointer;
  color: var(--muted);
  padding: 6px 0;
  font-weight: 500;
}
.chart__data summary:hover { color: var(--evergreen); }
.chart__table-wrap { max-height: 230px; overflow: auto; margin-top: 10px; }
.chart__data table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.chart__data th, .chart__data td {
  text-align: right;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
}
.chart__data th:first-child, .chart__data td:first-child { text-align: left; }
.chart__data thead th {
  position: sticky; top: 0;
  background: var(--white);
  color: var(--muted);
  font-weight: 600;
}

/* =========================================================
   SPLIT
   ========================================================= */
.split { padding-block: var(--section); }
.split__grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.split__points { display: grid; gap: 22px; margin-top: 40px; }
.split__points p { color: var(--muted); font-size: 1rem; max-width: 46ch; }
.split__points strong { color: var(--evergreen); font-weight: 600; }

.split__media { position: relative; }
.split__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--r-large);
}
.split__badge {
  position: absolute;
  right: -14px; bottom: -22px;
  background: var(--white);
  border-radius: var(--r-card);
  padding: 20px 24px;
  box-shadow: var(--lift);
  display: grid;
  gap: 2px;
  border-top: 2px solid var(--gold);
}
.split__badge-top { font-size: 0.82rem; color: var(--muted); }
.split__badge-val {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  color: var(--evergreen);
}
.split__badge-bot { font-size: 0.8rem; color: var(--muted); }

/* =========================================================
   JOURNEY
   ========================================================= */
.journey { padding-block: var(--section); background: var(--ivory-deep); }

.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
  margin-bottom: clamp(56px, 6vw, 84px);
}
/* the connecting progress line sits behind the markers */
.steps::before {
  content: "";
  position: absolute;
  top: 17px; left: 4%; right: 4%;
  height: 1px;
  background: var(--line);
}
.step { padding-right: 18px; position: relative; }
.step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ivory-deep);
  border: 1px solid var(--evergreen);
  color: var(--evergreen);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.step:first-child .step__n { background: var(--evergreen); color: var(--ivory); }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.88rem; color: var(--muted); }

.journey__media { position: relative; margin: 0; border-radius: var(--r-large); overflow: hidden; }
.journey__media img { width: 100%; height: clamp(320px, 42vw, 520px); object-fit: cover; object-position: 50% 40%; }
.journey__media figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: clamp(28px, 4vw, 52px);
  background: linear-gradient(to top, rgba(13, 41, 37, 0.92), rgba(13, 41, 37, 0));
}
.journey__media figcaption p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.24;
  color: var(--ivory);
  max-width: 24ch;
}

/* =========================================================
   ADVISORS
   ========================================================= */
.advisors { padding-block: var(--section); }
.advisors__grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.advisors__media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--r-large);
}

.quotes { position: relative; margin-top: 40px; min-height: 250px; }
.quote {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 420ms;
  background: var(--white);
  border-radius: var(--r-card);
  padding: clamp(26px, 3vw, 38px);
  border-left: 2px solid var(--gold);
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote__mark {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.9vw, 1.5rem);
  line-height: 1.34;
  color: var(--evergreen);
  margin-bottom: 22px;
}
.quote footer { display: grid; gap: 2px; }
.quote footer strong { font-size: 0.95rem; font-weight: 600; color: var(--slate); }
.quote footer span { font-size: 0.85rem; color: var(--muted); }

.quotes__nav { display: flex; gap: 10px; margin-top: 26px; }
.qdot {
  width: 34px; height: 34px;
  border: 0; background: none;
  padding: 0;
  display: grid; place-items: center;
}
.qdot::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--line);
  transition: background-color 240ms var(--ease);
}
.qdot.is-active::before { background: var(--evergreen); }
.qdot:hover::before { background: var(--sage); }

/* =========================================================
   MARKETS
   ========================================================= */
.markets { padding-block: var(--section); background: var(--ivory-deep); }
.markets__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.market {
  position: relative;
  border-radius: var(--r-large);
  overflow: hidden;
  min-height: clamp(300px, 34vw, 400px);
  isolation: isolate;
}
.market--wide { grid-column: span 2; }
.market img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 900ms var(--ease);
}
.market::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13, 41, 37, 0.9) 5%, rgba(13, 41, 37, 0.12) 60%);
}
.market:hover img { transform: scale(1.04); }
.market__body {
  position: absolute; inset: auto 0 0 0;
  padding: 28px;
  color: var(--ivory);
}
.market__body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 6px;
}
.market__body p { font-size: 0.9rem; color: rgba(247, 245, 239, 0.78); max-width: 34ch; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-block: var(--section); }
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.faq__intro { position: sticky; top: 118px; }
.faq__intro h2 { margin-bottom: 20px; }
.faq__intro p { color: var(--muted); max-width: 36ch; margin-bottom: 30px; }

.accordion { border-top: 1px solid var(--line-soft); }
.acc { border-bottom: 1px solid var(--line-soft); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--evergreen);
  transition: color 200ms var(--ease);
}
.acc__head:hover { color: var(--sage); }
.acc__icon {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute; top: 50%; left: 0;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 300ms var(--ease);
}
.acc__icon::after { transform: rotate(90deg); }
.acc.is-open .acc__icon::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > p {
  overflow: hidden;
  color: var(--muted);
  font-size: 1rem;
  max-width: 62ch;
  padding-right: 20px;
}
.acc.is-open .acc__panel > p { padding-bottom: 26px; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  padding-block: clamp(90px, 11vw, 160px);
  color: var(--ivory);
  isolation: isolate;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13, 41, 37, 0.86), rgba(13, 41, 37, 0.94));
}
.cta__inner { max-width: 760px; }
.cta .eyebrow { justify-content: center; }
.cta h2 { color: var(--ivory); font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.cta__lede {
  margin: 22px auto 40px;
  color: rgba(247, 245, 239, 0.82);
  font-size: 1.08rem;
  max-width: 50ch;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn__glyph { width: 19px; height: 19px; flex: none; }
.btn__glyph--line { width: 20px; height: 20px; }

.cta__hours {
  margin-top: 26px;
  font-size: 0.9rem;
  color: rgba(247, 245, 239, 0.58);
}

/* Channel row — the logos stay ivory at rest so the section keeps its calm;
   each one finds its own brand colour on hover. */
.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line-light);
  text-align: left;
}
.channel {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon name"
    "icon detail";
  align-items: center;
  column-gap: 16px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid var(--line-light);
  border-radius: var(--r-card);
  background: rgba(247, 245, 239, 0.05);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
}
.channel:hover { background: rgba(247, 245, 239, 0.11); border-color: rgba(247, 245, 239, 0.4); }

.channel__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(247, 245, 239, 0.1);
  color: var(--ivory);
  transition: background-color 240ms var(--ease), color 240ms var(--ease);
}
.channel__icon svg { width: 19px; height: 19px; }

.channel__name {
  grid-area: name;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ivory);
  line-height: 1.3;
}
.channel__detail {
  grid-area: detail;
  font-size: 0.84rem;
  color: rgba(247, 245, 239, 0.6);
  line-height: 1.35;
}

.channel--whatsapp:hover .channel__icon { background: #25D366; color: #0B2E1C; }
.channel--instagram:hover .channel__icon { background: #E1306C; color: var(--ivory); }
.channel--facebook:hover .channel__icon { background: #1877F2; color: var(--ivory); }
.channel--email:hover .channel__icon { background: var(--gold); color: var(--forest); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--forest);
  color: rgba(247, 245, 239, 0.7);
  padding-top: clamp(60px, 7vw, 96px);
  padding-bottom: 40px;
  font-size: 0.93rem;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(44px, 5vw, 70px);
  border-bottom: 1px solid var(--line-light);
}
.brand--light .brand__sl { color: var(--ivory); }
.brand--light .brand__word { color: rgba(247, 245, 239, 0.6); }
.brand__mark--footer { width: 35px; height: 39px; object-fit: contain; flex: none; }

.footer__tag {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--sage);
  margin-top: 24px;
}
.footer__addr { margin-top: 18px; line-height: 1.7; color: rgba(247, 245, 239, 0.55); }

.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__nav h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 18px;
}
.footer__nav a {
  display: block;
  padding: 7px 0;
  color: rgba(247, 245, 239, 0.65);
  transition: color 200ms var(--ease);
}
.footer__nav a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  font-size: 0.84rem;
  color: rgba(247, 245, 239, 0.5);
}
.footer__legal { display: flex; gap: 14px; align-items: center; }
.footer__legal a:hover { color: var(--ivory); }
.footer__disclaimer {
  margin-top: 22px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(247, 245, 239, 0.38);
  max-width: 78ch;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px), (max-height: 680px) {
  .hero__stage {
    position: static;
    height: auto;
    min-height: 0;
    padding-bottom: clamp(40px, 6vw, 64px);
  }
  .hero__inner { padding-top: clamp(48px, 8vw, 90px); }
  .hero__runway { display: none; }
  .hero__media img { transform: none; }
}

@media (max-width: 1080px) {
  .hero__panel { grid-template-columns: repeat(2, 1fr); }
  .panel-cell:nth-child(2) { border-right: 0; }
  .panel-cell:nth-child(1), .panel-cell:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .panel-cell--cta { grid-column: span 2; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 34px 0; }
  .steps::before { display: none; }
  .markets__grid { grid-template-columns: repeat(2, 1fr); }
  .market--wide { grid-column: span 2; }
  .channels { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line-soft);
    padding: 12px var(--gutter) 28px;
    transform: translateY(-120%);
    transition: transform 380ms var(--ease);
    box-shadow: var(--lift);
  }
  .nav.is-open { transform: none; }
  .header.is-menu-open { background: var(--ivory); border-bottom-color: transparent; }
  .header.is-menu-open .brand__sl, .header.is-menu-open .brand__word { color: var(--evergreen); }
  .header.is-menu-open .brand__mark-img--light { opacity: 0; }
  .header.is-menu-open .brand__mark-img--dark { opacity: 1; }
  .header.is-menu-open .burger span { background: var(--evergreen); }
  .header.is-menu-open .btn--primary { background: var(--evergreen); color: var(--ivory); }
  .header .nav a, .header.is-stuck .nav a {
    color: var(--slate);
    font-size: 1.1rem;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a::after { display: none; }
  .burger { display: flex; }

  .path__grid, .calc__grid, .split__grid, .advisors__grid, .faq__grid {
    grid-template-columns: 1fr;
  }
  .calc__intro, .faq__intro { position: static; }
  .advisors__media { order: -1; }
  .split__media { order: -1; }
  .split__badge { right: 16px; bottom: -18px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .utility__item { display: none; }
  .utility__inner { justify-content: center; }
  .hero { margin-top: -108px; }
  .hero__stage { padding-top: 108px; }
  .header__inner { min-height: 68px; }
  .hero__title { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  .hero__cta .btn { width: 100%; }
  .hero__panel { grid-template-columns: 1fr; }
  .panel-cell { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .panel-cell--cta { grid-column: auto; }
  .trust__stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; }
  .markets__grid { grid-template-columns: 1fr; }
  .market--wide { grid-column: auto; }
  .channels { grid-template-columns: 1fr; }
  .cta__actions .btn { width: 100%; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .split__badge { position: static; margin-top: 16px; }
}

/* =========================================================
   YOUR AGENT
   ========================================================= */
.agent { padding-block: var(--section); background: var(--ivory-deep); }
.agent__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.agent__photo { margin: 0; position: relative; }
.agent__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 30% 20%;
  border-radius: var(--r-large);
  background: var(--sage);
  box-shadow: var(--lift);
}
.agent__photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold);
  border-radius: var(--r-large);
  z-index: -1;
}
.agent__photo { isolation: isolate; }

.agent__name {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.08;
  color: var(--evergreen);
}
.agent__role {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate);
}

.agent__creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.agent__creds > div { padding: 18px 18px 18px 0; }
.agent__creds > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.agent__creds dt {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.agent__creds dd {
  margin: 4px 0 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--evergreen);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.agent__contact { display: grid; gap: 12px; margin-top: 28px; }
.agent__contact a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  color: var(--slate);
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.agent__contact a:hover { border-color: var(--gold); }
.agent__contact small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.agent__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--evergreen);
  color: var(--ivory);
}
.agent__icon svg { width: 19px; height: 19px; }
.agent__icon--wa { background: #25D366; color: #0B2E1C; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 56px;
  height: 56px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25D366;
  color: #0B2E1C;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 14px 34px -12px rgba(13, 41, 37, 0.55);
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.wa-fab svg { width: 26px; height: 26px; flex: none; }
.wa-fab:hover { background: #2fe476; box-shadow: 0 18px 40px -12px rgba(13, 41, 37, 0.65); }
.wa-fab:focus-visible { outline-offset: 4px; border-radius: 999px; }

@media (max-width: 900px) {
  .agent__grid { grid-template-columns: 1fr; }
  .agent__photo { max-width: 440px; }
}
@media (max-width: 700px) {
  .agent__creds { grid-template-columns: 1fr; }
  .agent__creds > div,
  .agent__creds > div + div { padding: 14px 0; border-left: 0; }
  .agent__creds > div + div { border-top: 1px solid var(--line-soft); }
  .agent__photo::after { inset: 10px -10px -10px 10px; }
  .wa-fab { padding: 0; width: 56px; justify-content: center; }
  .wa-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .footer { padding-bottom: 96px; }
}
