/* ==========================================================================
   Dr. Chen Lean Seng — shared stylesheet
   HTML + CSS only. No JavaScript.
   Follows the live chenleanseng.com design language: Plus Jakarta Sans 800
   headings in navy with a royal-blue tail, pale-blue / white alternating
   sections, pill tags, bordered white cards, green WhatsApp buttons.
   ========================================================================== */

/* ---------- Font (self-hosted, Latin subset, variable 200–800) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens (from the live site) ---------- */
:root {
  --text: #0d1b3e;
  --text-mid: #4a5568;
  --text-light: #64748b;     /* live #8898aa darkened to pass 4.5:1 */
  --blue: #1a5cff;
  --blue-dark: #1244cc;
  --blue-mid: #c5d5ff;
  --blue-light: #e8efff;
  --bg: #f0f4ff;
  --white: #ffffff;
  --border: #e2e8f0;
  --gold: #f5a623;
  --green: #22c55e;
  --wa: #25d366;             /* WhatsApp green; carries navy text for contrast */
  --wa-hover: #1fbd5a;
  --focus: #1a5cff;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", 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.55rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.5vw, 2.55rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);

  --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);

  --r-card: 20px;
  --r-sm: 12px;
  --shadow-card: 0 10px 30px -12px rgb(26 92 255 / 0.18);
  --shadow-float: 0 18px 40px -16px rgb(13 27 62 / 0.22);

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

/* ---------- 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(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
:lang(id) body { word-spacing: 0.04em; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
.hl { color: var(--blue); }
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(--blue-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--text); }
ul, ol { padding-left: 1.2em; }
strong { font-weight: 700; }

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

.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.7; 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(--text);
  color: var(--white);
  border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-3); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 50px;
  padding: 0.75em 1.75em;
  border: 1.5px solid transparent;
  border-radius: 50px;
  font: 700 var(--step-0)/1.2 var(--font);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn .icon { width: 1.2em; height: 1.2em; }
.btn--wa { background: var(--wa); color: var(--text); box-shadow: 0 8px 22px -8px rgb(37 211 102 / 0.75); }
.btn--wa:hover { background: var(--wa-hover); color: var(--text); box-shadow: 0 10px 26px -8px rgb(37 211 102 / 0.9); }
.btn--ghost { background: var(--white); border-color: var(--blue-mid); color: var(--blue-dark); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }
.btn--sm { min-height: 46px; padding: 0.55em 1.5em; font-size: var(--step-0); }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-2px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.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(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 52px; height: auto; }
.brand-name { display: grid; line-height: 1.2; }
.brand-name b { font: 800 1.0625rem/1.2 var(--font); letter-spacing: -0.015em; }
.brand-name span { font-size: 0.75rem; color: var(--text-light); }
.brand:hover { color: var(--text); }

.nav-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 0.95em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  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(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8125rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--blue); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }

.header-cta { display: none; }

@media (max-width: 959.98px) {
  :root { --header-h: 4.25rem; }
  .site-nav {
    display: none;
    position: absolute;
    inset: calc(100% + 0.5rem) var(--gutter) auto var(--gutter);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-float);
    padding: var(--s-2) var(--s-5) var(--s-3);
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav li + li { border-top: 1px solid var(--border); }
  .site-nav a { padding: 0.85em 0; font-size: var(--step-0); }
  .brand-name span { display: none; }
  .site-header .wrap { gap: var(--s-2); }
  .brand { gap: var(--s-2); }
  .brand img { width: 42px; }
  .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 { display: none; }
  .site-nav { display: flex; align-items: center; gap: var(--s-5); }
  .site-nav ul { display: flex; gap: clamp(0.9rem, 0.2rem + 1vw, 1.6rem); }
  .site-nav a { padding: 0.5em 0; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 960px) and (max-width: 1199.98px) {
  .brand-name span { display: none; }
  .site-nav ul { gap: 0.9rem; }
  .site-nav a { font-size: 0.75rem; }
  .header-cta { padding-inline: 1.1em; }
}

/* ---------- 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: 50px;
  background: var(--wa);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgb(37 211 102 / 0.8);
}
.wa-float .icon { width: 1.6em; height: 1.6em; }
.wa-float:hover { background: var(--wa-hover); color: var(--text); }
@media (min-width: 960px) { .wa-float { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--s-8); }
/* alternate white / pale blue, like the live site */
#mengapa, #kondisi, #penghargaan, #janji-temu, #biaya, #cara-berobat { background: var(--bg); }
#video, #layanan, #faq, #jelajahi, #gejala { background: var(--white); }

