/* ============================================================
   United Foot & Ankle Surgeons — "Porcelain & Millimeters"
   Ink-teal / porcelain / restrained gold. Serif display,
   grotesk body, mono for clinical measurement labels.
   ============================================================ */

:root {
  --ink: #0A2E36;
  --ink-deep: #061E25;
  --ink-soft: #10404B;
  --porcelain: #F8F5F0;
  --paper: #F1EDE5;
  --teal: #157A8C;
  --teal-bright: #3FAABC;
  --gold: #E9C64A;
  --gold-deep: #C9A32E;
  --text-dark: #0E272C;
  --text-light: #E9F2F2;
  --mist: #8FB0B6;
  --muted-dark: #4E6A6F;
  --hairline-light: rgba(233, 242, 242, 0.14);
  --hairline-dark: rgba(14, 39, 44, 0.14);

  --f-display: 'Instrument Serif', Georgia, serif;
  --f-body: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

/* Lenis provides smooth scrolling; native smooth would double-animate */

/* Base for the whole rem scale. 106.25% of the browser default (17px at the
   usual 16px) lifts every rem-sized element at once, so body copy, card text
   and guide summaries all read a size larger without hand-tuning each rule.
   Kept as a percentage so a reader who raises their browser font size still wins. */
html { font-size: 106.25%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--text-dark);
  background: var(--ink-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4, blockquote, figure, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--gold); color: var(--ink-deep); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Section shells ---------- */

.section--ink {
  position: relative;
  background: var(--ink);
  color: var(--text-light);
}

/* film grain on dark sections */
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  z-index: 0;
}

.section--ink > * { position: relative; z-index: 1; }

.section--porcelain {
  position: relative;
  background: var(--porcelain);
  color: var(--text-dark);
}

/* ---------- Type utilities ---------- */

.eyebrow {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 9px;
  flex: none;
  background:
    repeating-linear-gradient(90deg,
      currentColor 0 1px, transparent 1px 6px);
  opacity: 0.9;
}

.eyebrow--dark { color: var(--teal); }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 22px;
}

.h2 em, .hero__title em, .surg__title em,
.appr__title em, .visit__cta-copy em {
  font-style: italic;
  color: var(--teal);
}

.section--ink .h2 em,
.hero__title em,
.surg__title em,
.appr__title em {
  color: var(--gold);
}

.lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: clamp(1.14rem, 1.5vw, 1.32rem);
  line-height: 1.58;
  color: var(--muted-dark);
}

.lede--light { color: #C2D6DA; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold);
  color: var(--ink-deep);
  box-shadow: 0 0 0 0 rgba(233, 198, 74, 0.0);
}
.btn--gold:hover {
  background: #F2D468;
  box-shadow: 0 10px 34px -10px rgba(233, 198, 74, 0.55);
}

.btn--ghost {
  border-color: var(--hairline-light);
  color: var(--text-light);
  font-family: var(--f-mono);
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--mist); background: rgba(233,242,242,0.05); }

.btn--ghost-ink {
  border-color: var(--hairline-dark);
  color: var(--text-light);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 15px;
}
.btn--ghost-ink:hover { border-color: var(--mist); background: rgba(233,242,242,0.06); }

.btn--ink { background: var(--ink); color: var(--porcelain); }
.btn--ink:hover { background: var(--ink-soft); }

.btn--sm { padding: 12px 24px; font-size: 15px; }
.btn--lg { padding: 19px 40px; font-size: 17px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  color: var(--text-light);
  transition: background 0.35s, box-shadow 0.35s, padding 0.35s;
}

.nav--scrolled {
  background: rgba(6, 30, 37, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline-light);
  padding-block: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav__wordmark {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav__wordmark em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--gold);
}

.nav__links {
  display: flex;
  gap: clamp(16px, 1.8vw, 26px);
  font-size: 15.5px;
  font-weight: 500;
}

.nav__links a {
  opacity: 0.82;
  transition: opacity 0.2s;
  position: relative;
  padding-block: 4px;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(.2,.7,.3,1);
}

.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 20px; }

.nav__phone {
  font-family: var(--f-mono);
  font-size: 14.5px;
  opacity: 0.9;
}
.nav__phone:hover { opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink-deep);
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu nav { display: grid; gap: 26px; }

.mobile-menu a {
  color: var(--text-light);
  font-family: var(--f-display);
  font-size: 2rem;
}

.mobile-menu .btn { font-family: var(--f-body); font-size: 17px; }

