:root {
  --navy: #124a84;
  --navy-900: #082947;
  --ink: #102337;
  --muted: #60758a;
  --ice: #eaf8fb;
  --ice-strong: #d6f0f6;
  --surface: #ffffff;
  --line: rgba(18, 74, 132, 0.16);
  --accent: #d86f62;
  --shadow: 0 24px 80px rgba(10, 44, 75, 0.14);
  --radius: 8px;
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(234, 248, 251, 0.94), rgba(255, 255, 255, 0.96) 44%),
    var(--surface);
  color: var(--ink);
  min-width: 320px;
  overflow-x: hidden;
}

body::selection {
  background: rgba(18, 74, 132, 0.18);
}

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

img,
svg {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.motion-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 50px rgba(8, 41, 71, 0.09);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateX(-50%);
  transition:
    min-height 240ms ease,
    box-shadow 240ms ease,
    background 240ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 54px rgba(8, 41, 71, 0.13);
}

.brand img {
  max-width: min(190px, 42vw);
  width: auto;
  height: 52px;
  object-position: left center;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: rgba(16, 35, 55, 0.78);
  font-size: 0.91rem;
  font-weight: 700;
}

.nav a {
  position: relative;
  white-space: nowrap;
}

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

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

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.nav-cta {
  white-space: nowrap;
  padding: 0 18px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 14px 30px rgba(18, 74, 132, 0.22);
}

.button {
  gap: 10px;
  min-width: 178px;
  padding: 0 20px;
  border: 1px solid transparent;
  cursor: pointer;
}

.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 18px 46px rgba(18, 74, 132, 0.28);
}

.secondary {
  border-color: rgba(18, 74, 132, 0.18);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: center;
  min-height: 100svh;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 74px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 62%;
  background: linear-gradient(120deg, rgba(214, 240, 246, 0.78), rgba(255, 255, 255, 0));
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
  content: "";
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(54vw, 780px);
  opacity: 0.68;
  pointer-events: none;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
  transition: transform 160ms ease-out;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58) 34%, rgba(234, 248, 251, 0.08)),
    linear-gradient(180deg, rgba(234, 248, 251, 0.7), rgba(255, 255, 255, 0.52));
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.scan-line {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 24%;
  width: 1px;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(18, 74, 132, 0.52), transparent);
  box-shadow: 0 0 28px rgba(18, 74, 132, 0.24);
  animation: scan 4.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--navy-900);
  font-size: clamp(3.4rem, 8.4vw, 8.7rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--navy);
}

.hero-lede {
  max-width: 670px;
  margin-bottom: 34px;
  color: #40586f;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.78;
}

