/* Dr. Phyx — the care plan. Static site, no build step. */

:root {
  /* Dr. Phyx graphic chart */
  --ink: #2D2D56;       /* brand dark blue ("DR. PHYX") */
  --navy: #2D2D56;
  --blue: #26A2E4;      /* brand logo blue: ticks, buttons, the X */
  --blue-ink: #4472C4;  /* brand light blue ("PHYSIOTHERAPY"): blue text on light grounds, 4.7:1 */
  --sky: #7BC7E9;       /* tint of the logo blue for text on dark grounds */
  --mist: #E8EDF7;
  --paper: #FFFFFF;
  --night: #222244;
  --muted: #55557A;
  --rule: rgba(45, 45, 86, 0.16);
  --rule-strong: rgba(45, 45, 86, 0.32);
  --rule-light: rgba(255, 255, 255, 0.16);
  --on-dark: #DDE3F2;

  --f-display: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --f-label: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --f-body: "Montserrat", "Avenir Next", system-ui, sans-serif;
  --f-hand: "Source Sans 3", Georgia, serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --nav-h: 72px;
  --radius: 8px;
  --shadow-card: 0 30px 60px -28px rgba(20, 20, 50, 0.4), 0 2px 6px rgba(20, 20, 50, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* no scroll-behavior: smooth here — Lenis handles smooth scrolling, and the CSS rule makes ScrollTrigger stall */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }

::selection { background: var(--blue); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--navy) var(--mist); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 10px; border: 2px solid var(--mist); }

.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- shared atoms ---------- */

.label, .card__head, .fields dt, .step__state, .rx__tag, .intake__note, .hero__credit, .margin-note cite, .review figcaption span {
  font-family: var(--f-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  font-weight: 600;
}

.hand {
  font-family: var(--f-hand);
  font-style: italic;
  font-weight: 400;
  color: var(--navy);
  font-size: 1.1875rem;
  line-height: 1.75rem;
  background-image: linear-gradient(to bottom, transparent calc(1.75rem - 1px), var(--rule) calc(1.75rem - 1px));
  background-size: 100% 1.75rem;
}

.card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}
.card__brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.card__brand img { width: 14px; height: auto; }
.card__date b { color: var(--ink); font-weight: 700; margin-left: 4px; }
/* the designed blank: a name line the visitor fills at the clinic */
.card__blank { display: inline-flex; align-items: baseline; gap: 6px; margin-right: auto; margin-left: 12px; }
.card__blank i { display: inline-block; width: 6.5em; height: 1px; background: var(--rule-strong); }
@media (max-width: 600px) { .card__blank { order: 3; flex-basis: 100%; margin: 6px 0 0; } .card__blank i { flex: 1; } }

.box {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  display: grid;
  place-items: center;
  transition: background-color 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.box svg { width: 18px; height: 18px; color: var(--ink); stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 420ms var(--ease-out) 80ms; }
.is-done > .box, .is-picked > .box { background: var(--blue); border-color: var(--blue); }
.is-done > .box svg, .is-picked > .box svg { stroke-dashoffset: 0; }

.btn {
  --bg: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.45);
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn__arrow { width: 18px; height: 18px; flex: none; transition: transform 240ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --bg: var(--sky); }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.75rem; }
.btn--sm .btn__icon { width: 17px; height: 17px; }
.btn--lg { min-height: 56px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--xl { min-height: 72px; padding: 0 34px; font-size: 1rem; gap: 14px; }
.btn--xl .btn__icon { width: 26px; height: 26px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-label);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link svg { width: 18px; height: 18px; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link:hover svg { transform: translateX(3px); }
}

.margin-note {
  font-family: var(--f-hand);
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.margin-note::before { content: ""; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 1px; background: var(--blue); }
.margin-note cite { display: block; margin-top: 6px; font-style: normal; color: var(--navy); font-size: 0.6875rem; }

h2 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.98;
  font-size: clamp(2.5rem, 5.6vw, 5.25rem);
  text-wrap: balance;
}
h2 span { color: var(--blue-ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 400ms var(--ease-out);
}
.nav.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__mark { width: 28px; height: auto; }
.nav__word { width: 112px; height: auto; }
.nav__word--dark { display: none; }
.nav.is-solid .nav__word--dark { display: block; }
.nav.is-solid .nav__word--light { display: none; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--f-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
  column-gap: 24px;
  row-gap: 20px;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 32px;
  overflow: hidden;
  isolation: isolate;
}
.hero__film {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  z-index: -1;
  background: var(--navy) url("media/reel-01.webp") center 30% / cover no-repeat;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(45, 45, 86, 0.8) 0%, rgba(45, 45, 86, 0) 20%),
    linear-gradient(90deg, var(--ink) 0%, rgba(45, 45, 86, 0.55) 22%, rgba(45, 45, 86, 0) 48%),
    linear-gradient(0deg, rgba(45, 45, 86, 0.85) 0%, rgba(45, 45, 86, 0) 30%);
  pointer-events: none;
}
.hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  color: var(--on-dark);
  text-align: right;
  font-size: 0.6875rem;
}
.hero__credit span { display: block; font-family: var(--f-display); font-size: 1.25rem; letter-spacing: 0.04em; color: #fff; margin-bottom: 2px; }

.sound {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--nav-h) + 20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(34, 34, 68, 0.55);
  color: #fff;
  font-family: var(--f-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.sound svg { width: 20px; height: 20px; }
.sound__on { display: none; }
.sound[aria-pressed="true"] .sound__on { display: block; }
.sound[aria-pressed="true"] .sound__off { display: none; }
.sound:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .sound:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); } }

