/*
 * KaMi Dental — Japanese minimalist / wabi-sabi.
 * Washi paper, sumi ink, unglazed clay and moss. Generous ma (empty space), hairlines instead of boxes,
 * slightly off-centre compositions, softened photographs, an ensō as the only ornament.
 */
:root {
  --washi: #F6F2EA;        /* paper */
  --kinari: #EEE7DA;       /* unbleached */
  --hai: #DDD5C7;          /* ash */
  --clay: #A88B6A;         /* unglazed clay (logo) */
  --clay-d: #7D6449;
  --sumi: #2B2723;         /* ink */
  --sumi-2: #4D4741;
  --usuzumi: #8C847A;      /* thin ink */
  --moss: #5E6B4E;         /* actions — muted moss instead of bright green */
  --moss-d: #4A563D;
  --bengara: #9C4A33;      /* rust red, used sparingly */
  --line: rgba(43, 39, 35, .16);
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', Georgia, serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .15 0 0 0 0 .13 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--washi); color: var(--sumi); font: 400 16.5px/1.8 var(--sans); letter-spacing: .01em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--sumi); text-decoration-color: var(--clay); text-underline-offset: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0 0 .55em; color: var(--sumi); letter-spacing: 0; }
h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.25; }
h2 { font-size: clamp(26px, 2.8vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1.1em; }
svg { width: 18px; height: 18px; flex: none; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); }
.center { text-align: center; }
.muted { color: var(--usuzumi); }
.eyebrow { font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay-d); margin-bottom: 18px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--clay); }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 17.5px; color: var(--sumi-2); max-width: 600px; }
.link { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--clay); padding-bottom: 4px; }

/* buttons — quiet, rectangular, ink-outlined */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 4px; font: 500 15px var(--sans); letter-spacing: .04em; text-decoration: none; border: 1px solid var(--sumi); cursor: pointer; transition: background .35s, color .35s, border-color .35s; background: transparent; color: var(--sumi); }
.btn-wa { background: var(--moss); border-color: var(--moss); color: var(--washi); }
.btn-wa:hover { background: var(--moss-d); border-color: var(--moss-d); }
.btn-dark { background: var(--sumi); color: var(--washi); }
.btn-dark:hover { background: #000; }
.btn-ghost:hover { background: var(--sumi); color: var(--washi); }
.btn-light { border-color: var(--washi); color: var(--washi); }
.btn-light:hover { background: var(--washi); color: var(--sumi); }
.btn-block { width: 100%; }

/* announcement + header */
.announce { background: var(--sumi); color: var(--hai); text-align: center; font-size: 13px; letter-spacing: .08em; padding: 9px 16px; }
.announce a { color: var(--washi); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-left: 10px; border-bottom: 1px solid var(--clay); }
.announce svg { width: 14px; height: 14px; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(246, 242, 234, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--sumi); }
.brand img { border-radius: 50%; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; gap: 7px; padding-left: 16px; border-left: 1px solid var(--line); }
.brand-name { font: 500 17px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--sumi); }
.brand small { display: block; font: 400 10.5px/1 var(--sans); color: var(--usuzumi); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.foot-local { color: var(--usuzumi); font-size: 13px; letter-spacing: .06em; margin-top: 6px; }
.nav { display: flex; gap: 2px; margin-left: auto; white-space: nowrap; }
.nav a { padding: 6px 11px; color: var(--sumi-2); text-decoration: none; font-size: 15px; letter-spacing: .02em; position: relative; }
.nav a::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: 0; height: 1px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--sumi); }
.head-cta { padding: 10px 18px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 1px; background: var(--sumi); margin: 7px auto; transition: transform .3s; }

