@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600&family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

/* ============================================================
   9 Yards Financial Services — Concept E "Modern Chic"
   Calm, photography-led system: one idea per screen, huge quiet
   headlines, rounded cards on warm linen, orange only ever means
   "act here". The nine-tick device survives only as the header's
   scroll gauge (Jono, 29 Sep 2026: no rule above text areas).
   ============================================================ */

:root {
  --petrol: #293b40;
  --petrol-dark: #1e2c32;
  --petrol-deep: #16232a;
  --orange: #f57e25;
  --orange-dark: #c85d16;
  --ink: #22292c;
  --muted: #5c6a70;
  --line: #e0ddd5;
  --linen: #f2f0ec;
  --paper: #ffffff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(22, 35, 42, 0.08);
  --shadow-lift: 0 18px 44px rgba(22, 35, 42, 0.12);
  --wrap: 1180px;
  --wrap-wide: 1320px;
  --focus-ring: 3px solid var(--orange);
  /* Wealth builder hover fill: the client's Wealth brand colour */
  --wealth-green: #5ad98d;
  /* One hero height for every page (Jono, 28 Sep 2026: inner-page heroes
     match the home hero). Phone value set in the 640px query. A hero only
     grows past this when its copy needs more room; it never clips. */
  --hero-height: clamp(560px, 88vh, 880px);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 92px;
}
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
a {
  color: var(--petrol-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--orange-dark);
}
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
h1,
h2 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
}
.h-em {
  font-weight: 600;
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
p {
  margin: 0 0 1em;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--petrol);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px;
}
.wrap {
  width: min(var(--wrap), calc(100% - 3rem));
  margin-inline: auto;
}
.wrap-wide {
  width: min(var(--wrap-wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 58ch;
}
.on-dark,
.on-dark p {
  color: rgba(255, 255, 255, 0.88);
}
.on-dark h1,
.on-dark h2 {
  color: #fff;
}
.on-dark a {
  color: #fff;
}
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--petrol);
}
.text-link:hover {
  color: var(--orange-dark);
}

/* Numerals: quiet solid, light weight (shared: /our-process/ + wizard) */
.yard-num {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1;
  color: var(--petrol);
  letter-spacing: -0.01em;
  user-select: none;
}

/* ---------- Header: immersive over the hero, floating card on scroll ----------
   At the top of the page the bar is transparent over the photo/petrol hero
   (white logo + links). Past 24px it condenses into a floating rounded white
   card with a soft shadow and a thin orange scroll-progress line. Solid
   surfaces only - no glass. Without JS it falls back to a solid white bar. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  transition: padding 0.3s ease;
}
.header-inner {
  position: relative;
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 66px;
  padding: 0 clamp(0.9rem, 2vw, 1.6rem);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, min-height 0.3s ease;
}
html.js .site-header.scrolled {
  padding: 10px 0;
}
html.js .site-header.scrolled .header-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(22, 35, 42, 0.18);
  min-height: 72px;
}
@supports (backdrop-filter: blur(1px)) {
  html.js .site-header.scrolled .header-inner {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
  }
}
/* No-JS fallback: always a solid bar */
html:not(.js) .site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.header-logo {
  display: inline-flex;
  position: relative;
}
.header-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.25s ease;
}
.header-logo .logo-light {
  position: absolute;
  inset: 0;
  height: 40px;
}
/* Top-of-page (over hero): light logo + white links */
html.js .site-header:not(.scrolled) .logo-dark {
  opacity: 0;
}
html.js .site-header.scrolled .logo-light,
html:not(.js) .logo-light {
  opacity: 0;
}
/* White nav treatment only where the nav sits in the bar itself (desktop);
   the mobile panel is always a white card with petrol links */
@media (min-width: 1181px) {
  html.js .site-header:not(.scrolled) .site-nav a.nav-link,
  html.js .site-header:not(.scrolled) .header-phone {
    color: #fff;
  }
  html.js .site-header:not(.scrolled) .site-nav a.nav-link:hover,
  html.js .site-header:not(.scrolled) .header-phone:hover {
    color: var(--orange);
  }
  html.js .site-header:not(.scrolled) .site-nav .header-apply.btn-primary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
  }
  html.js .site-header:not(.scrolled) .site-nav .header-apply.btn-primary:hover {
    background: rgba(255, 255, 255, 0.16);
  }
}
/* Thin orange scroll-progress line along the card's bottom edge */
/* Scroll gauge: the quiet nine as ticks along the card's bottom edge -
   faint until earned, ninth tick lights at journey's end */
