:root {
  --ink: #102b45;
  --ink-soft: #2a5269;
  --blue: #27aee4;
  --blue-deep: #005aa8;
  --mint: #e7f8f5;
  --mint-strong: #00bfa7;
  --coral: #27aee4;
  --gold: #c4a24f;
  --white: #ffffff;
  --cloud: #f5faff;
  --line: rgba(0, 90, 168, 0.16);
  --shadow: 0 18px 48px rgba(0, 75, 145, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cloud);
  line-height: 1.5;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  color: inherit;
  font: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  scroll-margin-top: 88px;
  padding: 92px 0;
}

.section-dark {
  color: var(--white);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
  padding: 12px clamp(18px, 4vw, 46px);
  color: var(--white);
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease,
    height 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  height: 68px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(16, 47, 61, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand small {
  font-size: 0.76rem;
  opacity: 0.75;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  font-size: 0.93rem;
  font-weight: 750;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 220px;
}

.ghost-link,
.menu-toggle,
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
}

.ghost-link {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 78svh;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0, 58, 118, 0.98), rgba(0, 90, 168, 0.9) 48%, rgba(39, 174, 228, 0.72)),
    url("assets/images/blue-wave-header.png") center / cover no-repeat,
    var(--ink);
}

.hero-video,
.hero-overlay {
  position: absolute;
}

.hero-video {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: saturate(0.95) contrast(1.04);
}

.hero-overlay {
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 76% 48%, rgba(39, 174, 228, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(0, 50, 99, 0.66), rgba(0, 73, 138, 0.34) 54%, rgba(0, 90, 168, 0.12));
}

.hero-mascots {
  position: absolute;
  right: clamp(54px, 8vw, 150px);
  bottom: 126px;
  z-index: 3;
  display: grid;
  justify-items: center;
  width: min(34vw, 430px);
  min-width: 340px;
  transform: translate(var(--mascot-x, 0), var(--mascot-y, 0));
  transition: transform 220ms ease-out;
}

.mascot-bubble {
  position: relative;
  max-width: 235px;
  margin-bottom: 8px;
  padding: 11px 15px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(0, 42, 88, 0.2);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.mascot-bubble::after {
  position: absolute;
  right: 42px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  content: "";
  background: inherit;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
  transform: rotate(45deg);
}

.tooth-trio {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  width: 100%;
}

.mini-tooth {
  position: relative;
  width: clamp(92px, 9vw, 124px);
  aspect-ratio: 1 / 1.08;
  padding: 0;
  cursor: pointer;
  border: 0;
  background: transparent;
  transform-origin: 50% 100%;
  animation: toothFloat 4.6s ease-in-out infinite;
}

.tooth-two {
  width: clamp(106px, 10vw, 138px);
  animation-delay: -1.3s;
}

.tooth-three {
  animation-delay: -2.2s;
}

.mini-tooth:hover {
  transform: translateY(-5px);
}

.mini-tooth:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
  border-radius: 8px;
}

.mini-tooth svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 16px 18px rgba(0, 34, 74, 0.2));
}

.tooth-shape {
  fill: #ffffff;
  stroke: #2f3340;
  stroke-width: 4.2;
}

.eye {
  fill: #2f3340;
  stroke: none;
  transform-origin: center;
  animation: toothBlink 5.8s infinite;
}

.eye.happy {
  fill: none;
  stroke: #2f3340;
  stroke-width: 4.2;
  stroke-linecap: round;
}

.smile {
  fill: none;
  stroke: #2f3340;
  stroke-width: 4.8;
  stroke-linecap: round;
}

.smile.open {
  stroke-width: 5.4;
}

.cheek {
  fill: #ff9aad;
  opacity: 0.8;
  stroke: none;
}

.arm,
.brush,
.brush-head,
.bubble-foam,
.foam-dot {
  fill: none;
  stroke: #2f3340;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.2;
}

.brush-head {
  fill: #ffffff;
}

.bubble-foam {
  fill: #ffffff;
}

.foam-dot {
  fill: #ffffff;
}

.waving {
  transform-origin: 10% 50%;
  animation: toothWave 1.9s ease-in-out infinite;
}

