/* ==========================================================================
   MAAS — Migration-as-a-Service
   BorderPlus Global Mobility. Plain CSS3, no preprocessor, no build step.
   Requires css/borderplus-tokens.css to be loaded first.
   Patterns and structure lifted from the SeAAS reference implementation.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: var(--bp-white);
  -webkit-font-smoothing: antialiased;
  /* overflow-x: hidden creates a scroll context that breaks
     position: sticky on section headers (e.g. "How we work").
     `clip` prevents horizontal overflow without that side effect;
     `hidden` stays as a fallback for very old browsers. */
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--text-link); text-decoration: none; }

h1, h2, h3 { color: var(--text-primary); font-weight: var(--fw-medium); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.015em; }
h3 { font-size: 19px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tint { background: var(--surface-accent-soft); }
.section--sunken { background: var(--surface-sunken); }
.section-head { max-width: 620px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 12px; color: var(--text-secondary); font-size: 17px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary);
}
section[id] { scroll-margin-top: 88px; }

/* ---------- Focus + skip ---------- */
:focus-visible { outline: 2px solid var(--bp-sky); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  background: var(--bp-navy); color: #fff; padding: 12px 22px;
  border-radius: var(--radius-pill); font-weight: var(--fw-medium);
  transition: top var(--dur-fast) var(--ease-out-soft);
}
.skip:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 30px; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: var(--fw-medium);
  border-radius: var(--radius-pill); white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out-soft),
              background var(--dur-fast) ease,
              color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out-soft); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--bp-navy); color: #fff; }
.btn--primary:hover { background: var(--bp-navy-button); box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--bp-navy); }
.btn--light:hover { box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn--ghost:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.8); }
.btn--outline { background: transparent; color: var(--bp-navy); border: 1.5px solid var(--bp-sky); }
.btn--outline:hover { background: var(--bp-sky-tint); }
.btn:active { transform: scale(0.98); }
.btn--block { width: 100%; }

/* Underline-on-hover link, WTE-style */
.ulink { position: relative; font-weight: var(--fw-medium); }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform var(--dur-fast) var(--ease-out-soft);
}
.ulink:hover::after { transform: scaleX(1); transform-origin: left center; }

/* ---------- Reveal (WTE motion vocabulary) ---------- */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { animation: reveal var(--dur-reveal) var(--ease-out-soft) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .05s } .d2 { animation-delay: .18s }
.d3 { animation-delay: .31s } .d4 { animation-delay: .44s } .d5 { animation-delay: .57s }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 200; padding: 14px 0;
  transition: background var(--dur-mid) var(--ease-out-soft),
              box-shadow var(--dur-mid) ease, padding var(--dur-mid) var(--ease-out-soft);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo { height: 30px; width: auto; }
.hdr__in > a { display: inline-flex; align-items: center; min-height: 44px; }
.hdr__logo--light { filter: brightness(0) invert(1); }
.hdr__right { display: flex; align-items: center; gap: 22px; }
.hdr__link { color: #fff; font-size: 15px; }
/* A <button> styled as a nav link so "Check readiness" reads exactly like its
   sibling <a>s but opens the readiness modal instead of navigating. */
.hdr__link--btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; letter-spacing: inherit; line-height: inherit;
}
.hdr.is-stuck { background: rgba(255,255,255,0.93); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--border-hairline); padding: 10px 0; }
.hdr.is-stuck .hdr__logo--light { filter: none; }
.hdr.is-stuck .hdr__link { color: var(--bp-navy); }
.hdr .btn { min-height: 44px; padding: 10px 22px; font-size: 15px; }
.hdr__cta { background: rgba(255,255,255,0.16); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(6px); }
.hdr__cta:hover { background: rgba(255,255,255,0.26); }
.hdr.is-stuck .hdr__cta { background: var(--bp-navy); color: #fff; border-color: var(--bp-navy); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; display: block; }
.hero__media img { object-fit: cover; object-position: center 52%; transform: scale(1.06); animation: heroDrift 18s var(--ease-standard) forwards; }
@keyframes heroDrift { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,22,64,0.66) 0%, rgba(18,22,64,0.30) 48%, rgba(18,22,64,0.16) 100%),
    linear-gradient(180deg, rgba(18,22,64,0.34) 0%, rgba(18,22,64,0.06) 42%, rgba(18,22,64,0.62) 100%);
}
.hero__in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(44px, 6vw, 88px); padding-top: 140px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px); color: #fff; font-size: 12px;
  font-weight: var(--fw-semibold); letter-spacing: 0.09em; text-transform: uppercase;
}
.hero h1 { color: #fff; margin-top: 22px; max-width: 15ch; }
.hero__sub { margin-top: 18px; max-width: 46ch; color: rgba(255,255,255,0.88); font-size: clamp(17px, 1.6vw, 20px); }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 18px; color: rgba(255,255,255,0.7); font-size: 14px; }

