body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: var(--body);
}

html:has(body.home-snap) {
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
}

body.home-snap main > section {
  scroll-snap-align: start;
  padding-top: var(--space-8);
}

body.home-snap main > section > .section-snap-end {
  display: block;
  width: 100%;
  height: 1px;
  scroll-snap-align: end;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 12%), transparent 42%);
  opacity: 0.12;
  z-index: 30;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 999;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
}

.page-preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 100%);
  color: #f2f5f6;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  display: block;
  width: min(220px, 55vw);
  height: auto;
  margin: 0 auto var(--space-4);
  filter: brightness(0) invert(1);
}

.preloader-bar {
  width: min(260px, 70vw);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 25%);
}

.preloader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left;
  animation: preloader-sweep 1s ease-in-out infinite;
}

@keyframes preloader-sweep {
  0% {
    transform: scaleX(0.2);
    opacity: 0.6;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
  100% {
    transform: scaleX(0.25);
    opacity: 0.65;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgb(246 248 249 / 82%);
  border-bottom: 1px solid rgb(207 213 217 / 72%);
  transition: transform 0.3s ease;
}

.site-header.header--hidden {
  transform: translateY(-110%);
}

.nav-shell {
  width: var(--container);
  margin-inline: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.nav-links {
  position: fixed;
  inset: var(--header-height) 0 auto;
  transform: translateY(-130%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.25s ease;
  background: rgb(246 248 249 / 95%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-links ul {
  width: var(--container);
  margin-inline: auto;
  padding: var(--space-6) 0;
  display: grid;
  gap: var(--space-4);
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
}

.nav-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-right > .btn-primary {
  white-space: nowrap;
}

.menu-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(125deg, var(--primary-deep), var(--primary));
  box-shadow: var(--shadow-card);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.nav-link:focus-visible,
.icon-chip:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* =====================
   VIDEO HERO
   ===================== */
.video-hero {
  position: relative;
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}

.video-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.92) contrast(1.05) brightness(1.02);
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgb(13 13 10 / 0.54) 0%, rgb(13 13 10 / 0.29) 50%, rgb(13 13 10 / 0.44) 100%);
  z-index: 1;
}

.video-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: var(--container);
  padding: var(--space-12) 0 calc(var(--space-12) + 80px);
}

.video-hero-eyebrow {
  font-family: var(--font-body);
  letter-spacing: 0.22em;
  font-size: 1rem;
  text-transform: uppercase;
  color: rgb(255 255 255 / 85%);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 10px rgb(0 0 0 / 55%);
}

.video-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  color: #fff;
  text-shadow: 0 4px 24px rgb(0 0 0 / 55%);
}

.video-hero-title em {
  font-style: italic;
  font-size: 0.82em;
  color: var(--accent);
}

.video-hero-sub {
  max-width: 54ch;
  margin: 0 auto var(--space-8);
  color: rgb(255 255 255 / 92%);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  text-shadow: 0 2px 14px rgb(0 0 0 / 50%);
}

.new-patient-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: var(--container);
  margin: 0 auto var(--space-12);
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 5vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgb(107 82 65 / 36%);
  border-radius: var(--radius-lg);
  background: linear-gradient(110deg, var(--primary-deep), var(--primary));
  box-shadow: 0 22px 42px rgb(63 48 38 / 22%);
  color: #fff;
}

.faq-banner {
  width: 100%;
  margin: 0 0 var(--space-3);
}

.new-patient-banner::after {
  position: absolute;
  width: 13rem;
  height: 13rem;
  right: -4rem;
  top: -6rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5rem rgb(255 255 255 / 5%), 0 0 0 3rem rgb(255 255 255 / 3%);
  content: "";
}

.new-patient-banner-copy {
  position: relative;
  z-index: 1;
}

.new-patient-banner-label {
  display: block;
  margin-bottom: var(--space-2);
  color: #dbe8c9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.new-patient-banner h2,
.new-patient-banner h3 {
  margin-bottom: var(--space-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.7rem);
  line-height: 1.05;
}

.faq-list .new-patient-banner p {
  color: #fff;
}

.new-patient-banner > a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  white-space: nowrap;
}

.new-patient-banner > a span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.new-patient-banner > a:hover span,
.new-patient-banner > a:focus-visible span {
  transform: translate(3px, -3px);
}

