/* Insita Dental — site styles. Plain CSS, local fonts only. */

@font-face { font-family: Newsreader; src: url('../fonts/Newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url('../fonts/Newsreader-Italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: InsitaSans; src: url('../fonts/Lato-Regular.woff2') format('woff2'), url('../fonts/Lato-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: InsitaSans; src: url('../fonts/Lato-Bold.woff2') format('woff2'), url('../fonts/Lato-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  /* Palette taken from the clinic interior: powder-blue walls, white cabinetry, royal-blue chairs. */
  --navy: #17335F;
  --navy-soft: #214580;
  --navy-deep: #0F2445;
  --royal: #2A5AA8;
  --sky: #B9CEE4;
  --white: #F7F9FC;
  --accent: #C9DBEE;
  --accent-ink: #2A5AA8;
  --stone: #EFF1F4;
  --mist: #DCE6F2;
  --ink: #1B2433;
  --soft: #E8EFF7;
  --paper: #FFFFFF;
  --line: #D5DEE9;
  --muted: #55627A;
  --ease-calm: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(15, 36, 69, .06), 0 24px 48px -24px rgba(15, 36, 69, .28);
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --sans: InsitaSans, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --space: clamp(72px, 10vw, 148px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; interpolate-size: allow-keywords; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--royal); outline-offset: 4px; }
::selection { background: var(--sky); color: var(--navy); }

h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); font-weight: 340; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: 1.02; letter-spacing: -.024em; font-weight: 300; }
h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); line-height: 1.08; letter-spacing: -.018em; }
h3 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -.01em; font-weight: 400; }
h1 em, h2 em { font-style: italic; color: var(--royal); font-weight: inherit; }
p + p { margin-top: 1.1em; }
strong { font-weight: 700; }

.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section-soft { background: var(--soft); }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 28px; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; font-weight: 340; color: #333D50; margin-top: 32px; max-width: 34em; }
.large-copy { font-family: var(--serif); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.3; font-weight: 340; color: var(--navy); letter-spacing: -.01em; }
.small, .caption { font-size: 13px; color: var(--muted); }
.provider { font-size: 14px; color: var(--muted); letter-spacing: .01em; }

.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; background: #fff; padding: 12px 18px; }
.skip-link:focus { top: 12px; }