.header-progress {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  bottom: 5px;
  height: 2px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.header-progress i {
  flex: 1;
  border-radius: 2px;
  background: rgba(92, 106, 112, 0.22);
  transition: background 0.3s ease;
}
.header-progress i.filled {
  background: var(--orange);
}
html.js .site-header.scrolled .header-progress {
  opacity: 1;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}
.site-nav > .nav-item {
  position: relative;
}
.site-nav a.nav-link {
  color: var(--petrol);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 0.6rem 0.15rem;
  white-space: nowrap;
}
.header-apply {
  white-space: nowrap;
}
.site-nav a.nav-link:hover,
.site-nav .nav-item:focus-within > a.nav-link {
  color: var(--orange-dark);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -0.8rem;
  background: var(--paper);
  min-width: 250px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-dropdown a:hover {
  background: var(--linen);
  color: var(--orange-dark);
}
.header-phone {
  color: var(--petrol);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--orange-dark);
}
.nav-toggle {
  display: none;
}
/* Header Apply: petrol pill (orange stays reserved for page CTAs) */
.site-nav .header-apply.btn-primary {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff;
  min-height: 42px;
  padding: 0.5rem 1.3rem;
  font-size: 0.9rem;
}
.site-nav .header-apply.btn-primary:hover {
  background: var(--petrol-deep);
  border-color: var(--petrol-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.75rem 1.8rem;
  white-space: nowrap;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--orange);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--petrol);
  border-color: var(--petrol);
}
.btn-ghost:hover {
  background: var(--petrol);
  color: #fff;
}
.on-dark .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.on-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-small {
  min-height: 42px;
  padding: 0.5rem 1.2rem;
  font-size: 0.88rem;
}

/* ---------- Full-bleed home hero ---------- */
.hero-full {
  position: relative;
  min-height: var(--hero-height);
  /* The inner wrap carries the spacing, so min-height alone sets the size */
  padding: 0;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-full picture,
.hero-full-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-full-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 35, 42, 0.42) 0%, rgba(22, 35, 42, 0.08) 45%, rgba(22, 35, 42, 0.62) 100%);
  pointer-events: none;
}
.hero-full-inner {
  position: relative;
  z-index: 2;
  /* top clears the fixed 78px header when the copy outgrows min-height */
  padding: calc(78px + clamp(1.5rem, 4vw, 3rem)) 0 clamp(2.6rem, 6vw, 5rem);
}
.hero-full h1 {
  color: #fff;
  max-width: 17ch;
  margin-bottom: 0.55em;
  text-shadow: 0 2px 24px rgba(22, 35, 42, 0.35);
}
.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 1px 14px rgba(22, 35, 42, 0.4);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.hero-phone {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
}
.hero-phone:hover {
  color: #fff;
  border-color: #fff;
}
.google-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--paper);
  color: var(--petrol);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  box-shadow: var(--shadow-soft);
}
.google-chip:hover {
  color: var(--petrol);
  transform: translateY(-1px);
}
.google-chip .stars {
  font-size: 0.9rem;
}

/* ---------- Home hero choices (Sept 2026: funnel to the landing sites) ---------- */
.hero-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 820px;
  margin-bottom: 1.3rem;
}
.hero-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.05rem 2.8rem 1rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(22, 35, 42, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.hero-choice:hover,
.hero-choice:focus-visible {
  background: #fff;
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(22, 35, 42, 0.3);
}
.hero-choice strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--petrol);
}
.hero-choice small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-choice .card-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
}
.hero-choice:hover .card-arrow {
  transform: translateY(-50%) translateX(4px);
}
/* Hover/focus fills: orange with white text for the landing-site pair;
   the light wealth green takes petrol text instead, since white fails
   contrast on it (petrol on #5ad98d is 6.55:1). */