.hero__copy { grid-column: 1 / span 8; grid-row: 1; align-self: center; position: relative; z-index: 2; }
.hero__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.012em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title .dot { color: var(--blue); }
.hero__lead { max-width: 40ch; margin-top: 20px; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); line-height: 1.5; color: var(--on-dark); }

.intake {
  grid-column: 1 / span 6;
  grid-row: 2;
  position: relative;
  z-index: 3;
  padding: 20px 24px 18px;
  width: 100%;
  max-width: 600px;
}
.intake__field { margin-top: 16px; }
.intake__field legend {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--f-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.chip::before {
  content: "";
  width: 0;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / 14px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4.5 12.5l4.8 4.8L19.5 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: width 220ms var(--ease-out);
}
.chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-checked="true"]::before { width: 14px; color: var(--sky); }
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }

.intake__msg { margin: 16px 0 14px; }
.intake__msg .label { color: var(--muted); display: block; margin-bottom: 4px; }
.intake__msg .hand { min-height: 1.75rem; }
.intake__note { margin-top: 10px; color: var(--muted); font-size: 0.6875rem; text-align: center; }

.hero__scroll {
  grid-column: 7 / span 3;
  grid-row: 2;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark);
  font-family: var(--f-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 12px;
}
.hero__scroll span { flex: none; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--blue); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* video controls: pause (WCAG 2.2.2) and sound */
.film-controls { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 20px); display: flex; gap: 8px; z-index: 2; }
.film-controls .sound { position: static; }
.pause {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(34, 34, 68, 0.55); color: #fff;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
}
.pause svg { width: 18px; height: 18px; }
.pause__on { display: none; }
.pause[aria-pressed="true"] .pause__on { display: block; }
.pause[aria-pressed="true"] .pause__off { display: none; }
.pause:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .pause:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); } }

/* phone menu: native <details>, hidden on wide screens */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid currentColor;
  font-family: var(--f-label); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.menu summary::-webkit-details-marker { display: none; }
.menu__bars { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.menu[open] .menu__bars { border-color: transparent; }
.menu[open] .menu__bars::after { top: 2px; transform: rotate(45deg); }
.menu[open] .menu__bars::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; transform: rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; z-index: 60;
  background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 6px 0; display: grid;
}
.menu__panel a {
  display: flex; align-items: center; min-height: 48px; padding: 0 20px;
  font-family: var(--f-label); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
}
.menu__panel a + a { border-top: 1px solid var(--rule); }
.menu__panel a:hover, .menu__panel a:focus-visible { background: var(--mist); }
@media (max-width: 899px) { .menu { display: block; } }

/* ---------- the name ---------- */