/* ---------- Hero ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 110% at 78% 40%, var(--ink-soft) 0%, var(--ink) 45%, var(--ink-deep) 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: transform;
}

/* legibility: warm ink wash, heavier on the text side */
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 30, 37, 0.92) 0%, rgba(6, 30, 37, 0.72) 42%, rgba(6, 30, 37, 0.30) 100%),
    linear-gradient(0deg, rgba(6, 30, 37, 0.85) 0%, rgba(6, 30, 37, 0) 30%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 140px var(--gutter) 120px;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 9.2vw, 8.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 30px;
  max-width: 9em;
}

.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__in { display: inline-block; will-change: transform; }

/* Near-white and a size up: this is the first thing a patient actually reads. */
.hero__sub {
  margin-top: 34px;
  max-width: 46ch;
  font-size: clamp(1.24rem, 1.6vw, 1.46rem);
  line-height: 1.52;
  color: rgba(240, 248, 248, 0.95);
  text-shadow: 0 1px 24px rgba(6, 30, 37, 0.55);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 52px;
  font-family: var(--f-mono);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 240, 240, 0.92);
}

.hero__trust li { display: flex; align-items: center; gap: 10px; }

.hero__trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.hero__scrollcue {
  position: absolute;
  bottom: 46px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__scrollcue-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  writing-mode: vertical-rl;
}

.hero__scrollcue-track {
  width: 1px;
  height: 64px;
  background: var(--hairline-light);
  position: relative;
  overflow: hidden;
}

.hero__scrollcue-dot {
  position: absolute;
  top: -18px; left: -1px;
  width: 3px; height: 18px;
  background: var(--gold);
  animation: scrollcue 2.2s cubic-bezier(.6,0,.4,1) infinite;
}

@keyframes scrollcue {
  0% { transform: translateY(0); }
  70%, 100% { transform: translateY(88px); }
}

/* ruler tick strip along the hero's bottom edge */
.ruler-edge {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22px;
  z-index: 2;
  background:
    repeating-linear-gradient(90deg, rgba(143,176,182,0.55) 0 1px, transparent 1px 12px) left bottom / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(143,176,182,0.85) 0 1px, transparent 1px 60px) left bottom / 100% 18px no-repeat;
  opacity: 0.5;
}

/* ---------- Our approach ----------
   Was a pinned, scrubbing "millimeter gauge". Replaced with a calm, plain-English
   ladder: gentlest care first, surgery last. No pin, no counter, no ruler. */

.appr {
  background: var(--ink-deep);
  padding-block: clamp(90px, 13vh, 160px);
}

.appr__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-top: 22px;
}

.appr__title em { font-style: italic; color: var(--gold); }

.appr__steps {
  margin-top: clamp(50px, 8vh, 84px);
  display: grid;
  gap: 0;
  counter-reset: none;
}

/* number | headline + copy | the reassuring one-liner, out in the right margin */
.appr__step {
  display: grid;
  grid-template-columns: clamp(72px, 7vw, 110px) minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
  padding-block: clamp(30px, 4.6vh, 48px);
  border-top: 1px solid var(--hairline-light);
}

.appr__step:last-child { border-bottom: 1px solid var(--hairline-light); }

.appr__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.82;
  color: var(--gold);
  opacity: 0.9;
}

.appr__step h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.12;
  color: var(--text-light);
  max-width: 22ch;
}

.appr__body > p {
  margin-top: 16px;
  font-size: clamp(1.08rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: #C2D6DA;
  max-width: 52ch;
}

.appr__note {
  align-self: center;
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 2px solid var(--gold);
  font-family: var(--f-mono);
  font-size: clamp(0.96rem, 1.05vw, 1.05rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--gold);
}

/* ---- old way vs. our way, both at roughly life size ---- */

.appr__compare {
  margin-top: clamp(50px, 8vh, 80px);
  border-radius: 24px;
  background: rgba(16, 64, 75, 0.42);
  box-shadow: inset 0 0 0 1px var(--hairline-light);
  padding: clamp(30px, 4vw, 52px);
}

.appr__compare-head h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.14;
  color: var(--text-light);
}