.hero-choice--mortgage,
.hero-choice--kiwisaver {
  --choice-fill: var(--orange);
}
.hero-choice--wealth {
  --choice-fill: var(--wealth-green);
}
.hero-choice--mortgage:is(:hover, :focus-visible),
.hero-choice--kiwisaver:is(:hover, :focus-visible),
.hero-choice--wealth:is(:hover, :focus-visible) {
  background: var(--choice-fill);
}
.hero-choice--mortgage:is(:hover, :focus-visible) :is(strong, small, .card-arrow),
.hero-choice--kiwisaver:is(:hover, :focus-visible) :is(strong, small, .card-arrow) {
  color: #fff;
}
.hero-choice--wealth:is(:hover, :focus-visible) :is(strong, small, .card-arrow) {
  color: var(--petrol);
}
/* White on the brand orange is light, so the text gets a soft shadow */
.hero-choice--mortgage:is(:hover, :focus-visible),
.hero-choice--kiwisaver:is(:hover, :focus-visible) {
  text-shadow: 0 1px 2px rgba(22, 35, 42, 0.45);
}
.hero-choice:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.hero-full-inner > .hero-phone {
  display: inline-block;
}
/* Per-photo focal points so subjects sit clear of the left-aligned copy */
.hero-full-photo.hero-focus-ridersCity {
  object-position: 50% 78%;
}
.hero-full-photo.hero-focus-central {
  object-position: 30% 50%;
}
/* Team shots: keep the left-hand people in frame on narrow screens */
.hero-full-photo.hero-focus-teamBuilding {
  object-position: 34% 50%;
}
.hero-full-photo.hero-focus-teamCafe {
  object-position: 30% 50%;
}
.hero-full-photo.hero-focus-ellaPark {
  object-position: 22% 50%;
}
.hero-full-photo.hero-focus-teamCoffeeTable {
  object-position: 50% 100%;
}

/* Landing-site hand-off band (replaces the on-page wizard) */
.handoff-band {
  background: var(--linen);
  padding: clamp(2.4rem, 4.5vw, 3.4rem) 0;
}
.handoff-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem 2rem;
}
.handoff-inner h2 {
  margin: 0;
}
.handoff-inner .kicker {
  margin-bottom: 0.4rem;
}
.hero-phone.handoff-phone {
  color: var(--petrol);
  border-color: rgba(22, 35, 42, 0.35);
}
.hero-phone.handoff-phone:hover {
  color: var(--petrol);
  border-color: var(--petrol);
}

/* ---------- Inner-page heroes: home-style full-bleed photo ---------- */
.hero-full--page .kicker {
  color: rgba(255, 255, 255, 0.78);
}
.hero-full--page h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
}
.hero-full-scrim--page {
  background:
    linear-gradient(90deg, rgba(22, 35, 42, 0.55) 0%, rgba(22, 35, 42, 0.18) 55%, rgba(22, 35, 42, 0) 80%),
    linear-gradient(180deg, rgba(22, 35, 42, 0.5) 0%, rgba(22, 35, 42, 0.12) 40%, rgba(22, 35, 42, 0.7) 100%);
}
.page-hero--photo {
  position: relative;
  overflow: hidden;
  background: var(--petrol);
  display: flex;
  align-items: flex-end;
  min-height: var(--hero-height);
  padding-bottom: clamp(2.6rem, 6vw, 5rem);
}
.page-hero--photo > .wrap {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 3rem));
}
.page-hero--photo h1,
.page-hero--photo .lede {
  text-shadow: 0 2px 20px rgba(22, 35, 42, 0.4);
}
.hero-full-scrim--slim {
  background:
    linear-gradient(90deg, rgba(22, 35, 42, 0.5) 0%, rgba(22, 35, 42, 0.15) 60%, rgba(22, 35, 42, 0) 85%),
    linear-gradient(180deg, rgba(22, 35, 42, 0.55) 0%, rgba(22, 35, 42, 0.35) 45%, rgba(22, 35, 42, 0.78) 100%);
}

/* ---------- Intent strip (the application box, calm form) ---------- */
.intent-strip {
  background: var(--linen);
  padding: clamp(2rem, 3.5vw, 2.8rem) 0;
}
.fork {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
}
.fork-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  padding: 1.15rem 1.3rem 1.1rem;
  padding-right: 2.6rem;
  font-family: var(--body);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.fork-card:hover {
  border-color: var(--petrol);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}