.name { background: var(--paper); padding: clamp(80px, 12vh, 140px) var(--gutter); }
.name__inner { max-width: var(--max); margin: 0 auto; min-height: calc(100svh - 160px); display: flex; flex-direction: column; justify-content: center; }
.name__rows { display: grid; gap: 0; }
.name__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: end;
  gap: 32px;
  padding: 6px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.name__word {
  position: relative;
  display: inline-block;
  justify-self: start;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(5rem, 15vw, 13.5rem);
  line-height: 1.02; margin: -0.1em 0 -0.1em; /* box holds the whole glyph so the reveal mask never trims it */
  letter-spacing: -0.01em;
}
.name__word .ghost, .name__word .ink { display: block; }
.name__word .ghost { color: transparent; -webkit-text-stroke: 1.5px var(--rule-strong); }
.name__word .ink { position: absolute; inset: 0; color: var(--ink); -webkit-text-stroke: 1.5px currentColor; clip-path: inset(0 0 0 0); }
.name__word--x .ink { color: var(--blue); }
.name__def {
  font-family: var(--f-hand);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--navy);
  max-width: 22ch;
  padding-bottom: 0.6em;
}
.name__mission {
  margin-top: clamp(28px, 5vh, 56px);
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.02;
}
.name__mission em { font-style: normal; color: var(--blue-ink); }
.name__mission blockquote { margin: 0; }
.name__mission blockquote p { margin: 0; max-width: 24ch; }
.name__mission figcaption { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-family: var(--f-body); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; color: var(--muted); }
.name__mission figcaption::before { content: ""; width: 32px; height: 2px; background: var(--blue); flex: none; }

/* ---------- the plan ---------- */

.plan { background: var(--mist); }
.plan__sticky {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 32px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.plan__sheet { padding: 26px clamp(20px, 3vw, 40px) 28px; }
.plan__title { font-size: clamp(2rem, 3.8vw, 3.5rem); margin: 22px 0 10px; }
.plan__title span { display: block; }
.steps { margin: 10px 0 22px; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.step .box { margin-top: 4px; }
.step h3 {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.375rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.step__n { font-family: var(--f-label); font-size: 0.6875rem; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; }
.step .hand { margin-top: 4px; max-width: 46ch; }
.step__state { color: var(--muted); padding-top: 8px; min-width: 7.5em; text-align: right; transition: color 200ms ease; }
.step.is-now .step__state { color: var(--ink); }
.step.is-done .step__state { color: var(--navy); }

.plan__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-card); }
.plan__shot { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-in-out); }
.plan__shot.is-on { clip-path: inset(0 0 0 0); }
.plan__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transform: scale(1.08); transition: transform 1600ms var(--ease-out); }
.plan__shot.is-on img { transform: scale(1); }
.plan__progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 2px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; overflow: hidden; }
.plan__progress span { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0.25); transition: transform 400ms var(--ease-out); }

/* entries rewrite when the visitor picks a need */
.is-writing { animation: write 700ms var(--ease-out) both; }
@keyframes write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ---------- treatments ---------- */

.rx { background: var(--paper); padding: clamp(96px, 14vh, 160px) var(--gutter); }
.rx__head, .rx__list { max-width: var(--max); margin: 0 auto; }
.rx__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 6vh, 72px); }
.rx__head p { max-width: 44ch; color: var(--muted); }
.rx__hint { display: block; margin-top: 10px; color: var(--navy); font-family: var(--f-hand); font-style: italic; font-size: 1.125rem; }
.rx__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); border-top: 1px solid var(--ink); }
.rx__item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-content: start;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--rule);
}
.rx__item .box { grid-row: span 4; margin-top: 2px; }
.rx__item h3 { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: 1.375rem; line-height: 1.15; }
.rx__item p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
.rx__tag { color: var(--navy); margin-top: 10px; }
.rx__more { grid-column: 2; justify-self: start; margin-top: 8px; font-family: var(--f-label); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); text-decoration: underline; text-underline-offset: 6px; display: inline-flex; align-items: center; min-height: 44px; }
.rx__more:hover { color: var(--ink); }
.rx__evidence { margin-top: 18px; color: var(--ink); }
.rx__tag:empty { display: none; }
.rx__item::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rx__item:hover::after { transform: scaleX(1); } }
.rx__item.is-picked::after { transform: scaleX(1); background: var(--blue); }

.rx__combo { max-width: var(--max); margin: clamp(32px, 5vh, 48px) auto 0; padding: 24px 28px; border-radius: var(--radius); background: var(--ink); color: var(--on-dark); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: baseline; }
.rx__combo-title { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.1; color: var(--sky); }
.rx__combo p:not(.rx__combo-title) { max-width: 60ch; }
@media (max-width: 899px) { .rx__combo { grid-template-columns: 1fr; } }

/* ---------- founder ---------- */

