/* ==========================================================================
   LoanWise — main styles (matches the reference home page)
   Dark teal bands alternate with light mist sections. Display type is a
   light serif; body is Figtree; handwritten notes use Caveat.
   Breakpoints: mobile 320–767, tablet 768–1023, large 1024–1279, wide 1280+.
   The header is always fixed, at every width.
   ========================================================================== */

/* 1. Tokens — light theme (dark-mode.css overrides these) */
:root {
  --teal-950: #06262d;
  --teal-900: #0b3a44;
  --teal-800: #14505c;
  --teal-700: #1d6474;
  --aqua: #a6e7ef;
  --aqua-2: #7fd6e2;
  --mist: #eef8fa;
  --mist-2: #dcf0f4;
  --surface: #ffffff;
  --ink: #0d2c33;
  --ink-2: #4a6871;
  --rule: rgba(13, 44, 51, 0.14);
  --on-dark: #ffffff;
  --on-dark-2: #c6e3e9;
  --accent-on-light: #0f5563;
  --focus: #0f5563;
  --btn-light-bg: #ffffff;
  --btn-light-text: #06262d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-note: "Caveat", "Segoe Script", cursive;

  --step--1: clamp(0.84rem, 0.8rem + 0.2vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.05vw, 2.05rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
  --step-4: clamp(2.8rem, 1.6rem + 4.6vw, 5.2rem);

  --space-l: clamp(3.75rem, 7vw, 6.25rem);
  --radius: 16px;
  --header-h: 84px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.005em; line-height: 1.25; }

p {
  margin: 0 0 1em;
  max-width: 60ch;
}

a {
  color: inherit;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--teal-950);
  color: var(--on-dark);
  border-radius: 10px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-on-light);
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.kicker {
  color: var(--aqua);
}

.sub-lead {
  color: var(--ink-2);
  font-size: var(--step-0);
  max-width: 46ch;
}

/* 3. Notes: handwritten annotations from the reference */
.note {
  position: absolute;
  margin: 0;
  font-family: var(--font-note);
  font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--accent-on-light);
  pointer-events: none;
  max-width: none;
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 var(--step-0) / 1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn i {
  font-size: 0.85em;
}

/* White pill on dark bands */
.btn-pill-light {
  background: var(--btn-light-bg);
  color: var(--btn-light-text);
}

.btn-pill-light:hover {
  background: var(--aqua);
  color: var(--btn-light-text);
}

/* Outlined pill on dark bands (header) */
.btn-ghost-light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--on-dark);
}

/* Outlined pill on light sections */
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--surface);
}

/* Filled dark pill on light sections */
.btn-primary {
  background: var(--teal-900);
  color: var(--on-dark);
}

.btn-primary:hover {
  background: var(--teal-700);
}

/* 5. Header — always fixed. Dark teal band in every theme. */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--teal-950);
  color: var(--on-dark);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.6);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--on-dark);
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: var(--on-dark);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: var(--on-dark-2);
}

.primary-nav {
  position: fixed;
  inset-block-start: var(--header-h);
  inset-inline: 0;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  background: var(--teal-950);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.primary-nav[data-open="true"] {
  opacity: 1;
  visibility: visible;
  /* Tall menus scroll inside the panel, never the page behind it. */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* While the mobile menu is open, the page behind it does not scroll (below 1024px).
   Set by main.js on <html>. */
html.nav-locked,
html.nav-locked body {
  overflow: hidden;
  touch-action: none;
}
html.nav-locked .primary-nav[data-open="true"] { touch-action: pan-y; }

@media (min-width: 1024px) {
  html.nav-locked,
  html.nav-locked body { overflow: auto; touch-action: auto; }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}

.nav-list a {
  display: block;
  min-height: 44px;
  padding: 0.7rem 0;
  text-decoration: none;
  color: var(--on-dark);
}

.nav-list a[aria-current="page"] {
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-cta {
  display: none;
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--on-dark);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  display: inline-grid;
}

/* Small phones: logo and buttons must fit in 320px */
@media (max-width: 559px) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    font-size: 1.6rem;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .brand-sub {
    display: none;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .header-tools {
    gap: 0.1rem;
  }
}

/* 6. Back to top — physical right, bottom; shown once past the hero */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal-950);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--aqua);
}

/* 7. Media: photos with a tonal fallback shown until the photo is added */
.media {
  position: relative;
  overflow: hidden;
  background: var(--teal-800);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media.is-missing img {
  display: none;
}

.media[data-tone="dusk"] { background: linear-gradient(160deg, #3f6f7a 0%, #c28a58 55%, #1d4a55 100%); }
.media[data-tone="warm"] { background: linear-gradient(160deg, #d9c8b4 0%, #9eb7bd 100%); }
.media[data-tone="desk"] { background: linear-gradient(160deg, #e9f6f8 0%, #9ecfd7 100%); }
.media[data-tone="model"] { background: linear-gradient(160deg, #eef8fa 0%, #bfe4ea 100%); }
.media[data-tone="couple"] { background: linear-gradient(160deg, #6e8f96 0%, #2a5a64 100%); }
.media[data-tone="house"] { background: linear-gradient(160deg, #cfe9ee 0%, #7fbfca 100%); }
.media[data-tone="paper"] { background: linear-gradient(160deg, #e6eef0 0%, #8ca9b0 100%); }
.media[data-tone="coins"] { background: linear-gradient(160deg, #345e67 0%, #0f3640 100%); }

/* 8. Section 1 — Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 30% 0%, rgba(166, 231, 239, 0.12), transparent 50%),
    linear-gradient(120deg, var(--teal-950) 0%, var(--teal-900) 60%, var(--teal-800) 100%);
  color: var(--on-dark);
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  min-height: min(calc(100svh - var(--header-h)), 760px);
  align-items: stretch;
}

.hero-copy-wrap {
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.hero-copy {
  max-width: 560px;
}

.hero h1 {
  color: var(--on-dark);
  margin-bottom: 1.3rem;
}

.hero .accent {
  color: var(--aqua);
}

.hero .lead {
  color: var(--on-dark-2);
  font-size: var(--step-0);
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 1.8rem;
  margin: 2rem 0 2.6rem;
}

.watch {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--on-dark);
  text-decoration: none;
  font-size: var(--step--1);
  line-height: 1.3;
}

.play {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 0;
  padding: 1.4rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(166, 231, 239, 0.18);
  color: var(--on-dark-2);
  font-size: var(--step--1);
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.trust-row li + li {
  padding-inline-start: 1.6rem;
  border-inline-start: 1px solid rgba(166, 231, 239, 0.18);
}

.trust-row i {
  color: var(--aqua);
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 420px;
  overflow: hidden;
  /* Curved left edge, as in the reference */
  border-start-start-radius: 46% 100%;
  border-end-start-radius: 46% 100%;
}

.hero-media .media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 45, 0.55), rgba(6, 38, 45, 0) 45%);
  pointer-events: none;
}

.note-hero {
  inset-block-start: 14%;
  inset-inline-start: 8%;
  z-index: 2;
  color: var(--aqua);
  transform: rotate(-6deg);
  text-align: start;
}

.scroll-down {
  position: absolute;
  z-index: 2;
  inset-block-end: 1.6rem;
  inset-inline-end: 1.6rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  color: var(--on-dark);
  font-size: 0.75rem;
  text-decoration: none;
}

.scroll-ring {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

/* 9. Section 2 — Why choose us */
.why {
  padding-block: var(--space-l);
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface) 55%, var(--mist) 100%);
}

.why-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.why-copy h2 {
  color: var(--ink);
}

.why-copy .btn {
  margin-top: 1.2rem;
}

.why-media {
  position: relative;
  margin: 0;
  padding: 1.5rem 0 0 0;
}

.blob {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 38% 62% 58% 42% / 44% 40% 60% 56%;
  box-shadow: 0 30px 60px -36px rgba(6, 38, 45, 0.5);
}

.why-media .note {
  inset-block-end: -0.2rem;
  inset-inline-start: 0.5rem;
  text-align: start;
}

.features {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding-block: 1.3rem;
  border-bottom: 1px solid var(--rule);
}

.feature:first-child {
  padding-top: 0;
}

.feature:last-child {
  border-bottom: 0;
}

.feature h3 {
  margin-bottom: 0.2rem;
  font-size: var(--step-1);
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-on-light);
  font-size: 1.3rem;
  box-shadow: inset 0 0 0 1px var(--rule), 0 0 0 8px var(--mist-2);
}

/* 10. Section 3 — Services (dark band, cards with overlapping badges) */
.services {
  padding-block: var(--space-l);
  background: linear-gradient(115deg, var(--teal-950) 0%, var(--teal-900) 65%, var(--teal-800) 100%);
  color: var(--on-dark);
}

.services-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.services h2 {
  color: var(--on-dark);
}

.services .sub-lead {
  color: var(--on-dark-2);
}

.services .eyebrow {
  color: var(--aqua);
}

.services .btn {
  margin-top: 1.2rem;
}

.service-cards {
  display: grid;
  gap: 1.6rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.6);
}

.service-card .media {
  height: 220px;
  border-radius: 14px 14px 0 0;
}

.service-badge {
  position: absolute;
  inset-block-start: 190px;
  inset-inline-start: 1.6rem;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-on-light);
  font-size: 1.25rem;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4);
}

.service-body {
  padding: 2.4rem 1.6rem 1.7rem;
}

.service-body h3 {
  font-size: var(--step-2);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.service-body p {
  color: var(--ink-2);
  font-size: var(--step--1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--step--1);
}

.text-link:hover {
  color: var(--accent-on-light);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* 11. Section 4 — EMI calculator (light band) */
.emi {
  position: relative;
  padding-block: var(--space-l);
  background: linear-gradient(180deg, var(--mist) 0%, var(--mist-2) 100%);
  overflow-x: clip;
}

.emi-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.emi-copy {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.emi-media {
  aspect-ratio: 3 / 4;
  border-radius: 40% 40% 24px 24px / 30% 30% 24px 24px;
}

.emi-text h2 {
  color: var(--ink);
}

.emi-text .btn {
  margin-top: 1rem;
}

.note-emi {
  inset-block-end: -2.2rem;
  inset-inline-start: 2.5rem;
  text-align: start;
}

.calc-stack {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.calc {
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(6, 38, 45, 0.55);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  border-radius: 999px;
  background: var(--mist);
}

.tab {
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 var(--step--1) / 1 var(--font-text);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.tab[aria-selected="true"] {
  background: var(--teal-900);
  color: var(--on-dark);
}

.slider-block {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.2rem;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.slider-head output {
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-card {
  position: relative;
  margin-inline-start: 14%;
  padding: 1.6rem 1.7rem;
  border-radius: 18px;
  background: var(--teal-950);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -36px rgba(6, 38, 45, 0.75);
}

.result-label {
  margin: 0 0 0.3rem;
  font-size: var(--step--1);
  color: var(--on-dark-2);
}

.result-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.result-main small {
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--on-dark-2);
}

.result-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(166, 231, 239, 0.2);
}

.result-row dt {
  font-size: var(--step--1);
  color: var(--on-dark-2);
}

.result-row dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Range inputs. --fill is set from JS (0–100%). */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--teal-900) 0 var(--fill, 50%), var(--rule) var(--fill, 50%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
}

input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 2px;
  background: var(--teal-900);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  border: 2px solid var(--teal-900);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(6, 38, 45, 0.25);
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--teal-900);
  border-radius: 50%;
  background: var(--surface);
}

/* 12. Section 5 — Journey (four steps) */
.journey {
  padding-block: var(--space-l);
  background: var(--surface);
}

.journey-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.journey-copy .btn {
  margin-top: 1rem;
}

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
}

.step {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.2rem;
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 0.8rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-on-light);
  font-size: 1.6rem;
  box-shadow: inset 0 0 0 1.5px var(--teal-800), 0 0 0 10px var(--mist);
}

.step-num {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--accent-on-light);
}

.step h3 {
  margin: 0.2rem 0 0.1rem;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
}

.step p {
  margin: 0;
  max-width: 22ch;
  font-size: var(--step--1);
  color: var(--ink-2);
}

.note-journey {
  inset-block-start: 1rem;
  inset-inline-end: 0;
  text-align: end;
}

/* 13. Section 6 — Testimonials (dark band) */
.voices {
  padding-block: var(--space-l);
  background: linear-gradient(120deg, var(--teal-950) 0%, var(--teal-900) 70%, var(--teal-800) 100%);
  color: var(--on-dark);
  overflow-x: clip;
}

.voices-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.voices-media {
  position: relative;
}

.arch {
  aspect-ratio: 4 / 4.6;
  border-radius: 220px 220px 18px 18px;
  max-width: 460px;
  margin-inline: auto;
}

.round-btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 38, 45, 0.7);
  color: var(--on-dark);
  cursor: pointer;
  backdrop-filter: blur(2px);
}

.round-btn:hover {
  background: var(--surface);
  color: var(--teal-950);
}

.round-btn.prev {
  inset-inline-start: 0.8rem;
}

.round-btn.next {
  inset-inline-end: 0.8rem;
}

.voice-stage {
  max-width: 520px;
}

.voice-card {
  margin: 0;
}

.voice-card[hidden] {
  display: none;
}

.quote-mark {
  font-size: 1.7rem;
  color: var(--aqua);
  margin-bottom: 0.6rem;
}

.voice-card blockquote {
  margin: 0 0 1.5rem;
}

.voice-card p {
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--on-dark);
}

.voice-author {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.9rem;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal-950);
  font-weight: 600;
  font-size: 0.9rem;
}

.voice-author strong {
  display: block;
  font-weight: 600;
}

.voice-author > span > span {
  font-size: var(--step--1);
  color: var(--on-dark-2);
}

.stars {
  grid-column: 2;
  display: flex;
  gap: 0.2rem;
  color: #f0c36d;
  font-size: 0.8rem;
}

.dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s;
}

.dot[aria-current="true"] {
  width: 26px;
  background: var(--aqua);
}

.voices-copy h2 {
  color: var(--on-dark);
}

.voices-copy .sub-lead {
  color: var(--on-dark-2);
}

.voices-copy .eyebrow {
  color: var(--aqua);
}

.voices-copy .btn {
  margin-top: 1.1rem;
}

/* 14. Section 7 — Insights */
.insights {
  padding-block: var(--space-l);
  background: var(--mist);
}

.insights-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.insights-copy .btn {
  margin-top: 1.1rem;
}

.insight-cards {
  display: grid;
  gap: 1.3rem;
}

.insight {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  overflow: hidden;
  background: var(--surface);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 20px 40px -32px rgba(6, 38, 45, 0.5);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.insight:hover {
  box-shadow: 0 28px 50px -30px rgba(6, 38, 45, 0.6);
}

.insight .media {
  min-height: 120px;
}

.insight-body {
  display: grid;
  align-content: center;
  gap: 0.35rem;
  padding: 1.1rem 1.3rem;
}

.tag {
  justify-self: start;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--mist-2);
  color: var(--accent-on-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.insight h3 {
  margin: 0;
  font-size: var(--step-0);
  font-weight: 600;
  color: var(--ink);
}

.insight-meta {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* 15. Footer — identical markup on every page */
.site-footer {
  background: var(--teal-950);
  color: var(--on-dark);
  overflow-x: clip;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.6rem 2.2rem;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: var(--step--1);
}

.footer-nav a:hover {
  color: var(--aqua);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.social {
  display: flex;
  gap: 1.1rem;
}

.social a {
  color: var(--on-dark);
  font-size: 1rem;
  text-decoration: none;
}

.social a:hover {
  color: var(--aqua);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding-block: 1.3rem 1.6rem;
  border-top: 1px solid rgba(166, 231, 239, 0.14);
  font-size: var(--step--1);
  color: var(--on-dark-2);
}

.footer-base p {
  margin: 0;
  max-width: none;
}

.footer-base .legal {
  display: flex;
  gap: 0.8rem;
}

.footer-base .legal a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.footer-base .legal a:hover {
  color: var(--aqua);
  text-decoration: underline;
}

/* 16. Responsive layout — mobile first */
@media (min-width: 560px) {
  .why-media {
    padding-top: 0;
  }

  .emi-copy {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  }

  .emi-media {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .steps::before {
    content: "";
    position: absolute;
    inset-block-start: 42px;
    inset-inline: 10%;
    height: 0;
    border-top: 1.5px dashed var(--teal-800);
    z-index: 0;
  }

  .features {
    margin-top: 0.5rem;
  }

  .insight-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insight {
    grid-template-columns: 1fr;
  }

  .insight .media {
    height: 170px;
  }
}

@media (min-width: 1024px) {
  .header-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .nav-list a {
    position: relative;
    min-height: 0;
    padding: 0.35rem 0;
    font-size: var(--step--1);
    white-space: nowrap;
  }

  .nav-list a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -4px;
    height: 2px;
    background: var(--on-dark);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .hero-media {
    margin-inline-end: 0;
  }

  .why-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1fr);
  }

  .why-copy {
    grid-column: 1;
  }

  .why-media {
    grid-column: 2;
  }

  .features {
    grid-column: 3;
    grid-row: 1;
  }

  .services-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  }

  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .emi-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .calc-stack {
    margin-top: 0;
  }

  .result-card {
    margin-inline-start: 26%;
    margin-top: -3.2rem;
  }

  .journey-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  }

  .voices-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.8fr);
  }

  .voices-media {
    grid-row: 1;
  }

  .voices-copy {
    align-self: center;
  }

  .insights-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr);
  }
}

/* 17. Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== v4: hero frame, journey photo, real stories section ===== */
.hero-media {
  border-start-end-radius: 28px;
  border-end-end-radius: 28px;
  box-shadow: 0 40px 70px -40px rgba(6, 38, 45, 0.6);
}

.journey-photo {
  position: relative;
  margin: 0 0 2.5rem;
  aspect-ratio: 21 / 7;
  border-radius: 24px;
  overflow: hidden;
  background: var(--teal-800);
}

.voices {
  position: relative;
  isolation: isolate;
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: #06262d;
  color: #ffffff;
}

.voices-bg { position: absolute; inset: 0; z-index: 0; }
.voices-bg img { width: 100%; height: 100%; object-fit: cover; }
.voices-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 38, 45, 0.94) 0%, rgba(6, 38, 45, 0.75) 48%, rgba(6, 38, 45, 0.35) 100%);
}

.voices-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-block: 110px;
}

.voices-copy h2 { color: #ffffff; font-size: clamp(2rem, 3.6vw, 3rem); }
.voices-copy .eyebrow { color: var(--aqua); }
.voices-copy .sub-lead { color: rgba(255, 255, 255, 0.82); max-inline-size: 26rem; }
.voices-copy .btn {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
}
.voices-copy .btn:hover { background: #ffffff; color: #06262d; }

.voice-card {
  background: #ffffff;
  color: #10363d;
  border-radius: 24px;
  padding: 36px 36px 30px;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.6);
  margin: 0;
}
.voice-card .quote-mark { color: #2f6f88; font-size: 28px; margin-block-end: 14px; display: block; }
.voice-card blockquote { margin: 0; }
.voice-card p { color: #10363d; font-size: 1.05rem; line-height: 1.7; margin: 0; }
.voice-author { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-start: 26px; }
.voice-author strong { display: block; color: #10363d; font-size: 15px; }
.voice-author span > span { font-size: 12px; color: #5c7179; }
.voice-author .stars { margin-inline-start: auto; color: #f2b544; font-size: 13px; letter-spacing: 2px; }
.voice-author .avatar { background: #2f6f88; color: #ffffff; }

.voice-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 22px;
}
.voice-controls .round-btn {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.voice-controls .round-btn:hover { background: #ffffff; color: #06262d; }
.voice-controls .dots { display: flex; gap: 8px; align-items: center; margin-inline-start: 8px; }

@media (max-width: 1024px) {
  .voices-grid { grid-template-columns: 1fr; padding-block: 80px; }
  .journey-photo { aspect-ratio: 16 / 8; }
}
@media (max-width: 767px) {
  .voices { min-height: auto; }
  .voices-grid { padding-block: 64px; gap: 2.2rem; }
  .voice-card { padding: 26px 22px 22px; }
  .journey-photo { aspect-ratio: 16 / 10; border-radius: 18px; }
  .hero-media { border-start-end-radius: 22px; border-end-end-radius: 22px; }
}

/* ===== v4.1: journey layout fixes ===== */
@media (max-width: 1024px) {
  .journey-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .note-journey {
    position: static;
    display: block;
    margin-top: 1.5rem;
    text-align: start;
    transform: rotate(-3deg);
  }
}

/* ===== v4.2: alignment and header fixes across breakpoints ===== */
/* Containers inside grid/flex parents must fill their column, otherwise
   auto side margins shrink them and push content inward. */
.hero-copy-wrap,
.voices > .container {
  width: 100%;
}
.voices {
  display: block;
}
/* Result card stays on the same left edge as the calculator on tablet and phones */
@media (max-width: 1024px) {
  .result-card { margin-inline: 0 !important; width: 100%; }
}
/* Nothing may scroll sideways, even when AOS offsets an element before it animates in */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

/* ==========================================================================
   ABOUT PAGE
   Grid and flex children that hold containers always take the full width,
   so auto margins never shrink them (the cause of the v4 inset bug).
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 var(--space-l);
  background:
    radial-gradient(circle at 30% 0%, rgba(166, 231, 239, 0.12), transparent 50%),
    linear-gradient(120deg, var(--teal-950) 0%, var(--teal-900) 60%, var(--teal-800) 100%);
  color: var(--on-dark);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.page-hero-grid > * { min-width: 0; width: 100%; }
.page-hero h1 { color: var(--on-dark); font-size: var(--step-3); margin-bottom: 1.1rem; }
.page-hero .accent { color: var(--aqua); font-style: italic; }
.page-hero .lead { color: var(--on-dark-2); }

.page-media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border-radius: 28px;
  overflow: hidden;
  background: var(--teal-800);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.page-media img,
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-about { padding-block: var(--space-l); }
.section-tint { background: var(--mist); }
.section-intro { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro h2 { font-size: var(--step-3); margin-bottom: 0.6rem; }
.section-intro .sub-lead { margin-top: 0.6rem; }

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-split > * { min-width: 0; width: 100%; }
.about-copy h2 { font-size: var(--step-3); margin-bottom: 1rem; }
.about-copy p { color: var(--ink-2); }
.eyebrow-light { color: var(--aqua); }

.about-tags {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.about-tags li {
  padding: 1rem 1.1rem;
  border-inline-start: 3px solid var(--accent-on-light);
  background: var(--surface);
  border-radius: 12px;
}
.about-tags strong { display: block; color: var(--ink); font-size: var(--step--1); }
.about-tags span { display: block; color: var(--ink-2); font-size: var(--step--1); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 18px 40px -26px rgba(6, 38, 45, 0.35);
  min-width: 0;
}
.value-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.value-card p { color: var(--ink-2); margin: 0; font-size: var(--step--1); }
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mist-2);
  color: var(--accent-on-light);
  font-size: 20px;
  margin-bottom: 1.1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 40px -26px rgba(6, 38, 45, 0.35);
  min-width: 0;
}
.team-photo { position: relative; aspect-ratio: 4 / 4.1; overflow: hidden; background: var(--teal-800); }
.team-body { padding: 1.25rem 1.4rem 1.5rem; }
.team-body h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.team-body p { margin: 0 0 0.5rem; color: var(--ink-2); font-size: var(--step--1); }
.team-role { color: var(--accent-on-light) !important; font-weight: 600; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink);
}
.checklist i { color: var(--accent-on-light); font-size: 1.15rem; margin-top: 0.15rem; flex: 0 0 auto; }

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  background: linear-gradient(120deg, var(--teal-900), var(--teal-800));
  color: var(--on-dark);
  min-width: 0;
}
.cta-band h2 { color: var(--on-dark); font-size: var(--step-3); margin-bottom: 0.5rem; }
.cta-band p:not(.eyebrow) { color: var(--on-dark-2); margin: 0; }
.cta-band > div { min-width: 0; flex: 1 1 22rem; }

/* ---------- About page: responsive ---------- */
@media (max-width: 1024px) {
  .page-hero-grid,
  .about-split { grid-template-columns: minmax(0, 1fr); }
  .page-media { aspect-ratio: 4 / 3.3; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .section-about { padding-block: 4rem; }
  .page-hero { padding-bottom: 4rem; }
  .page-media { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .about-tags { grid-template-columns: minmax(0, 1fr); }
  .values-grid,
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band { padding: 1.75rem 1.25rem; }
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   HEADER DROPDOWN (Home 1 / Home 2)
   ========================================================================== */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 6px 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  cursor: pointer;
}
.dropdown-toggle::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--aqua);
  transition: width 0.3s var(--ease);
}
.has-dropdown.is-current > .dropdown-toggle::after,
.dropdown-toggle:hover::after { width: 100%; }
.dd-chev { font-size: 0.7rem; transition: transform 0.3s var(--ease); }
.has-dropdown.open .dd-chev,
.has-dropdown:hover .dd-chev { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  inset-inline-start: 50%;
  /* Fixed size on desktop: never narrower than its labels, never wider than the screen */
  width: max-content;
  min-width: 15rem;
  max-width: calc(100vw - 2rem);
  isolation: isolate;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background-color: var(--surface);
  background-image: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(6, 38, 45, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  inset-inline-start: 50%;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-inline-start: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  transform: translateX(-50%) rotate(45deg);
}
.dropdown li { display: block; }
.dropdown a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.dropdown a span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  background: var(--mist-2);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.dropdown a:hover,
.dropdown a:focus-visible,
.dropdown a[aria-current="page"] { background: var(--mist); }
.dropdown a[aria-current="page"]::after { content: "Current"; display: none; }

/* Mobile: the dropdown becomes an inline accordion inside the menu (below the 1024px desktop nav) */
@media (max-width: 1023px) {
  .has-dropdown { width: 100%; }
  .dropdown-toggle { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border, var(--rule)); }
  .dropdown-toggle::after { display: none; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: auto;
    max-width: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 0.75rem;
    display: none;
  }
  .dropdown::before { display: none; }
  /* Outrank the desktop centring rules so the accordion stays inside the menu */
  .has-dropdown .dropdown,
  .has-dropdown.open .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { transform: none; inset-inline-start: auto; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown,
  .has-dropdown.open:focus-within .dropdown { display: block; }
  .dropdown a { padding: 12px 0; white-space: normal; }
  /* Accordion sits on the dark menu: light text, soft highlight for hover and the current page */
  .dropdown a { color: var(--on-dark); padding: 12px 0; }
  .dropdown a span { color: var(--aqua); background: rgba(166, 231, 239, 0.14); }
  .dropdown a:hover,
  .dropdown a:focus-visible,
  .dropdown a[aria-current="page"] { background: rgba(166, 231, 239, 0.1); }
}

/* ==========================================================================
   HOME 2 — modern, animated
   ========================================================================== */
.h2-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 6rem;
  background: var(--teal-950);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.h2-aurora { position: absolute; inset: -20%; z-index: -1; pointer-events: none; }
.h2-aurora span {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: h2-drift 18s ease-in-out infinite alternate;
}
.h2-aurora span:nth-child(1) { background: #1d8a9a; top: -10%; inset-inline-start: -10%; }
.h2-aurora span:nth-child(2) { background: #5ad0dc; bottom: -15%; inset-inline-end: -5%; animation-duration: 22s; animation-delay: -6s; }
.h2-aurora span:nth-child(3) { background: #0f5563; top: 30%; inset-inline-start: 35%; animation-duration: 26s; animation-delay: -12s; }
@keyframes h2-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, -4vh, 0) scale(1.15); }
}
.h2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.h2-hero-grid > * { min-width: 0; width: 100%; }
.h2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 231, 239, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: var(--aqua);
  font-size: var(--step--1);
  margin-bottom: 1.5rem;
}
.h2-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(166, 231, 239, 0.7); animation: h2-pulse 2s infinite; }
@keyframes h2-pulse { 0% { box-shadow: 0 0 0 0 rgba(166, 231, 239, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(166, 231, 239, 0); } 100% { box-shadow: 0 0 0 0 rgba(166, 231, 239, 0); } }

.h2-title {
  font-size: var(--step-4);
  line-height: 0.98;
  color: var(--on-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.h2-line { display: block; }
.h2-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(60%) rotate(4deg);
  animation: h2-word-in 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 140ms + 200ms);
}
.h2-grad { color: var(--aqua); }
@keyframes h2-word-in { to { opacity: 1; transform: none; } }

.h2-lead { font-size: var(--step-1); color: var(--on-dark-2); max-width: 34rem; }
.h2-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin: 2rem 0 2.5rem; }
.h2-watch { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--on-dark); font-weight: 600; }
.h2-play {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.h2-watch:hover .h2-play { transform: scale(1.1); background: rgba(255, 255, 255, 0.22); }

.h2-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.h2-counters > div { padding-block-start: 1rem; border-block-start: 1px solid rgba(255, 255, 255, 0.16); }
.h2-counters dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--on-dark); }
.h2-counters dt { font-size: var(--step--1); color: var(--on-dark-2); }

.h2-hero-visual { position: relative; aspect-ratio: 1 / 1.05; width: 100%; }
.h2-photo {
  position: absolute;
  inset: 4% 0 10% 10%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  animation: h2-float 9s ease-in-out infinite;
}
.h2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: h2-kenburns 16s ease-in-out infinite alternate; }
@keyframes h2-kenburns { to { transform: scale(1.0); } }
@keyframes h2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.h2-glass {
  position: absolute;
  inset-inline-start: 0;
  bottom: 6%;
  width: min(15rem, 60%);
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.5);
  animation: h2-float 7s ease-in-out infinite reverse;
}
.h2-glass-label { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); }
.h2-glass-value { margin: 0.2rem 0 0.75rem; font-family: var(--font-display); font-size: var(--step-2); color: var(--on-dark); }
.h2-glass-value small { font-size: 0.8rem; margin-inline-start: 0.3rem; color: var(--on-dark-2); }
.h2-mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.h2-mini-bars span {
  flex: 1;
  height: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--aqua), #1d8a9a);
  transform-origin: bottom;
  animation: h2-bar 2.4s ease-in-out infinite;
}
.h2-mini-bars span:nth-child(1) { animation-delay: 0s; height: 40%; }
.h2-mini-bars span:nth-child(2) { animation-delay: -0.4s; height: 70%; }
.h2-mini-bars span:nth-child(3) { animation-delay: -0.8s; height: 50%; }
.h2-mini-bars span:nth-child(4) { animation-delay: -1.2s; height: 90%; }
.h2-mini-bars span:nth-child(5) { animation-delay: -1.6s; height: 60%; }
.h2-mini-bars span:nth-child(6) { animation-delay: -2.0s; height: 80%; }
@keyframes h2-bar { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

.h2-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
  font-size: var(--step--1);
  animation: h2-float 6s ease-in-out infinite;
}
.h2-chip strong { display: block; font-size: var(--step--1); }
.h2-chip small { color: var(--ink-2); font-size: 0.78rem; }
.h2-chip-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mist-2); color: var(--accent-on-light);
}
.h2-chip-a { inset-block-start: 0; inset-inline-end: 0; animation-delay: -2s; }
.h2-chip-b { inset-block-end: 2%; inset-inline-end: 6%; animation-delay: -4s; }