.fork-card strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
}
.fork-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.fork-card .card-arrow {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
}
.card-arrow {
  color: var(--petrol);
  font-size: 1.15rem;
  transition: transform 0.18s ease, color 0.18s ease;
}
a:hover > .card-arrow,
a:hover .card-arrow {
  transform: translateX(4px);
  color: var(--orange-dark);
}
.fork-card:hover .card-arrow {
  transform: translateY(-50%) translateX(4px);
}

/* ---------- Services icon row ---------- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.icon-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  color: var(--ink);
}
.icon-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.7rem;
}
.icon-label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--petrol);
}
.icon-line {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.icon-card .card-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

/* ---------- Review strip ---------- */
.review-strip {
  background: var(--linen);
}
.review-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.review-head .kicker {
  margin-bottom: 0.4rem;
}
.review-badge {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.review-badge a {
  font-weight: 600;
}
.review-arrows {
  display: flex;
  gap: 0.5rem;
}
.review-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--petrol);
  background: transparent;
  color: var(--petrol);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.review-arrow:hover {
  background: var(--petrol);
  color: #fff;
}
.review-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(360px, 84%);
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.review-track::-webkit-scrollbar {
  display: none;
}
.review-card {
  scroll-snap-align: start;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.4rem;
  margin: 0;
  box-shadow: var(--shadow-soft);
}
.review-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.review-card figcaption {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--petrol);
}
.review-card figcaption span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}
.stars {
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.review-card .stars {
  display: block;
  margin-bottom: 0.5rem;
}
.review-source {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.review-source a {
  color: inherit;
}

/* ---------- Sections ---------- */
section {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0;
}
.intent-strip,
.review-strip {
  padding: clamp(2.4rem, 4.5vw, 3.5rem) 0;
}
.section-head {
  max-width: 100%;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}
.section-head h2 {
  max-width: 24ch;
}

/* ---------- Who you'll deal with ---------- */
.who-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Square, not portrait: the team group shot is a landscape row of four and
   a 4/5 crop clips the people at either end. */
.who-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 1;
  object-fit: cover;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem 2.4rem;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 0.35rem;
  color: var(--petrol);
}
.stat span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Services grid (hub page) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.2vw, 1.8rem);
}
.service-card {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  color: var(--ink);
}
.service-card.featured {
  grid-column: span 4;
  grid-row: span 2;
}
.service-card .card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--petrol);
}
.service-card.featured .card-media {
  aspect-ratio: auto;
  flex: 1;
  min-height: 260px;
}
.service-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .card-kicker {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: var(--paper);
  color: var(--petrol);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.service-card .card-body {
  padding: 1.2rem 1.4rem 1.35rem;
}
.service-card .card-body h3 {
  margin-bottom: 0.35rem;
}
.service-card .card-body p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}
.service-card .card-cta {
  margin-top: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--petrol);
}
.service-card:hover .card-cta {
  color: var(--orange-dark);
}
/* Label variant kept for compatibility */
.service-card--label .card-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

/* ---------- Journey (/our-process/) ---------- */
.journey {
  background: var(--linen);
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.journey-step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-soft);
}
.journey-step .yard-num {
  font-size: 2.4rem;
  color: var(--muted);
}
.journey-step h3 {
  color: var(--petrol);
  margin: 0.7rem 0 0.4rem;
}
.journey-step p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Proof / quotes ---------- */
.proof {
  background: var(--linen);
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.quote-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem 1.4rem;
  position: relative;
  margin: 0;
  box-shadow: var(--shadow-soft);
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.quote-card figcaption {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--petrol);
}
.quote-card figcaption span {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.video-grid .video-frame,
.process-video .video-frame {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.video-grid iframe,
.process-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FAQ accordion (rounded cards, + toggles) ---------- */
.faq-list {
  max-width: 820px;
}
.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  padding: 0 1.4rem;
  transition: box-shadow 0.18s ease;
}
.faq-list details[open] {
  box-shadow: var(--shadow-soft);
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.05rem 2.2rem 1.05rem 0;
  list-style: none;
  position: relative;
  color: var(--petrol);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--petrol);
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.6rem;
}
.faq-list details[open] summary::after {
  content: "\2212";
}
.faq-list details p {
  color: var(--muted);
  padding-bottom: 1.15rem;
  margin: 0 0 0.4rem;
  max-width: 68ch;
}