.section-head { max-width: 44rem; margin-bottom: var(--s-7); }
.section-head h2 { margin-bottom: var(--s-4); }
.section-head p { color: var(--text-mid); font-size: var(--step-0); line-height: 1.75; }
.section-head p:last-child { margin-bottom: 0; }
.section-head .section-tag,
.section-tag {
  display: inline-block;
  margin-bottom: var(--s-4);
  padding: 0.4em 1.1em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* centred heads for the gallery-style sections */
:is(#mengapa, #video, #kondisi, #penghargaan, #jelajahi, #cara-berobat) .section-head {
  margin-inline: auto;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  background:
    radial-gradient(40% 50% at 85% 20%, rgb(197 213 255 / 0.55), transparent 70%),
    radial-gradient(30% 40% at 20% 95%, rgb(197 213 255 / 0.4), transparent 70%),
    linear-gradient(135deg, #f0f4ff 0%, #e8efff 60%, #f8faff 100%);
}
.hero-grid {
  display: grid;
  gap: var(--s-7);
  align-items: end;
}
.hero-copy { padding-bottom: var(--s-6); max-width: 38rem; align-self: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 var(--s-5);
  padding: 0.45em 1.1em 0.45em 0.95em;
  border-radius: 50px;
  background: var(--white);
  box-shadow: 0 4px 14px -6px rgb(26 92 255 / 0.25);
  color: var(--blue-dark);
  font-weight: 600;
  font-size: var(--step--1);
  line-height: 1.35;
}
.hero-eyebrow .icon { display: none; }
.hero-eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgb(34 197 94 / 0.2);
}
.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}
.hero h1 .h1-name { display: block; }
.hero h1 .h1-role {
  display: block;
  margin-top: 0.25em;
  font-size: 0.62em;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.credentials {
  font-size: var(--step--1);
  color: var(--text-light);
  margin-bottom: var(--s-5);
}
.lead { font-size: var(--step-1); line-height: 1.7; color: var(--text-mid); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* portrait in a pale-blue arch, ringed, with floating badges */
.hero-figure {
  position: relative;
  justify-self: center;
  width: min(80vw, 440px);
  margin: 0;
  isolation: isolate;
}
.hero-figure::before {
  content: "";
  position: absolute;
  inset: 20% 9% 0 9%;
  z-index: -1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--blue-mid) 0%, #dbe5ff 55%, var(--blue-light) 100%);
}
.hero-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: -2;
  width: 108%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgb(26 92 255 / 0.12);
  outline: 1px dashed rgb(26 92 255 / 0.12);
  outline-offset: 2.5rem;
}
.hero-figure picture, .hero-figure img { width: 100%; height: auto; }