.founder {
  background: var(--mist);
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.founder > * { max-width: 760px; }
.founder__photo { justify-self: end; width: 100%; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); background: var(--navy); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__text h2 { font-size: clamp(2.5rem, 4.8vw, 4.5rem); }
.founder__quote { margin: 28px 0 32px; }
.founder__quote p { font-family: var(--f-hand); font-style: italic; font-size: clamp(1.375rem, 2.1vw, 1.875rem); line-height: 1.35; color: var(--navy); max-width: 32ch; }
.fields { border-top: 1px solid var(--ink); margin-bottom: 28px; }
.fields > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fields dt { color: var(--muted); padding-top: 4px; }
.fields dd { font-weight: 500; }
.fields a { text-decoration: underline; }

/* ---------- watch ---------- */

.watch { background: var(--ink); color: #fff; padding: clamp(96px, 14vh, 140px) 0 clamp(80px, 12vh, 120px); overflow: hidden; }
.watch__head { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto 48px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 32px; align-items: end; }
.watch__head p { color: var(--on-dark); max-width: 36ch; }
.watch__head .link { grid-column: 2; justify-self: start; color: var(--sky); }
.watch__track { display: flex; gap: clamp(14px, 1.6vw, 24px); padding: 0 var(--gutter); width: max-content; }
.reel {
  flex: none;
  display: block;
  align-self: flex-start;
  width: clamp(220px, 21vw, 300px);
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: #fff;
}
.reel__frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--navy); transition: transform 160ms var(--ease-out); }
.reel__frame img, .reel__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), opacity 300ms ease; }
.reel__frame video { opacity: 0; }
.reel.is-playing .reel__frame video { opacity: 1; }
.reel__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); pointer-events: none; }
.reel__meta { display: grid; gap: 6px; padding-top: 14px; }
.reel__t { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 1.125rem; line-height: 1.2; }
.reel__d { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-label); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; color: var(--sky); }
.reel__d svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) {
  .reel:hover .reel__frame img, .reel:hover .reel__frame video { transform: scale(1.04); }
}
.reel:active .reel__frame { transform: scale(0.98); }

/* ---------- trust band (continues the dark hero) ---------- */

.trust { background: var(--ink); color: #fff; padding: 0 var(--gutter) clamp(40px, 7vh, 64px); }
.trust__row { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-light); }
.trust__item { padding: 26px clamp(14px, 2vw, 28px) 4px; position: relative; }
.trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 6px; width: 1px; background: var(--rule-light); }
.trust__num { display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); font-weight: 700; line-height: 0.9; font-size: clamp(3rem, 5.6vw, 5.25rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.trust__num small { font-size: 0.42em; font-weight: 600; color: var(--sky); letter-spacing: 0; }
.trust__stars { display: flex; gap: 3px; color: var(--blue); margin: 12px 0 2px; }
.trust__stars svg { width: 15px; height: 15px; }
.trust__lbl { margin-top: 12px; font-family: var(--f-label); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark); max-width: 24ch; line-height: 1.6; }
.trust__src { margin-top: 4px; font-family: var(--f-hand); font-style: italic; font-size: 0.9375rem; color: rgba(220, 228, 242, 0.75); }

/* ---------- reviews: a deck of patient notes ---------- */