/* ---------- Wizard ---------- */
.wizard {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  max-width: 720px;
  color: var(--ink);
}
.wizard-head {
  background: var(--linen);
  color: var(--petrol);
  padding: 1.05rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wizard-head .wizard-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol);
  white-space: nowrap;
}
/* Progress: nine quiet ticks (markup contract: .nine spans, .filled) */
.nine {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.nine span {
  display: block;
  width: clamp(10px, 1.4vw, 18px);
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  transition: background 0.35s ease;
}
.nine span.filled {
  background: var(--orange);
}
.nine.nine-solid span {
  background: var(--orange);
}
.nine.nine-gold span:nth-child(9) {
  background: var(--petrol);
}
.wizard-body {
  padding: 1.6rem 1.6rem 1.8rem;
}
.wizard-stage {
  display: none;
}
.wizard-stage.active {
  display: block;
  animation: stage-in 0.3s ease;
}
@keyframes stage-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.wizard-stage h3 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.wizard-stage h3 .yard-num {
  font-size: 1.5rem;
  color: var(--muted);
}
.wizard-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.4rem 0 1rem;
}
.wizard-summaries:not(:empty) {
  margin-bottom: 1.15rem;
}
.wizard-summary {
  border-bottom: 1px solid var(--line);
}
.wizard-summary button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: 0;
  font-family: var(--body);
  padding: 0.7rem 0.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: left;
}
.wizard-summary button > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}
.wizard-summary .sum-answer {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 52%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.wizard-summary .tick {
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex: none;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-auto-rows: 1fr;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.option-card {
  position: relative;
  display: flex;
}
.option-grid .option-card > label {
  flex: 1;
}
.option-card input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.option-grid .option-card label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.option-grid .option-card label::before {
  content: "";
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.option-grid .option-card input[type="checkbox"] + label::before {
  border-radius: 4px;
}
.option-grid .option-card label:hover {
  border-color: var(--petrol);
  background: var(--linen);
}
.option-grid .option-card label:hover::before {
  border-color: var(--petrol);
}
.option-grid .option-card label small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.option-grid .option-card input:checked + label {
  border-color: var(--orange);
  background: rgba(245, 126, 37, 0.07);
}
.option-grid .option-card input:checked + label::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: inset 0 0 0 3px #fff;
}
.option-grid .option-card input:focus-visible + label {
  outline: var(--focus-ring);
  outline-offset: 2px;
}
.field {
  margin-bottom: 1.05rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.field .hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--paper);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(41, 59, 64, 0.12);
}
.field .error-msg {
  display: none;
  color: #c0392b;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 0.3rem;
}
.field.invalid input,
.field.invalid select {
  border-color: #c0392b;
}
.field.invalid .error-msg {
  display: block;
}
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
}
.wizard-back {
  background: none;
  border: 0;
  font-family: var(--body);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.6rem 0.4rem;
}
.wizard-back:hover {
  color: var(--orange-dark);
}
.call-ramp {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}
.call-ramp a {
  font-weight: 700;
  color: var(--petrol-dark);
  white-space: nowrap;
}
.wizard-done {
  text-align: center;
  padding: 1rem 0 0.4rem;
}
.wizard-done .nine {
  margin-bottom: 1.2rem;
}
.wizard-done .nine span {
  width: 20px;
  height: 6px;
}
.wizard-done h3 {
  font-weight: 300;
  font-size: 1.9rem;
}
.wizard-done p {
  color: var(--muted);
  max-width: 44ch;
  margin-inline: auto;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--petrol);
  color: #fff;
  /* extra top padding clears the fixed overlay header */
  padding: calc(clamp(3rem, 6vw, 4.6rem) + 78px) 0 clamp(3rem, 6vw, 4.6rem);
}
.page-hero .kicker {
  color: rgba(255, 255, 255, 0.6);
}
.page-hero h1 {
  color: #fff;
  max-width: 22ch;
}
.page-hero .lede {
  color: rgba(255, 255, 255, 0.82);
}

/* Split layouts / content blocks */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.photo-block img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.photo-block .photo-caption {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.9rem;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}
.check-list li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--petrol);
}

