:root {
  --ink: #07111d;
  --ink-2: #0d1d2e;
  --paper: #f7fbff;
  --white: #ffffff;
  --muted: #637083;
  --line: rgba(10, 37, 64, 0.12);
  --blue: #0799f2;
  --blue-2: #005dd8;
  --cyan: #20d6ff;
  --shadow: 0 24px 60px rgba(3, 16, 30, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 14, 26, 0.92);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  width: 260px;
  height: 68px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #020813;
}

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

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--white);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: var(--radius);
  font-weight: 700;
}

.header-action {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-action svg,
.button svg,
.service-card svg {
  width: 19px;
  height: 19px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 5vw, 72px) 96px;
  color: var(--white);
  background: #030813;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 72%, rgba(7, 153, 242, 0.16), transparent 30%),
    linear-gradient(90deg, rgba(3, 8, 19, 0.64) 0%, rgba(3, 8, 19, 0.26) 46%, rgba(3, 8, 19, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 8, 19, 0.9) 0%, rgba(3, 8, 19, 0.64) 28%, rgba(3, 8, 19, 0.08) 62%);
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 20%;
  opacity: 0.88;
  transform: scale(0.82);
  filter: saturate(1.1) contrast(1.05) brightness(1.05);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: clamp(38px, 6vh, 78px);
  transform: translateX(-50%);
  z-index: 1;
  width: min(720px, 100%);
  margin: 0;
  padding: 26px clamp(24px, 4vw, 46px) 32px;
  text-align: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px -26px -24px;
  border-radius: 18px;
  background: radial-gradient(ellipse at center, rgba(1, 8, 18, 0.76) 0%, rgba(1, 8, 18, 0.58) 44%, rgba(1, 8, 18, 0) 74%);
  filter: blur(2px);
}

.hero-claim {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-transform: uppercase;
}

.claim-top,
.claim-bottom {
  color: #35a7ff;
  font-weight: 500;
  letter-spacing: 0.34em;
  line-height: 1.2;
  text-shadow:
    0 0 10px rgba(32, 214, 255, 0.38),
    0 0 24px rgba(7, 153, 242, 0.2);
}

.claim-top {
  font-size: clamp(1rem, 1.6vw, 1.38rem);
}

.claim-bottom {
  font-size: clamp(0.92rem, 1.45vw, 1.18rem);
}

.claim-main {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.35rem, 2.45vw, 2.18rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.15;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

.claim-line {
  position: relative;
  width: min(470px, 74%);
  height: 4px;
  background: linear-gradient(90deg, rgba(7, 153, 242, 0) 0%, rgba(23, 110, 244, 0.22) 11%, rgba(23, 110, 244, 0.72) 27%, #27d7ff 50%, rgba(23, 110, 244, 0.72) 73%, rgba(23, 110, 244, 0.22) 89%, rgba(7, 153, 242, 0) 100%);
  clip-path: polygon(0 50%, 9% 35%, 48% 25%, 52% 25%, 91% 35%, 100% 50%, 91% 65%, 52% 75%, 48% 75%, 9% 65%);
  box-shadow:
    0 0 8px rgba(32, 214, 255, 0.78),
    0 0 18px rgba(7, 153, 242, 0.5),
    0 0 34px rgba(7, 153, 242, 0.22);
}

.eyebrow,
.section-kicker,
.role {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 3.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: 0;
  opacity: 0.9;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.46);
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

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

.hero-actions {
  justify-content: center;
}

.button {
  padding: 13px 18px;
  border: 1px solid transparent;
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 38px rgba(7, 153, 242, 0.27);
}

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

.section,
.band {
  padding: 104px clamp(20px, 5vw, 72px);
}

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

.split,
.section-heading,
.contact-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro > .section-kicker {
  width: min(var(--max), 100%);
  margin: 0 auto 12px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.lead-block {
  color: var(--muted);
  font-size: 1.08rem;
  padding-top: 18px;
}

.lead-block p:last-child,
.contact p:last-child {
  margin-bottom: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.96fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
  margin-bottom: 46px;
}

.section-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0;
  padding-top: 18px;
}

.service-grid,
.team-grid,
.timeline {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

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

.service-card,
.person-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 40px rgba(12, 44, 73, 0.06);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 28px;
}

.service-card svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  margin-bottom: 28px;
  color: var(--blue);
}

.service-card h3 {
  min-height: 46px;
  margin-bottom: 14px;
}

.service-card p,
.person-card p,
.contact p,
.timeline p {
  color: var(--muted);
}

.service-card p {
  margin-bottom: 0;
}

.contact p {
  max-width: 620px;
  margin-top: 24px;
}

.contact .contact-actions {
  align-items: flex-start;
  margin-top: 44px;
}

.contact-primary-stack {
  display: grid;
  gap: 12px;
}

.contact-primary-stack .button {
  width: 100%;
}

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

.process .section-heading p,
.process .timeline p {
  color: rgba(255, 255, 255, 0.68);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.timeline article {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 28px;
  background: #071421;
}

.timeline span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--cyan);
  font-weight: 800;
}

