/* Copyright (c) 2026 Marcel Manzor. All rights reserved.
   Website of Alberto Manzor, MD PA. No copying or reuse without written permission. */
/* ================= tokens ================= */
:root {
  --ink: #0B2447;          /* navy: the dark sections */
  --ink-2: #133A6B;        /* lighter blue: cards and panels on navy */
  --ink-3: #1A4C8A;        /* brightest blue, for highlights */
  --ink-glass: rgba(11, 36, 71, .78);
  --ink-line: rgba(255, 255, 255, .14);
  --on-ink: #F3F1EC;
  --on-ink-muted: #AFC3DE;
  --paper: #F4F1EA;
  --paper-2: #EAE4D8;
  --paper-line: rgba(19, 23, 28, .14);
  --text: #13171C;
  --text-muted: #59626D;
  --pulse: #FF4458;        /* ECG red, on dark */
  --pulse-deep: #D7263D;   /* red on paper (4.6:1 on --paper) */
  --teal: #48D8CC;
  --amber: #F2B35B;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --rail: clamp(22px, 5vw, 72px);   /* where the ECG thread runs */
  --maxw: 1240px;
  --radius: 18px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
i { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--on-ink); color: var(--ink); border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.eyebrow {
  font: 500 12px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
}
.eyebrow .num { color: var(--pulse); margin-right: .4em; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn-pulse { background: var(--pulse); color: #fff; box-shadow: 0 0 0 0 rgba(255, 68, 88, .55); animation: ring 2.2s infinite; }
.btn-pulse:hover { background: #ff2a41; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--on-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-ghost-dark { border-color: var(--paper-line); color: var(--text); background: transparent; }
.btn-ghost-dark:hover { background: rgba(19, 23, 28, .06); }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 18px; }
/* the big phone buttons in "Let's take care of you" */
.phones { gap: 18px; }
.btn-office { min-height: 108px; padding: 0 44px 0 32px; gap: 20px; text-align: left; }
.btn-office svg { width: 32px; height: 32px; stroke-width: 2; }
.btn-office span { display: grid; gap: 9px; font: 600 clamp(30px, 3.4vw, 46px)/1 var(--sans); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.btn-office small { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.btn-office.btn-pulse { box-shadow: 0 22px 50px -16px rgba(255, 68, 88, .75); }
.btn-blue { background: #2463EB; color: #fff; animation: ringblue 2.2s infinite .6s; box-shadow: 0 22px 50px -16px rgba(36, 99, 235, .75); }
.btn-blue:hover { background: #1D55D6; }
@keyframes ringblue { 0% { box-shadow: 0 0 0 0 rgba(36, 99, 235, .5); } 70% { box-shadow: 0 0 0 16px rgba(36, 99, 235, 0); } 100% { box-shadow: 0 0 0 0 rgba(36, 99, 235, 0); } }
@media (max-width: 620px) {
  .phones { flex-direction: column; align-items: stretch; }
  .btn-office { min-height: 92px; padding: 0 24px; justify-content: flex-start; }
}
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 68, 88, .5); } 70% { box-shadow: 0 0 0 16px rgba(255, 68, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 68, 88, 0); } }

/* ================= intro ================= */
.intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--ink);
  pointer-events: none;
}
.intro-line { position: absolute; left: 0; top: 50%; width: 100%; height: 22vh; transform: translateY(-50%); overflow: visible; }
.intro-line path { fill: none; stroke: var(--pulse); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 68, 88, .8)); }
.intro-name { position: absolute; bottom: 18vh; font: 400 clamp(22px, 3vw, 34px)/1 var(--serif); color: var(--on-ink); opacity: 0; }
html:not(.motion) .intro { display: none; }

/* red edge glow driven by the heart rate */
.vignette {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(255, 40, 60, .55) 100%);
  mix-blend-mode: screen;
}