.hero-mascots.is-talking .mascot-bubble {
  animation: bubbleNod 520ms ease;
}

.hero-mascots.is-talking .mini-tooth.is-active {
  animation:
    toothFloat 4.6s ease-in-out infinite,
    toothHappy 520ms ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.contact .eyebrow {
  color: var(--mint-strong);
}

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

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

h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3vw, 3rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@keyframes toothFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes toothWave {
  0%,
  100% {
    transform: rotate(-18deg);
  }

  45% {
    transform: rotate(26deg);
  }

  70% {
    transform: rotate(6deg);
  }
}

@keyframes toothBlink {
  0%,
  88%,
  94%,
  100% {
    transform: scaleY(1);
  }

  91% {
    transform: scaleY(0.12);
  }
}

@keyframes toothSpark {
  0%,
  100% {
    transform: scale(0.92) rotate(0deg);
    opacity: 0.75;
  }

  50% {
    transform: scale(1.12) rotate(8deg);
    opacity: 1;
  }
}

@keyframes toothHappy {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-10px) scale(1.05);
  }
}

@keyframes bubbleNod {
  0%,
  100% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-5px);
  }
}

@keyframes mobileToothDrop {
  0% {
    opacity: 0;
    transform: translateY(-142px) scale(0.7) rotate(-10deg);
  }

  46% {
    opacity: 1;
    transform: translateY(0) scale(1.04) rotate(3deg);
  }

  58% {
    transform: translateY(-18px) scale(0.98) rotate(-2deg);
  }

  72% {
    transform: translateY(0) scale(1.02) rotate(1deg);
  }

  84% {
    transform: translateY(-8px) scale(0.99) rotate(-1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes mobileStoryFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-4px) rotate(1.2deg);
  }
}

@keyframes mobileSpeechIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.94);
  }

  18%,
  78% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -6px) scale(0.98);
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--coral);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.button.secondary.light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.quick-contact {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -36px auto 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.quick-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
}

.quick-contact a + a {
  border-left: 1px solid var(--line);
}

.quick-contact svg {
  color: var(--coral);
}

.trust-strip {
  padding: 40px 0 18px;
  background: #ffffff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-item {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, rgba(245, 250, 255, 0.92));
  box-shadow: 0 12px 32px rgba(0, 75, 145, 0.08);
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.trust-item strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.ai-assistant-section {
  padding: 96px 0;
  background:
    linear-gradient(180deg, #ffffff, var(--cloud)),
    radial-gradient(circle at 86% 20%, rgba(39, 174, 228, 0.2), transparent 28%);
}

.assistant-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.assistant-copy p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.assistant-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 560px;
  margin-top: 26px;
  padding: 16px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.assistant-note svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--blue);
}

.assistant-panel {
  overflow: hidden;
  border: 1px solid rgba(0, 90, 168, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.assistant-header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.assistant-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  cursor: pointer;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.assistant-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.assistant-avatar svg {
  width: 26px;
  height: 26px;
}

.assistant-header strong,
.assistant-header span {
  display: block;
}

.assistant-header strong {
  font-size: 1.05rem;
}

.assistant-header span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.assistant-chat {
  display: grid;
  gap: 10px;
  min-height: 250px;
  max-height: 360px;
  padding: 18px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(245, 250, 255, 0.72), rgba(255, 255, 255, 0.95)),
    url("assets/images/pastel-blue.jpg") center / cover no-repeat;
}

.assistant-chat.compact {
  min-height: 250px;
  max-height: min(42svh, 330px);
}

.chat-message {
  width: fit-content;
  max-width: min(86%, 560px);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.98rem;
}

.chat-message.assistant {
  color: var(--ink);
  border: 1px solid rgba(0, 90, 168, 0.12);
  background: #ffffff;
}

.chat-message.is-loading {
  color: rgba(16, 43, 69, 0.72);
  font-style: italic;
}

.chat-message.error {
  border-color: rgba(255, 64, 112, 0.22);
  background: rgba(255, 64, 112, 0.08);
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--blue-deep);
}

.chat-actions {
  display: flex;
  justify-content: flex-start;
}

.chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--white);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 90, 168, 0.18);
  font-size: 0.86rem;
  font-weight: 850;
}

.chat-action:hover {
  background: var(--blue-deep);
}

.assistant-prompts {
  padding: 0 18px 16px;
  background: #ffffff;
}

.assistant-prompts.compact {
  padding-bottom: 12px;
}

.assistant-prompts summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 44px 0 14px;
  cursor: pointer;
  list-style: none;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 90, 168, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(39, 174, 228, 0.08) 100%);
  box-shadow: 0 8px 18px rgba(0, 90, 168, 0.08);
  font-size: 0.92rem;
  font-weight: 850;
}

.assistant-prompts summary::-webkit-details-marker {
  display: none;
}

.assistant-prompts summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 9px;
  height: 9px;
  content: "";
  transform: translateY(-65%) rotate(45deg);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transition: transform 0.18s ease;
}

.assistant-prompts[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.assistant-prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
}

.assistant-prompts button {
  min-height: 34px;
  padding: 0 11px;
  cursor: pointer;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 90, 168, 0.2);
  border-radius: 8px;
  background: rgba(39, 174, 228, 0.08);
  font-size: 0.86rem;
  font-weight: 800;
}

.assistant-prompts button:hover {
  border-color: rgba(0, 90, 168, 0.38);
  background: rgba(39, 174, 228, 0.15);
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.assistant-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  font: inherit;
}

.assistant-form input:focus {
  border-color: rgba(39, 174, 228, 0.72);
  box-shadow: 0 0 0 3px rgba(39, 174, 228, 0.14);
}

.assistant-form button {
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: var(--blue);
}

.assistant-form.is-loading input,
.assistant-form.is-loading button {
  cursor: wait;
  opacity: 0.68;
}

.appointment-section {
  background:
    linear-gradient(135deg, rgba(0, 90, 168, 0.96), rgba(39, 174, 228, 0.9)),
    url("assets/images/financing-smile.png") center / cover no-repeat;
  color: var(--white);
}

.appointment-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}

.appointment-copy p:not(.eyebrow) {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}

.appointment-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.appointment-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 850;
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 62px rgba(0, 36, 78, 0.22);
}

.form-row.two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.appointment-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid rgba(0, 90, 168, 0.18);
  border-radius: 8px;
  outline: 0;
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

.appointment-form textarea {
  min-height: 112px;
  padding: 12px 13px;
  resize: vertical;
}

.appointment-form input:focus,
.appointment-form select:focus,
.appointment-form textarea:focus {
  border-color: rgba(39, 174, 228, 0.72);
  box-shadow: 0 0 0 3px rgba(39, 174, 228, 0.14);
}

.appointment-form .button {
  align-self: end;
  width: 100%;
  min-height: 48px;
}

.appointment-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 800;
}

.intro-band {
  padding: 82px 0;
  background: linear-gradient(180deg, var(--cloud), #ffffff);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  max-width: 920px;
  text-align: center;
}

.intro-band h2 {
  max-width: 780px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
}

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

.intro-copy {
  max-width: 800px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 26px auto 0;
  text-align: left;
}

.metric-row span {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metric-row strong {
  display: block;
  color: var(--coral);
  font-size: 2rem;
  line-height: 1;
}

.services {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 245px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f9fcfd);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  border-color: rgba(28, 159, 208, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card svg {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: var(--blue-deep);
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.knowledge-hub {
  background:
    linear-gradient(180deg, #f7fcff 0%, #ffffff 46%, #f4fbff 100%),
    url("assets/images/abstract-wave.jpg") center top / cover no-repeat;
}

.knowledge-hub .section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--ink-soft);
}

.knowledge-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.knowledge-video {
  position: relative;
  min-height: 360px;
  background: var(--ink);
}

.knowledge-video video,
.knowledge-video img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  opacity: 0.88;
}

.knowledge-video::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 58, 118, 0.42), rgba(0, 90, 168, 0));
  pointer-events: none;
}

.knowledge-video button {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  cursor: pointer;
  color: var(--blue-deep);
  border: 0;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 42, 88, 0.24);
}