/* hero — asymmetric: text in the open space, photo set back, an ensō */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; width: min(1240px, 100% - 48px); margin: 0 auto; padding: clamp(40px, 7vw, 110px) 0 clamp(60px, 8vw, 120px); position: relative; }
.hero-text { order: 1; padding-left: clamp(0px, 4vw, 56px); position: relative; z-index: 0; }
.hero-media { order: 2; position: relative; z-index: 0; }
.hero-media img { width: 100%; border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.78) contrast(.97) brightness(1.02); }
.hero h1 { margin-bottom: .7em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 40px; }
.hero-meta { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.rating { display: inline-flex; align-items: center; gap: 2px; color: var(--clay); }
.rating span { color: var(--sumi-2); margin-left: 10px; font-size: 14px; letter-spacing: .06em; }
.rating svg { width: 14px; height: 14px; }
.tags { margin: 0; color: var(--usuzumi); font-size: 13px; letter-spacing: .14em; }

/* highlights — three quiet columns separated by hairlines */
.highlights { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hl-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.hl { padding: 44px 36px; border-left: 1px solid var(--line); }
.hl:first-child { border-left: 0; padding-left: 0; }
.hl h3 { margin: 10px 0 8px; }
.hl p { margin: 0; color: var(--sumi-2); font-size: 15px; }
.hl-n { font: 400 13px var(--serif); color: var(--clay); letter-spacing: .2em; }

/* sections */
.section { padding: clamp(80px, 10vw, 150px) 0; }
.tint { background: var(--kinari); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 60px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin: 0; }

/* photographs: no polaroid frames, no tilt — softened, framed by space */
.polaroid { position: relative; z-index: 0; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; filter: saturate(.88); transition: filter .8s; }
.polaroid:hover img { filter: saturate(.95); }
.tilt { transform: none; }

/* treatment groups — four columns, staggered */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.group .polaroid img { aspect-ratio: 4 / 3; }
.group h3 { margin: 22px 0 10px; font: 600 20px var(--serif); }
.group ul { list-style: none; padding: 0; margin: 0; color: var(--sumi-2); font-size: 15px; border-top: 1px solid var(--line); }
.group li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* team — ink-ringed circles on unbleached paper */
.team-band { background: var(--kinari); }
.circles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.circle { margin: 0; text-align: center; }
.circle-img { aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--sumi); outline-offset: 10px; }
.circle-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }
.circle figcaption { margin-top: 30px; font: 500 21px var(--serif); letter-spacing: .06em; }
.circle figcaption small { display: block; font: 400 11.5px var(--sans); color: var(--usuzumi); letter-spacing: .3em; text-transform: uppercase; margin-bottom: 6px; }

/* split */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-media img { aspect-ratio: 4 / 3; }
.info-list p { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px; font-size: 15px; }
.info-list svg { color: var(--clay); margin-top: 6px; }
.info-list small { color: var(--usuzumi); }
.info-list b { font-weight: 500; }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* patient photos — a loose, uneven row */
.polaroid-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 80px; align-items: start; }
.polaroid-wall .polaroid img { aspect-ratio: 3 / 4; }
.p0, .p2, .p4 { transform: none; }


