/* ==========================================================================
   Sandton Oncology — Design Tokens
   ========================================================================== */

@font-face {
  font-family: "Work Sans";
  src: local("Work Sans");
  font-display: swap;
}

:root {
  /* --- Palette (raw) --- */
  --navy-950: #0C1D2E;
  --navy-900: #12283F;
  --navy-700: #1B3A57;
  --blue-600: #1C6FA8;
  --blue-500: #2C86C4;
  --blue-100: #EAF3FA;
  --blue-50: #F5FAFD;
  --pink-600: #C13B72;   /* AA-safe on white, used for text/buttons/links */
  --pink-400: #D6608C;   /* decorative accent only — underlines, icons, tints */
  --pink-150: #F6D9E4;   /* noticeable light pink — section grounds */
  --pink-100: #FBEAF0;
  --pink-50: #FDF4F8;
  --bronze-600: #9C7A42;  /* decorative accent only — hairlines, numerals */
  --bronze-700: #7E6234;
  --ivory-50: #FBF8F3;
  --ivory-100: #F4EDE1;
  --grey-900: #24282C;
  --grey-600: #5B6470;
  --grey-400: #8A93A0;
  --grey-200: #E2E6EB;
  --grey-100: #F1F3F6;
  --white: #FFFFFF;

  /* --- Semantic tokens --- */
  --color-bg: var(--white);
  --color-bg-tint: var(--ivory-50);
  --color-bg-dark: var(--navy-900);
  --color-surface: var(--white);
  --color-text: var(--navy-950);
  --color-text-muted: var(--grey-600);
  --color-text-on-dark: var(--white);
  --color-text-on-dark-muted: #B7C4D2;
  --color-border: var(--grey-200);
  --color-line: rgba(12, 29, 46, 0.1);
  --color-accent: var(--pink-600);
  --color-accent-decorative: var(--pink-400);
  --color-bronze: var(--bronze-600);
  --color-bronze-text: var(--bronze-700); /* AA-safe on white/ivory for text use */
  --color-link: var(--blue-600);
  --color-cta-bg: var(--pink-600);
  --color-cta-bg-hover: #A82E60;
  --color-cta-text: var(--white);

  /* --- Type scale --- */
  --font-base: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --fs-h2: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-eyebrow: 0.78rem;

  /* --- Spacing rhythm (8px base) --- */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-section: clamp(3.5rem, 2.4rem + 4vw, 6rem);

  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 10px rgba(18, 40, 63, 0.07);
  --shadow-md: 0 14px 34px rgba(18, 40, 63, 0.12);
  --shadow-lg: 0 26px 64px rgba(18, 40, 63, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 250ms;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); }
em { font-family: var(--font-serif); font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--sp-3); }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-base);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bronze-text);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow--light { color: var(--ivory-50); }

/* ==========================================================================
   Buttons & text links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-base);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--color-cta-bg); color: var(--color-cta-text); box-shadow: 0 8px 20px rgba(193, 59, 114, 0.28); }
.btn--primary:hover { background: var(--color-cta-bg-hover); box-shadow: 0 12px 28px rgba(193, 59, 114, 0.36); }

.btn--outline-light { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy-900); }

.btn--sm { padding: 0.7rem 1.3rem; font-size: 0.9rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }
.text-link--light { color: var(--white); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--sp-2);
  background: rgba(251,248,243,0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), padding-block var(--dur-med) var(--ease-out);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; }

.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
.nav-links a {
  font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-900); position: relative; padding-block: 4px;
  transition: color var(--dur-med) var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px;
  background: var(--color-bronze); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle { display: none; background: none; border: none; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy-900); position: relative;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out), background-color var(--dur-med) var(--ease-out);
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   Section shell
   ========================================================================== */

.section { padding-block: var(--sp-section); scroll-margin-top: 88px; }
.section--tint { background: var(--color-bg-tint); }
.section--reviews {
  max-width: var(--container-max);
  margin-inline: auto;
  margin-block: var(--sp-6);
  padding-block: var(--sp-5);
  border: 3px solid var(--pink-400);
  border-radius: var(--radius-lg);
}
@media (max-width: 640px) {
  .section--reviews { margin-inline: var(--sp-3); }
}
.section-head { max-width: 640px; margin-bottom: var(--sp-6); }
.section-head h2 { font-size: var(--fs-h2); font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; }
.section-head .lead { margin-top: var(--sp-2); }
.section-head--center { max-width: none; margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-divider { width: 220px; max-width: 100%; height: auto; margin-block: var(--sp-3); }
.section-head--center .section-divider,
.reviews-head .section-divider { margin-inline: auto; }

/* ==========================================================================
   Hero — asymmetric split canvas, vertical mast, overlapping credentials card
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-margin-top: 88px;
}

.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(12,29,46,0.86) 0%, rgba(12,29,46,0.6) 42%, rgba(12,29,46,0.22) 78%);
  z-index: 1;
}

.hero-mast {
  position: absolute;
  left: 1.75rem; top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  z-index: 4;
  white-space: nowrap;
}

.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6.5rem, 5rem + 4vw, 8rem) clamp(2rem, 4vw, 4rem) clamp(6rem, 6vw, 8rem) clamp(3.5rem, 4vw + 2rem, 6.5rem);
  max-width: 900px;
}
.hero-text h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-block: 0 var(--sp-4);
}
.hero-text h1 em { color: var(--pink-400); font-style: italic; }
.hero-text .lead { max-width: 46ch; margin-bottom: var(--sp-4); color: var(--color-text-on-dark-muted); }
.hero-actions { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-mast { display: none; }
  .hero-text { max-width: none; padding: 7rem 1.5rem 3rem; }
  .hero-scrim { background: linear-gradient(180deg, rgba(12,29,46,0.55) 0%, rgba(12,29,46,0.82) 65%, rgba(12,29,46,0.9) 100%); }
}

/* ==========================================================================
   Manifesto — dark statement band with ghost numeral watermark
   ========================================================================== */

.manifesto {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  padding-block: clamp(4.5rem, 6vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}
.manifesto-numeral {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(9rem, 6rem + 24vw, 24rem);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  z-index: -1;
  pointer-events: none;
}
.manifesto-inner { max-width: 820px; margin-inline: auto; text-align: center; }
.manifesto-statement {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.15rem);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

/* ==========================================================================
   Our Story — editorial magazine columns + captioned figure
   ========================================================================== */

.story { background: var(--pink-150); padding-block: 0; overflow: hidden; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; }
.story-content { display: flex; align-items: center; }
.story-content-inner {
  width: 100%;
  max-width: 900px;
  padding-block: var(--sp-section);
  padding-left: 50px;
  padding-right: clamp(2rem, 4vw, 4rem);
}
.story-lead {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy-950);
  margin-bottom: var(--sp-1);
  max-width: 46ch;
}
.story-divider { width: 220px; max-width: 100%; height: auto; margin-bottom: var(--sp-4); }
.story-content-inner p:not(.story-lead) { color: var(--color-text-muted); font-size: 0.98rem; line-height: 1.65; margin-bottom: var(--sp-3); }
.story-content-inner .btn { margin-top: var(--sp-2); }

.story-figure { position: relative; margin: 0; min-height: 360px; }
.story-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; min-height: auto; }
  .story-content-inner { max-width: none; padding-block: var(--sp-6) var(--sp-4); padding-inline: var(--sp-3); }
  .story-figure { min-height: 46vh; }
}