.timeline h3 {
  min-height: 30px;
  margin-bottom: 12px;
}

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

.person-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
}

.person-initials {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  margin-bottom: 28px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), #063c9c);
  font-weight: 800;
  font-size: 1.35rem;
}

.person-card .role {
  min-height: 32px;
  margin-bottom: 10px;
}

.person-card h3 {
  min-height: 30px;
  margin-bottom: 14px;
}

.person-card p:not(.role) {
  margin-bottom: 0;
}

.contact {
  background:
    linear-gradient(135deg, rgba(7, 153, 242, 0.1), rgba(255, 255, 255, 0) 42%),
    var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.58fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.contact-panel {
  padding: 30px;
}

.contact-panel dl {
  display: grid;
  gap: 22px;
  margin: 0;
}

.contact-panel dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-panel dd {
  margin: 0;
  font-weight: 700;
}

.address-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.map-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  padding: 8px 10px;
  border: 1px solid rgba(7, 153, 242, 0.22);
  border-radius: 8px;
  background: rgba(7, 153, 242, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.map-link svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.contact-panel a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.hours {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hours h3 {
  margin-bottom: 14px;
}

.hours-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.hours-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 24px;
  align-items: baseline;
}

.hours-list dt,
.hours-list dd {
  margin: 0;
}

.hours-list dt {
  color: var(--muted);
  font-weight: 600;
}

.hours-list dd {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #030813;
}

.site-footer img {
  width: 260px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 16px;
  font-weight: 700;
}

.legal-header {
  position: sticky;
}

.legal-page {
  padding: 128px clamp(20px, 5vw, 72px) 96px;
  background:
    linear-gradient(180deg, rgba(7, 153, 242, 0.07), rgba(247, 251, 255, 0) 300px),
    var(--paper);
}

.legal-content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.legal-content h1 {
  margin-bottom: 30px;
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  opacity: 1;
  text-shadow: none;
}

.legal-content h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.15;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content a {
  color: var(--blue-2);
  font-weight: 700;
  overflow-wrap: break-word;
}

.legal-content ul {
  margin: 0 0 22px;
  padding-left: 22px;
}

.estimate-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(7, 153, 242, 0.11), transparent 32%),
    var(--paper);
}

.estimate-content {
  width: min(1120px, 100%);
}

.estimate-intro {
  max-width: 760px;
  margin-bottom: 34px;
}

.estimate-form {
  display: grid;
  gap: 30px;
}

.estimate-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
}