/* ================= nav ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: background-color .4s, backdrop-filter .4s, color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: var(--ink-glass); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--ink-line); }
.nav.on-paper { background: rgba(244, 241, 234, .82); color: var(--text); border-bottom-color: var(--paper-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--serif); white-space: nowrap; }
.brand-mark { width: 34px; height: 22px; fill: none; stroke: var(--pulse); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 6px; margin-left: auto; }
.links a { padding: 10px 14px; border-radius: 999px; font-size: 15px; text-decoration: none; opacity: .82; transition: opacity .2s, background-color .2s; }
.links a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid currentColor; border-color: rgba(127, 127, 127, .4); border-radius: 999px; }
.lang button { min-width: 44px; min-height: 38px; border: 0; background: transparent; border-radius: 999px; font: 500 13px/1 var(--mono); letter-spacing: .06em; cursor: pointer; opacity: .65; transition: background-color .25s, opacity .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--pulse); color: #fff; opacity: 1; }
.btn-call { min-height: 44px; padding: 0 18px; background: var(--on-ink); color: var(--ink); }
.nav.on-paper .btn-call { background: var(--ink); color: #fff; }
.nav.on-white { background: #fff; color: var(--text); border-bottom-color: var(--paper-line); box-shadow: 0 8px 30px -12px rgba(11, 36, 71, .35); }
.nav.on-white .btn-call { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .links { display: none; }
  .nav-end { margin-left: auto; }
  .brand { font-size: 22px; }
}
@media (max-width: 400px) {
  .btn-call span { display: none; }
  .btn-call { width: 44px; padding: 0; }
}

/* ================= voyage ================= */
.voyage { position: relative; height: 400vh; background: var(--ink); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.stage-bg { position: absolute; inset: 0; background: #02040A; }

.card {
  position: relative; z-index: 2;
  width: min(92vw, calc(64svh * 16 / 9));
  aspect-ratio: 16 / 9;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  will-change: transform;
  background: var(--ink);
}
/* with motion on, the card covers the stage and a clip-path opens it from a window to full screen */
.motion .card { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #02040A; }
.motion .card .poster { display: none; } /* the canvas draws the opening shot itself, framed to show the whole body */
.card canvas, .card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card canvas { opacity: 0; transition: opacity .6s; }
.card .finale { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
html:not(.motion) .card .finale { display: none; }
.card.real canvas { opacity: 1; }
.card-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .5) 100%), linear-gradient(to top, rgba(2, 4, 10, .55), transparent 30%); }

.hero-copy {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
  padding: 90px var(--gutter) 40px calc(var(--gutter) + 1.5vw);
  max-width: min(48vw, 820px); text-align: left;
}
.hero-title { display: block; margin: 0; }
.hero-title span {
  display: block;
  font: 400 clamp(52px, 6.4vw, 124px)/.94 var(--serif);
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6);
}
.hero-title i { color: #FF5A6C; }

.hero-foot { pointer-events: auto; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }
.btn-hero { min-height: 50px; padding: 0 24px; font-size: 16px; font-weight: 600; }
.btn-hero svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .3s var(--ease-out); }
.btn-hero:hover svg { transform: translateX(3px); }
.hero-places { font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--on-ink-muted); }
.scroll-cue { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--on-ink); }
.cue-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pulse); box-shadow: 0 0 12px var(--pulse); animation: beat 1s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.5); } 30% { transform: scale(1); } 45% { transform: scale(1.25); } }