/* ==========================================================================
   Why Choose Us — asymmetric bento
   ========================================================================== */

.why-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.25rem;
}
.why-panel {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.why-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-panel--lg { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.why-panel--wide { grid-column: span 2; }
.why-index { font-family: var(--font-serif); font-size: 1.1rem; color: var(--color-bronze-text); margin-bottom: var(--sp-3); }
.why-panel h3 { font-size: 1.15rem; font-weight: 500; color: var(--navy-950); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
.why-panel--lg h3 { font-size: 1.4rem; }
.why-panel p { font-size: 0.92rem; line-height: 1.55; color: var(--color-text-muted); }
.why-panel--dark { background: var(--navy-950); color: var(--white); border-color: transparent; }
.why-panel--dark h3 { color: var(--white); }
.why-panel--dark p { color: var(--color-text-on-dark-muted); }
.why-panel--dark .why-index { color: var(--pink-400); }

@media (max-width: 900px) {
  .why-bento { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-bento { grid-template-columns: 1fr; }
  .why-panel--lg, .why-panel--wide { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   Specialists — editorial index + interactive showcase
   ========================================================================== */

.specialists .section-head { max-width: var(--container-max); }
.specialists .section-head .lead { max-width: 640px; }

.specialists-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

/* --- Index (tab list) --- */
.specialists-nav { display: flex; flex-direction: column; border-top: 1px solid var(--color-line); }
.specialists-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-line);
  padding: 1.15rem 0.25rem 1.15rem 0.75rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background-color var(--dur-med) var(--ease-out), padding-left var(--dur-med) var(--ease-out);
}
.specialists-nav-item::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: transparent;
  transition: background-color var(--dur-med) var(--ease-out);
}
.specialists-nav-item:hover { background: var(--ivory-50); padding-left: 1.1rem; }
.specialists-nav-item.is-active { background: var(--ivory-50); padding-left: 1.1rem; }
.specialists-nav-item.is-active::before { background: var(--color-accent); }
.specialists-nav-index {
  font-family: var(--font-serif); font-size: 0.85rem; color: var(--color-bronze-text);
  width: 1.75rem; flex-shrink: 0; transition: color var(--dur-med) var(--ease-out);
}
.specialists-nav-item:hover .specialists-nav-index, .specialists-nav-item.is-active .specialists-nav-index { color: var(--color-accent); }
.specialists-nav-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.specialists-nav-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 500; color: var(--navy-950); }
.specialists-nav-role { font-size: 0.76rem; color: var(--color-text-muted); }

/* --- Stage (active specialist detail) --- */
.specialists-stage { position: relative; }
.specialist-panel { display: none; }
.specialist-panel.is-active {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  animation: specialist-fade 0.5s var(--ease-out);
}
@keyframes specialist-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.specialist-panel-media { position: relative; }
.specialist-panel-numeral {
  position: absolute;
  top: -1.75rem; left: -1.25rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(5.5rem, 4rem + 7vw, 9.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-line);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.specialist-panel-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  background: var(--navy-950);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.specialist-panel-frame:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.specialist-panel-photo { position: absolute; inset: 0; background-size: cover; background-position: center top; }
/* Source portraits for 3 of 4 specialists are low-resolution (179x179) with a
   template ring baked into the file edge — crop tighter to push it out of frame.
   Scale only, no colour/filter change. */
.specialist-panel-photo--zoom { background-position: center center; transform: scale(1.5); transform-origin: center; }
/* Dr Mayet's source portrait still shows a sliver of the template's white corner
   at the shared zoom above - this one photo specifically needs a bit more scale
   and an off-centre crop to push it fully out of frame. */
.specialist-panel-photo--zoom-mayet { background-position: 60% 45%; transform: scale(1.6); }

.specialist-panel-body { padding-top: 0.25rem; }
.specialist-credential {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-bronze-text); margin-bottom: 0.85rem;
}
.specialist-panel-body h3 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem); font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.specialist-panel-body .specialist-role { font-size: 0.92rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.specialist-quote {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.45;
  color: var(--navy-950);
  padding-left: 1.1rem;
  border-left: 2px solid var(--pink-400);
}
.specialist-bio { font-size: 0.98rem; line-height: 1.65; color: var(--color-text-muted); max-width: 56ch; margin-bottom: 1.5rem; }
.specialist-tags { display: flex; flex-wrap: wrap; margin-bottom: 1.75rem; }
.specialist-tags li { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--navy-900); }
.specialist-tags li:not(:last-child)::after { content: "\00B7"; margin: 0 0.6rem; color: var(--grey-400); }

@media (max-width: 900px) {
  .specialists-showcase { grid-template-columns: 1fr; }
  .specialists-nav { flex-direction: row; flex-wrap: wrap; border-top: none; gap: 0.5rem; margin-bottom: 0.5rem; }
  .specialists-nav-item { width: auto; flex: 1 1 auto; border: 1px solid var(--color-line); border-radius: 999px; padding: 0.6rem 1rem; }
  .specialists-nav-item::before { display: none; }
  .specialists-nav-item.is-active, .specialists-nav-item:hover { border-color: transparent; }
  .specialists-nav-role { display: none; }
  .specialist-panel.is-active { grid-template-columns: 1fr; }
  .specialist-panel-media { max-width: 320px; }
  .specialist-panel-numeral { display: none; }
}
@media (max-width: 480px) {
  .specialists-nav-item { flex: 1 1 100%; }
}

/* ==========================================================================
   Patient Journey — connected pathway/timeline
   ========================================================================== */

.journey-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.journey-steps::before {
  content: ""; position: absolute; top: 1.375rem; left: 0; right: 0; height: 1px; background: var(--color-line);
}
.journey-num {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--color-bg-tint);
  border: 1.5px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--navy-950);
  margin-bottom: 1.25rem;
}
.journey-step h3 { font-size: 1.1rem; font-weight: 500; color: var(--navy-950); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.journey-step p { font-size: 0.92rem; line-height: 1.55; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .journey-steps { grid-template-columns: 1fr; gap: 2rem; }
  .journey-steps::before { display: none; }
}

/* ==========================================================================
   Services — horizontal snap-scroll showcase
   ========================================================================== */

.services { background: var(--pink-50); }
.services-scroll {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1240px;
}
.service-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.service-panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-panel-photo {
  aspect-ratio: 4 / 3.1;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  margin-bottom: var(--sp-3);
}
.service-panel-body { display: flex; flex-direction: column; flex: 1; }
.service-panel-body h3 { font-size: 1.25rem; font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.service-panel-body p { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: var(--sp-3); flex: 1; }
.service-panel-body .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 780px) {
  .services-scroll { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  /* Exactly 3 panels site-wide: 2 columns strands the 3rd alone in column 1 with an
     empty column 2 beside it. Span it across both instead of leaving it orphaned. */
  .services-scroll .service-panel:nth-child(3):last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .services-scroll { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Technology — bold typographic spotlight
   ========================================================================== */

.tech-band { position: relative; background: var(--navy-950); color: var(--white); overflow: hidden; isolation: isolate; scroll-margin-top: 88px; }
.tech-graphic { position: absolute; top: 50%; right: -8%; width: min(50vw, 560px); aspect-ratio: 1 / 1; transform: translateY(-50%); z-index: -1; opacity: 0.8; }
.tech-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,0.12); }
.tech-ring--1 { inset: 12%; border-color: rgba(214,96,140,0.32); }
.tech-ring--2 { inset: 26%; border-color: rgba(156,122,66,0.38); }
.tech-ring--3 { inset: 40%; border: 1px dashed rgba(255,255,255,0.2); }
.tech-beam { position: absolute; top: 50%; left: 50%; width: 130%; height: 1px; background: linear-gradient(90deg, transparent, rgba(214,96,140,0.45), transparent); transform: translate(-50%, -50%) rotate(28deg); }
@media (prefers-reduced-motion: no-preference) { .tech-ring--3 { animation: tech-spin 40s linear infinite; } }
@keyframes tech-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.tech-grid { position: relative; padding-block: var(--sp-section); display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tech-word {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 1.8rem + 6vw, 6.5rem);
  line-height: 0.92;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.tech-copy { max-width: 560px; }
.tech-copy h2 { font-size: var(--fs-h2); font-weight: 500; color: var(--white); letter-spacing: -0.01em; margin-bottom: var(--sp-3); }
.tech-copy .lead { color: var(--color-text-on-dark-muted); margin-bottom: var(--sp-4); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tech-chips li { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--white); border: 1px solid rgba(255,255,255,0.28); padding: 0.55rem 1rem; border-radius: 999px; }

@media (max-width: 780px) {
  .tech-grid { grid-template-columns: 1fr; }
  .tech-word { font-size: clamp(2.5rem, 2rem + 10vw, 4rem); }
  .tech-graphic { opacity: 0.4; }
}

/* ==========================================================================
   Testimonials — featured pull-quote + carousel
   ========================================================================== */

.reviews-head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: var(--sp-5); }
.reviews-head .eyebrow { justify-content: center; }

.featured-review { max-width: 760px; margin: 0 auto var(--sp-6); text-align: center; }
.featured-review p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  line-height: 1.45;
  color: var(--navy-950);
}
.featured-review p::before { content: "\201C"; color: var(--pink-400); font-style: normal; }
.featured-review p::after { content: "\201D"; color: var(--pink-400); font-style: normal; }
.featured-review cite {
  display: block; margin-top: 1.1rem; font-style: normal; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted);
}