.h2-scroll {
  position: absolute;
  inset-block-end: 1.5rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid; place-items: center;
  color: var(--on-dark);
  animation: h2-bob 2s ease-in-out infinite;
}
@keyframes h2-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Partner marquee */
.h2-marquee {
  background: var(--surface);
  border-block: 1px solid var(--rule);
  overflow: hidden;
  padding-block: 1.25rem;
}
.h2-marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: h2-marquee 32s linear infinite;
}
.h2-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-2);
  white-space: nowrap;
}
.h2-logo i { color: var(--accent-on-light); }
@keyframes h2-marquee { to { transform: translateX(-50%); } }

/* Bento services */
.h2-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.h2-head h2 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.h2-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.h2-scroll-hint { margin: 0; color: var(--ink-2); font-size: var(--step--1); display: inline-flex; gap: 0.5rem; align-items: center; }

.h2-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.h2-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--rule);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.h2-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 143, 160, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.h2-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(6, 38, 45, 0.45); }
.h2-card:hover::before { opacity: 1; }
.h2-card-wide { grid-column: span 2; flex-direction: row; }
.h2-card-media { position: relative; flex: 0 0 46%; min-height: 240px; overflow: hidden; }
.h2-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.h2-card:hover .h2-card-media img { transform: scale(1.08); }
.h2-card-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.6rem; justify-content: center; }
.h2-card:not(.h2-card-wide) { padding: 1.75rem; gap: 0.6rem; }
.h2-card h3 { font-size: var(--step-1); margin: 0.5rem 0 0; }
.h2-card p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.h2-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--mist-2); color: var(--accent-on-light);
  font-size: 20px;
  transition: transform 0.5s var(--ease);
}
.h2-card:hover .h2-card-icon { transform: rotate(-10deg) scale(1.08); }
.h2-card-dark { background: linear-gradient(130deg, var(--teal-900), var(--teal-800)); color: var(--on-dark); border-color: transparent; }
.h2-card-dark h3 { color: var(--on-dark); }
.h2-card-dark p { color: var(--on-dark-2); }
.h2-card-dark .h2-card-icon { background: rgba(255, 255, 255, 0.12); color: var(--aqua); }
.text-link { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 600; color: var(--accent-on-light); margin-top: 0.4rem; }
.text-link i { transition: transform 0.3s var(--ease); }
.text-link:hover i { transform: translateX(4px); }

/* Compare bars */
.h2-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.h2-compare > * { min-width: 0; }
.h2-offers { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.h2-offer {
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.h2-offer:hover { transform: translateX(-6px); box-shadow: 0 20px 40px -26px rgba(6, 38, 45, 0.4); }
.h2-offer-best { border-color: var(--accent-on-light); box-shadow: 0 20px 40px -24px rgba(15, 85, 99, 0.5); }
.h2-offer-top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0.75rem; align-items: baseline; margin-bottom: 0.9rem; }
.h2-offer-top strong { color: var(--ink); font-size: var(--step-0); }
.h2-offer-top span { font-family: var(--font-display); font-size: var(--step-1); color: var(--accent-on-light); }
.h2-offer-top em { font-style: normal; color: var(--ink-2); font-size: var(--step--1); }
.h2-best { display: inline-block; margin-inline-start: 0.5rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--teal-800); color: var(--on-dark); vertical-align: middle; }
.h2-bar { height: 10px; border-radius: 999px; background: var(--mist-2); overflow: hidden; }
.h2-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-700), #5ad0dc);
  transition: width 1.4s var(--ease);
}
.h2-offers.in .h2-bar span { width: var(--w); }

/* Quick EMI */
.h2-emi-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.h2-emi-grid > * { min-width: 0; }
.h2-emi-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -30px rgba(6, 38, 45, 0.4);
  display: grid;
  gap: 1.6rem;
  min-width: 0;
}
.h2-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.4rem; }
.h2-field-head label { color: var(--ink-2); font-size: var(--step--1); }
.h2-field-head output { font-weight: 700; color: var(--ink); font-size: var(--step-0); }
.h2-field input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-700) var(--fill, 50%), var(--mist-2) var(--fill, 50%));
  outline: none;
  direction: ltr;
}
.h2-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--teal-700);
  box-shadow: 0 6px 16px rgba(6, 38, 45, 0.35);
  cursor: pointer;
}
.h2-field input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--teal-700);
  cursor: pointer;
}
.h2-emi-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(130deg, var(--teal-950), var(--teal-800));
  color: var(--on-dark);
}
.h2-emi-result span { display: block; font-size: var(--step--1); color: var(--on-dark-2); }
.h2-emi-result strong { display: block; font-family: var(--font-display); font-size: var(--step-1); overflow-wrap: anywhere; }
.h2-emi-result > div:first-child strong { color: var(--aqua); font-size: var(--step-2); }

/* Process */
.h2-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  --step-gap: 1.25rem;
  gap: var(--step-gap);
  position: relative;
}
/* The line joins the centre of the first dot to the centre of the last dot.
   Each dot sits at the start of its column (0.5rem in), 66px wide, so its centre is 33px in.
   The last column starts at 75% of the width plus three gaps, which gives the end offset. */
.h2-steps::before {
  content: "";
  position: absolute;
  top: 32px;
  inset-inline-start: calc(0.5rem + 33px);
  inset-inline-end: calc(25% - 0.75 * var(--step-gap) - 0.5rem - 33px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-700) 0 8px, transparent 8px 16px);
  opacity: 0.45;
}
.h2-step { position: relative; min-width: 0; padding: 0 0.5rem; }
.h2-step-dot {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 22px;
  display: grid; place-items: center;
  background: var(--teal-900);
  color: var(--aqua);
  font-size: 22px;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 30px -14px rgba(6, 38, 45, 0.6);
  transition: transform 0.5s var(--ease);
}
.h2-step:hover .h2-step-dot { transform: translateY(-8px) rotate(-6deg); }
.h2-step h3 { font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; margin-bottom: 0.4rem; }
.h2-step p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }

/* Testimonials: horizontal scroll-snap */
.h2-voices {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(16rem, 24rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.5rem;
  scrollbar-width: thin;
  scroll-padding-inline: 0.25rem;
}
.h2-voices:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 16px; }
.h2-voice {
  margin: 0;
  scroll-snap-align: start;
  padding: 1.75rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.h2-voice:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(6, 38, 45, 0.45); }
.h2-stars { color: var(--gold, #f2b544); display: flex; gap: 0.2rem; font-size: 0.85rem; }
.h2-voice blockquote { margin: 0; flex: 1; }
.h2-voice blockquote p { margin: 0; color: var(--ink); font-size: var(--step-0); line-height: 1.6; }
.h2-voice figcaption { display: flex; align-items: center; gap: 0.75rem; }
.h2-voice figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.h2-voice figcaption strong { display: block; color: var(--ink); font-size: var(--step--1); }
.h2-voice figcaption small { color: var(--ink-2); font-size: 0.78rem; }

/* CTA */
.h2-cta { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; overflow: hidden; isolation: isolate; color: var(--on-dark); background: var(--teal-950); text-align: center; }
.h2-cta-bg { position: absolute; inset: 0; z-index: -1; }
.h2-cta-bg span { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.45; }
.h2-cta-bg span:nth-child(1) { background: #1d8a9a; top: -30%; inset-inline-start: -15%; animation: h2-drift 20s ease-in-out infinite alternate; }
.h2-cta-bg span:nth-child(2) { background: #5ad0dc; bottom: -35%; inset-inline-end: -15%; animation: h2-drift 24s ease-in-out infinite alternate-reverse; }
.h2-cta-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.h2-cta h2 { color: var(--on-dark); font-size: var(--step-4); max-width: 16ch; line-height: 1.02; margin: 0; }
.h2-cta .btn { margin-top: 0.75rem; }

/* Magnetic buttons: JS sets --mx/--my offset */
.h2-magnetic { transition: transform 0.25s var(--ease), box-shadow 0.25s; }

/* ---------- Home 2 responsive ---------- */
@media (max-width: 1024px) {
  .h2-hero-grid,
  .h2-compare,
  .h2-emi-grid { grid-template-columns: minmax(0, 1fr); }
  .h2-hero-visual { max-width: 36rem; margin-inline: auto; width: 100%; }
  .h2-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2-card-wide { grid-column: span 2; }
  .h2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
  .h2-steps::before { display: none; }
}
@media (max-width: 767px) {
  .h2-hero { min-height: auto; padding-bottom: 5.5rem; }
  .h2-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .h2-counters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .h2-counters dd { font-size: var(--step-1); }
  .h2-actions { flex-direction: column; align-items: stretch; }
  .h2-actions .btn { justify-content: center; }
  .h2-hero-visual { aspect-ratio: 1 / 1.1; }
  .h2-chip { font-size: 0.75rem; padding: 0.55rem 0.7rem; }
  .h2-chip-a { inset-inline-end: -2%; }
  .h2-chip-b { inset-inline-end: -2%; }
  .h2-glass { width: 58%; padding: 0.9rem; }
  .h2-glass-value { font-size: var(--step-1); }
  .h2-bento { grid-template-columns: minmax(0, 1fr); }
  .h2-card-wide { grid-column: auto; flex-direction: column; }
  .h2-card-media { flex: 0 0 auto; min-height: 200px; }
  .h2-offer-top { grid-template-columns: minmax(0, 1fr) auto; }
  .h2-offer-top em { grid-column: 1 / -1; }
  .h2-emi-result { grid-template-columns: minmax(0, 1fr); }
  .h2-steps { grid-template-columns: minmax(0, 1fr); }
  .h2-voices { grid-auto-columns: minmax(15rem, 85%); }
  .h2-cta h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
}

/* Reduced motion: keep the layout, stop the movement */
@media (prefers-reduced-motion: reduce) {
  .h2-word { opacity: 1; transform: none; animation: none; }
  .h2-aurora span, .h2-marquee-track, .h2-photo, .h2-photo img, .h2-glass, .h2-chip,
  .h2-mini-bars span, .h2-scroll, .h2-pulse, .h2-cta-bg span { animation: none !important; }
  .h2-offers .h2-bar span { transition: none; width: var(--w); }
}

/* Home 2: containers inside flex parents fill the width (see DEVELOPMENT_RULES.md) */
.h2-hero > .container,
.h2-cta > .container { width: 100%; }

/* Home 2: buttons inside cards keep their natural width */
.h2-card-body .btn { align-self: flex-start; }

/* ==========================================================================
   SERVICES PAGE (svc-) — built from the theme's own components
   ========================================================================== */
.svc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.svc-steps > * { min-width: 0; }
.svc-steps .step { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.svc-steps .step:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(6, 38, 45, 0.35); }
.svc-steps .step:hover .step-icon { transform: rotate(-8deg) scale(1.08); }
.svc-steps .step-icon { transition: transform 0.4s var(--ease); }

.svc-uses { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.5rem; }
.svc-panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 24px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 24px 50px -32px rgba(6, 38, 45, 0.35); }
.svc-panel > * { min-width: 0; }
.svc-panel h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.svc-panel p { color: var(--ink-2); }
.svc-panel.is-swapping > * { animation: svcIn 0.5s var(--ease) both; }
.svc-panel .checklist { margin: 0; }
@keyframes svcIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.svc-match { position: relative; overflow: hidden; padding-block: var(--space-l); color: var(--on-dark); background: radial-gradient(circle at 80% 20%, rgba(166, 231, 239, 0.14), transparent 45%), linear-gradient(120deg, var(--teal-950) 0%, var(--teal-900) 60%, var(--teal-800) 100%); }
.svc-match-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-match-grid > * { min-width: 0; }
.svc-match h2 { color: var(--on-dark); font-size: var(--step-3); margin-bottom: 0.8rem; }
.svc-match-copy > p { color: var(--on-dark-2); }
.svc-match .tab { color: var(--on-dark-2); border: 1px solid rgba(166, 231, 239, 0.3); }
.svc-match .tab[aria-selected="true"] { background: var(--aqua); color: var(--teal-950); border-color: var(--aqua); }
.svc-goals { margin: 1.5rem 0; padding: 0; }
.svc-amount-label { display: flex; justify-content: space-between; color: var(--on-dark); font-weight: 600; }
.svc-amount-label output { color: var(--aqua); }
.svc-range { width: 100%; margin-top: 0.8rem; accent-color: var(--aqua); }
.svc-match-card { padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(166, 231, 239, 0.2); backdrop-filter: blur(6px); }
.svc-card-label { color: var(--aqua); text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--step--1); font-weight: 700; margin: 0; }
.svc-match-card h3 { color: var(--on-dark); font-size: var(--step-2); margin: 0.4rem 0; }
.svc-match-card p { color: var(--on-dark-2); }
.svc-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.4rem 0; }
.svc-figs div { background: rgba(6, 38, 45, 0.45); border-radius: 14px; padding: 0.9rem 1rem; }
.svc-figs span { display: block; color: var(--on-dark-2); font-size: var(--step--1); }
.svc-figs strong { color: var(--on-dark); font-size: var(--step-1); }
.svc-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.svc-meter span { display: block; height: 100%; width: 0; background: var(--aqua); border-radius: inherit; transition: width 0.6s var(--ease); }
.svc-card-btn { margin-top: 1.5rem; }

.svc-ring-wrap { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.svc-ring { --p: 0; position: relative; width: clamp(200px, 36vw, 250px); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--teal-700) calc(var(--p) * 1%), var(--mist-2) 0); transition: background 0.6s ease; display: grid; place-items: center; }
.svc-ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--surface); }
.svc-ring span { position: relative; font-weight: 700; font-size: var(--step-1); color: var(--ink); }
.svc-docs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.7rem; }
.svc-docs label { display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); cursor: pointer; color: var(--ink); font-weight: 500; transition: transform 0.25s var(--ease), border-color 0.25s; }
.svc-docs label:hover { transform: translateX(6px); border-color: var(--teal-700); }
.svc-docs input { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; accent-color: var(--teal-700); }
.svc-docs input:checked + span { text-decoration: line-through; color: var(--ink-2); }

@media (max-width: 1280px) { .svc-steps { gap: 1rem; } }
@media (max-width: 1024px) {
  .svc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-match-grid, .svc-panel { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .svc-steps { grid-template-columns: 1fr; }
  .svc-figs { grid-template-columns: 1fr; }
  .svc-uses .tab { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-steps .step, .svc-panel.is-swapping > * { transition: none; animation: none !important; }
}

/* ==========================================================================
   EMI calculator page (v0.8.0)
   Nine sections, each with its own layout:
   1 hero dial · 2 calculator console · 3 yearly split chart · 4 tenure lanes
   5 prepayment band · 6 income gauge · 7 formula ticket · 8 FAQ · 9 email plan
   Breakpoints: mobile 320–767 (base), tablet 768–1023, large 1024+.
   ========================================================================== */

:root {
  --warm: #f4b860;
  --warm-soft: #fde9c4;
  --warm-ink: #3b2a06;
  --err: #b42318;
  --ok: #1f8a70;
  --alert: #c98a10;
  --danger: #c2412d;
}

@keyframes emiOrbit {
  to { transform: translateX(-50%) rotate(360deg); }
}
@keyframes emiRise {
  from { transform: scaleY(0.15); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- 1. Hero with dial ---------- */
.emi-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-dark);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(127, 214, 226, 0.22), transparent 60%),
    radial-gradient(700px 480px at 0% 100%, rgba(244, 184, 96, 0.14), transparent 60%),
    linear-gradient(160deg, var(--teal-900), var(--teal-950));
  padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
}
.emi-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -38vmin;
  inset-inline-start: 50%;
  width: 120vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(166, 231, 239, 0.18);
  transform: translateX(-50%);
  animation: emiOrbit 60s linear infinite;
  pointer-events: none;
}
.emi-hero-grid {
  display: grid;
  gap: 2.75rem;
  align-items: center;
  position: relative;
}
.emi-hero-grid > * { min-width: 0; }
.emi-hero h1 { color: var(--on-dark); font-size: var(--step-4); }
.emi-hero h1 .accent { color: var(--aqua); font-style: italic; }
.emi-hero .lead { color: var(--on-dark-2); font-size: var(--step-1); max-width: 46ch; }

.emi-dial {
  margin: 0;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  min-width: 0;
}
.dial-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.dial-svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.dial-svg circle { fill: none; stroke-width: 20; }
.dial-interest { stroke: var(--warm); }
.dial-principal { stroke: var(--aqua); transition: stroke-dasharray 1.2s var(--ease); }
.dial-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.2rem;
  pointer-events: none;
}
.dial-label {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.dial-core strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.dial-core small { color: var(--on-dark-2); }
.dial-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(166, 231, 239, 0.3);
  color: var(--on-dark);
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
}
.dial-chip i { color: var(--warm); }
.dial-chip-a { top: 2%; inset-inline-start: 0; }
.dial-chip-b { bottom: 4%; inset-inline-end: 0; }
.dial-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: var(--step--1);
  color: var(--on-dark-2);
  font-weight: 600;
}
.dial-key {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-inline-end: 0.1rem;
}
.dial-key-p { background: var(--aqua); }
.dial-key-i { background: var(--warm); }

/* ---------- 2. Calculator console ---------- */
.emi-calc {
  background: var(--mist);
  padding: var(--space-l) 0;
}
.emi-calc-head { max-width: 42rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.emi-calc-head h2,
.emi-journey h2,
.emi-prepay h2,
.emi-afford h2,
.emi-formula h2,
.emi-faq-side h2,
.emi-plan h2 { font-size: var(--step-3); margin: 0 0 0.5rem; }

.emi-console {
  position: relative;
  display: grid;
  gap: 1.6rem;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: clamp(1.25rem, 3.2vw, 2.4rem);
  box-shadow: 0 30px 60px -36px rgba(6, 38, 45, 0.4);
}
.emi-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--mist);
  border-radius: 22px;
}
.emi-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 0;
  padding: 0.5rem 0.4rem;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink-2);
  font: 600 0.88rem / 1.1 var(--font-text);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.emi-type i { font-size: 1.05rem; }
.emi-type:hover { color: var(--ink); }
.emi-type[aria-selected="true"] {
  background: var(--teal-900);
  color: var(--on-dark);
  box-shadow: 0 10px 22px -12px rgba(6, 38, 45, 0.6);
}
.emi-console-grid { display: grid; gap: 1.75rem; min-width: 0; }
.emi-inputs { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }

.emi-field { display: grid; gap: 0.55rem; min-width: 0; }
.emi-field-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.8rem;
}
.emi-field label { font-weight: 600; color: var(--ink); }
.emi-field-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 0.6rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.emi-field-foot small { color: var(--ink-2); }
.emi-field-foot small,
.emi-field-foot .emi-error { min-width: 0; }
.emi-field-foot .emi-error { flex: 1 1 100%; }

.emi-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 220px);
  min-width: 0;
  padding: 0.5rem 0.85rem;
  background: var(--mist);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.emi-input-wrap:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16);
}
.emi-input-wrap input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 var(--step-0) / 1.2 var(--font-text);
  font-variant-numeric: tabular-nums;
  text-align: end;
  direction: ltr;
  outline: none;
}
.emi-input-wrap input::placeholder { color: var(--ink-2); opacity: 0.7; font-weight: 500; }
.emi-prefix,
.emi-suffix { flex: 0 0 auto; color: var(--ink-2); font-weight: 700; }
.emi-field.is-invalid .emi-input-wrap { border-color: var(--err); box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12); }