/* Buttons and links */
.actions { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 15px 30px; background: var(--navy); color: var(--white); border: 1px solid var(--navy); border-radius: 2px; font-size: 15px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-decoration: none; transition: background-color .35s ease, color .35s ease, border-color .35s ease; }
.button:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.button-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button-light:hover { background: #fff; border-color: #fff; }
.button-clay { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }
.button-clay:hover { background: #FFFFFF; border-color: #FFFFFF; }
.button-outline { background: transparent; color: var(--navy); }
.button-outline:hover { background: var(--navy); color: var(--white); }
.text-link { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .01em; text-decoration: underline; text-decoration-color: var(--royal); text-decoration-thickness: 1px; text-underline-offset: 7px; transition: text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: currentColor; }

/* Header */
.demo-bar { background: var(--navy-deep); color: #B4C4DA; font-size: 12.5px; letter-spacing: .02em; padding-block: 9px; }
.demo-bar .container { display: flex; justify-content: space-between; gap: 18px; }
.demo-bar a { text-decoration: underline; text-decoration-color: rgba(185, 203, 225, .45); text-underline-offset: 4px; }
.demo-bar a:hover { color: var(--white); text-decoration-color: currentColor; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(185, 206, 228, .16); transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { background: rgba(23, 51, 95, .97); box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .55); }
.nav-wrap { display: flex; justify-content: space-between; align-items: center; min-height: 92px; gap: 32px; }
.brand { width: 228px; flex-shrink: 0; }
.brand img { width: 100%; height: 66px; object-fit: contain; object-position: left center; }
.site-header nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); font-size: 15px; }
.site-header nav a { text-decoration: none; padding-block: 10px; color: var(--mist); transition: color .2s ease; }
.site-header nav a:not(.nav-cta) { background: linear-gradient(var(--accent), var(--accent)) no-repeat left calc(100% - 4px) / 0 1px; transition: background-size .25s ease, color .2s ease; }
.site-header nav a:not(.nav-cta):hover, .site-header nav a:not(.nav-cta)[aria-current=page] { background-size: 100% 1px; color: var(--white); }
.site-header nav .nav-cta { background: var(--accent); color: var(--navy-deep); border: 1px solid var(--accent); border-radius: 2px; padding: 11px 22px; font-weight: 700; letter-spacing: .02em; transition: background-color .2s ease; }
.site-header nav .nav-cta:hover, .site-header nav .nav-cta[aria-current=page] { background: #FFFFFF; border-color: #FFFFFF; }
.menu-toggle { display: none; background: transparent; border: 0; border-bottom: 1px solid var(--accent); padding: 6px 0; color: var(--white); font-size: 15px; font-weight: 700; letter-spacing: .02em; }

/* Navy bands that continue the header into each page */
.page-band { background: var(--navy); color: var(--mist); }
.page-band h1, .page-band h2 { color: var(--white); }
.page-band h1 em { color: var(--sky); }
.page-band .eyebrow, .home-hero .eyebrow, .lab-feature .eyebrow { color: var(--accent); }
.page-band .lead { color: var(--mist); }
.page-band .text-link, .home-hero .text-link { color: var(--white); }
.page-band .text-link, .home-hero .text-link { text-decoration-color: var(--sky); }
.page-band :focus-visible, .home-hero :focus-visible, .lab-feature :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .closing-panel :focus-visible { outline-color: var(--sky); }

/* Calm motion: page-to-page cross-fade, a soft entrance for the top of each page,
   and a slow fade-up as sections scroll into view. All of it is switched off for
   visitors who prefer reduced motion, and nothing is hidden if scripts do not run. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: calm-out .35s ease both; }
::view-transition-new(root) { animation: calm-in .6s ease both; }
.site-header { view-transition-name: site-header; }
.demo-bar { view-transition-name: demo-bar; }
@keyframes calm-out { to { opacity: 0; } }
@keyframes calm-in { from { opacity: 0; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }

.hero-copy > *, .page-head > *, .detail-hero > div > *, .practice-hero > div > *, .breadcrumb { animation: rise-in 1.1s var(--ease-calm) both; }
.hero-copy > :nth-child(1), .page-head > :nth-child(1), .detail-hero > div > :nth-child(1), .practice-hero > div > :nth-child(1) { animation-delay: .1s; }
.hero-copy > :nth-child(2), .page-head > :nth-child(2), .detail-hero > div > :nth-child(2), .practice-hero > div > :nth-child(2) { animation-delay: .22s; }
.hero-copy > :nth-child(3), .page-head > :nth-child(3), .detail-hero > div > :nth-child(3), .practice-hero > div > :nth-child(3) { animation-delay: .36s; }
.hero-copy > :nth-child(n+4), .page-head > :nth-child(n+4), .detail-hero > div > :nth-child(n+4), .practice-hero > div > :nth-child(n+4) { animation-delay: .5s; }
.breadcrumb { animation-name: fade-in; }
.hero-media img { animation: settle-in 2.4s var(--ease-calm) both; }
.hero-media figcaption { animation: fade-in 1.4s ease 1s both; }
.detail-hero figure, .brand-panel { animation: rise-in 1.4s var(--ease-calm) .3s both; }

.reveal-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease-calm), transform 1.2s var(--ease-calm); transition-delay: var(--reveal-delay, 0s); will-change: opacity, transform; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; will-change: auto; }
.reveal-ready .reveal-2 { --reveal-delay: .14s; }
.reveal-ready .reveal-3 { --reveal-delay: .28s; }

/* Arch frame — echoes the logo mark */
.brand-frame { overflow: hidden; background: var(--soft); border-radius: 24px; }
.brand-frame img { width: 100%; height: 100%; object-fit: cover; }
.brand-frame-wide { border-radius: 24px; }
figcaption { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Home hero */
.home-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--mist); display: flex; align-items: center; min-height: clamp(600px, 50vw, 800px); }
.home-hero > .container { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; padding-block: clamp(64px, 8vw, 120px); }
.home-hero h1 { color: var(--white); font-size: clamp(3rem, 6.6vw, 6.2rem); line-height: .98; }
.home-hero h1 em { display: block; color: var(--sky); }
.home-hero .lead { color: var(--mist); max-width: 24em; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 60%; }
.hero-media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23, 51, 95, .7) 0%, rgba(23, 51, 95, .35) 30%, rgba(23, 51, 95, 0) 50%), linear-gradient(0deg, rgba(15, 36, 69, .4) 0%, rgba(15, 36, 69, 0) 20%); }
.hero-media figcaption { position: absolute; z-index: 2; right: var(--gutter); bottom: 18px; margin: 0; font-size: 13px; color: rgba(247, 249, 252, .82); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* Statement */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: var(--space) 0; }
.statement-text { font-family: var(--serif); font-size: clamp(1.8rem, 3.3vw, 3rem); line-height: 1.15; letter-spacing: -.016em; font-weight: 320; color: var(--navy); text-wrap: balance; }
.statement-aside { padding-top: 12px; border-top: 1px solid var(--royal); }
.statement-aside p { font-size: 16px; color: var(--muted); margin-top: 18px; }
.statement-aside .text-link { margin-top: 26px; }