.btn-hero-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 8px 28px rgb(63 48 38 / 42%);
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-hero-secondary {
  color: #fff;
  background: rgb(255 255 255 / 14%);
  border: 1.5px solid rgb(255 255 255 / 55%);
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus-visible {
  background: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-hero-secondary:hover,
.btn-hero-secondary:focus-visible {
  background: rgb(255 255 255 / 24%);
  transform: translateY(-2px);
}

.video-hero-kpis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgb(49 40 33 / 68%);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgb(255 255 255 / 12%);
  display: flex;
  justify-content: center;
}

.video-hero-kpi {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: var(--space-5) var(--space-6);
  border-right: 1px solid rgb(255 255 255 / 12%);
}

.video-hero-kpi:last-child {
  border-right: 0;
}

.video-hero-kpi strong {
  font-family: var(--font-display);
  display: block;
  font-size: 1.7rem;
  color: #fff;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.video-hero-kpi span {
  font-size: 0.8rem;
  color: rgb(255 255 255 / 65%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.video-hero-kpi-patients strong {
  color: #dbe8c9;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.video-hero-kpi-patients {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: background 0.25s ease;
}

.video-hero-kpi-patients:hover,
.video-hero-kpi-patients:focus-visible {
  background: rgb(255 255 255 / 10%);
}

.video-hero-kpi-patients:focus-visible {
  outline: 2px solid #dbe8c9;
  outline-offset: -4px;
}

.scroll-hint {
  position: absolute;
  bottom: calc(80px + var(--space-5));
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgb(255 255 255 / 55%);
  animation: hint-bounce 2.2s ease-in-out infinite;
}

@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* =====================
   HERO ACTIONS (shared)
   ===================== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.section {
  width: var(--container);
  margin-inline: auto;
  padding: var(--space-16) 0;
}

.section-head {
  max-width: 64ch;
  margin-bottom: var(--space-8);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.06;
  margin-bottom: var(--space-3);
}

#services-title {
  scroll-margin-top: calc(var(--header-height) + var(--space-4));
}

.section-head p {
  color: var(--text-muted);
}

.service-grid,
.feature-grid,
.testimonial-grid,
.gallery-grid {
  display: grid;
  gap: var(--space-4);
}

.doctor-showcase-grid {
  display: grid;
  gap: var(--space-5);
}

.doctor-showcase-actions {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

.doctor-showcase-actions .btn {
  min-width: 220px;
}

.doctor-profile-card {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 4% 10%, rgb(199 173 143 / 15%), transparent 26%),
    radial-gradient(circle at 96% 85%, rgb(107 82 65 / 8%), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow-card);
}

.doctor-portrait {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgb(107 82 65 / 18%);
  background: linear-gradient(150deg, rgb(229 236 239), rgb(205 186 166));
}

.doctor-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor-role {
  margin-bottom: var(--space-2);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.doctor-profile-content h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.doctor-profile-content > p:last-of-type {
  color: var(--text-muted);
}

.doctor-stats {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
}

.doctor-stats li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: var(--space-3);
  padding: 0.72rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgb(107 82 65 / 16%);
  background: rgb(255 255 255 / 74%);
}

.doctor-stats strong {
  min-width: 84px;
  color: var(--primary-deep);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
}

.doctor-stats span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--text-muted);
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  margin-bottom: var(--space-3);
}

.about-grid,
.contact-grid {
  display: grid;
  gap: var(--space-6);
}

.contact-section-head {
  display: grid;
  gap: var(--space-3);
  align-items: end;
}

.section-eyebrow,
.form-shell-kicker,
.contact-card-label {
  margin: 0 0 var(--space-2);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-section-head > p {
  max-width: 42ch;
  color: var(--text-muted);
}

.contact-details {
  display: grid;
  gap: var(--space-4);
}

.contact-actions {
  display: grid;
}

.contact-action {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
  min-height: 92px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -20px rgb(35 30 26 / 60%);
}

.contact-action-primary {
  background: var(--primary-deep);
  color: #fff;
}

.contact-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
}

.contact-action-icon svg {
  width: 21px;
  height: 21px;
}

.contact-action-copy {
  display: grid;
  gap: 0.15rem;
}

.contact-action-copy > span {
  color: rgb(255 255 255 / 70%);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-action-copy strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
}

.contact-action-arrow {
  align-self: start;
  color: rgb(255 255 255 / 72%);
  font-size: 1.25rem;
}