.emi-field > input[type="text"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
  font: 500 var(--step-0) / 1.3 var(--font-text);
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.emi-field > input[type="text"]:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16);
}
.emi-field.is-invalid > input[type="text"] { border-color: var(--err); }
.emi-field > input[type="range"] { width: 100%; }

.emi-error {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
  color: var(--err);
  overflow-wrap: anywhere;
}
.emi-error:empty { display: none; }
.optional { font-weight: 500; color: var(--ink-2); }

.emi-result {
  position: relative;
  display: grid;
  gap: 1.2rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 22px;
  color: var(--on-dark);
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(127, 214, 226, 0.22), transparent 70%),
    linear-gradient(150deg, var(--teal-950), var(--teal-800));
}
.emi-result-title {
  margin: 0;
  font: 700 var(--step--1) / 1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
}
.emi-result-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--on-dark);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.emi-donut {
  width: min(100%, 210px);
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) calc(var(--p, 50) * 1%), var(--warm) 0);
  display: grid;
  place-items: center;
}
.emi-donut-core {
  width: 66%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-950);
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--on-dark);
}
.emi-donut-core strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1;
}
.emi-donut-core span { font-size: var(--step--1); color: var(--on-dark-2); }
.emi-rows { margin: 0; display: grid; }
.emi-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(230, 246, 249, 0.16);
}
.emi-rows dt { font-size: var(--step--1); color: var(--on-dark-2); }
.emi-rows dd {
  margin: 0;
  font-weight: 700;
  color: var(--on-dark);
  text-align: end;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.emi-result-note { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); }

/* ---------- 3. Yearly split chart ---------- */
.emi-journey {
  background: var(--surface);
  padding: var(--space-l) 0;
}
.emi-journey-grid,
.emi-prepay-grid,
.emi-afford-grid,
.emi-formula-grid,
.emi-faq-grid,
.emi-plan-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
}
.emi-journey-grid > *,
.emi-prepay-grid > *,
.emi-afford-grid > *,
.emi-formula-grid > *,
.emi-faq-grid > *,
.emi-plan-grid > * { min-width: 0; }

.emi-milestones {
  display: grid;
  gap: 0.8rem;
  margin: 1.6rem 0 1.2rem;
}
.emi-milestones > div {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--mist);
  border-inline-start: 4px solid var(--warm);
}
.emi-milestones dt { font-size: var(--step--1); color: var(--ink-2); }
.emi-milestones dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.note-pill {
  display: inline-block;
  margin: 0.6rem 0 0;
  font-family: var(--font-note);
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--accent-on-light);
  transform: rotate(-5deg);
}
.note-pill-light { color: var(--aqua); }

.emi-chart-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 26px;
  background: var(--mist);
}
.emi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.2rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
}
.emi-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.sw-prin { background: var(--teal-700); }
.sw-int { background: var(--warm); }
.emi-chart {
  display: flex;
  align-items: stretch;
  gap: 3px;
  height: clamp(200px, 40vw, 300px);
  min-width: 0;
}
.emi-bar {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 100%;
  animation: emiRise 0.9s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 28ms);
  transition: transform 0.25s var(--ease), filter 0.25s;
}
.emi-bar:hover,
.emi-bar.is-active { filter: brightness(1.08); transform: translateY(-3px); }
.emi-bar-int { flex: var(--int, 0.5) 1 0; background: var(--warm); }
.emi-bar-prin { flex: var(--prin, 0.5) 1 0; background: var(--teal-700); }
.emi-chart-axis {
  display: flex;
  gap: 3px;
  margin-top: 0.5rem;
  min-width: 0;
}
.emi-chart-axis span {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}
.emi-chart-tip {
  margin: 1.1rem 0 0;
  min-height: 3.4em;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ---------- 4. Tenure race (v0.8.1) ---------- */
.emi-race-sec {
  background: var(--mist);
  padding: var(--space-l) 0;
  overflow: hidden;
}
.emi-race-head {
  display: grid;
  gap: 1rem;
  min-width: 0;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.emi-race-head h2 { font-size: var(--step-3); margin: 0; }
.emi-race-head .sub-lead { margin: 0; }

/* Ruler: tenures placed on a 1–30 year scale */
.race-ruler {
  position: relative;
  height: 54px;
  margin: 0 0 1.4rem;
}
.race-ruler::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 34px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aqua-2), var(--teal-700) 55%, var(--warm));
}
.race-mark {
  position: absolute;
  top: 0;
  inset-inline-start: var(--pos);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.race-mark b {
  height: 22px;
  line-height: 22px;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.race-mark::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--teal-700);
  box-sizing: border-box;
}
.race-mark.is-current b { color: var(--accent-on-light); }
.race-mark.is-current::after { border-color: var(--warm); transform: scale(1.25); }

/* Cards */
.race-grid { display: grid; gap: 1.2rem; min-width: 0; }
.race-card {
  --ri: var(--ink);
  --ri2: var(--ink-2);
  position: relative;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border-radius: 26px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ri);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.race-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -28px rgba(6, 38, 45, 0.55);
}
.race-card.is-current {
  --ri: var(--on-dark);
  --ri2: var(--on-dark-2);
  border-color: transparent;
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(127, 214, 226, 0.22), transparent 70%),
    linear-gradient(160deg, var(--teal-900), var(--teal-950));
  box-shadow: 0 30px 50px -30px rgba(6, 38, 45, 0.7);
}
.race-years-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.race-years {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 2rem + 2.6vw, 4rem);
  line-height: 1;
  color: var(--ri);
  font-variant-numeric: tabular-nums;
}
.race-unit { font-size: var(--step-0); font-weight: 600; color: var(--ri2); }
.race-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; min-height: 2rem; }
.race-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--accent-on-light);
  font-size: 0.78rem;
  font-weight: 700;
}
.race-tag.is-warm { background: var(--warm-soft); color: var(--warm-ink); }
.race-card.is-current .race-tag { background: rgba(255, 255, 255, 0.14); color: var(--aqua); }
.race-card.is-current .race-tag.is-warm { background: var(--warm-soft); color: var(--warm-ink); }
.race-split-cap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  font-size: var(--step--1);
  color: var(--ri2);
}
.race-split {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--mist-2);
}
.race-prin { flex: var(--p, 50) 1 0; background: var(--teal-700); }
.race-int { flex: var(--i, 50) 1 0; background: var(--warm); }
.race-card.is-current .race-prin { background: var(--aqua); }
.race-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.8rem 1rem;
  margin: 0;
}
.race-stats dt { font-size: var(--step--1); color: var(--ri2); }
.race-stats dd {
  margin: 0.1rem 0 0;
  font-weight: 700;
  color: var(--ri);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.race-diff {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--rule);
  font-size: var(--step--1);
  color: var(--ri2);
}
.race-card.is-current .race-diff { border-top-color: rgba(230, 246, 249, 0.22); }
.race-diff.is-saving { color: #17705a; font-weight: 600; }
.race-card.is-current .race-diff.is-saving { color: var(--aqua); }

.race-insight {
  max-width: none;
  margin: 1.8rem 0 0;
  padding: 1.1rem 1.3rem;
  border-radius: 18px;
  background: var(--surface);
  border-inline-start: 4px solid var(--warm);
  color: var(--ink);
  font-weight: 500;
}

@media (min-width: 768px) {
  .race-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .race-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .emi-race-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
    gap: 3rem;
  }
  .race-grid { gap: 1.4rem; }
  .race-card.is-current { transform: translateY(-10px); }
  .race-card.is-current:hover { transform: translateY(-14px); }
}

/* ---------- 5. Prepayment band (dark) ---------- */
.emi-prepay {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: var(--space-l) 0;
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(127, 214, 226, 0.18), transparent 60%),
    linear-gradient(135deg, var(--teal-900), var(--teal-950));
}
.emi-prepay h2 { color: var(--on-dark); }
.emi-prepay-copy p { color: var(--on-dark-2); }
.emi-prepay-card {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border-radius: 26px;
  border: 1px solid rgba(166, 231, 239, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}
.emi-prepay-card .emi-field label { color: var(--on-dark); }
.emi-prepay-card .emi-input-wrap {
  background: rgba(4, 26, 31, 0.55);
  border-color: rgba(166, 231, 239, 0.3);
}
.emi-prepay-card .emi-input-wrap input,
.emi-prepay-card .emi-prefix { color: var(--on-dark); }
.emi-prepay-card .emi-error { color: #ffb4a8; }
.emi-prepay-card .emi-result-note { margin: 0; }
.prepay-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.prepay-stat {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(4, 26, 31, 0.5);
}
.prepay-num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.15;
  color: var(--aqua);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.prepay-cap { font-size: var(--step--1); color: var(--on-dark-2); }
.prepay-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.45rem;
  font-size: var(--step--1);
  color: var(--on-dark-2);
}
.prepay-label span:last-child {
  font-weight: 700;
  color: var(--on-dark);
  text-align: end;
}
.prepay-track {
  height: 16px;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.prepay-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transition: width 0.7s var(--ease);
}
.prepay-fill.is-orig { background: rgba(255, 255, 255, 0.35); }
.prepay-fill.is-new { background: linear-gradient(90deg, var(--aqua), var(--warm)); }

/* ---------- 6. Income gauge ---------- */
.emi-afford {
  background: var(--mist);
  padding: var(--space-l) 0;
}
.emi-afford-form {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.1rem);
  border: 1px solid var(--rule);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: 0 30px 60px -40px rgba(6, 38, 45, 0.4);
}
.afford-fields {
  display: grid;
  gap: 1.1rem 1.2rem;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.afford-fields .emi-input-wrap { width: 100%; }
.afford-output {
  display: grid;
  gap: 1.4rem;
  align-items: center;
  min-width: 0;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--rule);
}
.gauge {
  position: relative;
  justify-self: center;
  width: min(100%, 260px);
}
.gauge-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.gauge-track {
  fill: none;
  stroke: var(--mist-2);
  stroke-width: 13;
  stroke-linecap: round;
}
.gauge-fill {
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 0.9s var(--ease), stroke 0.3s;
}
.gauge.is-ok .gauge-fill { stroke: var(--ok); }
.gauge.is-warn .gauge-fill { stroke: var(--alert); }
.gauge.is-high .gauge-fill { stroke: var(--danger); }
.gauge-text {
  position: absolute;
  inset-inline: 20%;
  bottom: 0;
  text-wrap: balance;
  display: grid;
  justify-items: center;
  gap: 0.1rem;
  text-align: center;
}
.gauge-text strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gauge-text span { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.afford-result { min-width: 0; }
.afford-lead {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
}
.afford-lead-gap { margin-top: 0.9rem; }
.afford-note { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.afford-amount {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.05;
  color: var(--accent-on-light);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* ---------- 7. Formula ticket ---------- */
.emi-formula {
  background: var(--surface);
  padding: var(--space-l) 0;
}
.ticket {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 3.2vw, 2.3rem);
  border: 1px solid var(--rule);
  border-radius: 26px;
  background: var(--mist);
}
.ticket-kicker {
  margin: 0 0 0.6rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-on-light);
}
.ticket-formula {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ticket-formula var { font-style: italic; color: var(--accent-on-light); }
.ticket-formula sup { font-size: 0.62em; line-height: 0; }
.ticket-perf {
  position: relative;
  margin: 1.6rem calc(clamp(1.4rem, 3.2vw, 2.3rem) * -1) 1.4rem;
  border-top: 2px dashed var(--rule);
}
.ticket-perf::before,
.ticket-perf::after {
  content: "";
  position: absolute;
  top: -14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-sizing: border-box;
}
.ticket-perf::before { inset-inline-start: -14px; }
.ticket-perf::after { inset-inline-end: -14px; }
.ticket-example { display: grid; gap: 0.8rem; }
.ticket-example-title {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ticket-example dl { margin: 0; display: grid; gap: 0.5rem; }
.ticket-example dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px dotted var(--rule);
}
.ticket-example dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
  color: var(--accent-on-light);
}
.ticket-example dd {
  margin: 0;
  font-weight: 600;
  text-align: end;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.ticket-result { margin: 0.4rem 0 1.4rem; font-size: var(--step-0); color: var(--ink-2); }
.ticket-result strong {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-2);
  color: var(--ink);
}
.ticket-btn {
  width: 100%;
  min-height: 54px;
  padding-block: 0.9rem;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.formula-legend {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.formula-legend li {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.formula-legend strong { display: block; color: var(--ink); }
.formula-legend li > div span { font-size: var(--step--1); color: var(--ink-2); }
.sym {
  flex: 0 0 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--mist);
  color: var(--accent-on-light);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
}

/* ---------- 8. FAQ ---------- */
.emi-faq {
  background: var(--mist);
  padding: var(--space-l) 0;
}
.emi-faq-side { display: grid; gap: 0.5rem; align-content: start; }
.emi-faq-side .btn { justify-self: start; margin-top: 0.8rem; }
.emi-faq-list { display: grid; gap: 0.9rem; min-width: 0; }
.faq-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  transition: box-shadow 0.3s;
}
.faq-item[open] { box-shadow: 0 22px 40px -30px rgba(6, 38, 45, 0.5); }
.faq-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--accent-on-light);
  font-variant-numeric: tabular-nums;
}
.faq-q {
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.faq-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--accent-on-light);
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--teal-900);
  color: var(--on-dark);
}
.faq-a { padding: 0 1.3rem 1.3rem; }
.faq-a p { margin: 0; color: var(--ink-2); }

/* ---------- 9. Email my plan (gradient band) ---------- */
.emi-plan {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--on-dark);
  padding: var(--space-l) 0;
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 100%);
}
.emi-plan::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60vmin;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 184, 96, 0.32), transparent 68%);
  inset-inline-end: -18vmin;
  bottom: -24vmin;
  pointer-events: none;
}
.emi-plan h2 { color: var(--on-dark); }
.emi-plan-copy p { color: var(--on-dark-2); }
.plan-summary {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.6rem;
  padding: 1.2rem 1.3rem;
  border: 1px dashed rgba(166, 231, 239, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}
.plan-summary-label {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua);
}
.plan-summary-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--on-dark);
  overflow-wrap: anywhere;
}
.plan-summary-emi { margin: 0; color: var(--on-dark-2); }
.plan-summary-emi strong { color: var(--warm); }
.emi-plan-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.plan-form { display: grid; gap: 1.2rem; min-width: 0; }
.plan-form[hidden] { display: none; }
.emi-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}
.emi-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  accent-color: var(--teal-700);
}
.emi-check label { font-weight: 500; color: var(--ink); cursor: pointer; }
.emi-check.is-invalid label { color: var(--err); }
.plan-submit { width: 100%; min-height: 54px; }
.plan-success {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  text-align: start;
}
.plan-success[hidden] { display: none; }
.plan-success h3 { margin: 0; font-size: var(--step-2); color: var(--ink); }
.plan-success p { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.plan-check {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--accent-on-light);
  font-size: 2rem;
}
.btn-ghost-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost-dark:hover { border-color: var(--accent-on-light); }

/* ---------- Tablet and large layouts ---------- */
@media (min-width: 560px) {
  .emi-types { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .emi-type {
    flex-direction: column;
    min-height: 74px;
    font-size: 0.86rem;
  }
  .emi-type i { font-size: 1.25rem; }
  .afford-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emi-milestones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .emi-console { padding: 2.4rem; }
  .prepay-results { gap: 1rem; }
}

@media (min-width: 1024px) {
  .emi-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; }
  .emi-console-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 2.4rem; }
  .emi-journey-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; }
  .emi-prepay-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; }
  .emi-afford-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; }
  .afford-output { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 2rem; }
  .emi-formula-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
  .emi-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
  .emi-faq-side { position: sticky; top: calc(var(--header-h) + 2rem); }
  .emi-plan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}

@media (min-width: 1280px) {
  .emi-hero-grid { gap: 5rem; }
  .emi-console-grid { gap: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .emi-hero::before,
  .emi-bar { animation: none !important; }
  .emi-bar,
  .race-card,
  .prepay-fill,
  .gauge-fill,
  .dial-principal,
  .faq-icon { transition: none !important; }
}

/* ==========================================================================
   Contact page (v0.9.0)
   1 hero with floating tickets · 2 channel cards · 3 three-step enquiry
   4 advisor cards · 5 visit and hours · 6 callback band · 7 FAQ
   Breakpoints: mobile 320–767 (base), tablet 768–1023, large 1024+.
   ========================================================================== */

[hidden] { display: none !important; }

@keyframes ctFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt, 0deg)); }
  50% { transform: translate3d(0, -10px, 0) rotate(var(--tilt, 0deg)); }
}
@keyframes ctPulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 214, 226, 0.6); }
  100% { box-shadow: 0 0 0 14px rgba(127, 214, 226, 0); }
}
@keyframes ctRing {
  from { transform: translate(-50%, -50%) scale(0.6); opacity: 0.9; }
  to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}
@keyframes ctSlideIn {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes ctSlideBack {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}
@keyframes ctPin {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -8px); }
}
@keyframes ctShine {
  from { transform: translateX(-120%); }
  to { transform: translateX(160%); }
}

/* ---------- 1. Hero ---------- */
.ct-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-dark);
  padding: clamp(3.25rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  background:
    radial-gradient(800px 460px at 90% 0%, rgba(244, 184, 96, 0.16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(127, 214, 226, 0.18), transparent 60%),
    linear-gradient(165deg, var(--teal-900), var(--teal-950));
}
.ct-hero::before {
  /* faint drafting grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(166, 231, 239, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 231, 239, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.ct-hero-grid { display: grid; gap: 2.75rem; align-items: center; position: relative; }
.ct-hero-grid > * { min-width: 0; }
.ct-hero h1 { color: var(--on-dark); font-size: var(--step-4); }
.ct-hero h1 .accent { color: var(--aqua); font-style: italic; }
.ct-hero .lead { color: var(--on-dark-2); font-size: var(--step-1); max-width: 46ch; }

.ct-status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(166, 231, 239, 0.25);
  color: var(--on-dark);
  font-size: var(--step--1);
  font-weight: 600;
}
.ct-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aqua);
  animation: ctPulse 1.8s infinite;
  flex: 0 0 auto;
}
.ct-status.is-closed .ct-pulse { background: var(--warm); animation: none; }

.ct-hero-stack {
  position: relative;
  min-height: 330px;
  width: 100%;
  max-width: 440px;
  justify-self: center;
}
.ct-ticket {
  --tilt: 0deg;
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 360px);
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(166, 231, 239, 0.28);
  backdrop-filter: blur(10px);
  color: var(--on-dark);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.55);
  animation: ctFloat 6s ease-in-out infinite;
}
.ct-ticket strong { display: block; font-size: var(--step-0); }
.ct-ticket div span { display: block; font-size: var(--step--1); color: var(--on-dark-2); }
.ct-ticket em { font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--warm); letter-spacing: 0.04em; }
.ct-ticket-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--aqua);
  color: var(--teal-950);
}
.ct-ticket-a { top: 0; inset-inline-start: 0; --tilt: -3deg; animation-delay: 0s; }
.ct-ticket-b { top: 118px; inset-inline-end: 0; --tilt: 2.5deg; animation-delay: -2s; }
.ct-ticket-c { bottom: 0; inset-inline-start: 12%; --tilt: -1.5deg; animation-delay: -4s; }
.ct-ticket-b .ct-ticket-icon { background: var(--warm); }
.ct-ticket-c .ct-ticket-icon { background: #9ff0c9; }

/* ---------- Shared heads ---------- */
.ct-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); display: grid; gap: 0.6rem; }
.ct-head h2,
.ct-enquiry-side h2,
.ct-visit-copy h2,
.ct-callback h2,
.ct-faq-side h2 { font-size: var(--step-3); margin: 0; }
.ct-head-split { max-width: none; gap: 1rem; }
.ct-head .sub-lead { margin: 0; }

/* ---------- 2. Channels ---------- */
.ct-channels { background: var(--surface); padding: var(--space-l) 0; }
.ct-channel-grid { display: grid; gap: 1.2rem; min-width: 0; }
.ct-channel {
  --ring: var(--teal-700);
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 26px;
  border: 1px solid var(--rule);
  background: var(--mist);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ct-channel::after {
  /* light sweep across the card on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.ct-channel:hover { transform: translateY(-6px); box-shadow: 0 28px 44px -28px rgba(6, 38, 45, 0.5); }
.ct-channel:hover::after { animation: ctShine 0.9s var(--ease); }
.ct-channel h3 { margin: 0; font-size: var(--step-2); }
.ct-channel p { margin: 0; color: var(--ink-2); }
.ct-channel-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--teal-900);
  color: var(--on-dark);
  font-size: 1.3rem;
  transition: transform 0.5s var(--ease), background-color 0.3s;
}
.ct-channel:hover .ct-channel-icon { transform: rotate(-10deg) scale(1.08); background: var(--teal-700); }
.ct-channel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-top: 0.4rem; min-width: 0; }
.ct-link {
  font-weight: 700;
  color: var(--accent-on-light);
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.ct-link:hover { border-color: currentColor; }
.ct-note { font-size: var(--step--1); color: var(--ink-2); font-weight: 600; }
.ct-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 var(--step--1) / 1 var(--font-text);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.ct-copy:hover { border-color: var(--accent-on-light); }
.ct-copy.is-copied { background: var(--teal-900); color: var(--on-dark); border-color: var(--teal-900); }

/* ---------- 3. Enquiry wizard ---------- */
.ct-enquiry { background: var(--mist); padding: var(--space-l) 0; }
.ct-enquiry-grid { display: grid; gap: 2.5rem; min-width: 0; align-items: start; }
.ct-enquiry-grid > * { min-width: 0; }
.ct-enquiry-side { display: grid; gap: 1rem; align-content: start; }
.ct-steps-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.ct-steps-list li { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.ct-steps-list strong { display: block; color: var(--ink); }
.ct-steps-list small { color: var(--ink-2); font-size: var(--step--1); }
.ct-step-num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent-on-light);
}
.ct-assurance {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px dashed var(--rule);
}
.ct-assurance i { color: var(--accent-on-light); font-size: 1.2rem; margin-top: 0.15rem; }
.ct-assurance p { margin: 0; font-size: var(--step--1); color: var(--ink-2); }

.ct-wizard {
  position: relative;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2.4rem);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 34px 60px -40px rgba(6, 38, 45, 0.45);
  overflow: hidden;
}
.ct-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--mist-2);
  overflow: hidden;
}
.ct-progress-bar {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-700), var(--aqua-2), var(--warm));
  transition: width 0.6s var(--ease);
}
.ct-progress-label {
  margin: 0.8rem 0 1.4rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ct-form { min-width: 0; }
.ct-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 1.2rem; }
.ct-step legend {
  padding: 0;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--ink);
}
.ct-step.is-active { animation: ctSlideIn 0.5s var(--ease) both; }
.ct-step.is-back { animation: ctSlideBack 0.5s var(--ease) both; }

.ct-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.ct-choice { position: relative; display: block; min-width: 0; cursor: pointer; }
.ct-choice input,
.ct-time input,
.ct-when input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.ct-choice span,
.ct-time span,
.ct-when span {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1.5px solid var(--rule);
  background: var(--mist);
  color: var(--ink);
  font-weight: 700;
  transition: border-color 0.25s, background-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.ct-choice span i,
.ct-time span i { color: var(--accent-on-light); font-size: 1.2rem; }
.ct-choice:hover span,
.ct-time:hover span,
.ct-when:hover span { transform: translateY(-2px); }
.ct-choice input:focus-visible + span,
.ct-time input:focus-visible + span,
.ct-when input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.ct-choice input:checked + span,
.ct-time input:checked + span,
.ct-when input:checked + span {
  border-color: var(--teal-700);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.14), 0 14px 26px -18px rgba(6, 38, 45, 0.6);
}
.ct-choice input:checked + span i,
.ct-time input:checked + span i { color: var(--teal-700); transform: scale(1.12); transition: transform 0.3s var(--ease); }
.ct-choice.is-invalid span,
.ct-time.is-invalid span { border-color: var(--err); }

.ct-time-grid { display: grid; gap: 0.7rem; }
.ct-time span { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0.8rem; }
.ct-time small { grid-column: 2; font-weight: 500; color: var(--ink-2); font-size: var(--step--1); }

.ct-field { display: grid; gap: 0.5rem; min-width: 0; }
.ct-field > label,
.ct-field > .ct-label { font-weight: 600; color: var(--ink); }
.ct-optional { font-weight: 500; color: var(--ink-2); }
.ct-field input:not([type="radio"]):not([type="checkbox"]),
.ct-field textarea {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
  font: 500 var(--step-0) / 1.3 var(--font-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-field input:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16);
}
.ct-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--mist);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ct-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16); }
.ct-input input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  padding: 0.85rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 700 var(--step-0) / 1.3 var(--font-text);
  outline: none;
  direction: ltr;
}
.ct-field .ct-input input {
  padding: 0.85rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.ct-input input::placeholder { color: var(--ink-2); opacity: 0.7; font-weight: 500; }
.ct-prefix { color: var(--ink-2); font-weight: 700; }
.ct-field.is-invalid input:not([type="radio"]):not([type="checkbox"]),
.ct-field.is-invalid textarea,
.ct-field.is-invalid .ct-input { border-color: var(--err); }
.ct-field-foot { display: flex; justify-content: space-between; gap: 0.6rem; align-items: flex-start; }
.ct-count { font-size: var(--step--1); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-error {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.4;
  color: var(--err);
  overflow-wrap: anywhere;
}
.ct-error:empty { display: none; }
.ct-grid-2 { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }

.ct-advisor-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--mist-2);
  color: var(--ink);
  font-size: var(--step--1);
  animation: ctSlideIn 0.4s var(--ease) both;
}
.ct-advisor-pick i { color: var(--accent-on-light); }
.ct-linkbtn {
  border: 0;
  background: transparent;
  color: var(--accent-on-light);
  font: 700 var(--step--1) / 1 var(--font-text);
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem;
}