.reviews-rating { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: var(--sp-5); flex-wrap: wrap; }
.google-icon { width: 22px; height: 22px; flex-shrink: 0; }
.google-icon--sm { width: 18px; height: 18px; }
.reviews-rating-stars { color: #F5A623; font-size: 1.05rem; letter-spacing: 2px; }
.reviews-rating-text { font-size: 0.92rem; color: var(--color-text-muted); }
.reviews-rating-text strong { color: var(--navy-950); }

.reviews-carousel { position: relative; }
.reviews-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.reviews-viewport:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 6px; }
.reviews-track { display: flex; gap: var(--sp-4); touch-action: pan-y; }
.reviews-track.is-dragging { cursor: grabbing; }
.reviews-track:not(.is-animated) { transition: none; }
.reviews-track.is-animated { transition: transform var(--dur-med) var(--ease-out); }

.review-card {
  flex: 0 0 calc((100% - (2 * var(--sp-4))) / 3);
  min-width: 0; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: var(--sp-4);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.review-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.stars { color: #F5A623; font-size: 1rem; letter-spacing: 2px; }
.review-text-wrap { flex: 1; margin-bottom: var(--sp-3); }
.review-text {
  font-size: 0.95rem; line-height: 1.6; color: var(--color-text);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; min-height: calc(1.6em * 5);
}
.review-card.is-expanded .review-text { -webkit-line-clamp: unset; overflow: visible; min-height: auto; }
.review-readmore { display: none; background: none; border: none; padding: 0.4rem 0 0; margin: 0; font-size: 0.88rem; font-weight: 600; color: var(--color-accent); }
.review-readmore:hover { color: var(--color-cta-bg-hover); text-decoration: underline; }
.review-readmore.is-visible { display: inline-block; }
.review-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--color-border); }
.review-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 600; color: var(--white); }
.review-avatar--pink { background-image: linear-gradient(155deg, var(--pink-400), var(--pink-600)); }
.review-avatar--navy { background-image: linear-gradient(155deg, var(--navy-700), var(--navy-950)); }
.review-avatar--blue { background-image: linear-gradient(155deg, var(--blue-500), var(--navy-900)); }
.review-meta-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.review-name { font-size: 0.92rem; font-weight: 600; color: var(--navy-950); }
.review-date { font-size: 0.8rem; color: var(--color-text-muted); }