.contact-info-grid {
  display: grid;
  gap: var(--space-3);
}

.contact-info-card {
  min-height: 180px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.contact-info-card address {
  margin: 0;
  color: var(--text);
  font-style: normal;
}

.contact-inline-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: var(--space-4);
  color: var(--primary-deep);
  font-weight: 700;
  text-decoration: none;
}

.contact-inline-link:hover,
.contact-inline-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-registration {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.contact-hours {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgb(63 48 38 / 18%);
}

.contact-hours li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-hours li span {
  color: var(--text);
  font-weight: 700;
}

.contact-hours time {
  text-align: right;
}

.media-panel {
  border-radius: var(--radius-xl);
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-soft);
  box-shadow: var(--shadow-soft);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: 0.9rem;
}

.technology-grid {
  display: grid;
  gap: var(--space-4);
}

.technology-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgb(199 173 143 / 25%), transparent 45%),
    var(--surface);
  box-shadow: var(--shadow-card);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.technology-card::before {
  content: '';
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: rgb(107 82 65 / 8%);
  transition: transform 0.35s ease;
}

.technology-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-deep), var(--primary));
  color: #fff;
}

.technology-icon svg {
  width: 28px;
  height: 28px;
}

.technology-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-1);
}

.technology-card-label {
  color: var(--primary-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.technology-card strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
}

.technology-card-content > span:last-child {
  color: var(--text-muted);
}

.technology-arrow {
  position: absolute;
  z-index: 1;
  right: var(--space-5);
  top: var(--space-5);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-deep);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.technology-card:hover,
.technology-card:focus-visible {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 24px 36px -26px rgb(54 43 34 / 45%);
}

.technology-card:hover::before,
.technology-card:focus-visible::before {
  transform: scale(1.25);
}

.technology-card:hover .technology-arrow,
.technology-card:focus-visible .technology-arrow {
  transform: translate(3px, -3px);
  background: var(--primary-deep);
  color: #fff;
}

.technology-page {
  width: var(--container);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 9vw, 7rem);
}

.technology-page-hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.technology-page-copy {
  max-width: 620px;
}