/* Trust bar under the hero */
.trust { border-bottom: 1px solid var(--border-hairline); background: var(--bp-white); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.trust__v { font-size: 16px; font-weight: var(--fw-medium); color: var(--text-primary); }
.trust__l { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

/* ---------- The first four ---------- */
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.four__item {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: 22px;
  transition: transform var(--dur-mid) var(--ease-out-soft), box-shadow var(--dur-mid) ease, border-color var(--dur-mid) ease;
}
.four__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--bp-sky); }
.four__n {
  width: 30px; height: 30px; border-radius: var(--radius-pill); background: var(--bp-navy);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: var(--fw-medium); margin-bottom: 14px;
}
.four__item h3 { font-size: 17px; }
.four__item p { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

/* ---------- Family band ---------- */
.fam {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(24px, 4vw, 56px);
  align-items: center; background: var(--bp-grad-teal-1);
  border-radius: var(--radius-sheet); padding: clamp(32px, 4vw, 56px);
}
.fam h2 { max-width: 18ch; }
.fam__lead { margin-top: 14px; font-size: 17px; }
.fam__list { margin-top: 22px; display: grid; gap: 10px; }
.fam__list li { display: flex; gap: 10px; font-size: 15px; }
.fam__list img { width: 17px; margin-top: 4px; flex-shrink: 0; }
.fam__art img { width: 100%; max-width: 220px; margin-left: auto; }
.fam .btn { margin-top: 26px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); }
.step__n { font-size: 15px; font-weight: var(--fw-semibold); color: var(--bp-sky); letter-spacing: 0.08em; }
.step h3 { margin-top: 10px; font-size: 18px; }
.step p { margin-top: 6px; color: var(--text-secondary); font-size: 15px; }

/* ---------- Split (ours / partner) ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); background: var(--surface-card); border-radius: var(--radius-sheet); padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow-card); }
.split h3 { margin-bottom: 18px; }
.split ul { display: grid; gap: 12px; }
.split li { display: flex; gap: 11px; font-size: 15px; }
.split li img { width: 17px; margin-top: 4px; flex-shrink: 0; }
.partners { margin-top: 42px; text-align: center; }
.partners__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 14px 0 12px; }
.partners__slot { border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 11px 20px; font-size: 14px; color: var(--text-secondary); background: var(--surface-card); }
.partners__note { font-size: 12px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* ---------- Money ---------- */
.money { background: var(--bp-navy); border-radius: var(--radius-sheet); padding: clamp(32px, 4.5vw, 60px); color: #fff; }
.money .eyebrow { color: var(--bp-sky); }
.money h2 { color: #fff; margin-top: 12px; max-width: 20ch; }
.money__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 36px; }
.money h3 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.money ul { display: grid; gap: 11px; }
.money li { position: relative; padding-left: 17px; font-size: 15px; color: rgba(255,255,255,0.82); }
.money li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--bp-sky); }
.money__no li::before { background: rgba(255,255,255,0.32); }
.money strong { color: #fff; font-weight: var(--fw-medium); }
.money__foot { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.16); font-size: 14px; color: rgba(255,255,255,0.75); }

/* ---------- Proof ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface-card); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.quote p { font-style: italic; }
.quote__who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote__av { width: 42px; height: 42px; border-radius: var(--radius-pill); background: var(--border-hairline); flex-shrink: 0; }
.quote__who span { font-size: 14px; color: var(--text-secondary); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 42px; text-align: center; }
.stats b { display: block; font-size: 32px; font-weight: var(--fw-semibold); color: var(--text-primary); }
.stats span { font-size: 14px; color: var(--text-secondary); }
.press { margin-top: 42px; text-align: center; font-size: 13px; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border-hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 44px; font-size: 18px; font-weight: var(--fw-medium); color: var(--text-primary); transition: color var(--dur-fast) ease; }
.faq summary:hover { color: var(--bp-blue); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary img { width: 16px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out-soft); }
.faq details[open] summary img { transform: rotate(180deg); }
.faq__a { padding-bottom: 22px; color: var(--text-secondary); }

/* ---------- Final CTA ---------- */
.final { position: relative; background: var(--bp-navy); overflow: hidden; text-align: center; }
.final__mark { position: absolute; right: -4%; bottom: -22%; height: 150%; opacity: 0.07; pointer-events: none; }
.final__in { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.final h2 { color: #fff; }
.final p { margin-top: 14px; color: rgba(255,255,255,0.8); }
.final .btn { margin-top: 28px; }
.final__fine { margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.6); }

/* ---------- Footer ---------- */
.foot { background: var(--surface-sunken); padding: 44px 0; font-size: 14px; color: var(--text-secondary); }
.foot__fam { text-align: center; padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--border-hairline); }
.foot__fam strong { color: var(--text-primary); font-weight: var(--fw-medium); }
.foot__emp { text-align: center; margin-bottom: 28px; }
.foot__emp a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.foot__logo { height: 26px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Sticky mobile bar ---------- */
.mbar {
  position: fixed; inset: auto 0 0 0; z-index: 190; display: none; gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float); transform: translateY(110%);
  transition: transform var(--dur-mid) var(--ease-out-soft);
}
.mbar.is-up { transform: none; }
.mbar .btn { flex: 1; min-height: 48px; padding: 12px 14px; font-size: 15px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(18,22,64,0.45); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast) ease; }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__card { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-sheet); padding: 34px; box-shadow: var(--shadow-float); transform: translateY(12px) scale(0.98); transition: transform var(--dur-mid) var(--ease-out-soft); }
.modal.is-open .modal__card { transform: none; }
.modal__x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; min-height: 44px; border: none; background: none; cursor: pointer; border-radius: var(--radius-pill); }
.modal__x img { width: 22px; margin: 0 auto; }
.modal h2 { font-size: 24px; }
.modal__sub { margin-top: 8px; margin-bottom: 22px; color: var(--text-secondary); font-size: 15px; }
.fld { margin-bottom: 15px; }
.fld label { display: block; font-size: 14px; font-weight: var(--fw-medium); margin-bottom: 7px; color: var(--text-primary); }
.fld input, .fld select {
  width: 100%; padding: 13px 14px; font-family: inherit; font-size: 16px;
  border: 1.5px solid var(--border-hairline); border-radius: var(--radius-sm); background: #fff;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.fld input:focus, .fld select:focus { outline: none; border-color: var(--bp-sky); box-shadow: 0 0 0 3px rgba(66,200,244,0.18); }
.fld.has-err input, .fld.has-err select { border-color: var(--bp-error); }
.err { display: none; margin-top: 5px; font-size: 12px; color: var(--bp-error); }
.fld.has-err .err { display: block; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 5px 11px; margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bp-navy); }
.consent label { font-size: 14px; color: var(--text-body); }
.consent .err { grid-column: 2; }
.modal__fine { margin-top: 13px; font-size: 12px; color: var(--text-secondary); text-align: center; }
.done { display: none; text-align: center; padding: 14px 0; }
.done img { width: 60px; margin: 0 auto 16px; }
.done h2 { margin-bottom: 12px; }
.done p { color: var(--text-secondary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .quotes, .four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fam { grid-template-columns: 1fr; }
  .fam__art img { margin: 0 auto; }
}
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .quotes, .four, .steps, .split, .money__grid, .trust__grid, .stats { grid-template-columns: 1fr; }
  .trust__grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: auto; }
  .hero__in { padding-top: 116px; }
  .hero h1 { max-width: none; }
  .mbar { display: flex; }
  .hdr__link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
}