.ct-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.ct-check input { width: 20px; height: 20px; margin: 0.15rem 0 0; accent-color: var(--teal-700); }
.ct-check label { font-weight: 500; color: var(--ink); cursor: pointer; }
.ct-check + .ct-error { margin-top: -0.6rem; }

.ct-nav { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: flex-end; margin-top: 1.6rem; }
.ct-nav .btn { min-height: 52px; }
#enqBack { margin-inline-end: auto; }

.ct-success {
  display: grid;
  justify-items: start;
  gap: 1rem;
  text-align: start;
  animation: ctSlideIn 0.6s var(--ease) both;
}
.ct-success h3 { margin: 0; font-size: var(--step-3); color: var(--ink); }
.ct-success p { margin: 0; color: var(--ink-2); }
.ct-success-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-900);
  color: var(--aqua);
  font-size: 1.8rem;
  box-shadow: 0 0 0 10px rgba(127, 214, 226, 0.18);
  animation: ctPulse 2s infinite;
}

/* ---------- 4. Advisors ---------- */
.ct-advisors { background: var(--surface); padding: var(--space-l) 0; }
.ct-advisor-grid { display: grid; gap: 1.3rem; min-width: 0; }
.ct-advisor {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--rule);
  background: var(--mist);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ct-advisor:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(6, 38, 45, 0.55); }
.ct-advisor-photo { position: relative; aspect-ratio: 4 / 4.2; overflow: hidden; background: var(--teal-800); }
.ct-advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.ct-advisor:hover .ct-advisor-photo img { transform: scale(1.06); }
.ct-advisor-photo::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(6, 38, 45, 0.7), transparent);
  pointer-events: none;
}
.ct-avail {
  position: absolute;
  z-index: 1;
  top: 14px;
  inset-inline-start: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(6, 38, 45, 0.78);
  color: var(--on-dark);
  font-size: var(--step--1);
  font-weight: 600;
}
.ct-avail i { color: var(--warm); font-size: 0.6rem; }
.ct-avail.is-on i { color: #6ee7b7; }
.ct-advisor-body { display: grid; gap: 0.4rem; padding: 1.3rem 1.4rem 1.5rem; align-content: start; }
.ct-advisor-body h3 { margin: 0; font-size: var(--step-2); }
.ct-advisor-body p { margin: 0; color: var(--ink-2); }
.ct-role { font-weight: 700; color: var(--accent-on-light) !important; }
.ct-advisor-btn { justify-self: start; margin-top: 0.6rem; }

/* ---------- 5. Visit and hours ---------- */
.ct-visit { background: var(--mist); padding: var(--space-l) 0; }
.ct-visit-grid { display: grid; gap: 2.5rem; align-items: center; min-width: 0; }
.ct-visit-grid > * { min-width: 0; }
.ct-visit-copy { display: grid; gap: 0.9rem; }
.ct-address {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-style: normal;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
}
.ct-address i { color: var(--warm); font-size: 1.3rem; margin-top: 0.2rem; }
.ct-visit-note { margin: 0; font-size: var(--step--1); color: var(--ink-2); font-style: italic; }
.ct-hours { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.ct-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  transition: background-color 0.3s, transform 0.3s var(--ease);
}
.ct-hours li span:last-child { font-weight: 700; text-align: end; }
.ct-hours li.is-today {
  background: var(--teal-900);
  color: var(--on-dark);
  transform: translateX(6px);
}
[dir="rtl"] .ct-hours li.is-today { transform: translateX(-6px); }

.ct-map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, #d9efe9 0%, #c9e6ea 100%);
  box-shadow: 0 30px 50px -36px rgba(6, 38, 45, 0.5);
}
.ct-road { position: absolute; background: rgba(255, 255, 255, 0.85); border-radius: 999px; }
.ct-road-h1 { left: -10%; right: -10%; top: 28%; height: 18px; transform: rotate(-6deg); }
.ct-road-h2 { left: -10%; right: -10%; top: 66%; height: 12px; transform: rotate(4deg); }
.ct-road-v1 { top: -10%; bottom: -10%; left: 30%; width: 14px; transform: rotate(10deg); }
.ct-road-v2 { top: -10%; bottom: -10%; left: 74%; width: 10px; transform: rotate(-8deg); }
.ct-block { position: absolute; border-radius: 16px; background: rgba(15, 85, 99, 0.14); }
.ct-block-a { left: 6%; top: 8%; width: 20%; height: 16%; }
.ct-block-b { left: 40%; top: 38%; width: 26%; height: 18%; }
.ct-block-c { left: 80%; top: 76%; width: 16%; height: 14%; }
.ct-pin {
  position: absolute;
  left: 48%;
  top: 30%;
  transform: translate(-50%, 0);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, 0) rotate(-45deg);
  background: var(--teal-900);
  color: var(--aqua);
  box-shadow: 0 14px 24px -10px rgba(6, 38, 45, 0.7);
  animation: ctPin 2.6s ease-in-out infinite;
}
.ct-pin i { transform: rotate(45deg); font-size: 1.3rem; }
.ct-map-label {
  position: absolute;
  left: 48%;
  top: calc(30% + 70px);
  transform: translateX(-50%);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 10px 20px -14px rgba(6, 38, 45, 0.6);
}
.ct-map-caption {
  position: absolute;
  inset-inline-start: 14px;
  bottom: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-900);
  opacity: 0.75;
}

/* ---------- 6. Callback band ---------- */
.ct-callback {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--on-dark);
  padding: var(--space-l) 0;
  background: linear-gradient(135deg, var(--teal-950) 0%, var(--teal-800) 100%);
}
.ct-callback-grid { display: grid; gap: 2.5rem; align-items: center; min-width: 0; }
.ct-callback-grid > * { min-width: 0; }
.ct-callback h2 { color: var(--on-dark); }
.ct-callback-copy p:not(.eyebrow) { color: var(--on-dark-2); max-width: 40ch; }
.ct-ring-wrap { position: relative; width: 120px; height: 120px; margin-bottom: 2.6rem; }
.ct-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--aqua);
  transform: translate(-50%, -50%) scale(0.6);
  animation: ctRing 3s var(--ease) infinite;
}
.ct-ring-2 { animation-delay: 1.5s; }
.ct-ring-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal-950);
  font-size: 1.6rem;
}
.ct-callback-card {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.ct-cb-form { display: grid; gap: 1.3rem; }
.ct-cb-when { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; min-width: 0; }
.ct-cb-when legend { font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 0.5rem; }
.ct-when-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.ct-when span { justify-items: center; text-align: center; padding: 0.7rem 0.4rem; font-size: var(--step--1); }
.ct-cb-submit { width: 100%; min-height: 54px; background: var(--teal-900); color: var(--on-dark); }
.ct-cb-submit:hover { background: var(--teal-700); }
.ct-cb-success {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  animation: ctSlideIn 0.5s var(--ease) both;
}
.ct-cb-success i { font-size: 2.6rem; color: var(--accent-on-light); }
.ct-cb-success p { margin: 0; font-weight: 600; }

/* ---------- 7. FAQ ---------- */
.ct-faq { background: var(--surface); padding: var(--space-l) 0; }
.ct-faq-grid { display: grid; gap: 2.5rem; min-width: 0; align-items: start; }
.ct-faq-grid > * { min-width: 0; }
.ct-faq-side { display: grid; gap: 0.8rem; align-content: start; }
.ct-faq-side p:not(.eyebrow) { color: var(--ink-2); }
.ct-faq-list { display: grid; gap: 0.9rem; min-width: 0; }

/* ---------- Tablet and large layouts ---------- */
@media (min-width: 560px) {
  .ct-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .ct-channel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-advisor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-head-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
  .ct-ticket-b { top: 124px; }
  .ct-hero-stack { min-height: 360px; }
}
@media (min-width: 1024px) {
  .ct-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 3.5rem; }
  .ct-enquiry-grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3.5rem; }
  .ct-enquiry-side { position: sticky; top: calc(var(--header-h) + 2rem); }
  .ct-visit-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
  .ct-callback-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; }
  .ct-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .ct-faq-side { position: sticky; top: calc(var(--header-h) + 2rem); }
  .ct-channel:hover, .ct-advisor:hover { transform: translateY(-8px); }
  .ct-hero-stack { min-height: 380px; }
}
@media (min-width: 1280px) {
  .ct-hero-grid { gap: 5rem; }
  .ct-enquiry-grid { gap: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-ticket,
  .ct-pin,
  .ct-pulse,
  .ct-ring,
  .ct-success-badge,
  .ct-step.is-active,
  .ct-step.is-back,
  .ct-success,
  .ct-cb-success,
  .ct-advisor-pick { animation: none !important; }
  .ct-channel::after { display: none; }
  .ct-channel,
  .ct-advisor,
  .ct-choice span,
  .ct-time span,
  .ct-when span,
  .ct-progress-bar,
  .ct-copy { transition: none !important; }
}

/* ==========================================================================
   Shared footer (v0.10.0): five equal columns on large screens.
   Brand · Explore · Loans · Contact · Loan tips. Columns stretch to the same
   height in each row.
   ========================================================================== */
.site-footer {
  background: var(--teal-950);
  color: var(--on-dark-2);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.ft-grid {
  display: grid;
  gap: 2.2rem 1.2rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.ft-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  height: 100%;
}
.ft-brand .brand { color: var(--on-dark); }
.ft-about { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); }
.ft-heading {
  margin: 0 0 0.2rem;
  font: 700 0.8rem / 1 var(--font-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
}
.ft-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ft-links a {
  color: var(--on-dark);
  text-decoration: none;
  font-size: var(--step-0);
  transition: color 0.2s, padding-inline-start 0.25s var(--ease);
}
.ft-links a:hover { color: var(--warm); padding-inline-start: 6px; }
.ft-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.ft-contact li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: var(--step--1); }
.ft-contact i { color: var(--warm); margin-top: 0.3rem; width: 16px; text-align: center; flex: 0 0 auto; }
.ft-contact a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; }
.ft-contact a:hover { color: var(--aqua); }
.ft-note { margin: auto 0 0; font-size: var(--step--1); font-style: italic; color: var(--on-dark-2); }
.ft-social {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ft-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(166, 231, 239, 0.3);
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.ft-social a:hover { background: var(--warm); color: var(--teal-950); transform: translateY(-3px); }

.ft-news .ft-about { margin-bottom: 0.4rem; }
.ft-form { margin-top: auto; display: grid; gap: 0.5rem; }
.ft-input {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0 0.2rem 0;
  border-bottom: 1.5px solid rgba(166, 231, 239, 0.35);
  transition: border-color 0.2s;
}
.ft-input:focus-within { border-color: var(--warm); }
.ft-form.is-invalid .ft-input { border-color: #ff9a8a; }
.ft-input input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  font: 500 var(--step--1) / 1.2 var(--font-text);
  outline: none;
}
.ft-input input::placeholder { color: var(--on-dark-2); opacity: 0.7; }
.ft-input button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--warm);
  color: var(--teal-950);
  cursor: pointer;
  transition: transform 0.25s var(--ease);
}
.ft-input button:hover { transform: rotate(-12deg) scale(1.06); }
.ft-error { margin: 0; font-size: var(--step--1); font-weight: 600; color: #ffb4a8; overflow-wrap: anywhere; }
.ft-error:empty { display: none; }
.ft-ok { margin: 0; font-size: var(--step--1); font-weight: 600; color: var(--aqua); }
.ft-ok:empty { display: none; }
.ft-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ft-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-top: 2.4rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid rgba(166, 231, 239, 0.14);
  font-size: var(--step--1);
  color: var(--on-dark-2);
}
.ft-base p { margin: 0; max-width: none; }
.ft-base .legal { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ft-base .legal a { color: inherit; text-decoration: none; }
.ft-base .legal a:hover { color: var(--aqua); }

@media (min-width: 768px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand, .ft-news { grid-column: span 2; }
}
@media (min-width: 1024px) {
  .ft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.1rem; }
  .ft-brand, .ft-news { grid-column: auto; }
}

/* ==========================================================================
   16. Home pages: new sections (v10.2). Rules and type instead of boxes.
   ========================================================================== */

/* ---------- Index: promise statement (words light up on scroll) ---------- */
.ln-statement {
  background: var(--teal-950);
  color: var(--on-dark);
  padding-block: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.ln-statement-text {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.ln-statement-text em { font-style: italic; color: var(--aqua); }
.ln-w { opacity: 0.16; transition: opacity 0.4s var(--ease); }
.ln-w.is-lit { opacity: 1; }

/* ---------- Index: weekly rate chart ---------- */
.ln-rates { display: grid; gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.ln-rates > * { min-width: 0; }
@media (min-width: 900px) {
  .ln-rates { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
.ln-big {
  margin: 0.6rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ln-chart { margin: 0; }
.ln-chart svg { display: block; width: 100%; height: auto; overflow: visible; direction: ltr; }
.ln-area { fill: var(--aqua); opacity: 0; transition: opacity 1.4s ease 1.2s; }
.ln-line {
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s var(--ease);
}
.ln-chart.is-in .ln-line { stroke-dashoffset: 0; }
.ln-chart.is-in .ln-area { opacity: 0.35; }
.ln-days {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-2);
  direction: ltr;
}

/* ---------- Index: myth and fact flip cards ---------- */
.ln-flips { display: grid; gap: 1.2rem; }
@media (min-width: 768px) {
  .ln-flips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
}
.ln-flip {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  perspective: 1200px;
}
.ln-flip:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.ln-flip-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.ln-flip[aria-pressed="true"] .ln-flip-inner { transform: rotateX(180deg); }
.ln-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding-block-start: 1.8rem;
  border-block-start: 2px solid var(--teal-700);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ln-back { transform: rotateX(180deg); border-block-start-color: var(--warm); }
.ln-face small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ln-back small { color: var(--accent-on-light); }
.ln-face strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  line-height: 1.2;
  color: var(--ink);
}
.ln-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.ln-hint::after { content: "\2192"; }

/* ---------- Index: FAQ with rules and turning plus ---------- */
.ln-faq-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.ln-faq-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .ln-faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
}
.ln-faq { border-block-start: 1px solid var(--rule); }
.ln-faq details { border-block-end: 1px solid var(--rule); }
.ln-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.3rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
}
.ln-faq summary::-webkit-details-marker { display: none; }
.ln-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.ln-faq summary i {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule);
  font-size: 0.85rem;
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.ln-faq details[open] summary i {
  transform: rotate(135deg);
  background: var(--teal-900);
  border-color: transparent;
  color: var(--on-dark);
}
.ln-faq details p {
  margin: 0 0 1.4rem;
  max-width: 60ch;
  color: var(--ink-2);
  animation: ln-fade 0.5s var(--ease);
}
@keyframes ln-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home 2: loan finder ---------- */
.lf { padding-block: var(--space-l); }
.lf-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.lf-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .lf-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; }
}
.lf-label {
  margin: 0 0 0.9rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lf-group { padding-block: 1.6rem; border-block-end: 1px solid var(--rule); }
.lf-group:first-child { padding-block-start: 0; }
.lf-options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lf-opt {
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: 600 var(--step--1) / 1 var(--font-text);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.lf-opt:hover { transform: translateY(-2px); border-color: var(--teal-700); }
.lf-opt[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: var(--on-dark); }
.lf-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.lf-result { padding-block-start: 1.8rem; }
.lf-result-label { margin: 0; font-size: var(--step--1); color: var(--ink-2); }
.lf-result-value {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.lf-result-value small {
  margin-inline-start: 0.4rem;
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink-2);
}
.lf-emi { display: inline-block; }
.lf-emi.is-bump { animation: lf-bump 0.5s var(--ease); }
@keyframes lf-bump {
  0% { transform: translateY(10px); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}
.lf-result-note { margin: 0 0 1.4rem; color: var(--ink-2); }

/* ---------- Home 2: advisor spotlight ---------- */
.as-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.as-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .as-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
}
.as-names { display: grid; gap: 0.2rem; align-content: start; }
.as-names h2 { margin-bottom: 1.2rem; }
.as-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  border: 0;
  border-block-end: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: padding-inline-start 0.4s var(--ease);
}
.as-tab::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: -1px;
  height: 2px;
  width: 0;
  background: var(--warm);
  transition: width 0.5s var(--ease);
}
.as-tab[aria-selected="true"] { padding-inline-start: 0.6rem; }
.as-tab[aria-selected="true"]::before { width: 100%; }
.as-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.as-initials {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--mist-2);
  color: var(--teal-900);
  transition: background-color 0.3s, color 0.3s;
}
.as-tab[aria-selected="true"] .as-initials { background: var(--teal-900); color: var(--on-dark); }
.as-tab strong { display: block; font-size: var(--step-0); }
.as-tab small { color: var(--ink-2); font-size: var(--step--1); }
.as-mark {
  display: block;
  height: 0.5em;
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  line-height: 0.6;
  color: var(--warm);
}
.as-quote-text {
  margin: 0 0 1.6rem;
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.25;
  color: var(--ink);
}
.as-by { margin: 0 0 1.6rem; color: var(--ink-2); }
.as-by strong { display: block; color: var(--ink); }
.as-stage.is-swap > * { animation: as-in 0.6s var(--ease) both; }
@keyframes as-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Home 2: before you sign (checklist with progress ring) ---------- */
.bs-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.bs-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .bs-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
}
.bs-ring { display: flex; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.bs-ring svg { flex: 0 0 auto; width: 120px; height: 120px; transform: rotate(-90deg); }
.bs-track { fill: none; stroke: var(--mist-2); stroke-width: 9; }
.bs-fill {
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.8s var(--ease);
}
.bs-ring p { margin: 0; color: var(--ink-2); font-size: var(--step-0); }
.bs-ring strong { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); }
.bs-list { list-style: none; margin: 0; padding: 0; }
.bs-list li { border-block-end: 1px solid var(--rule); }
.bs-list li:first-child { border-block-start: 1px solid var(--rule); }
.bs-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  width: 100%;
  padding: 1.3rem 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.bs-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bs-tick {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-top: 0.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--rule);
  color: transparent;
  font-size: 0.8rem;
  transition: background-color 0.35s, border-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.bs-item[aria-checked="true"] .bs-tick {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: var(--on-dark);
  transform: scale(1.08);
}
.bs-item strong {
  display: block;
  font-size: var(--step-0);
  font-weight: 600;
  transition: opacity 0.3s;
}
.bs-item small { display: block; margin-top: 0.2rem; color: var(--ink-2); font-size: var(--step--1); }
.bs-item[aria-checked="true"] strong {
  text-decoration: line-through;
  text-decoration-color: var(--warm);
  opacity: 0.6;
}

/* ---------- Home 2: approvals ticker (runs the other way) ---------- */
.ap {
  overflow: hidden;
  padding-block: 1.6rem;
  border-block: 1px solid var(--rule);
}
.ap-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: ap-scroll 38s linear infinite;
}
.ap:hover .ap-track { animation-play-state: paused; }
@keyframes ap-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.ap-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
}
.ap-item i { color: var(--accent-on-light); font-size: 0.9em; }
.ap-item span { font-family: var(--font-text); font-size: var(--step--1); color: var(--ink-2); }

/* ---------- Home 2: pinned horizontal stats ---------- */
.hz-pin { position: relative; height: 320vh; }
.hz-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding-block-start: var(--header-h);
  overflow: hidden;
}
.hz-sticky > .eyebrow { margin-inline: clamp(16px, 5vw, 80px); }
.hz-track {
  display: flex;
  width: max-content;
  gap: clamp(2rem, 6vw, 6rem);
  padding-inline: clamp(16px, 5vw, 80px);
  will-change: transform;
}
.hz-item {
  flex: 0 0 auto;
  width: min(70vw, 460px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-block-start: 1.6rem;
  border-block-start: 2px solid var(--ink);
}
.hz-item strong {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hz-item span { color: var(--ink-2); font-size: var(--step-0); }

@media (prefers-reduced-motion: reduce) {
  .ap-track { animation: none; }
  .ln-line, .ln-area, .ln-bar span, .bs-fill, .as-stage.is-swap > * { transition: none; }
  .hz-pin { height: auto; }
  .hz-sticky { position: static; height: auto; padding-block: 3rem; overflow: visible; }
  .hz-track { transform: none !important; max-width: 100%; overflow-x: auto; }
}

/* ---------- Index: rate scale (redesigned lender comparison) ---------- */
.ln-scale-head { display: grid; gap: 1.5rem; align-items: center; }
.ln-scale-head > * { min-width: 0; }
.ln-calc {
  margin: 0;
  width: clamp(120px, 15vw, 180px);
  justify-self: end;
  animation: ln-float 5.5s ease-in-out infinite;
}
.ln-calc img { display: block; width: 100%; height: auto; }
.ln-calc-sm { width: 110px; margin-top: 1.6rem; animation-duration: 4.2s; }
@keyframes ln-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@media (min-width: 900px) {
  .ln-scale-head { grid-template-columns: minmax(0, 1fr) auto; }
}

.ln-scale {
  position: relative;
  direction: ltr;
  margin-top: 3rem;
  padding-inline-start: 1.6rem;
  border-inline-start: 2px solid var(--rule);
  display: grid;
  gap: 1.6rem;
}
.ln-scale-line,
.ln-tick { display: none; }
.ln-pin { position: relative; opacity: 0; transform: translateY(-12px); transition: opacity 0.6s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s); text-align: start; }
.ln-scale.is-in .ln-pin { opacity: 1; transform: none; }
.ln-pin-rate {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ln-stem,
.ln-dot { display: none; }
.ln-dot {
  position: absolute;
  inset-inline-start: calc(-1.6rem - 6px);
  top: 0.9rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(244, 184, 96, 0.25);
}
.ln-info { display: grid; gap: 0.2rem; margin-top: 0.3rem; }
.ln-info strong { font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); line-height: 1.25; }
.ln-info small { color: var(--ink-2); font-size: var(--step--1); }
.ln-best {
  justify-self: start;
  margin-block: 0.2rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--warm);
  color: var(--warm-ink, var(--teal-950));
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ln-pin:not(:first-of-type) .ln-best { display: none; }
.ln-pin-emi { font-size: var(--step--1); line-height: 1.4; color: var(--ink); font-variant-numeric: tabular-nums; }
.ln-note { margin: 2rem 0 0; font-size: var(--step--1); color: var(--ink-2); font-style: italic; }

@media (min-width: 900px) {
  .ln-scale {
    display: block;
    height: 350px;
    margin-top: 4rem;
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .ln-scale-line {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: 120px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--aqua-2), var(--teal-700));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.4s var(--ease);
  }
  .ln-scale.is-in .ln-scale-line { transform: scaleX(1); }
  .ln-tick {
    display: block;
    position: absolute;
    top: 326px;
    inset-inline-start: var(--x);
    transform: translateX(-50%);
    font-size: 0.78rem;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
  }
  .ln-scale.is-in .ln-tick { opacity: 1; }
  .ln-pin {
    position: absolute;
    top: 0;
    inset-inline-start: var(--x);
    width: 180px;
    transform: translate(-50%, -18px);
    text-align: center;
    justify-items: center;
  }
  .ln-scale.is-in .ln-pin { transform: translateX(-50%); }
  .ln-pin-rate { height: 46px; line-height: 46px; }
  .ln-stem {
    display: block;
    position: absolute;
    inset-inline-start: 50%;
    top: 52px;
    width: 1px;
    height: 62px;
    background: var(--rule);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s var(--ease) calc(var(--d, 0s) + 0.2s);
  }
  .ln-scale.is-in .ln-stem { transform: scaleY(1); }
  .ln-dot {
    display: block;
    inset-inline-start: 50%;
    top: 113px;
    transform: translateX(-50%) scale(0);
    transition: transform 0.5s var(--ease) calc(var(--d, 0s) + 0.6s);
  }
  .ln-scale.is-in .ln-dot { transform: translateX(-50%) scale(1); }
  .ln-info {
    position: absolute;
    top: 146px;
    inset-inline: 12px;
    justify-items: center;
  }
  .ln-tick:nth-of-type(2) { transform: none; }
  .ln-tick:nth-of-type(6) { transform: translateX(-100%); }
  .ln-info strong { font-size: var(--step--1); }
  .ln-pin-emi { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ln-calc, .ln-calc-sm { animation: none; }
  .ln-pin, .ln-stem, .ln-dot, .ln-tick, .ln-scale-line { transition: none; }
}

/* ==========================================================================
   HERO v2 — About and Services heroes (.hv2)
   A spotlight follows the pointer across the dot grid, the headline words
   rise in one by one, the photo sits in an arch that tilts toward the cursor,
   and a live card on the photo responds to the visitor.
   Everything is live HTML. No text is baked into images.
   ========================================================================== */

.hv2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: clip;
  color: var(--on-dark);
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(127, 214, 226, 0.22), transparent 60%),
    linear-gradient(125deg, var(--teal-950) 0%, var(--teal-900) 58%, var(--teal-800) 100%);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4.5rem, 8vw, 6rem);
  --mx: 72%;
  --my: 28%;
}