/* Care doorways */
.care-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(20px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.care-intro p { color: var(--muted); }
.care-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.care-list a { display: block; text-decoration: none; }
.care-door { display: block; aspect-ratio: 4 / 5; border-radius: 24px; background: var(--soft); overflow: hidden; transition: transform .6s var(--ease-calm), box-shadow .6s ease; }
.care-door img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-calm); }
.care-note { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); margin-top: clamp(32px, 4vw, 52px); }
.care-list a:hover .care-door { transform: translateY(-8px); box-shadow: var(--shadow); }
.care-list a:hover .care-door img { transform: scale(1.05); }
.care-title { display: block; margin-top: 30px; font-family: var(--serif); font-size: clamp(1.7rem, 2.5vw, 2.3rem); line-height: 1.1; letter-spacing: -.015em; font-weight: 340; color: var(--navy); }
.care-desc { display: block; margin-top: 12px; font-size: 16px; color: var(--muted); max-width: 26em; }
.care-more { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--royal); padding-bottom: 4px; transition: border-color .2s ease, padding-right .3s ease; }
.care-list a:hover .care-more { border-bottom-color: var(--navy); padding-right: 14px; }

/* Journey */
.journey { background: var(--soft); padding-block: var(--space); }
.journey-steps { list-style: none; padding: 0; counter-reset: journey; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.journey-steps li { counter-increment: journey; border-top: 1px solid var(--navy); padding-top: 22px; }
.journey-steps li::before { content: counter(journey, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent-ink); margin-bottom: 26px; }
.journey-steps h3 { font-size: 1.45rem; }
.journey-steps p { font-size: 16px; color: var(--muted); margin-top: 12px; }

/* Home questions */
.home-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.home-faq > div:first-child p { margin-top: 24px; color: var(--muted); max-width: 24em; }
.home-faq .text-link { margin-top: 28px; }
.faq-list details:first-of-type { border-top: 1px solid var(--navy); }

/* Lab band */
.lab-feature { position: relative; overflow: hidden; background: var(--navy); color: var(--mist); padding-block: var(--space); }
.lab-inner { display: grid; grid-template-columns: minmax(0, 4.6fr) minmax(0, 6fr); gap: clamp(32px, 7vw, 120px); align-items: center; position: relative; }
.lab-photo { position: relative; z-index: 1; }
.lab-photo .brand-frame { aspect-ratio: 4 / 5; background: var(--navy-deep); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.lab-photo .brand-frame img { object-position: 88% 50%; }
.lab-photo figcaption { color: #9DB1CC; }
.lab-copy { position: relative; z-index: 1; }
.lab-feature h2 { color: var(--white); font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.02; font-weight: 300; }
.lab-feature h2 em { display: block; color: var(--sky); }
.lab-lead { font-family: var(--serif); font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.4; font-weight: 340; color: var(--white); margin-top: 32px; }
.lab-copy p:not(.lab-lead):not(.eyebrow) { font-size: 16px; margin-top: 22px; max-width: 36em; }
.lab-copy strong { color: var(--white); }
.lab-copy .button { margin-top: 36px; }
.lab-keystone { position: absolute; right: -6%; bottom: calc(-1 * var(--space) - 30px); width: min(44%, 520px); opacity: .13; pointer-events: none; }

/* First visit */
.visit-wrap { background: var(--stone); }
.visit { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5.4fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit-intro p { margin-top: 26px; color: var(--muted); max-width: 28em; }
.visit-intro .text-link { margin-top: 30px; }
.visit-questions { background: var(--paper); border-top: 3px solid var(--royal); border-radius: 0 0 3px 3px; padding: clamp(28px, 4vw, 52px); box-shadow: var(--shadow); }
.visit-questions .eyebrow { margin-bottom: 10px; }
.visit-questions .ruled-list { border-top: 0; }
.visit-questions .ruled-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ruled-list { list-style: none; padding: 0; border-top: 1px solid var(--navy); }
.ruled-list li { font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.35; color: var(--navy); padding-block: 20px; border-bottom: 1px solid var(--line); }

/* Closing */
.closing-cta { padding-block: var(--space); }
.closing-panel { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 32px 48px; flex-wrap: wrap; background: var(--navy); border-radius: 4px; padding: clamp(40px, 6vw, 88px); box-shadow: var(--shadow); }
.closing-panel::after { content: ''; position: absolute; right: -40px; bottom: -70px; width: 360px; aspect-ratio: 1 / 1; background: url('../images/keystone.svg') no-repeat center / contain; opacity: .1; pointer-events: none; }
.closing-panel h2 { font-style: italic; font-weight: 300; color: var(--white); max-width: 14em; position: relative; z-index: 1; }
.closing-panel .button { position: relative; z-index: 1; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #DCE6F2; padding-top: clamp(56px, 7vw, 96px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4.4fr) repeat(3, minmax(0, 2.4fr)); gap: 48px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer-brand img { width: 250px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.2; color: var(--white); margin-top: 28px; }
.site-footer h2 { font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--sky); margin-bottom: 20px; }
.footer-grid > div:not(.footer-brand) a { display: block; width: fit-content; font-size: 15px; text-decoration: none; padding-block: 5px; }
.footer-grid > div:not(.footer-brand) a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(185, 206, 228, .28); font-size: 12.5px; color: #B4C4DA; }
.footer-bottom p + p { margin: 0; }

/* Page heads (simple pages) */
.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.page-head h1 { max-width: 14em; }

/* Treatment pages */
.breadcrumb { display: flex; gap: 12px; padding-top: 28px; font-size: 13px; color: #9DB1CC; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 6.6fr) minmax(0, 4.8fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.detail-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); }
.detail-hero .provider { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--sky); }
.detail-hero .brand-frame { background: #EAF0F7; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.detail-hero figcaption { color: #9DB1CC; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); }
.reading-nav { align-self: start; position: sticky; top: 140px; }
.reading-nav .eyebrow { margin-bottom: 14px; }
.reading-nav a { display: block; padding: 11px 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); text-decoration: none; border-top: 1px solid var(--line); transition: color .2s ease, padding-left .2s ease; }
.reading-nav a:hover { color: var(--navy); padding-left: 8px; }
.reading-copy { max-width: 700px; }
.reading-copy > section { scroll-margin-top: 130px; padding-bottom: clamp(40px, 5vw, 64px); }
.reading-copy h2 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); line-height: 1.15; margin-bottom: 18px; }
.reading-copy p { color: #3C4658; }
.reading-copy > section:first-child p { font-size: 18.5px; }
.faq { border-top: 1px solid var(--navy); padding-top: clamp(40px, 5vw, 64px); }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { position: relative; list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; color: var(--navy); }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 15px; height: 1px; background: var(--navy); transition: transform .25s ease; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { padding: 0 44px 24px 0; font-size: 16px; }
details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .5s var(--ease-calm), opacity .5s ease, content-visibility .5s allow-discrete; }
details[open]::details-content { block-size: auto; opacity: 1; }
.sources { padding-top: 8px; }
.sources h2 { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.sources ul { list-style: none; padding: 0; font-size: 15px; }
.sources p { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Steps, lists and callouts */
.steps-block > p { margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 24px 0 24px 72px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent-ink); }
.steps h3 { font-size: 1.35rem; }
.steps p { font-size: 16px; margin-top: 8px; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); color: #3C4658; }
.check-list li::before { content: ''; position: absolute; left: 2px; top: 22px; width: 12px; height: 1px; background: var(--accent-ink); }
.reading-copy > .callout { background: var(--stone); border-top: 3px solid var(--royal); border-radius: 0 0 3px 3px; padding: clamp(24px, 4vw, 44px); margin-bottom: clamp(40px, 5vw, 64px); }
.callout .check-list li { border-bottom-color: rgba(42, 90, 168, .22); }
.callout .small { margin-top: 20px; }
.facts { margin: 28px 0 0; border-top: 1px solid rgba(23, 51, 95, .25); max-width: 400px; }
.facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding-block: 13px; border-bottom: 1px solid rgba(23, 51, 95, .14); font-size: 15px; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); padding-top: 3px; }
.facts dd, .info-grid dd { margin: 0; }
.section-sand { background: var(--stone); }
.principles-intro .text-link { margin-top: 26px; }
.visit-info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.visit-info > div p { margin-top: 24px; color: var(--muted); max-width: 26em; }
.info-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--navy); }
.info-grid > div { padding-block: 26px; border-bottom: 1px solid var(--line); }
.info-grid dt { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.info-grid dd { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--navy); }
.info-grid dd span { font-style: italic; color: var(--muted); font-size: 1.1rem; }
.info-grid dd a { font-family: var(--sans); font-size: 15px; font-weight: 700; text-decoration-color: var(--royal); text-underline-offset: 6px; }
.footer-note { font-size: 15px; color: #B4C4DA; margin: 0 0 8px; max-width: 16em; }
.footer-note + .footer-note { margin-top: 0; }

/* Clinic tour */
.tour-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(20px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.tour-intro p { color: var(--muted); }
.tour-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tour-grid figure { grid-column: span 2; overflow: hidden; border-radius: 3px; position: relative; background: var(--soft); box-shadow: var(--shadow); }
.tour-grid figure:nth-child(1), .tour-grid figure:nth-child(2), .tour-grid figure:nth-child(6), .tour-grid figure:nth-child(7) { grid-column: span 3; }
.tour-grid img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.4s var(--ease-calm); }
.tour-grid figure:hover img { transform: scale(1.04); }
.tour-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 36px 18px 14px; font-size: 14px; color: #fff; background: linear-gradient(0deg, rgba(15, 36, 69, .72), rgba(15, 36, 69, 0)); }
.tour-note { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); margin-top: 28px; }
.tour-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.tour-strip figure { overflow: hidden; border-radius: 3px; box-shadow: var(--shadow); }
.tour-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tour-home .text-link { margin-top: 32px; }

