/* drprabhatarya.com — a pharmacy read through Mind Robotics: stone ground,
   ink type, words set inside coloured capsules, a painted anatomy plate. */

@font-face {
  font-family: "Gabarito";
  src: url("../fonts/gabarito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --stone: #e6e2dc;
  --stone-deep: #d9d3ca;
  --paper: #fbfaf7;
  --ink: #0b1e23;
  --ink-soft: #44545a;
  --teal: #16737a;
  --teal-deep: #0f5a60;
  --coral: #e8674f;
  --mustard: #edb940;
  --line: rgba(11, 30, 35, 0.1);

  --font: "Gabarito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 3vw, 44px);
  --centre: clamp(240px, 30vw, 460px);
  --bar-h: 68px;
  --r-card: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 18px 40px -22px rgba(11, 30, 35, 0.35), 0 2px 6px -2px rgba(11, 30, 35, 0.12);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar-h); }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); }

/* ——— Pills: every action and every chip ——— */
.pill {
  display: inline-flex; align-items: center; gap: 0.35em;
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.2s, box-shadow 0.35s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pill:active { transform: translateY(0); }
.pill--teal { background: var(--teal); color: var(--paper); }
.pill--teal:hover { background: var(--teal-deep); color: var(--paper); }
.pill--coral { background: var(--coral); color: var(--ink); }
.pill--coral:hover { color: var(--ink); background: #ee7a64; }
.pill--ink { background: var(--ink); color: var(--paper); }
.pill--ink:hover { color: var(--paper); background: #1b3238; }
.pill--big { min-height: 54px; padding: 0 26px; font-size: 1.06rem; }

/* ——— Words inside capsules (the Mind Robotics device, made pharmaceutical) ——— */
.cap {
  position: relative; display: inline-block; isolation: isolate;
  padding: 0 0.34em 0.06em; margin: 0.05em 0; border-radius: 999px; line-height: 1.12;
}
.cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cap-bg); transform-origin: 0 50%;
  transition: transform 1.1s var(--ease);
}
.cap--teal { --cap-bg: var(--teal); color: var(--paper); }
.cap--white { --cap-bg: var(--paper); }
.cap--coral { --cap-bg: var(--coral); }
.cap--mustard { --cap-bg: var(--mustard); }
.cap--ink { --cap-bg: var(--ink); color: var(--paper); }
.js .reveal .cap::before { transform: scaleX(0.12); }
.js .reveal.in .cap::before { transform: none; }
.js .reveal .cap:nth-child(2)::before { transition-delay: 0.12s; }
.js .reveal .cap:nth-child(3)::before { transition-delay: 0.24s; }
.js .reveal .cap--teal, .js .reveal .cap--ink { transition: color 0.4s 0.3s; }
.js .reveal:not(.in) .cap--teal, .js .reveal:not(.in) .cap--ink { color: var(--ink); }

/* ——— Top bar ——— */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gutter);
  transition: background-color 0.3s, box-shadow 0.3s;
}
.bar.is-scrolled { background: rgba(230, 226, 220, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.mark svg { width: 46px; height: 30px; flex: none; }
.mark span { opacity: 0; transform: translateX(-6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.bar.is-scrolled .mark span { opacity: 1; transform: none; }
.mark span { display: block; line-height: 1.05; font-size: 1.12rem; letter-spacing: -0.015em; }
.mark i { font-style: normal; font-weight: 600; color: var(--teal); margin-right: 0.12em; }
.mark small { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); opacity: 0.85; margin-top: 3px; }
.bar-actions { display: flex; align-items: center; gap: 8px; }
.motion {
  width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--paper); cursor: pointer;
  display: grid; place-items: center; transition: transform 0.35s var(--ease);
}
.motion:hover { transform: translateY(-2px); }
.motion svg { width: 20px; height: 20px; fill: var(--ink); }
.motion .g { display: none; }
.motion[aria-pressed="true"] .p { display: none; }
.motion[aria-pressed="true"] .g { display: block; }

/* ——— Hero ——— */
.hero {
  position: relative; min-height: max(100svh, 640px); overflow: clip;
  padding: calc(var(--bar-h) + 1vh) var(--gutter) 0;
}
.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.name {
  position: relative; z-index: 1;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em;
  font-size: clamp(3.2rem, 14.2vw, 15.5rem); line-height: 0.84;
}
.name span { display: block; }
.name-b { text-align: right; }
.js .name span { transform: translateY(0.3em); opacity: 0; transition: transform 1.4s var(--ease), opacity 0.9s; }
.js .name-b { transition-delay: 0.12s; }
.js .ready .name span { transform: none; opacity: 1; }

.shapes { position: absolute; inset: auto 0 0; height: 70%; pointer-events: none; }
.shape { position: absolute; bottom: 0; background: var(--paper); }
.shape--capsule {
  left: 5vw; width: 15vw; height: 70%; border-radius: 999px 999px 0 0;
  background: linear-gradient(var(--paper) 0 58%, var(--teal) 58% 100%);
}
.shape--arch { left: 50%; width: 31vw; height: 86%; margin-left: -15.5vw; border-radius: 999px 999px 0 0; }
.shape--tablet { right: -4vw; bottom: -9vw; width: 27vw; aspect-ratio: 1; border-radius: 50%; }
.shape--tablet::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--stone-deep); }
.js .shapes .shape { transform: translateY(40%); transition: transform 1.6s var(--ease); }
.js .shapes .shape--arch { transition-delay: 0.08s; }
.js .shapes .shape--tablet { transition-delay: 0.16s; }
.js .ready .shapes .shape { transform: none; }