/* Snapshot rows (calculators) */
.snap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.team-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1;
  object-fit: cover;
}
.team-bio {
  font-size: 0.9rem;
  color: var(--muted);
}
.team-card--flip {
  perspective: 1200px;
  cursor: pointer;
}
.team-card-inner {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}
html.js .team-card--flip:hover .team-card-inner,
html.js .team-card--flip:focus-visible .team-card-inner,
html.js .team-card--flip.flipped .team-card-inner {
  transform: rotateY(180deg);
}
.team-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.team-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--petrol);
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  overflow-y: auto;
}
.team-back h3 {
  color: #fff;
}
.team-back .team-bio {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  line-height: 1.55;
}
.team-back .team-contact a {
  color: #fff;
}
.team-flip-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.4rem;
}
@media (prefers-reduced-motion: reduce) {
  .team-card-inner {
    transition: none;
    transform-style: flat;
  }
  html.js .team-card--flip:hover .team-card-inner,
  html.js .team-card--flip:focus-visible .team-card-inner,
  html.js .team-card--flip.flipped .team-card-inner {
    transform: none;
  }
  .team-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: opacity 0.25s ease;
  }
  html.js .team-back {
    opacity: 0;
    pointer-events: none;
  }
  html.js .team-card--flip:hover .team-back,
  html.js .team-card--flip:focus-visible .team-back,
  html.js .team-card--flip.flipped .team-back {
    opacity: 1;
    pointer-events: auto;
  }
  html.js .team-card--flip:hover .team-front,
  html.js .team-card--flip:focus-visible .team-front,
  html.js .team-card--flip.flipped .team-front {
    opacity: 0;
  }
}
html:not(.js) .team-card-inner {
  transform: none;
}
html:not(.js) .team-back {
  position: static;
  transform: none;
  margin-top: 0.8rem;
}
html:not(.js) .team-flip-hint {
  display: none;
}
.team-photo-placeholder {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--linen);
  color: var(--muted);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.06em;
}
.team-card h3 {
  margin: 1.1rem 0 0.2rem;
}
.team-card .team-title {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.team-card .team-contact {
  font-size: 0.9rem;
  font-weight: 600;
}
.team-card .team-contact a {
  text-decoration: none;
}

/* ---------- Case-study cards ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
}
.case-card {
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.case-card .yard-num {
  font-size: 2.6rem;
  color: var(--muted);
}
.case-tag {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--petrol);
  background: var(--linen);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}
.case-card--skeleton {
  border-style: dashed;
  border-color: rgba(92, 106, 112, 0.45);
}
.case-card--skeleton .case-slot,
.case-card--skeleton .case-slot-cta {
  color: var(--muted);
}
.case-card--skeleton h3.case-slot {
  font-size: 1.15rem;
  margin: 0.4rem 0;
}
.case-slot-cta {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Case studies: categorised accordion (Sept 2026) ---------- */
.case-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
}
.case-chip {
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--petrol);
  background: transparent;
  color: var(--petrol);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.case-chip:hover {
  background: rgba(22, 35, 42, 0.06);
}
.case-chip[aria-pressed="true"] {
  background: var(--petrol);
  color: #fff;
}
.case-group + .case-group {
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
}
.case-group-head {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.case-group-head h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin: 0;
}
.case-group-head span {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.case-list {
  max-width: 900px;
}
.case-item {
  scroll-margin-top: 110px;
}
.case-item summary {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.case-item-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.case-item-title {
  font-family: var(--display);
  font-size: 1.08rem;
  line-height: 1.35;
}
.case-meta-line {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.case-item-body {
  padding-bottom: 1.2rem;
}
.faq-list .case-item-body p {
  padding-bottom: 0;
  margin: 0 0 0.9rem;
}
.faq-list .case-item-body .case-item-cta {
  color: var(--ink);
  font-weight: 600;
}
.case-note {
  max-width: 72ch;
  margin-top: 2rem;
}

/* FAQ split: heading column left, accordion right */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}
.faq-split .section-head {
  margin-bottom: 0;
}
.faq-split .faq-list {
  max-width: none;
}
@media (max-width: 960px) {
  .faq-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Education cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: block;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: transparent;
  color: var(--ink);
}
.article-card h3 {
  margin-bottom: 0.4rem;
}
.article-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.article-card .card-cta {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--petrol);
}
.article-card:hover .card-cta {
  color: var(--orange-dark);
}
.article-body {
  max-width: 720px;
}
.article-body img {
  border-radius: var(--radius-sm);
}
.article-body h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-top: 1.6em;
}
.article-body h3,
.article-body h4 {
  margin-top: 1.4em;
}
.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
  margin: 0 0 1.1em;
}
.article-body li {
  margin-bottom: 0.4em;
}
.article-body blockquote {
  border-left: 3px solid var(--orange);
  margin: 1.2em 0;
  padding: 0.2em 0 0.2em 1em;
  color: var(--muted);
}