.field-group-title {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.form-separator {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.required-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.field-wide,
.choice-group,
.tooth-section,
.abbreviation-box {
  grid-column: 1 / -1;
}

.field span,
.choice-group legend {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.tooth-chart input {
  width: 100%;
  border: 1px solid rgba(11, 28, 47, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input {
  min-height: 48px;
  padding: 0 14px;
}

.field select {
  min-height: 48px;
  padding: 0 14px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
    #fff;
}

.field textarea {
  resize: vertical;
  padding: 13px 14px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.tooth-chart input:focus {
  border-color: rgba(7, 153, 242, 0.75);
  box-shadow: 0 0 0 4px rgba(7, 153, 242, 0.12);
}

.choice-group {
  display: grid;
  gap: 13px 22px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.choice-group input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

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

.material-grid legend {
  grid-column: 1 / -1;
}

.tooth-section {
  display: grid;
  gap: 12px;
}

.tooth-section h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.abbreviation-box h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.tooth-section p {
  justify-self: end;
  margin: 0 0 8px;
  text-align: right;
  white-space: nowrap;
}

.tooth-chart {
  grid-column: 1 / -1;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tooth-row {
  display: grid;
  grid-template-columns: repeat(16, minmax(48px, 1fr));
  min-width: 780px;
}

.tooth-row > * {
  min-height: 42px;
  border-right: 1px solid rgba(11, 28, 47, 0.28);
  border-bottom: 1px solid rgba(11, 28, 47, 0.28);
}

.tooth-row > *:first-child {
  border-left: 1px solid rgba(11, 28, 47, 0.28);
}

.tooth-row:first-child > * {
  border-top: 1px solid rgba(11, 28, 47, 0.28);
}

.tooth-row > *:nth-child(8) {
  border-right: 3px solid rgba(11, 28, 47, 0.76);
}

.tooth-row.upper > *,
.tooth-row.lower > * {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 800;
}

.tooth-row.upper > * {
  border-bottom: 3px solid rgba(11, 28, 47, 0.76);
}

.tooth-chart input {
  min-height: 42px;
  padding: 5px;
  border-radius: 0;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.abbreviation-box {
  padding: 12px 14px;
  border: 2px solid rgba(11, 28, 47, 0.72);
  border-radius: var(--radius);
  font-size: 0.82rem;
}

.abbreviation-box dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 8px 0 0;
}

.abbreviation-box div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
}

.abbreviation-box dt,
.abbreviation-box dd {
  margin: 0;
}

.abbreviation-box dt {
  color: var(--ink);
  font-weight: 800;
}

.abbreviation-box dd {
  color: var(--muted);
}

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

.privacy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.privacy-check a {
  color: var(--blue-2);
  font-weight: 800;
}

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

  .brand {
    width: 204px;
    height: 54px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(5, 14, 26, 0.96);
  }

  .site-header.is-open .site-nav {
    display: grid;
  }

  .header-action {
    display: none;
  }

  .split,
  .section-heading,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .lead-block,
  .section-heading > p {
    padding-top: 0;
  }

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

@media (max-width: 680px) {
  .hero {
    min-height: 100vh;
    padding: 110px 20px 80px;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 2.75rem);
  }

  .hero-content,
  .hero-claim {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .hero-content {
    bottom: clamp(34px, 5vh, 58px);
  }

  .hero-claim {
    gap: 13px;
  }

  .claim-top,
  .claim-bottom {
    max-width: 300px;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .claim-main {
    max-width: 310px;
    font-size: 1.34rem;
    letter-spacing: 0.08em;
  }

  .claim-line {
    width: min(285px, 74vw);
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(3, 8, 19, 0.93) 0%, rgba(3, 8, 19, 0.64) 100%),
      linear-gradient(0deg, rgba(3, 8, 19, 0.9) 0%, rgba(3, 8, 19, 0) 46%);
  }

  .hero-media img {
    object-fit: cover;
    object-position: 58% center;
    transform: scale(0.92);
  }

  .section,
  .band {
    padding: 72px 20px;
  }

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

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .person-card {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    flex-direction: column;
    gap: 8px;
  }

  .estimate-section,
  .material-grid,
  .abbreviation-box dl {
    grid-template-columns: 1fr;
  }

  .hours-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .address-row {
    flex-direction: column;
    gap: 12px;
  }
}