/* ==========================================================================
   Scroll patterns borrowed from the reference site's structure:
   a line-by-line story, a sticky side panel, and a slow marquee.
   ========================================================================== */

/* ---------- Hero: two columns + the expectation panel ---------- */
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.hero h1 { max-width: 13ch; }

/* Frosted, not solid: the photo reads through it, the way the header CTA does.
   Dark text on translucent white stays legible over both the bright sky and the
   dark rooflines behind it — white text on this would not. */
.expect {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px; padding: 26px 26px 22px;
  box-shadow: 0 18px 50px rgba(18, 22, 64, 0.18);
}
.expect__hd {
  display: block; font-size: 12px; font-weight: var(--fw-semibold);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--bp-navy); margin-bottom: 16px;
}
.expect__list { display: grid; gap: 14px; }
.expect__list li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: start; }
.expect__list li + li { border-top: 1px solid rgba(18,22,64,0.12); padding-top: 14px; }
.expect__when { font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.07em; text-transform: uppercase; color: rgba(18,22,64,0.62); padding-top: 3px; }
.expect__what { font-size: 14.5px; line-height: 1.45; color: var(--bp-navy); font-weight: var(--fw-medium); }
.expect__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(18,22,64,0.12); font-size: 13px; color: rgba(18,22,64,0.72); font-weight: var(--fw-medium); }

/* ---------- Story ---------- */
.story { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.story .wrap { max-width: 940px; }
.story__l {
  font-size: clamp(22px, 2.9vw, 34px); line-height: 1.35; letter-spacing: -0.01em;
  font-weight: var(--fw-medium); color: var(--text-primary); text-wrap: pretty;
  opacity: 0; transform: translateY(22px); filter: blur(6px);
  transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft), filter 0.7s var(--ease-out-soft);
}
.story__l + .story__l { margin-top: 18px; }
.story__l.is-in { opacity: 1; transform: none; filter: blur(0); }
.story__l--dim { color: var(--text-secondary); }
.story__l--hi { color: var(--bp-blue); }

/* ---------- Marquee ---------- */
.marquee { padding: 22px 0; border-block: 1px solid var(--border-hairline); background: var(--surface-accent-soft); overflow: hidden; }
.marquee__row { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__set { display: flex; gap: 44px; padding-right: 44px; }
.marquee__set span {
  font-size: 17px; font-weight: var(--fw-medium); color: var(--text-primary); white-space: nowrap; opacity: 0.55;
}
.marquee__set span::after { content: "·"; margin-left: 44px; color: var(--bp-sky); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__row { animation-play-state: paused; }

/* ---------- Pinned side panel ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .expect { margin-top: 8px; }
}
@media (max-width: 720px) {
  .expect__list li { grid-template-columns: 56px 1fr; gap: 12px; }
  .marquee__set { gap: 30px; padding-right: 30px; }
  .marquee__set span::after { margin-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .story__l { opacity: 1; transform: none; }
  .marquee__row { animation: none; }
}

/* ==========================================================================
   Master / detail — a list on the left, the detail pinned on the right.
   All panels share one grid area and cross-fade; below 900px the whole thing
   degrades to an accordion (panel drops in under its own trigger).
   ========================================================================== */
/* The list sits in normal flow on the left; the panels are taken out of flow
   and pinned into the right-hand area, all stacked on the same spot. Doing this
   with a grid span inflated the rows and made every trigger 300px tall. */
.mx { position: relative; }

.mx__t {
  display: block; width: 47%; text-align: left; cursor: pointer;
  font-family: inherit; background: none; border: none;
  border-top: 1px solid var(--border-hairline);
  padding: 18px 40px 18px 16px; position: relative; border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-out-soft), padding-left var(--dur-fast) var(--ease-out-soft);
}
.mx__t:first-of-type { border-top: none; }
.mx__t::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 62%; border-radius: 3px; background: var(--bp-sky);
  transition: transform var(--dur-fast) var(--ease-out-soft);
}
.mx__t.is-on { background: var(--surface-accent-soft); padding-left: 20px; }
.mx__t.is-on::before { transform: translateY(-50%) scaleY(1); }
.mx__t h3 { font-size: 18px; transition: color var(--dur-fast) ease; }
.mx__t.is-on h3 { color: var(--bp-blue); }
.mx__t p { margin-top: 4px; font-size: 14px; color: var(--text-secondary); }
.mx__t .mx__go {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%) translateX(-4px);
  opacity: 0; font-size: 18px; color: var(--bp-blue);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-soft);
}
.mx__t.is-on .mx__go { opacity: 1; transform: translateY(-50%) translateX(0); }
.mx__tag {
  display: inline-block; margin-bottom: 8px; padding: 4px 11px; border-radius: var(--radius-pill);
  background: var(--bp-sky-tint); color: var(--bp-navy);
  font-size: 10.5px; font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase;
}
.mx__tag--add { background: var(--bp-grad-teal-1); color: var(--bp-teal-ink); }