/* chapters */
.chapters { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.chapter {
  position: absolute; left: var(--gutter); bottom: clamp(110px, 16vh, 180px);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  opacity: 0; visibility: hidden;
}
/* a soft dark pool behind each caption keeps it readable over bright frames */
.chapter::before { content: ""; position: absolute; z-index: -1; inset: -90px -140px -70px -120px; background: radial-gradient(closest-side, rgba(8, 26, 52, .74), rgba(8, 26, 52, .42) 55%, transparent); pointer-events: none; }
.chapter h2 { margin: 14px 0 12px; font: 400 clamp(40px, 6vw, 84px)/.95 var(--serif); letter-spacing: -.015em; text-shadow: 0 6px 40px rgba(0, 0, 0, .7); }
.chapter h2 i { color: var(--pulse); }
.chapter > p:not(.eyebrow) { max-width: 44ch; color: #DCE1E6; font-size: 18px; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.chapter .eyebrow { color: #C9D0D8; }
.chapter-final { left: 50%; transform: translateX(-50%); text-align: center; bottom: clamp(70px, 12vh, 140px); }
.chapter-final > p:not(.eyebrow) { margin: 0 auto; }
.chapter-final .cta-row { justify-content: center; margin-top: 26px; pointer-events: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* depth gauge */
.depth {
  position: absolute; z-index: 4; right: var(--gutter); top: 50%; transform: translateY(-50%);
  margin: 0; padding: 0 0 0 18px; list-style: none;
  display: flex; flex-direction: column; gap: 22px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .42);
  opacity: 0;
}
.depth li { position: relative; transition: color .3s; }
.depth li::before { content: ""; position: absolute; left: -22px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .3s, box-shadow .3s, transform .3s; }
.depth li.on { color: #fff; }
.depth li.on::before { background: var(--pulse); box-shadow: 0 0 10px var(--pulse); transform: scale(1.5); }
@media (max-width: 860px) { .depth { display: none; } }

.skip-voyage {
  position: absolute; z-index: 5; right: var(--gutter); bottom: max(28px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 13px; text-decoration: none; color: var(--on-ink); opacity: 0;
  transition: background-color .2s;
}
.skip-voyage:hover { background: rgba(255, 255, 255, .16); }
.skip-voyage svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  /* phones: keep the bottom strip free for the heart monitor */
  .skip-voyage { right: auto; left: 50%; transform: translateX(-50%); top: calc(70px + env(safe-area-inset-top)); bottom: auto; min-height: 36px; }
  .hero-places { display: none; }
  .hero-copy { max-width: none; justify-content: space-between; align-items: center; text-align: center; gap: 0; padding: calc(84px + env(safe-area-inset-top)) 20px calc(98px + env(safe-area-inset-bottom)); }
  .hero-actions { flex-direction: column; justify-content: center; gap: 12px; }
  .chapter { bottom: calc(110px + env(safe-area-inset-bottom)); }
  .chapter-final { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .chapter h2 { font-size: clamp(38px, 10vw, 60px); }
  .chapter > p:not(.eyebrow) { font-size: 16px; }
  .hero-title span { font-size: 12vw; }
  :lang(es) .hero-title span { font-size: 9.6vw; }
}

/* ================= paper (everything after the voyage) ================= */
.paper { position: relative; background: var(--paper); color: var(--text); }
.paper .eyebrow { color: var(--text-muted); }
.paper .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--pulse-deep); vertical-align: 1px; }
.paper .eyebrow::before { transition: box-shadow .4s, transform .4s; }
.paper .eyebrow.lit::before { transform: scale(1.4); box-shadow: 0 0 0 4px rgba(215, 38, 61, .15), 0 0 14px rgba(255, 68, 88, .8); }
.paper h2 i, .paper .book-title i { color: var(--pulse-deep); }

.thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; overflow: visible; }
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread-ghost { stroke: rgba(19, 23, 28, .1); stroke-width: 1.5; }
.thread-line { stroke: var(--pulse-deep); stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(215, 38, 61, .45)); }
.thread-head { fill: var(--pulse); filter: drop-shadow(0 0 8px rgba(255, 68, 88, .9)); }
html:not(.motion) .thread { display: none; }

