/* ==========================================================================
   PULSO — technological, dynamic, cardio. White ground with ECG graph paper,
   an animated trace, monitor-style readouts in mono, timelines that fill as
   you scroll. Brand colour is the signal colour.
   ========================================================================== */

:root {
  --ink: #12131a;
  --ink-2: #464a57;
  --muted: #5f6473;
  --line: #e7e8ee;
  --line-2: #d9dbe3;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --signal: var(--brand);
  --signal-deep: color-mix(in oklab, var(--brand) 82%, black);
  --signal-soft: color-mix(in oklab, var(--brand) 10%, white);
  --signal-glow: color-mix(in oklab, var(--brand) 35%, transparent);
  --paper-grid: color-mix(in oklab, var(--brand) 7%, transparent);
  --paper-grid-2: color-mix(in oklab, var(--brand) 4%, transparent);
  --ok: #1aa364;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono-f: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fs-base: clamp(1rem, .97rem + .14vw, 1.07rem);
  --fs-lg: clamp(1.06rem, 1rem + .3vw, 1.24rem);
  --fs-h3: clamp(1.3rem, 1.1rem + .8vw, 1.8rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --fs-h1: clamp(2.5rem, 1.4rem + 4.6vw, 5.4rem);
  --r: 14px; --r-lg: 22px;
  --shell: 1240px;
  --header-h: 92px;
  --reveal-dur: .5s;
  --reveal-dist: 14px;
  --focus: var(--signal);
}

body { font-family: var(--body); font-size: var(--fs-base); line-height: 1.6; color: var(--ink); background: var(--bg); }
::selection { background: var(--signal); color: #fff; }
.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }
.mono { font-family: var(--mono-f); font-feature-settings: "zero" 1; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; margin-top: 2rem; }
.label { font-size: 1rem; font-weight: 500; letter-spacing: .07em; color: var(--signal); text-transform: uppercase; }
.h2 { margin-top: .6rem; font-family: var(--display); font-size: var(--fs-h2); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.lede { margin-top: 1rem; font-size: var(--fs-lg); color: var(--ink-2); max-width: 42rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: 12px;
  font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s, background-color .25s, color .25s, border-color .25s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { color: #fff; background: var(--signal); box-shadow: 0 10px 24px -12px var(--signal-glow), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn--primary:hover { background: var(--signal-deep); box-shadow: 0 14px 30px -12px var(--signal-glow); }
.btn--ghost { color: var(--ink); background: #fff; border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal-deep); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .88rem; border-radius: 10px; }
.btn--block { width: 100%; }

/* ECG trace ----------------------------------------------------------------- */
.ecg { display: block; width: 100%; overflow: visible; }
.ecg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ecg__ghost { stroke: var(--paper-grid); stroke-width: 2; }
.ecg__line { stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 260 740; stroke-dashoffset: 1000; animation: sweep 4.2s linear infinite; filter: drop-shadow(0 0 6px var(--signal-glow)); }
@keyframes sweep { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ecg__line { stroke-dasharray: none; animation: none; } }

/* ---------------------------------------------------------- header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: transform .45s var(--ease-out), border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgb(18 19 26 / .35); }
.hdr__in { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.hdr__brand { flex: none; }
/* A wide logo would push the menu button off a phone: it scales down inside a capped box. */
.hdr__brand img { height: 62px; width: auto; max-width: 44vw; object-fit: contain; object-position: left center; }
.hdr__nav { position: relative; display: flex; gap: .2rem; margin-inline: auto; }
.hdr__nav a { padding: .55rem .75rem; border-radius: 10px; font-family: var(--display); font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .25s, background-color .25s; white-space: nowrap; }
.hdr__nav a:hover { background: var(--bg-2); color: var(--ink); }
.hdr__nav a.is-active { color: var(--signal-deep); }
.hdr__mark { position: absolute; left: 0; bottom: -14px; height: 3px; width: var(--w, 0); transform: translateX(var(--x, 0)); border-radius: 3px; background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); opacity: 0; transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s; }
.hdr__right { display: flex; align-items: center; gap: .7rem; }
@keyframes blink { 50% { opacity: .25; } }
.hdr__menu { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); }
.hdr__menu .i-close, .menu-open .hdr__menu .i-open { display: none; }
.menu-open .hdr__menu .i-close { display: block; }
.hdr__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.hdr__panel { display: none; max-height: 0; overflow: hidden; background: #fff; transition: max-height .5s var(--ease-out); }
.menu-open .hdr__panel { max-height: 80vh; border-top: 1px solid var(--line); }
.hdr__panel nav { display: grid; padding: .5rem 0 1.2rem; }
.hdr__panel a { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-2); font-family: var(--display); font-size: 1.15rem; font-weight: 600; text-decoration: none; }
.hdr__panel .mono { color: var(--signal); font-size: .8rem; padding-top: .3rem; }
/* Dense, then folded: set by core.js (initFit) when the row does not fit; 1100 px is the floor. */
.hdr.is-dense .hdr__results span { display: none; }
.hdr.is-dense .hdr__results { padding-inline: .7rem; }
.hdr.is-dense .hdr__nav a { padding-inline: .6rem; }
.hdr.is-compact .hdr__nav { display: none; }
.hdr.is-compact .hdr__right { margin-left: auto; }
.hdr.is-compact .hdr__menu { display: grid; }
.hdr.is-compact .hdr__panel { display: block; }
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hdr__right { margin-left: auto; }
  .hdr__menu { display: grid; }
  .hdr__panel { display: block; }
}
@media (max-width: 380px) { .hdr__results { display: none; } }
@media (max-width: 420px) { .hdr__right .btn span { display: none; } }

/* ---------------------------------------------------------- hero */
.hero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem)) 0 clamp(1.5rem, 3vw, 2.5rem); overflow: clip; }
.hero__grid-bg, .section--grid::before {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px),
    linear-gradient(var(--paper-grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid-2) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
}
.hero__grid-bg { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero__text { display: grid; justify-items: start; }
/* The logo on a monitor-white card that sends out a ring with each beat. */
.hero__brand {
  position: relative; display: grid; place-items: center; justify-self: end;
  padding: clamp(1.3rem, 2.6vw, 1.9rem) clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -38px var(--signal-glow);
}
.hero__brand::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--signal); pointer-events: none;
  opacity: 0; animation: brand-ping 2.4s var(--ease-out) infinite;
}
@keyframes brand-ping { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.06, 1.22); } }
.hero__logo { width: clamp(240px, 29vw, 420px); height: auto; }
@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__text { justify-items: center; }
  .hero__brand { order: -1; justify-self: center; }
}
.tag { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .9rem .4rem .45rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 600; box-shadow: 0 4px 14px -8px rgb(18 19 26 / .2); }
.tag__beat { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--signal); }
.tag__beat .icon { width: 14px; height: 14px; animation: beat 1s var(--ease-out) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
.tag .mono { font-size: .8rem; color: var(--signal-deep); }
.tag__sep { width: 1px; height: 16px; background: var(--line-2); }
.hero__title { margin: 0 0 1.2rem; max-width: 18ch; font-family: var(--display); font-size: clamp(2.3rem, 1.3rem + 3.9vw, 4.6rem); font-weight: 650; line-height: 1.02; letter-spacing: -.045em; }
.hero__title .accent { color: var(--signal); }
.hero__lede { max-width: 38rem; font-size: var(--fs-lg); color: var(--ink-2); }
.hero__trace { margin: clamp(1.5rem, 4vw, 3rem) 0 0; height: clamp(80px, 12vw, 140px); }
.hero__trace .ecg { height: 100%; }

.monitor { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; margin-top: -1rem; padding: 1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -40px rgb(18 19 26 / .45); }
.vitals { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; }
.vital { position: relative; display: grid; grid-template-areas: "num" "label" "spark"; align-content: start; gap: .3rem; padding: 1rem 1.1rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.vital dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vital dd { margin: 0; font-family: var(--mono-f); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); font-weight: 500; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.vital dd sup { font-size: .5em; color: var(--signal); vertical-align: top; }
.vital dd { grid-area: num; }
.vital dt { grid-area: label; }
/* Its own row under the label: laid over the card it crossed the text on narrow phones. */
.vital__spark { grid-area: spark; display: block; width: 100%; height: 26px; margin-top: .35rem; }
.vital__spark path { fill: none; stroke: var(--signal); stroke-width: 1.6; vector-effect: non-scaling-stroke; opacity: .7; }
.quick { display: grid; gap: .6rem; }
.quick__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, background-color .25s, transform .35s var(--ease-out); }
.quick__item:hover { border-color: var(--signal); background: var(--signal-soft); transform: translateX(4px); }
.quick__item strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.quick__item small { color: var(--muted); font-size: .84rem; }
.quick__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--signal); background: var(--signal-soft); }
.quick__item--main { background: var(--signal); border-color: var(--signal); color: #fff; }
.quick__item--main small { color: rgb(255 255 255 / .8); }
.quick__item--main .quick__icon { background: rgb(255 255 255 / .15); color: #fff; }
.quick__item--main:hover { background: var(--signal-deep); }
.quick__go { color: currentColor; opacity: .6; }
@media (max-width: 900px) { .monitor { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .vitals { grid-template-columns: 1fr 1fr; } .vital { padding: .9rem; } .vital__spark { height: 20px; } }

/* ---------------------------------------------------------- sections */
.section { position: relative; padding: clamp(3rem, 5.5vw, 5rem) 0; isolation: isolate; }
.section--grid::before { content: ""; opacity: .6; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.section--tint { background: var(--bg-2); }
.sec-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--row { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.sec-head--row .lede { margin: 0; }
@media (max-width: 860px) { .sec-head--row { grid-template-columns: 1fr; } }

.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; margin-bottom: 1.8rem; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 10px; font-family: var(--display); font-size: .88rem; font-weight: 500; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.seg button .mono { font-size: .78rem; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgb(18 19 26 / .18); }
.seg button[aria-pressed="true"] .mono { color: var(--signal); }
.seg--stack { display: grid; width: 100%; }
.seg--stack button { justify-content: space-between; }

/* ---------------------------------------------------------- about */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about__text { display: grid; gap: .6rem; }
.about__photo { position: relative; margin-top: 1.8rem; border-radius: var(--r-lg); overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.about__photo figcaption { position: absolute; left: 1rem; top: 1rem; padding: .3rem .6rem; border-radius: 6px; font-size: .78rem; color: #fff; background: rgb(18 19 26 / .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.about__photo figcaption::before { content: "● "; color: #ff4d4d; animation: blink 1.4s infinite; }
.signals { display: grid; gap: .8rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.signal { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: start; padding: 1.3rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.signal:hover { border-color: color-mix(in oklab, var(--signal) 40%, transparent); box-shadow: 0 18px 40px -30px var(--signal-glow); }
.signal__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--signal-soft); color: var(--signal); }
.signal h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.signal p { margin-top: .25rem; font-size: .94rem; color: var(--ink-2); }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; } .signals { position: static; } }

/* ---------------------------------------------------------- specialties */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.spec {
  position: relative; display: grid; align-content: start; gap: .5rem; padding: 1.4rem 1.3rem 1.5rem; background: #fff; border-radius: 4px;
  --c: color-mix(in oklab, var(--signal) 55%, transparent);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-size: 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px, 14px 1.5px, 1.5px 14px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .4s var(--ease-out), background-size .4s var(--ease-out);
}
.spec:hover { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--signal) 30%, transparent), 0 20px 40px -30px var(--signal-glow); transform: translateY(-3px); background-size: 22px 1.5px, 1.5px 22px, 22px 1.5px, 1.5px 22px, 22px 1.5px, 1.5px 22px, 22px 1.5px, 1.5px 22px; }
.spec__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--signal); background: var(--signal-soft); }
.spec h3 { margin-top: .5rem; font-family: var(--display); font-size: 1.04rem; font-weight: 600; }
.spec p { font-size: .92rem; color: var(--ink-2); }
@media (max-width: 1100px) { .specs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- exams */
.exams { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.exams__side { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .5rem; justify-items: start; }
.exams__side .seg { margin: 1.4rem 0 .8rem; }
/* A white panel: over the graph paper the lines ran through the exam text. */
.exam-list { display: grid; padding: .2rem clamp(.8rem, 2vw, 1.3rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -48px rgb(18 19 26 / .4); }
.exam:last-child { border-bottom: 0; }
.exam { display: grid; grid-template-columns: 34px 1fr auto; gap: 1rem; padding: 1.25rem .4rem; border-bottom: 1px solid var(--line-2); transition: background-color .25s; }
.exam:hover { background: linear-gradient(90deg, var(--signal-soft), transparent 70%); }
.exam h3 { font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.exam p { margin-top: .2rem; font-size: .94rem; color: var(--ink-2); }
.exam__note { display: flex; gap: .45rem; align-items: center; margin-top: .55rem !important; font-size: .76rem !important; color: var(--signal-deep) !important; }
.exam__note .icon { width: 14px; height: 14px; }
.exam__group { align-self: start; padding: .2rem .5rem; border-radius: 6px; font-size: .78rem; color: var(--muted); background: var(--bg-2); white-space: nowrap; }
@media (max-width: 900px) { .exams { grid-template-columns: 1fr; } .exams__side { position: static; } }
@media (max-width: 520px) { .exam { grid-template-columns: 28px 1fr; } .exam__group { display: none; } }

/* ---------------------------------------------------------- programs */
.programs { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.program { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding: clamp(1.6rem, 4vw, 3rem); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.program__head { display: grid; gap: .8rem; justify-items: start; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.program h3 { font-family: var(--display); font-size: var(--fs-h2); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.program__tagline { font-family: var(--display); font-size: 1.1rem; font-weight: 500; color: var(--signal-deep); }
.program__head > p:not(.label):not(.program__tagline) { color: var(--ink-2); }
.program__note { font-size: .9rem; }
.timeline { position: relative; padding-left: 0; }
.timeline__rail { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.timeline__fill { position: absolute; inset: 0; background: var(--signal); transform-origin: 0 0; transform: scaleY(var(--progress, 0)); box-shadow: 0 0 10px var(--signal-glow); }
.timeline__list { display: grid; gap: .7rem; }
.timeline__step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.timeline__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); color: var(--muted); transition: border-color .4s, color .4s, background-color .4s; }
.timeline__step.is-lit .timeline__dot { border-color: var(--signal); color: #fff; background: var(--signal); box-shadow: 0 0 0 6px var(--signal-soft); }
.timeline__text { padding: .95rem 1.1rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; }
.timeline__team { display: flex; align-items: center; gap: 1rem; margin: .6rem 0 0 60px; font-size: .78rem; color: var(--muted); }
.timeline__faces { display: flex; }
.timeline__faces a { text-decoration: none; margin-left: -8px; border-radius: 50%; border: 3px solid #fff; }
.timeline__faces a:first-child { margin-left: 0; }
.face { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.face.avatar-mono { font-size: .78rem; }
@media (max-width: 900px) { .program { grid-template-columns: 1fr; } .program__head { position: static; } }

/* ---------------------------------------------------------- team */
.memoriam { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; margin-bottom: 2.5rem; padding: 1.6rem 2rem; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.ecg--memoriam { position: absolute; inset: auto 0 8px 40%; height: 46px; z-index: -1; opacity: .35; }
.ecg--memoriam .ecg__line { stroke: var(--muted); filter: none; animation-duration: 8s; }
.memoriam__photo { width: clamp(120px, 16vw, 180px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--line-2); }
.memoriam__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.memoriam h3 { margin: .3rem 0 .5rem; font-family: var(--display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; }
.memoriam__body > p:last-child { max-width: 36rem; color: var(--ink-2); }
@media (max-width: 600px) { .memoriam { grid-template-columns: 1fr; padding: 1.4rem; } }
.seg--wrap { display: flex; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.member { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; height: 100%; padding: 1rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .35s var(--ease-out); }
.member:hover { border-color: color-mix(in oklab, var(--signal) 35%, transparent); box-shadow: 0 18px 40px -30px var(--signal-glow); transform: translateY(-2px); }
.member__ring { position: relative; display: block; flex: none; width: 132px; height: 132px; padding: 3px; border-radius: 50%; background: conic-gradient(from var(--a, 0deg), var(--signal), color-mix(in oklab, var(--signal) 15%, white), var(--signal)); }
.member:hover .member__ring { animation: spin 2.4s linear infinite; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.member__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.member__img.avatar-mono { font-family: var(--display); font-size: 1.3rem; }
.avatar-mono { background: linear-gradient(140deg, var(--signal-soft), #fff); color: var(--signal-deep); font-weight: 600; }
.member__body { display: grid; gap: .1rem; }
.member strong { font-family: var(--display); font-size: .98rem; font-weight: 600; line-height: 1.3; }
.member__role { font-size: .86rem; color: var(--ink-2); }
.member__crm { font-size: .78rem; color: var(--muted); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.plans__panel { padding: 1.2rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -45px rgb(18 19 26 / .5); }
.query { display: flex; align-items: center; gap: .7rem; height: 56px; padding: 0 1rem; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink); }
.query__prompt { color: var(--signal); }
.query input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: var(--mono-f); font-size: .95rem; color: var(--ink); }
.query input::placeholder { color: var(--muted); }
.query:focus-within { box-shadow: 0 0 0 4px var(--signal-soft); }
.plans__empty { margin-top: 1rem; font-weight: 600; color: var(--signal-deep); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq .sec-head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.results { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; margin-top: 2rem; padding: 1.2rem; border-radius: var(--r-lg); background: var(--signal-soft); }
.results__icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--signal); color: #fff; }
.results strong { font-family: var(--display); }
.results p { font-size: .9rem; color: var(--ink-2); }
.results .btn { grid-column: 2; justify-self: start; }
.qa-list { display: grid; gap: .6rem; }
.qa { border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: color-mix(in oklab, var(--signal) 35%, transparent); box-shadow: 0 16px 40px -32px var(--signal-glow); }
.qa summary { display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; padding: 1.1rem 1.2rem; }
.qa__q { font-family: var(--display); font-weight: 600; }
.qa__i { color: var(--muted); transition: transform .45s var(--ease-out); }
.qa[open] .qa__i { transform: rotate(180deg); color: var(--signal); }
.qa__a { padding: 0 1.2rem 1.2rem; color: var(--ink-2); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq .sec-head { position: static; } }

/* ---------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.readout { display: grid; margin-top: 2rem; border-top: 1px solid var(--line-2); }
.readout > li { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-2); }
.readout > li > .mono { font-size: .78rem; color: var(--signal); padding-top: .25rem; }
.readout strong { font-family: var(--display); font-weight: 600; }
.readout p { color: var(--ink-2); }
.readout a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.readout__row { display: flex; justify-content: space-between; gap: 1rem; }
.open-status { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .5rem; font-family: var(--mono-f); font-size: .78rem; color: var(--ok); }
.open-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.open-status[data-state="closed"] { color: var(--signal-deep); }
.ombuds { margin-top: 1.8rem; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); background: #fff; border: 1px dashed var(--line-2); }
.ombuds h3 { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 600; }
.ombuds h3 .icon { color: var(--signal); }
.ombuds p { margin-top: .4rem; font-size: .94rem; color: var(--ink-2); }
@keyframes rotate { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .mapbox { position: static; } }

/* ---------------------------------------------------------- footer */
.ftr { position: relative; padding: 0 0 2rem; background: #fff; border-top: 1px solid var(--line); }
.ecg--footer { height: 80px; margin-top: -40px; }
.ecg--footer .ecg__line { animation-duration: 6s; }
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; padding: 2.5rem 0 3rem; }
.ftr__brand { display: grid; gap: 1.2rem; justify-items: start; align-content: start; }
.ftr__brand img { height: 66px; width: auto; }
.ftr__col { display: grid; gap: .5rem; align-content: start; font-size: .93rem; color: var(--ink-2); }
.ftr__col h2 { margin-bottom: .4rem; font-size: .76rem; font-weight: 500; color: var(--signal); }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { color: var(--signal); }
.ftr__legal { padding-top: 1.4rem; border-top: 1px dashed var(--line-2); font-size: .8rem; color: var(--muted); }
.legal__credit a { color: var(--signal-deep); font-weight: 600; }
@media (max-width: 900px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- whatsapp float */

/* ==========================================================================
   Doctor profile, links page, 404
   ========================================================================== */
.links-page { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--header-h) + 2rem) 1.25rem 4rem; background-image: linear-gradient(var(--paper-grid) 1px, transparent 1px), linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px); background-size: 30px 30px; }
.links-card { width: min(100%, 440px); display: grid; gap: 1.4rem; justify-items: center; padding: 2rem 1.4rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -40px rgb(18 19 26 / .45); }
.links-logo { height: 100px; width: auto; }
.links-list { display: grid; gap: .6rem; width: 100%; }
.links-list .btn { justify-content: space-between; min-height: 56px; }
.links-list .btn--primary { justify-content: flex-start; }
.links-address { display: flex; gap: .5rem; align-items: center; font-size: .88rem; color: var(--muted); }

.nf { min-height: 80vh; display: grid; place-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; text-align: center; }
.nf__in { display: grid; justify-items: center; gap: 1rem; }
.nf__code { font-family: var(--mono-f); font-size: clamp(5rem, 3rem + 9vw, 9rem); font-weight: 500; letter-spacing: -.06em; color: var(--signal); line-height: 1; }
.nf__title { font-family: var(--display); font-size: var(--fs-h3); font-weight: 650; }
.nf__text { max-width: 32rem; color: var(--ink-2); }
.nf__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* Phones: icon beside the text, so 17 specialties stay scannable. */
@media (max-width: 520px) {
  .spec { grid-template-columns: auto 1fr; column-gap: .9rem; padding: 1rem; }
  .spec__icon { grid-row: span 2; }
  .spec h3 { margin-top: 0; }
  .spec__code { display: none; }
}

/* ---------------------------------------------------------- round 2 */
.exam__dot { display: grid; place-items: center; width: 28px; height: 28px; margin-top: .1rem; border-radius: 8px; color: var(--signal); background: var(--signal-soft); }
.exam__dot .icon { width: 16px; height: 16px; }
.exam .pop-btn { margin-top: .6rem; border-radius: 8px; }
.timeline__dot .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.member .bio-actions { margin-top: .45rem; }
.member strong .book-link:hover { color: var(--signal-deep); }
.pop-btn, .icon-link { border-radius: 8px; }
.pop { --pop-radius: var(--r-lg); }
.pop__title { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; }
.pop__role { font-family: var(--mono-f); font-size: .78rem; text-transform: uppercase; }
.mapbox { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -45px rgb(18 19 26 / .5); }
.mapbox__bar { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; font-size: .78rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mapbox__live { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); animation: blink 1.6s infinite; }
.mapbox__links { display: flex; gap: .9rem; margin-left: auto; }
.mapbox__links a { color: var(--signal-deep); text-decoration: none; font-weight: 600; }
.mapbox .map-frame { min-height: 580px; }

/* Plan wall: monitor tiles, names of logo tiles in mono like a channel label. */
.plans__panel .plan-wall { margin-top: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.plans__panel .plan-tile { min-height: 120px; border-radius: 12px; border-color: var(--line); }
.plans__panel .plan-tile img { max-height: 54px; }
/* Name-only plans set like a wordmark, so they sit among the logos instead of reading as a list. */
.plans__panel .plan-tile:not(.plan-tile--logo) strong { font-family: var(--display); font-size: 1.2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); }
.plans__panel .plan-tile:not(.plan-tile--logo) small { font-family: var(--mono-f); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.plans__panel .plan-wall.is-searching .plan-tile.is-match { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

/* ---------------------------------------------------------- round 3 */
.hdr__results .icon { width: 16px; height: 16px; }
.program__photo { position: relative; margin: .6rem 0 0; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.program__photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.program__photo figcaption { position: absolute; left: .7rem; bottom: .7rem; padding: .3rem .6rem; border-radius: 8px; font-size: .78rem; letter-spacing: .04em; color: #fff; background: rgb(18 19 26 / .62); }
button.member__ring { border: 0; cursor: pointer; }
@media (max-width: 640px) { .member__ring { width: 108px; height: 108px; } }
.member__ring--btn::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--signal); opacity: 0; transform: scale(.9); transition: opacity .3s, transform .4s var(--ease-out); }
.member__ring--btn:hover::after, .member__ring--btn:focus-visible::after { opacity: .5; transform: none; }
/* White-to-grey seams carry the hero's running ECG trace, centred on the seam. */
.seam { position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 64px; translate: 0 -50%; pointer-events: none; }
.seam .ecg { height: 100%; }
.ecg--seam .ecg__ghost { stroke: color-mix(in oklab, var(--signal) 12%, transparent); stroke-width: 1.5; }
.ecg--seam .ecg__line { animation-duration: 5.4s; }

/* ---------------------------------------------------------- round 4 */
.sec-head .tag { margin-top: .9rem; }
/* On grey sections the segmented control and soft fills would vanish into the ground. */
.section--tint .seg { background: #fff; }
.section--tint .seg button[aria-pressed="true"] { background: var(--bg-2); box-shadow: none; }
@media (max-width: 900px) { .mapbox .map-frame { min-height: 420px; } }

/* ---------------------------------------------------------- round 5 */
.pop__avatar { width: 160px; height: 160px; border-radius: 26px; }
@media (max-width: 480px) { .pop__avatar { width: 112px; height: 112px; } }
.reach { display: grid; gap: .35rem; justify-items: start; }
.reach__item { display: inline-flex; align-items: center; gap: .5rem; }
.reach__item .icon { width: 18px; height: 18px; flex: none; color: var(--signal); }
a.reach__item .icon--fill { color: #1aa364; }
.ftr__reach { display: inline-flex; align-items: center; gap: .5rem; }
.ftr__reach .icon { width: 16px; height: 16px; flex: none; opacity: .8; }
.program__photo .program-media { display: block; width: 100%; height: auto; }
.mapbox__links a { display: inline-flex; align-items: center; min-height: 28px; }
