/* ==========================================================================
   Dr. Chen Lean Seng — shared stylesheet (ID + CN)
   HTML + CSS only. No JavaScript.
   Concept: "the door" — arched frames (valves as doors, George Town arches)
   and the logo's ECG trace. Boldness is spent on the hero only.
   ========================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Marcellus";
  src: url("../fonts/marcellus-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --ink: #0f2c52;
  --ink-soft: #3c4f66;
  --teal: #0a6a70;
  --teal-bright: #13959c;
  --teal-deep: #0b4f5a;
  --pulse: #c2333f;
  --porcelain: #f3f6f6;
  --paper: #fcfdfd;
  --mist: #dde7e8;
  --lavender: #e6ecfc;
  --on-dark: #f3f6f6;
  --on-dark-soft: #c4d6dc;
  --wa: #0b7a4b;          /* WhatsApp green, darkened for 4.5:1 with white */
  --wa-hover: #096640;
  --focus: #c2333f;

  /* type */
  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.8125rem, 0.8rem + 0.06vw, 0.875rem);
  --step-0: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --step-1: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --step-3: clamp(1.5rem, 1.32rem + 0.8vw, 2.0625rem);
  --step-4: clamp(1.85rem, 1.5rem + 1.6vw, 2.875rem);

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

  /* shape */
  --r-sm: 6px;
  --r-md: 14px;
  --r-arch: 999px 999px 0 0;
  --shadow-lift: 0 1px 2px rgb(15 44 82 / 0.06), 0 8px 24px -12px rgb(15 44 82 / 0.22);

  --wrap: 1200px;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2rem);
  --header-h: 4.25rem;
}

/* Chinese page: system CJK stacks (no CJK webfont — too heavy) */
:lang(zh-Hans) {
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
:lang(zh-Hans) body { line-height: 1.85; letter-spacing: 0.01em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
:lang(zh-Hans) :is(h1, h2, h3, h4) { font-weight: 600; line-height: 1.3; letter-spacing: 0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 var(--s-4); }
:lang(id) :is(.lead, .section-head p) { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 600; }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-3); color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 var(--step-0)/1.2 var(--font-body);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.btn--sm { min-height: 44px; padding: 0.5em 1em; font-size: var(--step--1); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--porcelain);
  box-shadow: 0 1px 0 rgb(15 44 82 / 0.04);
  border-bottom: 1px solid var(--mist);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 46px; height: auto; }
.brand-name { display: grid; line-height: 1.15; }
.brand-name b { font: 400 1.0625rem/1.15 var(--font-display); }
.brand-name span { font-size: 0.75rem; color: var(--ink-soft); }
.brand:hover { color: var(--ink); }

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 0.9em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--step--1);
  cursor: pointer;
  user-select: none;
}
.nav-toggle-label .icon-close { display: none; }
.nav-toggle:checked + .nav-toggle-label .icon-open { display: none; }
.nav-toggle:checked + .nav-toggle-label .icon-close { display: inline; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--focus); outline-offset: 3px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
}
.site-nav a:hover { color: var(--teal); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-switch a, .lang-switch span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  min-width: 44px;
  justify-content: center;
  padding: 0 0.7em;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
}
.lang-switch [aria-current] { background: var(--ink); color: var(--on-dark); }
.lang-switch a:hover { background: var(--mist); }

.header-cta { display: none; }

