:root {
  --paper: #f6f6f3;
  --mist: #e9e9e5;
  --porcelain: #fbfbf8;
  --ink: #080808;
  --muted: #666867;
  --navy: #171717;
  --space: #050505;
  --teal: #f4f4f1;
  --teal-dark: #202020;
  --coral: #a7a7a2;
  --gold: #d8d8d1;
  --white: #ffffff;
  --blue: #c9c9c3;
  --line: rgba(8, 8, 8, 0.13);
  --glass: rgba(255, 255, 255, 0.12);
  --shadow: 0 26px 80px rgba(0, 19, 31, 0.24);
  --shadow-soft: 0 14px 42px rgba(0, 19, 31, 0.14);
  --radius: 8px;
  --container: 1160px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 8, 8, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f6f6f3 0%, #eeeeea 42%, #fbfbf8 100%);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--ink);
  font-family: Raleway, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid rgba(8, 8, 8, 0.72);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 2rem, 1220px);
  margin: 1rem auto 0;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(5, 5, 5, 0.62);
  color: white;
  box-shadow: 0 18px 54px rgba(0, 13, 24, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), rgba(128, 128, 128, 0.36), transparent);
  opacity: 0.66;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.86);
  color: white;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
}

.brand span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.site-nav a {
  position: relative;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
  color: currentColor;
  opacity: 0.88;
  transition: background 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  opacity: 1;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.instagram-link,
.language-option,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  border: 0;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.instagram-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
}

.instagram-link svg {
  width: 22px;
  height: 22px;
}

.language-switch {
  display: inline-flex;
  padding: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .instagram-link,
.site-header.is-scrolled .language-switch,
.site-header.is-scrolled .language-option {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.language-option {
  min-width: 42px;
  height: 34px;
  border-radius: 6px;
  opacity: 0.72;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.language-option svg {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.16);
}

.language-option.is-active {
  background: var(--teal);
  color: var(--space);
  opacity: 1;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.5) 42%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translateX(130%);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--space);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button-primary:hover {
  background: linear-gradient(135deg, #ffffff, #e2e2dc);
}

.button-secondary {
  background: rgba(2, 13, 22, 0.34);
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.button-small {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  background: var(--teal);
  color: var(--space);
}

.site-header.is-scrolled .button-small {
  background: var(--teal);
  color: var(--space);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.nav-toggle-line {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.25;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle-line-top {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle-line-bottom {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 84vh;
  min-height: 84svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(15, 15, 15, 0.74) 46%, rgba(30, 30, 30, 0.24)),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    url("../images/instagram-soft-opening-space.jpg");
  background-position: center;
  background-size: cover, 58px 58px, 58px 58px, cover;
  transform: scale(1.04);
  animation: heroDrift 16s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.14) 10.5%, transparent 11%),
    linear-gradient(60deg, transparent 70%, rgba(180, 180, 175, 0.16) 70.5%, transparent 71%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 7px);
  mix-blend-mode: screen;
  opacity: 0.58;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background: linear-gradient(0deg, var(--paper), rgba(247, 251, 255, 0));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 10rem 0 3.5rem;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 3;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: 4.9rem;
  font-weight: 900;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.18);
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.75rem;
  font-weight: 900;
}

h3 {
  font-size: 1.25rem;
  font-weight: 900;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.proof-strip {
  position: relative;
  z-index: 2;
  padding: 1rem;
  background: var(--space);
  color: white;
  box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.22);
  scroll-margin-top: 6.5rem;
}

.proof-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--container));
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 34%, rgba(255, 255, 255, 0.04)),
    var(--space);
  overflow: hidden;
}

.metric {
  min-height: 132px;
  padding: 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  max-width: 12ch;
  font-size: 1.55rem;
  line-height: 1.08;
  color: var(--white);
}

.metric span {
  display: block;
  max-width: 28ch;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  font-weight: 700;
}

.section {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 6.5rem 0;
  scroll-margin-top: 6.5rem;
}

.section-grid,
.doctor-layout,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.section-copy p,
.doctor-copy p,
.gallery-copy p,
.contact-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.08rem;
}

.video-shell,
.doctor-photo,
.map-panel,
.gallery-main {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(8, 8, 8, 0.14);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--space);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
  text-align: left;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(8, 8, 8, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 32px rgba(0, 19, 31, 0.06);
  backdrop-filter: blur(10px);
}

.feature-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--space);
  box-shadow: inset 0 0 0 7px white, 0 0 18px rgba(0, 0, 0, 0.16);
  border: 2px solid var(--space);
}

.feature-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.feature-item span {
  color: var(--muted);
}

.doctor-section {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.68), transparent 30%),
    linear-gradient(300deg, rgba(0, 0, 0, 0.08), transparent 34%),
    var(--mist);
}

.doctor-layout {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.doctor-photo {
  max-width: 520px;
}

.doctor-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0;
}

.doctor-tags span,
.treatment-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-self: start;
  width: max-content;
  min-height: 30px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-dark);
  border: 1px solid rgba(8, 8, 8, 0.16);
  font-size: 0.78rem;
  font-weight: 850;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-button:hover {
  transform: translateY(-2px);
}

