/* The Natural Tooth — site styles. Plain CSS, no build step. */

:root {
  /* Ground, ink and one accent (white) */
  --ground: #0e0e0e;
  --ground-2: #141414;
  --ground-3: #1f1f1f;
  --paper: #f3f3f1;
  --ink: #f4f4f2;
  --ink-soft: #b4b4b0;
  --accent: #ffffff;
  --accent-hover: #e4e4e1;
  --accent-ink: #111111;

  /* One gradient: near-black on the left easing into soft grey on the right, as on the original site */
  --grad-band: linear-gradient(100deg, #0e0e0e 0%, #111111 38%, #1c1c1c 58%, #2f2f2f 78%, #4a4a4a 100%);
  --grad-card: linear-gradient(110deg, #181818 0%, #222222 50%, #3d3d3d 100%);
  --scrim:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 60%);

  /* Type */
  --font-display: "Sentient", Georgia, "Times New Roman", serif;
  --font-text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  --step-display: clamp(3rem, 1.6rem + 6vw, 7.5rem);

  /* Space */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section: clamp(88px, 6rem + 4vw, 168px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.015em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 var(--step-small)/1 var(--font-text); letter-spacing: 0.005em; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(242, 238, 231, 0.55); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(242, 238, 231, 0.08); }
.btn .arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--accent); text-decoration: none; }
.link-arrow span { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  transition: background-color 0.35s, box-shadow 0.35s;
}
.nav.is-solid { background: rgba(14, 14, 14, 0.96); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 100%; max-width: none; padding-inline: clamp(16px, 3vw, 40px); }
.nav-logo { flex: none; display: block; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; white-space: nowrap;
  font: 500 var(--step-small)/1 var(--font-text); color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; border-radius: 999px;
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links .sub-toggle:hover { background: rgba(242, 238, 231, 0.1); }
.nav-links a[aria-current="page"], .nav-links .is-current > .sub-toggle { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.sub-toggle svg { transition: transform 0.25s var(--ease-out); }
.has-sub[data-open] .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px;
  background: #1b1b1b; border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  display: none;
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub[data-open] .sub { display: block; animation: drop 0.25s var(--ease-out); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.sub a { display: flex; width: 100%; padding: 12px 14px; border-radius: 10px; }
.sub a[target]::after { content: "↗"; margin-left: auto; opacity: 0.6; }
.nav-links > li.nav-cta { margin-left: 12px; }
.nav-links .nav-cta a, .nav-links .nav-cta a:hover { padding: 12px 22px; color: var(--accent-ink); background: var(--accent); }
.nav-links .nav-cta a:hover { background: var(--accent-hover); }
.nav-toggle { display: none; }

@media (max-width: 1320px) and (min-width: 1181px) {
  .nav-links > li > a[href="/"] { display: none; }
}
@media (max-width: 1180px) {
  :root { --nav-h: 68px; }
  .nav-logo img { height: 34px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 48px; height: 48px; padding: 0 13px; background: none; border: 0; cursor: pointer; border-radius: 999px;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
  .nav[data-menu-open] .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-menu-open] .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav[data-menu-open] .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 12px var(--gutter) 40px; overflow-y: auto;
    background: var(--grad-band); background-color: var(--ground);
    display: none;
  }
  .nav[data-menu-open] { background: var(--ground); }
  .nav[data-menu-open] .nav-links { display: flex; animation: drop 0.3s var(--ease-out); }
  .nav-links > li > a[href="/"] { display: flex; }
  .nav-links a, .nav-links .sub-toggle { width: 100%; padding: 14px 4px; font-size: var(--step-lead); border-radius: 0; }
  .nav-links a:hover, .nav-links .sub-toggle:hover { background: none; color: var(--accent); }
  .sub-toggle svg { display: none; }
  .sub, .has-sub:hover .sub { display: block; position: static; animation: none; background: none; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .sub a { font-size: var(--step-body); padding: 10px 4px; }
  .nav-links > li.nav-cta { margin: 24px 0 0; }
  .nav-links .nav-cta a, .nav-links .nav-cta a:hover { width: auto; font-size: var(--step-small); padding: 14px 24px; border-radius: 999px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 64svh, 720px); display: flex; align-items: flex-end;
  background: var(--ground);
}
.hero-home { min-height: max(600px, 100svh); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; }
.hero-media img + img { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--scrim); }
.hero-content { padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: var(--step-display); max-width: 14ch; }
.hero-sub { margin: 20px 0 0; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; color: var(--ink); }
.hero-sub strong { font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero:not(.hero-home) h1 { font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem); }

/* Bands carry the gradients */
.band { position: relative; padding-block: var(--section); background: var(--grad-band); background-color: var(--ground); }
.band-alt { background: var(--grad-band); background-color: var(--ground-2); }
.band-tight { padding-block: clamp(64px, 4rem + 3vw, 120px); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); max-width: 760px; }
.section-head h2, .h2 { font-size: var(--step-head); }
.section-head p { color: var(--ink-soft); font-size: var(--step-lead); line-height: 1.45; margin: 0; }

/* ---------- Home: welcome ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.welcome h2 { font-size: var(--step-head); margin-bottom: 36px; }
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 32px; max-width: 26ch; }
.prose p { max-width: 64ch; }

.hours { background: rgba(242, 238, 231, 0.06); border-radius: 24px; padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--nav-h) + 24px); }
.hours h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-lead); color: var(--ink); margin-bottom: 8px; }
.status { display: flex; align-items: center; gap: 10px; min-height: 1.6em; margin: 0 0 20px; font-weight: 500; color: var(--ink-soft); }
.status[data-state="open"] { color: #9fd8b4; }
.status[data-state="open"]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(159, 216, 180, 0.18); }
.hours table { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 11px 0; text-align: left; font-weight: 400; border-bottom: 1px solid rgba(242, 238, 231, 0.1); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours td { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); font-weight: 600; }
.hours .btn { width: 100%; margin-top: 24px; }

/* Home: inside the practice (uneven photographs) */
.practice { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.practice .head { grid-column: 1 / 7; }
.practice .head h2 { font-size: var(--step-head); margin-bottom: 20px; }
.practice .head p { color: var(--ink-soft); max-width: 44ch; }
.practice .p-wide { grid-column: 1 / 8; grid-row: 2; }
.practice .p-tall { grid-column: 9 / 13; grid-row: 1 / 3; margin-top: 40px; }
.practice .p-team { grid-column: 3 / 9; grid-row: 3; margin-top: 24px; }
.practice .p-note { grid-column: 9 / 13; grid-row: 3; align-self: end; }
.tile { display: block; text-decoration: none; color: var(--ink); }
.tile figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--ground-3); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; font-size: var(--step-lead); }
.tile .cap strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-lead); letter-spacing: -0.01em; }
.tile .cap span { color: var(--accent); white-space: nowrap; transition: transform 0.25s var(--ease-out); }
.tile:hover .cap span { transform: translateX(4px); }
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.contact h2 { font-size: var(--step-head); margin-bottom: 20px; }
.map { position: relative; min-height: 420px; border-radius: 4px; overflow: hidden; background: var(--ground-3); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.contact-info { display: flex; flex-direction: column; justify-content: center; }
.contact-info .lead { color: var(--ink-soft); font-size: var(--step-lead); line-height: 1.4; margin-bottom: 32px; }
.contact-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
.contact-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 14px; text-decoration: none; background: rgba(242, 238, 231, 0.05); transition: background-color 0.2s, color 0.2s; }
.contact-list a:hover { background: rgba(242, 238, 231, 0.1); }
.contact-list small { font-size: var(--step-small); color: var(--ink-soft); }
.contact-list span { font-weight: 500; }
.contact-list a:hover span { color: var(--accent); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer { background: #080808; padding: 56px 0 40px; font-size: var(--step-small); color: var(--ink-soft); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 32px; }
.footer-top img { height: 44px; width: auto; }
.footer nav ul { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.footer .credit { flex-basis: 100%; }
.footer .credit a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 8px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(32px, 3vw, 48px) clamp(20px, 2.4vw, 32px); }
.service figure { margin: 0 0 20px; aspect-ratio: 1 / 1; border-radius: 4px; overflow: hidden; background: var(--paper); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.service:hover img { transform: scale(1.04); }
.service h2 { font-size: var(--step-lead); font-weight: 400; line-height: 1.15; margin-bottom: 10px; }
.service p { color: var(--ink-soft); margin: 0; }

.cta { border-radius: 28px; padding: clamp(36px, 5vw, 72px); background: var(--grad-card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); max-width: 18ch; }
.cta p { color: var(--ink-soft); margin: 14px 0 0; max-width: 46ch; }
.cta .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Doctors ---------- */
.doctor { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doctor + .doctor { margin-top: var(--section); }
.doctor:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.doctor:nth-of-type(even) .doctor-photo { order: 2; }
.doctor-photo { position: sticky; top: calc(var(--nav-h) + 24px); margin: 0; }
.doctor-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 4px; background: var(--ground-3); }
.doctor h2 { font-size: var(--step-head); margin-bottom: 28px; }
.doctor .doctor-role { margin: -16px 0 28px; font-size: var(--step-lead); color: var(--ink-soft); }
.doctor .prose p { color: var(--ink); }
.doctor .family { margin: 40px 0 0; }
.doctor .family img { width: 100%; border-radius: 4px; }
.doctor .family figcaption, .figure-cap { margin-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }

/* ---------- Team ---------- */
.team-wall { margin: 0 0 clamp(56px, 7vw, 104px); }
.team-wall img { width: 100%; border-radius: 4px; }
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(32px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.member { flex: 0 1 calc((100% - 2 * clamp(20px, 3vw, 40px)) / 3); margin: 0; }
.member img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: var(--ground-3); }
.member h2 { font-size: var(--step-lead); font-weight: 400; margin: 18px 0 4px; }
.member p { color: var(--ink-soft); margin: 0; }
.team-porch { margin: clamp(64px, 8vw, 120px) auto 0; max-width: 920px; }
.team-porch img { width: 100%; border-radius: 4px; }

/* ---------- Office mosaic & gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.mosaic .shot { position: relative; padding: 0; border: 0; background: var(--ground-3); cursor: zoom-in; overflow: hidden; border-radius: 4px; display: block; }
.mosaic .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.mosaic .shot:hover img { transform: scale(1.04); }
.m-sign { grid-column: 1 / 5; aspect-ratio: 4 / 3; }
.m-patio { grid-column: 1 / 5; aspect-ratio: 4 / 3; }
.m-exterior { grid-column: 5 / 13; grid-row: 1 / 3; }
.m-half { grid-column: span 6; aspect-ratio: 16 / 11; }
.m-third { grid-column: span 4; aspect-ratio: 1 / 1; }
.m-big { grid-column: 1 / 9; aspect-ratio: 4 / 3; }
.m-hall { grid-column: 9 / 13; }

.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); max-width: 1000px; margin-inline: auto; }
.cases .shot { aspect-ratio: 1 / 1; }
.cases .shot img { background: #fff; }
.cases figure { margin: 0; }

dialog.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(4, 9, 8, 0.88); }
dialog.lightbox img { max-width: 100%; max-height: 86vh; width: auto; margin: 0 auto; border-radius: 4px; }
dialog.lightbox .lb-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(242, 238, 231, 0.12); color: var(--ink); font-size: 1.5rem; cursor: pointer; }
dialog.lightbox .lb-close:hover { background: rgba(242, 238, 231, 0.22); }
dialog.lightbox p { text-align: center; margin: 14px 0 0; color: var(--ink-soft); font-size: var(--step-small); }

/* ---------- Media ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.post-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); border-radius: 20px; background: var(--grad-card); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease-out); }
.posts:not(.more) .post-card:first-child { grid-column: 1 / -1; }
.posts:not(.more) .post-card:first-child h3 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); max-width: 30ch; }
.post-card:hover { transform: translateY(-4px); }
.post-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.12; }
.post-card p { color: var(--ink-soft); margin: 0; max-width: 62ch; }
.post-card .post-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 12px; font-size: var(--step-small); color: var(--ink-soft); }
.post-card .post-foot span:last-child { color: var(--ink); font-weight: 500; white-space: nowrap; transition: transform 0.25s var(--ease-out); }
.post-card:hover .post-foot span:last-child { transform: translateX(4px); }

.post { padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 96px)); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.post-head { grid-column: 1 / -1; max-width: 1120px; }
.post-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); line-height: 1.02; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--ink-soft); font-size: var(--step-small); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.byline strong { display: block; color: var(--ink); font-weight: 500; font-size: var(--step-body); }
.post-body { max-width: 68ch; }
.post-body > p:first-child { font-size: var(--step-lead); line-height: 1.5; }
.post-body h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); margin: 48px 0 16px; }
.post-body ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.post-body li { margin-bottom: 0.6em; padding-left: 0.2em; }
.post-body li::marker { color: var(--ink-soft); }
.post-body strong { font-weight: 600; }
.post-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.post-aside a { display: block; color: var(--ink-soft); text-decoration: none; font-size: var(--step-small); }
.post-aside figure { margin: 0 0 12px; border-radius: 4px; overflow: hidden; background: var(--paper); }
.post-aside a:hover { color: var(--ink); }
.post-back { margin-top: 56px; }

/* ---------- Patient forms ---------- */
.forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.form-card { display: flex; flex-direction: column; gap: 16px; min-height: 300px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; text-decoration: none; color: var(--ink); background: var(--grad-card); transition: transform 0.35s var(--ease-out); }
.form-card:hover { transform: translateY(-4px); }
.form-card h2 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); }
.form-card p { color: var(--ink-soft); margin: 0; max-width: 40ch; }
.form-card .btn { margin-top: auto; align-self: flex-start; }
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 80px); margin-top: var(--section); }
.visit h2 { font-size: var(--step-head); }
.visit > p { color: var(--ink-soft); font-size: var(--step-lead); line-height: 1.45; margin: 0; align-self: end; }
.visit-photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: 24px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: flex; align-items: center; background: var(--grad-card); }
.notfound h1 { font-size: var(--step-display); }
.notfound p { color: var(--ink-soft); font-size: var(--step-lead); margin: 20px 0 36px; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero-media img:first-child { animation: settle 2.4s var(--ease-out) both; }
.hero-content > * { animation: rise 1s var(--ease-out) both; }
.hero-content > :nth-child(2) { animation-delay: 0.12s; }
.hero-content > :nth-child(3) { animation-delay: 0.24s; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-media img.fade { transition: opacity 1.6s ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .welcome, .contact, .doctor, .doctor:nth-of-type(even) { grid-template-columns: 1fr; }
  .doctor:nth-of-type(even) .doctor-photo { order: 0; }
  .doctor-photo { position: static; max-width: 420px; }
  .hours { position: static; }
  .practice { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .practice .head { grid-column: 1 / -1; }
  .practice .p-wide { grid-column: 1 / -1; grid-row: auto; }
  .practice .p-tall { grid-column: 2 / -1; grid-row: auto; margin-top: 24px; }
  .practice .p-team { grid-column: 1 / 6; grid-row: auto; }
  .practice .p-note { grid-column: 1 / -1; grid-row: auto; }
  .member { flex-basis: calc((100% - clamp(20px, 3vw, 40px)) / 2); }
  .forms { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .post-aside { position: static; max-width: 240px; }
  .visit { grid-template-columns: 1fr; }
  .visit-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map { min-height: 320px; }
  .m-sign, .m-patio { grid-column: span 6; }
  .m-exterior { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .m-third { grid-column: span 6; }
  .mosaic { grid-auto-flow: dense; }
  .m-third.m-full-sm { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .m-big { grid-column: 1 / -1; }
  .m-hall { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .hero-home { min-height: 100svh; }
  .hero-actions .btn { flex: 1 1 auto; }
  .services { grid-template-columns: 1fr; }
  .service { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
  .service figure { margin: 0; }
  .posts { grid-template-columns: 1fr; }
  .member { flex-basis: 100%; }
  .cases { grid-template-columns: 1fr; }
  .cta { border-radius: 20px; }
  .cta .btns, .cta .btn { width: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