.reviews { background: var(--mist); padding: clamp(96px, 14vh, 160px) var(--gutter); overflow: hidden; }
.reviews__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rscore h2 { font-size: clamp(2.25rem, 3.6vw, 3.25rem); margin-bottom: 26px; }
.rscore__n { font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 12vw, 10.5rem); line-height: 0.8; letter-spacing: -0.02em; }
.rscore__stars { display: flex; gap: 4px; color: var(--blue); }
.rscore > .rscore__stars { margin: 18px 0 14px; }
.rscore > .rscore__stars svg { width: 26px; height: 26px; }
.rscore__txt { color: var(--muted); max-width: 26ch; margin-bottom: 18px; }
.deck { display: grid; gap: 16px; }
.pnote {
  background: #fff; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); margin: 0;
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  background-image: linear-gradient(to bottom, transparent 62px, var(--rule) 62px, var(--rule) 63px, transparent 63px);
}
.pnote__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--f-label); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: -6px; }
.pnote__top .rscore__stars svg { width: 16px; height: 16px; }
.pnote blockquote { margin: 34px 0 0; }
.pnote blockquote p { font-family: var(--f-hand); font-style: italic; color: var(--navy); font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.32; text-wrap: pretty; }
.pnote figcaption { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; padding-top: 22px; }
.pnote figcaption b { font-family: var(--f-display); font-weight: 500; text-transform: uppercase; font-size: 1.125rem; letter-spacing: 0.02em; }
.pnote figcaption span { font-family: var(--f-label); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
/* the stacked deck, only once the script is running */
.deck.is-live { display: block; position: relative; height: var(--deck-h, 380px); }
.deck.is-live .pnote { position: absolute; inset: 0; transition: transform 700ms var(--ease-out), opacity 500ms ease, filter 500ms ease; transform-origin: 50% 100%; }
.deck.is-live .pnote[data-pos="0"] { z-index: 5; transform: none; }
.deck.is-live .pnote[data-pos="1"] { z-index: 4; transform: translate(14px, -16px) rotate(1.6deg) scale(0.97); filter: brightness(0.985); }
.deck.is-live .pnote[data-pos="2"] { z-index: 3; transform: translate(26px, -30px) rotate(3deg) scale(0.94); filter: brightness(0.97); }
.deck.is-live .pnote[data-pos="3"], .deck.is-live .pnote[data-pos="4"] { z-index: 2; transform: translate(34px, -40px) rotate(4deg) scale(0.91); opacity: 0; }
.deck.is-live .pnote.is-leaving { z-index: 6; transform: translate(-115%, 30px) rotate(-8deg); opacity: 0; transition-duration: 600ms; }
.deck__ctrl { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.deck__ctrl[hidden] { display: none; }
.deck__ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--rule-strong); background: #fff; display: grid; place-items: center; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.deck__ctrl button:active { transform: scale(0.95); }
.deck__ctrl svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .deck__ctrl button:hover { background: var(--ink); color: #fff; } }
.deck__count { font-family: var(--f-display); font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 4.5ch; }
.deck__bar { flex: 1; height: 2px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.deck__bar span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.deck__bar.run span { animation: deckfill 7s linear forwards; }
.deck__bar.is-paused span { animation-play-state: paused; }
@keyframes deckfill { to { transform: scaleX(1); } }

/* ---------- visit ---------- */

.visit {
  background: var(--ink);
  color: #fff;
  padding: clamp(96px, 16vh, 180px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.visit h2 { font-size: clamp(2.75rem, 6vw, 5.75rem); }
.visit h2 span { display: block; color: var(--sky); }
.visit__msg { color: var(--on-dark); margin: 28px 0 32px; max-width: 34ch; background-image: linear-gradient(to bottom, transparent calc(1.75rem - 1px), var(--rule-light) calc(1.75rem - 1px)); }
.visit__sub { margin-top: 16px; color: var(--on-dark); font-size: 1.125rem; }
.visit__alt { margin-top: 20px; color: var(--on-dark); font-size: 0.9375rem; }
.visit__alt a { color: #fff; }
.visit__card { padding: 12px 28px 28px; }
.visit__card .fields { border-top: 0; }
.visit__card .link { color: var(--ink); }

/* ---------- footer ---------- */

.foot { background: var(--night); color: var(--on-dark); padding: 72px var(--gutter) calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.foot__mark { width: 56px; height: auto; margin: 0 auto 20px; }
.foot__line { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2.25rem); color: #fff; line-height: 1.1; }
.foot__row { max-width: var(--max); margin: 56px auto 0; padding-top: 28px; border-top: 1px solid var(--rule-light); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; text-align: left; }
.foot__row img { width: 132px; height: auto; }
.foot__row nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot__row nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__row nav a { font-family: var(--f-label); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__row nav a:hover { color: var(--sky); } }
.foot__small { flex-basis: 100%; font-size: 0.8125rem; color: rgba(220, 228, 242, 0.7); }

/* ---------- mobile dock ---------- */

.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--ink);
  font-family: var(--f-label);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.45);
  transform: translateY(160%);
  transition: transform 500ms var(--ease-out);
}
.dock svg { width: 22px; height: 22px; }
.dock.is-on { transform: translateY(0); }

/* ---------- player ---------- */

.player {
  padding: 0;
  border: 0;
  background: transparent;
  width: min(92vw, calc(86svh * 9 / 16));
  max-height: 92svh;
  overflow: visible;
}
.player::backdrop { background: rgba(13, 18, 54, 0.88); }
.player video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: #000; }
.player__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
}
.player__close svg { width: 20px; height: 20px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } }

/* ---------- reels: a play badge appears on the card itself (no custom cursor) ---------- */
.reel__frame .reel__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); display: grid; place-items: center; z-index: 2; transform: scale(0.9); opacity: 0; transition: opacity 180ms ease, transform 260ms var(--ease-out); box-shadow: 0 10px 30px -10px rgba(20, 20, 50, 0.6); }
.reel__frame .reel__play svg { width: 22px; height: 22px; margin-left: 3px; }
@media (hover: hover) and (pointer: fine) { .reel:hover .reel__play, .reel:focus-visible .reel__play { opacity: 1; transform: scale(1); } }
@media (hover: none) { .reel__frame .reel__play { opacity: 1; transform: scale(0.8); } }