.hero-lede strong {
  color: var(--navy-900);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 12px;
  align-self: center;
  max-width: 380px;
  margin-left: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero-panel div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid rgba(18, 74, 132, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.metric {
  color: var(--navy);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.hero-panel p {
  margin: 0;
  color: #4d657b;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.35;
}

.face-line {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 26px;
  z-index: 1;
  width: min(40vw, 450px);
  min-width: 260px;
  opacity: 0.22;
  pointer-events: none;
}

.face-line path {
  fill: none;
  stroke: var(--navy);
  stroke-dasharray: 1420;
  stroke-dashoffset: 1420;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 6;
  animation: drawFace 3.8s 420ms ease forwards;
}

.section {
  position: relative;
  padding: 112px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.56fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 0;
  color: var(--navy-900);
  font-size: clamp(2.25rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.treatment-copy p,
.experience-copy p,
.consultation-copy p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

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

.process-card,
.treatment-item,
.booking-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(8, 41, 71, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.process-card {
  min-height: 270px;
  padding: 28px;
  overflow: hidden;
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border: 1px solid rgba(18, 74, 132, 0.18);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
}

.process-card h3,
.treatment-item h3 {
  margin-bottom: 12px;
  color: var(--navy-900);
  font-size: 1.3rem;
}

.process-card p,
.treatment-item p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.treatments {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: clamp(30px, 5.5vw, 86px);
  background:
    linear-gradient(180deg, rgba(8, 41, 71, 0.03), rgba(255, 255, 255, 0)),
    #fbfdfe;
}

.treatment-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.treatment-list {
  display: grid;
  gap: 14px;
}

.treatment-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.treatment-item svg {
  width: 58px;
  height: 58px;
  padding: 13px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--ice);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.experience {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}

.experience-visual {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(214, 240, 246, 0.5)),
    url("assets/braces-texture.png") center / cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.experience-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), transparent 62%);
  content: "";
}

.arch {
  position: absolute;
  z-index: 1;
  left: 12%;
  width: 72%;
  height: 46%;
  border: 2px solid rgba(18, 74, 132, 0.35);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform-origin: center top;
}

.arch-one {
  top: 18%;
  animation: archFloat 5.8s ease-in-out infinite;
}

.arch-two {
  top: 30%;
  width: 62%;
  left: 19%;
  opacity: 0.6;
  animation: archFloat 6.8s ease-in-out infinite reverse;
}

.arch-three {
  top: 42%;
  width: 46%;
  left: 27%;
  opacity: 0.38;
  animation: archFloat 7.4s ease-in-out infinite;
}

.pulse-dot {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 111, 98, 0.5);
  animation: pulse 2s ease-out infinite;
}

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

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: #41586d;
  font-weight: 750;
  line-height: 1.5;
}

.feature-list li::before {
  position: absolute;
  top: 0.2em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: inset 0 0 0 5px var(--ice-strong);
  content: "";
}

.consultation {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 0.62fr);
  gap: clamp(32px, 7vw, 90px);
  align-items: start;
  padding-bottom: 92px;
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.contact-strip span {
  padding: 10px 12px;
  border: 1px solid rgba(18, 74, 132, 0.14);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  font-size: 0.9rem;
  font-weight: 850;
}

.booking-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.booking-form label {
  display: grid;
  gap: 8px;
  color: var(--navy-900);
  font-size: 0.87rem;
  font-weight: 850;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  border: 1px solid rgba(18, 74, 132, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.booking-form input,
.booking-form select {
  height: 50px;
  padding: 0 14px;
}

.booking-form textarea {
  resize: vertical;
  min-height: 118px;
  padding: 14px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: rgba(18, 74, 132, 0.58);
  box-shadow: 0 0 0 4px rgba(18, 74, 132, 0.11);
}

.booking-form .button {
  width: 100%;
  min-height: 54px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2)) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
}

.site-footer img {
  width: auto;
  height: 52px;
  object-position: left center;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes scan {
  0%,
  100% {
    transform: translateX(-24px) rotate(8deg);
    opacity: 0;
  }
  20%,
  70% {
    opacity: 1;
  }
  50% {
    transform: translateX(110px) rotate(8deg);
  }
}

@keyframes drawFace {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes archFloat {
  0%,
  100% {
    transform: translateY(0) scaleX(1);
  }
  50% {
    transform: translateY(-12px) scaleX(1.035);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(216, 111, 98, 0.46);
  }
  80%,
  100% {
    box-shadow: 0 0 0 34px rgba(216, 111, 98, 0);
  }
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav {
    display: none;
  }

  .brand img {
    height: 46px;
  }

  .hero,
  .section-heading,
  .treatments,
  .experience,
  .consultation {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 136px;
    padding-bottom: 64px;
  }

  .hero-media {
    width: 100%;
    opacity: 0.45;
  }

  .hero-panel {
    max-width: none;
    margin-left: 0;
  }

  .face-line {
    right: -60px;
    bottom: 22%;
    opacity: 0.12;
  }

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

  .treatment-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    gap: 8px;
    padding: 10px;
  }

  .brand img {
    max-width: 48vw;
    height: 36px;
  }

  .nav-cta {
    min-height: 42px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .hero {
    gap: 26px;
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(3.05rem, 17vw, 5.1rem);
  }

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

  .hero-lede {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.64;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }

  .hero-panel {
    gap: 10px;
    padding: 10px;
  }

  .hero-panel div {
    grid-template-columns: 72px 1fr;
    min-height: 66px;
    padding: 10px 12px;
  }

  .metric {
    font-size: 2.05rem;
  }

  .section {
    padding: 76px 18px;
  }

  h2 {
    font-size: clamp(2.05rem, 10.5vw, 3.2rem);
    line-height: 1.03;
  }

  .process-card {
    min-height: 230px;
    padding: 24px;
  }

  .process-card span {
    margin-bottom: 34px;
  }

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

  .experience-visual {
    min-height: 410px;
  }

  .booking-form {
    padding: 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 380px) {
  .site-header {
    width: calc(100% - 14px);
    min-height: 58px;
    padding: 8px;
  }

  .brand img {
    max-width: 46vw;
    height: 31px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 9px;
    font-size: 0.75rem;
  }

  .hero {
    padding: 116px 14px 56px;
  }

  h1 {
    font-size: clamp(2.72rem, 16.2vw, 3.2rem);
  }

  .hero-panel div {
    grid-template-columns: 58px 1fr;
  }

  .metric {
    font-size: 1.75rem;
  }

  .section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-strip span {
    width: 100%;
    text-align: center;
  }
}

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

  .motion-field {
    display: none;
  }

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