.technology-page-eyebrow {
  margin-bottom: var(--space-4);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.technology-page-copy h1 {
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.technology-page-copy > p:not(.technology-page-eyebrow) {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.technology-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.technology-page-media {
  position: relative;
  z-index: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(0.65rem, 1.5vw, 1rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgb(232 237 239 / 80%), rgb(248 249 249 / 96%));
  box-shadow: 0 24px 55px rgb(33 42 45 / 14%), 0 5px 16px rgb(33 42 45 / 8%);
}

.technology-page-media-dark {
  display: flex;
  align-items: center;
  aspect-ratio: 4 / 3;
}

.technology-page-media.technology-page-media-dark img {
  height: 100%;
  background: #000;
  object-fit: contain;
}

.before-after-media {
  background: linear-gradient(145deg, #201b18, #0f0e0d);
}

.before-after-visual {
  position: absolute;
  inset: clamp(0.65rem, 1.5vw, 1rem);
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 0.35rem);
  background: #0b0a09;
  box-shadow: 0 8px 20px rgb(20 27 29 / 12%), 0 0 26px 4px rgb(107 82 65 / 12%);
}

.before-after-visual .before-after-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
  filter: none;
}

.before-after-image-before {
  z-index: 1;
  animation: before-after-before 9s ease-in-out infinite;
  transform-origin: center;
}

.before-after-image-after {
  z-index: 2;
  animation: before-after-after 9s ease-in-out infinite;
  transform-origin: center;
}

.before-after-label {
  position: absolute;
  z-index: 3;
  right: var(--space-4);
  bottom: var(--space-4);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  background: rgb(19 16 14 / 76%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.before-after-label-before {
  animation: before-after-before 9s ease-in-out infinite;
}

.before-after-label-after {
  animation: before-after-after 9s ease-in-out infinite;
}

@keyframes before-after-before {
  0%,
  8% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.95) saturate(0.95);
  }

  38% {
    opacity: 1;
    transform: scale(1.18);
    filter: brightness(1) saturate(1);
  }

  48% {
    opacity: 0.45;
    transform: scale(1.26);
    filter: brightness(0.58) saturate(0.72);
  }

  56%,
  88% {
    opacity: 0;
    transform: scale(1.3);
    filter: brightness(0.5) saturate(0.7);
  }

  96% {
    opacity: 0.2;
    transform: scale(1.04);
    filter: brightness(0.9) saturate(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(0.95) saturate(0.95);
  }
}

@keyframes before-after-after {
  0%,
  48% {
    opacity: 0;
    transform: scale(1.12);
    filter: brightness(0.85) saturate(0.9);
  }

  56%,
  86% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) saturate(1);
  }

  94% {
    opacity: 0.35;
    transform: scale(1.08);
    filter: brightness(0.9) saturate(0.92);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
    filter: brightness(0.85) saturate(0.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .before-after-image-before,
  .before-after-label-before {
    animation: none;
    opacity: 0;
    transform: scale(1);
  }

  .before-after-image-after,
  .before-after-label-after {
    animation: none;
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

.technology-page-media::before {
  position: absolute;
  z-index: -1;
  inset: 0.85rem -0.45rem -0.45rem 0.85rem;
  border-radius: var(--radius-xl);
  background: rgb(107 82 65 / 42%);
  content: "";
  filter: blur(18px);
  opacity: 0.75;
}

.technology-page-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 0.35rem);
  filter: brightness(1.14) saturate(1.05);
  box-shadow: 0 8px 20px rgb(20 27 29 / 12%), 0 0 26px 4px rgb(107 82 65 / 12%);
}

.technology-page-media figcaption {
  padding: var(--space-4) var(--space-2) var(--space-1);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.technology-detail-grid,
.technology-gallery-grid {
  display: grid;
  gap: var(--space-4);
}

.technology-gallery-grid {
  margin-top: var(--space-4);
}

.technology-gallery-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.technology-gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.14) saturate(1.05);
}

.technology-gallery-card figcaption {
  padding: var(--space-4);
  color: var(--text-muted);
}

.technology-note {
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.tech-tab {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tech-tab:hover {
  border-color: var(--primary);
  color: var(--primary-deep);
}

.tech-tab.is-active {
  border-color: var(--primary-deep);
  background: var(--primary-deep);
  color: #fff;
}

.tech-tab-panels {
  position: relative;
}

.tech-tab-panel {
  display: none;
  gap: var(--space-5);
}

.tech-tab-panel.is-active {
  display: grid;
}

.tech-tab-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgb(232 237 239 / 80%), rgb(248 249 249 / 96%));
  box-shadow: var(--shadow-soft);
}

.tech-tab-media img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.14) saturate(1.05);
}

.tech-tab-media-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background:
    linear-gradient(135deg, transparent 48%, rgb(107 82 65 / 8%) 48% 52%, transparent 52%),
    linear-gradient(145deg, rgb(232 237 239 / 92%), rgb(248 249 249 / 98%));
  color: var(--primary-deep);
  text-align: center;
}

.tech-tab-placeholder-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.tech-tab-placeholder-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-tab-content {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}

.tech-tab-content h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
}

.tech-tab-points {
  display: grid;
  gap: var(--space-2);
}

.tech-tab-points li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.tech-tab-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.tech-tab-content .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .technology-page-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .technology-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .tech-tab-panel.is-active {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }
}

.team-map {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgb(245 248 250 / 95%), rgb(230 236 240 / 85%));
  box-shadow: var(--shadow-soft);
}

.team-map-viewport {
  position: relative;
  isolation: isolate;
}

.team-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.team-image-blurred {
  position: relative;
  z-index: 1;
}

.team-image-sharp {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.team-tooltip {
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  transform: translate3d(0, 0, 0);
  pointer-events: none;
  background: rgb(20 21 23 / 90%);
  color: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 16px 24px -16px rgb(0 0 0 / 48%);
}

.team-page-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgb(199 173 143 / 27%), transparent 34%),
    linear-gradient(145deg, rgb(232 237 239 / 80%), rgb(248 249 249 / 96%));
}