/* mobile quick language link, always visible in the header bar */
.lang-quick {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  padding: 0 0.85em;
  border: 1px solid var(--mist);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lang-quick .icon { width: 1.1em; height: 1.1em; color: var(--teal); }
.lang-quick:hover { color: var(--ink); background: var(--mist); }

/* mobile nav (checkbox pattern; without CSS the nav is simply visible) */
@media (max-width: 959.98px) {
  .site-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--mist);
    box-shadow: var(--shadow-lift);
    padding: var(--s-3) var(--gutter) var(--s-5);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav li + li { border-top: 1px solid var(--mist); }
  .site-nav a { padding: 0.85em 0; font-size: var(--step-0); }
  .site-nav .lang-switch { display: none; }
  .brand-name span { display: none; }
  .site-header .wrap { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand img { width: 40px; }
  .lang-quick { order: 1; }
  .nav-toggle-label { order: 2; }
}
@media (max-width: 479.98px) {
  .nav-toggle-label { padding: 0; width: 44px; justify-content: center; }
  .nav-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359.98px) {
  .brand-name b { font-size: 0.9375rem; }
}
@media (min-width: 960px) {
  .nav-toggle, .nav-toggle-label, .lang-quick { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--s-5); }
  .site-nav ul { display: flex; gap: clamp(0.9rem, 0.3rem + 1vw, 1.6rem); }
  .site-nav a { padding: 0.5em 0; }
  .site-nav a:hover { text-decoration: underline; text-decoration-color: var(--teal-bright); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
  .header-cta { display: inline-flex; }
}

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 56px;
  padding: 0 1.15em 0 1em;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgb(11 79 52 / 0.55);
}
.wa-float .icon { width: 1.6em; height: 1.6em; }
.wa-float:hover { background: var(--wa-hover); color: #fff; }
@media (min-width: 960px) { .wa-float { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
.section-head { max-width: 46rem; margin-bottom: var(--s-7); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.section--paper { background: var(--paper); }
.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}
.section--ink .section-head p { color: var(--on-dark-soft); }
.section--ink a { color: #9ee0e4; }
.section--ink a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(2rem, 1rem + 4vw, 4.5rem);
}
.hero-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
.hero-copy { padding-bottom: clamp(0.5rem, 0.2rem + 2vw, 2.5rem); max-width: 38rem; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 var(--s-5);
  color: var(--teal);
  font-weight: 600;
  font-size: var(--step--1);
}
.hero-eyebrow .icon { color: var(--pulse); }
.hero h1 {
  font-size: var(--step-4);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-5);
}
.hero h1 .h1-name { display: block; }
.hero h1 .h1-role { display: block; font-size: 0.62em; line-height: 1.2; margin-top: 0.35em; color: var(--teal); }
.credentials {
  font-size: var(--step--1);
  color: var(--ink-soft);
  border-left: 2px solid var(--teal-bright);
  padding-left: var(--s-3);
  margin-bottom: var(--s-5);
}
.lead { font-size: var(--step-1); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }

/* the arch */
.hero-figure {
  position: relative;
  justify-self: center;
  width: min(80vw, 440px);
  margin: 0;
  isolation: isolate;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 16% 4% 0 4%;
  z-index: -1;
  border-radius: var(--r-arch);
  background:
    radial-gradient(120% 80% at 50% 0%, rgb(255 255 255 / 0.14), transparent 60%),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 55%, var(--ink) 100%);
}
.hero-figure picture, .hero-figure img { width: 100%; height: auto; }
.hero-ecg {
  position: absolute;
  left: -16%;
  top: 21%;
  z-index: -1;
  width: 132%;
  height: auto;
  color: var(--pulse);
  pointer-events: none;
}
.hero-ecg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--s-7); }
  .hero-figure { justify-self: end; }
  .hero-ecg { left: -30%; width: 140%; }
}