/* [ label over its bar ] [ what it means, in plain words ] */
.appr__row {
  margin-top: clamp(26px, 3.6vh, 38px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px clamp(24px, 4vw, 56px);
  align-items: center;
}

.appr__row-label { grid-column: 1; align-self: end; }
.appr__bar { grid-column: 1; align-self: start; }
.appr__row-note { grid-column: 2; grid-row: 1 / span 2; }

.appr__row-label {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.appr__row--ours .appr__row-label { color: var(--gold); }

/* Physical CSS units: the bars render at close to true scale on a typical
   display, which is the whole point of the comparison. */
.appr__bar {
  display: block;
  height: 11px;
  border-radius: 3px;
  background: rgba(143, 176, 182, 0.16);
  overflow: hidden;
}

.appr__bar--old { width: 80mm; max-width: 100%; }
.appr__bar--new { width: 3mm; }

.appr__bar i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  transform-origin: left center;
}

.appr__bar--old i { background: rgba(143, 176, 182, 0.55); }

.appr__bar--new i {
  background: var(--gold);
  box-shadow: 0 0 22px rgba(233, 198, 74, 0.7);
}

.appr__row-note {
  font-size: clamp(1.04rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: #C2D6DA;
  max-width: 48ch;
}

.appr__row--ours .appr__row-note { color: var(--text-light); }

.appr__compare-foot {
  margin-top: clamp(26px, 3.4vh, 36px);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist);
}

@media (max-width: 1080px) {
  .appr__step { grid-template-columns: clamp(64px, 8vw, 100px) minmax(0, 1fr); }
  .appr__note { grid-column: 2; align-self: start; margin-top: 20px; }
}

@media (max-width: 780px) {
  .appr__row { grid-template-columns: minmax(0, 1fr); }
  .appr__row-label, .appr__bar, .appr__row-note { grid-column: 1; }
  .appr__row-note { grid-row: auto; }
}

@media (max-width: 640px) {
  .appr__step { grid-template-columns: 1fr; gap: 8px; }
  .appr__note { grid-column: 1; }
  .appr__num { font-size: 2.9rem; line-height: 1; }
}

/* ---------- Treatments (horizontal rail) ---------- */

.treat { padding-block: clamp(90px, 12vh, 150px) 0; }

.treat__head {
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}

.treat__figure {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 70px -35px rgba(6, 30, 37, 0.45);
}

/* Ken Burns: JS scrubs the scale/pan; base state slightly zoomed for headroom */
.kenburns {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

/* ---- rail controls ----
   The rail used to scroll-jack the page (pinned, scrubbed sideways). It is now
   an ordinary horizontal scroller the visitor drives with the arrow buttons,
   a trackpad, a swipe, or the keyboard. */

.treat__railnav {
  margin-top: clamp(34px, 5vh, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.treat__railhint {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

.treat__arrows { display: flex; gap: 12px; }

.railbtn {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--hairline-dark);
  background: #FFFFFF;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(.2,.7,.3,1), opacity 0.25s;
}

.railbtn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.railbtn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--porcelain);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.railbtn:disabled { opacity: 0.3; cursor: default; }

.treat__rail-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline-start: var(--gutter);
  padding-block: clamp(30px, 5vh, 52px) clamp(50px, 8vh, 90px);
}

.treat__rail-wrap::-webkit-scrollbar { display: none; }

.treat__rail-wrap:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -4px;
}

.treat__rail {
  display: flex;
  gap: clamp(18px, 2.4vw, 30px);
  padding-inline: var(--gutter);
  width: max-content;
}

.tcard { scroll-snap-align: start; }

@media (max-width: 640px) {
  .treat__railnav { flex-direction: column; align-items: flex-start; gap: 16px; }
  .railbtn { width: 50px; height: 50px; }
}

.tcard {
  width: clamp(300px, 26vw, 380px);
  min-height: 420px;
  background: var(--ink);
  color: var(--text-light);
  border-radius: 22px;
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s;
}

.tcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(233,242,242,0.09);
  pointer-events: none;
}

.tcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(6, 30, 37, 0.55);
}

.tcard__spec {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.tcard__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  line-height: 1.04;
  margin-top: 18px;
}

.tcard__desc {
  margin-top: 16px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #C2D6DA;
}

.tcard__for {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
}

.tcard--cta {
  background: var(--gold);
  color: var(--ink-deep);
}

.tcard--cta::after { box-shadow: none; }

.tcard--cta .tcard__desc { color: rgba(6, 30, 37, 0.75); }

.tcard--cta .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Conditions ---------- */

.cond {
  padding-block: clamp(90px, 12vh, 150px);
  background: var(--paper);
}

.cond__list {
  margin-top: clamp(40px, 6vh, 70px);
  border-top: 1px solid var(--hairline-dark);
}

.cond__item {
  display: grid;
  grid-template-columns: 130px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px clamp(20px, 4vw, 60px);
  align-items: baseline;
  padding: clamp(24px, 3.4vh, 36px) 10px;
  border-bottom: 1px solid var(--hairline-dark);
  position: relative;
  transition: background 0.35s, padding-left 0.35s;
}