/* ---------- motion-ready initial states (only when JS animation runs) ---------- */

.motion .hero__title .line > span { transform: translateY(105%); }
.motion .hero__lead, .motion .intake, .motion .sound, .motion .pause, .motion .hero__credit, .motion .hero__scroll { opacity: 0; }

/* ---------- responsive ---------- */

/* pinned scenes must fit a laptop screen */
@media (min-width: 900px) {
  .watch { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 48px; min-height: 100svh; }
  .watch__head { margin-bottom: 32px; }
  .reel { width: max(200px, min(300px, 21vw, calc((100svh - 440px) * 9 / 16))); }
}
@media (min-width: 900px) and (max-height: 920px) {
  .plan__sticky { padding-top: calc(var(--nav-h) + 12px); padding-bottom: 20px; }
  .plan__sheet { padding-top: 18px; padding-bottom: 14px; }
  .plan__title { font-size: clamp(1.75rem, 4.6vh, 2.75rem); margin: 14px 0 4px; }
  .step { padding: 10px 0; }
  .step h3 { font-size: 1.1875rem; }
  .step .hand { font-size: 1.0625rem; line-height: 1.5rem; background-size: 100% 1.5rem; background-image: linear-gradient(to bottom, transparent calc(1.5rem - 1px), var(--rule) calc(1.5rem - 1px)); }
  .steps { margin-bottom: 0; }
  .plan__sheet .margin-note { display: none; }
  .plan__media { max-height: calc(100svh - var(--nav-h) - 40px); }
  .name__word { font-size: clamp(5rem, min(15vw, 22vh), 13.5rem); }
}

@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .rx__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intake { grid-column: 1 / span 8; }
  .hero__scroll { display: none; }
}

@media (max-width: 899px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 0 0 32px;
    min-height: 0;
  }
  .hero__film { position: relative; width: 100%; height: min(48svh, 420px); z-index: 0; }
  .hero__shade { background: linear-gradient(0deg, var(--ink) 0%, rgba(45, 45, 86, 0.7) 26%, rgba(45, 45, 86, 0) 55%), linear-gradient(180deg, rgba(45, 45, 86, 0.6) 0%, rgba(45, 45, 86, 0) 22%); }
  .hero__credit { display: none; }
  .film-controls { top: calc(var(--nav-h) + 8px); }
  /* a short film crops the reel's burned-in subtitle band out; the title overlaps only its last 40px */
  .hero__copy { margin-top: -40px; padding: 0 var(--gutter); }
  .hero__title { font-size: clamp(3.75rem, 19vw, 6.5rem); }
  .hero__lead { margin-top: 18px; font-size: 1.0625rem; }
  .intake { margin: 28px var(--gutter) 0; width: auto; max-width: none; padding: 20px 18px 18px; }
  .name__row { grid-template-columns: 1fr; gap: 6px; padding-bottom: 18px; }
  .name__def { padding-bottom: 0; }
  .plan__sticky { grid-template-columns: 1fr; min-height: 0; padding-top: 72px; padding-bottom: 72px; }
  .plan__media { display: none; }
  .step { grid-template-columns: auto minmax(0, 1fr); }
  .step__state { grid-column: 2; text-align: left; padding-top: 6px; }
  .rx__head, .watch__head, .visit, .founder { grid-template-columns: 1fr; }
  .watch__head .link { grid-column: 1; }
  .founder__photo { justify-self: stretch; aspect-ratio: 4 / 5; }
  .founder__photo img { object-position: center 15%; }
  .watch__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .watch__track::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: start; scroll-margin-left: var(--gutter); width: 62vw; max-width: 280px; }
  .reviews__inner { grid-template-columns: 1fr; }
  .trust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3)::before { display: none; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--rule-light); margin-top: 18px; }
  .dock { display: flex; }
  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}