/* single orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-ecg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ecg-draw 1.8s cubic-bezier(.6,.1,.3,1) 0.35s forwards;
  }
  .hero-figure picture {
    animation: settle 0.9s cubic-bezier(.2,.7,.2,1) both;
  }
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }
@keyframes settle { from { transform: translateY(12px); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* facts strip */
.facts {
  border-block: 1px solid var(--mist);
  background: var(--paper);
}
.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin: 0;
}
.facts div {
  padding: var(--s-5) var(--s-4);
  border-left: 1px solid var(--mist);
}
.facts div:first-child { border-left: 0; }
.facts dt {
  font: 600 var(--step-2)/1.1 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.facts dd { margin: var(--s-1) 0 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 599.98px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts div { border-left: 0; border-top: 1px solid var(--mist); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:nth-child(even) { border-left: 1px solid var(--mist); }
  .facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--s-7); }
.about-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 300px);
  position: relative;
  isolation: isolate;
}
.about-figure::before {
  content: "";
  position: absolute;
  inset: 8% 0 0 0;
  z-index: -1;
  border-radius: var(--r-arch);
  background: var(--lavender);
}
.about-figure img { width: 72%; margin-inline: auto; }
.about-figure figcaption {
  position: absolute;
  left: 50%;
  bottom: var(--s-4);
  transform: translateX(-50%);
  width: max-content;
  max-width: 92%;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.about-body { max-width: 44rem; }
.about-body h3 { margin-top: var(--s-7); font-size: var(--step-2); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 300px 1fr; gap: var(--s-8); align-items: start; }
  .about-figure { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.timeline {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  border-left: 2px solid var(--mist);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-4);
  padding: 0 0 var(--s-5) var(--s-5);
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--teal);
}
.timeline .yr { font: 600 var(--step-0)/1.5 var(--font-body); color: var(--teal); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; }
.timeline small { display: block; color: var(--ink-soft); font-size: var(--step--1); }

.langs { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-4) 0; }
.langs li {
  padding: 0.3em 0.85em;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: var(--paper);
  font-size: var(--step--1);
  font-weight: 600;
}
.note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  background: #e3f1f1;
  color: var(--ink);
}
.note .icon { color: var(--teal); margin-top: 0.2em; }
.note p { margin: 0; }

/* ---------- Why (dark band) ---------- */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.why-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-top: 1px solid rgb(196 214 220 / 0.25);
}
.why-list .icon { width: 2.25rem; height: 2.25rem; color: #7fd3d8; stroke-width: 1.4; }
.why-list h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
:lang(id) .why-list h3 { font-family: var(--font-display); }
.why-list p { margin: 0; color: var(--on-dark-soft); }
@media (min-width: 800px) {
  .why-list { grid-template-columns: repeat(3, 1fr); column-gap: var(--s-6); }
  .why-list li:not(:first-child) { grid-template-columns: 1fr; gap: var(--s-3); }
  .why-list li:first-child { grid-column: 1 / -1; }
  .why-list li:first-child h3 { font-size: var(--step-2); }
  .why-list li:first-child p { font-size: var(--step-1); max-width: 48rem; }
}

/* ---------- Videos ---------- */
.section-head .video-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--s-2);
  padding: 0.4em 0.9em;
  border-radius: var(--r-sm);
  background: var(--lavender);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.45;
}
.video-note .icon { flex: none; }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.video-layout > *, .episode > * { min-width: 0; }
.episode-index { font-size: var(--step--1); }
.episode-index h3 { font: 600 var(--step--1)/1.4 var(--font-body); color: var(--ink-soft); margin-bottom: var(--s-3); }
.episode-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); counter-reset: ep; }
.episode-index a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s-2);
  padding: 0.6em 0.8em;
  border-radius: var(--r-sm);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.35;
}
.episode-index a:hover { background: var(--lavender); }
.episode-index .num { font: 600 1rem/1.35 var(--font-body); color: var(--teal); }
@media (max-width: 899.98px) {
  .episode-index ol { grid-auto-flow: column; grid-auto-columns: minmax(12rem, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); }
  .episode-index li { scroll-snap-align: start; }
  .episode-index a { height: 100%; border: 1px solid var(--mist); background: var(--paper); }
}
@media (min-width: 900px) {
  .video-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-7); align-items: start; }
  .episode-index { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.episode {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-top: 1px solid var(--mist);
}
.episode:first-child { border-top: 0; padding-top: 0; }
.episode-video {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  border-radius: 22px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 9 / 16;
}
.episode-video video { width: 100%; height: 100%; object-fit: cover; }
.episode-label { color: var(--teal); font-weight: 600; font-size: var(--step--1); margin-bottom: var(--s-2); }
.episode h3 { font-size: var(--step-2); }
.episode h3 .sub { display: block; font-size: 0.72em; color: var(--ink-soft); margin-top: 0.25em; }
.episode-meta { color: var(--ink-soft); font-size: var(--step--1); display: flex; align-items: center; gap: 0.4em; }
.points { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: var(--s-2); }
.points .icon { color: var(--teal); margin-top: 0.25em; width: 1.1rem; height: 1.1rem; }
@media (min-width: 700px) {
  .episode { grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; }
  .episode-video { width: 100%; }
}

/* ---------- Conditions ---------- */
.conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.condition {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--mist);
}
.condition img { width: 96px; height: 96px; border-radius: 18px; background: var(--lavender); }
.condition h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.condition p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.55; }
@media (min-width: 1000px) {
  .conditions { grid-template-columns: repeat(3, 1fr); }
  .condition { grid-template-columns: 1fr; padding: var(--s-5); }
  .condition img { width: 120px; height: 120px; }
}