.wrap { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 0 calc(var(--rail) + var(--gutter)); }
.sec { padding: clamp(90px, 14vw, 180px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head h2, .about h2, .book-title { margin-top: 18px; font: 400 clamp(46px, 7vw, 104px)/.95 var(--serif); letter-spacing: -.02em; }
.lede { margin-top: 24px; max-width: 58ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-muted); }

/* ribbon */
.ribbon { position: relative; z-index: 2; overflow: hidden; padding: 22px 0; background: var(--ink-2); color: var(--on-ink); border-top: 1px solid var(--ink-line); }
.ribbon-track { display: inline-block; white-space: nowrap; font: 400 clamp(28px, 4vw, 52px)/1 var(--serif); will-change: transform; }
.ribbon-track b { font-weight: 400; color: var(--pulse); }

/* service cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-s {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: #FBF9F4; border: 1px solid var(--paper-line);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.card-s:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(19, 23, 28, .3); border-color: rgba(215, 38, 61, .35); }
.card-s svg { width: 34px; height: 34px; fill: none; stroke: var(--pulse-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.card-s h3 { font: 400 28px/1.1 var(--serif); margin-bottom: 10px; }
.card-s p { color: var(--text-muted); font-size: 16px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* about (dark card that rises) */
.about { background: linear-gradient(165deg, var(--ink-3) 0%, var(--ink-2) 30%, var(--ink) 75%); color: var(--on-ink); border-radius: 36px 36px 0 0; margin-top: -36px; position: relative; z-index: 3; }
.about .eyebrow { color: var(--on-ink-muted); }
.about .eyebrow::before { background: var(--pulse); }
.about h2 i { color: var(--pulse); }
.about .lede { color: #C4CBD3; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.creds { margin: 44px 0 0; display: grid; gap: 0; }
.creds div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--ink-line); }
.creds dt { font: 500 12px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-muted); }
.creds dd { margin: 0; font-size: 16px; }
.portrait { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* the photo's frame flashes red with each heartbeat */
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(255, 68, 88, 0); }
.portrait.beat::after { animation: framebeat .6s ease-out; }
@keyframes framebeat { 0% { box-shadow: inset 0 0 0 3px rgba(255, 68, 88, .9); } 100% { box-shadow: inset 0 0 0 2px rgba(255, 68, 88, 0); } }
.portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 18px 20px; background: linear-gradient(to top, rgba(11, 36, 71, .9), transparent); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.portrait figcaption svg { width: 90px; height: 30px; fill: none; stroke: var(--pulse); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: rgba(11, 36, 71, .55); padding: 22px 20px; }
.stats b { display: block; font: 400 52px/1 var(--serif); color: var(--on-ink); }
.stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--on-ink-muted); }
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { max-width: 520px; }
}
@media (max-width: 620px) { .creds div { grid-template-columns: 1fr; gap: 6px; } }

/* first visit */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--paper-line); }
.steps li { padding: 34px 28px 10px 0; border-right: 1px solid var(--paper-line); }
.steps li + li { padding-left: 28px; }
.steps li:last-child { border-right: 0; }
.step-n { display: block; font: 400 72px/1 var(--serif); color: var(--pulse-deep); margin-bottom: 18px; }
.steps h3 { font: 400 30px/1.1 var(--serif); margin-bottom: 10px; }
.steps p { color: var(--text-muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--paper-line); }
}

/* insurance */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
  position: relative; display: grid; place-items: center; min-height: 150px; padding: 26px 30px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--paper-line);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(19, 23, 28, .3); border-color: rgba(215, 38, 61, .35); }