/* Dot grid, visible only inside the spotlight that follows the pointer */
.hv2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(166, 231, 239, 0.32) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, transparent 46%);
          mask-image: radial-gradient(circle at var(--mx) var(--my), #000 0, transparent 46%);
  pointer-events: none;
}

/* Soft light that trails the pointer */
.hv2::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(166, 231, 239, 0.16), transparent 70%);
  pointer-events: none;
}

.hv2-grid {
  display: grid;
  gap: clamp(2.75rem, 5vw, 4.5rem);
  align-items: center;
}

.hv2-grid > * {
  min-width: 0;
  width: 100%;
}

/* Pulsing kicker pill */
.hv2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.6rem;
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  border: 1px solid rgba(166, 231, 239, 0.35);
  border-radius: 999px;
  background: rgba(6, 38, 45, 0.45);
  color: var(--aqua);
  font-size: var(--step--1);
  font-weight: 500;
}

.hv2-kicker .pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
}

.hv2-kicker .pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--aqua);
  opacity: 0;
  animation: hv2-ping 2.2s var(--ease) infinite;
}

/* Headline: each word rises in, staggered by --i */
.hv2 h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(3.1rem, 6.6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  color: var(--on-dark);
}

.hv2-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.6em, 0);
  animation: hv2-rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 85ms + 140ms);
}

.hv2-accent {
  display: inline-block;
  white-space: nowrap;
  color: var(--aqua);
  font-style: italic;
  font-weight: 400;
  position: relative;
}

.hv2-accent::after {
  content: "";
  position: absolute;
  inset-inline: -0.05em;
  bottom: 0.05em;
  height: 0.16em;
  z-index: -1;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(166, 231, 239, 0.0), rgba(166, 231, 239, 0.35));
  transform-origin: left center;
  animation: hv2-swipe 1.1s var(--ease) 0.9s both;
}

.hv2-lead {
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: var(--step-0);
  color: var(--on-dark-2);
}

.hv2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

/* Photo frame: arch shape, tilts toward the pointer on fine-pointer devices */
.hv2-frame {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 4.6;
  max-width: 560px;
  margin-inline: auto;
  border-radius: 260px 260px 30px 30px;
  transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.6);
}

/* Outline ring offset behind the arch */
.hv2-frame::before {
  content: "";
  position: absolute;
  inset: -14px -14px -14px -14px;
  border: 1px solid rgba(166, 231, 239, 0.35);
  border-radius: 274px 274px 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hv2-frame .media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}

.hv2-frame .media img {
  object-fit: cover;
}

/* Live glass card on the photo */
.hv2-card {
  position: absolute;
  z-index: 2;
  inset-inline: 1rem;
  bottom: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 18px;
  background: rgba(6, 38, 45, 0.78);
  border: 1px solid rgba(166, 231, 239, 0.25);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  color: var(--on-dark);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}

.hv2-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.hv2-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.2;
}

.hv2-card-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}

/* Switch: a real button with role="switch" */
.hv2-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.3rem 0.45rem 0.3rem 0.7rem;
  border: 1px solid rgba(166, 231, 239, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 500 0.8rem / 1 var(--font-text);
  cursor: pointer;
}

.hv2-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: rgba(166, 231, 239, 0.22);
  transition: background-color 0.3s;
}

.hv2-track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--on-dark);
  transition: transform 0.35s var(--ease);
}

.hv2-switch[aria-checked="true"] .hv2-track {
  background: var(--aqua);
}

.hv2-switch[aria-checked="true"] .hv2-track::after {
  background: var(--teal-950);
  transform: translateX(18px);
}

[dir="rtl"] .hv2-switch[aria-checked="true"] .hv2-track::after {
  transform: translateX(-18px);
}

/* Charges: collapsed with a grid-rows trick, opened by the switch */
.hv2-charges {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.hv2-charges.is-open {
  grid-template-rows: 1fr;
}

.hv2-charges-inner {
  min-height: 0;
  overflow: hidden;
}

.hv2-charges ul {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hv2-charges li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(166, 231, 239, 0.22);
  font-size: 0.86rem;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hv2-charges.is-open li {
  opacity: 1;
  transform: none;
}

.hv2-charges.is-open li:nth-child(1) { transition-delay: 0.10s; }
.hv2-charges.is-open li:nth-child(2) { transition-delay: 0.18s; }
.hv2-charges.is-open li:nth-child(3) { transition-delay: 0.26s; }

.hv2-charges li span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--aqua);
  font-weight: 600;
}

.hv2-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.86rem;
}

.hv2-total strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--aqua);
  font-variant-numeric: tabular-nums;
}

/* Keyframes */
@keyframes hv2-rise {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hv2-swipe {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hv2-ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

/* Responsive */
@media (min-width: 900px) {
  .hv2-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .hv2-frame {
    margin-inline: 0 0;
    margin-inline-start: auto;
  }
}

@media (max-width: 899px) {
  .hv2-frame {
    aspect-ratio: 4 / 4.2;
    border-radius: 180px 180px 26px 26px;
  }

  .hv2-frame::before {
    border-radius: 192px 192px 36px 36px;
  }
}

@media (max-width: 480px) {
  .hv2-card {
    inset-inline: 0.6rem;
    bottom: 0.6rem;
    padding: 0.9rem 0.95rem 1rem;
  }

  .hv2-card-head {
    flex-wrap: wrap;
  }

}

/* Reduced motion: show the final state immediately, no movement */
@media (prefers-reduced-motion: reduce) {
  .hv2-word,
  .hv2-accent::after {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hv2-kicker .pulse::after {
    animation: none;
    opacity: 0;
  }

  .hv2-frame {
    transform: none;
  }
}

/* Touch devices: no pointer spotlight */
@media (hover: none) {
  .hv2::before,
  .hv2::after {
    display: none;
  }
}

.hv2-stage {
  min-width: 0;
  width: 100%;
}

/* ==========================================================================
   SERVICES HERO (.svx-) — viewfinder
   A full-bleed photo that changes with a circular reveal opening from the
   button you press. A viewfinder frame and HUD readout sit over the photo,
   and a rail of four stages runs along the bottom. Decorative photos carry
   alt="" because the stage text already describes each one.
   ========================================================================== */

.svx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow-x: clip;
  /* Fill the visible area under the fixed header, so the whole rail is on screen */
  min-height: clamp(560px, calc(100svh - var(--header-h)), 900px);
  display: flex;
  flex-direction: column;
  color: var(--on-dark);
  background: var(--teal-950);
  padding-top: clamp(6.25rem, 11vh, 7.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* Photo stack: layers stacked on top of each other */
.svx-stack {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.svx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.svx-layer.is-on {
  opacity: 1;
}

/* Darkening so the copy stays readable on every photo */
.svx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 26, 31, 0.92) 0%, rgba(4, 26, 31, 0.55) 45%, rgba(4, 26, 31, 0.25) 100%),
    linear-gradient(0deg, rgba(4, 26, 31, 0.9) 0%, rgba(4, 26, 31, 0) 55%);
  pointer-events: none;
}

.svx-inner {
  width: 100%; /* a container in a flex parent must not shrink to fit */
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-content: space-between;
  flex: 1 1 auto;
}

.svx-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.svx-top > *,
.svx-inner > * {
  min-width: 0;
  width: 100%;
}

/* Copy */
.svx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.95rem 0.45rem 0.6rem;
  border: 1px solid rgba(166, 231, 239, 0.4);
  border-radius: 999px;
  background: rgba(4, 26, 31, 0.5);
  color: var(--aqua);
  font-size: var(--step--1);
  font-weight: 500;
}

.svx-kicker .svx-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(166, 231, 239, 0.18);
}

.svx-title {
  margin: 0 0 1rem;
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}

.svx-title .svx-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}

.svx-title .svx-line > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  animation: svx-rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 120ms);
}

.svx-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--aqua);
}

.svx-lead {
  max-width: 44ch;
  margin: 0;
  font-size: var(--step-0);
  color: var(--on-dark-2);
}

/* Viewfinder: corner brackets, a centre cross and a HUD readout */
.svx-finder {
  position: relative;
  justify-self: stretch;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  max-height: 360px;
  width: 100%;
  border-radius: 6px;
}

.svx-finder::before,
.svx-finder::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* Centre cross */
.svx-finder::before {
  inset: 50% auto auto 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  background:
    linear-gradient(var(--aqua), var(--aqua)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) center / 100% 1.5px no-repeat;
  opacity: 0.85;
  animation: svx-breathe 3.2s ease-in-out infinite;
}

/* Corner brackets */
.svx-finder::after {
  inset: 0;
  border: 0;
  background:
    linear-gradient(var(--aqua), var(--aqua)) top left / 34px 2px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) top left / 2px 34px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) top right / 34px 2px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) top right / 2px 34px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) bottom left / 34px 2px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) bottom left / 2px 34px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) bottom right / 34px 2px no-repeat,
    linear-gradient(var(--aqua), var(--aqua)) bottom right / 2px 34px no-repeat;
}

.svx-hud {
  position: absolute;
  inset: 1.4rem 1.4rem auto auto;
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.svx-hud-count {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--aqua);
}

.svx-hud-bar {
  display: block;
  width: 120px;
  height: 3px;
  border-radius: 3px;
  background: rgba(166, 231, 239, 0.25);
  overflow: hidden;
}

.svx-hud-bar > span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--aqua);
  transition: width 0.6s var(--ease);
}

.svx-readout {
  position: absolute;
  inset: auto auto 1.4rem 1.4rem;
  right: 1.4rem;
  padding: 1.1rem 1.25rem 1.2rem;
  border-radius: 14px;
  background: rgba(4, 26, 31, 0.72);
  border: 1px solid rgba(166, 231, 239, 0.25);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.svx-readout.is-swapping {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.svx-readout-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--on-dark);
}

.svx-readout-text {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: var(--on-dark-2);
  max-width: none;
}

.svx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svx-tags li {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(166, 231, 239, 0.14);
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 600;
}

/* Stage rail: four buttons along the bottom */
.svx-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svx-stage {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 60px;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(166, 231, 239, 0.25);
  background: rgba(4, 26, 31, 0.5);
  color: var(--on-dark);
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease);
}

.svx-stage:hover {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(166, 231, 239, 0.6);
}

.svx-stage-num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--aqua);
  font-variant-numeric: tabular-nums;
}

.svx-stage-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(166, 231, 239, 0.14);
  color: var(--aqua);
  font-size: 0.92rem;
  transition: background-color 0.3s, color 0.3s;
}

.svx-stage-name {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.svx-stage[aria-pressed="true"] {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--teal-950);
}

.svx-stage[aria-pressed="true"] .svx-stage-num,
.svx-stage[aria-pressed="true"] .svx-stage-icon {
  color: var(--teal-950);
}

.svx-stage[aria-pressed="true"] .svx-stage-icon {
  background: rgba(4, 26, 31, 0.14);
}

/* Photo framing per stage: the fourth stage shows a tighter crop */
.svx-layer--tight {
  transform: scale(1.35);
  transform-origin: 62% 70%;
}

/* Keyframes */
@keyframes svx-rise {
  to { transform: translate3d(0, 0, 0); }
}

@keyframes svx-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

/* Responsive */
@media (min-width: 900px) {
  .svx-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: end;
  }

  .svx-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .svx-stage {
    min-height: 68px;
  }
}

@media (max-width: 899px) {
  /* On phones the viewfinder grows to hold its readout, so the counter stays visible */
  .svx-finder {
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4.2rem 0.9rem 0.9rem;
  }

  .svx-readout {
    position: relative;
    inset: auto;
    right: auto;
  }
}

@media (max-width: 380px) {
  .svx-stage {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .svx-stage-name {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .svx-readout {
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.9rem 1rem 1rem;
  }

  .svx-hud {
    inset: 0.9rem 0.9rem auto auto;
  }

  .svx-stage-name {
    font-size: 0.85rem;
  }
}

/* Reduced motion: no movement, the photo changes by a plain fade */
@media (prefers-reduced-motion: reduce) {
  .svx-title .svx-line > span {
    animation: none;
    transform: none;
  }

  .svx-finder::before {
    animation: none;
  }

  .svx-stage:hover,
  .svx-readout.is-swapping {
    transform: none;
  }

  .svx-layer {
    transition: opacity 0.4s linear !important;
  }
}

@media (hover: none) {
  .svx-stage:hover {
    transform: none;
  }
}

/* ---------- Services: sideways story cards (numbers + media + copy) ---------- */
.hz-head { padding-inline: clamp(16px, 5vw, 80px); }
.hz-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); color: var(--heading, var(--ink)); margin-top: 0.4rem; }
.hz-sticky { gap: clamp(1rem, 2.5vh, 1.8rem); }
.hz-item {
  width: min(82vw, 500px);
  padding-block-start: 0;
  border-block-start: 0;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(6, 38, 45, 0.45);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.hz-item:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(6, 38, 45, 0.55); }
.hz-media { margin: 0; position: relative; height: clamp(120px, 26vh, 230px); overflow: hidden; background: var(--teal-800); }
.hz-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease); }
.hz-item:hover .hz-media img { transform: scale(1.06); }
.hz-body { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: clamp(1rem, 2.5vw, 1.5rem); }
.hz-icon {
  position: absolute; top: -26px; inset-inline-end: 1.2rem;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--aqua); color: var(--teal-950);
  box-shadow: 0 0 0 6px var(--surface);
  font-size: 1.1rem;
  animation: hz-bob 4s ease-in-out infinite;
}
@keyframes hz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hz-item strong { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.hz-label { color: var(--accent-on-light, var(--ink)); font-weight: 600; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em; }
.hz-body p { margin: 0.2rem 0 0.4rem; color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }
.hz-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
.hz-tags li { padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--mist); color: var(--accent-on-light, var(--ink)); font-size: 0.8rem; font-weight: 600; }
@media (max-width: 767px) {
  .hz-item { width: min(84vw, 360px); }
  .hz-media { height: clamp(100px, 20vh, 170px); }
  .hz-body { padding: 0.9rem 1rem 1rem; }
  .hz-body p { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-icon { animation: none; }
  .hz-item, .hz-media img { transition: none; }
}

/* ---------- Header: RTL as a text button ---------- */
.dir-btn {
  width: auto;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font: 700 0.8rem / 1 var(--font-text);
  letter-spacing: 0.08em;
  color: var(--on-dark);
}
.dir-btn:hover { background: rgba(255, 255, 255, 0.12); }
.dir-btn.is-on { background: var(--aqua); border-color: var(--aqua); color: var(--teal-950); }

/* Dark mode button: same pill as the RTL button, with the action as its label */
.theme-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.theme-btn i { font-size: 0.95rem; }

/* 404 page header: logo, RTL, dark mode and a back-to-site button only */
.site-header--minimal .header-tools { gap: 0.5rem; }
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 419px) {
  .back-text { display: none; }
  .header-back { width: 38px; padding: 0; justify-content: center; }
  .dir-btn { padding: 0 10px; }
}
@media (max-width: 559px) {
  .theme-label { display: none; }
  .theme-btn { width: 38px; padding: 0; justify-content: center; }
  .header-back { padding: 0 12px; }
}

/* ---------- 404 page ---------- */
.nf-art {
  position: relative;
  height: clamp(260px, 34vw, 380px);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-950));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.nf-art > * { min-width: 0; }
.nf-big {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(166, 231, 239, 0.45);
}
.nf-road {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 20%;
  height: 54px;
  background:
    repeating-linear-gradient(90deg, var(--aqua) 0 22px, transparent 22px 44px) center / 100% 3px no-repeat,
    #0b3a44;
  transform: rotate(-5deg);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.nf-car {
  position: absolute;
  bottom: calc(20% + 10px);
  left: 6%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--aqua);
  color: var(--teal-950);
  font-size: 1.3rem;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.6);
  animation: nf-drive 7s ease-in-out infinite alternate;
}
.nf-pin {
  position: absolute;
  top: 18%;
  right: 14%;
  color: var(--aqua);
  font-size: 2rem;
  animation: nf-bob 3s ease-in-out infinite;
}
@keyframes nf-drive { from { left: 6%; } to { left: 66%; } }
@keyframes nf-drive-rtl { from { right: 6%; left: auto; } to { right: 66%; left: auto; } }
@keyframes nf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.nf-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.nf-cards > * { min-width: 0; }
.nf-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.nf-link:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 16px; }
.nf-link .value-card { height: 100%; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nf-link:hover .value-card { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(6, 38, 45, 0.35); }
.nf-link:hover .value-icon { transform: rotate(-8deg) scale(1.08); }
.nf-link .value-icon { transition: transform 0.4s var(--ease); }
.nf-link .arrow { display: inline-block; margin-top: 0.8rem; color: var(--accent-on-light); font-weight: 600; font-size: var(--step--1); }
.nf-link:hover .arrow { transform: translateX(6px); }
[dir="rtl"] .nf-link:hover .arrow { transform: translateX(-6px); }

@media (max-width: 1024px) { .nf-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .nf-cards { grid-template-columns: 1fr; } .nf-art { height: 280px; } }
@media (prefers-reduced-motion: reduce) {
  .nf-car, .nf-pin { animation: none; }
  .nf-link .value-card, .nf-link .value-icon, .nf-link .arrow { transition: none; }
}

/* ===== Home 1 hero: right side as an arch photo with a handwritten note ===== */
.hero-media.hm-arch {
  min-height: 480px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: none;
}
.hm-arch::after { display: none; }
.hm-arch .hm-blob {
  position: absolute;
  inset: 4% -2% 2% 8%;
  border-radius: 62% 38% 46% 54% / 40% 52% 48% 60%;
  background: linear-gradient(160deg, rgba(166, 231, 239, 0.32), rgba(166, 231, 239, 0.06));
  transform: rotate(-4deg);
  pointer-events: none;
}
.hm-arch .hm-frame {
  position: absolute;
  inset: 14% 0 6% 4%;
  border-radius: 44% 50% 26px 26px / 26% 30% 26px 26px;
  overflow: hidden;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, 0.7);
  animation: hm-rise 1.1s var(--ease) both;
}
.hm-arch .hm-frame .media { position: absolute; inset: 0; }
.hm-arch .hm-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 38, 45, 0) 60%, rgba(6, 38, 45, 0.35));
  pointer-events: none;
}
.hm-note {
  position: absolute;
  z-index: 3;
  inset-block-start: 10%;
  inset-inline-start: 2%;
  transform: rotate(-7deg);
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2.2rem);
  line-height: 1.15;
  color: var(--teal-950);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.85), 0 0 4px rgba(255, 255, 255, 0.6);
  animation: hm-write 1.6s 0.6s var(--ease) both;
}
.hm-note .fa-heart { color: #e0556b; font-size: 0.8em; text-shadow: none; }
.hm-arch .scroll-down { inset-inline-end: auto; inset-inline-start: 0; inset-block-end: 0.4rem; }
@keyframes hm-rise { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes hm-write { from { opacity: 0; transform: rotate(-7deg) translateY(10px); } to { opacity: 1; transform: rotate(-7deg); } }
@media (max-width: 1024px) {
  .hero-media.hm-arch { min-height: 420px; }
  .hm-note { inset-block-start: 6%; }
}
@media (max-width: 767px) {
  .hero-media.hm-arch { min-height: 360px; }
  .hm-arch .hm-frame { inset: 0 0 8% 2%; }
  .hm-note { inset-block-start: 4%; inset-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-arch .hm-frame, .hm-note { animation: none; }
}

/* ==========================================================================
   SERVICES: home loans sticky story (image stage + scrolling steps)
   ========================================================================== */
.svs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.svs-grid > * { min-width: 0; }
.svs-sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 1.4rem;
  align-content: start;
  padding-block: 2rem;
}
.svs-sticky h2 { font-size: var(--step-3); }
.svs-stage {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  max-height: calc(100svh - var(--header-h) - 230px);
  min-height: 300px;
  border-radius: 24px 24px 24px 160px;
  overflow: hidden;
  background: var(--teal-800);
  box-shadow: 0 30px 60px -34px rgba(6, 38, 45, 0.55);
}
.svs-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s var(--ease), transform 1.4s var(--ease);
}
.svs-stage img.is-active { opacity: 1; transform: none; }
.svs-count {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  z-index: 2;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(6, 38, 45, 0.82);
  color: #fff;
  font-weight: 600;
}
.svs-count b { color: var(--aqua); }

.svs-beats { list-style: none; margin: 0; padding: 0; }
.svs-beat {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
  padding-inline-start: 1.4rem;
  border-inline-start: 3px solid var(--rule);
  opacity: 0.3;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s;
}
.svs-beat.is-active { opacity: 1; transform: translateX(6px); border-inline-start-color: var(--teal-700); }
.svs-num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  color: var(--teal-700);
  font-variant-numeric: tabular-nums;
}
.svs-beat h3 { font-size: var(--step-2); color: var(--ink); }
.svs-beat p { color: var(--ink-2); max-width: 44ch; }
.svs-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0; padding: 0; }
.svs-tags li { padding: 0.4rem 0.9rem; border-radius: 999px; background: var(--mist); color: var(--accent-on-light); font-size: 0.85rem; font-weight: 600; }
.svs-inline { display: none; }

@media (max-width: 1024px) {
  .svs-grid { grid-template-columns: minmax(0, 1fr); }
  .svs-stage-col { display: none; }
  .svs-beat { min-height: 0; opacity: 1; padding-block: 1.6rem; border-inline-start-color: var(--teal-700); transform: none; }
  .svs-inline {
    display: block;
    margin: 0 0 1rem;
    aspect-ratio: 4 / 3;
    border-radius: 20px 20px 20px 90px;
    overflow: hidden;
  }
  .svs-inline img { width: 100%; height: 100%; object-fit: cover; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .svs-stage img, .svs-beat { transition: none; }
  .svs-stage img { transform: none; }
}

/* ==========================================================================
   ABOUT PAGE: three new sections (ab-)
   ========================================================================== */

/* ---- A. Journey: scroll-drawn timeline on a dark band ---- */
.ab-timeline {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-l);
  color: var(--on-dark);
  background:
    radial-gradient(circle at 85% 10%, rgba(166, 231, 239, 0.14), transparent 40%),
    linear-gradient(180deg, var(--teal-950), var(--teal-900));
}
.ab-tl-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.ab-tl-head h2 { color: var(--on-dark); font-size: var(--step-3); margin-top: 0.6rem; }
.ab-tl { position: relative; }
.ab-tl-track {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  width: 2px;
  transform: translateX(-1px);
  background: rgba(166, 231, 239, 0.18);
  overflow: hidden;
}
.ab-tl-fill {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--aqua), var(--aqua-2));
  box-shadow: 0 0 16px var(--aqua);
}
.ab-tl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2rem, 4vw, 3.2rem); }
.ab-tl-item {
  position: relative;
  width: calc(50% - 2.5rem);
  min-width: 0;
}
.ab-tl-item:nth-child(odd) { margin-inline-start: 0; }
.ab-tl-item:nth-child(even) { margin-inline-start: auto; }
.ab-tl-dot {
  position: absolute;
  top: 1.4rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-900);
  border: 2px solid rgba(166, 231, 239, 0.4);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
  z-index: 1;
}
.ab-tl-item:nth-child(odd) .ab-tl-dot { inset-inline-start: calc(100% + 2.5rem - 9px); }
.ab-tl-item:nth-child(even) .ab-tl-dot { inset-inline-start: -2.5rem; inset-inline-start: calc(-2.5rem - 9px); }
.ab-tl-item.is-lit .ab-tl-dot { background: var(--aqua); border-color: var(--aqua); box-shadow: 0 0 0 8px rgba(166, 231, 239, 0.15), 0 0 22px var(--aqua); }
.ab-tl-card {
  padding: 1.6rem 1.7rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(166, 231, 239, 0.16);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.ab-tl-item.is-lit .ab-tl-card { background: rgba(255, 255, 255, 0.09); }
.ab-tl-item:hover .ab-tl-card { transform: translateY(-4px); }
.ab-tl-year { font-family: var(--font-display); font-size: var(--step-2); color: var(--aqua); display: block; }
.ab-tl-card h3 { color: var(--on-dark); font-size: var(--step-1); margin: 0.3rem 0 0.5rem; }
.ab-tl-card p { color: var(--on-dark-2); margin: 0; font-size: var(--step--1); }

@media (min-width: 768px) {
  .ab-tl-track { inset-inline-start: 50%; }
  .ab-tl-item:nth-child(even) { margin-inline-start: calc(50% + 2.5rem); }
  .ab-tl-item:nth-child(odd) { margin-inline-start: 0; }
  .ab-tl-item:nth-child(odd) .ab-tl-dot { inset-inline-start: calc(100% + 2.5rem - 9px); }
}
@media (max-width: 767px) {
  .ab-tl-track { inset-inline-start: 9px; transform: none; }
  .ab-tl-list .ab-tl-item { width: auto; margin-inline-start: 2.6rem; }
  .ab-tl-item .ab-tl-dot,
  .ab-tl-item:nth-child(odd) .ab-tl-dot,
  .ab-tl-item:nth-child(even) .ab-tl-dot { inset-inline-start: calc(-2.6rem + 0px); inset-inline-start: -2.6rem; }
  .ab-tl-dot { inset-inline-start: calc(-2.6rem); }
}

/* ---- B. Who we help: a rotating orbit ring with a live detail panel ---- */
.ab-orbit {
  padding-block: var(--space-l);
  background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
  overflow: hidden;
}
.ab-orbit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ab-orbit-grid > * { min-width: 0; }
.ab-orbit-copy h2 { font-size: var(--step-3); margin: 0.6rem 0 0.8rem; }
.ab-hint { color: var(--ink-2); font-size: var(--step--1); margin-bottom: 1.4rem; }
.ab-orbit-stage {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  justify-self: center;
}
.ab-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(15, 85, 99, 0.35);
}
.ab-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(15, 85, 99, 0.18);
}
.ab-spin {
  position: absolute;
  inset: 0;
  animation: ab-spin 46s linear infinite;
}
.ab-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  translate: -50% -50%;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--heading, var(--ink));
  font: inherit;
}
.ab-node-in {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-on-light);
  font-size: 1.4rem;
  box-shadow: 0 16px 30px -16px rgba(6, 38, 45, 0.5), inset 0 0 0 1.5px var(--teal-800);
  animation: ab-spin-rev 46s linear infinite;
  transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease);
}
.ab-node:hover .ab-node-in { transform: scale(1.08); }
.ab-node.is-active .ab-node-in { background: var(--teal-800); color: var(--on-dark); box-shadow: 0 0 0 8px rgba(166, 231, 239, 0.35), 0 16px 30px -16px rgba(6, 38, 45, 0.6); }
.ab-node-label {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px -12px rgba(6, 38, 45, 0.4);
  animation: ab-spin-rev 46s linear infinite;
}
.ab-core {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-950));
  color: var(--aqua);
  font-size: 1.8rem;
  box-shadow: 0 24px 40px -18px rgba(6, 38, 45, 0.6);
  animation: ab-breathe 4s ease-in-out infinite;
}
.ab-orbit-stage:hover .ab-spin,
.ab-orbit-stage:hover .ab-node-in,
.ab-orbit-stage:hover .ab-node-label { animation-play-state: paused; }
.ab-panel {
  margin-top: 0.5rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 50px -34px rgba(6, 38, 45, 0.45);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.ab-panel.is-swap { opacity: 0; transform: translateY(10px); }
.ab-panel-kicker { color: var(--accent-on-light); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
.ab-panel h3 { font-size: var(--step-2); margin: 0.4rem 0 0.6rem; }
.ab-panel > p:not(.ab-panel-kicker) { color: var(--ink-2); }
.ab-panel-list { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; }
.ab-panel-list li { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); font-weight: 500; }
.ab-panel-list i { color: var(--accent-on-light); }

@keyframes ab-spin { to { transform: rotate(360deg); } }
@keyframes ab-spin-rev { to { transform: rotate(-360deg); } }
@keyframes ab-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

@media (max-width: 1024px) {
  .ab-orbit-grid { grid-template-columns: 1fr; }
  .ab-orbit-stage { width: min(100%, 380px); }
}
@media (max-width: 767px) {
  .ab-orbit-stage { width: 100%; max-width: 340px; }
  .ab-node-in { width: 52px; height: 52px; font-size: 1.1rem; }
  .ab-node-label { font-size: 0.7rem; }
  .ab-core { width: 72px; height: 72px; font-size: 1.4rem; }
}

/* ---- C. Receipt: a bill printed line by line, with a live switch ---- */
.ab-receipt-sec { padding-block: var(--space-l); }
.ab-rc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ab-rc-grid > * { min-width: 0; }
.ab-rc-copy h2 { font-size: var(--step-3); margin: 0.6rem 0 1rem; }
.ab-rc-copy > p:not(.eyebrow) { color: var(--ink-2); max-width: 46ch; }
.ab-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 0.6rem 1.2rem 0.6rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s;
}
.ab-switch:hover { border-color: var(--teal-700); }
.ab-switch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ab-knob {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: var(--mist-2);
  transition: background 0.4s var(--ease);
}
.ab-knob::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-800);
  transition: transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1), background 0.4s;
}
.ab-switch[aria-checked="true"] .ab-knob { background: var(--aqua); }
.ab-switch[aria-checked="true"] .ab-knob::after { transform: translateX(22px); background: var(--teal-950); }
[dir="rtl"] .ab-switch[aria-checked="true"] .ab-knob::after { transform: translateX(-22px); }