.hero-badges { position: absolute; inset: 0; pointer-events: none; }
.badge {
  position: absolute;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.85em 1.1em;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--text-light);
  white-space: nowrap;
}
.badge b { display: block; color: var(--text); font-size: 0.8125rem; font-weight: 700; }
.badge--award { top: 36%; right: -14%; }
.badge--award .icon { width: 2.25rem; height: 2.25rem; padding: 0.45rem; border-radius: 10px; background: #fff4e0; color: var(--gold); }
.badge--langs { bottom: 14%; right: -16%; }
.badge--langs b { font-size: 0.6875rem; color: var(--text-light); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.4em; }
.badge .chips { display: flex; gap: 0.35em; }
.badge .chips i {
  font-style: normal;
  font-weight: 700;
  font-size: 0.6875rem;
  padding: 0.3em 0.7em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
}
.badge--years {
  left: -22%;
  bottom: 4%;
  display: block;
  padding: 1em 1.4em;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  white-space: normal;
  box-shadow: 0 18px 36px -14px rgb(26 92 255 / 0.65);
}
.badge--years b { color: var(--white); font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.15em; }
@media (max-width: 899.98px) {
  .badge { font-size: 0.6875rem; padding: 0.6em 0.8em; }
  .badge--award { right: -4%; top: 35%; }
  .badge--award .icon { width: 1.9rem; height: 1.9rem; }
  .badge--langs { right: -4%; bottom: 10%; }
  .badge--years { left: -4%; bottom: 30%; }
  .badge--years b { font-size: 1.75rem; }
}
@media (max-width: 379.98px) {
  .badge--langs { display: none; }
}
@media (min-width: 900px) and (max-width: 1299.98px) {
  .badge--award { right: -4%; }
  .badge--langs { right: -2%; }
  .badge--years { left: -2%; bottom: 3%; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: var(--s-6); }
  .hero-copy { padding-bottom: var(--s-8); }
  .hero-figure { justify-self: end; margin-right: 5%; }
}

/* single load moment: portrait settles, badges follow */
@media (prefers-reduced-motion: no-preference) {
  .hero-figure picture { animation: settle 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .badge { animation: pop 0.6s cubic-bezier(.2,.7,.2,1) both; }
  .badge--award { animation-delay: 0.35s; }
  .badge--langs { animation-delay: 0.5s; }
  .badge--years { animation-delay: 0.65s; }
}
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* facts strip */
.facts { background: var(--white); border-block: 1px solid var(--border); }
.facts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  margin: 0;
}
.facts dl > div { padding: var(--s-5); border-left: 1px solid var(--border); }
.facts dl > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font: 800 var(--step-2)/1.15 var(--font); white-space: nowrap; letter-spacing: -0.03em; color: var(--blue); }
.facts dd { margin: var(--s-1) 0 0; color: var(--text-light); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 599.98px) {
  .facts dl { grid-template-columns: 1fr 1fr; }
  .facts dl > div, .facts dl > div:first-child { border-left: 0; border-top: 1px solid var(--border); padding: var(--s-4); }
  .facts dl > div:nth-child(-n+2) { border-top: 0; }
  .facts dl > div:nth-child(even) { border-left: 1px solid var(--border); }
  .facts dl > 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%, 280px);
  position: relative;
  aspect-ratio: 4 / 5;
  padding-top: var(--s-6);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blue-light) 0%, #dbe5ff 100%);
}
.about-figure img { width: 62%; 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 1em;
  border-radius: 50px;
  background: var(--white);
  box-shadow: var(--shadow-float);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
}
.about-body { max-width: 44rem; }
.about-body > p { color: var(--text-mid); }
.about-body h3 { margin-top: var(--s-7); font-size: var(--step-2); }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start; }
  .about-figure { width: 100%; max-width: 420px; position: sticky; top: calc(var(--header-h) + 2rem); }
}

.timeline { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-bottom: 1px solid var(--border); }
.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--border);
}
.timeline .yr { font: 700 var(--step--1)/1.6 var(--font); color: var(--blue); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; font-weight: 700; }
.timeline small { display: block; color: var(--text-light); font-size: var(--step--1); font-weight: 400; }

.langs { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: var(--s-4) 0; }
.langs li {
  padding: 0.35em 1em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  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-sm);
  background: var(--bg);
  border: 1px solid var(--blue-light);
}
.note .icon { color: var(--blue); margin-top: 0.2em; }
.note p { margin: 0; }