.filter-button.is-active {
  background: var(--space);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.14);
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.treatment-card,
.team-card,
.contact-item {
  border: 1px solid rgba(8, 28, 42, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 28px rgba(19, 45, 63, 0.08);
  backdrop-filter: blur(10px);
}

.treatment-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.treatment-card:hover,
.treatment-card:focus-visible {
  transform: translateY(-6px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  border-color: rgba(8, 8, 8, 0.28);
  box-shadow: var(--shadow-soft);
}

.treatment-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.treatment-card-content {
  display: grid;
  flex: 1;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.85rem;
  padding: 1.25rem;
}

.treatment-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.12;
}

.treatment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.card-action {
  align-self: end;
  margin-top: 0.15rem;
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-section {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 3rem;
  align-items: center;
}

.gallery-stage {
  min-width: 0;
}

.gallery-main {
  margin: 0;
  background: var(--space);
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-main figcaption {
  padding: 0.85rem 1rem;
  color: var(--white);
  background: var(--space);
  font-weight: 800;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  padding: 0;
}

.gallery-thumb.is-active {
  border-color: var(--white);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.16);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.flow-section {
  width: 100%;
  max-width: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 28%, rgba(140, 140, 135, 0.12) 76%, transparent),
    var(--space);
  background-size: 54px 54px, 54px 54px, auto, auto;
  color: white;
}

.flow-section .section-heading,
.flow-tabs {
  width: min(100% - 2rem, var(--container));
  margin-left: auto;
  margin-right: auto;
}

.flow-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.flow-tabs {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 1rem;
}

.tab-list {
  display: grid;
  gap: 0.5rem;
}

.tab-button {
  min-height: 62px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tab-button:hover {
  transform: translateX(4px);
}

.tab-button.is-active {
  background: var(--white);
  color: var(--space);
}

.tab-panel {
  min-height: 270px;
  padding: 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tab-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.tab-panel ul {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.tab-panel li {
  padding-left: 1.3rem;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.tab-panel li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.team-card {
  overflow: hidden;
  transition: transform 190ms ease, box-shadow 190ms ease;
  transform-style: preserve-3d;
}

.team-card:hover {
  transform: translateY(-5px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  box-shadow: var(--shadow-soft);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center 18%;
}

.team-card-content {
  padding: 1rem;
}

.team-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-section {
  align-items: stretch;
}

.contact-section .button-secondary {
  background: white;
  color: var(--ink);
  border-color: rgba(8, 28, 42, 0.14);
}

.contact-copy {
  align-self: center;
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-item {
  padding: 1rem;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item span {
  color: var(--muted);
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

.floating-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #050505;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
}

.floating-whatsapp svg {
  width: 28px;
  height: 28px;
}

.treatment-modal {
  width: min(92vw, 880px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: rgba(248, 252, 255, 0.96);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.treatment-modal::backdrop {
  background: rgba(2, 7, 13, 0.72);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-layout {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
}

.modal-layout img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.modal-copy {
  padding: 2rem;
}

.modal-copy p {
  color: var(--muted);
}

.modal-copy ul {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1.2rem 0;
  list-style: none;
}

.modal-copy li {
  padding-left: 1.25rem;
  position: relative;
}

.modal-copy li::before {
  content: "";
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--space);
}

.site-footer {
  padding: 2rem 1rem 6rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(1.2%, -0.8%, 0);
  }
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .brand span {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-open .site-nav,
  .nav-open .header-actions {
    display: flex;
  }

  .nav-open .site-nav {
    flex-direction: column;
    align-items: stretch;
    padding-top: 0.8rem;
  }

  .nav-open .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    padding-top: 0.4rem;
  }

  h1 {
    font-size: 3.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .treatment-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-inner {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section-grid,
  .doctor-layout,
  .gallery-section,
  .contact-section,
  .flow-tabs {
    grid-template-columns: 1fr;
  }

  .doctor-photo {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 1rem);
    margin-top: 0.5rem;
  }

  .hero {
    min-height: 82vh;
    min-height: 82svh;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-inner {
    padding: 8.5rem 0 2.25rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy,
  .section-copy p,
  .doctor-copy p,
  .gallery-copy p,
  .contact-copy p,
  .section-heading p {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .treatment-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 4.5rem 0;
  }

  .metric {
    min-height: auto;
    padding: 1.1rem;
  }

  .metric strong {
    max-width: none;
    font-size: 1.35rem;
  }

  .metric span {
    max-width: none;
  }

  .modal-layout {
    grid-template-columns: 1fr;
  }

  .modal-layout img {
    min-height: 260px;
    max-height: 320px;
  }

  .map-panel iframe {
    min-height: 360px;
  }
}

@supports (-webkit-touch-callout: none) {
  .site-header {
    background: rgba(5, 5, 5, 0.88);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .hero-bg {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .hero::before {
    mix-blend-mode: normal;
    opacity: 0.42;
  }

  .hero-content.reveal.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .hero-content,
  .hero-content.reveal,
  .hero-content.reveal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