.ab-receipt {
  position: relative;
  margin: 0;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  padding-bottom: 2.6rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 36px 60px -36px rgba(6, 38, 45, 0.45);
  font-variant-numeric: tabular-nums;
  -webkit-mask: radial-gradient(circle 10px at 10px calc(100% + 0px), #0000 98%, #000) 0 0 / 20px 100% repeat-x;
          mask: radial-gradient(circle 10px at 10px calc(100% + 0px), #0000 98%, #000) 0 0 / 20px 100% repeat-x;
}
.ab-rc-head { display: grid; gap: 0.2rem; padding-bottom: 1.2rem; border-bottom: 2px dashed var(--rule); margin-bottom: 1rem; }
.ab-rc-brand { color: var(--accent-on-light); font-weight: 700; font-size: var(--step--1); }
.ab-rc-head strong { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.ab-rc-head small { color: var(--ink-2); }
.ab-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.ab-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--rule);
  color: var(--ink);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s var(--ease) var(--d), transform 0.5s var(--ease) var(--d), color 0.3s, text-decoration-color 0.3s;
}
.ab-receipt.is-in .ab-lines li { opacity: 1; transform: none; }
.ab-lines b { font-weight: 700; white-space: nowrap; }
.ab-opt.is-off { color: var(--ink-2); }
.ab-opt.is-off b { text-decoration: line-through; text-decoration-color: var(--ink-2); }
.ab-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.ab-total span { font-weight: 700; color: var(--ink); }
.ab-total strong { font-family: var(--font-display); font-size: var(--step-3); color: var(--accent-on-light); line-height: 1; }
.ab-total strong.is-bump { animation: ab-bump 0.5s var(--ease); }
.ab-emi { margin: 1rem 0 0; color: var(--ink-2); font-size: var(--step--1); }
.ab-emi strong { color: var(--ink); }
@keyframes ab-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }

@media (max-width: 1024px) { .ab-rc-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .ab-switch { width: 100%; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  .ab-spin, .ab-node-in, .ab-node-label, .ab-core { animation: none !important; }
  .ab-lines li, .ab-tl-dot, .ab-tl-card, .ab-knob, .ab-knob::after, .ab-panel, .ab-tl-fill { transition: none !important; }
  .ab-lines li { opacity: 1; transform: none; }
}

/* ==========================================================================
   CONTACT: real map + full loan enquiry form (ldf-)
   ========================================================================== */
.ct-map-live { min-height: 380px; background: var(--mist-2); }
.ct-map-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ct-map-live .ct-road, .ct-map-live .ct-block, .ct-map-live .ct-pin,
.ct-map-live .ct-map-label, .ct-map-live .ct-map-caption { display: none; }
.ct-map-open {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  box-shadow: 0 12px 24px -14px rgba(6, 38, 45, 0.5);
}
.ct-map-open:hover { color: var(--accent-on-light); }

.ldf { padding-block: var(--space-l); background: linear-gradient(180deg, #ffffff 0%, var(--mist) 100%); }
.ldf-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.ldf-grid > * { min-width: 0; }
.ldf-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--teal-800), var(--teal-950));
  color: var(--on-dark-2);
  box-shadow: 0 30px 60px -36px rgba(6, 38, 45, 0.6);
}
.ldf-aside h2 { color: var(--on-dark); font-size: var(--step-3); margin: 0.6rem 0 0.9rem; }
.ldf-aside > p:not(.eyebrow) { margin: 0 0 1.4rem; }
.ldf-points { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1rem; }
.ldf-points li { display: flex; gap: 0.9rem; align-items: flex-start; }
.ldf-points i { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(166, 231, 239, 0.14); color: var(--aqua); }
.ldf-points strong { color: var(--on-dark); font-weight: 600; }
.ldf-call { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--aqua); font-weight: 600; text-decoration: none; }
.ldf-call:hover { text-decoration: underline; }

.ldf-card {
  padding: clamp(1.4rem, 3.5vw, 2.6rem);
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: 0 30px 60px -40px rgba(6, 38, 45, 0.45);
}
.ldf-set { border: 0; margin: 0 0 2rem; padding: 0; min-width: 0; }
.ldf-set legend {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 1.1rem;
  padding: 0;
}
.ldf-num {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--on-dark);
  font: 700 var(--step--1) / 1 var(--font-text);
}
.ldf-select {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink);
  font: 500 var(--step-0) / 1.3 var(--font-text);
}
.ldf-select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16); }
.ldf-card .ct-field.is-invalid .ldf-select { border-color: var(--err); }
.ldf-radios { display: grid; gap: 0.6rem; margin-bottom: 1.2rem; }
.ldf-radio-lbl { font-weight: 600; color: var(--ink); }
.ldf-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.ldf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ldf-chip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--mist);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.ldf-chip:hover span { transform: translateY(-2px); border-color: var(--teal-700); }
.ldf-chip input:checked + span { background: var(--teal-800); color: var(--on-dark); border-color: var(--teal-800); }
.ldf-chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.ldf-card .ct-field.is-invalid { }
.ldf-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.ldf-privacy { margin: 0; display: inline-flex; gap: 0.5rem; align-items: center; color: var(--ink-2); font-size: var(--step--1); }
.ldf-privacy i { color: var(--accent-on-light); }
.ldf-submit .btn { min-height: 52px; }
.ldf-success { display: grid; justify-items: start; gap: 1rem; }
.ldf-success[hidden] { display: none; }
.ldf-badge { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-800); color: var(--aqua); font-size: 1.5rem; animation: ldf-pop 0.6s var(--ease) both; }
.ldf-success h3 { font-size: var(--step-2); margin: 0; }
.ldf-success p { margin: 0; color: var(--ink-2); }
@keyframes ldf-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1024px) {
  .ldf-grid { grid-template-columns: 1fr; }
  .ldf-aside { position: static; }
}
@media (max-width: 767px) {
  .ldf-card { padding: 1.2rem; border-radius: 22px; }
  .ldf-submit .btn { width: 100%; justify-content: center; }
  .ct-map-live { min-height: 300px; }
}

/* ---------- Loan enquiry: one border per field (the amount input sits inside the ₹ wrapper) ---------- */
.ldf-card .ct-input input {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.ldf-card .ct-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px rgba(15, 85, 99, 0.16); }
.ct-visit .ct-map-live { border-radius: 28px; overflow: hidden; }

/* ==========================================================================
   HOME 1 HERO (v16 planner hero, hx-)
   Dark teal, serif headline, a live EMI card, a photo arch that opens on
   load, rotating rings and three annotations on the photo.
   ========================================================================== */
.hx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(1.5rem, 3.5vw, 2.6rem)) 0 clamp(2.5rem, 4.5vw, 3.8rem);
  color: var(--on-dark);
  background:
    linear-gradient(118deg, var(--teal-950) 0%, var(--teal-900) 55%, var(--teal-800) 100%);
}
.hx-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(80vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 231, 239, 0.22), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  animation: hx-drift 16s ease-in-out infinite;
  pointer-events: none;
}
.hx-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1.2px);
  background-size: 6px 6px;
  pointer-events: none;
}
@keyframes hx-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 36px); } }

.hx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hx-grid > * { min-width: 0; }
.hx-title {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 1.02;
  color: var(--on-dark);
  margin: 1.1rem 0 1.5rem;
  letter-spacing: -0.01em;
}
.hx-noun {
  display: inline-block;
  font-style: italic;
  color: var(--aqua);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.hx-noun.is-swap { opacity: 0; transform: translateY(12px); }
.hx-smarter {
  position: relative;
  white-space: nowrap;
}
.hx-smarter::after {
  content: "";
  position: absolute;
  inset-inline: -0.05em;
  bottom: 0.08em;
  height: 0.22em;
  background: rgba(166, 231, 239, 0.28);
  z-index: -1;
  transform-origin: left;
  animation: hx-underline 1.2s 0.9s var(--ease) both;
}
@keyframes hx-underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hx-plan-label { margin: 0 0 0.7rem; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.hx-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 231, 239, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-2);
  font: 600 var(--step--1) / 1 var(--font-text);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.hx-chip:hover { transform: translateY(-2px); border-color: var(--aqua); color: var(--on-dark); }
.hx-chip.is-on { background: var(--aqua); color: var(--teal-950); border-color: var(--aqua); }
.hx-chip:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.hx-lead { margin: 1rem 0 0; color: var(--on-dark-2); font-size: var(--step-0); max-width: 48ch; min-height: 3.2em; transition: opacity 0.35s var(--ease); }
.hx-lead.is-swap { opacity: 0; }

.hx-calc {
  margin-top: 1.8rem;
  padding: clamp(1.2rem, 2.6vw, 1.7rem);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(166, 231, 239, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.6);
  max-width: 540px;
}
.hx-calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hx-calc-label { margin: 0; color: var(--on-dark-2); font-size: var(--step--1); }
.hx-emi { margin: 0.2rem 0 0; font-family: var(--font-display); font-size: var(--step-3); color: var(--on-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.hx-emi small { font: 500 var(--step--1) / 1 var(--font-text); color: var(--on-dark-2); margin-inline-start: 0.4rem; }
.hx-emi.is-bump { animation: hx-bump 0.45s var(--ease); }
@keyframes hx-bump { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
.hx-calc-meta { display: grid; gap: 0.35rem; text-align: end; color: var(--on-dark-2); font-size: var(--step--1); }
.hx-calc-meta strong { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.hx-field + .hx-field { margin-top: 0.9rem; }
.hx-field label { display: flex; justify-content: space-between; color: var(--on-dark-2); font-size: var(--step--1); font-weight: 600; margin-bottom: 0.45rem; }
.hx-field output { color: var(--aqua); font-variant-numeric: tabular-nums; }
.hx-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--aqua) var(--fill, 50%), rgba(255, 255, 255, 0.18) var(--fill, 50%));
  outline: none;
}
.hx-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--aqua);
  border: 3px solid var(--teal-950);
  box-shadow: 0 0 0 4px rgba(166, 231, 239, 0.3);
  cursor: pointer;
}
.hx-field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--aqua);
  border: 3px solid var(--teal-950);
  cursor: pointer;
}
.hx-field input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(166, 231, 239, 0.4); }
.hx-calc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--aqua);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, gap 0.3s var(--ease);
}
.hx-calc-link:hover { border-color: var(--aqua); gap: 0.8rem; }
.hx-trust { margin-top: 1.6rem; }

/* Photo stage */
.hx-stage { position: relative; width: 100%; max-width: 600px; justify-self: end; aspect-ratio: 4 / 5; max-height: min(78svh, 680px); min-height: 420px; }
.hx-ring {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  border: 1px dashed rgba(166, 231, 239, 0.35);
  animation: hx-spin 40s linear infinite;
  pointer-events: none;
}
.hx-ring-b { inset: 6% -10% 2% 8%; border-style: solid; border-color: rgba(166, 231, 239, 0.14); animation-duration: 60s; animation-direction: reverse; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-frame {
  position: absolute;
  inset: 4% 0 0 4%;
  overflow: hidden;
  border-radius: 46% 54% 26px 26px / 26% 30% 26px 26px;
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.75);
  animation: hx-open 1.3s var(--ease) both;
}
.hx-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); animation: hx-settle 2.2s var(--ease) both; }
.hx-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 38, 45, 0) 55%, rgba(6, 38, 45, 0.45));
  pointer-events: none;
}
@keyframes hx-open { from { clip-path: inset(100% 0 0 0 round 46% 54% 26px 26px); } to { clip-path: inset(0 0 0 0 round 46% 54% 26px 26px); } }
@keyframes hx-settle { to { transform: scale(1); } }

.hx-tag {
  position: absolute;
  z-index: 2;
  inset-inline-start: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem 0.55rem 0.6rem;
  border-radius: 999px;
  background: rgba(6, 38, 45, 0.78);
  border: 1px solid rgba(166, 231, 239, 0.3);
  color: var(--on-dark);
  font: 600 var(--step--1) / 1.2 var(--font-text);
  box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: hx-pop 0.7s var(--ease) forwards, hx-float 6s ease-in-out infinite;
}
.hx-tag i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal-950);
  font-size: 0.8rem;
}
.hx-tag-1 { animation-delay: 1.2s, 2.2s; }
.hx-tag-2 { animation-delay: 1.5s, 2.5s; }
.hx-tag-3 { animation-delay: 1.8s, 2.8s; }
@keyframes hx-pop { from { opacity: 0; transform: translateY(12px) scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

.hx-note {
  position: absolute;
  z-index: 3;
  inset-block-start: 8%;
  inset-inline-start: 0;
  margin: 0;
  font-family: var(--font-note);
  font-size: clamp(1.4rem, 1rem + 1vw, 2rem);
  line-height: 1.1;
  color: var(--teal-950);
  transform: rotate(-6deg);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  pointer-events: none;
  animation: hx-write 1.2s 0.9s var(--ease) both;
}
.hx-note i { color: #e0556b; text-shadow: none; }
@keyframes hx-write { from { opacity: 0; transform: rotate(-6deg) translateY(10px); } to { opacity: 1; transform: rotate(-6deg); } }

.hx-scroll {
  position: absolute;
  z-index: 3;
  inset-block-end: 0.4rem;
  inset-inline-end: 0.2rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal-950);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
  animation: hx-bob 2.6s ease-in-out infinite;
}
@keyframes hx-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 1024px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); }
  .hx-stage { justify-self: center; max-width: 560px; max-height: none; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 767px) {
  .hx-hero { padding-top: calc(var(--header-h) + 1.2rem); }
  .hx-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hx-chip { font-size: 0.82rem; padding: 0.5rem 0.85rem; }
  .hx-calc-meta { text-align: start; }
  .hx-stage { min-height: 360px; aspect-ratio: 4 / 4.6; }
  .hx-tag { font-size: 0.72rem; padding: 0.4rem 0.7rem 0.4rem 0.4rem; }
  .hx-tag i { width: 22px; height: 22px; font-size: 0.7rem; }
  .hx-tag-2 { --x: 44%; --y: 40%; }
  .hx-tag-1 { --x: 6%; --y: 16%; }
  .hx-tag-3 { --x: 4%; --y: 72%; }
  .hx-note { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-glow, .hx-ring, .hx-frame, .hx-frame img, .hx-tag, .hx-scroll, .hx-note, .hx-smarter::after { animation: none !important; }
  .hx-tag, .hx-frame img { opacity: 1; transform: none; }
  .hx-frame { clip-path: none; }
}
[dir="rtl"] .hx-frame { border-radius: 54% 46% 26px 26px / 26% 30% 26px 26px; }
[dir="rtl"] .hx-note { inset-inline-start: auto; inset-inline-end: 0; transform: rotate(6deg); }
[dir="rtl"] .hx-scroll { inset-inline-end: auto; inset-inline-start: 0.2rem; }
[dir="rtl"] .hx-stage { justify-self: start; }
[dir="rtl"] .hx-stage { justify-self: end; }

/* ==========================================================================
   HOME 1 HERO (v17, framed showcase, hv-)
   Full-bleed photo inside a rounded frame, a vertical icon rail, a large
   serif headline, a featured-loan carousel, glass stats and a dark CTA card.
   ========================================================================== */
.hv-hero {
  position: relative;
  padding: calc(var(--header-h) + 0.9rem) clamp(0.8rem, 2vw, 1.5rem) clamp(1.2rem, 2vw, 1.6rem);
  background: linear-gradient(180deg, var(--teal-950), var(--teal-900));
  overflow: hidden;
}
.hv-frame {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 88svh, 800px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--teal-900);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.hv-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -2;
  animation: hv-zoom 18s ease-out both;
}
@keyframes hv-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hv-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 38, 45, 0.92) 0%, rgba(6, 38, 45, 0.6) 34%, rgba(6, 38, 45, 0.05) 62%),
    linear-gradient(0deg, rgba(6, 38, 45, 0.65) 0%, rgba(6, 38, 45, 0) 42%);
}

/* Vertical icon rail */
.hv-rail {
  position: absolute;
  z-index: 3;
  inset-inline-start: 1.2rem;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: 0.8rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hv-rail-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.hv-rail-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }
.hv-rail-btn.is-on { background: var(--on-dark); color: var(--teal-950); }
.hv-rail-btn:focus-visible, .hv-rail-reel:focus-visible, .hv-dark-btn:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
.hv-rail-reel {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: 0.66rem;
  line-height: 1.2;
  text-align: center;
}
.hv-rail-play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--teal-950);
  font-size: 0.8rem;
  padding-inline-start: 2px;
}