.team-page-shell {
  width: var(--container);
  min-height: min(760px, calc(100dvh - var(--header-height)));
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.team-page-intro {
  max-width: 620px;
}

.team-page-eyebrow {
  margin-bottom: var(--space-4);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.team-page-intro h1 {
  max-width: 11ch;
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.team-page-intro h1 em {
  color: var(--primary);
}

.team-page-intro > p:not(.team-page-eyebrow),
.team-cta p:not(.team-page-eyebrow) {
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.team-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.team-page-portrait-placeholder {
  position: relative;
  min-height: 440px;
  display: grid;
  align-content: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgb(107 82 65 / 18%);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 68% 32%, rgb(255 255 255 / 72%) 0 3%, transparent 3.2%),
    radial-gradient(circle at 32% 66%, rgb(255 255 255 / 52%) 0 2%, transparent 2.2%),
    linear-gradient(145deg, rgb(220 228 231 / 88%), rgb(202 183 163 / 75%));
  box-shadow: 0 34px 60px -35px rgb(41 33 27 / 50%);
  color: var(--primary-deep);
  text-align: center;
}

.team-page-portrait-placeholder::before {
  content: 'TÍM';
  position: absolute;
  right: -0.1em;
  bottom: -0.28em;
  color: rgb(107 82 65 / 12%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 1;
}

.team-page-portrait-count,
.team-page-portrait-copy,
.team-page-portrait-smile {
  position: relative;
  z-index: 1;
}

.team-page-portrait-count {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  line-height: 0.85;
}

.team-page-portrait-copy {
  margin-top: var(--space-3);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-page-portrait-smile {
  position: absolute;
  right: 13%;
  top: 13%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-deep);
  color: #fff;
  font-size: 2rem;
  transform: rotate(-14deg);
}

.team-page-photo {
  position: relative;
  margin: 0;
  isolation: isolate;
}

.team-page-photo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -6% 7% 7% -7%;
  border-radius: var(--radius-xl);
  background: var(--primary-deep);
  transform: rotate(-4deg);
}

.team-page-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 75%;
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 60px -35px rgb(41 33 27 / 50%);
}

.team-page-photo figcaption {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: grid;
  gap: 0.2rem;
  max-width: 240px;
  padding: var(--space-4);
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: var(--radius-md);
  background: rgb(30 27 24 / 78%);
  backdrop-filter: blur(10px);
  color: #fff;
}

.team-page-photo figcaption span {
  color: rgb(255 255 255 / 72%);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-page-photo figcaption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
}

.team-members-section {
  padding-top: 1rem;
}

.team-members-grid {
  display: grid;
  gap: var(--space-4);
}

.team-member-photo {
  aspect-ratio: 2236 / 2885;
  overflow: hidden;
  background: var(--surface-soft);
}

.team-member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member-card:not(.team-member-card-dentist) .team-member-photo img {
  filter: brightness(1.08);
}

.team-member-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.team-member-photo-placeholder {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, transparent 48%, rgb(255 255 255 / 28%) 48% 52%, transparent 52%),
    linear-gradient(135deg, rgb(196 208 211), rgb(217 198 177));
  color: var(--primary-deep);
}

.team-member-photo-placeholder::after {
  content: 'FOTO';
  position: absolute;
  right: -0.1rem;
  bottom: -1rem;
  color: rgb(107 82 65 / 11%);
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
}

.team-member-photo-placeholder span {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(107 82 65 / 22%);
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.team-member-copy {
  padding: var(--space-3) var(--space-5) var(--space-5);
}

.team-member-copy h3 {
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.team-member-copy p {
  color: var(--text-muted);
}

.team-values-section {
  padding-top: clamp(5rem, 12vw, 10rem);
}

.team-values-grid {
  display: grid;
  gap: var(--space-4);
}

.team-value-card {
  min-height: 250px;
  padding: var(--space-6);
  border-top: 2px solid var(--accent-deep);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.team-value-number {
  display: block;
  margin-bottom: var(--space-7);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.team-value-card h3 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.team-value-card p {
  color: var(--text-muted);
}

.team-cta {
  width: var(--container);
  margin: var(--space-8) auto clamp(4rem, 9vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: var(--space-6);
  align-items: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(125deg, var(--primary-deep), var(--primary));
  color: #fff;
}

.team-cta .team-page-eyebrow,
.team-cta p:not(.team-page-eyebrow) {
  color: rgb(255 255 255 / 78%);
}

.team-cta h2 {
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.05;
}

.team-cta .btn-primary {
  justify-self: start;
  color: var(--primary-deep);
  background: #fff;
}

.pricing-shell {
  display: grid;
  gap: var(--space-4);
}

.pricing-group h3 {
  margin-bottom: var(--space-4);
}

.pricing-list {
  display: grid;
  gap: var(--space-2);
}

.pricing-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3);
  align-items: baseline;
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed rgb(63 48 38 / 22%);
}

.pricing-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pricing-list span {
  color: var(--text-muted);
}

.pricing-list strong {
  color: var(--primary-deep);
  white-space: nowrap;
}

.pricing-note {
  margin-top: var(--space-5);
  color: var(--text-muted);
  max-width: 76ch;
}

.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.gallery-filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-filter.is-active,
.gallery-filter:hover,
.gallery-filter:focus-visible {
  background: var(--primary-deep);
  color: #fff;
  border-color: var(--primary-deep);
}

.smart-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.smart-gallery-item {
  position: relative;
  grid-column: span 6;
  border: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  background: #111;
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.smart-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(1.08) saturate(1.06);
  transition: transform 0.55s ease, filter 0.45s ease;
}

.smart-gallery-item-bright img,
.gallery-lightbox-panel img.is-brightened {
  filter: brightness(1.5) saturate(1.02);
}

.smart-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(16 13 10 / 38%), rgb(16 13 10 / 0%));
  z-index: 1;
}

.smart-gallery-chip {
  position: absolute;
  z-index: 2;
  left: var(--space-3);
  bottom: var(--space-3);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgb(245 248 250 / 92%);
  color: var(--primary-deep);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.smart-gallery-item.is-hidden {
  display: none;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(12 12 13 / 70%);
  backdrop-filter: blur(4px);
}

.gallery-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 92vh;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 32px 64px -26px rgb(0 0 0 / 55%);
}

.gallery-lightbox-panel img {
  width: 100%;
  max-height: 74vh;
  object-fit: cover;
  display: block;
}

.gallery-lightbox-panel figcaption {
  padding: var(--space-4) var(--space-5);
}

.gallery-lightbox-panel h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}

.gallery-lightbox-panel p {
  color: var(--text-muted);
}

.gallery-grid-editorial {
  position: relative;
  padding: var(--space-3);
  border: 1px solid rgb(63 48 38 / 20%);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 14% 18%, rgb(255 255 255 / 58%) 0%, transparent 55%),
    linear-gradient(145deg, rgb(245 248 250 / 90%), rgb(173 183 189 / 35%));
}