/* gallery — asymmetric */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; filter: saturate(.88); }
.gallery img:nth-child(1) { grid-row: span 2; aspect-ratio: auto; height: 100%; }
.gallery img:nth-child(6) { grid-column: 1 / -1; aspect-ratio: 21 / 7; object-position: center 62%; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 50px 24px 0; font: 500 18px var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 16px; height: 1px; background: var(--sumi); transition: transform .35s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details > div { padding: 0 0 22px; color: var(--sumi-2); font-size: 15.5px; }

/* cta — sumi band with lots of air */
.cta-band { background: var(--sumi); color: var(--hai); padding: clamp(70px, 9vw, 120px) 0; position: relative; overflow: hidden; }
.cta-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; position: relative; }
.cta-band h2 { color: var(--washi); margin: 0 0 10px; }
.cta-band p { margin: 0; color: #B5ACA0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-wa { background: var(--washi); color: var(--sumi); border-color: var(--washi); }
.cta-band .btn-wa:hover { background: transparent; color: var(--washi); }
.cta-band::before { content: ''; position: absolute; width: 440px; height: 440px; right: -130px; top: -170px; border-radius: 50%; border: 1px solid rgba(246, 242, 234, .12); }

/* page heads */
.page-head { padding: clamp(80px, 9vw, 140px) 0 clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 820px; }

/* services */
.group-title { font: 500 13px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--clay-d); margin: 0 0 30px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.group-title:not(:first-child) { margin-top: 90px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 36px; }
.svc-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.svc-img { overflow: hidden; border-radius: 6px; }
.svc-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.72) contrast(.96); transition: transform 1.2s, filter .8s; }
.svc-card:hover .svc-img img { transform: scale(1.03); filter: saturate(.9); }
.svc-body { padding: 22px 0 0; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { margin: 8px 0 10px; font-size: 21px; }
.svc-body p { color: var(--sumi-2); font-size: 15px; }
.svc-body .more { margin-top: auto; display: inline-flex; gap: 10px; align-items: center; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-d); }
.chip { align-self: flex-start; font: 400 11px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--usuzumi); }
.price { color: var(--bengara); font-size: 14.5px; letter-spacing: .04em; }
.svc-hero { padding: clamp(70px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.svc-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.price-tag { display: inline-block; border-top: 1px solid var(--bengara); border-bottom: 1px solid var(--bengara); padding: 6px 2px; color: var(--bengara); letter-spacing: .08em; font-size: 15px; }
.article-grid { display: grid; grid-template-columns: 1fr 300px; gap: 90px; align-items: start; }
.prose h2 { font-size: 25px; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--sumi-2); }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.prose li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid var(--line); color: var(--sumi-2); font-size: 15.5px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 14px; height: 1px; background: var(--clay); }
.note { border-left: 1px solid var(--bengara); padding: 4px 0 4px 22px; margin-top: 40px; color: var(--sumi-2); font-size: 15px; }
.side-card { position: sticky; top: 110px; border-top: 1px solid var(--sumi); padding-top: 26px; display: grid; gap: 10px; }
.side-card h3 { margin: 0; }
.side-card p { font-size: 15px; color: var(--sumi-2); }
.side-card .info-list { margin-top: 18px; }
.side-card .info-list p { font-size: 13.5px; }

/* dentists */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; }
.team-card { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.team-photo { aspect-ratio: 1; border-radius: 50%; overflow: hidden; outline: 1px solid var(--sumi); outline-offset: 8px; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); }

/* insurance */
.panel-grid { display: flex; justify-content: center; gap: 50px; flex-wrap: wrap; margin-bottom: 40px; }
.panel-card { width: 260px; text-align: center; }
.panel-logo { aspect-ratio: 1; display: grid; place-items: center; padding: 40px; background: #fff; border: 1px solid var(--line); }
.panel-logo img { max-height: 100%; object-fit: contain; filter: grayscale(.25); }
.panel-card h3 { margin: 18px 0 0; font-size: 19px; letter-spacing: .1em; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.post-card { text-decoration: none; color: inherit; }
.post-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; filter: saturate(.72); }
.post-card > div { padding: 20px 0 0; }
.post-card .eyebrow { font-size: 11px; }
.post-card .eyebrow::before { display: none; }
.post-card p:last-child { color: var(--sumi-2); font-size: 15px; margin: 0; }
.post-hero { margin-bottom: 40px; width: 100%; filter: saturate(.75); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.contact-card { border-top: 1px solid var(--sumi); padding-top: 30px; }
.form { border-top: 1px solid var(--sumi); padding-top: 30px; display: grid; gap: 20px; }
.form h2 { margin: 0; }
.form label { display: grid; gap: 4px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--usuzumi); }
.form input, .form select, .form textarea { font: 400 16px var(--sans); letter-spacing: .02em; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--sumi); width: 100%; text-transform: none; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--sumi); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp { position: absolute; left: -9999px; }
.ok { border-left: 1px solid var(--moss); padding-left: 16px; color: var(--moss-d); }
.form-msg { margin: 0; font-size: 15px; }
.map iframe { width: 100%; height: 460px; border: 0; display: block; filter: grayscale(.9) sepia(.15) contrast(.95); }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 90px 0 0; font-size: 14.5px; color: var(--sumi-2); }
.site-foot h4 { font: 500 12px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--clay-d); margin-bottom: 18px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 50px; }
.foot-tag { margin-top: 18px; }
.hours { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
.socials a { margin-right: 14px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 70px; padding: 24px 0; font-size: 12px; letter-spacing: .06em; color: var(--usuzumi); }
.wa-float { position: fixed; right: 24px; bottom: 24px; width: 56px; height: 56px; border-radius: 50%; background: var(--moss); color: var(--washi); display: grid; place-items: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); z-index: 40; }
.wa-float svg { width: 28px; height: 28px; }