@media (max-width: 600px) {
  .rx__list { grid-template-columns: 1fr; }
  .fields > div { grid-template-columns: 1fr; gap: 4px; }
  .nav .btn--sm span { display: none; }
  .nav .btn--sm { width: 44px; height: 44px; padding: 0; }
  .btn--xl { width: 100%; min-height: 64px; padding: 0 20px; font-size: 0.875rem; }
  .card__head { letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .plan__shot img { transform: none; }
}

/* =====================================================================
   Brand typography (graphic chart: Montserrat) + Apple-style refinements
   - one family, hierarchy from weight + size + leading
   - tracking tightens as size grows; labels in normal case for readability
   - capitals kept only for short controls (buttons, menu links), like the logo's "PHYSIOTHERAPY"
   ===================================================================== */
body { font-size: 1rem; line-height: 1.65; }
h2 { font-weight: 700; text-transform: none; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(2.125rem, 4.4vw, 4rem); }
.hero__title { font-weight: 800; font-size: clamp(3rem, 7.2vw, 6.5rem); line-height: 0.94; letter-spacing: -0.035em; }
.name__word { font-weight: 800; font-size: clamp(4.5rem, 12.5vw, 11.5rem); letter-spacing: -0.045em; }
.name__def { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.name__mission, .rx__combo-title, .foot__line { text-transform: none; font-weight: 700; letter-spacing: -0.025em; }
.plan__title { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.founder__text h2 { font-size: clamp(2.125rem, 4vw, 3.5rem); }
.visit h2 { font-size: clamp(2.25rem, 4.8vw, 4.5rem); }
.intake__field legend, .step h3, .rx__item h3, .reel__t, .pnote figcaption b, .hero__credit span { text-transform: none; font-weight: 700; letter-spacing: -0.015em; }
.intake__field legend { font-size: 1.375rem; }
.step h3 { font-size: 1.25rem; }
.rx__item h3 { font-size: 1.1875rem; }
.reel__t { font-size: 1rem; line-height: 1.35; }
.hero__credit span { font-size: 1.125rem; }
.trust__num { font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.5rem, 4.8vw, 4.5rem); }
.trust__num small { letter-spacing: -0.01em; font-weight: 600; }
.rscore__n { font-weight: 800; letter-spacing: -0.05em; font-size: clamp(5rem, 10vw, 8.5rem); }
.label, .card__head, .fields dt, .step__state, .step__n, .rx__tag, .intake__note, .hero__credit, .margin-note cite,
.trust__lbl, .pnote__top, .pnote figcaption span, .reel__d, .hero__scroll, .rx__more {
  text-transform: none; letter-spacing: 0; font-size: 0.8125rem; font-weight: 600;
}
.card__date b { font-weight: 700; }
@media (max-width: 899px) {
  .hero__title { font-size: clamp(2.75rem, 13vw, 4.25rem); }
  .name__word { font-size: clamp(4rem, 22vw, 6.5rem); }
}

/* phone menu unfolds from its button (anchored origin), with a light scrim behind it */
.menu__panel { transform-origin: calc(100% - 40px) -6px; }
.menu[open] .menu__panel { animation: menu-in 260ms cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.menu[open]::before { content: ""; position: fixed; inset: 0; background: rgba(34, 34, 68, 0.28); z-index: 55; animation: scrim-in 200ms ease both; }
.menu summary, .menu__panel { position: relative; z-index: 60; }
.menu__panel { position: absolute; }
@keyframes menu-in { from { opacity: 0; transform: scale(0.94) translateY(-6px); } }
@keyframes scrim-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .menu[open] .menu__panel { animation: none; } }

/* reviews deck: swipeable on touch, pause/play toggle */
.deck.is-live { touch-action: pan-y; cursor: grab; user-select: none; }
.deck.is-live:active { cursor: grabbing; }
.deck__toggle .pause__on { display: none; }
.deck__toggle[aria-pressed="true"] .pause__on { display: block; }
.deck__toggle[aria-pressed="true"] .pause__off { display: none; }
.deck__ctrl .deck__toggle svg { width: 16px; height: 16px; }

/* frosted top bar once the page scrolls (content stays visible underneath) */
.nav.is-solid, .page-nav { background: rgba(255, 255, 255, 0.74); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 rgba(45, 45, 86, 0.08); }
@media (prefers-reduced-transparency: reduce) { .nav.is-solid, .page-nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