.mx__p {
  position: absolute; top: 0; right: 0; width: 50%;
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px);
  transition: opacity var(--dur-mid) var(--ease-out-soft), transform var(--dur-mid) var(--ease-out-soft), visibility var(--dur-mid);
}
.mx__p.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mx__p h4 { font-size: 19px; font-weight: var(--fw-medium); color: var(--text-primary); }
.mx__p .mx__lead { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }
.mx__p ul { margin-top: 16px; display: grid; gap: 10px; }
.mx__p li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.mx__p li img { width: 16px; margin-top: 4px; flex-shrink: 0; }
.mx__foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-hairline); }
.mx__price { font-size: 18px; font-weight: var(--fw-medium); color: var(--text-primary); margin-bottom: 12px; }
.mx__fam {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--bp-grad-teal-1); font-size: 14px; display: none;
}
.tl.fam-on .mx__fam { display: block; }
.mx__fam b { display: block; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-teal-ink); margin-bottom: 5px; }

@media (max-width: 900px) {
  .mx { min-height: 0 !important; }
  .mx__t, .sec__body > .mx .mx__t { width: 100%; border-radius: 0; padding-right: 18px; }
  .mx__t .mx__go { transform: translateY(-50%) rotate(90deg); opacity: 0.5; }
  .mx__t.is-on .mx__go { transform: translateY(-50%) rotate(90deg); }
  .mx__p, .sec__body > .mx .mx__p {
    position: static; width: 100%; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: none; margin: 0 0 8px; box-shadow: none; background: var(--surface-accent-soft); border: none;
  }
  .mx__p.is-on { display: block; }
}

.btn-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* ---------- Family switch (sits above the three-year list) ---------- */
.tl__switch { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 30px; }
.sw {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 0;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.sw__track {
  width: 48px; height: 27px; border-radius: var(--radius-pill); background: var(--bp-gray-300);
  position: relative; flex-shrink: 0; transition: background var(--dur-fast) var(--ease-out-soft);
}
.sw__knob {
  position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: var(--radius-pill);
  background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease-out-soft);
}
.sw[aria-checked="true"] .sw__track { background: var(--bp-blue); }
.sw[aria-checked="true"] .sw__knob { transform: translateX(21px); }
.sw__lbl { font-size: 16px; font-weight: var(--fw-medium); color: var(--text-primary); }
.tl__hint { font-size: 14px; color: var(--text-secondary); }
.tl__cap { margin-top: 28px; font-size: 18px; font-weight: var(--fw-medium); color: var(--text-primary); }
@media (prefers-reduced-motion: reduce) { .sw__knob { transition: none; } }

/* ==========================================================================
   Section shell: the heading freezes on the left and releases when the
   section's content runs out. Content scrolls past it on the right.
   ========================================================================== */
.sec { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); column-gap: clamp(28px, 3vw, 48px); align-items: stretch; }
.sec__hd { min-width: 0; }
.sec__hd__in { position: sticky; top: 104px; }
.sec__hd h2 { margin-top: 8px; font-size: clamp(24px, 2.6vw, 31px); }
.sec__hd p { margin-top: 11px; color: var(--text-secondary); font-size: 15px; }
.sec__hd .btn { margin-top: 20px; min-height: 46px; padding: 12px 24px; font-size: 15px; }
.sec__body > .mx .mx__t { width: 47%; }
.sec__body > .mx .mx__p { width: 50%; }
.sec__body > .signpost { margin-top: 28px; text-align: left; }