.reviews-controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.reviews-arrow {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; color: var(--navy-950);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.reviews-arrow svg { width: 20px; height: 20px; }
.reviews-arrow:hover { background: var(--color-cta-bg); color: var(--white); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.reviews-dots { display: flex; align-items: center; gap: 0; }
/* 44x44 tap target; the visible 9px dot is drawn by ::before. */
.reviews-dot { position: relative; width: 44px; height: 44px; border-radius: 50%; background: none; border: none; padding: 0; cursor: pointer; }
.reviews-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--grey-200); transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.reviews-dot:hover::before { background: var(--pink-400); }
.reviews-dot[aria-selected="true"]::before { background: var(--color-accent); transform: scale(1.25); }

@media (max-width: 900px) { .review-card { flex-basis: calc((100% - var(--sp-4)) / 2); } }
@media (max-width: 640px) {
  .review-card { flex-basis: 100%; }
  .reviews-arrow { width: 40px; height: 40px; }
  .reviews-controls { gap: var(--sp-3); }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-band { background: var(--ivory-50); padding-block: var(--sp-section); }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-6); }
.contact-info h2 { font-size: var(--fs-h2); font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: var(--sp-1); }
.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { border-bottom: 1px solid var(--color-line); padding-bottom: 1.25rem; }
.contact-list li span { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-bronze-text); margin-bottom: 0.4rem; }
.contact-list li p { font-size: 1.02rem; color: var(--navy-950); }
.contact-list li a { color: var(--navy-950); }
.contact-list li a:hover { color: var(--color-accent); }

.contact-cta { background: var(--navy-950); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 3vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
.contact-cta-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-400); margin-bottom: 0.75rem; }
.contact-cta-lead { font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.4; margin-bottom: var(--sp-4); }

@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: var(--color-text-on-dark-muted); }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: var(--sp-5);
  padding-block: var(--sp-7) var(--sp-5);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.footer-brand img { height: auto; filter: brightness(0) invert(1); }
.footer-tagline { font-size: 1rem; font-family: var(--font-serif); font-style: italic; max-width: 30ch; line-height: 1.5; }

.footer-col-title { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-400); margin-bottom: var(--sp-3); }

.footer-nav { display: flex; flex-direction: column; }
.footer-nav a { display: block; font-size: 1rem; color: var(--color-text-on-dark-muted); padding-block: 1.1rem; transition: color var(--dur-fast) var(--ease-out); }
.footer-nav a:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-nav a:first-child { padding-top: 0; }
.footer-nav a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; list-style: none; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 1rem; line-height: 1.5; padding-block: 1.1rem; }
.footer-contact li:not(:first-child) { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-contact li:first-child { padding-top: 0; }
.footer-contact li svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 0.15rem; color: var(--pink-400); }
.footer-contact a { color: var(--color-text-on-dark-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-copy { font-size: 0.78rem; color: var(--color-text-on-dark-muted); }

/* Avily designed-by credit + legal links (templates/designed-by-avily.html) */
.footer-copy.avily-credit { margin: 0; }
.avily-credit .avily-link, .footer-legal a { color: var(--color-text-on-dark-muted); text-decoration: none; }
.avily-credit .avily-link:hover, .footer-legal a:hover { color: var(--white); text-decoration: underline; }
/* inline-block: the global `img { display:block }` reset would otherwise drop the logo onto its own line. */
.avily-credit img { display: inline-block; height: 1em; width: auto; vertical-align: middle; margin: 0 4px; }
.footer-legal { font-size: 0.78rem; color: var(--color-text-on-dark-muted); }

/* Privacy policy / terms body */
.legal-content > div { padding-inline: var(--sp-4, 20px); }
.legal-content h2 { font-size: 1.35rem; }
.legal-content a { text-decoration: underline; overflow-wrap: anywhere; }
/* The global ul reset removes markers; legal lists need them to read as lists. */
.legal-content ul { list-style: disc; padding-left: 0.5rem; }
.legal-content li { margin-bottom: 0.35rem; }
.legal-content li::marker { color: var(--color-accent); }

/* reCAPTCHA v3: the floating badge covers body copy on phones. Google permits hiding it
   when the form carries the text notice instead (.recaptcha-note under each form). */
.grecaptcha-badge { visibility: hidden; }
.recaptcha-note { font-size: 0.72rem; line-height: 1.5; color: var(--color-text-on-dark-muted); margin: 0.25rem 0 0; text-align: center; }
.recaptcha-note a { color: inherit; text-decoration: underline; }

@media (max-width: 780px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-4); text-align: center; }
  .footer-brand { align-items: center; }
  .footer-tagline { max-width: none; }
  .footer-nav, .footer-contact { align-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

/* Scroll-reveal removed: content is always visible */

/* ==========================================================================
   Inner pages — page hero
   ========================================================================== */

.page-hero {
  position: relative;
  min-height: clamp(440px, 64vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero-text {
  position: relative;
  z-index: 2;
  padding-top: clamp(7.5rem, 6rem + 4vw, 9.5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 5rem);
}
.page-hero-text h1 {
  max-width: 20ch;
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: var(--sp-3);
}
.page-hero-text .lead { max-width: 52ch; color: var(--color-text-on-dark-muted); }
.page-hero-text .eyebrow { color: var(--pink-400); }

/* Plain navy variant with ghost watermark (specialist profiles) */
.page-hero--plain { background: var(--navy-950); min-height: clamp(380px, 52vh, 520px); }
.page-hero-numeral {
  position: absolute;
  right: -2rem; bottom: -2.5rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(10rem, 6rem + 20vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: var(--sp-4); }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-on-dark-muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; color: rgba(255,255,255,0.35); }
.breadcrumb a { color: var(--color-text-on-dark-muted); transition: color var(--dur-fast) var(--ease-out); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb [aria-current="page"] { color: var(--white); }

@media (max-width: 900px) {
  .page-hero .hero-scrim { background: linear-gradient(180deg, rgba(12,29,46,0.55) 0%, rgba(12,29,46,0.82) 65%, rgba(12,29,46,0.9) 100%); }
}

/* ==========================================================================
   Inner pages — long-form prose
   ========================================================================== */

.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--sp-3); }
.prose p { color: var(--color-text-muted); font-size: 1.02rem; line-height: 1.75; }
.prose .prose-intro { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--navy-950); }
.prose h2 {
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy-950);
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose ul { display: flex; flex-direction: column; gap: 0.7rem; padding: var(--sp-3) var(--sp-4); background: var(--pink-50); border-radius: var(--radius-md); }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--navy-950); font-size: 0.98rem; line-height: 1.55; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.8rem; height: 1.5px; background: var(--color-accent); }
.prose a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(193, 59, 114, 0.35); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) var(--ease-out); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 0; padding-left: 1.25rem; border-left: 2px solid var(--pink-400); }
.prose blockquote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--navy-950); }
.prose blockquote p + p { margin-top: var(--sp-2); }
.prose blockquote cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-bronze-text); }
/* Back-to-back quotes (e.g. a Sun Tzu epigraph followed by the doctor's own words) need more
   air than the generic sibling gap - the cite line reads as a hard stop, not a continuation. */