/* ---------- Adviser minis ---------- */
.adviser-cards {
  margin-top: 2rem;
}
.adviser-mini {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.adviser-mini img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  flex: none;
}
.adviser-mini .adviser-role {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.adviser-mini a {
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Calculators ---------- */
.calc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.7rem 1.7rem 1.5rem;
}
.calc-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.calc-results {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}
.calc-results .snap-row b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--petrol);
}

/* ---------- Social icons ---------- */
.social-links {
  display: flex;
  gap: 0.7rem;
  margin: 0.4rem 0 0.8rem;
}
.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.social-links a:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.social-links svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
/* Beat the generic footer-link rule: keep the glyphs centred in their circles */
.site-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
main .social-links a {
  border-color: var(--line);
  color: var(--petrol-dark);
}
main .social-links a:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
}

/* ---------- Compliance strip + footer card ---------- */
.compliance-strip {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.compliance-strip p {
  margin: 0;
}
.site-footer {
  background: var(--linen);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  font-size: 0.92rem;
}
.footer-card {
  background: var(--petrol);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  padding: clamp(2rem, 4.5vw, 3.6rem);
}
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-cta h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}
/* "Get in touch today" card: copy left, form right */
.footer-cta.footer-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  scroll-margin-top: 110px;
}
.footer-contact .kicker {
  color: rgba(255, 255, 255, 0.65);
  margin: 0.2rem 0 0.4rem;
}
.footer-contact-lede {
  color: rgba(255, 255, 255, 0.85);
  margin: 1rem 0 0.8rem;
  max-width: 40ch;
}
.footer-contact-landing {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}
.site-footer .footer-contact-landing a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.git-form .field label,
.git-form legend {
  color: #fff;
}
.git-form legend {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
  padding: 0;
}
.git-interests {
  border: 0;
  padding: 0;
  margin: 0 0 1.05rem;
}
.git-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.site-footer .git-chip,
.git-form .field label.git-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.35rem 0.9rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: #fff;
  cursor: pointer;
}
.git-chip input {
  width: auto;
  accent-color: var(--orange);
  margin: 0;
}
.git-chip:has(input:checked) {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}
.git-chip:has(input:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.git-interests.invalid .git-chip {
  border-color: #ffb4a6;
}
.git-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.git-form .form-status {
  color: #fff;
}
@media (max-width: 860px) {
  .footer-cta.footer-contact,
  .git-row {
    grid-template-columns: 1fr;
  }
}

/* Our process video */
.process-video {
  padding-top: 0;
}
.process-video .video-frame {
  max-width: 960px;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  gap: 0.9rem 1.4rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
}
.footer-phone:hover {
  color: #fff;
  border-color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
/* :where() keeps this at (0,1,1) so component rules (buttons, social
   circles) can override without specificity wars */
.site-footer a:where(:not(.btn)):where(:not(.footer-phone)) {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  display: inline-block;
  padding: 0.16rem 0;
}
.site-footer a:where(:not(.btn)):where(:not(.footer-phone)):hover {
  color: #fff;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
.footer-legal p {
  margin-bottom: 0.5rem;
}

/* ---------- Mobile sticky bar ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--petrol-dark);
  transition: transform 0.25s ease;
}
/* Home: the hero carries its own choices + phone link, so the sticky bar
   stays tucked away until the hero scrolls out of view */
html.js body.hero-in-view .mobile-cta {
  transform: translateY(100%);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.95rem 0.5rem;
  min-height: 48px;
}
.mobile-cta a + a {
  background: var(--orange);
}

/* ---------- Callback form ---------- */
.callback-form .btn {
  margin-top: 0.3rem;
}
.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--petrol);
  margin: 0.6rem 0 0;
}
.form-status a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- Wealth: who it's suitable for ---------- */
.suit-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.suit-card h3 {
  margin-top: 0;
}
.suit-card .suit-threshold {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--petrol);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--petrol);
    font-family: var(--body);
    font-weight: 700;
    padding: 0.5rem 1.1rem;
    margin-left: auto;
    cursor: pointer;
  }
  html.js .site-header:not(.scrolled) .nav-toggle {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
  }
  .site-nav {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.5rem 1.4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    /* animatable open/close: hidden via visibility, not display */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  .site-nav.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  @media (prefers-reduced-motion: no-preference) {
    .site-nav {
      transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }
  }
  .site-nav a.nav-link {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--linen);
  }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 1rem;
  }
  .nav-dropdown a {
    color: var(--muted);
    padding: 0.5rem 0;
  }
  .nav-dropdown a:hover {
    background: transparent;
    color: var(--orange-dark);
  }
  .fork {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
  .who-photo {
    order: -1;
  }
  .who-photo img {
    aspect-ratio: 16 / 10;
  }
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card,
  .service-card.featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .header-apply {
    display: none;
  }
  .mobile-cta {
    display: flex;
  }
  body {
    padding-bottom: 56px;
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .fork {
    grid-template-columns: 1fr;
  }
  .icon-grid {
    grid-template-columns: 1fr;
  }
  :root {
    /* Phones: tall enough for the home hero's stacked choices (about 720px
       of copy at 360-414px wide), so every hero renders the same size. */
    --hero-height: 740px;
  }
  /* Inner pages carry only a heading and one line, so on phones they stay
     short enough for the heading to sit above the fold and the sticky bar */
  .hero-full--page,
  .page-hero--photo {
    min-height: min(80vh, 560px);
  }
  .hero-choices {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .hero-choice {
    padding: 0.8rem 2.6rem 0.75rem 1.05rem;
  }
  .review-head {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .wizard-head {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }
  h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
  .hero-full h1 {
    font-size: clamp(2.1rem, 9.4vw, 2.7rem);
  }
  .wizard-body {
    padding: 1.1rem 1rem 1.3rem;
  }
  .stat-row {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .footer-card {
    padding: 1.6rem 1.4rem;
  }
}

/* ---------- Motion discipline ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  html.js .reveal.in {
    opacity: 1;
    transform: none;
  }
  html.js .icon-grid > .reveal:nth-child(2),
  html.js .journey-grid > .reveal:nth-child(2),
  html.js .proof-grid > .reveal:nth-child(2),
  html.js .services-grid > .reveal:nth-child(2) {
    transition-delay: 0.07s;
  }
  html.js .icon-grid > .reveal:nth-child(3),
  html.js .journey-grid > .reveal:nth-child(3),
  html.js .proof-grid > .reveal:nth-child(3),
  html.js .services-grid > .reveal:nth-child(3) {
    transition-delay: 0.14s;
  }
  html.js .icon-grid > .reveal:nth-child(4),
  html.js .journey-grid > .reveal:nth-child(4),
  html.js .proof-grid > .reveal:nth-child(4),
  html.js .services-grid > .reveal:nth-child(4) {
    transition-delay: 0.21s;
  }
  html.js .icon-grid > .reveal:nth-child(5),
  html.js .services-grid > .reveal:nth-child(5) {
    transition-delay: 0.28s;
  }
  html.js .icon-grid > .reveal:nth-child(6),
  html.js .services-grid > .reveal:nth-child(6) {
    transition-delay: 0.35s;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wizard-stage.active {
    animation: none;
  }
}

/* ---------- Privacy: form collection notice, storage table, preferences ---------- */
.form-notice {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.form-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.git-form .form-notice {
  color: rgba(255, 255, 255, 0.75);
}
.site-footer .git-form .form-notice a {
  color: #fff;
  padding: 0;
}
.article-body .table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.storage-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.storage-table th,
.storage-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.storage-table thead th {
  background: var(--linen);
  color: var(--petrol);
}
.storage-table tbody tr:last-child td {
  border-bottom: 0;
}
.storage-table code {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.privacy-choice {
  margin-bottom: 2.4rem;
}
.privacy-choice .wizard-head h2 {
  margin: 0;
}
.privacy-choice-body {
  padding: 1.3rem 1.5rem 0.6rem;
}
.privacy-choice-status {
  font-weight: 600;
  color: var(--petrol);
  margin: 0 0 1rem;
}
.privacy-choice[data-state="off"] .privacy-choice-status {
  color: var(--orange-dark);
}

/* Print sanity */
@media print {
  .site-header,
  .mobile-cta {
    display: none;
  }
}