@media (max-width: 1024px) {
  .sec { grid-template-columns: minmax(0, 210px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; }
  .sec__hd__in { position: static; }
  .sec__hd { margin-bottom: 28px; }
  .sec__body > .signpost { text-align: center; }
}

/* Layouts that need adjusting once they sit inside the narrower body column */
.sec__body > .steps { grid-template-columns: repeat(2, 1fr); row-gap: clamp(24px, 3vw, 36px); }
.sec__body > .split { padding: clamp(24px, 3vw, 38px); gap: clamp(24px, 3vw, 40px); }
.sec__body > .faq { max-width: none; margin: 0; }
.sec__body > .partners { margin-top: 32px; text-align: left; }
.sec__body > .partners .partners__row { justify-content: flex-start; }
.sec__body > .partners .partners__note { margin: 0; }
.sec__body > .tl__cap { margin-top: 28px; }
.sec__hd .tl__switch { margin-bottom: 0; margin-top: 20px; }
.sec__hd .tl__hint { display: block; margin-top: 4px; }
@media (max-width: 720px) {
  .sec__body > .steps, .sec__body > .split { grid-template-columns: 1fr; }
}

/* ---------- Licensed-partner chip (restored) ---------- */
.chip {
  display: inline-flex; align-self: flex-start; padding: 5px 12px;
  border: 1px solid var(--bp-teal); border-radius: var(--radius-pill);
  font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--bp-teal-ink); white-space: nowrap;
}
.mx__p .chip { margin-top: 14px; }

/* Small inline citation link, used on the document-checklist panels so every
   figure traces back to an official source. */
.src-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: var(--fw-medium); color: var(--text-tertiary);
  text-decoration: underline; text-underline-offset: 2px; margin-left: 6px;
}
.src-link:hover { color: var(--bp-blue); }
.mx__note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-hairline);
  font-size: 13px; color: var(--text-secondary);
}

/* ==========================================================================
   Readiness modal — the inline "Check my readiness" flow. Lives in the same
   .modal shell as the counsellor form but wider, and swaps between question
   and result views. Kept self-contained: everything below is only used here.
   ========================================================================== */
.modal__card--wide { max-width: 720px; }

/* Chip-based question groups */
.read-q { margin-top: 18px; }
.read-q:first-child { margin-top: 6px; }
.read-q__label {
  font-size: 14px; font-weight: var(--fw-medium);
  color: var(--text-body); margin-bottom: 10px;
}
.read-q__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.read-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg); background: var(--surface-card);
  color: var(--text-primary); font-family: inherit; font-size: 14.5px;
  font-weight: var(--fw-medium); line-height: 1.35; text-align: left; cursor: pointer;
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease;
}
.read-chip:hover { border-color: var(--bp-sky); box-shadow: var(--shadow-sm); }
.read-chip.is-on { border-color: var(--bp-blue); background: var(--surface-accent-soft); }
/* Selection advances on its own, so an empty radio would only ever flash.
   The tick is here for the Back step, to show what you picked. */
.read-chip.is-on::after {
  content: "\2713"; color: var(--bp-blue); font-size: 13px; font-weight: var(--fw-semibold);
}
.read-chip:focus-visible { outline: 2px solid var(--bp-blue); outline-offset: 2px; }
.read-help {
  margin-top: 14px; font-size: 12px;
  color: var(--text-secondary); text-align: center;
}

/* Result view: criterion cards. State colours use existing brand tokens
   so we don't add another semantic layer — teal for met, sky for not yet,
   grey for unknown, a warm hex for partial (no "warning" token exists). */