.prose blockquote + blockquote { margin-top: var(--sp-4); }

/* ==========================================================================
   Inner pages — content + sidebar layout
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.page-layout--profile { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }

.sidebar { display: flex; flex-direction: column; gap: var(--sp-3); }

.sidebar-card { background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--sp-4); }
.sidebar-card-title { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: var(--sp-2); }
.sidebar-card .contact-list { gap: 1rem; }
.sidebar-card .contact-list li { padding-bottom: 1rem; }
.sidebar-card .contact-list li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card .contact-list li p { font-size: 0.95rem; }


@media (max-width: 980px) {
  .page-layout, .page-layout--profile { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Enquiry form — dark card, matches .contact-cta
   ========================================================================== */

.form-card { background: var(--navy-950); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 2.5vw, 2.25rem); box-shadow: var(--shadow-md); }
.form-card .contact-cta-lead { font-size: 1.2rem; margin-bottom: var(--sp-3); }

.enquiry-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-on-dark-muted); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-base);
  font-size: 1rem; /* >=16px: iOS Safari zooms the page on focus below this */
  color: var(--navy-950);
  background: var(--white);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 3px rgba(214, 96, 140, 0.3); }
.enquiry-form .btn { justify-content: center; margin-top: 0.4rem; }
.form-status { font-size: 0.85rem; color: var(--color-text-on-dark-muted); min-height: 1.2em; }

/* ==========================================================================
   About — specialist cards
   ========================================================================== */

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--white); border: 1px solid var(--color-line); border-radius: var(--radius-md);
  padding: var(--sp-3);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-card-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-950); margin-bottom: var(--sp-3); }
.team-card h3 { font-size: 1.25rem; font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.team-card .specialist-role { font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: var(--sp-2); }
.team-card p:not(.specialist-role) { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: var(--sp-3); flex: 1; }
.team-card .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Specialist profile
   ========================================================================== */

.profile-aside { display: flex; flex-direction: column; gap: var(--sp-3); }
.profile-aside .specialist-panel-frame:hover { transform: none; box-shadow: var(--shadow-md); }

@media (max-width: 980px) {
  /* Source portraits are low-res — keep them from stretching full-width once the
     grid collapses to one column (tablet and phone alike). */
  .profile-aside .specialist-panel-frame { max-width: 260px; }
}
@media (max-width: 640px) {
  /* Only cap the whole aside (cards included) at phone widths - at tablet widths
     this left the contact/booking cards stranded in a narrow column with a large
     empty gap beside them, since the single-column grid row is far wider than 420px. */
  .profile-aside { max-width: 420px; }
}

/* Tablet (700-980px): the grid above collapses to one column, stacking the whole aside
   (photo + contact/booking cards) above the bio with a lot of empty space beside the
   deliberately-small portrait before the bio text even starts. Float the aside instead
   so the bio wraps beside it - the same technique .team-profile already used for the
   About page's inline profiles, applied directly since these standalone pages don't
   carry that class. */
@media (min-width: 700px) and (max-width: 980px) {
  .page-layout--profile { display: flow-root; }
  .page-layout--profile .profile-aside {
    float: left;
    width: clamp(240px, 34%, 340px);
    margin: 0 clamp(1.5rem, 3vw, 2.5rem) var(--sp-4) 0;
  }
  .page-layout--profile .prose { max-width: none; }
  /* The blockquote's left rule would sit behind the floated photo. */
  .page-layout--profile .prose blockquote { padding-left: 0; border-left: none; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-page .contact-grid { align-items: start; }
.contact-group + .contact-group { margin-top: var(--sp-5); }
.contact-group-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: var(--sp-3); }

.map-frame { display: block; width: 100%; height: clamp(320px, 45vw, 460px); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Navigation — Services dropdown
   ========================================================================== */

.nav-item { position: relative; }
.nav-item--dropdown > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-item--dropdown > a:not([href]) { cursor: default; }
.nav-caret { width: 14px; height: 14px; flex-shrink: 0; transition: transform var(--dur-fast) var(--ease-out); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  z-index: 110;
}
/* Hover bridge across the gap between link and panel */
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-item--dropdown:hover .nav-caret,
.nav-item--dropdown:focus-within .nav-caret { transform: rotate(180deg); }

.nav-links .nav-dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-serif);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  color: var(--navy-950);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.nav-links .nav-dropdown a::after { display: none; }
.nav-links .nav-dropdown a:hover { background: var(--ivory-50); color: var(--color-accent); }
.nav-links .nav-dropdown a[aria-current="page"] { background: var(--pink-50); color: var(--color-accent); }

/* ==========================================================================
   Small-screen safety — long unbroken strings (email addresses) must wrap
   instead of widening single-column grids past the viewport.
   ========================================================================== */

.contact-list li p,
.footer-contact a,
.footer-contact span { overflow-wrap: break-word; }

@media (max-width: 980px) {
  .page-layout, .page-layout--profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 780px) {
  .contact-grid, .footer-top { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Service pages — sidebar
   ========================================================================== */

/* `overflow-x: hidden` on html + body turns body into a scroll container,
   which silently disables position: sticky. `clip` hides overflow the same
   way without creating one. Browsers without `clip` keep the hidden rule. */
html, body { overflow-x: clip; }

/* Services list */
.sidebar-nav { display: flex; flex-direction: column; border-top: 1px solid var(--color-line); }
.sidebar-nav a {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.95rem 0.25rem 0.95rem 0.75rem;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-serif); font-size: 1rem; font-weight: 500; color: var(--navy-950);
  transition: background-color var(--dur-med) var(--ease-out), padding-left var(--dur-med) var(--ease-out);
}
.sidebar-nav a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background-color var(--dur-med) var(--ease-out); }
.sidebar-nav a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--color-bronze); transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.sidebar-nav a:hover, .sidebar-nav a[aria-current="page"] { background: var(--ivory-50); padding-left: 1.1rem; }
.sidebar-nav a[aria-current="page"]::before { background: var(--color-accent); }
.sidebar-nav a:hover svg, .sidebar-nav a[aria-current="page"] svg { color: var(--color-accent); transform: translateX(3px); }

/* Email + phone side by side */
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 400px) { .form-row { grid-template-columns: 1fr; } }