.id-card {
  position: absolute; z-index: 7; left: var(--gutter); bottom: clamp(16px, 4vh, 40px);
  width: min(360px, calc(100% - 2 * var(--gutter)));
  padding: 20px; border-radius: var(--r-card);
  background: var(--paper); box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.id-line { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--stone); font-weight: 700; font-size: 0.88rem; }
.id-reg { font-size: 0.95rem; line-height: 1.3; }
.id-reg strong { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.01em; }
.id-note { font-size: 0.9rem; color: var(--ink-soft); }
.id-card .pill { justify-content: center; }

/* ——— The doctor: one figure, placed by script ——— */
.doc {
  position: fixed; z-index: 6; left: 0; top: 0; width: 432px; height: 640px;
  pointer-events: none; transform-origin: 0 0;
  /* he stands in the page; his lower body melts into the ground */
  -webkit-mask-image: linear-gradient(#000 76%, transparent 99%);
  mask-image: linear-gradient(#000 76%, transparent 99%);
}
.doc-still, .doc-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc-canvas { opacity: 0; transition: opacity 0.4s; }
.doc.is-live .doc-canvas { opacity: 1; }
.doc.is-live .doc-still { visibility: hidden; }
.doc-bubble { display: none; }
html:not(.js) .doc { position: absolute; left: 50%; top: calc(max(100svh, 640px) - 640px); margin-left: -216px; }

/* ——— Split sections: text either side of him ——— */
.split {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--centre) minmax(0, 1fr);
  row-gap: clamp(24px, 4vh, 48px); align-content: center; align-items: center;
  padding: clamp(96px, 16vh, 180px) var(--gutter);
}
.col-l { grid-column: 1; }
.col-r { grid-column: 3; }
.statement { font-weight: 700; font-size: clamp(2rem, 3.5vw, 3.7rem); line-height: 1.16; letter-spacing: -0.025em; text-wrap: balance; }
.statement--sm { font-size: clamp(1.8rem, 2.9vw, 3rem); }
.prose { display: grid; gap: 1em; max-width: 34em; font-size: 1.12rem; }
.prose strong { font-weight: 800; }
.lede { margin-top: 18px; color: var(--ink-soft); max-width: 30em; }

/* ——— Head to toe: the anatomy plate ——— */
.scope { align-items: start; }
.scope-text { align-self: center; }
.organ-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.organ-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; cursor: pointer; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink);
  font: 700 0.95rem/1 var(--font);
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease);
}
.organ-tab:hover { transform: translateY(-2px); }
.organ-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.organ-tab svg { width: 18px; height: 18px; fill: var(--ink); stroke: var(--ink); stroke-width: 1.2; transition: fill 0.25s, stroke 0.25s; }
/* the star item: weight loss */
.organ-tab--star { min-height: 48px; padding: 0 20px 0 16px; font-size: 1.05rem; background: var(--mustard); box-shadow: none; }
.organ-tab--star[aria-selected="true"] { background: var(--ink); color: var(--mustard); }
.organ-tab--star[aria-selected="true"] svg { fill: var(--mustard); stroke: var(--mustard); }

