/* =========================================================
   Mr Omar Shareef — Consultant Urological Surgeon
   main.css — hand-written, no framework, no build step
   Edit design tokens below to retheme the whole site.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour — cool clinical palette */
  --ink: #0f1c2e;        /* deep cold navy: hero, contact, footer */
  --ink-2: #15263f;      /* raised surfaces on ink */
  --paper: #f6f8fa;      /* cold porcelain page background */
  --paper-2: #edf1f5;    /* alternate section background */
  --card: #ffffff;
  --text: #1a2637;
  --muted: #52647b;
  --faint: #8b9aac;
  --line: #d9e1e9;
  --line-ink: rgba(233, 239, 245, 0.14);
  --accent: #1e5fa8;     /* steel cobalt */
  --accent-deep: #174a85;
  --accent-tint: #e3edf8;
  --accent-on-ink: #8db8e8;
  --text-on-ink: #e9eff5;
  --muted-on-ink: #9db0c5;

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Rhythm */
  --space: clamp(4.5rem, 10vw, 8rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --header-h: 4.5rem;

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

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent); color: #fff; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible,
.site-header :focus-visible {
  outline-color: var(--accent-on-ink);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--text-on-ink); }

/* Section headings: numeral + rule + title */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--faint);
}
.section--ink .section-head .num { color: var(--muted-on-ink); }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head .lede {
  grid-column: 2;
  max-width: 46ch;
  color: var(--muted);
}
.section--ink .section-head .lede { color: var(--muted-on-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 550;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { background: var(--card); color: var(--text); }

.btn--on-ink {
  background: var(--text-on-ink);
  color: var(--ink);
}
.btn--on-ink:hover { background: #fff; color: var(--ink); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 550;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--text-on-ink);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 28, 46, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-ink);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-on-ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand .brand-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 450;
  letter-spacing: 0.06em;
  color: var(--muted-on-ink);
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  color: var(--muted-on-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 480;
  transition: color 0.15s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="true"] { color: #fff; }
.site-nav .nav-cta {
  color: var(--ink);
  background: var(--text-on-ink);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 550;
}
.site-nav .nav-cta:hover { background: #fff; color: var(--ink); }

/* Scroll progress hairline */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: var(--accent-on-ink);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--text-on-ink);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 47.9rem) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid var(--line-ink);
    border-bottom: 1px solid var(--line-ink);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.25rem; font-size: 1.05rem; }
  .site-nav .nav-cta { margin-top: 0.5rem; text-align: center; justify-content: center; display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-ink);
  padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 6.5rem));
  overflow: hidden;
}
/* fine grid texture, css-only */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-ink) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-ink) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 80% 0%, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 480;
  color: var(--accent-on-ink);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5.75rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
}
.hero h1 .thin { font-style: italic; font-weight: 400; color: var(--muted-on-ink); }
.hero .hero-sub {
  max-width: 52ch;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted-on-ink);
  margin-bottom: 2.25rem;
}
.hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero .hero-actions .text-link { color: var(--text-on-ink); }
.hero .hero-actions .text-link:hover { color: #fff; }

/* Portrait slot */
.portrait {
  position: relative;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 85%);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.portrait .placeholder-label {
  width: 100%;
  padding: 1rem 1.15rem;
  font-size: 0.82rem;
  color: var(--muted-on-ink);
  border-top: 1px solid var(--line-ink);
  background: rgba(15, 28, 46, 0.65);
}
.portrait svg.silhouette {
  position: absolute;
  inset: auto 0 2.4rem 0;
  margin: 0 auto;
  width: 62%;
  height: auto;
  opacity: 0.28;
}

/* Hero fact strip */
.fact-strip {
  border-top: 1px solid var(--line-ink);
  padding-block: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: 0.9rem;
  color: var(--muted-on-ink);
}
.fact-strip strong { color: var(--text-on-ink); font-weight: 550; }

@media (max-width: 47.9rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; }
}