/* ---------- Procedures (details/summary) ---------- */
.proc-groups { display: grid; gap: var(--s-7); }
.proc-group h3 {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-size: var(--step-2);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}
.proc-group h3 small { font: 400 var(--step--1)/1.3 var(--font-body); color: var(--ink-soft); }
.acc { border-bottom: 1px solid var(--mist); }
.acc summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: var(--step-1);
  line-height: 1.35;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .tag { display: block; font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); margin-top: 0.15em; }
.acc summary::after {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.75px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.75px 12px no-repeat;
  transition: transform 0.25s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.acc summary:hover::after { border-color: var(--ink); }
.acc[open] > summary::after {
  transform: rotate(45deg);
  background-color: var(--lavender);
  border-color: var(--lavender);
}
.acc summary:focus-visible { outline-offset: 0; }
.acc-body { padding: 0 0 var(--s-5); max-width: 48rem; }
.acc-body dl { margin: 0; display: grid; gap: var(--s-4); }
.acc-body dt { font-weight: 600; color: var(--teal); }
.acc-body dd { margin: var(--s-1) 0 0; }
.acc-note {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  background: var(--lavender);
  font-size: var(--step--1);
}
.acc-note .icon { margin-top: 0.15em; color: var(--ink); }
.acc-note p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .acc[open] .acc-body { animation: rise 0.35s ease both; }
}
.skills-more { margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--mist); }
.proc-group .skills-more h3 { display: block; font-size: var(--step-1); padding: 0; border: 0; margin-bottom: var(--s-3); }
.skills-more ul { columns: 2 14rem; margin: 0; }
.skills-more li { break-inside: avoid; margin-bottom: var(--s-1); }

@media (min-width: 1000px) {
  .proc-groups { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); }
  .proc-group--wide { grid-column: 1 / -1; }
}