.gallery-item {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  border: 1px solid rgb(63 48 38 / 24%);
  overflow: hidden;
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(0);
  transition: transform 0.45s ease, box-shadow 0.45s ease, filter 0.4s ease;
  box-shadow: 0 20px 34px -24px rgb(45 35 28 / 46%);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(26 19 13 / 72%) 0%,
    rgb(26 19 13 / 32%) 45%,
    rgb(26 19 13 / 5%) 100%
  );
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: -60% -40%;
  background: linear-gradient(120deg, transparent 30%, rgb(255 255 255 / 36%) 45%, transparent 60%);
  transform: translateX(-70%) rotate(12deg);
  transition: transform 0.75s ease;
}

.gallery-item-caption {
  position: absolute;
  inset: auto var(--space-4) var(--space-4);
  z-index: 2;
  color: #f4f6f7;
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item-caption p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.gallery-item-caption span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgb(221 230 234 / 86%);
}

.gallery-grid-editorial .gallery-item:nth-child(odd) {
  transform: perspective(900px) rotateX(0deg) rotateY(-1.6deg) translateY(0);
}

.gallery-grid-editorial .gallery-item:nth-child(even) {
  transform: perspective(900px) rotateX(0deg) rotateY(1.6deg) translateY(0);
}

.gallery-grid-editorial .gallery-item.is-visible {
  animation: gallery-pop 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.faq-list details {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.contact-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.contact-hours {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  list-style: none;
}

.contact-map {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-alt);
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 220ms ease;
}

.contact-map.is-loaded iframe {
  opacity: 1;
}

.contact-map-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-5);
  background:
    linear-gradient(160deg, rgb(107 82 65 / 7%), rgb(219 225 228 / 18%)),
    repeating-linear-gradient(
      45deg,
      rgb(255 255 255 / 70%),
      rgb(255 255 255 / 70%) 10px,
      rgb(236 240 243 / 72%) 10px,
      rgb(236 240 243 / 72%) 20px
    );
  transition: opacity 220ms ease;
}

.contact-map-fallback p {
  margin: 0;
  color: var(--text-muted);
}

.contact-map.is-loaded .contact-map-fallback {
  opacity: 0;
  pointer-events: none;
}