/* ---------- Stats band ---------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.stat {
  background: var(--paper);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2rem);
}
.stat .figure {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat .figure sup { font-size: 0.5em; color: var(--accent); margin-left: 0.05em; }
.stat .label { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; max-width: 24ch; }

@media (max-width: 47.9rem) {
  .stats .wrap { grid-template-columns: 1fr; border-inline: 0; }
  .stat { border-inline: 1px solid var(--line); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-copy p + p { margin-top: 1.15rem; }
.about-copy .lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}

.credentials {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.credentials h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 1.1rem;
}
.credentials dl { display: grid; gap: 1.1rem; }
.credentials dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.25rem;
}
.credentials dd { font-size: 0.96rem; color: var(--text); }
.credentials dd + dt { margin-top: 0.35rem; }
.credentials .divider { border: 0; border-top: 1px solid var(--line); margin: 1.4rem 0; }

@media (max-width: 61.9rem) {
  .about-grid { grid-template-columns: 1fr; }
  .credentials { position: static; }
}

/* ---------- Conditions accordion ---------- */
.conditions { border-top: 1px solid var(--line); }
.condition {
  border-bottom: 1px solid var(--line);
}
.condition > h3 { margin: 0; }
.condition-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
  transition: color 0.15s var(--ease);
}
.condition-trigger:hover { color: var(--accent-deep); }
.condition-trigger .idx {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--faint);
  font-size: 1rem;
}
.condition-trigger .title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.25;
}
.condition-trigger .chevron {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--faint);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.condition-trigger[aria-expanded="true"] .chevron { transform: rotate(45deg); color: var(--accent); }

.condition-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.condition-panel > div { overflow: hidden; }
.condition-panel.is-open { grid-template-rows: 1fr; }
.condition-body {
  padding: 0.25rem 0.25rem 1.75rem calc(3rem + 1.25rem);
  max-width: 62ch;
  color: var(--muted);
}
.condition-body p + p { margin-top: 0.8rem; }
.condition-body .treatments {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.condition-body .treatments li {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
}

@media (max-width: 47.9rem) {
  .condition-trigger { grid-template-columns: 2rem 1fr auto; gap: 0.75rem; }
  .condition-body { padding-left: calc(2rem + 0.75rem); }
}

/* ---------- Patient journey ---------- */
.journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: step;
}
.journey .step {
  position: relative;
  padding-top: 1.75rem;
}
.journey .step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -0.4rem;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted-on-ink);
}
.journey .step::after {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 2.2rem;
  right: 0;
  height: 1px;
  background: var(--line-ink);
}
.journey h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}
.journey p { color: var(--muted-on-ink); font-size: 0.98rem; }

@media (max-width: 47.9rem) {
  .journey { grid-template-columns: 1fr; }
}

/* ---------- Reviews placeholder ---------- */
.reviews-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}
.reviews-slot .tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.reviews-slot p { color: var(--muted); max-width: 60ch; }