/* Copy */
.hv-copy {
  position: absolute;
  z-index: 2;
  inset-inline-start: clamp(5.5rem, 8vw, 8rem);
  inset-inline-end: 2rem;
  top: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 620px;
}
.hv-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  font-weight: 600;
}
.hv-title {
  margin: 1.2rem 0 1.1rem;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  line-height: 0.98;
  color: var(--on-dark);
  letter-spacing: -0.015em;
  font-weight: 400;
}
.hv-title em { color: var(--aqua); font-style: italic; }
.hv-lead {
  margin: 0;
  max-width: 44ch;
  color: var(--on-dark-2);
  font-size: var(--step-0);
}
.hv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.hv-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--teal-950);
  color: var(--on-dark);
  border: 1px solid rgba(166, 231, 239, 0.25);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.hv-btn-dark:hover { transform: translateY(-2px); background: #04191e; }
.hv-watch { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.hv-play {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  padding-inline-start: 2px;
}

/* Vertical words, right edge */
.hv-words {
  position: absolute;
  z-index: 2;
  inset-inline-end: 1.6rem;
  top: clamp(2.6rem, 6vw, 4.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: end;
  display: grid;
  gap: 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Bottom row: feature, stats, CTA */
.hv-bottom {
  position: absolute;
  z-index: 2;
  inset-inline: 1.2rem;
  inset-block-end: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}
.hv-bottom > * { min-width: 0; }
.hv-feature, .hv-stats, .hv-cta {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.6);
}
.hv-feature { padding: 0.8rem; display: grid; gap: 0.7rem; }
.hv-slides { position: relative; display: grid; min-height: 150px; }
.hv-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.hv-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hv-thumb { border-radius: 18px; overflow: hidden; height: 130px; background: var(--teal-800); position: relative; }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-kicker { margin: 0; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.hv-slide-title { margin: 0.3rem 0 0.35rem; font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--on-dark); }
.hv-slide-text { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); line-height: 1.5; }
.hv-slide-meta { margin: 0.5rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--aqua); }
.hv-controls { display: flex; align-items: center; gap: 0.7rem; padding: 0 0.3rem 0.2rem; }
.hv-count { font-size: 0.82rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.hv-count b { color: var(--on-dark); }
.hv-dots { display: flex; gap: 0.35rem; flex: 1 1 auto; }
.hv-dots span { width: 18px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.3); transition: width 0.4s var(--ease), background 0.4s; }
.hv-dots span.is-on { width: 34px; background: var(--aqua); }
.hv-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: var(--on-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.hv-nav:hover { transform: scale(1.06); }
.hv-nav-solid { background: var(--on-dark); color: var(--teal-950); border-color: var(--on-dark); }
.hv-nav:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.hv-stats { margin: 0; padding: 0.4rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hv-stats > div { padding: 0.9rem 0.9rem; display: grid; gap: 0.5rem; align-content: center; }
.hv-stats > div + div { border-inline-start: 1px solid rgba(255, 255, 255, 0.2); }
.hv-stats dt { font-size: 0.72rem; color: var(--on-dark-2); display: flex; align-items: center; gap: 0.45rem; line-height: 1.3; }
.hv-stats dt i { color: var(--aqua); }
.hv-stats dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--on-dark); font-variant-numeric: tabular-nums; line-height: 1; }

.hv-cta {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 1.2rem;
  color: var(--on-dark);
  text-decoration: none;
  background: rgba(6, 38, 45, 0.72);
  transition: transform 0.4s var(--ease), background 0.4s;
}
.hv-cta:hover { transform: translateY(-4px); background: rgba(6, 38, 45, 0.85); }
.hv-cta-kicker { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.hv-cta-title { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.2; }
.hv-cta-text { font-size: var(--step--1); color: var(--on-dark-2); }
/* Keep the kicker and title clear of the photo circle (flipped in RTL below) */
.hv-cta-kicker, .hv-cta-title { padding-inline-end: 4rem; }
.hv-cta-go {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  padding: 0;
  background: var(--teal-800);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 10px 22px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s var(--ease);
}
.hv-cta-go img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hv-cta:hover .hv-cta-go { transform: scale(1.06); }

/* Tablet */
@media (max-width: 1024px) {
  .hv-frame { min-height: 0; padding-bottom: 1rem; }
  .hv-copy { position: relative; inset: auto; padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.4rem) 1.2rem clamp(5rem, 11vw, 6rem); max-width: none; }
  .hv-words { display: none; }
  .hv-shade { background: linear-gradient(180deg, rgba(6, 38, 45, 0.85) 0%, rgba(6, 38, 45, 0.55) 45%, rgba(6, 38, 45, 0.85) 100%); }
  .hv-bottom { position: relative; inset: auto; margin: 0 1.2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hv-feature { grid-column: 1 / -1; }
}
/* Phone */
@media (max-width: 767px) {
  .hv-hero { padding-top: calc(var(--header-h) + 0.5rem); }
  .hv-frame { border-radius: 22px; }
  .hv-rail { display: none; }
  .hv-copy { padding: 2rem 1.3rem 1rem; inset-inline-start: 0; inset-inline-end: 0; }
  .hv-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hv-actions { gap: 0.9rem 1.2rem; }
  .hv-bottom { grid-template-columns: 1fr; margin: 0 0.8rem; gap: 0.8rem; inset-block-end: auto; }
  .hv-slide { grid-template-columns: 1fr; }
  .hv-thumb { height: 120px; }
  .hv-stats > div { padding: 0.7rem 0.5rem; }
  .hv-stats dd { font-size: var(--step-1); }
  .hv-stats dt { font-size: 0.62rem; flex-direction: column; align-items: flex-start; }
  .hv-cta { padding-block: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-bg, .hv-slide, .hv-dots span { animation: none !important; transition: none !important; }
}
[dir="rtl"] .hv-cta-go { inset-inline-end: auto; inset-inline-start: 0.75rem; }
[dir="rtl"] .hv-cta-kicker, [dir="rtl"] .hv-cta-title { padding-inline-end: 0; padding-inline-start: 4rem; }
[dir="rtl"] .hv-controls .hv-nav:first-of-type i { transform: scaleX(-1); }

/* ==========================================================================
   HOME 1 HERO v17.1 overrides: full-bleed photo under the header, tighter
   headline so the bottom cards never cover the copy, readable right-side words.
   ========================================================================== */
.hv-hero { padding: var(--header-h) 0 0; background: var(--teal-950); }
.hv-frame {
  min-height: max(660px, calc(100svh - var(--header-h)));
  border-radius: 0;
  box-shadow: none;
}
.hv-copy { top: clamp(2rem, 4.5vw, 3.2rem); }
.hv-eyebrow { white-space: nowrap; letter-spacing: 0.18em; }
.hv-title {
  margin: 0.9rem 0 0.9rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1;
}
.hv-lead { font-size: var(--step--1); max-width: 46ch; }
.hv-actions { margin-top: 1.3rem; }
.hv-words {
  color: var(--on-dark);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  top: 2.4rem;
}
.hv-shade {
  background:
    linear-gradient(90deg, rgba(6, 38, 45, 0.92) 0%, rgba(6, 38, 45, 0.55) 36%, rgba(6, 38, 45, 0.1) 62%, rgba(6, 38, 45, 0.45) 100%),
    linear-gradient(0deg, rgba(6, 38, 45, 0.8) 0%, rgba(6, 38, 45, 0) 46%);
}
.hv-bottom { inset-inline: 1.5rem; inset-block-end: 1.5rem; }
.hv-stats dd { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.hv-stats dt { white-space: nowrap; }
.hv-stats > div { min-width: 0; }
.hv-slide-title { font-size: var(--step-0); }
@media (max-width: 1024px) {
  .hv-hero { padding-top: var(--header-h); }
  .hv-frame { min-height: 0; }
  .hv-eyebrow { white-space: normal; }
}
@media (max-width: 767px) {
  .hv-hero { padding-top: var(--header-h); }
  .hv-frame { border-radius: 0; }
  .hv-bottom { margin: 0 1rem; inset-block-end: auto; }
}

/* v17.2: photo runs under the fixed header; copy and rail start below it */
.hv-hero { padding: 0; }
.hv-frame { min-height: max(680px, 100svh); }
.hv-copy { top: calc(var(--header-h) + clamp(1.6rem, 3.5vw, 2.6rem)); }
.hv-words { top: calc(var(--header-h) + 1.8rem); }
.hv-rail { top: calc(var(--header-h) + 1.6rem); translate: none; }
@media (max-width: 1024px) {
  .hv-hero { padding: 0; }
  .hv-frame { min-height: 0; }
  .hv-copy { top: auto; }
}
@media (max-width: 767px) {
  .hv-hero { padding: 0; }
  .hv-copy { padding-top: calc(var(--header-h) + 1.4rem); }
  .hv-rail { display: none; }
}

/* v17.3: copy and bottom cards share one flow, so the cards can never sit on the CTA row */
@media (min-width: 1025px) {
  .hv-frame {
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-h) + clamp(1.6rem, 3.5vw, 2.6rem)) 0 clamp(1.2rem, 2.4vw, 1.6rem);
  }
  .hv-copy {
    position: relative;
    inset: auto;
    top: auto;
    margin-inline-start: clamp(5.5rem, 8vw, 8rem);
    margin-inline-end: 2rem;
    margin-bottom: clamp(2.2rem, 5vh, 3.2rem);
  }
  .hv-bottom {
    position: relative;
    inset: auto;
    margin-top: auto;
    margin-inline: 1.5rem;
  }
}

/* v17.5: smaller bottom cards (size to content, tighter padding and type) */
@media (min-width: 1025px) {
  .hv-bottom { align-items: end; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr) minmax(0, 0.8fr); gap: 0.8rem; }
  .hv-feature { padding: 0.6rem; gap: 0.5rem; }
  .hv-slides { min-height: 0; }
  .hv-slide { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 0.8rem; }
  .hv-thumb { height: 104px; border-radius: 14px; }
  .hv-slide-title { font-size: 1.1rem; margin: 0.2rem 0; }
  .hv-slide-text { font-size: 0.8rem; line-height: 1.4; }
  .hv-slide-meta { font-size: 0.74rem; margin-top: 0.35rem; }
  .hv-controls { padding: 0 0.2rem; }
  .hv-nav { width: 32px; height: 32px; font-size: 0.8rem; }
  .hv-stats { padding: 0.2rem 0; }
  .hv-stats > div { padding: 0.6rem 0.7rem; gap: 0.35rem; }
  .hv-stats dt { font-size: 0.66rem; }
  .hv-stats dd { font-size: 1.3rem; }
  .hv-cta { padding: 0.9rem 1rem; gap: 0.25rem; }
  .hv-cta-title { font-size: 1.05rem; }
  .hv-cta-text { font-size: 0.78rem; }
  .hv-cta-go { inset-block-start: 0.7rem; inset-inline-end: 0.7rem; }
}

/* v17.6: on desktop the map box stretches to the height of the left column */
@media (min-width: 768px) {
  .ct-visit-grid { align-items: stretch; }
  .ct-visit .ct-map-live { min-height: 420px; height: auto; align-self: stretch; position: relative; }
}

/* ==========================================================================
   HOME 2 LOAN FINDER v17.8 (lf-shell, lf-panel): dark showcase with a light
   calculator panel, icon purpose cards, tenure slider and EMI split bar.
   ========================================================================== */
.lf { padding-block: var(--space-l); }
.lf-shell {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3.4rem);
  border-radius: 32px;
  background: radial-gradient(120% 90% at 0% 0%, var(--teal-800), var(--teal-950) 62%);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -48px rgba(6, 38, 45, 0.6);
}
.lf-shell::before {
  content: "";
  position: absolute;
  inset-inline-end: -120px;
  inset-block-start: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 231, 239, 0.22), transparent 70%);
  pointer-events: none;
}
.lf-shell > * { position: relative; min-width: 0; }
@media (min-width: 960px) {
  .lf-shell { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
}
.lf-kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--aqua);
}
.lf-kicker span { width: 34px; height: 1px; background: var(--aqua); }
.lf-intro h2 {
  margin: 0.9rem 0 1rem;
  color: var(--on-dark);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.05;
}
.lf-lead { margin: 0; max-width: 42ch; color: var(--on-dark-2); }
.lf-facts {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.lf-facts li {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(166, 231, 239, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.lf-facts strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1;
  color: var(--aqua);
}
.lf-facts span { font-size: 0.74rem; color: var(--on-dark-2); line-height: 1.35; }

/* Light calculator panel */
.lf-panel {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  border-radius: 26px;
  background: var(--mist);
  color: var(--ink);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.5);
}
.lf-block { display: grid; gap: 0.7rem; padding-block-end: 1.2rem; border-block-end: 1px solid var(--rule); }
.lf-block:last-of-type { border-block-end: 0; padding-block-end: 0; }
.lf-label-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lf-years-out { font-family: var(--font-display); font-size: var(--step-0); color: var(--ink); text-transform: none; letter-spacing: 0; }

.lf-purposes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.lf-purpose {
  display: grid;
  justify-items: start;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.lf-purpose i { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--teal-700); transition: color 0.3s; }
.lf-purpose span { font-weight: 700; }
.lf-purpose small { font-size: 0.74rem; color: var(--ink-2); }
.lf-purpose:hover { transform: translateY(-2px); border-color: var(--teal-700); }
.lf-purpose[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: var(--on-dark); }
.lf-purpose[aria-pressed="true"] i { color: var(--aqua); }
.lf-purpose[aria-pressed="true"] small { color: var(--on-dark-2); }
.lf-purpose:focus-visible, .lf-range:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.lf-range { width: 100%; accent-color: var(--teal-800); cursor: pointer; }
.lf-scale { display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--ink-2); }

/* Result card inside the panel */
.lf-result {
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: var(--teal-900);
  color: var(--on-dark);
}
.lf-result-main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.lf-result .lf-result-label { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); }
.lf-result .lf-result-value {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}
.lf-result .lf-result-value small { margin-inline-start: 0.4rem; font-family: var(--font-text); font-size: var(--step-0); color: var(--on-dark-2); }
.lf-result .lf-result-note { margin: 0; font-size: 0.85rem; color: var(--on-dark-2); }
.lf-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--teal-950);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.lf-cta:hover { transform: translateY(-2px); }
.lf-cta:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }

.lf-split {
  display: flex;
  height: 10px;
  margin-top: 1.1rem;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.lf-split span { display: block; height: 100%; transition: width 0.5s var(--ease); }
#lfPrincipalBar { background: var(--aqua); }
#lfInterestBar { background: rgba(255, 255, 255, 0.55); }
.lf-legend {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.lf-legend b { margin-inline-start: 0.35rem; color: var(--on-dark); font-weight: 700; }
.lf-dot { display: inline-block; width: 9px; height: 9px; margin-inline-end: 0.4rem; border-radius: 50%; }
.lf-dot.is-p { background: var(--aqua); }
.lf-dot.is-i { background: rgba(255, 255, 255, 0.55); }

@media (max-width: 480px) {
  .lf-purposes { grid-template-columns: 1fr; }
  .lf-facts { grid-template-columns: 1fr; }
  .lf-cta { width: 100%; justify-content: center; }
}
[dir="rtl"] .lf-cta i { transform: scaleX(-1); }
@media (prefers-reduced-motion: reduce) {
  .lf-split span, .lf-purpose, .lf-cta { transition: none !important; }
}

/* ==========================================================================
   HOME 2 v17.9: "Before you sign" split panel + richer numbers cards
   ========================================================================== */
.bs { background: var(--mist); padding-block: var(--space-l); }
.bs-grid { display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); align-items: stretch; }
@media (min-width: 960px) { .bs-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.bs-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.6rem, 3.6vw, 2.6rem);
  border-radius: 30px;
  background: radial-gradient(120% 90% at 0% 0%, var(--teal-800), var(--teal-950) 65%);
  color: var(--on-dark);
  box-shadow: 0 40px 70px -46px rgba(6, 38, 45, 0.7);
}
.bs-panel .eyebrow { color: var(--aqua); margin: 0; }
.bs-panel h2 { margin: 0; color: var(--on-dark); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; }
.bs-text { margin: 0; color: var(--on-dark-2); max-width: 42ch; }
.bs-panel .bs-ring { margin-top: auto; padding-top: 1.4rem; gap: 1.2rem; }
.bs-panel .bs-track { stroke: rgba(255, 255, 255, 0.14); }
.bs-panel .bs-fill { stroke: var(--aqua); }
.bs-panel .bs-ring p { color: var(--on-dark-2); }
.bs-panel .bs-ring strong { color: var(--on-dark); }
.bs-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding-bottom: 0.2rem;
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(166, 231, 239, 0.45);
}
.bs-link:hover { color: var(--aqua); }
.bs-link:focus-visible { outline: 3px solid var(--aqua); outline-offset: 4px; }

.bs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; align-content: start; }
.bs-list li { border: 0; }
.bs-list li:first-child { border: 0; }
.bs-list .bs-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.1rem 1.3rem;
  border-radius: 22px;
  border: 1px solid var(--rule);
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 18px 36px -30px rgba(6, 38, 45, 0.5);
  transition: transform 0.35s var(--ease), background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.bs-list .bs-item:hover { transform: translateX(4px); border-color: var(--teal-700); }
.bs-num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1;
  color: var(--teal-700);
  min-width: 2.2ch;
}
.bs-copy { display: grid; gap: 0.25rem; min-width: 0; }
.bs-copy strong { font-size: var(--step-0); color: var(--ink); line-height: 1.3; }
.bs-copy small { color: var(--ink-2); font-size: var(--step--1); line-height: 1.45; }
.bs-list .bs-tick {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--rule);
  color: transparent;
  transition: background-color 0.35s, border-color 0.35s, color 0.35s;
}
.bs-list .bs-item[aria-checked="true"] {
  background: var(--teal-900);
  border-color: var(--teal-900);
  box-shadow: 0 26px 46px -30px rgba(6, 38, 45, 0.8);
}
.bs-list .bs-item[aria-checked="true"] .bs-num { color: var(--aqua); }
.bs-list .bs-item[aria-checked="true"] .bs-copy strong { color: var(--on-dark); }
.bs-list .bs-item[aria-checked="true"] .bs-copy small { color: var(--on-dark-2); }
.bs-list .bs-item[aria-checked="true"] .bs-tick { background: var(--aqua); border-color: var(--aqua); color: var(--teal-950); }
.bs-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Numbers: each card has its photo, icon, figure, detail and tags */
.hz-item { width: min(84vw, 460px); }
.hz-media { height: clamp(170px, 30vh, 230px); }
.hz-body { gap: 0.5rem; padding: clamp(1.3rem, 2.6vw, 1.7rem) clamp(1.3rem, 2.6vw, 1.7rem) clamp(1.4rem, 2.6vw, 1.8rem); }
.hz-body strong { line-height: 1; margin-top: 0.2rem; color: var(--ink); }
.hz-body p:not(.hz-label) { color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; margin: 0.2rem 0 0.4rem; }
.hz-label { margin: 0 !important; }
.hz-tags { margin-top: 0.3rem !important; }
@media (max-width: 767px) {
  .bs-list .bs-item { padding: 1rem; gap: 0.8rem; grid-template-columns: auto minmax(0, 1fr) auto; }
  .bs-list .bs-tick { width: 34px; height: 34px; }
  .hz-item { width: 86vw; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-list .bs-item, .bs-list .bs-tick { transition: none !important; }
}

/* ==========================================================================
   HOME 1 "TALK TO US" v17.10 (sc-): channel cards with live hours status,
   staggered reveal, icon float, hover sheen, consultation band.
   ========================================================================== */
.sc { position: relative; padding-block: var(--space-l); background: var(--mist); overflow: hidden; }
.sc-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sc-head h2 { margin: 0.6rem 0 0.8rem; font-size: clamp(2rem, 3.6vw, 3rem); color: var(--ink); line-height: 1.08; }
.sc-sub { margin: 0; color: var(--ink-2); max-width: 56ch; }
.sc-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.sc-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 26px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  box-shadow: 0 24px 50px -38px rgba(6, 38, 45, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s;
}
.sc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(166, 231, 239, 0.35) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.sc-card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -36px rgba(6, 38, 45, 0.6); border-color: var(--teal-700); }
.sc-card:hover::after { animation: sc-sheen 1.1s var(--ease); }
@keyframes sc-sheen { to { transform: translateX(120%); } }

.sc-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--teal-900);
  color: var(--aqua);
  font-size: 1.2rem;
  animation: sc-float 6s ease-in-out infinite;
}
.sc-badge::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px solid var(--aqua-2);
  opacity: 0;
  animation: sc-ring 3.2s ease-out infinite;
}
.sc-card:nth-child(2) .sc-badge { animation-delay: -1.5s; }
.sc-card:nth-child(3) .sc-badge { animation-delay: -3s; }
.sc-card:nth-child(4) .sc-badge { animation-delay: -4.5s; }
@keyframes sc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sc-ring { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 0; } }

.sc-card h3 { margin: 0.4rem 0 0; font-size: var(--step-1); color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.sc-card p { margin: 0; color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }

.sc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}
.sc-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #9aa8ab; }
.sc-status.is-open .sc-dot { background: #2fbf8f; }
.sc-status.is-open .sc-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(47, 191, 143, 0.5);
  animation: sc-pulse 1.8s ease-out infinite;
}
@keyframes sc-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

.sc-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--teal-800);
  font-weight: 700;
  text-decoration: none;
}
.sc-link i { transition: transform 0.4s var(--ease); }
.sc-card:hover .sc-link i { transform: translateX(5px); }
.sc-link:focus-visible, .sc-band-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Consultation band */
.sc-band {
  position: relative;
  margin-top: clamp(2rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.2rem 2rem;
  align-items: center;
  padding: clamp(1.5rem, 3.4vw, 2.2rem);
  border-radius: 28px;
  color: var(--on-dark);
  background: linear-gradient(120deg, var(--teal-950), var(--teal-800), var(--teal-950));
  background-size: 200% 200%;
  animation: sc-drift 14s ease-in-out infinite;
  overflow: hidden;
}
@keyframes sc-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (min-width: 960px) { .sc-band { grid-template-columns: auto minmax(0, 1fr) auto; } }
.sc-band-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua); font-weight: 700; }
.sc-band-title { margin: 0.3rem 0 0; font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.sc-band-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.sc-band-points li { display: flex; align-items: center; gap: 0.6rem; color: var(--on-dark-2); font-size: var(--step--1); }
.sc-band-points i { color: var(--aqua); font-size: 0.8rem; }
.sc-band-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  justify-self: start;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: var(--on-dark);
  color: var(--teal-950);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.35s var(--ease);
}
.sc-band-cta:hover { transform: translateY(-2px); }

/* Reveal on scroll (staggered by --d) */
.sc-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms); }
.sc-reveal.is-in { opacity: 1; transform: none; }
.sc-card.sc-reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }

@media (max-width: 767px) {
  .sc-card { padding: 1.3rem 1.2rem 1.2rem; }
  .sc-band-cta { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-badge, .sc-band, .sc-badge::before, .sc-status.is-open .sc-dot::after, .sc-card:hover::after { animation: none !important; }
  .sc-reveal { opacity: 1; transform: none; transition: none; }
}
[dir="rtl"] .sc-link i, [dir="rtl"] .sc-band-cta i { transform: scaleX(-1); }
[dir="rtl"] .sc-card:hover .sc-link i { transform: scaleX(-1) translateX(5px); }

/* ==========================================================================
   HOME 1 INTERACTIVE TRIO v17.11 (ix-): eligibility meter, prepayment
   savings and a three-step quiz. Reveal, count-up, bar and step motion.
   ========================================================================== */
.ix { position: relative; padding-block: var(--space-l); overflow: hidden; }
.ix-elig { background: var(--mist); }
.ix-prepay { background: var(--surface, #fff); }
.ix-quiz { background: var(--mist); }
.ix::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  inset-inline-end: -160px;
  inset-block-start: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 214, 226, 0.28), transparent 68%);
  animation: ix-orb 16s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ix-orb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-50px, 40px); } }
.ix-grid { display: grid; gap: clamp(2rem, 4vw, 3.4rem); align-items: center; position: relative; }
@media (min-width: 960px) { .ix-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } .ix-grid-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.ix-intro h2 { margin: 0.6rem 0 0.8rem; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.08; color: var(--ink); }
.ix-sub { margin: 0; color: var(--ink-2); max-width: 46ch; }
.ix-card {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 28px;
  background: var(--surface, #fff);
  border: 1px solid var(--rule);
  box-shadow: 0 34px 60px -44px rgba(6, 38, 45, 0.55);
}

/* Reveal */
.ix-reveal { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 0.9s var(--ease) var(--d, 0ms); }
.ix-reveal.is-in { opacity: 1; transform: none; }

/* Sliders */
.ix-field { display: grid; gap: 0.5rem; }
.ix-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ix-field-head label { font-weight: 700; color: var(--ink); font-size: var(--step--1); }
.ix-field-head output { font-family: var(--font-display); font-size: var(--step-0); color: var(--teal-800); font-variant-numeric: tabular-nums; }
.ix-range { width: 100%; accent-color: var(--teal-800); cursor: pointer; }
.ix-range:focus-visible, .ix-choice:focus-visible, .ix-restart:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Eligibility meter */
.ix-meter { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--mist-2); }
.ix-seg { display: block; height: 100%; width: 0; transition: width 0.7s var(--ease); }
.ix-seg-a { background: #8fa3a7; }
.ix-seg-b { background: var(--aqua); }
.ix-seg-c { background: var(--teal-800); opacity: 0.85; }
.ix-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; font-size: 0.8rem; color: var(--ink-2); }
.ix-legend li { display: flex; align-items: center; gap: 0.4rem; }
.ix-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ix-dot.is-a { background: #8fa3a7; }
.ix-dot.is-b { background: var(--aqua); }
.ix-dot.is-c { background: var(--teal-800); }
.ix-result { padding: 1.2rem 1.3rem; border-radius: 20px; background: var(--teal-900); color: var(--on-dark); }
.ix-result-label { margin: 0; font-size: var(--step--1); color: var(--on-dark-2); }
.ix-big { margin: 0.2rem 0 0.3rem; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; font-variant-numeric: tabular-nums; }
.ix-small { margin: 0; font-size: 0.86rem; color: var(--on-dark-2); }
.ix-small b { color: var(--aqua); }

/* Prepayment bars and stats */
.ix-bars { display: grid; gap: 0.5rem; }
.ix-bar-label { margin: 0.4rem 0 0; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--step--1); color: var(--ink-2); }
.ix-bar-label b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ix-bar { height: 14px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.ix-bar span { display: block; height: 100%; width: 0; background: #9fb3b7; border-radius: 99px; transition: width 0.7s var(--ease); }
.ix-bar.is-after span { background: linear-gradient(90deg, var(--teal-700), var(--aqua)); }
.ix-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.ix-stats > div { display: grid; gap: 0.3rem; padding: 1.1rem; border-radius: 20px; background: var(--teal-900); color: var(--on-dark); }
.ix-stat-num { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--aqua); }
.ix-stat-lab { font-size: 0.78rem; color: var(--on-dark-2); }

/* Quiz */
.ix-quiz-card { min-height: 420px; align-content: start; }
.ix-progress { height: 6px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.ix-progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--teal-700), var(--aqua)); border-radius: 99px; transition: width 0.6s var(--ease); }
.ix-step { margin: 0; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.ix-stage { position: relative; display: grid; }
.ix-q {
  grid-area: 1 / 1;
  display: grid;
  gap: 1rem;
  align-content: start;
  opacity: 0;
  transform: translateX(40px);
  pointer-events: none;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.ix-q.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ix-q.is-prev { transform: translateX(-40px); }
.ix-q h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); color: var(--ink); }
.ix-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.7rem; }
.ix-choice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1.5px solid var(--rule);
  background: transparent;
  color: var(--ink);
  font: 600 var(--step--1) / 1.2 var(--font-text);
  cursor: pointer;
  text-align: start;
  transition: transform 0.35s var(--ease), border-color 0.35s, background-color 0.35s, color 0.35s;
}
.ix-choice i {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mist);
  color: var(--teal-800);
  transition: background-color 0.35s, color 0.35s, transform 0.5s var(--ease);
}
.ix-choice:hover { transform: translateY(-3px); border-color: var(--teal-700); }
.ix-choice:hover i { transform: rotate(-8deg) scale(1.08); }
.ix-choice.is-picked { background: var(--teal-900); border-color: var(--teal-900); color: var(--on-dark); animation: ix-pick 0.45s var(--ease); }
.ix-choice.is-picked i { background: var(--aqua); color: var(--teal-950); }
@keyframes ix-pick { 0% { transform: scale(0.97); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }

.ix-res { text-align: start; }
.ix-res-kicker { margin: 0; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); font-weight: 700; }
.ix-res p { margin: 0; color: var(--ink-2); }
.ix-res h3 { margin: 0.3rem 0 0.4rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.ix-res-note { color: var(--teal-800) !important; font-weight: 600; }
.ix-res-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-top: 0.8rem; }
.ix-restart { background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ix-tick { width: 64px; height: 64px; margin-bottom: 0.4rem; fill: none; stroke: var(--teal-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ix-tick circle { stroke-dasharray: 220; stroke-dashoffset: 220; }
.ix-tick path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.ix-res.is-active .ix-tick circle { animation: ix-draw 0.9s var(--ease) forwards; }
.ix-res.is-active .ix-tick path { animation: ix-draw 0.6s 0.7s var(--ease) forwards; }
@keyframes ix-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 767px) {
  .ix-stats { grid-template-columns: 1fr; }
  .ix-quiz-card { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) {
  .ix::before, .ix-tick circle, .ix-tick path { animation: none !important; stroke-dashoffset: 0 !important; }
  .ix-reveal, .ix-q, .ix-seg, .ix-bar span, .ix-progress span, .ix-choice { transition: none !important; }
}
[dir="rtl"] .ix-choice { text-align: right; }

/* v17.12: footer tips column, extra white text above the subscribe form (all pages) */
.ft-more { display: grid; gap: 0.6rem; margin: 0.2rem 0 1.2rem; color: #fff; }
.ft-more p { margin: 0; color: #fff; font-size: var(--step--1); line-height: 1.6; }
.ft-more .ft-reply { font-style: italic; }

/* v17.19: the sticky stage always fits inside the viewport below the header */
@media (min-width: 1025px) {
  .svs-sticky { top: calc(var(--header-h) + 14px); padding-block: 1rem; gap: 1.1rem; }
  .svs-stage {
    aspect-ratio: auto;
    height: min(460px, calc(100svh - var(--header-h) - 290px));
    min-height: 260px;
    max-height: none;
  }
}

/* ==========================================================================
   SERVICES "READY TO APPLY" v17.20 (dr-): document tray. Five tiles on a
   6-column grid (3 + 2), tap to tick, rubber-stamp READY, progress bar and a
   review CTA that appears when all five are ready.
   ========================================================================== */
.dr { position: relative; overflow: hidden; padding-block: var(--space-l); }
.dr::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  inset-inline-start: -180px;
  inset-block-end: -220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 214, 226, 0.25), transparent 68%);
  pointer-events: none;
  animation: dr-orb 18s ease-in-out infinite;
}
@keyframes dr-orb { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(60px, -40px); } }
.dr > .container { position: relative; }
.dr-head { display: grid; gap: 1rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 2.8rem); }
@media (min-width: 900px) { .dr-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.dr-head h2 { margin: 0.6rem 0 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; color: var(--ink); }
.dr-sub { margin: 0; color: var(--ink-2); max-width: 44ch; }

.dr-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .dr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dr-slot { grid-column: span 2; }
  .dr-slot:nth-child(n + 4) { grid-column: span 3; }
}
.dr-slot { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms); }
.dr.is-in .dr-slot { opacity: 1; transform: none; }
.dr-slot:nth-child(2) { --d: 90ms; }
.dr-slot:nth-child(3) { --d: 180ms; }
.dr-slot:nth-child(4) { --d: 270ms; }
.dr-slot:nth-child(5) { --d: 360ms; }