/* gentle fade-in as blocks enter the screen (site.js adds .in) */
.js .reveal:not(.in) { opacity: 0; transform: translateY(14px); transition: opacity 1.4s ease, transform 1.4s ease; }
.js .reveal { transition: opacity 1.4s ease, transform 1.4s ease; }

/* responsive */
@media (max-width: 1080px) {
  /* the header's backdrop-filter makes it the containing block for fixed children, so size the drawer to the screen explicitly */
  .nav { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(320px, 85vw); flex-direction: column; background-color: var(--washi); background-image: var(--grain); padding: 110px 30px 30px; border-left: 1px solid var(--line); box-shadow: -24px 0 60px -20px rgba(28,24,20,.35); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s, visibility .4s; margin: 0; gap: 4px; z-index: 30; }
  .site-head::after { content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: rgba(28,24,20,.42); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; z-index: 29; }
  .site-head:has(.nav.open)::after { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav a { font-size: 17px; padding: 12px 0; }
  .nav a::after { left: 0; right: auto; width: 40px; }
  .nav.open { transform: none; visibility: visible; }
  .menu-btn { display: block; margin-left: auto; z-index: 31; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .head-cta span { display: none; }
  .head-cta { padding: 10px; }
  .groups, .circles { grid-template-columns: repeat(2, 1fr); }
  .svc-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .polaroid-wall { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: 1fr 260px; gap: 50px; }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .head-row { height: 68px; gap: 12px; }
  .brand { gap: 12px; } .brand-text { padding-left: 12px; gap: 6px; }
  .brand-name { font-size: 14px; letter-spacing: .22em; }
  .brand small { font-size: 9px; letter-spacing: .18em; }
  .brand img { width: 42px; height: 42px; }
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 50px; }
  .hero-media { order: 1; margin: 0 0 0 12px; }
  .hero-text { order: 2; padding: 0; }
  .hero-media img { aspect-ratio: 4 / 3; }
      .hl-grid { grid-template-columns: 1fr; }
  .hl { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .hl:first-child { border-top: 0; }
  .split, .svc-hero-grid, .article-grid, .contact-grid, .team-grid { grid-template-columns: 1fr; gap: 50px; }
  .split-media { margin-right: 12px; }
  .svc-grid, .post-grid { grid-template-columns: 1fr; }
  .groups { gap: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery img:nth-child(1) { grid-row: auto; grid-column: span 2; aspect-ratio: 4 / 3; }
  .gallery img:nth-child(6) { grid-column: span 2; aspect-ratio: 16 / 9; }
  .team-card { grid-template-columns: 110px 1fr; gap: 26px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 40px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .two { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .polaroid-wall { gap: 10px; margin-bottom: 50px; }
  .announce a { display: block; margin: 2px 0 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1; transform: none; } }

.smiles { padding-bottom: clamp(40px, 5vw, 70px); }

/* trust strip under the hero */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 26px 24px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item svg { width: 26px; height: 26px; color: var(--clay-d); }
.trust-item b { display: block; font: 600 17px var(--serif); color: var(--sumi); }
.trust-item span { font-size: 13.5px; color: var(--usuzumi); line-height: 1.4; }
@media (max-width: 1080px) { .trust-row { grid-template-columns: 1fr 1fr; } .trust-item:nth-child(3) { border-left: 0; padding-left: 0; } .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .trust-row { grid-template-columns: 1fr; } .trust-item { border-left: 0; padding: 18px 0; } .trust-item + .trust-item { border-top: 1px solid var(--line); } }
.team-circles { grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: start; gap: 70px; }
@media (max-width: 760px) { .team-circles { grid-template-columns: 1fr 1fr; gap: 30px; } }

/* ---------- full-width posters with parallax ---------- */
.poster { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; isolation: isolate; }
.poster-img { position: absolute; inset: 0; z-index: -2; }
.poster-img img, .poster-img video { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; filter: saturate(.85); will-change: transform; }
.poster-video video { filter: saturate(.9) contrast(1.02); object-position: 62% 30%; }
.poster-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,24,20,.78) 0%, rgba(28,24,20,.55) 45%, rgba(28,24,20,.15) 100%); }
.poster-content { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.poster h1, .poster h2 { color: #fff; max-width: 680px; }
.poster .lead { color: rgba(255,255,255,.86); max-width: 560px; }
.poster .eyebrow { color: #E4D3BC; }
.poster .eyebrow::before { background: #E4D3BC; }
.poster-hero { min-height: calc(100vh - 120px); min-height: calc(100svh - 120px); }
.poster-hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.15; }
.poster-band { min-height: 70vh; }
.poster-band .poster-shade { background: linear-gradient(90deg, rgba(28,24,20,.75), rgba(28,24,20,.3)); }
.poster-cta { min-height: 60vh; }
.poster-cta .poster-shade { background: rgba(28,24,20,.66); }
.poster-cta .cta-row { align-items: flex-end; }
.poster-cta h2 { font-size: clamp(30px, 3.6vw, 46px); }
.poster .btn-light { border-color: rgba(255,255,255,.8); color: #fff; }
.poster .btn-light:hover { background: #fff; color: var(--sumi); }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: #fff; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 760px) {
  .poster-shade, .poster-band .poster-shade { background: linear-gradient(180deg, rgba(28,24,20,.35) 0%, rgba(28,24,20,.8) 70%); }
  .poster-hero { min-height: 88svh; align-items: flex-end; }
  .poster-content { padding: 110px 0 70px; }
  .poster-band, .poster-cta { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .poster-img img, .poster-img video { top: 0; height: 100%; transform: none !important; } .scroll-cue span { animation: none; } }
.hours span:last-child { white-space: nowrap; }

/* ---------- Apple-style pinned 3D scenes ---------- */
.cine { background: radial-gradient(120% 80% at 50% 0%, #3A322B 0%, #2A241F 55%, #211C18 100%); color: #F3EDE3; position: relative; }
.cine::before { content: ''; position: absolute; inset: 0; background: var(--grain); opacity: .9; pointer-events: none; }
.cine-scene { position: relative; height: 300vh; }
.cine-scene[data-scene="bridge"] { height: 340vh; }
.cine-scene[data-scene="implant"] { height: 380vh; }
.cine-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; perspective: 1400px; }
.cine-stage { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; pointer-events: none; }
.cine-stage img { will-change: transform, opacity; filter: drop-shadow(0 34px 50px rgba(18,14,11,.55)); }
.cine-glow { position: absolute; width: 74vmin; height: 74vmin; border-radius: 50%; background: radial-gradient(circle, rgba(214,182,140,.26), rgba(214,182,140,0) 65%); filter: blur(10px); will-change: transform, opacity; }
.cine-glow.cool { background: radial-gradient(circle, rgba(196,186,170,.22), rgba(196,186,170,0) 65%); }
/* aligner: real-time WebGL tray (.cine-3d); the CSS stage (.al3) below is the fallback when WebGL2 isn't available */
.cine-3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .6s; }
.cine-3d canvas { width: 100%; height: 100%; display: block; }
.cine-3d.on { opacity: 1; }
.cine-3d.on + .al3 { display: none; }
/* aligner: the tray and a grid floor share one tilted 3D plane; the tray hovers above it with a shadow on the grid */
.al3 { position: absolute; inset: 0; z-index: 1; pointer-events: none; perspective: 1000px; perspective-origin: 50% 18%; overflow: hidden; }
.al3-plane { position: absolute; left: 50%; top: 75%; width: min(30vw, 390px, 38vh); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; }
.al3-grid { position: absolute; inset: -160%; opacity: 0;
  background-image: linear-gradient(rgba(201,169,130,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,130,.5) 1px, transparent 1px),
    linear-gradient(rgba(201,169,130,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(201,169,130,.2) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 14%, transparent 48%); mask-image: radial-gradient(circle at 50% 50%, #000 14%, transparent 48%); }
.al3-shadow { position: absolute; inset: 6%; border-radius: 50%; opacity: 0; transform: translateZ(1px);
  background: radial-gradient(closest-side, rgba(6,5,4,.95), rgba(6,5,4,.55) 55%, rgba(6,5,4,0)); }
.al3-tray { position: absolute; inset: 0; transform-style: preserve-3d; opacity: 0; will-change: transform; }
.al3-depth, .al3-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* 28 stacked copies extrude the tray's outline into side walls (~60px tall), fading darker towards the bottom */
.al3-depth { transform: translateZ(calc(var(--i) * -2.2px)); filter: brightness(calc(.9 - var(--k) * .45)); opacity: calc(.42 - var(--k) * .22); }
.cine-copy { position: absolute; left: 0; right: 0; bottom: 7vh; text-align: center; padding: 0 24px; z-index: 2; }
.cine-copy.left { text-align: left; left: max(24px, calc((100vw - 1120px) / 2)); right: auto; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 460px; padding: 0; }
.cine-copy.top { bottom: auto; top: 12vh; }
.cine h2 { color: #F3EDE3; font-family: var(--serif); font-weight: 500; letter-spacing: .01em; font-size: clamp(36px, 6vw, 80px); line-height: 1.05; margin: 0; }
.cine-copy.left h2 { font-size: clamp(32px, 4.2vw, 58px); }
.cine h2 .ln { display: block; opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.cine-eyebrow { font: 500 15px var(--sans); letter-spacing: .02em; color: #c9a982; margin: 0 0 14px; opacity: 0; }
.cine-sub { color: #B8AC9C; font-size: clamp(16px, 1.5vw, 20px); max-width: 620px; margin: 18px auto 0; opacity: 0; }
.cine-link { display: inline-flex; gap: 8px; align-items: center; color: #e4d3bc; text-decoration: none; margin-top: 18px; font-size: 17px; opacity: 0; }
.cine-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .cine-copy.left { left: 24px; right: 24px; top: 9vh; transform: none; max-width: none; text-align: center; }
  .cine-copy.left h2 { font-size: clamp(30px, 8vw, 44px); }
  .al3-plane { width: min(62vw, 34vh); top: 72%; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-scene { height: auto; } .cine-sticky { position: relative; height: auto; min-height: 90vh; padding: 80px 0; }
  .cine h2 .ln, .cine-eyebrow, .cine-sub, .cine-link, .cine-aligner, .al3-tray, .al3-grid { opacity: 1; }
}


/* labels inside the 3D scenes */
.cine .label { position: absolute; width: 220px; margin: 0; font-size: 14px; line-height: 1.5; color: #B8AC9C; opacity: 0; border-left: 1px solid rgba(243,237,227,.28); padding-left: 14px; }
.cine .label b { display: block; color: #F3EDE3; font: 500 17px var(--serif); margin-bottom: 2px; }

/* crown & bridge: base (gum + prepared teeth) and bridge come from the same render — seated = exact original */
.bp { position: relative; width: min(54vw, 64vh, 720px); aspect-ratio: 1927 / 820; margin-top: -10vh; }
.bp img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.bp-bridge { z-index: 2; }
.bp-on { z-index: 3; }
.bp-l1 { left: calc(100% + 30px); top: -18%; }
.bp-l2 { left: calc(100% + 30px); bottom: 14%; }

/* implant: three parts cut from one exploded render (positions in % of the stacked canvas) */
.cine-stage.implant { left: auto; width: min(58vw, 760px); right: max(0px, calc((100vw - 1240px) / 2)); }
.im { position: relative; height: min(62vh, 560px); aspect-ratio: 614 / 2231; isolation: isolate; transform: translateZ(0); }
.im-part { position: absolute; left: 0; width: 100%; opacity: 0; }
.im-crown { top: 0.36%; z-index: 3; }
.im-abut { top: 32.09%; z-index: 2; }
.im-fixture { top: 61.27%; z-index: 1; }
.im .label { left: calc(100% + 44px); }
.im-l1 { top: 6%; } .im-l2 { top: 40%; } .im-l3 { top: 74%; }

@media (max-width: 860px) {
  .bp { width: 86vw; margin-top: -16vh; }
  .cine .label { width: 44vw; font-size: 12px; } .cine .label b { font-size: 15px; }
  .bp-l1 { left: 0; top: -150%; } .bp-l2 { left: auto; right: 0; top: 106%; bottom: auto; text-align: right; border-left: 0; border-right: 1px solid rgba(243,237,227,.28); padding: 0 12px 0 0; }
  .cine-stage.implant { width: 100%; right: 0; top: 16vh; }
  .im { height: 46vh; margin-left: -34vw; }
  .im .label { left: calc(100% + 18px); width: 46vw; }
}
@media (prefers-reduced-motion: reduce) { .bp img, .im-part, .cine .label { opacity: 1; } }

/* clinic tour video (portrait reel, shown at its native size so it stays sharp) */
.tour-grid { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: clamp(40px, 8vw, 120px); align-items: center; margin-bottom: 70px; }
.tour-copy h2 { margin-bottom: 18px; }
.tour-list { list-style: none; padding: 0; margin: 26px 0 34px; border-top: 1px solid var(--line); }
.tour-list li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--sumi-2); }
.tour-video { position: relative; margin: 0; aspect-ratio: 368 / 624; border-radius: 6px; overflow: hidden; background: var(--sumi); box-shadow: 0 40px 80px -40px rgba(42,36,31,.55); outline: 1px solid rgba(42,36,31,.08); outline-offset: 10px; }
.tour-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-sound { position: absolute; right: 14px; bottom: 14px; font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #F3EDE3; background: rgba(33,28,24,.55); backdrop-filter: blur(6px); border: 1px solid rgba(243,237,227,.25); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.tour-sound .ico-on, .tour-sound[aria-pressed="true"] .ico-off { display: none; }
.tour-sound[aria-pressed="true"] .ico-on { display: inline; }
@media (max-width: 860px) {
  .tour-grid { grid-template-columns: 1fr; }
  .tour-video { width: min(100%, 340px); margin: 0 auto; order: -1; }
}
@media (max-width: 430px) { .site-head .brand small { display: none; } }

/* hero with video: copy on a sumi panel at left, faces kept clear on the right */
.poster-hero { background: #221D19; }
.poster-hero .poster-video { left: 38%; }
.poster-hero .poster-video video { top: 0; height: 100%; object-position: 46% 35%; transform: none !important; }
.poster-hero .poster-shade { background: linear-gradient(90deg, #221D19 36%, rgba(34,29,25,.82) 44%, rgba(34,29,25,.25) 60%, rgba(34,29,25,0) 75%), linear-gradient(0deg, rgba(34,29,25,.45), rgba(34,29,25,0) 30%); }
.poster-hero .poster-content > * { max-width: 520px; }
@media (max-width: 860px) {
  .poster-hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .poster-hero .poster-video { position: relative; left: 0; height: 58svh; inset: auto; z-index: 0; }
  .poster-hero .poster-video video { object-position: 50% 30%; }
  .poster-hero .poster-shade { top: 0; height: 58svh; background: linear-gradient(180deg, rgba(34,29,25,0) 55%, #221D19 100%); z-index: 0; }
  .poster-hero .poster-content { padding: 6px 0 64px; margin-top: -14svh; z-index: 1; }
  .poster-hero .scroll-cue { display: none; }
}
/* short laptop screens: keep the aligner clear of the headline block */
@media (min-width: 861px) and (max-height: 820px) {
  .cine-copy.top { top: 12.5vh; } .cine-copy.top h2 { font-size: min(6vw, 9vh); } .cine-copy.top .cine-sub { margin-top: 12px; }
  .al3-plane { top: 79%; width: min(30vw, 32vh); }
}
/* phones: shorter scroll per scene (≈1 screen of scrolling each instead of 2–3) */
@media (max-width: 860px) {
  .cine-scene { height: 190vh; }
  .cine-scene[data-scene="bridge"] { height: 210vh; }
  .cine-scene[data-scene="implant"] { height: 220vh; }
}