.read-crits { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.read-crit {
  padding: 18px 20px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl);
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}
.read-crit__dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 8px; flex-shrink: 0;
}
.read-crit__dot--met     { background: var(--bp-teal); }
.read-crit__dot--partial { background: #E39A2C; }
.read-crit__dot--notyet  { background: var(--bp-sky); }
.read-crit__dot--unknown { background: var(--text-tertiary); }
.read-crit__body { flex: 1; min-width: 0; }
.read-crit__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.read-crit__label {
  font-size: 15.5px; font-weight: var(--fw-medium);
  color: var(--text-primary);
}
.read-crit__state {
  font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.read-crit__state--met     { color: var(--bp-teal-ink); }
.read-crit__state--partial { color: #A8620B; }
.read-crit__state--notyet  { color: var(--bp-navy); opacity: 0.72; }
.read-crit__state--unknown { color: var(--text-tertiary); }
.read-crit__detail {
  margin-top: 4px; font-size: 14px; line-height: 1.5;
  color: var(--text-secondary);
}
.read-crit__hook {
  margin-top: 8px; font-size: 13.5px; color: var(--bp-blue);
  display: flex; gap: 6px; align-items: flex-start; line-height: 1.5;
}
.read-crit__hook::before { content: '\2192'; margin-top: 0; }
.read-crit__src {
  display: inline-block; margin-top: 6px;
  font-size: 12px; color: var(--text-tertiary);
  text-decoration: underline; text-underline-offset: 2px;
}
.read-crit__src:hover { color: var(--bp-blue); }

/* Next-step block that sits under the roadmap */
.read-next {
  margin-top: 22px; padding: 20px 22px;
  background: var(--surface-accent-soft);
  border-radius: var(--radius-lg);
}
.read-next h3 {
  font-size: 17px; font-weight: var(--fw-medium);
  color: var(--text-primary); margin: 0;
}
.read-next p {
  margin-top: 6px; font-size: 14px; line-height: 1.5;
  color: var(--text-secondary);
}
.read-next__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.read-back {
  display: inline-block; margin-top: 16px;
  font-size: 13px; color: var(--text-secondary);
  background: none; border: none; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
  font-family: inherit;
}
.read-back:hover { color: var(--text-primary); }

/* Result view header row: eyebrow on the left, tiny "restart" on the right */
.read-result__hd {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 4px;
}

/* Mobile: tighter spacing so the modal doesn't feel cramped at 375px */
@media (max-width: 560px) {
  .modal__card--wide { padding: 26px 22px; }
  .read-q__label { font-size: 13px; }
  .read-chip { font-size: 12.5px; padding: 6px 12px; }
  .read-crit { padding: 13px 15px; }
  .read-crit__label { font-size: 14.5px; }
  .read-crit__detail { font-size: 13.5px; }
  .read-next { padding: 16px 18px; }
  .read-next__cta .btn { width: 100%; }
}

/* ==========================================================================
   Mobile master/detail overrides. These live last on purpose: the section-shell
   rules above set desktop widths at the same specificity, so source order is
   what decides. Keep this block at the end of the file.
   ========================================================================== */
@media (max-width: 900px) {
  .mx, .sec__body > .mx { min-height: 0 !important; }
  .mx__t, .sec__body > .mx .mx__t { width: 100%; border-radius: 0; padding-right: 18px; }
  .mx__p, .sec__body > .mx .mx__p {
    position: static; width: 100%; opacity: 1; visibility: visible; pointer-events: auto;
    transform: none; display: none; margin: 0 0 8px;
    box-shadow: none; background: var(--surface-accent-soft); border: none;
  }
  .mx__p.is-on, .sec__body > .mx .mx__p.is-on { display: block; }
}

/* ---------- Hero on narrow screens ----------
   The photo is landscape (900x601) and the mobile hero is very tall, so a plain
   "cover" crops hard into the rooflines. Favour the upper third (sky, tower) and
   deepen the lower scrim so the white panel sits on calm ground, not busy detail. */
@media (max-width: 720px) {
  .hero__media img { object-position: 50% 30%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(18,22,64,0.42) 0%, rgba(18,22,64,0.22) 26%, rgba(18,22,64,0.72) 62%, rgba(18,22,64,0.88) 100%);
  }
  .expect { padding: 22px 20px 18px; }
}

/* ---------- Story emphasis ----------
   A marker sweep that draws itself as each line arrives. The width animates, so
   it reads as highlighting rather than as a static coloured box. */
.story__l .hl {
  position: relative; color: var(--text-primary); font-weight: var(--fw-medium);
  background-image: linear-gradient(rgba(66, 200, 244, 0.38), rgba(66, 200, 244, 0.38));
  background-repeat: no-repeat;
  background-position: 0 68%;
  background-size: 0% 46%;
  transition: background-size var(--dur-slow) var(--ease-out-soft) 0.25s;
  padding: 0 2px; margin: 0 -2px;
}
.story__l.is-read .hl { background-size: 100% 46%; }
.story__l .hl--hi { background-image: linear-gradient(rgba(51,135,245,0.22), rgba(51,135,245,0.22)); color: var(--bp-blue); }

.story__l .mark {
  font-style: normal; color: var(--text-primary); font-weight: var(--fw-medium);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur-slow) var(--ease-out-soft) 0.2s;
  color: var(--bp-teal);
}
.story__l.is-read .mark { background-size: 100% 2px; color: var(--text-primary); }

@media (prefers-reduced-motion: reduce) {
  .story__l .hl,
  .story__l .mark { transition: none; background-size: 100% 46%; }
}

/* ==========================================================================
   MAAS-only additions on top of the SeAAS pattern base.
   Country postcards, sector accordions with image bands, phase blocks.
   ========================================================================== */

/* ---------- Country postcards on the home page ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.card-cty {
  position: relative; display: block; overflow: hidden;
  min-height: 200px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-mid) var(--ease-out-soft), box-shadow var(--dur-mid) ease;
}
.card-cty:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card-cty__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform var(--dur-slow) var(--ease-standard);
}
.card-cty:hover .card-cty__img { transform: scale(1.04); }
.card-cty__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,22,64,0.15) 0%, rgba(18,22,64,0.55) 60%, rgba(18,22,64,0.85) 100%);
}
.card-cty__body {
  position: relative; z-index: 2; padding: 22px 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; color: #fff;
}
.card-cty__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.card-cty h3 { color: #fff; font-size: 22px; }
.card-cty__sub { margin-top: 6px; max-width: 92%; font-size: 13px; color: rgba(255,255,255,0.82); }
.card-cty__go {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.22); backdrop-filter: blur(6px);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background var(--dur-fast) ease;
}
.card-cty:hover .card-cty__go { background: rgba(255,255,255,0.36); }
.card-cty__soon {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: rgba(255,255,255,0.9); color: var(--bp-navy); font-size: 11px;
  font-weight: var(--fw-semibold); letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.card-cty--soon { pointer-events: none; opacity: 0.85; filter: saturate(0.6); }

/* ---------- Sector accordion ---------- */
.sect-list { display: grid; gap: 12px; }
.sect-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border-hairline);
  background: var(--surface-card); box-shadow: var(--shadow-card); overflow: hidden;
}
.sect-card > summary { list-style: none; cursor: pointer; }
.sect-card > summary::-webkit-details-marker { display: none; }
.sect-hd {
  display: flex; align-items: stretch; gap: 0;
}
.sect-hd__img {
  width: 200px; flex-shrink: 0; background-size: cover; background-position: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  display: none;
}
.sect-hd__body {
  flex: 1; min-width: 0; padding: 22px 22px 22px 24px;
  display: flex; align-items: center; gap: 16px;
}
.sect-hd__text { flex: 1; min-width: 0; }
.sect-hd h3 { font-size: 21px; }
.sect-hd__roles { margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.sect-hd__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; }
.sect-hd__pay { font-size: 22px; font-weight: var(--fw-medium); color: var(--text-primary); }
.sect-hd__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--radius-pill); background: #fff;
  border: 1px solid rgba(0,184,169,0.35); color: var(--text-primary);
  font-size: 12px; font-weight: var(--fw-medium);
}
.sect-hd__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bp-teal); }
.sect-hd__caret {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: var(--surface-accent-soft); display: grid; place-items: center;
  transition: transform var(--dur-fast) var(--ease-out-soft);
}
details.sect-card[open] .sect-hd__caret { transform: rotate(180deg); }
.sect-hd__caret img { width: 14px; }
.sect-body {
  padding: 22px 24px 26px; border-top: 1px solid var(--border-hairline);
  background: var(--bp-white);
}
.sect-body__sub { font-size: 14px; color: var(--text-secondary); }
.sect-body__label {
  display: block; margin-top: 20px; font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary);
}
.sect-body__paybands { margin-top: 10px; display: grid; gap: 0; }
.sect-body__paybands li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--border-hairline);
  font-size: 14px;
}
.sect-body__paybands li:first-child { border-top: none; }
.sect-body__paybands b { font-weight: var(--fw-medium); color: var(--text-primary); font-size: 15px; }
.sect-body__emps { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sect-body__emps span {
  padding: 5px 11px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline); background: #fff;
  font-size: 12px; color: var(--text-body);
}
@media (min-width: 720px) { .sect-hd__img { display: block; } }