.dr-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 22px 44px -36px rgba(6, 38, 45, 0.55);
  transition: transform 0.45s var(--ease), background-color 0.45s, border-color 0.45s, color 0.45s, box-shadow 0.45s;
}
.dr-card:hover { transform: translateY(-4px); border-color: var(--teal-700); box-shadow: 0 30px 50px -34px rgba(6, 38, 45, 0.6); }
.dr-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.dr-ico {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--mist);
  color: var(--teal-800);
  font-size: 1.2rem;
  transition: background-color 0.45s, color 0.45s, transform 0.6s var(--ease);
}
.dr-card:hover .dr-ico { transform: rotate(-8deg) scale(1.06); }
.dr-body { display: grid; gap: 0.3rem; min-width: 0; padding-inline-end: 2.2rem; }
.dr-body strong { font-size: var(--step-0); line-height: 1.3; }
.dr-body small { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; transition: color 0.45s; }

/* Rubber stamp */
.dr-stamp {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--aqua);
  border-radius: 8px;
  color: var(--aqua);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: rotate(-14deg) scale(1.6);
  pointer-events: none;
}
.dr-card[aria-pressed="true"] .dr-stamp { animation: dr-stamp 0.55s var(--ease) forwards; }
@keyframes dr-stamp {
  0% { opacity: 0; transform: rotate(-14deg) scale(1.6); }
  60% { opacity: 1; transform: rotate(-14deg) scale(0.92); }
  100% { opacity: 0.95; transform: rotate(-14deg) scale(1); }
}

.dr-card[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: var(--on-dark); box-shadow: 0 30px 50px -30px rgba(6, 38, 45, 0.8); }
.dr-card[aria-pressed="true"] .dr-ico { background: var(--aqua); color: var(--teal-950); }
.dr-card[aria-pressed="true"] .dr-body small { color: var(--on-dark-2); }
.dr-card[aria-pressed="true"] .dr-stamp { border-color: var(--aqua); }
.dr-card[aria-pressed="true"] .dr-ico i::before { content: "\f00c"; }

/* Footer: progress and CTA */
.dr-foot { margin-top: clamp(2rem, 4vw, 2.8rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; transition-delay: 0.2s; }
.dr-meter { display: grid; gap: 0.6rem; min-width: min(100%, 320px); flex: 1 1 320px; max-width: 520px; }
.dr-bar { height: 10px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.dr-bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--teal-700), var(--aqua)); transition: width 0.7s var(--ease); }
.dr-count { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
.dr-count b { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); font-weight: 500; }
.dr-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
  opacity: 0.35;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.3s;
}
.dr.is-complete .dr-cta { opacity: 1; transform: none; pointer-events: auto; animation: dr-glow 2.4s ease-in-out infinite; }
.dr-cta:hover { background: #04191e; }
.dr-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[dir="rtl"] .dr-cta i { transform: scaleX(-1); }
@keyframes dr-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(127, 214, 226, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(127, 214, 226, 0); } }

.dr-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.dr.is-in .dr-reveal { opacity: 1; transform: none; }

@media (max-width: 767px) {
  .dr-card { padding: 1.2rem; }
  .dr-body { padding-inline-end: 1.8rem; }
  .dr-cta { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dr::before, .dr-cta, .dr-card[aria-pressed="true"] .dr-stamp { animation: none !important; }
  .dr-slot, .dr-reveal, .dr-bar span, .dr-card, .dr-ico, .dr-stamp { transition: none !important; }
  .dr-slot { opacity: 1; transform: none; }
  .dr-reveal { opacity: 1; transform: none; }
}

/* v17.20.1: stamp sits in the card's grid (top-right), so it never covers text */
.dr-card { grid-template-columns: auto minmax(0, 1fr) auto; }
.dr-stamp { position: static; align-self: start; justify-self: end; margin-top: 0.1rem; }
.dr-body { padding-inline-end: 0; }
@media (max-width: 767px) { .dr-body { padding-inline-end: 0; } }

/* v17.20.2: room between the numbers cards and the CTA at every size */
.hz-media { height: clamp(120px, 19vh, 220px); }
.hz-sticky { gap: clamp(0.9rem, 2vh, 1.4rem); padding-block-end: 2.75rem; }

/* ==========================================================================
   v17.25: "Ready to apply" redesign (rd-). Sticky side panel with a progress
   ring and CTA, and a vertical list of document rows with tick circles.
   ========================================================================== */
.rd-wrap { display: grid; gap: clamp(2.2rem, 4vw, 3.6rem); align-items: start; }
@media (min-width: 900px) {
  .rd-wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .rd-side { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.rd-side h2 { margin: 0.6rem 0 0; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; color: var(--ink); }
.rd-sub { margin: 1rem 0 0; color: var(--ink-2); max-width: 40ch; }
.rd-progress { display: flex; align-items: center; gap: 1.2rem; margin-block: clamp(1.8rem, 3.4vw, 2.6rem); }
.rd-ring { position: relative; width: 124px; height: 124px; flex: none; }
.rd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.rd-ring circle { fill: none; stroke-width: 9; }
.rd-track { stroke: var(--mist-2); }
.rd-fill {
  stroke: var(--teal-700);
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.8s var(--ease), stroke 0.4s;
}
.dr.is-complete .rd-fill { stroke: var(--aqua); }
.rd-ring > span {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.rd-ring b { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; line-height: 1; }
.rd-ring small { margin-top: 0.2rem; color: var(--ink-2); font-size: var(--step--1); }
.rd-note { margin: 0; color: var(--ink-2); line-height: 1.5; }

.rd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); }
/* The shared .dr-slot spans were written for the 6-column grid. In this single-column list
   they create extra implicit columns, so some rows were narrower and others ran past the edge. */
.rd-list > .dr-slot { grid-column: auto; min-width: 0; }
.rd-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-radius: 20px;
  border: 1px solid var(--rule);
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: 0 20px 40px -34px rgba(6, 38, 45, 0.55);
  transition: background-color 0.45s, border-color 0.45s, color 0.45s, transform 0.45s var(--ease), box-shadow 0.45s;
}
.rd-item:hover { transform: translateY(-2px); border-color: var(--teal-700); box-shadow: 0 28px 46px -34px rgba(6, 38, 45, 0.6); }
.rd-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rd-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--teal-700);
  min-width: 2ch;
  transition: color 0.45s;
}
.rd-ico {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--mist);
  color: var(--teal-800);
  transition: background-color 0.45s, color 0.45s;
}
.rd-body { display: grid; gap: 0.2rem; min-width: 0; }
.rd-body strong { font-size: var(--step-0); line-height: 1.3; }
.rd-body small { color: var(--ink-2); font-size: var(--step--1); line-height: 1.5; transition: color 0.45s; }
.rd-tick {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--rule);
  color: transparent;
  font-size: 0.8rem;
  transition: background-color 0.45s, border-color 0.45s, color 0.45s, transform 0.45s var(--ease);
}
.rd-item[aria-pressed="true"] { background: var(--teal-900); border-color: var(--teal-900); color: var(--on-dark); box-shadow: 0 30px 50px -30px rgba(6, 38, 45, 0.8); }
.rd-item[aria-pressed="true"] .rd-num { color: var(--aqua); }
.rd-item[aria-pressed="true"] .rd-ico { background: var(--aqua); color: var(--teal-950); }
.rd-item[aria-pressed="true"] .rd-body small { color: var(--on-dark-2); }
.rd-item[aria-pressed="true"] .rd-tick { background: var(--aqua); border-color: var(--aqua); color: var(--teal-950); transform: scale(1.08); }

@media (max-width: 560px) {
  .rd-item { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1rem; gap: 0.8rem; }
  .rd-num { display: none; }
  .rd-ico { width: 42px; height: 42px; }
  .rd-ring { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-fill, .rd-item, .rd-tick, .rd-ico, .rd-num, .rd-body small { transition: none !important; }
}

/* ==========================================================================
   v17.26: Contact hero (cj-). A single "Your enquiry" journey card replaces
   the floating tickets: four steps, a line that fills to the current step,
   a live pulse on that step, and a free / no-obligation footer.
   ========================================================================== */
.ct-journey { position: relative; width: 100%; max-width: 460px; min-width: 0; justify-self: center; }
.cj-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(166, 231, 239, 0.26);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.6);
  animation: cjFloat 7s ease-in-out infinite;
}
@keyframes cjFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.cj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px dashed rgba(166, 231, 239, 0.3);
}
.cj-tag { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); }
.cj-top em { font-style: normal; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--warm); }

.cj-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1.2rem; }
.cj-steps::before {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: rgba(166, 231, 239, 0.22);
}
.cj-steps::after {
  /* fills from the top down to the current (second) step */
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 22px;
  height: calc((100% - 44px) / 3);
  width: 2px;
  background: var(--aqua);
  transform-origin: top;
  transform: scaleY(0);
  animation: cjLine 1.8s var(--ease) 0.5s forwards;
}
@keyframes cjLine { to { transform: scaleY(1); } }
.cj-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: center; }
.cj-steps li:not(.is-done):not(.is-live) { opacity: 0.85; }
.cj-steps strong { display: block; font-size: var(--step-0); line-height: 1.3; color: var(--on-dark); }
.cj-steps li > div > span { display: block; font-size: var(--step--1); color: var(--on-dark-2); line-height: 1.45; }
.cj-dot {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(166, 231, 239, 0.3);
  color: var(--on-dark);
}
.cj-steps .is-done .cj-dot { background: var(--aqua); border-color: var(--aqua); color: var(--teal-950); }
.cj-steps .is-live .cj-dot { background: var(--warm); border-color: var(--warm); color: var(--teal-950); }
.cj-steps .is-live .cj-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--warm);
  animation: cjRing 1.8s ease-out infinite;
}
@keyframes cjRing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.7); opacity: 0; } }

.cj-foot {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed rgba(166, 231, 239, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  font-size: var(--step--1);
  color: var(--on-dark-2);
}
.cj-foot span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cj-foot i { color: var(--aqua); }

@media (prefers-reduced-motion: reduce) {
  .cj-card, .cj-steps .is-live .cj-dot::after { animation: none !important; }
  .cj-steps::after { transform: scaleY(1); animation: none !important; }
}


/* ==========================================================================
   v17.27: EMI hero motion (eh-). Headline words rise in turn, the dial draws
   itself with a glowing light orbiting the ring, the EMI counts up, the chips
   float, the example figures count up, and the dial tilts with the pointer.
   ========================================================================== */
.emi-hero h1 .w { display: inline-block; animation: ehWord 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms + 120ms); }
@keyframes ehWord { from { opacity: 0; transform: translateY(0.55em) rotate(2deg); } to { opacity: 1; transform: none; } }
.eh-in { animation: ehRise 0.9s var(--ease) both; animation-delay: calc(var(--i, 0) * 85ms + 120ms); }
.emi-dial.eh-in { animation-name: ehDialIn; }
@keyframes ehRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ehDialIn { from { opacity: 0; transform: scale(0.86) rotate(-6deg); } to { opacity: 1; transform: none; } }

.emi-dial .dial-stage { transform: perspective(900px) rotateX(var(--ex, 0deg)) rotateY(var(--ey, 0deg)); transition: transform 0.45s var(--ease); }
.dial-halo {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 214, 226, 0.3), rgba(244, 184, 96, 0.08) 45%, transparent 68%);
  animation: ehBreathe 5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes ehBreathe { 0%, 100% { transform: scale(0.94); opacity: 0.7; } 50% { transform: scale(1.06); opacity: 1; } }
.dial-principal { animation: ehDraw 1.7s var(--ease) 0.35s both; }
@keyframes ehDraw { from { stroke-dasharray: 0 565.49; } to { stroke-dasharray: 271.4 565.49; } }
.dial-interest { animation: ehFade 1.2s ease 0.1s both; }
@keyframes ehFade { from { opacity: 0; } to { opacity: 1; } }
.dial-orbit { position: absolute; inset: 0; pointer-events: none; animation: ehSpin 9s linear infinite; }
.dial-orbit::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 9.09%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.16), 0 0 24px 8px rgba(127, 214, 226, 0.75);
}
@keyframes ehSpin { to { transform: rotate(360deg); } }
.dial-core strong { animation: ehPop 0.8s var(--ease) 1.2s both; }
@keyframes ehPop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }
.dial-chip { animation: ehChipIn 0.8s var(--ease) 1.1s both, ehFloat 6s ease-in-out 1.9s infinite; }
.dial-chip-b { animation-delay: 1.3s, 3s; }
@keyframes ehChipIn { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ehFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.dial-chip-a { animation-name: ehChipIn, ehFloat; }

.eh-stats {
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
  padding-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 38rem;
  border-top: 1px solid rgba(166, 231, 239, 0.22);
}
.eh-stats > div { min-width: 0; padding-inline-start: 1rem; border-inline-start: 1px solid rgba(166, 231, 239, 0.2); }
.eh-stats > div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.eh-stats dt { font-size: var(--step--1); color: var(--on-dark-2); }
.eh-stats dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 0.9rem + 0.9vw, 1.6rem);
  line-height: 1.1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .eh-stats { grid-template-columns: 1fr; gap: 0.9rem; }
  .eh-stats > div { border: 0; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .emi-hero h1 .w, .eh-in, .emi-dial.eh-in, .dial-halo, .dial-orbit, .dial-principal, .dial-interest,
  .dial-core strong, .dial-chip, .dial-chip-a, .dial-chip-b { animation: none !important; }
  .emi-dial .dial-stage { transform: none; }
}

/* ==========================================================================
   v17.28: EMI calculator console motion (ec-). Sliding loan-type highlight,
   counting EMI, animated donut and split bar, pulse on change, sparks on
   loan-type change, 3D tilt on the result card, drifting background orbs and
   a staggered entrance for the inputs.
   ========================================================================== */
@property --p { syntax: '<number>'; inherits: true; initial-value: 50; }
.emi-donut { transition: --p 1s var(--ease); }

.emi-types { position: relative; }
.ec-glider {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-800));
  box-shadow: 0 10px 22px -12px rgba(6, 38, 45, 0.6);
  transition: transform 0.6s var(--ease), width 0.6s var(--ease), height 0.6s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.emi-types .emi-type { position: relative; z-index: 1; background: transparent; }
.emi-types .emi-type[aria-selected="true"],
.emi-types .emi-type[aria-selected="true"]:hover { background: transparent; color: var(--on-dark); box-shadow: none; }

.ec-console { overflow: hidden; isolation: isolate; }
.ec-ambient { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ec-ambient span { position: absolute; width: 380px; height: 380px; border-radius: 50%; filter: blur(64px); opacity: 0.22; animation: ecDrift 16s ease-in-out infinite; }
.ec-ambient span:nth-child(1) { top: -170px; inset-inline-end: -120px; background: var(--aqua); }
.ec-ambient span:nth-child(2) { bottom: -190px; inset-inline-start: -140px; background: var(--warm); animation-delay: -6s; }
.ec-ambient span:nth-child(3) { top: 42%; inset-inline-start: 38%; width: 260px; height: 260px; background: var(--aqua); opacity: 0.1; animation-delay: -10s; }
@keyframes ecDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.08); } }

.ec-console .emi-field { animation: ecIn 0.8s var(--ease) both; }
.ec-console .emi-field:nth-child(1) { animation-delay: 0.1s; }
.ec-console .emi-field:nth-child(2) { animation-delay: 0.22s; }
.ec-console .emi-field:nth-child(3) { animation-delay: 0.34s; }
@keyframes ecIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.emi-field > input[type="range"]::-webkit-slider-thumb { transition: transform 0.2s, box-shadow 0.2s; }
.emi-field > input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(127, 214, 226, 0.35); }
.emi-field > input[type="range"]:active::-moz-range-thumb { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(127, 214, 226, 0.35); }

.ec-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--teal-800);
  font-size: var(--step--1);
  font-weight: 700;
}
.ec-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-700); animation: ecPulse 1.8s infinite; }
@keyframes ecPulse { 0% { box-shadow: 0 0 0 0 rgba(15, 85, 99, 0.45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(15, 85, 99, 0); } }

.ec-result {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s var(--ease);
  will-change: transform;
}
.ec-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: ecSheen 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ecSheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.ec-result > * { position: relative; }
.ec-result.is-bump .emi-result-value { animation: ecBump 0.6s var(--ease); }
@keyframes ecBump { 0% { transform: scale(1); } 35% { transform: scale(1.06); color: var(--aqua); } 100% { transform: scale(1); } }

.ec-split { height: 10px; border-radius: 99px; background: var(--warm); overflow: hidden; }
.ec-split span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--aqua), #9fe8f2); transition: width 0.9s var(--ease); }
.ec-split-note { display: flex; justify-content: space-between; margin: -0.6rem 0 0; font-size: var(--step--1); color: var(--on-dark-2); }
.ec-split-note span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 0.4rem; background: var(--aqua); }
.ec-split-note span + span::before { background: var(--warm); }

.ec-spark {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--aqua));
  pointer-events: none;
  animation: ecSpark 0.9s var(--ease) forwards;
}
@keyframes ecSpark {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-ambient span, .ec-result::before, .ec-console .emi-field, .ec-live i, .ec-spark { animation: none !important; }
  .ec-console .emi-field { opacity: 1; transform: none; }
  .ec-glider, .ec-split span, .emi-donut, .ec-result { transition: none !important; }
  .ec-result { transform: none; }
}

/* ==========================================================================
   v17.29: "Same loan, other tenures" card under the EMI inputs (ec-ten-).
   Fills the left column; each row shows the EMI and total interest for a
   tenure, and tapping a row sets that tenure.
   ========================================================================== */
.ec-tenures {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.1rem, 2.4vw, 1.4rem);
  border-radius: 22px;
  background: var(--mist);
  border: 1px solid var(--rule);
  animation: ecIn 0.8s var(--ease) 0.46s both;
}
.ec-ten-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.3rem 1rem; }
.ec-ten-head h3 { margin: 0; font-family: var(--font-text); font-size: var(--step-0); font-weight: 700; color: var(--ink); }
.ec-ten-head span { font-size: var(--step--1); color: var(--ink-2); }
.ec-ten-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.ec-ten {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface, #fff);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.ec-ten:hover { transform: translateY(-2px); border-color: var(--rule); }
.ec-ten:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ec-ten.is-on { border-color: var(--teal-700); box-shadow: inset 0 0 0 1px var(--teal-700); }
.ec-ten-y { font-weight: 700; font-size: var(--step--1); }
.ec-ten-mid { display: grid; gap: 0.3rem; min-width: 0; }
.ec-ten-bar { display: block; height: 8px; border-radius: 99px; background: var(--mist-2); overflow: hidden; }
.ec-ten-bar i {
  display: block;
  width: 100%;
  max-width: var(--w, 0%);
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--warm), #f7cf8a);
  animation: ecGrow 0.9s var(--ease) both;
}
@keyframes ecGrow { from { max-width: 0; } }
.ec-ten-mid small { font-size: 0.75rem; color: var(--ink-2); }
.ec-ten-emi { font-family: var(--font-display); font-size: var(--step-0); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-ten.is-on .ec-ten-emi { color: var(--teal-800); }
@media (prefers-reduced-motion: reduce) {
  .ec-tenures, .ec-ten-bar i { animation: none !important; }
  .ec-ten { transition: none; }
}
@media (max-width: 560px) {
  .ec-ten { grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.6rem 0.7rem; }
  .ec-ten-emi { font-size: 1rem; }
  .ec-ten-mid small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* v17.30: the result card spreads its content over the full height, so it
   ends level with the left column without an empty band at the bottom. */
.emi-console-grid > .ec-result { align-content: space-between; }

/* v17.31: Services page only. The ticker strip takes the tint so the
   alternating white / tint rhythm holds down to the numbers section. */
.svc-page .ap { background: var(--mist); }

/* ==========================================================================
   v17.32: page-change loader (pl-). Full-screen brand overlay shown while
   moving between pages. Fades in on click and out once the new page is ready.
   ========================================================================== */
.pl-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(127, 214, 226, 0.2), transparent 60%),
    linear-gradient(160deg, var(--teal-900), var(--teal-950));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.pl-loader.is-in { opacity: 1; visibility: visible; pointer-events: auto; }
.pl-inner { display: grid; justify-items: center; gap: 0.5rem; text-align: center; color: var(--on-dark); transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.pl-loader.is-in .pl-inner { transform: none; opacity: 1; }
.pl-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  animation: plBreathe 1.6s ease-in-out infinite;
}
.pl-tag { font-size: var(--step--1); color: var(--on-dark-2); }
.pl-track { position: relative; width: min(240px, 60vw); height: 3px; margin-top: 1.1rem; border-radius: 99px; background: rgba(166, 231, 239, 0.2); overflow: hidden; }
.pl-bar {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--aqua), var(--warm));
}
/* The fill runs only when the overlay is shown, so it always starts from empty */
.pl-loader.is-in .pl-bar { animation: plFill 0.7s var(--ease) 0.25s forwards; }
@keyframes plFill { from { width: 0; } to { width: 100%; } }
@keyframes plBreathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; text-shadow: 0 0 24px rgba(127, 214, 226, 0.45); } }
@media (prefers-reduced-motion: reduce) {
  .pl-brand { animation: none; }
  .pl-bar { animation: none; width: 100%; }
  .pl-inner { transform: none; }
}

/* v17.33: dropdown arrows sit a comfortable distance in from the box edge.
   The native arrow is replaced by a teal chevron, with extra room on the end. */
.ldf-select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f5563' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 18px 18px;
  cursor: pointer;
}
[dir="rtl"] .ldf-select { background-position: left 1.25rem center; }

/* v17.34: form fields keep their rows at the top, so side-by-side fields line up
   (no extra space is pushed into the label row). */
.ct-field { align-content: start; }

/* v17.35: footer subscribe box sits closer to the reply line above it (all pages).
   The column's 1.1rem flex gap is partly pulled back, so the box follows the text. */
.ft-news > .ft-more { margin-bottom: 0; }
.ft-news > .ft-form { margin-top: -0.6rem; }

/* v17.36: footer location line with icon (two lines), replaces the italic reply line. */
.ft-more .ft-loc {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-style: normal;
  color: #fff;
}
.ft-more .ft-loc i { margin-top: 0.3em; color: var(--warm); flex: 0 0 auto; }
.ft-more .ft-loc span { display: block; }

/* ===== Hero video dialog ===== */
.hv-video {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(3, 20, 24, 0.84);
  backdrop-filter: blur(6px);
}
.hv-video[hidden] { display: none; }
.hv-video-box { position: relative; width: min(960px, 100%); min-width: 0; }
.hv-video-player {
  display: block;
  width: 100%;
  max-height: 84vh;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}
.hv-video-close {
  position: absolute;
  inset-block-start: 0.6rem;
  inset-inline-end: 0.6rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6, 38, 45, 0.92);
  color: var(--on-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.hv-video-close:hover { background: var(--teal-950); transform: rotate(90deg); }
.hv-video-close:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; }
body.is-video-open { overflow: hidden; }

/* ===== Footer: all content white; column headings stay aqua ===== */
.site-footer,
.site-footer p,
.site-footer li,
.site-footer a,
.site-footer i,
.site-footer .ft-about,
.site-footer .ft-note,
.site-footer .ft-base,
.site-footer .ft-base a { color: #fff; }
.site-footer .ft-heading { color: var(--aqua); }
.site-footer .ft-input input { color: #fff; }
.site-footer .ft-input input::placeholder { color: #fff; opacity: 0.75; }
.site-footer .ft-input button,
.site-footer .ft-input button i { color: var(--teal-950); }