/* Sidebar stack — booking form with the Services and contact cards directly
   beneath it. No inner scrolling: the aside stretches to the article's
   height and the stack is sticky. main.js sets --sidebar-top so a stack
   taller than the screen scrolls with the page until its bottom is in
   view, then holds there; a shorter one pins just below the header. */
.sidebar-stack { display: flex; flex-direction: column; gap: var(--sp-3); }
.sidebar-stack .contact-cta-lead { font-size: 1.1rem; margin-bottom: var(--sp-2); }
.sidebar-stack .enquiry-form { gap: 0.75rem; }
.sidebar-stack .form-field textarea { min-height: 80px; }
.sidebar-stack .form-status:empty { display: none; }

@media (min-width: 981px) {
  .sidebar--track { align-self: stretch; }
  .sidebar-stack.is-sticky { position: sticky; top: var(--sidebar-top, 96px); }
}

/* ==========================================================================
   About — specialist profile sections (anchor targets from the About dropdown)
   ========================================================================== */

.team-profile { scroll-margin-top: 24px; } /* section padding clears the fixed header */
.team-profile--tint { background: var(--ivory-50); }
.team-profile-head { max-width: 760px; margin-bottom: var(--sp-5); }
.team-profile-head h2 { margin-bottom: 0.4rem; }
.team-profile-qualifications { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-muted); }
.team-profile--tint .sidebar-card { background: var(--white); }

/* Profiles: photo floats left, bio wraps around it and runs full-width below */
@media (min-width: 700px) {
  .team-profile .page-layout--profile { display: flow-root; }
  .team-profile .profile-aside {
    float: left;
    width: clamp(240px, 30%, 340px);
    margin: 0 clamp(2rem, 4vw, 3.5rem) var(--sp-4) 0;
  }
  .team-profile .prose { max-width: none; }
  /* Quotes wrap like the bio; the left rule would sit behind the photo, so drop it */
  .team-profile .prose blockquote { padding-left: 0; border-left: none; }
  .team-profile .prose blockquote + blockquote { margin-top: var(--sp-4); }
}

/* ==========================================================================
   Service pages — visual layer (layout unchanged; scoped to body.service-page)
   New values are tints/shades of the existing palette only.
   ========================================================================== */

.service-page {
  --pink-tint-line: rgba(214, 96, 140, 0.22);   /* pink-400 @ 22% — card borders   */
  --pink-tint-glow: rgba(246, 217, 228, 0.55);  /* pink-150 @ 55% — decorative blob */
  --ivory-tint-glow: rgba(244, 237, 225, 0.7);  /* ivory-100 @ 70% — decorative blob */
  --shadow-soft: 0 1px 2px rgba(18, 40, 63, 0.04), 0 6px 18px rgba(18, 40, 63, 0.06);
  --shadow-lift: 0 2px 4px rgba(18, 40, 63, 0.05), 0 16px 36px rgba(18, 40, 63, 0.11);
  --shadow-navy: 0 4px 10px rgba(12, 29, 46, 0.12), 0 28px 56px rgba(12, 29, 46, 0.24);
}

/* --- Hero: richer scrim, pink rule under the title --- */
.service-page .page-hero .hero-scrim {
  background:
    linear-gradient(0deg, rgba(12,29,46,0.55) 0%, rgba(12,29,46,0) 45%),
    linear-gradient(100deg, rgba(12,29,46,0.9) 0%, rgba(12,29,46,0.62) 45%, rgba(12,29,46,0.15) 85%);
}
.service-page .page-hero-text h1::after {
  content: ""; display: block;
  width: 56px; height: 3px; border-radius: 2px;
  margin-top: var(--sp-3);
  background: var(--pink-400);
}

/* --- Content area: faint blush + cream shapes behind the column --- */
.service-page .service-body { position: relative; isolation: isolate; overflow-x: clip; padding-top: var(--sp-5); }
.service-page .service-body::before,
.service-page .service-body::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
}
.service-page .service-body::before {
  width: 640px; height: 640px; left: -260px; top: 6%;
  background: radial-gradient(circle, var(--pink-tint-glow) 0%, rgba(246,217,228,0) 70%);
}
.service-page .service-body::after {
  width: 720px; height: 720px; right: -300px; top: 48%;
  background: radial-gradient(circle, var(--ivory-tint-glow) 0%, rgba(244,237,225,0) 70%);
}