.knowledge-feature-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 4vw, 46px);
}

.knowledge-feature-copy h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.knowledge-feature-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.care-steps {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  color: var(--ink-soft);
}

.care-steps li {
  padding-left: 4px;
  line-height: 1.55;
}

.care-steps strong {
  color: var(--ink);
}

.knowledge-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  color: var(--blue-deep);
  border: 1px solid rgba(39, 174, 228, 0.28);
  border-radius: 8px;
  background: rgba(231, 248, 245, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-actions,
.knowledge-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-actions button,
.knowledge-card-actions button {
  min-height: 40px;
  padding: 0 13px;
  cursor: pointer;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 90, 168, 0.2);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 850;
}

.knowledge-actions button:first-child,
.knowledge-card-actions button:first-child {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.knowledge-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.knowledge-card:hover {
  border-color: rgba(39, 174, 228, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.knowledge-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.knowledge-card > div {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.knowledge-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.knowledge-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.knowledge-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.knowledge-card-actions {
  margin-top: 4px;
}

.knowledge-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(39, 174, 228, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.knowledge-sources span {
  color: var(--ink);
  font-weight: 900;
}

.knowledge-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 90, 168, 0.16);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 850;
}

.knowledge-disclaimer {
  max-width: 820px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  text-align: center;
  font-size: 0.95rem;
}

.clinic-showcase {
  background:
    linear-gradient(180deg, rgba(231, 248, 245, 0.55), rgba(245, 250, 255, 0.96)),
    url("assets/images/abstract-wave.jpg") center top / cover no-repeat;
}

.showcase-grid,
.team-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.media-stack {
  position: relative;
  min-height: 460px;
}

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  border-radius: 8px;
  background: var(--white);
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.image-button:hover img {
  transform: scale(1.035);
}

.main-photo {
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
}

.offset-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1 / 1;
  border: 8px solid var(--cloud);
  box-shadow: var(--shadow);
}

.showcase-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  font-weight: 750;
}

.check-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 18px;
  height: 18px;
  content: "";
  border-radius: 50%;
  background: var(--mint-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--blue-deep);
  font-weight: 900;
  border-bottom: 2px solid currentColor;
}

.technology {
  padding-top: 0;
  background: var(--cloud);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tech-panel {
  display: grid;
  align-content: end;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.tech-panel img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  opacity: 0.78;
}

.tech-panel div {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: end;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 58, 118, 0.88), rgba(0, 90, 168, 0));
}

.tech-panel h3 {
  margin-bottom: 0;
}

.tech-panel.accent div {
  background: linear-gradient(0deg, rgba(0, 58, 118, 0.74), rgba(0, 90, 168, 0.08));
}

.team {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 58, 118, 0.96), rgba(0, 90, 168, 0.92)),
    url("assets/images/blue-wave-header.png") center / cover no-repeat;
}

.team-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.profile-list span {
  padding: 14px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.team-media {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.team-media img {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center 38%;
}

.videos {
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.video-card-content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 58, 118, 0.88), rgba(0, 90, 168, 0));
}

.video-card-content span {
  font-weight: 900;
}

.video-card button,
.testimonial-rail button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 0;
}

.video-card button {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  color: var(--ink);
  border-radius: 50%;
  background: var(--white);
}

.testimonials {
  color: var(--white);
  background: var(--ink);
}

.testimonial-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: center;
}

.testimonials h2 {
  margin-bottom: 16px;
}

.testimonials .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.testimonial-content {
  display: grid;
  gap: 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.review-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.review-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--mint-strong);
  font-weight: 900;
}

.review-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.testimonial-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.testimonial-rail button {
  min-height: 120px;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.testimonial-rail button:hover {
  background: rgba(73, 208, 187, 0.22);
}

.testimonial-rail svg {
  width: 28px;
  height: 28px;
  color: var(--mint-strong);
}

.gallery {
  background: var(--cloud);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-grid .tall {
  grid-row: span 2;
}

.gallery-grid .wide {
  grid-column: span 2;
}

.contact {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 58, 118, 0.98), rgba(0, 90, 168, 0.93)),
    url("assets/images/clinic-wave-banner.png") center / cover no-repeat;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.contact-methods svg {
  color: var(--mint-strong);
}

.map-panel {
  display: grid;
  align-content: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(0, 58, 118, 0.74), rgba(0, 90, 168, 0.9)),
    url("assets/images/blue-wave-header.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.map-panel h3 {
  max-width: 520px;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.map-panel p:not(.eyebrow) {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.82);
}

.map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--white);
  border-radius: 50%;
  background: var(--coral);
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #062d5f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.site-footer img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