.cond__item:hover {
  background: rgba(21, 122, 140, 0.06);
  padding-left: 22px;
}

.cond__region {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.cond__name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.cond__desc {
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--muted-dark);
  max-width: 46ch;
}

/* ---------- Surgery ---------- */

.surg {
  overflow: hidden;
  background: var(--ink-deep);
}

.surg__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.surg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surg__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,30,37,0.94) 22%, rgba(6,30,37,0.68) 58%, rgba(6,30,37,0.35) 100%);
}

.surg__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(110px, 16vh, 190px);
}

.surg__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.98;
  margin-top: 24px;
}

.surg__points {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.surg__points li {
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(10, 46, 54, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 0 0 1px var(--hairline-light);
  color: #C2D6DA;
  font-size: 1.06rem;
  line-height: 1.55;
}

.surg__points strong {
  color: var(--text-light);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.surg__points strong::before {
  content: "— ";
  color: var(--gold);
}

.surg__more { margin-top: 26px; }

/* ---------- Doctor ---------- */

.doc { padding-block: clamp(90px, 13vh, 160px); }

.doc__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.doc__panel {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 34px 80px -40px rgba(6, 30, 37, 0.5);
}

.doc__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doc__caption {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.doc__text {
  margin-top: 26px;
  font-size: 1.08rem;
  line-height: 1.62;
  color: var(--muted-dark);
  max-width: 56ch;
}

.doc__quote {
  margin-top: 30px;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}

.doc__quote p {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--ink);
}

.doc__creds {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 40px;
}

.doc__creds dt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}

.doc__creds dd { font-size: 1.05rem; color: var(--text-dark); }

/* ---------- Welcome video ---------- */

.welcome {
  position: relative;
  background: var(--paper);
  color: var(--text-dark);
  padding-block: clamp(90px, 12vh, 150px);
}

.welcome__player {
  position: relative;
  margin-top: clamp(36px, 5vh, 56px);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  box-shadow: 0 34px 80px -40px rgba(6, 30, 37, 0.5);
  cursor: pointer;
}

.welcome__player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
}

.welcome__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.welcome__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 18px 50px -12px rgba(6, 30, 37, 0.6);
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), background 0.25s;
}

.welcome__play span {
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--ink-deep);
  margin-left: 6px;
}

.welcome__player:hover .welcome__play { transform: scale(1.08); background: #F2D468; }

.welcome__player.is-playing img,
.welcome__player.is-playing .welcome__play { display: none; }

/* ---------- Generic lite video players (Vimeo) ---------- */

.vplayer {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(120% 130% at 25% 0%, var(--ink-soft) 0%, var(--ink-deep) 70%);
  cursor: pointer;
}

.vplayer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.vplayer__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vplayer__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(6, 30, 37, 0.55);
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), background 0.25s;
  z-index: 1;
}

.vplayer__play span {
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--ink-deep);
  margin-left: 4px;
}

.vplayer:hover .vplayer__play,
.vplayer:hover .welcome__play { transform: scale(1.08); background: #F2D468; }

.vplayer.is-playing .vplayer__poster,
.vplayer.is-playing .vplayer__btn { display: none; }

.vcard__label {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.vcard__label--light { color: var(--mist); }

.media { margin-top: clamp(44px, 7vh, 64px); }

.media__grid,
.rev__videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  margin-top: 24px;
}

.rev__videos { margin-top: clamp(36px, 5vh, 48px); }

@media (max-width: 920px) {
  .media__grid, .rev__videos { grid-template-columns: 1fr; }
}

/* ---------- Reviews ---------- */

.rev { padding-block: clamp(90px, 13vh, 160px); }

.rev__google {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
}

.rev__stars {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.22em;
  line-height: 1;
}

.rev__gtext { color: #C2D6DA; font-size: 1.08rem; }

.rev__glink {
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--teal-bright);
}
.rev__glink:hover { color: var(--gold); }

.rev__qstars {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
}

.rev__stack {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid;
  gap: clamp(36px, 6vh, 56px);
}

.rev__quote {
  border-top: 1px solid var(--hairline-light);
  padding-top: clamp(28px, 4vh, 40px);
  max-width: 900px;
}

.rev__quote:nth-child(2) { margin-left: clamp(0px, 8vw, 120px); }
.rev__quote:nth-child(3) { margin-left: clamp(0px, 16vw, 240px); }

.rev__quote p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--text-light);
}

.rev__quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Philosophy: insurance-independent ---------- */