/* ---------- Locations ---------- */
.locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.location {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.location .kind {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.location h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
}
.location address { font-style: normal; color: var(--muted); }
.location .loc-note { color: var(--muted); font-size: 0.95rem; }
.location .loc-links { margin-top: auto; padding-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }

@media (max-width: 47.9rem) {
  .locations { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-card {
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.4rem;
}
.contact-card .who { color: var(--muted-on-ink); font-size: 0.95rem; }
.contact-card .who strong { display: block; color: var(--text-on-ink); font-size: 1.15rem; font-weight: 550; margin-bottom: 0.15rem; }
.contact-card .tel {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.contact-card .tel:hover { color: var(--accent-on-ink); }
.contact-card .mail {
  color: var(--accent-on-ink);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.gdpr-note {
  border-left: 2px solid var(--accent-on-ink);
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--muted-on-ink);
}

.contact-copy p + p { margin-top: 1rem; }
.contact-copy p { color: var(--muted-on-ink); }
.contact-copy .contact-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--text-on-ink);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-on-ink);
  border-top: 1px solid var(--line-ink);
  padding-block: 2.25rem;
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--muted-on-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Subpages ---------- */
.page-main {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: var(--space);
  min-height: 60vh;
}
.page-main .wrap { max-width: 46rem; }
.page-main h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.75rem;
}
.page-main h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 2.25rem 0 0.75rem;
}
.page-main p + p { margin-top: 1rem; }
.page-main p { color: var(--muted); }
.page-main .note {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.25rem 1.5rem;
}
.page-main ul { margin: 0.75rem 0 0 1.25rem; color: var(--muted); }
.page-main li + li { margin-top: 0.4rem; }
/* subpage header sits on light background */
.header-solid { background: var(--ink); position: sticky; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Reduced motion ---------- */
@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .skip-link, .progress { display: none; }
  .section--ink, .hero, .site-footer { background: #fff; color: #000; }
  .hero { padding-top: 1rem; }
}

/* =========================================================
   V2 LAYER — theatrical UI: overlay menu, drawers, reveals
   All motion gated behind html.js and prefers-reduced-motion.
   ========================================================= */

/* ---------- Intro curtain ---------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.curtain .curtain-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--text-on-ink);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.curtain.is-in .curtain-name { opacity: 1; transform: none; }
.curtain.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .curtain { display: none; }
@media (prefers-reduced-motion: reduce) { .curtain { display: none; } }

/* ---------- Menu button ---------- */
.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--text-on-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 520;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.menu-btn:hover { background: var(--ink-2); border-color: var(--muted-on-ink); }
.menu-btn .dots { display: inline-grid; grid-template-columns: repeat(2, 4px); gap: 3px; }
.menu-btn .dots i {
  width: 4px; height: 4px; border-radius: 50%;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-btn:hover .dots i:nth-child(1) { transform: translate(1px, 1px); }
.menu-btn:hover .dots i:nth-child(4) { transform: translate(-1px, -1px); }

/* ---------- Full-screen overlay menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  transform: translateY(-102%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.menu-overlay.is-open { transform: translateY(0); }
.menu-overlay .menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: 1px solid var(--line-ink);
}
.menu-overlay .menu-close {
  background: none;
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  color: var(--text-on-ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
.menu-overlay .menu-close:hover { background: var(--ink-2); }
.menu-links {
  list-style: none;
  padding: clamp(2rem, 6vh, 4rem) 0;
  display: grid;
  gap: 0.25rem;
}
.menu-links a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.6rem, 1.6vh, 1rem) 0;
  text-decoration: none;
  color: var(--text-on-ink);
  border-bottom: 1px solid var(--line-ink);
}
.menu-links .m-idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--muted-on-ink);
}
.menu-links .m-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.5vh, 3.1rem);
  line-height: 1.1;
  transition: transform 0.35s var(--ease), color 0.2s var(--ease);
}
.menu-links .m-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--accent-on-ink);
  font-size: 1.4rem;
}
.menu-links a:hover .m-label,
.menu-links a:focus-visible .m-label { transform: translateX(10px); color: var(--accent-on-ink); }
.menu-links a:hover .m-arrow,
.menu-links a:focus-visible .m-arrow { opacity: 1; transform: none; }

/* staggered entrance */
.menu-links li {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: 0s;
}
.menu-overlay.is-open .menu-links li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.menu-meta {
  margin-top: auto;
  border-top: 1px solid var(--line-ink);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  color: var(--muted-on-ink);
  font-size: 0.92rem;
}
.menu-meta a { color: var(--text-on-ink); text-decoration: none; }
.menu-meta a:hover { color: var(--accent-on-ink); }
@media (prefers-reduced-motion: reduce) {
  .menu-overlay { transition: none; }
  .menu-links li { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero entrance choreography ---------- */
html.js .hero-kicker,
html.js .hero .hero-sub,
html.js .hero .hero-actions,
html.js .hero .fact-strip,
html.js .hero .portrait {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .hero h1 .line {
  display: block;
  overflow: hidden;
}
html.js .hero h1 .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
}
html.js.hero-in .hero-kicker { opacity: 1; transform: none; transition-delay: 0.1s; }
html.js.hero-in .hero h1 .line > span { transform: none; }
html.js.hero-in .hero h1 .line:nth-child(1) > span { transition-delay: 0.18s; }
html.js.hero-in .hero h1 .line:nth-child(2) > span { transition-delay: 0.28s; }
html.js.hero-in .hero .hero-sub { opacity: 1; transform: none; transition-delay: 0.42s; }
html.js.hero-in .hero .hero-actions { opacity: 1; transform: none; transition-delay: 0.54s; }
html.js.hero-in .hero .portrait { opacity: 1; transform: none; transition-delay: 0.5s; }
html.js.hero-in .hero .fact-strip { opacity: 1; transform: none; transition-delay: 0.68s; }
@media (prefers-reduced-motion: reduce) {
  html.js .hero-kicker, html.js .hero .hero-sub, html.js .hero .hero-actions,
  html.js .hero .fact-strip, html.js .hero .portrait { opacity: 1; transform: none; transition: none; }
  html.js .hero h1 .line > span { transform: none; transition: none; }
}

/* ---------- Split-line heading reveals ---------- */
html.js .section-head h2 { overflow: hidden; }
html.js .section-head h2 .inner {
  display: block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
html.js .section-head.is-visible h2 .inner { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .section-head h2 .inner { transform: none; transition: none; }
}

/* ---------- Condition rows → slide-in drawer ---------- */
.condition-trigger .peek {
  font-size: 0.86rem;
  color: var(--faint);
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.condition-trigger .peek .arr {
  transition: transform 0.25s var(--ease);
}
.condition-trigger:hover .peek { color: var(--accent-deep); }
.condition-trigger:hover .peek .arr { transform: translateX(4px); }

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(15, 28, 46, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 140;
  width: min(30rem, 94vw);
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(15, 28, 46, 0.25);
  transform: translateX(103%);
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer .drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
}
.drawer .drawer-kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--faint);
  font-size: 0.95rem;
}
.drawer .drawer-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}
.drawer .drawer-close:hover { background: var(--paper-2); }
.drawer .drawer-body { padding: 1.75rem 1.5rem 2.25rem; }
.drawer .drawer-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.drawer .drawer-body p { color: var(--muted); }
.drawer .drawer-body p + p { margin-top: 0.8rem; }
.drawer .drawer-body .treatments {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}
.drawer .drawer-body .treatments li {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--accent-deep);
  background: var(--accent-tint);
  border-radius: 3px;
  padding: 0.3rem 0.6rem;
}
.drawer .drawer-cta {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
}
.drawer .drawer-cta .btn { justify-content: center; }
.drawer .drawer-note { font-size: 0.85rem; color: var(--faint); }
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop { transition: none; }
}

/* ---------- Journey: sticky stacking cards ---------- */
@media (min-width: 48rem) {
  .journey--stack {
    display: block;
    counter-reset: step;
  }
  .journey--stack .step {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
    background: var(--ink-2);
    border: 1px solid var(--line-ink);
    border-radius: var(--radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
    padding-top: clamp(1.75rem, 4vw, 2.75rem);
  }
  .journey--stack .step::after { display: none; }
  .journey--stack .step::before {
    position: static;
    display: block;
    margin-bottom: 0.75rem;
  }
  .journey--stack .step:nth-child(2) { top: calc(var(--header-h) + 3.5rem); }
  .journey--stack .step:nth-child(3) { top: calc(var(--header-h) + 4.5rem); }
  .journey--stack h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
  .journey--stack p { max-width: 56ch; font-size: 1.05rem; }
}

/* ---------- Body scroll lock ---------- */
body.no-scroll { overflow: hidden; }

/* ---------- Header actions (v2) ---------- */
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-call {
  color: var(--text-on-ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.header-call:hover { color: var(--accent-on-ink); }
@media (max-width: 30rem) { .header-call { display: none; } }

/* Simple always-visible nav for subpages */
@media (max-width: 47.9rem) {
  .site-nav--simple {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background: none;
    border: 0;
    padding: 0;
  }
  .site-nav--simple a { padding: 0; font-size: 0.9rem; }
  .site-nav--simple a:not(.nav-cta) { display: none; }
  .site-nav--simple .nav-cta { margin-top: 0; }
}