/* ---------- Phase blocks (the journey) ---------- */
.phases {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .phases { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
}
.phase {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 28px; border-radius: 24px; color: #fff;
  background: var(--bp-navy); box-shadow: var(--shadow-card);
}
.phase--last { background: var(--bp-teal); }
.phase__hd { display: flex; align-items: center; justify-content: space-between; }
.phase__time {
  font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.phase__n {
  width: 32px; height: 32px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: var(--fw-semibold);
}
.phase h4 {
  color: #fff; margin-top: 22px; font-size: 22px; font-weight: var(--fw-medium);
  line-height: 1.2; letter-spacing: -0.01em;
}
.phase__body { margin-top: 12px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85); }
.phase__insight {
  margin-top: 22px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: #fff; color: var(--bp-navy);
  font-size: 12px; font-weight: var(--fw-semibold);
}
.phase--last .phase__insight { color: var(--bp-teal-ink); }

@media (min-width: 900px) {
  .phase { transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: default; }
  .phase:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .phase__body {
    max-height: 0; opacity: 0; margin-top: 0; overflow: hidden;
    transition: all 0.4s var(--ease-out-soft);
  }
  .phase:hover .phase__body {
    max-height: 200px; opacity: 1; margin-top: 12px;
  }
  .phase__insight { transition: transform 0.4s var(--ease-out-soft); }
}
.phase__insight::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--bp-sky); }
.phase--last .phase__insight::before { background: var(--bp-teal); }
.phase-arrow {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--border-hairline);
  color: var(--bp-navy); box-shadow: var(--shadow-sm);
  align-self: center;
}
@media (min-width: 900px) { .phase-arrow { display: flex; } }

/* ---------- Living-in facts grid ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts__c {
  background: var(--surface-card); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg); padding: 22px;
}
.facts__c b {
  display: block; margin-bottom: 6px; font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--bp-teal-ink);
}
.facts__c p { font-size: 14px; color: var(--text-body); line-height: 1.5; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

/* ---------- "Why now" bulleted list on destination hero panel ---------- */
.hero__why { display: grid; gap: 12px; margin-top: 12px; }
.hero__why li {
  display: flex; gap: 10px; font-size: 14px; line-height: 1.5;
  color: var(--bp-navy);
}
.hero__why li::before {
  content: ""; width: 6px; height: 6px; margin-top: 8px; flex-shrink: 0;
  background: var(--bp-teal); border-radius: 50%;
}

/* ---------- "Coming soon" markers in nav or grid tags ---------- */
.soon-tag {
  margin-left: 8px; padding: 2px 8px; border-radius: var(--radius-pill);
  background: var(--surface-sunken); color: var(--text-tertiary);
  font-size: 10px; font-weight: var(--fw-semibold); letter-spacing: 0.06em;
  text-transform: uppercase; vertical-align: middle;
}

/* Custom Chip Selects for Lead Form */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.form-chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline); background: #fff;
  font-size: 14px; font-weight: var(--fw-medium);
  color: var(--text-body); cursor: pointer;
  transition: all var(--dur-fast) ease;
}
.form-chip:hover { background: var(--surface-accent-soft); }
.form-chip.is-active {
  background: var(--surface-accent-soft);
  border-color: var(--bp-blue);
  color: var(--bp-navy);
}
.select-hidden { display: none !important; }

.sec__body > .facts { grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 20px); }
.read-crit__dot--neutral { background: var(--bp-navy); }
.read-crit__state--neutral { display: none; }
.read-q__chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.sect-body__paybands b { white-space: nowrap; flex-shrink: 0; margin-left: 12px; }

/* ==========================================================================
   Trust strip — ported from seaas-share (css/seaas.css).
   Three tiles, equal weight, separated by short hairlines. Reads as one line
   on desktop and as a stacked list on mobile.
   ========================================================================== */