.phil {
  background: var(--ink-deep);
  padding-block: clamp(100px, 14vh, 170px);
}

.phil__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-top: 24px;
}

.phil__title em {
  font-style: italic;
  color: var(--gold);
}

.phil__points {
  margin-top: clamp(44px, 7vh, 70px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.phil__points li {
  border-top: 1px solid var(--hairline-light);
  padding-top: 24px;
}

.phil__points h3 {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--text-light);
}

.phil__points h3::before {
  content: "— ";
  color: var(--gold);
}

.phil__points p {
  margin-top: 10px;
  font-size: 1.06rem;
  line-height: 1.55;
  color: #C2D6DA;
  max-width: 38ch;
}

@media (max-width: 720px) {
  .phil__points { grid-template-columns: 1fr; }
}

/* ---------- Visit ---------- */

.visit { padding-block: clamp(90px, 13vh, 160px) 70px; }

.visit__figure {
  margin-top: clamp(36px, 5vh, 56px);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: 0 30px 70px -35px rgba(6, 30, 37, 0.4);
}

.visit__grid {
  margin-top: clamp(28px, 4vh, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.visit__card {
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: inset 0 0 0 1px var(--hairline-dark);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit__card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.7rem;
}

.visit__addr { color: var(--muted-dark); font-size: 1.08rem; }

.visit__note { color: var(--muted-dark); font-size: 1.02rem; line-height: 1.55; }

.visit__map {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
}
.visit__map:hover { color: var(--ink); }

.visit__card--info { background: rgba(21, 122, 140, 0.07); }

.fn { color: var(--teal); }

.visit__cta {
  margin-top: clamp(40px, 7vh, 70px);
  border-radius: 26px;
  background: var(--ink);
  color: var(--text-light);
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}

.visit__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 140% at 85% 20%, rgba(21,122,140,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.visit__cta-copy h3 {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.06;
}

.visit__cta-copy em { font-style: italic; color: var(--gold); }

.visit__cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.visit__disclaimer {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted-dark);
  font-family: var(--f-mono);
}

/* ---------- Footer ---------- */

.footer { background: var(--ink-deep); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(50px, 8vh, 80px) 30px;
  border-top: 1px solid var(--hairline-light);
}

.footer__logo { height: 44px; width: auto; margin-bottom: 18px; }

.footer__brand p { color: #C2D6DA; font-size: 1.02rem; line-height: 1.6; }

.footer__nav { display: grid; gap: 13px; align-content: start; }

.footer__nav a { color: #C2D6DA; font-size: 1.05rem; }
.footer__nav a:hover { color: var(--text-light); }

.footer__contact { display: grid; gap: 13px; align-content: start; }

.footer__contact a {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: #C2D6DA;
}
.footer__contact a:hover { color: var(--gold); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 30px;
  padding-block: 22px 34px;
  color: rgba(143, 176, 182, 0.75);
  font-size: 0.9rem;
}
.footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover { color: var(--gold); }

/* ---------- Reveal defaults (JS enhances) ---------- */

.reveal { opacity: 1; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cond__item { grid-template-columns: 110px minmax(0, 1fr); }
  .cond__desc { grid-column: 2; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero__inner { padding-top: 120px; }

  .treat__head { grid-template-columns: 1fr; }
  .treat__figure { max-width: 560px; }

  .visit__figure { aspect-ratio: 16 / 9; }

  .doc__grid { grid-template-columns: 1fr; }
  .doc__figure { max-width: 440px; }

  .visit__grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }

  .rev__quote:nth-child(2), .rev__quote:nth-child(3) { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }

  .hero__trust { gap: 12px 22px; font-size: 13.5px; }

  .cond__item { grid-template-columns: 1fr; }
  .cond__region { margin-bottom: 2px; }

  .doc__creds { grid-template-columns: 1fr; }

  .visit__cta-actions { width: 100%; }
  .visit__cta-actions .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__scrollcue-dot { animation: none; }
}

/* the doctor portrait is a play-once video; match the still it replaced */
.doc__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* ---------- ABMSP seal ----------
   Lives on porcelain, so the transparent PNG needs no plate behind it. The mark
   is ~55% dark pixels — do not move it onto an ink section without one. */

.doc__seal {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.doc__seal img {
  width: 78px;
  height: auto;
  flex: none;
}

.doc__seal p {
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--muted-dark);
}

.doc__seal strong { color: var(--ink); font-weight: 600; }

.doc__seal span {
  display: block;
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

@media (max-width: 560px) {
  .doc__seal img { width: 64px; }
  .doc__seal p { font-size: 0.98rem; }
}