.form-shell {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 96%), rgb(238 242 244 / 90%)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-shell-head {
  padding-bottom: var(--space-2);
}

.form-shell-head h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.form-shell-head p {
  color: var(--text-muted);
}

.form-field-grid {
  display: grid;
  gap: var(--space-3);
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  color: var(--primary-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-shell input,
.form-shell textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
}

.form-shell input:focus,
.form-shell textarea:focus {
  outline: 3px solid rgb(122 94 74 / 20%);
  border-color: var(--ring);
}

.form-shell textarea {
  min-height: 132px;
  resize: vertical;
}

.form-submit {
  justify-self: start;
}

.form-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: var(--space-6);
}

.legal-stack {
  display: grid;
  gap: var(--space-4);
}

.legal-stack .card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

.legal-stack .card a {
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-stack .card ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.3rem;
}

.privacy-grid {
  display: grid;
  gap: var(--space-4);
}

.privacy-disclosure {
  border-top: 1px solid rgb(219 225 228 / 26%);
  padding-top: var(--space-5);
}

.privacy-disclosure summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  color: var(--accent);
}

.privacy-disclosure summary::-webkit-details-marker {
  display: none;
}

.privacy-disclosure summary::after {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgb(219 225 228 / 32%);
  color: #eef2f4;
  font-size: 1rem;
}

.privacy-disclosure[open] summary::after {
  content: '-';
}

.privacy-disclosure-body {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-4);
}

.privacy-disclosure-body > p {
  max-width: 72ch;
  color: rgb(229 235 238 / 82%);
}

.privacy-disclosure .card {
  background: rgb(245 248 250 / 12%);
  border-color: rgb(219 225 228 / 20%);
}

.privacy-disclosure .card p,
.privacy-disclosure .privacy-status {
  color: rgb(219 228 232 / 76%);
}