.plan img { width: auto; max-width: 78%; max-height: 64px; object-fit: contain; }
/* stacked or round logos need more height to read at the same weight as the wide ones */
.plan[data-logo="bcbs"] img { max-height: 104px; }
.plan[data-logo="ambetter"] img { max-height: 100px; }
.plan[data-logo="solis"] img { max-height: 72px; }
.plan[data-logo="oscar"] img { max-height: 46px; }
.plan[data-logo="unitedhealthcare"] img { max-height: 52px; }
.plan[data-logo="obamacare"] img { max-height: 92px; }
.plan[data-logo="amerihealth-caritas"] img { max-height: 84px; }
.plan[data-logo="family-health-choice"] img { max-height: 70px; }
.plan[data-logo="sanitas"] img { max-height: 64px; }
.plan[data-logo="cigna"] img { max-height: 56px; }
.plan[data-logo="medicare"] img { max-height: 64px; }
.plan[data-logo="multiplan"] img { max-height: 48px; }
.plan[data-logo="gold-kidney-health"] img { max-height: 44px; }
.plan[data-logo="medica"] img { max-height: 48px; }
/* a short line under a plan's logo, e.g. which UnitedHealthcare plans */
.plan-note { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.plan:has(.plan-note) { padding-bottom: 38px; }
@media (max-width: 820px) { .plan-note { font-size: 9.5px; letter-spacing: .06em; bottom: 10px; padding: 0 8px; } .plan:has(.plan-note) { padding-bottom: 48px; } }
.plan-name { font: 400 clamp(22px, 2.2vw, 30px)/1.1 var(--serif); text-align: center; color: var(--text); }
.plan.has-logo .plan-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan::after { content: ""; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; background: var(--pulse-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plans-more { margin-top: 28px; font-size: 18px; color: var(--text-muted); }
.plans-more a { margin-left: 6px; color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--pulse-deep); }
@media (max-width: 820px) { .plans { grid-template-columns: repeat(2, 1fr); gap: 12px; } .plan { min-height: 120px; padding: 22px 18px; } }

/* office hours + live open/closed badge (home office cards and the booking page) */
.hours { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 14px; }
.hours svg, .call-meta svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--pulse-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hours b { display: block; font-weight: 500; font-size: 16px; color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--text-muted); }
.status:empty { display: none; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9AA5B4; }
.status.open { color: #13824B; }
.status.open::before { background: #1DB46A; box-shadow: 0 0 0 0 rgba(29, 180, 106, .6); animation: openping 2s infinite; }
@keyframes openping { 0% { box-shadow: 0 0 0 0 rgba(29, 180, 106, .55); } 70% { box-shadow: 0 0 0 8px rgba(29, 180, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 180, 106, 0); } }

/* ================= booking page ================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-go { min-height: 76px; padding: 0 40px; gap: 14px; font-size: 22px; font-weight: 600; box-shadow: 0 22px 50px -16px rgba(255, 68, 88, .75); }
.btn-go svg { width: 24px; height: 24px; stroke-width: 2.2; transition: transform .3s var(--ease-out); }
.btn-go:hover svg { transform: translateX(4px); }
.book-hero { position: relative; padding: clamp(130px, 16vw, 190px) 0 clamp(80px, 10vw, 130px); color: var(--on-ink); background: radial-gradient(ellipse at 15% 0%, var(--ink-3) 0%, transparent 55%), linear-gradient(170deg, var(--ink-2) 0%, var(--ink) 70%); overflow: hidden; }
.book-hero .wrap { padding-left: var(--gutter); }
.book-hero .eyebrow { color: var(--on-ink-muted); }
.book-hero .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--pulse); vertical-align: 1px; }
.book-hero .book-title { margin: 18px 0 0; font: 400 clamp(56px, 10vw, 150px)/.95 var(--serif); letter-spacing: -.02em; }
.book-hero .book-title i { color: var(--pulse); }
.book-hero .lede { color: #C9D6E8; }
.call-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: clamp(40px, 6vw, 64px); }
.call-card { padding: 30px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.call-office { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font: 400 clamp(32px, 3.4vw, 44px)/1 var(--serif); }
.call-office .pin { background: var(--pulse); }
.call-office .pin::after { border-color: var(--pulse); }
.call-card .btn-office { width: 100%; justify-content: flex-start; }
.call-meta { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.call-meta li { display: flex; gap: 12px; align-items: flex-start; }
.call-meta svg { stroke: var(--pulse); }
.call-meta b { display: block; font-weight: 500; font-size: 16px; }
.call-meta span { color: var(--on-ink-muted); font-size: 15px; }
.call-meta a { color: var(--on-ink); text-underline-offset: 3px; }
.call-meta .status { color: var(--on-ink-muted); }
.call-meta .status.open { color: #5BE39B; }
.call-meta .status::before { background: #7E8FA8; }
.call-meta .status.open::before { background: #2BD47E; }
.call-card .btn-office span { white-space: nowrap; }
@media (max-width: 900px) { .call-grid { grid-template-columns: 1fr; } .call-card { padding: 24px 18px; } }
@media (max-width: 480px) {
  .call-card .btn-office { min-height: 84px; padding: 0 18px; gap: 12px; }
  .call-card .btn-office svg { width: 24px; height: 24px; }
  .call-card .btn-office span { font-size: clamp(22px, 6.6vw, 28px); }
  .btn-go { width: 100%; }
}

/* office pages: one call card */
.call-grid-1 { grid-template-columns: minmax(0, 640px); }
.office-ins .cta-row .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-title .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-links { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.foot .foot-links a { font: 400 15px/1.5 var(--sans); color: var(--on-ink-muted); text-decoration: none; }
.foot .foot-links a:hover { color: var(--on-ink); }

/* the plan finder */
.plan-search { position: relative; display: block; max-width: 520px; margin: 0 0 22px; }
.plan-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--text-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.plan-search input { width: 100%; min-height: 56px; padding: 0 20px 0 50px; border-radius: 999px; border: 1px solid var(--paper-line); background: #fff; font: 400 17px/1 var(--sans); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.plan-search input:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(26, 76, 138, .15); }
.page-book .plans { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; align-items: stretch; }
.page-book .plan { min-height: 160px; }
.plan[hidden] { display: none; }
.plans-none { margin-top: 8px; padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--paper-line); color: var(--text-muted); }
.plans-call { position: relative; z-index: 2; clear: both; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-top: 40px; padding: 30px 32px; border-radius: 24px; background: var(--ink); color: var(--on-ink); }
.plans-call h3 { font: 400 34px/1.1 var(--serif); margin-bottom: 8px; }
.plans-call p { max-width: 52ch; color: var(--on-ink-muted); }
.plans-call-btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) { .page-book .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .page-book .plans { grid-template-columns: repeat(2, 1fr); } .plans-call { padding: 24px 20px; } .plans-call-btns { width: 100%; } .plans-call-btns .btn { flex: 1 1 100%; } }

/* offices */
.offices { background: var(--paper-2); }
.office-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 980px; }
.office { position: relative; padding: 36px 34px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--paper-line); overflow: hidden; }
.office h3 { font: 400 clamp(40px, 4vw, 52px)/1 var(--serif); margin: 22px 0 14px; }
.office p { color: var(--text-muted); margin-bottom: 14px; }
.pin { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--pulse-deep); position: relative; }
.pin::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--pulse-deep); opacity: 0; animation: ping 2.4s infinite; }
.office:nth-child(2) .pin::after { animation-delay: .8s; }
.office:nth-child(3) .pin::after { animation-delay: 1.6s; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 80%, 100% { transform: scale(2); opacity: 0; } }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--pulse-deep); }
.tel { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font: 400 30px/1 var(--serif); color: var(--text); text-decoration: none; }
.tel:hover { color: var(--pulse-deep); }
.office .link { display: flex; width: max-content; }
@media (max-width: 900px) { .office-list { grid-template-columns: 1fr; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.qa details { border-top: 1px solid var(--paper-line); }
.qa details:last-child { border-bottom: 1px solid var(--paper-line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; font: 400 24px/1.2 var(--serif); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; border-right: 2px solid var(--pulse-deep); border-bottom: 2px solid var(--pulse-deep); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease-out); }
.qa details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.qa details p { padding: 0 0 24px; max-width: 60ch; color: var(--text-muted); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* book */
.book { text-align: left; }
.book-title { font-size: clamp(64px, 12vw, 190px); margin-bottom: 44px; }

/* ================= footer ================= */
.foot { position: relative; background: linear-gradient(180deg, var(--ink) 0%, #081B36 100%); color: var(--on-ink); padding: 40px 0 max(130px, calc(110px + env(safe-area-inset-bottom))); overflow: hidden; }
.foot-ecg { width: min(1200px, 100%); height: auto; margin: 0 auto 30px; overflow: visible; }
.foot-line { fill: none; stroke: var(--pulse); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 68, 88, .8)); }
.foot-heart { fill: var(--pulse); opacity: 0; filter: drop-shadow(0 0 30px rgba(255, 68, 88, .7)); }
html:not(.motion) .foot-heart { opacity: .9; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; padding-top: 30px; border-top: 1px solid var(--ink-line); }
.foot-grid > div { display: grid; gap: 6px; align-content: start; }
.foot-brand { font: 400 40px/1 var(--serif); }
.foot-brand i { color: var(--pulse); }
.foot a { text-decoration: none; font: 400 26px/1.2 var(--serif); }
.muted { color: var(--on-ink-muted); font-size: 14px; }
.warn { color: var(--amber); font-weight: 500; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; } }

/* ================= heart monitor ================= */
.monitor {
  position: fixed; z-index: 65; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px 8px 8px; border-radius: 20px;
  background: var(--ink-glass); color: var(--on-ink);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.monitor.show { opacity: 1; transform: none; }
.mon-heart { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgba(255, 68, 88, .12); cursor: pointer; transition: background-color .2s; }
.mon-heart:hover { background: rgba(255, 68, 88, .22); }
.mon-heart[aria-pressed="true"] { background: rgba(255, 68, 88, .3); box-shadow: inset 0 0 0 1px rgba(255, 68, 88, .6); }
.mon-heart svg { width: 24px; height: 24px; fill: var(--pulse); stroke: none; filter: drop-shadow(0 0 6px rgba(255, 68, 88, .8)); }
.mon-heart.thump svg { animation: thump .32s ease-out; }
@keyframes thump { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
.mon-read { min-width: 120px; }
.mon-bpm { display: flex; align-items: baseline; gap: 6px; font-family: var(--mono); }
.mon-bpm b { font-size: 26px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.mon-bpm span { font-size: 11px; letter-spacing: .12em; color: var(--on-ink-muted); }
.mon-msg { font: 500 11px/1.3 var(--mono); letter-spacing: .04em; color: var(--teal); white-space: nowrap; transition: color .3s; }
.monitor[data-zone="up"] .mon-msg { color: var(--amber); }
.monitor[data-zone="high"] .mon-msg { color: var(--pulse); }
.mon-trace { width: 150px; height: 56px; }
@media (max-width: 620px) {
  .monitor { gap: 8px; padding: 6px 10px 6px 6px; border-radius: 16px; }
  .mon-heart { width: 40px; height: 40px; border-radius: 11px; }
  .mon-bpm b { font-size: 21px; }
  .mon-read { min-width: 0; }
  .mon-msg { max-width: 104px; white-space: normal; font-size: 10px; }
  .mon-trace { width: 64px; height: 44px; }
}

/* ================= reveals ================= */
.motion .reveal-ready { opacity: 0; transform: translateY(40px); }

/* ================= reduced motion / no JS motion ================= */
html:not(.motion) .voyage { height: auto; }
html:not(.motion) .stage { position: relative; height: auto; display: block; padding: 120px var(--gutter) 60px; }
html:not(.motion) .card { width: 100%; margin: 0 auto; }
html:not(.motion) .hero-copy { position: relative; margin-bottom: 30px; max-width: none; padding: 0; }
html:not(.motion) .hero-title span { position: static; display: block; }
html:not(.motion) .skip-voyage, html:not(.motion) .depth { display: none; }
html:not(.motion) .chapters { position: relative; display: grid; gap: 40px; margin-top: 48px; }
html:not(.motion) .chapter, html:not(.motion) .chapter-final { position: relative; inset: auto; transform: none; opacity: 1; visibility: visible; width: auto; text-align: left; }
html:not(.motion) .chapter-final .cta-row { justify-content: flex-start; }
html:not(.motion) .monitor { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