/* --- Section rhythm: accent bar, alternating cream panels --- */
.service-page .prose { counter-reset: svc; }
.service-page .service-section {
  counter-increment: svc;
  margin-top: var(--sp-6);
  scroll-margin-top: 100px;
}
.service-page .service-section > * + * { margin-top: var(--sp-3); }
.service-page .service-section:nth-of-type(even) {
  margin-inline: calc(var(--sp-4) * -1);
  padding: var(--sp-5) var(--sp-4);
  background: var(--ivory-50);
  border: 1px solid rgba(156, 122, 66, 0.12);
  border-radius: var(--radius-lg);
}
.service-page .prose .service-section h2 {
  margin-top: 0; padding-top: 0; border-top: none;
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem);
  line-height: 1.25;
}
.service-page .prose .service-section h2::after {
  content: ""; display: block;
  width: 44px; height: 3px; border-radius: 2px;
  margin-top: 0.85rem;
  background: var(--pink-400);
}

/* --- Lists: grid of small cards with pink check marks --- */
.service-page .prose ul {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem;
  padding: 0; background: none; border-radius: 0;
}
.service-page .prose ul li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3rem;
  background: var(--white);
  border: 1px solid var(--pink-tint-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 0.96rem; line-height: 1.5;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.service-page .prose ul li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: rgba(214, 96, 140, 0.45); }
.service-page .prose ul li::before {
  content: ""; position: absolute; left: 1rem; top: 1rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--pink-100);
}
.service-page .prose ul li::after {
  content: ""; position: absolute; left: calc(1rem + 0.5rem); top: calc(1rem + 0.32rem);
  width: 0.36rem; height: 0.62rem;
  border-right: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent);
  transform: rotate(45deg);
}

/* --- Sidebar depth --- */
.service-page .form-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-navy); }
.service-page .sidebar-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); border-color: rgba(12, 29, 46, 0.07); }
.service-page .sidebar-card:last-child { background: linear-gradient(160deg, var(--pink-50) 0%, var(--white) 60%); }

/* --- Closing CTA band (blush, so it doesn't merge into the navy footer) --- */
.service-cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--pink-150); color: var(--navy-950);
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}
.service-cta-band .contact-cta-eyebrow { color: var(--color-cta-bg-hover); } /* darker pink keeps AA on blush */
.service-cta-band .btn--outline-light { border-color: rgba(12, 29, 46, 0.3); color: var(--navy-950); }
.service-cta-band .btn--outline-light:hover { background: var(--navy-950); border-color: var(--navy-950); color: var(--white); }
.service-cta-band::before,
.service-cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.service-cta-band::before { width: 520px; height: 520px; right: -140px; top: -260px; border: 1px solid rgba(156, 122, 66, 0.35); }
.service-cta-band::after { width: 340px; height: 340px; right: -40px; top: -170px; border: 1px solid rgba(214, 96, 140, 0.4); }
.service-cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.service-cta-band-lead { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.35; max-width: 30ch; }
.service-cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- Responsive --- */
@media (max-width: 980px) {
  .service-page .service-section:nth-of-type(even) { margin-inline: -1rem; padding-inline: 1.25rem; }
}
@media (max-width: 640px) {
  .service-page .prose ul { grid-template-columns: 1fr; }
  .service-page .service-section:nth-of-type(even) { margin-inline: -1rem; padding: var(--sp-4) 1rem; }
}

/* ==========================================================================
   Service pages — imagery components (reusable on any .service-page)
   ========================================================================== */

.service-page .prose figure:not(.svc-feature):not(.svc-quote) { margin-bottom: 0; margin-inline: 0; }
.service-page .prose figure img { display: block; width: 100%; height: auto; object-fit: cover; }

/* Wide feature image with a blush offset block behind it */
.svc-feature { position: relative; isolation: isolate; }
.service-page .prose .svc-feature { margin: var(--sp-5) 1.25rem var(--sp-2) 0; }
.svc-feature::before {
  content: ""; position: absolute; z-index: -1;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  background: var(--pink-150);
  border-radius: var(--radius-lg);
}
.svc-feature img { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

/* Text + portrait image side by side */
.svc-split { display: grid; grid-template-columns: minmax(0, 1fr) 40%; gap: var(--sp-4); align-items: center; }
.svc-split-text > * + * { margin-top: var(--sp-3); }
.svc-split-media img,
.svc-split-media .svc-placeholder { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

/* Styled placeholder at final size — swap for a real <img> (see REPLACE comments) */
.svc-placeholder {
  width: 100%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D6608C' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Ccircle cx='9' cy='10' r='1.8'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center / 48px no-repeat,
    linear-gradient(160deg, var(--pink-100) 0%, var(--ivory-100) 100%);
  border: 1px dashed rgba(214, 96, 140, 0.45);
}

/* List cards with a line icon instead of the check mark */
.service-page .prose ul.svc-icon-list li { padding: 1.05rem 1rem 1.05rem 3.75rem; min-height: 4.1rem; }
.service-page .prose ul.svc-icon-list li::before,
.service-page .prose ul.svc-icon-list li::after { display: none; }
.svc-icon {
  position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink-50); border: 1px solid rgba(214, 96, 140, 0.22);
  color: var(--color-accent);
}
.svc-icon svg { width: 1.2rem; height: 1.2rem; }

/* Navy pull-quote band */
.svc-quote {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 3.75rem) clamp(1.75rem, 4vw, 3.5rem);
  background: var(--navy-950);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy, var(--shadow-lg));
}
.service-page .prose .svc-quote { margin: var(--sp-6) calc(var(--sp-4) * -1) 0; }
.svc-quote::before {
  content: "\201C"; position: absolute; z-index: -1;
  top: -0.08em; left: 0.12em;
  font-family: var(--font-serif); font-size: clamp(10rem, 8rem + 8vw, 16rem); line-height: 1;
  color: rgba(255, 255, 255, 0.06);
}
.svc-quote::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  width: 260px; height: 260px; right: -90px; bottom: -120px;
  border: 1px solid rgba(214, 96, 140, 0.35);
}
.service-page .prose .svc-quote blockquote { margin: 0; padding: 0; border: 0; }
.service-page .prose .svc-quote blockquote p {
  max-width: 24ch;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.25rem); line-height: 1.3;
  color: var(--white);
}
.svc-quote blockquote::after {
  content: ""; display: block; width: 56px; height: 3px; border-radius: 2px;
  margin-top: var(--sp-3); background: var(--pink-400);
}