.privacy-actions {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.privacy-status {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.testimonials-track {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2);
}

.testimonials-track .card {
  min-width: min(360px, 88vw);
  scroll-snap-align: start;
}

.slider-controls {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.slider-controls button {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 44px;
  min-width: 44px;
  background: var(--surface);
}

.footer {
  margin-top: var(--space-8);
  background: var(--primary-deep);
  color: #edf1f3;
}

.footer-shell {
  width: var(--container);
  margin-inline: auto;
  padding: var(--space-8) 0;
  display: grid;
  gap: var(--space-6);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.footer a {
  color: var(--accent);
}

.footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.social-link-icon {
  flex: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--space-4);
  pointer-events: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.privacy-panel {
  position: relative;
  width: min(420px, calc(100vw - 2rem));
  border-radius: var(--radius-xl);
  border: 1px solid rgb(63 48 38 / 18%);
  background: rgb(250 251 252 / 98%);
  box-shadow: 0 28px 55px -30px rgb(36 31 27 / 32%);
  padding: var(--space-6);
  pointer-events: auto;
}

.privacy-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.privacy-panel-eyebrow {
  margin-bottom: var(--space-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.privacy-panel-copy {
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-size: 0.96rem;
}

.privacy-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.privacy-panel-links a {
  font-size: 0.92rem;
  color: var(--primary-deep);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.privacy-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
}

.privacy-option-list {
  display: grid;
  gap: var(--space-2);
}

.privacy-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.privacy-option strong,
.privacy-option small {
  display: block;
}

.privacy-option small {
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.privacy-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.privacy-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.55s ease;
}

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

@keyframes gallery-pop {
  0% {
    opacity: 0;
    transform: perspective(900px) scale(0.94) rotateX(4deg) translateY(24px);
    filter: saturate(0.82);
  }
  100% {
    opacity: 1;
    transform: perspective(900px) scale(1) rotateX(0deg) translateY(0);
    filter: saturate(1);
  }
}

.admin-notice {
  position: sticky;
  top: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgb(0 0 0 / 10%);
}

.admin-notice-info {
  background: #dceffc;
  color: #0b3755;
}

.admin-notice-warning {
  background: #fff4d6;
  color: #5a3a00;
}

.admin-notice-urgent {
  background: #fde1df;
  color: #5f1813;
}

.admin-notice-message {
  margin: 0;
  font-weight: 600;
}

.admin-notice-close {
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.admin-layout {
  width: var(--container);
  margin-inline: auto;
  padding: var(--space-10) 0;
  display: grid;
  gap: var(--space-5);
}

.admin-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.admin-panel h2,
.admin-panel h3 {
  margin: 0;
}

.admin-grid {
  display: grid;
  gap: var(--space-3);
}

.admin-grid label {
  font-weight: 600;
}

.admin-grid input,
.admin-grid select,
.admin-grid textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: var(--surface);
}

.admin-grid textarea {
  min-height: 220px;
  resize: vertical;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.admin-status {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.7rem;
  font-size: 0.92rem;
  background: rgb(219 225 228 / 35%);
  color: var(--text);
}

.admin-status.ok {
  background: #dff5df;
  color: #16511f;
}

.admin-status.error {
  background: #fde1df;
  color: #6b1e17;
}

.admin-overrides-list {
  display: grid;
  gap: var(--space-3);
}

.admin-override-row {
  display: grid;
  gap: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--surface-soft);
}

.admin-override-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-inline-help {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    transform: none;
    opacity: 1;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .nav-links ul {
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }

  .nav-link {
    min-height: auto;
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.3rem;
    width: 100%;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: transform 0.24s ease;
  }

  .nav-link:hover::after,
  .nav-link:focus-visible::after {
    transform: scaleX(1);
  }

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

  .doctor-profile-card {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  }

  .doctor-profile-card-right .doctor-portrait {
    order: 2;
  }

  .doctor-profile-card-right .doctor-profile-content {
    order: 1;
  }

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

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

  .team-page-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

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

  .team-member-card-dentist {
    grid-column: span 3;
  }

  .team-member-card:not(.team-member-card-dentist) {
    grid-column: span 2;
  }

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

  .team-cta {
    grid-template-columns: 1fr auto;
  }

  .privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .about-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .team-map {
    max-width: min(1100px, 100%);
    margin-inline: auto;
  }

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

  .smart-gallery-item {
    grid-column: span 4;
  }

  .smart-gallery-item:nth-child(5n + 1) {
    grid-column: span 8;
    min-height: 280px;
  }

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

  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 3;
  }

  .gallery-grid .gallery-item:nth-child(2) {
    grid-column: span 3;
  }

  .gallery-grid .gallery-item:nth-child(3),
  .gallery-grid .gallery-item:nth-child(4) {
    grid-column: span 2;
  }

  .gallery-grid .gallery-item:nth-child(5) {
    grid-column: span 4;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover,
  .gallery-item:focus-within {
    transform: perspective(900px) rotateX(1deg) rotateY(0deg) translateY(-8px) scale(1.01);
    box-shadow: 0 30px 44px -22px rgb(46 35 28 / 54%);
    filter: saturate(1.06);
  }

  .gallery-item:hover::after,
  .gallery-item:focus-within::after {
    transform: translateX(78%) rotate(12deg);
  }

  .gallery-item:hover .gallery-item-caption,
  .gallery-item:focus-within .gallery-item-caption {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .video-hero-sub {
    display: none;
  }

  .video-hero-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-hero-kpi {
    max-width: none;
    padding: var(--space-3) var(--space-2);
  }

  .video-hero-kpi:nth-child(2) {
    border-right: 0;
  }

  .video-hero-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid rgb(255 255 255 / 12%);
  }

  .video-hero-kpi span {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .video-hero-kpi-patients strong {
    font-size: 1.05rem;
  }

  .new-patient-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-5);
  }

  .nav-right > .btn-primary {
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .doctor-profile-card {
    padding: var(--space-3);
  }

  .doctor-stats strong {
    min-width: 70px;
    font-size: 1.15rem;
  }

  .gallery-grid-editorial {
    padding: var(--space-2);
  }

  .team-tooltip {
    font-size: 0.8rem;
    padding: 0.4rem 0.62rem;
  }

  .gallery-item {
    min-height: 200px;
  }

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

  .smart-gallery-item,
  .smart-gallery-item:nth-child(5n + 1) {
    grid-column: span 2;
    min-height: 210px;
  }

  .pricing-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .privacy-panel {
    width: min(100%, calc(100vw - 1rem));
    padding: var(--space-5);
  }

  .privacy-option {
    align-items: flex-start;
  }

  .privacy-disclosure summary {
    width: 100%;
    justify-content: space-between;
  }
}

@media (hover: hover) and (pointer: fine) {
  .magnetic {
    will-change: transform;
  }
}

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

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