/* ---------- Awards ---------- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.award {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  border-radius: var(--r-arch);
  border-radius: 160px 160px var(--r-md) var(--r-md);
  background: var(--paper);
  border: 1px solid var(--mist);
  text-align: center;
}
.award .icon { width: 3rem; height: 3rem; margin: 0 auto var(--s-4); color: var(--teal); stroke-width: 1.3; }
.award time { display: block; font: 600 var(--step-2)/1 var(--font-body); letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--s-3); }
.award h3 { font: 600 var(--step-1)/1.35 var(--font-body); margin-bottom: var(--s-2); }
.award p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); }
.research { margin-top: var(--s-6); max-width: 46rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq .acc summary { font-size: var(--step-1); }
.faq .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Appointment ---------- */
.appt-grid { display: grid; gap: var(--s-6); }
.appt-card {
  padding: var(--s-6) var(--s-5);
  border-radius: 200px 200px var(--r-md) var(--r-md);
  background: var(--paper);
  border: 1px solid var(--mist);
  text-align: center;
  box-shadow: var(--shadow-lift);
}
.appt-card img { width: 140px; height: 140px; margin: 0 auto var(--s-4); }
.appt-card h3 { font-size: var(--step-2); margin-bottom: var(--s-1); }
.appt-card .role { color: var(--teal); font-weight: 600; margin-bottom: var(--s-4); }
.appt-card .creds { font-size: var(--step--1); color: var(--ink-soft); }
.appt-card .reg { font-size: var(--step--1); padding-top: var(--s-4); border-top: 1px solid var(--mist); margin-top: var(--s-4); }
.appt-card .btn { width: 100%; margin-top: var(--s-3); }
.info-list { margin: 0; display: grid; gap: 0; }
.info-list > div {
  padding: var(--s-4) 0;
  border-top: 1px solid var(--mist);
}
.info-list > div:first-child { border-top: 0; padding-top: 0; }
.info-list dt { display: flex; align-items: center; gap: var(--s-3); font-weight: 600; }
.info-list .icon { width: 1.5rem; height: 1.5rem; color: var(--teal); }
.info-list dd { margin: 0.2em 0 0 calc(1.5rem + var(--s-3)); color: var(--ink-soft); }
.info-list dd a { font-weight: 600; }
@media (min-width: 900px) {
  .appt-grid { grid-template-columns: 340px 1fr; gap: var(--s-8); align-items: start; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, #0c2444 100%);
  color: var(--on-dark);
}
.cta-band h2 { font-size: var(--step-4); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--on-dark-soft); max-width: 40rem; margin-inline: auto; margin-bottom: var(--s-6); }
.cta-ecg { width: min(100%, 720px); margin: 0 auto var(--s-6); color: var(--pulse); }
.cta-ecg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cta-band .btn--wa { font-size: var(--step-1); min-height: 56px; padding-inline: 1.6em; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a213f;
  color: var(--on-dark-soft);
  font-size: var(--step--1);
  padding: var(--s-7) 0 calc(var(--s-7) + 4rem);
}
@media (min-width: 960px) { .site-footer { padding-bottom: var(--s-6); } }
.site-footer a { color: #b7e5e8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--s-6); }
.footer-brand b { display: block; font: 400 var(--step-2)/1.2 var(--font-display); color: var(--on-dark); margin-bottom: var(--s-2); }
.footer-brand p { margin-bottom: var(--s-3); }
.site-footer h2 { font: 600 var(--step-0)/1.4 var(--font-body); color: var(--on-dark); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.disclaimer { border-top: 1px solid rgb(196 214 220 / 0.2); margin: var(--s-6) 0 0; padding-top: var(--s-5); font-size: 0.8125rem; line-height: 1.6; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgb(196 214 220 / 0.12);
  font-size: 0.8125rem;
}
.footer-legal p { margin: 0; color: var(--on-dark); letter-spacing: 0.01em; }
.site-footer .footer-legal a { display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; text-decoration: none; }
.footer-legal .icon { width: 1em; height: 1em; transform: rotate(180deg); }
.site-footer .lang-switch { border-color: rgb(196 214 220 / 0.3); }
.site-footer .lang-switch a { color: var(--on-dark); }
.site-footer .lang-switch a:hover { background: rgb(255 255 255 / 0.1); }
.site-footer .lang-switch [aria-current] { background: var(--on-dark); color: var(--ink); }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 2fr 1fr; align-items: start; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-8); }
.notfound h1 { font-size: var(--step-4); }
.notfound .cols { display: grid; gap: var(--s-6); margin-top: var(--s-6); }
@media (min-width: 700px) { .notfound .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .hero-ecg, .cta-ecg, video { display: none !important; }
  body { background: #fff; }
  .acc-body { display: block; }
}

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .hero-figure::before, .about-figure::before { forced-color-adjust: none; }
  .btn { border-color: ButtonText; }
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