/* Landscape photo inside a section */
.svc-photo img { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }

/* CTA band with an image on the right */
.service-cta-band--media .service-cta-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 440px); gap: var(--sp-5); align-items: center; }
.service-cta-band-content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
.service-cta-band-media { margin: 0; }
.service-cta-band-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift, var(--shadow-lg));
  border: 6px solid var(--white);
}

/* CTA band with a large, quiet awareness-ribbon motif on the right */
.service-cta-band--ribbon .service-cta-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center; }
.service-cta-band-ribbon { width: clamp(150px, 16vw, 230px); color: var(--pink-400); line-height: 0; }
.service-cta-band-ribbon svg { width: 100%; height: auto; }
.service-cta-band-ribbon path { fill: rgba(255, 255, 255, 0.4); }

@media (max-width: 980px) {
  .service-page .prose .svc-quote { margin-inline: -1rem; }
}
@media (max-width: 700px) {
  .service-cta-band--ribbon .service-cta-band-inner { grid-template-columns: 1fr; }
  .service-cta-band-ribbon { display: none; }
}
@media (max-width: 900px) {
  .service-cta-band--media .service-cta-band-inner { grid-template-columns: 1fr; }
  .service-cta-band-media { max-width: 520px; }
}
@media (max-width: 640px) {
  .service-page .prose .svc-feature { margin-right: 0.75rem; }
  .svc-feature::before { inset: 0.75rem -0.75rem -0.75rem 0.75rem; }
  .svc-split { grid-template-columns: 1fr; }
  .svc-split-media { max-width: 320px; }
}

/* Service heroes: start the photo below the fixed header so faces near the
   top of the image aren't hidden behind it. Per-image focal points are set
   inline on each .hero-photo. */
.service-page .page-hero .hero-photo, .page-hero--below-header .hero-photo,
.service-page .page-hero .hero-scrim, .page-hero--below-header .hero-scrim { top: 76px; }

/* Service heroes: a little taller */
.service-page .page-hero { min-height: clamp(520px, 74vh, 720px); }

/* Desktop: the submenu wrapper just stacks the links as before */
.nav-dropdown-inner { display: flex; flex-direction: column; gap: 2px; }

/* Submenu arrow buttons are mobile-only */
.nav-sub-toggle { display: none; }

/* --- Mobile / tablet navigation: full-width panel that drops down under the header --- */
@media (max-width: 900px) {
  .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: flex; }

  /* The fixed header (with backdrop-filter) is the containing block, so
     top: 100% places the panel directly beneath it. */
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain;
    padding: var(--sp-1) var(--sp-3) var(--sp-4);
    background: var(--white);
    border-top: 1px solid var(--color-line);
    box-shadow: 0 18px 30px rgba(18, 40, 63, 0.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
    z-index: 101;
  }
  .nav-links.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s;
  }

  /* Top-level rows */
  .nav-links > a:not(.nav-links-cta),
  .nav-item--dropdown > a {
    display: flex; align-items: center;
    min-height: 52px; padding: 0.85rem 0;
    font-size: 0.9rem; letter-spacing: 0.06em;
  }
  .nav-links > a:not(.nav-links-cta) { border-bottom: 1px solid var(--color-line); }
  .nav-links a::after { display: none; }
  .nav-links > a[aria-current="page"],
  .nav-item--dropdown > a[aria-current="page"] { color: var(--color-accent); }

  /* Parent with sub-pages: link + arrow button on one row, submenu below */
  .nav-item--dropdown {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    border-bottom: 1px solid var(--color-line);
  }
  .nav-caret { display: none; }
  .nav-sub-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -0.5rem;
    background: none; border: 0; border-radius: 50%;
    color: var(--navy-900);
    transition: background-color var(--dur-fast) var(--ease-out);
  }
  .nav-sub-toggle:hover { background: var(--ivory-50); }
  .nav-sub-toggle svg { width: 20px; height: 20px; transition: transform var(--dur-med) var(--ease-out); }
  .nav-sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  /* Submenu: collapsed by default, indented with a pink rule when open */
  .nav-dropdown {
    grid-column: 1 / -1;
    position: static; min-width: 0; transform: none;
    display: grid; grid-template-rows: 0fr;
    padding: 0; gap: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible;
    transition: grid-template-rows var(--dur-med) var(--ease-out);
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown > * { min-height: 0; }
  .nav-dropdown-inner { overflow: hidden; }
  .nav-item--dropdown.is-expanded .nav-dropdown { grid-template-rows: 1fr; }
  /* desktop hover/focus rules must not reopen it on touch */
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: none; }

  .nav-links .nav-dropdown a {
    display: block; padding: 0.7rem 0 0.7rem 1rem;
    border-left: 2px solid var(--pink-150);
    font-family: var(--font-base); font-size: 0.95rem; font-weight: 500;
    white-space: normal; color: var(--navy-900); background: none; border-radius: 0;
  }
  .nav-links .nav-dropdown-inner { padding-left: 0.25rem; gap: 0; }
  .nav-links .nav-dropdown-inner a:last-child { margin-bottom: 0.75rem; }
  .nav-links .nav-dropdown a:hover { background: none; color: var(--color-accent); }
  .nav-links .nav-dropdown a[aria-current="page"] { background: none; color: var(--color-accent); border-left-color: var(--color-accent); }

  .nav-links .nav-links-cta {
    display: inline-flex; justify-content: center; margin-top: var(--sp-3);
    padding: 0.95rem 1.8rem; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--white);
  }

  /* Dim the page below the header while the menu is open */
  .nav-scrim {
    position: absolute; top: 100%; left: 0; right: 0; height: 100vh;
    background: rgba(12, 29, 46, 0.35);
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-med) var(--ease-out);
    z-index: 100;
  }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
  html.nav-open { overflow: hidden; }
}

/* Contact hero: a little taller so the heading sits on a proper image band */
.page-hero--below-header { min-height: clamp(520px, 72vh, 700px); }
