/* Vienna Family Dental: one cool ground, one ink, the logo's blue for the one action. */
:root {
  --ground: #eef0ef;
  --paper: #f8f8f6;
  --ink: #17212b;
  --mute: #56606a;
  --line: #d3d8da;
  --blue: #1f5595;
  --blue-dk: #173f70;
  --wrap: 1140px;
  --gut: 30px;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
[id] { scroll-margin-top: 110px; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9; background: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 500; font-size: 15px;
  border-radius: 2px; white-space: nowrap;
}
.btn:hover { background: var(--blue-dk); }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 17px; }
.link-call { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; }
.arrow { position: relative; width: 36px; height: 1px; background: currentColor; transition: width .2s; }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); transform-origin: 100% 0; top: 0; }
.more:hover .arrow { width: 48px; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* header: on the hero photo, like the blueprint */
.site-head { position: absolute; inset: 0 0 auto; z-index: 5; }
.head-row { display: flex; align-items: center; gap: 40px; height: 96px; width: min(1340px, 100% - 48px); }
.brand img { width: 200px; }
.logo-dark { display: none; }
.site-head { color: #fff; }
.nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.head-act { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.tel { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 15px; }
.tel svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* hero: full-bleed photo, the words on the empty wall */
.hero { position: relative; height: min(920px, 100vh); min-height: 700px; overflow: hidden; background: #e6e4df; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 20, 30, .62) 0%, rgba(12, 20, 30, .45) 38%, rgba(12, 20, 30, 0) 58%), linear-gradient(rgba(12, 20, 30, .35), rgba(12, 20, 30, 0) 160px); }
.hero-in { z-index: 1; }
.hero-text { color: #fff; }
.hero .kicker { color: rgba(255, 255, 255, .85); }
.hero .stars { color: #fff; }
.hero .proof a { border-color: rgba(255, 255, 255, .5); }

.hero-in { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 96px; }
.hero-text { max-width: 560px; }
.kicker { font-size: 15px; font-weight: 500; color: var(--mute); margin-bottom: 22px; }
h1 { font-size: 84px; line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 28px; }
.lede { font-size: 20px; line-height: 1.5; max-width: 480px; margin-bottom: 34px; }
.proof { margin-top: 26px; font-size: 15px; font-weight: 500; }
.proof a { text-decoration: none; border-bottom: 1px solid var(--line); }
.stars { color: var(--blue); letter-spacing: 2px; }

/* sections: one ground, the blueprint's title-left, link-right */
.sec { padding: 130px 0 0; }
.sec-tight { padding-top: 120px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 14px; }
h2 { font-size: 40px; line-height: 1.1; }
.sec-sub { color: var(--mute); max-width: 560px; margin-bottom: 44px; font-size: 17px; }
.sec-head + .cases, .sec-head + .docs, .sec-head + .tiles { margin-top: 40px; }

/* tiles: the blueprint's object grid, captions centered beneath */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px var(--gut); }
.tiles a { display: block; text-decoration: none; text-align: center; }
.tiles img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 22px; transition: opacity .2s; }
.tiles a:hover img { opacity: .9; }
.tiles img.illo { object-fit: contain; background: var(--paper); padding: 40px; }
.tiles strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tiles span { display: block; color: var(--mute); font-size: 15px; margin-top: 4px; }
.tiles-left a { text-align: left; }
.tiles-left strong { font-size: 21px; font-weight: 500; }
.also { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 15px; }
.also a { color: var(--ink); font-weight: 500; }

/* cases: the blueprint's two-up overlay tiles */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.case { margin: 0; }
.case-pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--ground); }
.case-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 62%; }
.case-pair::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgba(10, 16, 24, .55), rgba(10, 16, 24, 0)); pointer-events: none; }
.case-title { position: absolute; top: 24px; left: 26px; color: #fff; font-size: 26px; }
.tag { position: absolute; bottom: 18px; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; background: rgba(10, 16, 24, .55); padding: 4px 9px; }
.tag-l { left: 18px; }
.tag-r { left: calc(50% + 18px); }
.case figcaption { margin-top: 18px; color: var(--mute); font-size: 15px; max-width: 500px; }

/* reviews: type only, in the grid */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px var(--gut); }
.rev-main { grid-column: span 2; }
.rev-main h2 { margin-bottom: 40px; }
.q-big { margin: 0; }
.q-big p { font-size: 36px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 400; text-indent: -0.4em; }
blockquote footer { margin-top: 18px; font-size: 15px; color: var(--mute); font-weight: 500; }
.rating { align-self: end; border-left: 1px solid var(--line); padding-left: 40px; }
.score { font-size: 96px; line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.rating .stars { font-size: 20px; margin: 6px 0 8px; }
.rating p:not(.score):not(.stars) { color: var(--mute); margin-bottom: 18px; }
.q-small { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.q-small p { font-size: 17px; line-height: 1.55; }
.rev-cta { padding-top: 24px; border-top: 1px solid var(--ink); }
.rev-cta p { font-size: 17px; margin-bottom: 22px; }
.early-days { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; margin-bottom: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.early-days strong { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; }
.early-days span { color: var(--mute); font-size: 15px; }

/* full-bleed bands: the hero's shape again, with a solid panel */
.band { position: relative; margin-top: 140px; min-height: 680px; display: flex; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.band-in { position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 80px 0; }
.panel { background: var(--paper); padding: 48px 48px 44px; width: 500px; }
.panel h2 { margin-bottom: 18px; font-size: 36px; }
.panel > p { color: var(--ink); margin-bottom: 22px; }
.hours { margin: 0 0 28px; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--mute); }
.band-visit { margin-top: 140px; min-height: 760px; }
.band-visit .band-in { justify-content: flex-start; }
.band-visit .panel .actions { margin-top: 4px; }
.band-visit .band-img { object-position: 50% 60%; }
address { font-style: normal; font-size: 20px; line-height: 1.4; margin-bottom: 14px; }
.small { margin-top: 22px; font-size: 14px; color: var(--mute); }
.credit { position: absolute; right: 0; bottom: 16px; font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
.neighbor { font-size: 13px; color: var(--mute); margin: -6px 0 14px; }

/* booking: the form beside the reassurance, in the grid */
.book { padding-top: 96px; }
.book-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gut); padding-top: 10px; border-top: 1px solid var(--ink); }
.book-intro h2 { margin: 30px 0 18px; }
.book-intro > p:first-of-type { font-size: 18px; margin-bottom: 26px; max-width: 330px; }
.book-alt { color: var(--mute); font-size: 15px; margin-bottom: 14px; max-width: 330px; }
.book-alt a { color: var(--ink); font-weight: 600; }
.book-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gut); padding-top: 38px; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: 15px; font-weight: 600; }
.field label span { font-weight: 400; color: var(--mute); }
.field legend { padding: 0; margin-bottom: 10px; }
.field input[type=text], .field input[type=tel], .field select {
  font: inherit; height: 52px; padding: 0 14px; border: 1px solid #b9c1c6; background: var(--paper); color: var(--ink); border-radius: 2px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
fieldset.field { flex-direction: row; flex-wrap: wrap; gap: 10px 28px; }
fieldset.field legend { width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 10px; font-weight: 400 !important; min-height: 32px; }
.radio input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.submit-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.submit-row p { color: var(--mute); font-size: 14px; }
button.btn { border: 0; font-family: inherit; cursor: pointer; }

/* team: the blueprint's tall story row, then everyone */
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gut); }
.docs img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 22px; }
.docs h3 { font-size: 23px; }
.role { color: var(--blue); font-weight: 500; font-size: 15px; margin: 4px 0 12px; }
.docs p:last-child { color: var(--mute); font-size: 15px; }
.crew { margin-top: 90px; }
.crew-note { font-size: 19px; line-height: 1.45; max-width: 640px; margin-bottom: 28px; }
.faces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 16px; }
.faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.faces span { display: block; font-size: 15px; font-weight: 600; margin-top: 10px; line-height: 1.3; }
.faces small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }

/* insurance: two-up as a split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut) 90px; align-items: center; }
.split-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.split-text h2 { margin-bottom: 24px; }
.split-text > p { font-size: 17px; margin-bottom: 16px; max-width: 470px; }
.facts { list-style: none; padding: 0; margin: 28px 0 34px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.facts strong { color: var(--ink); font-weight: 600; }
.ph { background: #fff6cf; color: #5d4a00; padding: 1px 4px; }

/* footer: quiet, same ground */
.site-foot { padding: 110px 0 40px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--gut); }
.foot-logo { width: 190px; margin: -10px 0 18px -6px; }
.site-foot h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.site-foot p, .site-foot li { color: var(--mute); line-height: 1.8; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }

@supports (animation-timeline: scroll()) {
  @media (min-width: 761px) {
    .site-head { position: fixed; animation: head-solid linear both; animation-timeline: scroll(root); animation-range: 560px 640px; }
    .site-head .logo-light { animation: fade-out linear both; animation-timeline: scroll(root); animation-range: 560px 640px; }
    .site-head .logo-dark { display: block; position: absolute; top: 50%; transform: translateY(-50%); width: 170px; opacity: 0; animation: fade-in linear both; animation-timeline: scroll(root); animation-range: 560px 640px; }
    .brand { position: relative; display: block; }
    .head-row { transition: none; }
  }
}
@keyframes head-solid { to { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* narrower desktops */
@media (max-width: 1240px) {
  .nav { display: none; }
}

/* phone */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .site-head { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .head-row { height: 64px; gap: 12px; width: calc(100% - 32px); }
  .brand img { width: 118px; }
  .head-act { gap: 14px; }
  .tel span { display: none; }
  .site-head { color: var(--ink); }
  .logo-light { display: none; }
  .logo-dark { display: block; }
  .hero::after { display: none; }
  .hero-text { color: var(--ink); }
  .hero .kicker { color: var(--mute); }
  .hero .stars { color: var(--blue); }
  .hero .proof a { border-color: var(--line); }
  .hero .btn { background: var(--blue); color: #fff; }
  .tel { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 2px; }
  .tel svg { width: 18px; height: 18px; }
  .wide { display: none; }
  .btn { padding: 0 18px; }
  .hero { height: auto; min-height: 0; background: none; }
  .hero-img { position: static; height: 330px; object-position: 82% 35%; }
  .hero-in { display: block; padding: 28px 0 0; }
  .kicker { font-size: 14px; margin-bottom: 12px; }
  h1 { font-size: 48px; margin-bottom: 16px; }
  .lede { font-size: 17px; margin-bottom: 24px; }
  .btn-lg { width: 100%; justify-content: center; }
  .actions { gap: 16px 20px; }
  .proof { margin-top: 18px; }
  .sec, .sec-tight { padding-top: 88px; }
  h2 { font-size: 31px; }
  .sec-head { flex-wrap: wrap; }
  .sec-head .more { font-size: 14px; }
  .sec-sub { margin-bottom: 32px; font-size: 16px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .tiles strong { font-size: 16px; }
  .tiles span { font-size: 14px; }
  .tiles img { margin-bottom: 14px; }
  .tiles-left { grid-template-columns: 1fr; }
  .tiles-left strong { font-size: 19px; }
  .cases { grid-template-columns: 1fr; gap: 48px; }
  .case-title { font-size: 22px; top: 18px; left: 18px; }
  .reviews { grid-template-columns: 1fr; gap: 36px; }
  .rev-main { grid-column: auto; }
  .q-big p { font-size: 26px; }
  .rating { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .score { font-size: 72px; }
  .band, .band-visit { margin-top: 88px; min-height: 0; display: block; }
  .band-img { position: static; height: 300px; }
  .band-in { padding: 0; display: block; width: 100%; }
  .panel { width: 100%; padding: 36px 20px 40px; }
  .panel h2 { font-size: 31px; }
  .book-grid { grid-template-columns: 1fr; gap: 8px; }
  .credit { position: static; color: var(--mute); text-shadow: none; padding: 8px 20px 0; }
  .book-form { grid-template-columns: 1fr; padding-top: 18px; gap: 20px; }
  .submit-row .btn { width: 100%; justify-content: center; }
  .faces span { font-size: 14px; }
  .docs { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; width: calc(100% + 20px); }
  .docs li { scroll-snap-align: start; }
  .crew { grid-template-columns: 1fr; margin-top: 48px; gap: 24px; }
  .crew-note { font-size: 17px; max-width: none; }
  .faces { grid-template-columns: repeat(3, 1fr); gap: 16px 10px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-img { aspect-ratio: 4 / 3; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .site-foot { padding-top: 80px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-base { margin-top: 48px; }
}