.trust__row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding-top: 22px; padding-bottom: 22px; gap: 0;
}
.trust__it {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 26px; position: relative;
}
.trust__it + .trust__it::before {
  content: ""; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px;
  background: var(--border-hairline);
}
.trust__ico {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bp-sky-tint); color: var(--bp-navy);
}
.trust__ico img { width: 18px; height: 18px; }
.trust__v { font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
.trust__v strong { color: var(--text-primary); font-weight: var(--fw-medium); }

@media (max-width: 900px) {
  .trust__row { grid-template-columns: 1fr; padding-top: 16px; padding-bottom: 16px; }
  .trust__it { padding: 12px 4px; }
  .trust__it + .trust__it::before {
    left: 4px; right: 4px; top: 0; bottom: auto; width: auto; height: 1px;
  }
}

/* Master/detail container follows the active panel's height (see setFloor in
   maas.js). Transition keeps the section from snapping as panels change. */
.mx { transition: min-height var(--dur-mid) var(--ease-out-soft); }
@media (prefers-reduced-motion: reduce) { .mx { transition: none; } }

/* ==========================================================================
   Readiness planner — stepped form, then an ordered plan.
   ========================================================================== */
.read-prog { height: 4px; border-radius: 999px; background: var(--bp-gray-200); overflow: hidden; margin-top: 22px; }
.read-prog__bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--bp-blue);
  transition: width var(--dur-mid) var(--ease-out-soft); }
.read-prog__meta { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 10px; font-size: 12.5px; color: var(--text-tertiary); }
.read-skip { background: none; border: none; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px;
  color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.read-skip:hover { color: var(--bp-blue); }

.read-steps { position: relative; min-height: 210px; margin-top: 22px; }
.read-step { display: none; }
.read-step.is-on { display: block; animation: readIn var(--dur-mid) var(--ease-out-soft); }
@keyframes readIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.read-q__label { font-size: 20px; font-weight: var(--fw-medium); color: var(--text-primary); line-height: 1.25; }
.read-q__why { margin-top: 6px; margin-bottom: 16px; font-size: 13.5px; color: var(--text-secondary); }
.read-nav { margin-top: 20px; }

/* ---- plan output ---- */
.plan-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.plan-kpi { padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface-accent-soft); }
.plan-kpi__l { display: block; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-secondary); }
.plan-kpi strong { display: block; margin-top: 6px; font-size: 17px; font-weight: var(--fw-medium);
  color: var(--text-primary); line-height: 1.3; }
.plan-kpi__s { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }

.plan-next { margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--bp-navy); color: #fff; }
.plan-next__tag { display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.16); font-size: 11px; font-weight: var(--fw-semibold);
  letter-spacing: 0.08em; text-transform: uppercase; }
.plan-next h3 { margin-top: 12px; color: #fff; font-size: 20px; }
.plan-next p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,0.82); }
.plan-next__when { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: var(--fw-medium);
  color: var(--bp-sky); }

.plan-h { margin-top: 26px; font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-secondary); }
.plan-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.plan-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border-hairline); }
.plan-step__dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; flex-shrink: 0;
  background: var(--bp-sky); }
.plan-step.is-done .plan-step__dot { background: var(--bp-teal); }
/* The text column must fill the row, or space-between stops short of the
   card edge and the timing tags land at ragged x positions. */
.plan-step > div { flex: 1 1 auto; min-width: 0; }
.plan-step__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-step__t { font-size: 15.5px; font-weight: var(--fw-medium); color: var(--text-primary); }
.plan-step.is-done .plan-step__t { color: var(--text-secondary); }
.plan-step__when { font-size: 12.5px; color: var(--text-tertiary); white-space: nowrap; }
.plan-step__d { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }

.plan-block { margin-top: 22px; padding: 16px 18px; border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline); }
.plan-block h3 { font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-secondary); }
.plan-block ul { margin-top: 10px; display: grid; gap: 9px; }
.plan-block li { font-size: 13.5px; line-height: 1.55; color: var(--text-body); padding-left: 15px; position: relative; }
.plan-block li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--text-tertiary); }

@media (max-width: 620px) {
  .plan-top { grid-template-columns: 1fr; }
  .read-q__label { font-size: 18px; }
  .read-steps { min-height: 240px; }
  .plan-next { padding: 17px 18px; }
  .plan-next h3 { font-size: 18px; }
}

/* [hidden] must beat component display rules (e.g. .read-back). */
[hidden] { display: none !important; }

/* Modal scrollbar: the default one is thick and collides with the card's
   32px corner radius. Thin overlay thumb, inset off the rounded edge. */
.modal__card { scrollbar-width: thin; scrollbar-color: rgba(18,22,64,0.22) transparent; overscroll-behavior: contain; }
.modal__card::-webkit-scrollbar { width: 10px; }
/* Inset the track past the card's 32px corner radius so the thumb's ends
   stay visible instead of disappearing behind the curve. */
.modal__card::-webkit-scrollbar-track { background: transparent; margin: 28px 0; }
.modal__card::-webkit-scrollbar-thumb {
  background: rgba(18,22,64,0.20); border-radius: 999px;
  border: 3px solid transparent; background-clip: content-box;
}
.modal__card::-webkit-scrollbar-thumb:hover { background: rgba(18,22,64,0.34); background-clip: content-box; }