/* ---------- Why (white cards on pale blue) ---------- */
.section--ink a { color: var(--blue-dark); }
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.why-list li {
  display: grid;
  align-content: start;
  gap: var(--s-4);
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
}
.why-list .icon { width: 3rem; height: 3rem; padding: 0.7rem; border-radius: 14px; background: var(--blue-light); color: var(--blue); }
.why-list h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.why-list p { margin: 0; color: var(--text-mid); font-size: var(--step--1); line-height: 1.7; }

/* ---------- Videos ---------- */
.section-head .video-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: var(--s-4);
  padding: 0.45em 1em;
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.video-note .icon { flex: none; color: var(--blue); }
.video-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.video-layout > *, .episode > * { min-width: 0; }

.episode-index { display: grid; justify-items: center; font-size: var(--step--1); min-width: 0; }
.episode-index h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.episode-index ol {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px -18px rgb(13 27 62 / 0.35);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.episode-index ol::-webkit-scrollbar { display: none; }
.episode-index li { flex: none; scroll-snap-align: start; }
.episode-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 46px;
  padding: 0.35em 1.15em 0.35em 0.4em;
  border-radius: 50px;
  color: var(--text-mid);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.episode-index a:hover { background: var(--bg); color: var(--text); }
.episode-index .num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  font: 800 0.75rem/1 var(--font);
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* active tab: the episode in the URL hash, otherwise episode 1 */
.video-layout:not(:has(.episode:target)) .episode-index li:first-child a,
.video-layout:has(#video-1:target) .episode-index li:nth-child(1) a,
.video-layout:has(#video-2:target) .episode-index li:nth-child(2) a,
.video-layout:has(#video-3:target) .episode-index li:nth-child(3) a,
.video-layout:has(#video-4:target) .episode-index li:nth-child(4) a,
.video-layout:has(#video-5:target) .episode-index li:nth-child(5) a {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 18px -8px rgb(26 92 255 / 0.7);
}
.video-layout:not(:has(.episode:target)) .episode-index li:first-child .num,
.video-layout:has(#video-1:target) .episode-index li:nth-child(1) .num,
.video-layout:has(#video-2:target) .episode-index li:nth-child(2) .num,
.video-layout:has(#video-3:target) .episode-index li:nth-child(3) .num,
.video-layout:has(#video-4:target) .episode-index li:nth-child(4) .num,
.video-layout:has(#video-5:target) .episode-index li:nth-child(5) .num {
  background: rgb(255 255 255 / 0.22);
  color: var(--white);
}
.episode:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light), var(--shadow-card); }
@media (max-width: 899.98px) {
  /* narrow screens: tabs become a contained grid instead of a clipped strip */
  .episode-index { justify-items: stretch; }
  .episode-index ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 24px;
    overflow: visible;
  }
  .episode-index li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .episode-index a { width: 100%; white-space: normal; }
}
@media (min-width: 600px) and (max-width: 899.98px) {
  .episode-index { justify-items: center; }
  .episode-index ol { display: flex; flex-wrap: wrap; justify-content: center; }
  .episode-index li:last-child:nth-child(odd) { grid-column: auto; }
  .episode-index a { width: auto; white-space: nowrap; }
}

.episodes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80vw, 292px);
  gap: var(--s-4);
  align-items: start;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1);
  padding: var(--s-2) var(--gutter) var(--s-5);
  scrollbar-width: thin;
  scrollbar-color: var(--blue-mid) transparent;
}
.episode {
  scroll-snap-align: start;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-2) var(--s-4);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.episode > div:last-child { padding-inline: var(--s-3); }
.episode-video {
  position: relative;
  width: 100%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--text);
  aspect-ratio: 9 / 16;
}
.episode-video video { width: 100%; height: 100%; object-fit: cover; }
.episode-label {
  display: inline-block;
  padding: 0.25em 0.8em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.episode h3 { font-size: var(--step-1); font-weight: 800; margin-bottom: var(--s-2); }
.episode h3 .sub { display: block; font-size: 0.85em; font-weight: 700; letter-spacing: 0; color: var(--blue); margin-top: 0.2em; }
.episode-meta { color: var(--text-light); font-size: var(--step--1); display: flex; align-items: center; gap: 0.4em; margin-bottom: var(--s-3); }
.ep-more { border-top: 1px solid var(--border); padding-top: var(--s-2); font-size: var(--step--1); line-height: 1.65; color: var(--text-mid); }
.ep-more p { margin: var(--s-2) 0; }
.points { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.points li { display: grid; grid-template-columns: 1.3rem 1fr; gap: var(--s-2); padding: 0.55em 0.7em; border-radius: 10px; background: var(--bg); color: var(--text); }
.points .icon { color: var(--blue); margin-top: 0.2em; width: 1.05rem; height: 1.05rem; }

@media (min-width: 900px) {
  /* desktop: one episode at a time, picked by the tab bar (episode 1 by default) */
  .episodes { display: block; overflow: visible; margin-inline: 0; padding: 0; }
  .episode {
    display: none;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
    gap: var(--s-6);
    max-width: 860px;
    margin-inline: auto;
    padding: var(--s-3);
    scroll-margin-top: calc(var(--header-h) + 6.5rem);
  }
  .episode:target,
  .video-layout:not(:has(.episode:target)) .episode:first-child { display: grid; }
  .episode > div:last-child { padding: var(--s-3) var(--s-4) var(--s-3) 0; }
  .episode h3 { font-size: var(--step-2); }
  .episode:target { box-shadow: var(--shadow-card); border-color: var(--border); }
}

/* ---------- Conditions ---------- */
.conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.condition {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.condition:hover { box-shadow: var(--shadow-card); }
.condition img { width: 80px; height: 80px; border-radius: 14px; background: var(--blue-light); }
.condition h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.condition p { margin: 0; color: var(--text-light); font-size: var(--step--1); line-height: 1.7; }
@media (min-width: 1000px) {
  .conditions { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
  .condition { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-6) var(--s-5); }
  .condition img { width: 64px; height: 64px; }
}

/* ---------- Procedures ---------- */
@media (min-width: 900px) {
  :is(#layanan, #services) .section-head {
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--s-8);
    align-items: end;
  }
  :is(#layanan, #services) .section-tag { grid-column: 1; justify-self: start; }
  :is(#layanan, #services) .section-head h2 { grid-column: 1; margin-bottom: 0; }
  :is(#layanan, #services) .section-head p:not(.section-tag) { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}
.proc-groups { display: grid; gap: var(--s-5); }
.proc-group {
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.proc-group > h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin: 0;
  padding: var(--s-4) var(--s-5);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: var(--step-1);
}
.proc-group h3 small {
  padding: 0.3em 0.9em;
  border-radius: 50px;
  background: var(--white);
  color: var(--blue-dark);
  font: 700 0.6875rem/1.3 var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proc-group .acc { margin-inline: var(--s-5); }
.acc { border-bottom: 1px solid var(--border); }
.proc-group .acc:last-of-type { border-bottom: 0; }
.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: 700;
  font-size: var(--step-0);
  line-height: 1.45;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .tag { display: block; font-weight: 400; font-size: var(--step--1); color: var(--text-light); margin-top: 0.15em; }
.acc summary::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 11px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 11px no-repeat,
    var(--blue-light);
  transition: transform 0.25s ease;
}
.acc summary:hover { color: var(--blue-dark); }
.acc[open] > summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 11px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 11px no-repeat,
    var(--blue);
}
.acc summary:focus-visible { outline-offset: 2px; }
.acc-body { padding: 0 0 var(--s-5); max-width: 48rem; color: var(--text-mid); }
.acc-body dl { margin: 0; display: grid; gap: var(--s-4); }
.acc-body dt { font-weight: 700; color: var(--blue-dark); }
.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(--bg);
  font-size: var(--step--1);
  color: var(--text);
}
.acc-note .icon { margin-top: 0.15em; color: var(--blue); }
.acc-note p { margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .acc[open] .acc-body { animation: rise 0.35s ease both; }
}
.skills-more { margin: 0 var(--s-5) var(--s-5); padding: var(--s-5); border-radius: var(--r-sm); background: var(--bg); }
.proc-group .skills-more h3 { font-size: var(--step-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); }
.skills-more li::marker { color: var(--blue); }
@media (min-width: 1000px) {
  .proc-groups { grid-template-columns: 1fr 1fr; }
  .proc-group--wide { grid-column: 1 / -1; }
}

/* ---------- Awards ---------- */
.awards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.award {
  display: grid;
  justify-items: start;
  align-content: start;
  grid-template-areas: "icon" "title" "text" "time";
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
}
.award .icon { grid-area: icon; width: 3rem; height: 3rem; padding: 0.65rem; margin-bottom: var(--s-4); border-radius: 14px; background: #fff4e0; color: var(--gold); }
.award h3 { grid-area: title; font-size: var(--step-1); margin-bottom: var(--s-2); }
.award p { grid-area: text; margin: 0 0 var(--s-4); color: var(--text-light); font-size: var(--step--1); }
.award time {
  grid-area: time;
  padding: 0.25em 0.9em;
  border-radius: 50px;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: var(--step--1);
}
.research {
  margin-top: var(--s-4);
  padding: var(--s-6);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
}
.research h3 { font-size: var(--step-1); }
.research p { margin: 0; color: var(--text-mid); font-size: var(--step--1); }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; display: grid; gap: var(--s-3); }
.faq .acc {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  padding-inline: var(--s-5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq .acc[open] { border-color: var(--blue-mid); box-shadow: var(--shadow-card); }
.faq .acc-body p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) {
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-8); align-items: start; }
  #faq .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}

/* ---------- Appointment ---------- */
.appt-grid { display: grid; gap: var(--s-6); }
.appt-card {
  padding: var(--s-6);
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.appt-card img { width: 112px; height: 112px; margin: 0 auto var(--s-4); border-radius: 50%; border: 1px solid var(--border); }
.appt-card h3 { font-size: var(--step-2); margin-bottom: var(--s-1); }
.appt-card .role { color: var(--blue); font-weight: 700; margin-bottom: var(--s-4); }
.appt-card .creds { font-size: var(--step--1); color: var(--text-light); }
.appt-card .reg { font-size: var(--step--1); color: var(--text-mid); padding-top: var(--s-4); border-top: 1px solid var(--border); margin: var(--s-4) 0 0; }
.appt-card .btn { width: 100%; margin-top: var(--s-3); }
.appt-card .btn--wa { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgb(26 92 255 / 0.7); }
.appt-card .btn--wa:hover { background: var(--blue-dark); color: var(--white); }
.info-list { margin: 0; display: grid; }
.info-list > div { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); }
.info-list > div:first-child { padding-top: 0; }
.info-list dt {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.info-list .icon { width: 2.25rem; height: 2.25rem; padding: 0.5rem; border-radius: 10px; background: var(--white); border: 1px solid var(--border); color: var(--blue); }
.info-list dd { margin: 0 0 0 calc(2.25rem + var(--s-3)); color: var(--text); font-weight: 600; }
.info-list dd a { font-weight: 700; }
@media (min-width: 900px) {
  .appt-grid { grid-template-columns: 1fr 400px; gap: var(--s-8); align-items: start; }
  .appt-card { order: 2; position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- CTA band (royal blue) ---------- */
.cta-band {
  position: relative;
  overflow: clip;
  isolation: isolate;
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
}
.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.07);
}
.cta-band::before { width: 26rem; height: 26rem; left: -9rem; top: -10rem; }
.cta-band::after { width: 20rem; height: 20rem; right: -6rem; bottom: -9rem; }
.cta-band h2 { font-size: var(--step-4); max-width: 20ch; margin-inline: auto; letter-spacing: -0.03em; }
.cta-band p { color: rgb(255 255 255 / 0.88); max-width: 36rem; margin-inline: auto; margin-bottom: var(--s-6); }
.cta-band .btn--wa { font-size: var(--step-1); min-height: 56px; padding-inline: 2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #a8b4cc;
  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: #b9cbff; }
.site-footer a:hover { color: var(--white); }
.footer-brand b { display: block; font: 800 var(--step-1)/1.2 var(--font); color: var(--white); margin-bottom: var(--s-2); }
.footer-brand p { margin-bottom: var(--s-3); }
.site-footer h2 { font: 700 var(--step-0)/1.4 var(--font); letter-spacing: 0; color: var(--white); 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(255 255 255 / 0.1); 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-4);
  font-size: 0.8125rem;
}
.footer-legal p { margin: 0; color: var(--white); }
.site-footer .footer-legal a { display: inline-flex; align-items: center; gap: 0.35em; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer-legal .icon { width: 1em; height: 1em; transform: rotate(180deg); }

/* ---------- Inner-page hero + breadcrumb ---------- */
.page-hero {
  padding-block: clamp(2rem, 1rem + 3.5vw, 4rem) clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  background:
    radial-gradient(40% 60% at 90% 10%, rgb(197 213 255 / 0.55), transparent 70%),
    linear-gradient(135deg, #f0f4ff 0%, #e8efff 60%, #f8faff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .wrap > * { max-width: 46rem; }
.page-hero h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.03em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .credentials { margin: var(--s-4) 0 0; }
.page-hero .hero-actions { margin-top: var(--s-5); }
.breadcrumb { margin-bottom: var(--s-5); font-size: var(--step--1); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25em 0.5em; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5em; color: var(--text-light); }
.breadcrumb a { color: var(--blue-dark); }
.breadcrumb [aria-current] { color: var(--text-light); }

/* ---------- Home: page cards ---------- */
.explore {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.explore-card {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  height: 100%;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.explore-card:hover { color: var(--text); border-color: var(--blue); box-shadow: var(--shadow-card); }
.explore-card > .icon { width: 3rem; height: 3rem; padding: 0.7rem; border-radius: 14px; background: var(--blue-light); color: var(--blue); }
.explore-card h3 { font-size: var(--step-1); margin: 0; }
.explore-card p { margin: 0; color: var(--text-mid); font-size: var(--step--1); line-height: 1.7; }
.explore-card .more { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--s-2); color: var(--blue-dark); font-weight: 700; font-size: var(--step--1); }
.explore-card .more .icon { width: 1.1em; height: 1.1em; }

/* ---------- Prose blocks, checklists, steps ---------- */
.prose { max-width: calc(46rem + 2 * var(--gutter)); }
.prose h2 { margin-bottom: var(--s-5); }
.prose > p { color: var(--text-mid); }
.checklist { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: grid; gap: var(--s-3); }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start; }
.checklist .icon { width: 1.3em; height: 1.3em; margin-top: 0.25em; color: var(--blue); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--s-2); }
.steps p { margin: 0; color: var(--text-mid); font-size: var(--step--1); line-height: 1.7; }
.condition .condition-link { margin-top: var(--s-2); font-weight: 600; color: var(--text-mid); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--s-8); }
.notfound h1 { font-size: clamp(4rem, 2rem + 10vw, 9rem); letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.notfound section { max-width: 34rem; margin-top: var(--s-6); text-align: left; padding: var(--s-6); border-radius: var(--r-card); background: var(--white); border: 1px solid var(--border); }
.notfound h2 { font-size: var(--step-2); }
body:has(.notfound) { background: var(--bg); }

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

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

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