.organ-cards { margin-top: 22px; max-width: 36em; }
.organ-card { padding: 22px 24px 24px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow); }
.js .organ-card:not([hidden]) { animation: card-in 0.5s var(--ease); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.organ-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.organ-card--star h3 { display: inline-block; padding: 2px 14px 4px; margin-left: -4px; border-radius: 999px; background: var(--mustard); }
.organ-card p { font-size: 0.98rem; max-width: 65ch; }
.organ-card .ready { margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--line); color: var(--ink-soft); }
.organ-card .ready b { color: var(--ink); }
.organ-card .note { margin-top: 10px; font-weight: 600; color: var(--ink-soft); }
.organ-card .now { margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: #f8ddd5; color: var(--ink); }
.organ-card .now b { color: #97301a; }
html:not(.js) .organ-tabs { display: none; }
html:not(.js) .organ-card[hidden] { display: block; margin-top: 14px; }

/* The plate: one painted body; the chosen part lights up in full colour */
.split.scope > .atlas { grid-column: 3; position: sticky; top: calc(var(--bar-h) + 3svh); align-self: start; margin: 0; height: min(84svh, 860px); }
.atlas-body { position: absolute; left: 0; top: 0; height: 100%; aspect-ratio: 700 / 1663; transform-origin: 0 0; transition: transform 0.9s var(--ease); --z: 1; }

/* The walk: scrolling steps through the parts. The row of parts stays pinned,
   each card has its turn on the reading line, and the camera glides over the body. */
.scope.is-walk .scope-text { align-self: start; }
.scope.is-walk .organ-tabs {
  position: sticky; top: calc(var(--bar-h) + 8px); z-index: 6;
  margin-top: 22px; padding: 10px 0 16px; background: var(--stone);
  box-shadow: 0 -14px 0 var(--stone); /* a solid band above the parts: nothing scrolls through or over them */
}
/* the pinned plate is part of the frame, not content: it fades in but never slides */
.js .reveal.scope.is-walk > .atlas.rv { transform: none; }
.scope.is-walk .organ-tabs::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 36px; pointer-events: none;
  background: linear-gradient(var(--stone), rgba(230, 226, 220, 0));
}
.scope.is-walk .organ-cards { display: flex; flex-direction: column; gap: 38svh; margin-top: 18svh; padding-bottom: 34svh; }
.scope.is-walk .organ-card { animation: none; opacity: 0.34; transform: scale(0.97); transform-origin: 0 50%; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.scope.is-walk .organ-card.is-here { opacity: 1; transform: none; }
.scope.is-walk > .atlas {
  overflow: clip;
  -webkit-mask-image: linear-gradient(transparent, #000 5%, #000 93%, transparent);
  mask-image: linear-gradient(transparent, #000 5%, #000 93%, transparent);
}
.scope.is-walk .atlas-body { transition: none; will-change: transform; }
.atlas-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.js .atlas-img--base { filter: saturate(0.16) brightness(1.07) contrast(0.86); opacity: 0.78; }
.atlas-img--lit { opacity: 0; transition: opacity 0.6s var(--ease), filter 0.6s; }
html:not(.js) .atlas-img--lit { display: none; }
.atlas-img--lit.is-on { opacity: 1; }
.atlas[data-look="skin"] .atlas-img--lit.is-on { filter: drop-shadow(0 0 4px rgba(22, 115, 122, 0.9)) drop-shadow(0 0 16px rgba(22, 115, 122, 0.45)); }
.atlas[data-look="fever"] .atlas-img--lit.is-on { filter: drop-shadow(0 0 6px rgba(232, 103, 79, 0.75)) drop-shadow(0 0 22px rgba(237, 150, 64, 0.5)); }

/* fever: a warm flush over the whole body; everyday illness: a slow head-to-toe scan */
.atlas-wash { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.6s; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.atlas[data-look="fever"] .atlas-wash--fever,
.atlas[data-look="scan"] .atlas-wash--scan { -webkit-mask-image: url("../assets/body/body-420.webp"); mask-image: url("../assets/body/body-420.webp"); opacity: 1; }
.atlas-wash--fever {
  background: radial-gradient(ellipse 70% 45% at 50% 32%, rgba(232, 103, 79, 0.5), rgba(232, 103, 79, 0.2) 70%, rgba(237, 185, 64, 0.18));
  mix-blend-mode: multiply;
}
.atlas[data-look="fever"] .atlas-wash--fever { animation: flush 3.2s ease-in-out infinite alternate; }
@keyframes flush { from { opacity: 0.55; } to { opacity: 1; } }
.atlas-wash--scan { overflow: hidden; }
.atlas-wash--scan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16%;
  background: linear-gradient(rgba(22, 115, 122, 0), rgba(22, 115, 122, 0.28) 80%, rgba(22, 115, 122, 0.85) 96%, rgba(22, 115, 122, 0));
  transform: translateY(-110%);
}
.atlas[data-look="scan"] .atlas-wash--scan::before { animation: scan 4.8s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes scan { to { transform: translateY(640%); } }

/* weight: a tape measure round the waist */
.tape { position: absolute; left: 31%; width: 38%; top: 41%; height: 3.2%; overflow: visible; opacity: 0; transition: opacity 0.4s; }
.tape path { fill: none; stroke: var(--mustard); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.tape--back path { stroke: #c89a2c; }
.tape .tape-ticks { stroke: var(--ink); stroke-width: 3; stroke-linecap: butt; stroke-dasharray: 0.35 2.6; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.4s 0.8s; }
.atlas[data-look="tape"] .tape { opacity: 1; }
.atlas[data-look="tape"] .tape path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) 0.15s; }
.atlas[data-look="tape"] .tape .tape-ticks { opacity: 0.55; stroke-dasharray: 0.35 2.6; }

/* a soft ring on each lit part */
.atlas-rings { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  border: calc(1.5px / var(--z)) solid rgba(22, 115, 122, 0.85);
  animation: ring-in 0.6s var(--ease) both;
}
.ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: inherit; animation: ring-pulse 2.6s ease-out infinite; }
@keyframes ring-in { from { opacity: 0; scale: 1.4; } }
@keyframes ring-pulse { from { opacity: 0.8; scale: 1; } to { opacity: 0; scale: 1.5; } }

/* one label per part, each with its own leader line, as on an atlas plate */
.atlas-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-lines line, .atlas-lines circle { animation: tag-in 0.5s var(--ease) both; }
.atlas-lines line { stroke: var(--ink); stroke-width: 1.5; }
.atlas-lines circle { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.atlas-tags { position: absolute; inset: 0; pointer-events: none; }
.atlas-tag {
  position: absolute; left: 0; top: 0; max-width: 190px; padding: 6px 13px 7px; border-radius: 16px;
  background: var(--paper); box-shadow: var(--shadow); line-height: 1.2; animation: tag-in 0.5s var(--ease) both;
}
.atlas-tag b { display: block; font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.atlas-tag small { display: block; margin-top: 2px; font-size: 0.74rem; color: var(--ink-soft, #55524c); }
@keyframes tag-in { from { opacity: 0; } }

/* kidneys: the ureters drawn in, kidney to bladder */
.ureters { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.ureters path { fill: none; stroke: #e0a93a; stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 2px rgba(255, 250, 240, 0.9)); }
.atlas[data-draw="ureters"] .ureters { opacity: 1; }
.atlas[data-draw="ureters"] .ureters path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) 0.2s; }

/* skin: the outer body only, no organs showing through */
.atlas-img--skin { opacity: 0; transition: opacity 0.6s var(--ease); }
html:not(.js) .atlas-img--skin { display: none; }
.atlas[data-look="skin"] .atlas-img--skin { opacity: 1; filter: drop-shadow(0 0 3px rgba(22, 115, 122, 0.8)) drop-shadow(0 0 14px rgba(22, 115, 122, 0.4)); }
.atlas[data-look="skin"] .atlas-img--lit.is-on { opacity: 0; }

/* fever: heat rising off the body in wavering wisps */
.heat { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.5s; }
.heat path { fill: none; stroke: #e8674f; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; }
.atlas[data-look="fever"] .heat { opacity: 1; }
.atlas[data-look="fever"] .heat path { animation: heat-rise 2.6s ease-out var(--d, 0s) infinite; }
@keyframes heat-rise {
  0% { opacity: 0; transform: translateY(1.5px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.is-paused .ring::after, .is-paused .atlas-wash--scan::before, .is-paused .atlas-wash--fever, .is-paused .heat path { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .ring, .ring::after, .atlas-wash--scan::before, .atlas[data-look="fever"] .atlas-wash--fever, .js .organ-card:not([hidden]) { animation: none; }
  .atlas-wash--scan::before { transform: translateY(260%); }
  .atlas[data-look="fever"] .heat path { animation: none; opacity: 0.8; transform: translateY(-1.5px); }
  .atlas-lines *, .atlas-tag { animation: none; }
}

@media (max-width: 819px) {
  .split.scope { display: flex; flex-direction: column; }
  .scope-text { display: contents; }
  .scope .statement { order: 1; }
  .scope .lede { order: 2; }
  .split.scope > .atlas { order: 3; align-self: stretch; position: sticky; top: var(--bar-h); z-index: 5; height: 46svh; margin: 18px calc(-1 * var(--gutter)) 0; overflow: hidden; background: var(--stone); }
  .scope.is-walk > .atlas { height: 40svh; -webkit-mask-image: none; mask-image: none; }
  .scope.is-walk .organ-tabs {
    top: calc(var(--bar-h) + 40svh); z-index: 6; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; align-self: stretch;
    margin: 0 calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px;
  }
  .scope.is-walk .organ-tabs::-webkit-scrollbar { display: none; }
  .scope.is-walk .organ-tab { flex: none; }
  .scope.is-walk .organ-tabs::after { height: 24px; }
  .scope.is-walk .organ-cards { gap: 24svh; margin-top: 10svh; padding-bottom: 30svh; }
  .atlas-tag { max-width: 150px; padding: 4px 10px 5px; border-radius: 12px; }
  .atlas-tag b { font-size: 0.8rem; }
  .atlas-tag small { font-size: 0.68rem; }
  .organ-tabs { order: 4; margin-top: 16px; gap: 6px; }
  .organ-tab { min-height: 38px; padding: 0 13px; font-size: 0.9rem; }
  .organ-tab--star { min-height: 44px; font-size: 1rem; }
  .organ-cards { order: 5; margin-top: 16px; }
  .organ-card { padding: 18px 18px 20px; }
  .organ-card h3 { font-size: 1.25rem; }
  .organ-card p { font-size: 0.95rem; }
  .split.scope > * + * { margin-top: 0; }
}

/* ——— How he thinks ——— */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tabs [role="tab"] {
  border: 0; cursor: pointer; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); font-weight: 700; font-size: 0.98rem;
  transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease);
}
.tabs [role="tab"]:hover { transform: translateY(-2px); }
.tabs [aria-selected="true"] { background: var(--ink); color: var(--paper); }
.case { display: grid; gap: 12px; }
.case[hidden] { display: none; }
.case-part { padding: 18px 20px; border-radius: var(--r-card); background: var(--paper); }
.case-part h3 { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; color: var(--teal); }
.case-part li, .can li { position: relative; padding-left: 20px; margin: 4px 0; }
.case-part li::before, .can li::before, .sos-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 10px;
  background:
    linear-gradient(currentColor, currentColor) center / 10px 2.4px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2.4px 10px no-repeat;
  color: var(--teal);
}
.case-part--now { background: var(--coral); }
.case-part--now h3 { color: var(--ink); }
.case-part--now li::before { color: var(--ink); }
.case:not([hidden]) { animation: rise 0.6s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ——— Reports ——— */
.explain {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--r-card); background: var(--ink); color: var(--paper);
  max-width: 30em; min-height: 8em;
}
.explain b { display: block; font-size: 1.2rem; margin-bottom: 4px; color: var(--mustard); }
.report {
  padding: 22px 20px 16px; border-radius: 10px; box-shadow: var(--shadow); transform: rotate(1.4deg);
  background: var(--paper) repeating-linear-gradient(transparent 0 31px, rgba(22, 115, 122, 0.06) 31px 32px);
}
.report figcaption { display: flex; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 2px solid var(--ink); }
.report figcaption span:first-child { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.report figcaption span:last-child { font-size: 0.82rem; color: var(--ink-soft); }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th, .report td { text-align: left; padding: 6px 4px; font-size: 0.95rem; }
.report thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-soft); font-weight: 700; }
.report tbody tr { border-top: 1px solid var(--line); }
.report tbody button {
  border: 0; background: none; padding: 6px 10px; margin-left: -10px; border-radius: 999px; cursor: pointer;
  font-weight: 700; text-align: left; text-decoration: underline dotted 1.5px; text-underline-offset: 0.25em;
  transition: background-color 0.2s;
}
.report tbody button:hover { background: var(--stone); }
.report tr.is-on button { background: var(--ink); color: var(--paper); text-decoration: none; }
.report td.off { font-weight: 800; }
.report td.off::after { content: " \2022"; color: var(--coral); }
.report-foot { margin-top: 10px; font-size: 0.8rem; color: var(--ink-soft); }

/* ——— Consultation ——— */
.consult { grid-template-rows: auto auto; }
.consult .statement { grid-row: 1; align-self: end; }
.consult .steps { grid-row: 2; }
.consult .can { grid-row: 1 / span 2; }
.steps { display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; padding: 16px; border-radius: var(--r-card); background: var(--paper); }
.steps .n { grid-row: span 2; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--mustard); font-weight: 800; font-size: 1.4rem; }
.steps h3 { font-size: 1.15rem; font-weight: 800; }
.steps p { color: var(--ink-soft); }
.can { display: grid; gap: 12px; }
.can > div { padding: 20px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.can > div:last-child { background: var(--ink); color: var(--paper); }
.can > div:last-child li::before { color: var(--coral); }
.can h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }

/* ——— Emergency ——— */
.sos { background: var(--coral); }
.sos-list { display: grid; font-size: 1.12rem; font-weight: 600; }
.sos-list li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1.5px solid rgba(11, 30, 35, 0.18); }
.sos-list li::before { color: var(--ink); top: 0.95em; }
.sos-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }
.sos-act span { max-width: 22em; }
.sos-mind { margin-top: 16px; font-size: 0.98rem; }
.sos-mind a { font-weight: 800; }
.sos a:hover { color: var(--ink); }
.sos .pill--ink:hover { color: var(--paper); }

/* ——— Get to know him ——— */
.know { position: relative; min-height: 100svh; padding: clamp(96px, 14vh, 160px) var(--gutter) 120px; overflow: clip; }
.know-h { position: relative; z-index: 1; font-weight: 800; font-size: clamp(3.4rem, 12vw, 12.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.know-h span { display: block; }
.know-h span:nth-child(2) { text-align: right; }
.know-body { position: relative; z-index: 7; display: grid; gap: 16px; justify-items: start; max-width: 460px; margin-top: 5vh; }
/* the identity card again, but short: four facts in two rows, the booking button the last word */
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; width: 100%; padding: 18px 22px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow); }
.creds dt { color: var(--ink-soft); font-size: 0.82rem; }
.creds dd { font-weight: 700; line-height: 1.3; }
.know .pill--big { min-height: 64px; padding: 0 34px; font-size: 1.2rem; margin-top: 6px; }
.creds-note { font-size: 0.88rem; color: var(--ink-soft); }
/* where he trained and worked, oldest first: the years on the left, the post on the right */
.career { width: 100%; padding: 18px 22px; border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow); }
.career h3 { color: var(--ink-soft); font-size: 0.82rem; font-weight: 400; margin-bottom: 10px; }
.career ol { list-style: none; display: grid; gap: 10px; }
.career li { display: grid; grid-template-columns: 8.2em 1fr; gap: 12px; font-weight: 700; line-height: 1.3; }
.career li span { color: var(--ink-soft); font-weight: 400; font-size: 0.88rem; padding-top: 0.08em; }
@media (max-width: 480px) { .career li { grid-template-columns: 1fr; gap: 2px; } }

/* ——— Footer bar ——— */
.foot { padding: 0 var(--gutter) 18px; }
.foot-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  padding: 12px 20px; border-radius: 999px; background: var(--paper); font-size: 0.85rem;
}
.foot-mark { width: 40px; height: 26px; }
.foot-note { color: var(--ink-soft); flex: 1; }

/* ——— Reveal (content is visible without script) ——— */
.js .reveal .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s, transform 1.1s var(--ease); }
.js .reveal.in .rv { opacity: 1; transform: none; }
.js .reveal.in .rv:nth-child(2) { transition-delay: 0.1s; }

/* ——— Phones and narrow screens ——— */
@media (max-width: 819px) {
  :root { --bar-h: 60px; }
  .wide { display: none; }
  .bar .pill { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
  .mark span { display: none; }
  .name { font-size: clamp(2.9rem, 17.5vw, 9rem); margin-top: 2vh; }
  .shapes { height: 62%; }
  .shape--capsule { left: -6vw; width: 22vw; height: 62%; }
  .shape--arch { width: 64vw; margin-left: -32vw; height: 88%; }
  .shape--tablet { right: -14vw; bottom: 18%; width: 30vw; }
  .id-card { left: var(--gutter); right: var(--gutter); width: auto; padding: 16px; gap: 8px; }
  .id-card .pill { min-height: 50px; }

  .split { display: block; padding: 88px var(--gutter) 96px; min-height: 0; }
  .split > * + * { margin-top: 24px; }
  .statement { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  .statement--sm { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .prose { font-size: 1.05rem; }
  .report { transform: none; padding: 16px 12px 12px; }
  .report th, .report td { font-size: 0.88rem; padding: 5px 2px; }
  .report tbody button { padding: 6px 8px; margin-left: -8px; }
  .know-h { font-size: clamp(3rem, 19vw, 7rem); }
  .foot-bar { border-radius: var(--r-card); }

  /* After the first screen he becomes a small video-call window in the corner */
  .doc-bubble {
    display: block; position: absolute; inset: 0; border-radius: 999px; background: var(--paper);
    box-shadow: var(--shadow); opacity: var(--bubble, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 819px) {
  .doc.is-docked { -webkit-mask-image: none; mask-image: none; border-radius: 999px; overflow: hidden; }
  .doc.is-docked .doc-canvas, .doc.is-docked .doc-still { transform: translateY(4%) scale(1.5); transform-origin: 50% 0; }
}

/* ——— Review fixes: the window he stands in, soft sides, cards above him ——— */
.doc {
  -webkit-mask-image: linear-gradient(#000 76%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(#000 76%, transparent 99%), linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* a capsule, tablet or arch behind him that changes shape from section to section */
.doc-window {
  position: absolute; left: 50%; bottom: 0; width: 300px; height: 470px; margin-left: -150px;
  border-radius: 999px 999px 0 0; background: var(--paper);
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease),
    margin 0.9s var(--ease), border-radius 0.9s var(--ease), background-color 0.6s, bottom 0.9s var(--ease);
}
.doc[data-window] .doc-window { opacity: 1; transform: none; }
.doc[data-window=""] .doc-window { opacity: 0; transform: translateY(30px); }
.doc[data-window="tablet"] .doc-window { width: 360px; height: 360px; margin-left: -180px; bottom: 70px; border-radius: 50%; background: var(--mustard); }
.doc[data-window="tablet-paper"] .doc-window { width: 360px; height: 360px; margin-left: -180px; bottom: 70px; border-radius: 50%; }
.doc[data-window="capsule"] .doc-window {
  width: 250px; height: 520px; margin-left: -125px; bottom: 30px; border-radius: 999px;
}
@media (min-width: 820px) { .split > *, .know-body { position: relative; z-index: 7; } }
.foot { position: relative; z-index: 8; }

@media (max-width: 819px) {
  .doc-window { display: none; }
  .id-card { padding: 12px 14px; gap: 6px; bottom: 12px; }
  .id-card .id-line { gap: 4px; }
  .chip { min-height: 26px; font-size: 0.8rem; padding: 0 10px; }
  .id-reg { font-size: 0.85rem; }
  .id-reg br { display: none; }
  .id-reg strong { display: block; font-size: 1.02rem; }
  .id-note { font-size: 0.82rem; }
  .id-card .pill { min-height: 46px; }
  .doc.is-docked { -webkit-mask-image: none; mask-image: none; }
  .doc.is-docked .doc-canvas, .doc.is-docked .doc-still { transform: translateY(-24%) scale(1.3); transform-origin: 50% 0; }
  /* pointing to the page on his left: slide him right so the raised hand shows */
  .doc.is-docked .doc-canvas { transition: opacity 0.4s, transform 0.6s var(--ease); }
  .doc.is-docked.is-panned .doc-canvas { transform: translate(17%, -24%) scale(1.3); }
}

/* ——— He talks: speech bubble beside his head (positioned by js/main.js) ——— */
.say {
  position: fixed; z-index: 9; left: 0; top: 0; max-width: 230px; margin: 0;
  padding: 10px 16px 11px; border-radius: 18px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 1rem; line-height: 1.25; letter-spacing: -0.005em;
  box-shadow: 0 14px 30px -16px rgba(11, 30, 35, 0.55);
  pointer-events: none; opacity: 0; scale: 0.7; transform-origin: 0 100%;
  transition: opacity 0.18s ease-out, scale 0.2s ease-in;
}
.say::after {
  content: ""; position: absolute; bottom: -7px; left: 18px; width: 16px; height: 16px;
  background: inherit; border-radius: 0 0 4px 0; rotate: 45deg; clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.say[data-tail="right"] { transform-origin: 100% 100%; }
.say[data-tail="right"]::after { left: auto; right: 18px; }
.say.is-on { opacity: 1; scale: 1; transition: opacity 0.14s ease-out, scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
html.on-doc, html.on-doc body { cursor: pointer; }
@media (max-width: 819px) { .say { max-width: 190px; font-size: 0.9375rem; padding: 9px 14px 10px; } }
@media (prefers-reduced-motion: reduce) { .say { display: none; } }

/* ——— A link to an illness's own page: a hand-drawn squiggle that rises into
   place as its section arrives, wiggles on hover or focus, and a peek card
   (the organ seen through a lens on the painted body, and one line). ——— */
.ill {
  color: inherit; text-decoration: none; font-weight: 600;
  padding-bottom: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='7'%3E%3Cpath d='M0 3.6C2 1 4 1.2 6 3.4S10 6 12 3.5S16 .8 18 3.3S22 5.8 24 3.6' fill='none' stroke='%2316737a' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 100% / 24px 7px;
  transition: color 0.2s, background-position 1.1s var(--ease) 0.5s;
}
.js .reveal:not(.in) .ill, .js .c-reveal:not(.in) .ill { background-position: -12px calc(100% + 9px); }
.ill:hover, .ill:focus-visible, .ill.is-peek { color: var(--teal); animation: squiggle 0.7s linear infinite; }
@keyframes squiggle { from { background-position-x: 0; } to { background-position-x: 24px; } }

.peek {
  position: fixed; left: 0; top: 0; z-index: 45; width: min(320px, calc(100vw - 24px));
  display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; align-items: center;
  padding: 14px 18px 14px 14px; border-radius: var(--r-card); background: var(--paper);
  box-shadow: 0 24px 50px -24px rgba(11, 30, 35, 0.45), 0 2px 8px -2px rgba(11, 30, 35, 0.16);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.94); transform-origin: var(--ax, 50%) 100%;
  pointer-events: none; transition: opacity 0.18s, transform 0.4s var(--ease), visibility 0s 0.4s;
}
.peek.is-below { transform-origin: var(--ax, 50%) 0; transform: translateY(-10px) scale(0.94); }
.peek.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.18s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s; }
.peek::after {
  content: ""; position: absolute; left: calc(var(--ax, 50%) - 8px); bottom: -7px; width: 16px; height: 16px;
  background: var(--paper); border-radius: 3px; transform: rotate(45deg);
}
.peek.is-below::after { bottom: auto; top: -7px; }
.peek-lens {
  grid-row: 1 / span 2; width: 84px; height: 84px; border-radius: 50%; background-color: #f4f0ea; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 3px var(--paper), 0 0 0 2px var(--teal), inset 0 -10px 18px -10px rgba(11, 30, 35, 0.3);
  transition: background-size 0.9s var(--ease) 0.08s, background-position 0.9s var(--ease) 0.08s;
}
.peek-name { align-self: end; font-weight: 800; font-size: 1.08rem; line-height: 1.15; letter-spacing: -0.01em; }
.peek-line { align-self: start; margin-top: 3px; font-size: 0.9rem; line-height: 1.35; color: var(--ink-soft); }
.peek-go, .peek-x { display: none; }
.peek.is-sheet {
  left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto;
  padding: 16px 16px 16px 16px; pointer-events: auto; transform-origin: 50% 100%; transform: translateY(24px);
}
.peek.is-sheet.is-on { transform: none; }
.peek.is-sheet::after { display: none; }
.peek.is-sheet .peek-go { display: flex; justify-content: center; grid-column: 1 / -1; margin-top: 14px; min-height: 48px; }
.peek.is-sheet .peek-x {
  display: grid; place-items: center; position: absolute; right: 8px; top: 8px; width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
}
.peek-x svg { width: 16px; height: 16px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.peek.is-sheet .peek-name { padding-right: 36px; }
@media (prefers-reduced-motion: reduce) {
  .ill, .peek, .peek-lens { transition: none; }
  .ill:hover, .ill:focus-visible, .ill.is-peek { animation: none; }
  .js .reveal:not(.in) .ill, .js .c-reveal:not(.in) .ill { background-position: 0 100%; }
}

/* ——— The line under his name, and the "Before you book" links (home and guide pages) ——— */
.id-kind { font-weight: 700; font-size: 0.95rem; line-height: 1.35; color: var(--teal-deep); max-width: 24em; }
.g-more { max-width: 1320px; margin-inline: auto; padding: clamp(40px, 7vh, 80px) var(--gutter) clamp(56px, 9vh, 100px); }
.g-more h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.g-more ul { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.g-more a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; background: var(--paper);
  font-weight: 700; text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s;
}
.g-more a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.g-more a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.g-more--in { padding: 0; margin-top: 40px; }
.g-more--in h3 { font-size: 1.25rem; font-weight: 800; }
.g-more--in ul { display: grid; justify-items: start; gap: 8px; margin-top: 14px; }
@media (max-width: 819px) { .g-more a { width: 100%; } }