.media-modal {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.media-modal::backdrop {
  background: rgba(5, 20, 28, 0.82);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: var(--coral);
  cursor: pointer;
}

.modal-body {
  overflow: hidden;
  border-radius: 8px;
  background: #061e3b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.modal-body video,
.modal-body img,
.modal-body iframe {
  width: 100%;
  max-height: calc(100svh - 72px);
  object-fit: contain;
}

.modal-body iframe {
  display: block;
  aspect-ratio: 16 / 9;
  min-height: min(64svh, 520px);
  border: 0;
}

.app-install-prompt {
  position: fixed;
  right: 16px;
  bottom: 92px;
  left: 16px;
  z-index: 72;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid rgba(39, 174, 228, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 70px rgba(0, 42, 88, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.app-install-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.app-install-prompt img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 75, 145, 0.14);
}

.app-install-prompt strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1rem;
}

.app-install-prompt p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
}

.app-install-actions {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-install-actions button {
  min-height: 40px;
  cursor: pointer;
  color: var(--blue-deep);
  border: 1px solid rgba(0, 90, 168, 0.18);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 900;
}

.app-install-actions button.primary {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.floating-cta {
  position: fixed;
  right: 92px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 16px;
  color: var(--white);
  border-radius: 8px;
  background: var(--coral);
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.floating-assistant {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 55;
}

.floating-assistant-toggle {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  cursor: pointer;
  color: var(--white);
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 18px 42px rgba(0, 75, 145, 0.24);
  font-weight: 950;
}

.floating-assistant-toggle svg {
  width: 24px;
  height: 24px;
}

.floating-assistant-toggle span {
  margin-top: -5px;
  font-size: 0.72rem;
  line-height: 1;
}

.floating-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(0, 90, 168, 0.2);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 32, 72, 0.28);
}

.floating-assistant.is-open .floating-assistant-toggle {
  background: var(--mint-strong);
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

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

@media (max-width: 980px) {
  .site-header {
    height: 70px;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .ghost-link {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .brand,
  .header-actions {
    min-width: auto;
  }

  .quick-contact,
  .trust-grid,
  .assistant-grid,
  .appointment-grid,
  .knowledge-feature,
  .service-grid,
  .tech-grid,
  .testimonial-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-contact a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .hero-mascots {
    right: 22px;
    bottom: 100px;
    width: 300px;
    min-width: 0;
    opacity: 0.72;
  }

  .mascot-bubble {
    max-width: 210px;
    font-size: 0.92rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .media-stack {
    min-height: auto;
  }

  .offset-photo {
    position: relative;
    width: 58%;
    margin: -80px 18px 0 auto;
  }

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

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

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-grid .wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 68px 0;
  }

  .site-header {
    height: 122px;
    padding: 10px 18px;
    justify-content: center;
  }

  .brand {
    justify-content: center;
    width: 128px;
    min-width: 0;
    margin: 0 auto;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 112px;
    height: 112px;
  }

  .header-actions {
    position: absolute;
    top: 34px;
    right: 18px;
    min-width: 0;
  }

  .main-nav {
    top: 120px;
  }

  .hero {
    min-height: 76svh;
    background-position: 62% center;
  }

  .hero-mascots {
    top: 142px;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 4;
    width: 172px;
    min-width: 0;
    opacity: 0.78;
    pointer-events: none;
    transform: translateX(-50%);
    transition:
      top 620ms cubic-bezier(0.22, 1, 0.36, 1),
      left 620ms cubic-bezier(0.22, 1, 0.36, 1),
      width 620ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 220ms ease,
      transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .tooth-trio {
    gap: 3px;
  }

  .mini-tooth {
    width: 39px;
  }

  .tooth-two {
    width: 44px;
  }

  .mini-tooth svg {
    filter: drop-shadow(0 8px 10px rgba(0, 34, 74, 0.24));
  }

  .mascot-bubble {
    display: none;
  }

  .hero-mascots.mobile-story {
    top: 142px;
    left: 50%;
    width: 172px;
    opacity: 0.78;
    transform: translateX(-50%);
    z-index: 4;
  }

  .hero-mascots.mobile-story .mascot-bubble {
    position: absolute;
    top: -44px;
    left: 50%;
    display: block;
    width: max-content;
    max-width: min(78vw, 260px);
    margin: 0;
    padding: 8px 11px;
    color: rgba(16, 43, 69, 0.9);
    border-color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 22px rgba(0, 42, 88, 0.14);
    font-size: 0.76rem;
    line-height: 1.15;
    opacity: 0;
    transform: translate(-50%, 0);
    backdrop-filter: blur(10px);
  }

  .hero-mascots.mobile-story.is-talking .mascot-bubble {
    animation: mobileSpeechIn 1.2s ease both;
  }

  .hero-mascots.mobile-story .mascot-bubble::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.66);
    border-bottom: 1px solid rgba(255, 255, 255, 0.66);
    transform: translateX(-50%) rotate(45deg);
  }

  .hero-mascots.mobile-story::after {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 196px;
    height: 18px;
    content: "";
    background:
      radial-gradient(ellipse at center, rgba(0, 18, 44, 0.42), rgba(0, 18, 44, 0) 70%),
      radial-gradient(ellipse at center, rgba(0, 214, 196, 0.26), rgba(0, 214, 196, 0) 72%);
    filter: blur(1.5px);
    transform: translateX(-50%);
  }

  .hero-mascots.mobile-story .mini-tooth {
    opacity: 0;
    transform: translateY(-142px) scale(0.7);
    animation: none;
  }

  .hero-mascots.story-one .tooth-one,
  .hero-mascots.story-two .tooth-one,
  .hero-mascots.story-three .tooth-one,
  .hero-mascots.story-two .tooth-two,
  .hero-mascots.story-three .tooth-two,
  .hero-mascots.story-three .tooth-three {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .hero-mascots.story-one .tooth-one,
  .hero-mascots.story-two .tooth-two,
  .hero-mascots.story-three .tooth-three {
    animation:
      mobileToothDrop 1.15s cubic-bezier(0.2, 0.9, 0.24, 1) both,
      mobileStoryFloat 1.4s ease-in-out 1.15s infinite;
  }

  .hero-mascots.story-complete .mini-tooth {
    animation: none;
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    padding: 260px 0 54px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .quick-contact {
    width: calc(100% - 28px);
  }

  .assistant-form {
    grid-template-columns: 1fr;
  }

  .assistant-form button {
    min-height: 44px;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 18px;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

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

  .knowledge-feature-copy,
  .knowledge-card > div {
    padding: 18px;
  }

  .knowledge-video,
  .knowledge-video video,
  .knowledge-video img {
    min-height: 260px;
  }

  .knowledge-card {
    grid-template-rows: 190px 1fr;
  }

  .tech-panel,
  .tech-panel img {
    min-height: 330px;
  }

  .testimonial-rail {
    grid-template-columns: 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-grid .tall,
  .gallery-grid .wide {
    grid-column: auto;
    grid-row: auto;
  }

  .map-panel {
    min-height: 380px;
    padding: 24px;
  }

  .floating-cta {
    right: 82px;
    bottom: 12px;
  }

  .floating-assistant {
    right: 12px;
    bottom: 12px;
  }

  .floating-assistant-panel {
    bottom: 68px;
  }
}

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

  .hero-video {
    display: none;
  }

  .mini-tooth,
  .waving,
  .eye,
  .hero-mascots.is-talking .mascot-bubble,
  .hero-mascots.is-talking .mini-tooth.is-active {
    animation: none;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(0, 58, 118, 0.88), rgba(0, 90, 168, 0.52)),
      url("assets/images/blue-wave-header.png") center / cover no-repeat;
  }
}