/* Practice */
.practice-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(48px, 7vw, 104px); }
.practice-hero h1 em { display: block; }
.brand-panel { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); background: var(--white); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; border-radius: 24px; padding: 12%; }
.brand-panel img { width: 100%; object-fit: contain; }
.profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.portrait { overflow: hidden; background: linear-gradient(180deg, #DCE7F2 0%, #BFD3E8 100%); border-radius: 24px; aspect-ratio: 4 / 4.55; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: translateY(9%) scale(1.06); transform-origin: 50% 100%; }
.profile-head .portrait { max-width: 400px; margin-bottom: 36px; }
.portrait-small { width: 132px; margin-top: 22px; box-shadow: none; }
.profile-head .eyebrow { margin-bottom: 20px; }
.profile-head .provider { margin-block: 12px 0; font-family: var(--serif); font-style: italic; font-size: 18px; }
.profile-body p:not(.large-copy) { max-width: 38em; color: #3C4658; }
.profile-body .large-copy { margin-bottom: 32px; }
.principles { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.principles-intro p { margin-top: 24px; color: var(--muted); max-width: 24em; }
.principle-list { border-top: 1px solid var(--navy); }
.principle-list article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px 40px; padding-block: 30px; border-bottom: 1px solid var(--line); align-items: baseline; }
.principle-list p { font-size: 16px; color: var(--muted); }

/* Text pages */
.prose-rows { padding-block: clamp(32px, 4vw, 56px) var(--space); }
.prose-rows > section:first-child { border-top: 0; }
.prose-rows > section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7.4fr); gap: 20px clamp(32px, 6vw, 96px); padding-block: clamp(32px, 4vw, 52px); border-top: 1px solid var(--line); }
.prose-rows h2 { font-size: clamp(1.5rem, 2.1vw, 1.9rem); line-height: 1.2; }
.prose-rows > section > div { max-width: 660px; }
.prose-rows p { color: #3C4658; }
.prose-rows .ruled-list { border-top: 0; }
.prose-rows .ruled-list li:first-child { padding-top: 0; }
.prose-rows .button { margin-top: 32px; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: clamp(56px, 7vw, 96px) var(--space); }
.contact-layout .lead { margin-top: 0; }
.notice { border-top: 1px solid var(--navy); border-bottom: 1px solid var(--line); padding-block: 24px; margin-block: 36px; }
.notice h2 { font-size: 1.35rem; letter-spacing: -.005em; }
.notice p { font-size: 15px; margin-top: 10px; color: var(--muted); }
form { padding: clamp(24px, 4vw, 52px); background: var(--paper); border-top: 3px solid var(--royal); border-radius: 0 0 3px 3px; box-shadow: var(--shadow); }
.form-label { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); margin-bottom: 28px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 14px; font-weight: 700; letter-spacing: .01em; margin-bottom: 8px; color: var(--navy); }
.field label span { font-weight: 400; font-size: 13px; color: var(--muted); }
input:not([type=checkbox]), select { width: 100%; min-height: 52px; padding: 12px 14px; background: #fff; color: var(--ink); border: 1px solid #8A97AB; border-radius: 2px; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
input:not([type=checkbox]):hover, select:hover { border-color: var(--navy); }
input:not([type=checkbox]):focus-visible, select:focus-visible { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(42, 90, 168, .28); }
input::placeholder { color: #68748A; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; margin-block: 28px; }
.checkbox input { margin-top: 3px; min-width: 18px; min-height: 18px; accent-color: var(--navy); }
.form-status { font-size: 15px; color: var(--navy); margin-top: 16px; }

/* Portfolio */
.portfolio-intro { padding-bottom: clamp(40px, 5vw, 64px); }
.portfolio-intro .lead { max-width: 36em; }
.portfolio-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 36px; }
.portfolio-note { margin-top: clamp(32px, 4vw, 56px); }
.portfolio-note + .portfolio-block { border-top: 0; }
.portfolio-nav a { color: var(--white); font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; }
.portfolio-nav a:hover { text-decoration-color: currentColor; }
.portfolio-block { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.portfolio-block h2 { margin-bottom: 36px; }
.brand-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-showcase figure { background: var(--soft); padding: clamp(24px, 4vw, 56px); border-radius: 3px; }
.brand-showcase .dark { background: var(--navy); }
.brand-showcase figure img { height: 300px; width: 100%; object-fit: contain; }
.brand-showcase figcaption { margin-top: 20px; }
.brand-showcase .dark figcaption { color: #C4D2E6; }
.download-row { display: flex; align-items: baseline; gap: 6px 22px; flex-wrap: wrap; margin-top: 10px; }
.download-row:first-of-type { margin-top: 22px; }
.download-label { font-size: 14px; color: var(--muted); min-width: 11em; }
.print-item .download-label { min-width: 6em; }
.download-row a { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; border-bottom: 1px solid var(--royal); padding: 8px 0 4px; }
.download-row a:hover { border-bottom-color: var(--navy); }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.swatch { height: 132px; border-radius: 3px; border: 1px solid var(--line); }
.swatch-navy { background: var(--navy); }
.swatch-sky { background: var(--sky); }
.swatch-white { background: var(--white); }
.swatch-royal { background: var(--royal); }
.swatch-label { font-size: 13px; margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
.swatch-label span:last-child { color: var(--muted); letter-spacing: .04em; }
.print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.print-item { min-width: 0; }
.print-item > img { width: 100%; border-radius: 3px; box-shadow: 0 1px 2px rgba(23, 51, 95, .08), 0 14px 32px -14px rgba(23, 51, 95, .28); }
.print-item .card-back { margin-top: 24px; }
.print-item h3 { margin-top: 30px; }
.print-item p { font-size: 15px; margin-top: 10px; color: var(--muted); max-width: 34em; }
.doc-preview { display: block; padding: clamp(24px, 4vw, 48px); background: var(--soft); border-radius: 3px; }
.doc-preview img { width: 100%; height: 520px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(23, 51, 95, .16)); }
.download-tools { display: flex; align-items: end; gap: 24px; margin-block: 40px 16px; }
.download-tools label { flex: 1; font-size: 14px; font-weight: 700; color: var(--navy); }
.download-tools label input { margin-top: 8px; font-weight: 400; }
.download-count { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.file-list { list-style: none; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.file-list li[hidden] { display: none; }
.file-list a { font-size: 14.5px; overflow-wrap: anywhere; text-decoration: none; }
.file-list a:hover { text-decoration: underline; text-decoration-color: var(--royal); }
.file-meta { font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: .03em; }
.resource-note { font-size: 14px; color: var(--muted); margin-top: 32px; padding-left: 18px; border-left: 1px solid var(--royal); max-width: 62em; }
.empty-message { font-size: 15px; padding: 20px 0; }

/* Tablet */
@media (max-width: 1000px) {
  .site-header nav { gap: 18px; font-size: 14px; }
  .brand { width: 196px; }
  .profile, .principles, .home-faq, .visit-info { grid-template-columns: 1fr; }
  .journey-steps { grid-template-columns: 1fr 1fr; }
  .reading-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); }
}

@media (max-width: 860px) {
  .nav-wrap { min-height: 76px; flex-wrap: wrap; gap: 0; }
  .brand { width: 190px; }
  .brand img { height: 56px; }
  .menu-toggle { display: block; }
  .site-header nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 22px; font-size: 17px; }
  .js .site-header nav { display: none; }
  .js .site-header nav.is-open { display: flex; }
  .site-header nav a:not(.nav-cta) { padding-block: 14px; border-top: 1px solid rgba(185, 206, 228, .2); background: none; font-family: var(--serif); font-size: 1.35rem; }
  .site-header nav .nav-cta { margin-top: 14px; text-align: center; padding-block: 14px; }
  .reading-layout { grid-template-columns: 1fr; }
  .reading-nav { display: none; }
  .reading-copy { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .doc-preview img { height: 380px; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .demo-bar { font-size: 11.5px; }
  .statement, .care-intro, .lab-inner, .visit, .detail-hero, .practice-hero, .contact-layout, .prose-rows > section { grid-template-columns: 1fr; }
  .home-hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 3.2; }
  .hero-media::before { background: linear-gradient(0deg, var(--navy) 0%, rgba(23, 51, 95, 0) 45%); }
  .hero-media figcaption { right: auto; left: var(--gutter); bottom: 10px; font-size: 12px; }
  .hero-copy { padding-block: 28px 64px; }
  .care-list { grid-template-columns: 1fr; gap: 48px; }
  .lab-photo { max-width: 360px; }
  .actions { margin-top: 32px; }
  .lab-keystone { width: 70%; opacity: .1; }
  .detail-hero figure { max-width: 440px; }
  .brand-panel { max-width: 380px; }
  .principle-list article { grid-template-columns: 1fr; padding-block: 24px; }
  .closing-panel { flex-direction: column; align-items: flex-start; }
  .brand-showcase, .print-grid, .journey-steps, .info-grid, .tour-intro { grid-template-columns: 1fr; }
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-grid figure, .tour-grid figure:nth-child(n) { grid-column: span 1; }
  .tour-grid figure:nth-child(1) { grid-column: span 2; }
  .steps li { padding-left: 52px; }
  .brand-showcase figure img { height: 220px; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .swatch { height: 96px; }
  .doc-preview img { height: auto; max-height: 520px; }
  .download-tools { flex-direction: column; align-items: stretch; gap: 8px; }
  .file-list li { gap: 12px; }
  .file-list a { font-size: 13px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@media print {
  .demo-bar, .site-header, .closing-cta, .site-footer, .reading-nav, .menu-toggle, .download-tools, .lab-keystone { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .container { width: 100%; max-width: none; }
  .section { padding-block: 20px; }
  h1 { font-size: 30pt; }
  h2 { font-size: 20pt; }
  .reading-layout, .visit, .statement { display: block; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .page-band, .home-hero, .lab-feature, .closing-panel { background: #fff; color: #000; }
  .page-band h1, .home-hero h1, .lab-feature h2, .closing-panel h2 { color: #000; }
  .button { color: #000; background: #fff; }
  .portfolio-block { break-inside: avoid; }
}

/* Insita name story: the etymology describes the name, not clinical outcomes. */
.name-story { padding-block: var(--space); max-width: 900px; }
.name-story p, .name-note { color: var(--muted); line-height: 1.7; }
