/* ==========================================================================
   Boston Dental HQ, site layer v2 (loads after each page's inline <style>).
   Same identity as today: charcoal blue, serif headings (Fraunces), Poppins body, the
   Kutchenhaus-style desktop header and the Rise-style phone header. What changes is craft:
   spacing and rhythm, type scale, image treatment, depth, controls, states, motion.
   Governing idea: "a calm, well-lit reception desk": quiet surfaces, one confident headline,
   controls that answer the touch, motion that says "arrived" and never "look at me".
   ========================================================================== */

/* ---------- tokens (override the page's :root where they differ) ---------- */
:root {
  --ink: #151A21;
  --ink-soft: #232A33;
  --bone-deep: #F2F4F7;
  --accent: #3C4351;
  --accent-deep: #2A303B;
  --mute-ink: #565D68;
  --mute-faint: #8A909A;
  --ink-rgb: 21, 26, 33;
  --accent-rgb: 60, 67, 81;
  --line-ink: rgba(var(--ink-rgb), .11);
  --r-card: 18px;
  --r-ctl: 12px;
  --shadow-card: 0 1px 2px rgba(var(--ink-rgb), .04), 0 12px 32px rgba(var(--ink-rgb), .06);
  --shadow-lift: 0 2px 4px rgba(var(--ink-rgb), .05), 0 22px 46px rgba(var(--ink-rgb), .13);
  --shadow-btn: 0 8px 22px rgba(var(--accent-rgb), .30);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-sub-h: 64px;
  interpolate-size: allow-keywords;

  --bk-bg: #fff;
  --bk-ink: var(--ink);
  --bk-muted: var(--mute-ink);
  --bk-line: var(--line-ink);
  --bk-accent: var(--accent);
  --bk-radius: 20px;
  --bk-font: 'Poppins', system-ui, sans-serif;
  --bk-title-font: 'Poppins', system-ui, sans-serif;
  --bk-title-weight: 400;
  --bk-overlay: rgba(var(--ink-rgb), .5);
  --bk-body-bg: var(--bone-deep);
}

html { scroll-padding-top: 96px; }
body { font-weight: 400; color: var(--ink); background: #fff; }
::selection { background: rgba(var(--accent-rgb), .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .nav-topbar :focus-visible { outline-color: currentColor; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; padding: 12px 18px; background: var(--ink); color: #fff; border-radius: 10px; transition: top .2s ease; }
.skip-link:focus { top: 10px; }

/* ---------- type: bigger floors, darker greys, calmer tracking ---------- */
body, .why-card p, .faq-a, .form-aside, .consent, .label-desc { color: var(--ink-soft); }
.label, .label-desc, .stats-band .stat, .form-aside .k, .form-aside .v, .field label, .submit-row .meta, .foot-col h5, .foot-col h4,
.foot-bottom, .foot-col p, .foot-col a, .team-card .gdc, .team-card .role, .review-card .who small, .price-row .price small, .careers-aside,
.prose-section .sec-label, .contents .ttl, .page-hero .meta { color: var(--mute-ink); }
.label, .stats-band .stat, .form-aside .k, .field label, .submit-row .meta, .team-card .gdc, .team-card .role, .review-card .who small, .price-row .price small,
.foot-bottom, .careers-aside, .nav-topbar, .nav-sub .nav-links a { font-size: max(12px, 0.75rem); }
.label { letter-spacing: .18em; }
.foot-col h5, .foot-col h4, .foot-col .foot-h, .foot-h { font-size: 20px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); margin-bottom: 16px; }
.foot-col p, .foot-col a { font-size: 14px; }
.register-head p, .section-head p, .page-head p, .reviews-sub, .about-body p { color: var(--mute-ink); font-size: 17px; line-height: 1.7; max-width: 60ch; }
.faq-a { font-size: 16px; color: var(--ink-soft); }
.why-card p { font-size: 15px; line-height: 1.65; }
.faq-title, .why-title, .register-head h2 { letter-spacing: -.01em; line-height: 1.1; font-size: clamp(32px, 3.6vw, 52px); }
.page-head h1, .page-hero h1 { letter-spacing: -.012em; }
.hero h1.hero-title { font-size: clamp(42px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.015em; font-weight: 400; }

/* ---------- header: smaller, sharper, condenses on scroll ---------- */
.nav { transition: transform .5s var(--ease-out), box-shadow .35s ease, background-color .3s ease; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); view-transition-name: bd-nav; }
.nav.is-scrolled { box-shadow: 0 10px 34px rgba(var(--ink-rgb), .09); }
.nav-bar { max-height: 64px; overflow: hidden; transition: max-height .5s var(--ease-out), padding .5s var(--ease-out); padding: 10px 0 8px; }
.nav.is-scrolled .nav-bar { max-height: 0; padding-top: 0; padding-bottom: 0; }
.nav-loc, .nav-tel { transition: color .2s ease, opacity .25s ease; font-size: 13.5px; color: var(--ink); }
.nav.is-scrolled .nav-loc, .nav.is-scrolled .nav-tel { opacity: 0; pointer-events: none; }
.nav-sub { min-height: var(--nav-sub-h); }
.nav .mark { height: var(--nav-sub-h); }
.nav .mark-link { font-size: 15px; letter-spacing: .2em; color: var(--ink); transition: color .2s ease; }
.nav .mark-link:hover { color: var(--accent); }
.nav-sub .nav-links a { opacity: 1; color: var(--ink); font-size: 13px; letter-spacing: .15em; font-weight: 500; position: relative; padding: 6px 0; }
.nav-sub .nav-links a:hover, .nav-sub .nav-links a.active { color: var(--accent); }
.nav-sub .nav-links a::after { content: ''; position: absolute; left: 0; right: .15em; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.nav-sub .nav-links a:hover::after, .nav-sub .nav-links a.active::after, .nav-sub .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-sub .book.pill { padding: 11px 24px; font-size: 12px; letter-spacing: .14em; font-weight: 600; background: var(--accent); color: #fff; border-color: var(--accent); }
.nav-sub .book.pill:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.nav-menu { top: 100%; border-radius: 0 0 20px 20px; box-shadow: 0 20px 40px rgba(var(--ink-rgb), .12); }
.nav-menu .menu-item { font-size: 13px; min-height: 52px; display: flex; align-items: center; }
.nav.menu-open .nav-menu { animation: bd-rise .4s var(--ease-out) both; }
.nav-topbar { overflow: hidden; max-height: 48px; transition: max-height .45s var(--ease-out), padding .45s var(--ease-out), opacity .3s ease; }
.nav.is-scrolled .nav-topbar { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.nav .mark .dot { animation: bd-breathe 4.2s ease-in-out infinite; }
.nav.is-hidden:not(.menu-open) { transform: translateY(-100%); }

/* ---------- controls: every button is a button, 46px to press ---------- */
.pill-btn, .nav .book, .hero-mob-cta, button.submit, .cta-band .cta, .modal-cta { cursor: pointer; }
.pill-btn, .hero-mob-cta, button.submit, .cta-band .cta, .modal-cta, .nav-sub .book.pill { min-height: 46px; }
.pill-btn { padding: 0 30px; font-size: 14px; font-weight: 500; letter-spacing: .01em; }
.hero-btns .pill-btn:first-child { background: #fff; color: var(--ink); }
.hero-btns .pill-btn:last-child { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .pill-btn:hover { background: #fff; color: var(--accent); }
.hero-btns .pill-btn:last-child:hover { background: #fff; color: var(--ink); box-shadow: none; }
.hero-mob-cta { min-height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; color: var(--ink); }
button.submit, .cta-band .cta, .modal-cta { padding: 0 32px; background: var(--accent); }
button.submit:hover, .cta-band .cta:hover, .modal-cta:hover { background: var(--accent-deep); }
.pill-btn, .nav .book, .book.book-m, .hero-mob-cta, button.submit, .cta-band .cta, .modal-cta, .why-arrow, .bk-close {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.pill-btn:active, .nav .book:active, .book.book-m:active, .hero-mob-cta:active, button.submit:active, .cta-band .cta:active, .modal-cta:active, .why-arrow:active { transform: scale(.96); transition-duration: .08s; }
@media (hover: hover) {
  .pill-btn:hover, .nav .book:hover, .cta-band .cta:hover, button.submit:hover, .modal-cta:hover, .hero-mob-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); }
  .hero .pill-btn:hover, .hero-mob-cta:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .28); }
  .why-arrow:hover { transform: scale(1.07); }
}
.why-arrow { width: 50px; height: 50px; }
.why-arrow:disabled { opacity: .35; pointer-events: none; }
button.submit .arrow, .hero-cta .arrow { transition: width .35s var(--ease-out); }
.book.book-m { min-height: 40px; align-items: center; white-space: nowrap; }

/* ---------- hero: the photo is a real <img> (fast LCP), optional looping video on top ---------- */
.hero { background: #2A303B; isolation: isolate; position: relative; min-height: min(86vh, 860px); }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #2A303B; }
.hero-img, .hero-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 22%; transform-origin: 62% 40%; }
.hero-video { opacity: 0; transition: opacity .7s ease; }
.hero-video.is-on { opacity: 1; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 24, 32, .74) 0%, rgba(20, 24, 32, .38) 52%, rgba(20, 24, 32, .12) 100%), linear-gradient(0deg, rgba(20, 24, 32, .45) 0%, rgba(20, 24, 32, 0) 38%); pointer-events: none; }
.hero::before, .hero::after { display: none; }
.hero-inner { position: relative; z-index: 2; }
.hero .hero-sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 540px; margin-bottom: 36px; color: rgba(255, 255, 255, .94); font-weight: 400; }
.hero h1.hero-title { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .18); }
.hero h1.hero-title em { color: #fff; }
@media (max-width: 820px) {
  .hero { min-height: calc(100svh - 120px); background: #2A303B; animation: none; }
  .hero-img, .hero-video { object-position: 62% 18%; }
  .hero-media::after { background: linear-gradient(rgba(20, 24, 32, .48), rgba(20, 24, 32, .62)); }
  .hero-brand { display: none; }
  .hero-mob-tag { margin: 0 0 30px; font-size: 15px; letter-spacing: .12em; line-height: 1.75; max-width: 340px; color: #fff; }
  .hero-mob-cta { width: min(100%, 340px); }
}

/* ---------- stats band: three plain facts with structure ---------- */
.stats-band { padding: 0; background: #fff; }
.stats-row { gap: 0; }
.stats-band .stat { flex: 1; padding: 36px 32px 34px; border-left: 1px solid var(--line-ink); letter-spacing: .14em; }
.stats-band .stat:first-child { border-left: 0; padding-left: 0; }
.stats-band .stat strong { font-family: 'Poppins', system-ui, sans-serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.01em; margin-bottom: 8px; }
@media (max-width: 820px) {
  .stats-row { flex-direction: column; gap: 0; text-align: left; }
  .stats-band .stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-ink); }
  .stats-band .stat:first-child { border-top: 0; }
  .stats-band .stat strong { margin: 0; font-size: 22px; }
}

/* ---------- section rhythm ---------- */
.register, .why-section, .faq, .cta-band, .team-section, .reviews, .apply { padding-top: 108px; padding-bottom: 108px; }
.why-section { background: var(--bone-deep); }
@media (max-width: 720px) { .register, .why-section, .faq, .cta-band, .team-section, .reviews, .apply { padding-top: 64px; padding-bottom: 64px; } }
.register::before, .page-head::before, .reviews::before { opacity: .55; }

/* ---------- cards ---------- */
.why-card, .team-card, .promise-card, .review-card, .form-card, .form-aside, .apply-card, .info-block {
  border-radius: var(--r-card);
}
.why-card, .team-card, .promise-card, .review-card { background: #fff; border: 1px solid var(--line-ink); box-shadow: var(--shadow-card); }
.form-card, .apply-card { box-shadow: var(--shadow-card); border: 1px solid var(--line-ink); }
.form-aside { box-shadow: var(--shadow-card); border: 1px solid var(--line-ink); }
.form-map { border-radius: var(--r-card); overflow: hidden; background: var(--bone-deep); border: 1px solid var(--line-ink); box-shadow: none; }
.form-map iframe { filter: none; min-height: 340px; }
.promise-grid { gap: 20px; background: none; border: 0; }
.why-card { padding: 34px 28px 30px; }
.why-icon { width: 54px; height: 54px; border-radius: 50%; background: rgba(var(--accent-rgb), .08); align-items: center; justify-content: center; margin-bottom: 22px; }
.why-card h3 { font-size: 18px; font-weight: 600; line-height: 1.3; }
.why-card .num { color: var(--accent); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.team-card { overflow: hidden; padding: 34px 26px 30px; }
.team-card p { color: var(--ink-soft); line-height: 1.65; }
.team-avatar img { transition: transform .8s var(--ease-out); }
.team-card:hover .team-avatar img { transform: scale(1.05); }
.team-avatar.photo { box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-ink); }
.review-card { padding: 28px 26px; }
.review-card blockquote { color: var(--ink-soft); line-height: 1.65; }
.review-card .stars { color: var(--accent); letter-spacing: .12em; }
.review-marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.review-marquee:hover .review-track, .review-marquee:focus-within .review-track { animation-play-state: paused; }
@media (hover: hover) {
  .why-card, .team-card, .promise-card { transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease; }
  .why-card:hover, .team-card:hover, .promise-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: rgba(var(--ink-rgb), .06); }
  .review-card { transition: box-shadow .35s var(--ease-out), border-color .3s ease; }
  .review-card:hover { box-shadow: var(--shadow-lift); }
}

/* ---------- pricing: soft category cards, readable numbers, chip jump-nav ---------- */
.price-cats { gap: 26px 28px; margin-top: 36px; }
.price-cat { background: #fff; border: 1px solid var(--line-ink); border-radius: var(--r-card); padding: 30px 30px 14px; box-shadow: var(--shadow-card); scroll-margin-top: 150px; }
.price-cat h3 { font-size: 24px; margin-bottom: 8px; }
.price-row { padding: 17px 0; border-bottom: 1px solid var(--line-ink); transition: background-color .25s ease, padding .35s var(--ease-out); border-radius: 8px; }
.price-row:last-child { border-bottom: 0; }
.price-row .treatment { color: var(--ink-soft); font-size: 15.5px; }
.price-row .price { font-style: normal; font-weight: 500; font-family: 'Poppins', system-ui, sans-serif; font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
@media (hover: hover) { .price-row:hover { background: rgba(var(--accent-rgb), .05); padding-left: 12px; padding-right: 12px; } }
.price-note { color: var(--mute-ink); font-size: 14px; }
.pricing-chips { position: sticky; top: 74px; z-index: 40; margin: 0 -22px 0; padding: 12px 22px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-ink); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pricing-chips::-webkit-scrollbar { display: none; }
.pricing-chips a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--line-ink); border-radius: 999px; font-size: 14px; color: var(--ink); background: #fff; transition: background-color .25s ease, color .25s ease, border-color .25s ease; white-space: nowrap; }
.pricing-chips a:hover { border-color: var(--accent); }
.pricing-chips a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 821px) { .pricing-chips { margin: 0; padding: 14px 0; background: #fff; } }

/* ---------- forms: underline grows in on focus, bigger type ---------- */
.field input, .field select, .field textarea { font-size: 17px; color: var(--ink); border-bottom-color: rgba(var(--ink-rgb), .3); background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease-out), border-color .25s ease; }
.field input:focus, .field select:focus, .field textarea:focus { background-size: 100% 2px; border-bottom-color: var(--accent); }
.field select { background-image: linear-gradient(var(--accent), var(--accent)), url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23565D68' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: 0 2px, 12px 8px; background-position: 0 100%, right 4px center; }
.field select:focus { background-size: 100% 2px, 12px 8px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(var(--ink-rgb), .42); font-weight: 400; }
.consent input[type=checkbox] { width: 22px; height: 22px; border-radius: 6px; border-color: rgba(var(--ink-rgb), .35); }
.consent input[type=checkbox]:checked::after { left: 7px; top: 3px; animation: bd-fade .2s ease both; }
.form-card, .apply-card { padding: 48px; }
@media (max-width: 720px) { .form-card, .apply-card { padding: 30px 22px; } }
.cv-dropzone { border-radius: var(--r-ctl); }

/* ---------- FAQ: height eases open, answer rises in ---------- */
.faq details { border-color: var(--line-ink); transition: background-color .25s ease; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { min-height: 64px; font-size: 20px; padding: 14px 0; transition: color .2s ease, padding .3s var(--ease-out); }
.faq-x { transition: transform .4s var(--ease-out); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-ink); font-size: 22px; flex: none; }
.faq details[open] .faq-x { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details[open] .faq-a { animation: bd-answer .5s var(--ease-out) both; }
@media (hover: hover) { .faq summary:hover { padding-left: 10px; } }
@media (max-width: 720px) { .faq summary { font-size: 18px; } }

/* ---------- CTA band + footer ---------- */
.cta-band { background: linear-gradient(180deg, #fff 0%, var(--bone-deep) 100%); }
.cta-band h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.012em; }
.cta-band p { color: var(--mute-ink); font-size: 17px; }
.foot-col a, .foot-bottom a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s ease; }
.foot-col a:hover, .foot-bottom a:hover { background-size: 100% 1px; color: var(--accent); }
footer .foot-mark .dot, .foot-brand .mark .dot { animation: bd-breathe 4.2s ease-in-out infinite; }
a[href^='tel:'] { white-space: nowrap; }

/* ---------- inner page heads ---------- */
.page-head { background: linear-gradient(180deg, var(--bone-deep), #fff); }
.page-head p { color: var(--mute-ink); }

/* ---------- why-us carousel on phones: peek, snap, dots, focus scaling ---------- */
.why-marquee { scroll-behavior: smooth; }
.bd-dots { display: none; }
@media (max-width: 720px) {
  .why-track { gap: 14px; width: max-content; }
  .why-card { width: 82vw; max-width: 340px; scroll-snap-align: center; transition: none; }
  .why-marquee { padding: 6px 22px 22px; margin: 0 -22px; }
  .why-nav { margin-top: 6px; }
  .bd-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .bd-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--ink-rgb), .2); transition: width .35s var(--ease-out), background-color .25s ease; }
  .bd-dots i.on { width: 26px; border-radius: 8px; background: var(--accent); }
  @supports (animation-timeline: view(inline)) {
    @keyframes bd-focus { 0%, 100% { opacity: .6; scale: .95; } 50% { opacity: 1; scale: 1; } }
    .why-card { animation: bd-focus linear both; animation-timeline: view(inline); }
  }
}

/* ---------- mobile tidiness ---------- */
@media (max-width: 820px) {
  .nav .mark-link .brand-full { display: inline !important; }
  .nav .mark-link .brand-short { display: none !important; }
  .nav .mark-link { font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
  .nav .mark { gap: 8px; }
  .book.book-m { font-size: 10px; letter-spacing: .04em; padding: 8px 11px; margin-left: 8px; }
  .nav-sub, .nav-links { display: none; }
  .nav-bar, .nav.is-scrolled .nav-bar { max-height: none; overflow: visible; padding: 12px 0; }
  .nav-topbar { color: #fff; }
  .nav-topbar a { color: #fff; }
  .stats-band .stat { letter-spacing: .08em; }
  .form-shell { gap: 22px; }
  .page-head { padding-top: 150px; }
  .foot-grid { gap: 26px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
}
@media (max-width: 380px) { .nav .mark-link { font-size: 13.5px; } }

/* ==========================================================================
   MOTION (names follow Sol's motion library). CSS does the moving; site.js adds classes.
   ========================================================================== */
@keyframes bd-rise { from { opacity: 0; transform: translateY(22px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bd-answer { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes bd-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* entrance-keyframe: hero text arrives once on load; inner-page headers too (CSS only, no JS needed) */
.hero-desk h1, .hero-desk .hero-sub, .hero-desk .hero-btns, .hero-mob-tag, .hero-mob-cta,
.page-head .label, .page-head h1, .page-head p, .page-hero .meta, .page-hero h1, .page-hero .lede { animation: bd-rise .95s var(--ease-out) both; }
.hero-desk .hero-sub, .hero-mob-tag, .page-head h1, .page-hero h1 { animation-delay: .1s; }
.hero-desk .hero-btns, .hero-mob-cta, .page-head p, .page-hero .lede { animation-delay: .22s; }

/* slow-drift settle + parallax-drift on the hero photo (progressive) */
@keyframes bd-settle { from { scale: 1.08; } to { scale: 1; } }
.hero-img, .hero-video { animation: bd-settle 2.2s var(--ease-out) both; }
@supports (animation-timeline: scroll()) {
  @keyframes bd-drift { to { translate: 0 6%; } }
  .hero-img, .hero-video { animation: bd-settle 2.2s var(--ease-out) both, bd-drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
}

/* block-rise + class-reveal: siblings staggered by --d (site.js); translate/opacity only so hover transforms stay free */
html.js .rv { opacity: 0; translate: 0 24px; transition: opacity .85s var(--ease-out) var(--d, 0ms), translate .9s var(--ease-out) var(--d, 0ms), transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .3s ease, background-color .3s ease; }
html.js .rv.is-in { opacity: 1; translate: 0 0; }

/* scroll-progress-var: a thin read-progress line along the top (progressive) */
@supports (animation-timeline: scroll()) {
  @keyframes bd-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  body::before { content: ''; position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); animation: bd-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
}

/* page changes cross-fade; modal arrives */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.modal-overlay.open { animation: bd-fade .3s ease both; }

/* booking sheet: slide-over with a soft ease, charcoal close, serif title */
.bk-close:hover { transform: rotate(90deg); }
.bk-sheet { box-shadow: -24px 0 80px rgba(var(--ink-rgb), .28); }
.bk-skel b { border-radius: 12px; }

/* ---------- reduced motion: everything visible, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; translate: none; }
  .hero-img, .hero-video { scale: 1; translate: none; }
  .nav.is-hidden:not(.menu-open) { transform: none; }
  body::before { display: none; }
  .faq details::details-content { transition: none; }
  .review-track { animation: none !important; }
  .review-marquee { overflow-x: auto; }
  @view-transition { navigation: none; }
}

/* legacy .reveal blocks from the page css: no double movement, and visible without JS */
html.js .reveal.rv { transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) .rv { opacity: 1; }
@media (max-width: 720px) { .price-cat { padding: 24px 20px 10px; } .price-row .price { font-size: 20px; } .pricing-chips { top: 62px; } }

.careers-aside, .careers-aside em { color: var(--mute-ink); }
/* the LCP element on inner pages (the h1) must not wait on an opacity animation */
@keyframes bd-slide { from { transform: translateY(16px); } to { transform: none; } }
.page-head h1, .page-hero h1 { animation: bd-slide .9s var(--ease-out) both; }
main { display: block; }
.page-head p, .page-hero .lede { animation: bd-slide .9s var(--ease-out) .08s both; }

/* ==========================================================================
   EDITORIAL LEAN (Ahmed's references: a clinic brand film and a fashion campaign, form only):
   cool blue-grey monochrome, paper-grey grounds, close-up photography as the hero of each section,
   fewer boxes and borders, more air, small quiet centred captions as a typographic device,
   an embossed BDHQ mark pressed into paper.
   ========================================================================== */
:root { --bone-deep: #F3F4F6; --paper-grey: #EEF0F3; }
.why-card, .team-card, .promise-card, .review-card, .price-cat, .form-aside, .form-card, .apply-card { border-color: transparent; box-shadow: 0 1px 1px rgba(var(--ink-rgb), .03), 0 18px 44px rgba(var(--ink-rgb), .07); }
.why-section { background: var(--paper-grey); }
.register, .faq, .team-section { padding-top: 124px; padding-bottom: 124px; }
.page-head { padding-bottom: 110px; }
.price-cats { gap: 30px 32px; }
.faq details { border-color: rgba(var(--ink-rgb), .09); }
.stats-band .stat { border-color: rgba(var(--ink-rgb), .09); }
.cta-band { padding-top: 130px; padding-bottom: 130px; }
@media (max-width: 720px) { .register, .faq, .team-section, .cta-band { padding-top: 72px; padding-bottom: 72px; } }

/* captions as type: small, quiet, sentence case, centred, low in frame */
.cap, .hero-cap { color: #fff; font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; font-weight: 400; letter-spacing: .01em; line-height: 1.4; text-align: center; text-shadow: 0 1px 16px rgba(0, 0, 0, .4); }
.hero-cap { position: absolute; left: 50%; bottom: clamp(22px, 4.5vh, 44px); translate: -50% 0; z-index: 3; max-width: calc(100% - 44px); transition: opacity .26s ease; pointer-events: none; }
.hero-cap.is-out { opacity: 0; }
.photo-band { position: relative; height: clamp(320px, 62vh, 640px); overflow: hidden; isolation: isolate; background: #2A303B; }
.photo-band-media { position: absolute; inset: 0; }
.photo-band-media img { width: 100%; height: 118%; object-fit: cover; display: block; transform: scale(1.12); transform-origin: 70% 40%; }
.photo-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 24, 32, .5), rgba(20, 24, 32, 0) 46%); }
.photo-band .cap { position: absolute; left: 50%; bottom: clamp(24px, 5vw, 52px); translate: -50% 0; z-index: 2; width: min(100% - 44px, 560px); font-size: clamp(15px, 1.4vw, 18px); }
@supports (animation-timeline: view()) {
  @keyframes bd-band { from { translate: 0 -8%; } to { translate: 0 0; } }
  .photo-band-media img { animation: bd-band linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}

/* the embossed mark: a navy tile that presses up out of a paper-white surface */
.bd-mark { display: block; overflow: visible; }
.bd-mark .bd-tile { filter: drop-shadow(0 16px 18px rgba(var(--accent-rgb), .30)) drop-shadow(0 3px 3px rgba(var(--ink-rgb), .22)); }
.foot-sign { display: flex; justify-content: center; padding: 34px 0 40px; }
.foot-sign .bd-mark { filter: drop-shadow(-2px -2px 2px rgba(255, 255, 255, .95)); }
.foot-sign .bd-tile { filter: drop-shadow(0 10px 10px rgba(var(--accent-rgb), .26)) drop-shadow(0 2px 2px rgba(var(--ink-rgb), .2)); }
.foot-sign.rv { translate: 0 18px; }
.foot-sign.rv.is-in { translate: 0 0; }
.foot-sign.is-in .bd-mark { animation: bd-press 1.1s var(--ease-out) both; }
@keyframes bd-press { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

.bd-intro { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: #F4F5F7; transition: opacity .38s ease; }
.bd-intro.is-out { opacity: 0; pointer-events: none; }
.bd-intro .bd-mark { filter: drop-shadow(-3px -3px 3px rgba(255, 255, 255, .95)); animation: bd-intro-press .75s var(--ease-out) both; }
.bd-intro .bd-tile { animation: bd-intro-depth .9s var(--ease-out) both; }
.bd-intro-word { font-family: 'Poppins', system-ui, sans-serif; font-size: 17px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); animation: bd-fade .5s ease .5s both; }
@keyframes bd-intro-press { from { transform: scale(.84) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bd-intro-depth { from { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)); } to { filter: drop-shadow(0 22px 22px rgba(var(--accent-rgb), .32)) drop-shadow(0 4px 4px rgba(var(--ink-rgb), .24)); } }
@media (prefers-reduced-motion: reduce) { .bd-intro { display: none; } .hero-cap { transition: none; } .photo-band-media img { transform: scale(1.04); } }

/* ==========================================================================
   CAST HERO (active only when the hero has data-cast; _tools/enable-cast.py adds it once the cast clips exist).
   Editorial: paper-grey ground, ink headline at left, a row of tall portrait panels at right, each with one quiet
   caption. On phones: one full-width portrait panel cycling through the cast.
   ========================================================================== */
.hero[data-cast] { background: #EEF0F3; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: 0; padding: 0 36px 0 0; color: var(--ink); }
.hero[data-cast] h1.hero-title { font-size: clamp(38px, 4vw, 60px); }
.hero[data-cast] .hero-media, .hero[data-cast] .hero-cap { display: none; }
.hero[data-cast] .hero-inner { align-self: center; max-width: none; width: 100%; margin: 0; padding: 150px 36px 70px 36px; }
.hero[data-cast] h1.hero-title, .hero[data-cast] h1.hero-title em { color: var(--ink); text-shadow: none; }
.hero[data-cast] .hero-sub { color: var(--mute-ink); }
.hero[data-cast] .hero-btns .pill-btn:first-child { background: var(--accent); color: #fff; }
.hero[data-cast] .hero-btns .pill-btn:last-child { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .32); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hero[data-cast] .hero-btns .pill-btn:first-child:hover { background: var(--accent-deep); color: #fff; }
.hero[data-cast] .hero-btns .pill-btn:last-child:hover { background: var(--ink); color: #fff; box-shadow: none; }
.hero-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 118px 0 56px; }
.cast-panel { position: relative; overflow: hidden; margin: 0; border-radius: 22px; background: #D9DDE4; aspect-ratio: 9 / 16; isolation: isolate; }
.cast-panel:nth-child(2) { margin-top: 48px; }
.cast-panel:nth-child(3) { margin-top: 18px; }
.cast-panel:nth-child(n+4) { display: none; }
.cast-panel img, .cast-panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-panel video { opacity: 0; transition: opacity .6s ease; }
.cast-panel video.is-on { opacity: 1; }
.cast-panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 24, 32, .5), rgba(20, 24, 32, 0) 38%); pointer-events: none; }
.cast-panel .cap { position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 2; width: calc(100% - 32px); font-size: 14px; }
@media (min-width: 1500px) { .hero-cast { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cast-panel:nth-child(4) { display: block; margin-top: 30px; } }
@media (max-width: 820px) {
  .hero[data-cast] { display: block; padding: 0; min-height: 0; }
  .hero[data-cast] .hero-desk { display: block; }
  .hero[data-cast] .hero-mob { display: none; }
  .hero[data-cast] .hero-inner { padding: 142px 22px 26px; }
  .hero[data-cast] h1.hero-title { font-size: clamp(38px, 10.5vw, 52px); }
  .hero[data-cast] .hero-btns { gap: 10px; }
  .hero[data-cast] .hero-btns .pill-btn { flex: 1 1 100%; justify-content: center; }
  .hero-cast { display: block; position: relative; margin: 0 12px 12px; padding: 0; aspect-ratio: 4 / 5; }
  .cast-panel, .cast-panel:nth-child(2), .cast-panel:nth-child(3) { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; opacity: 0; transition: opacity .7s ease; display: block; }
  .cast-panel.is-cur { opacity: 1; z-index: 1; }
  .cast-panel:nth-child(1):not(.is-cur):only-child { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .cast-panel { transition: none; } .hero-cast .cast-panel:first-child { opacity: 1; } }
.page-head { padding-bottom: 96px; }
@media (max-width: 820px) { .page-head { padding-bottom: 40px; } }

/* ==========================================================================
   NEUTRAL EDITORIAL (COS pass). Ahmed picked the fashion-campaign reference: true neutral black and white on bright white,
   soft high-key light, intimate crops, small white sentence-case captions low in frame, hard cuts, lots of white space.
   This block comes last on purpose: it moves the palette from cool blue-grey to pure neutral and thins the furniture
   (boxes, borders, shadows) without touching content, type families or behaviour.
   ========================================================================== */
:root {
  --ink: #111111;
  --ink-soft: #2C2C2C;
  --bone-deep: #F5F5F5;
  --paper-grey: #F5F5F5;
  --accent: #222222;
  --accent-deep: #000000;
  --mute-ink: #5E5E5E;
  --mute-faint: #8C8C8C;
  --ink-rgb: 17, 17, 17;
  --accent-rgb: 34, 34, 34;
  --line-ink: rgba(17, 17, 17, .09);
  --shadow-card: 0 1px 2px rgba(17, 17, 17, .03), 0 10px 30px rgba(17, 17, 17, .04);
  --shadow-lift: 0 2px 4px rgba(17, 17, 17, .04), 0 18px 40px rgba(17, 17, 17, .09);
  --shadow-btn: 0 8px 22px rgba(17, 17, 17, .22);
  --bk-body-bg: #F5F5F5;
}
::selection { background: rgba(17, 17, 17, .14); }
.hero, .hero-media, .photo-band { background: #1b1b1b; }
.nav-topbar { background: var(--accent); }
/* neutral replacements for the page css's blue literals */
button.submit:hover, .modal-cta:hover, .cta-band .cta:hover { background: #000; border-color: #000; }
.field input:invalid:not(:placeholder-shown) { border-bottom-color: rgba(17, 17, 17, .4); }
.form-error { border-color: rgba(17, 17, 17, .3); background: rgba(17, 17, 17, .04); }
.success-state { background: rgba(17, 17, 17, .04); border-color: rgba(17, 17, 17, .3); }
.hero-media::after { background: linear-gradient(100deg, rgba(10, 10, 10, .7) 0%, rgba(10, 10, 10, .34) 52%, rgba(10, 10, 10, .1) 100%), linear-gradient(0deg, rgba(10, 10, 10, .4) 0%, rgba(10, 10, 10, 0) 38%); }

/* photography is true black and white: any tint in the source files is removed here */
/* (photography is shown in natural colour) */
.hero-img-unused { }

/* captions: the same quiet device everywhere. White sentence-case text; the difference blend turns it dark over bright
   backdrops and white over dark areas, so it is always legible with no scrim or box. */
.cap, .hero-cap { color: #fff; mix-blend-mode: difference; text-shadow: none; font-size: 13px; letter-spacing: .01em; font-weight: 400; }
.photo-band::after { display: none; }
.photo-band .cap { font-size: clamp(13px, 1.2vw, 15px); }
.hero-cap { font-size: 13px; }

/* ---------- cast hero, COS: edge-to-edge tall panels, tight gutters, hard cuts ---------- */
.hero[data-cast] { background: #fff; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding: 0; min-height: clamp(620px, 100svh, 960px); }
.hero[data-cast] .hero-inner { padding: 150px 36px 60px 36px; }
.hero[data-cast] h1.hero-title { font-size: clamp(34px, 3.5vw, 54px); line-height: 1.06; }
.hero[data-cast] .hero-sub { font-size: 16px; }
.hero-cast { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 5px; padding: 104px 0 0; align-items: stretch; }
.cast-panel, .cast-panel:nth-child(2), .cast-panel:nth-child(3) { border-radius: 2px; aspect-ratio: auto; margin: 0; background: #E9E9E9; min-height: 0; }
.cast-panel::after { display: none; }
.cast-panel .cap { bottom: 20px; }
.cast-panel:nth-child(n+5) { display: none; }
@media (min-width: 1100px) { .hero-cast { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cast-panel:nth-child(4) { display: block; margin: 0; } }
@media (max-width: 1099px) and (min-width: 821px) { .cast-panel:nth-child(4) { display: none; } }
@media (max-width: 820px) {
  .hero[data-cast] { min-height: 0; }
  .hero[data-cast] .hero-inner { padding: 136px 22px 30px; }
  .hero[data-cast] h1.hero-title { font-size: clamp(36px, 10.4vw, 52px); }
  .hero-cast { display: block; position: relative; margin: 0; padding: 0; width: 100%; aspect-ratio: 9 / 14; }
  .cast-panel, .cast-panel:nth-child(2), .cast-panel:nth-child(3), .cast-panel:nth-child(4) { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: none; display: block; }
  .cast-panel.is-cur { opacity: 1; z-index: 1; }
}

/* ---------- more white, fewer boxes, lighter dividers ---------- */
body, .register, .faq, .cta-band, .team-section, .reviews, .apply, .page-head, .why-section { background: #fff; }
.page-head::before, .register::before, .reviews::before { display: none; }
.register, .faq, .team-section, .reviews, .why-section { padding-top: 140px; padding-bottom: 140px; }
.cta-band { padding-top: 150px; padding-bottom: 150px; background: #FAFAFA; }
.page-head { padding-top: 190px; padding-bottom: 80px; }
@media (max-width: 820px) { .page-head { padding-top: 150px; padding-bottom: 36px; } .register, .faq, .team-section, .reviews, .why-section { padding-top: 76px; padding-bottom: 76px; } .cta-band { padding-top: 84px; padding-bottom: 84px; } }
footer { background: #FAFAFA; border-top: 0; }
.stats-band { border-bottom: 0; }
.stats-band .stat { border-color: rgba(17, 17, 17, .08); }
.faq details, .faq details:first-of-type { border-color: rgba(17, 17, 17, .08); }
.faq-x { border-color: rgba(17, 17, 17, .14); }
.price-row, .foot-grid, .foot-bottom { border-color: rgba(17, 17, 17, .08); }
.label::before { background: rgba(17, 17, 17, .5); }

/* open columns instead of cards on desktop */
.why-card { background: transparent; border: 0; border-top: 1px solid rgba(17, 17, 17, .16); border-radius: 0; box-shadow: none; padding: 28px 12px 4px 0; }
.why-icon { background: transparent; border: 1px solid rgba(17, 17, 17, .16); }
.why-card:hover { transform: translateY(-3px); box-shadow: none; border-color: rgba(17, 17, 17, .16); }
.price-cat { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 14px; }
.price-cat h3 { padding-bottom: 14px; border-bottom: 1px solid rgba(17, 17, 17, .16); margin-bottom: 4px; }
.price-row:hover { background: rgba(17, 17, 17, .035); }
.team-card { background: transparent; border: 0; box-shadow: none; padding: 10px 12px 20px; }
.team-card:hover { transform: none; box-shadow: none; }
.team-avatar.photo { box-shadow: 0 0 0 1px rgba(17, 17, 17, .1); }
.review-card { box-shadow: none; border: 1px solid rgba(17, 17, 17, .1); }
.review-card:hover { box-shadow: none; border-color: rgba(17, 17, 17, .22); }
.promise-card { box-shadow: none; border: 1px solid rgba(17, 17, 17, .1); }
.promise-card:hover { box-shadow: none; transform: none; }
.form-card, .apply-card, .form-aside { box-shadow: none; border: 1px solid rgba(17, 17, 17, .1); }
.form-map { border: 1px solid rgba(17, 17, 17, .1); }
@media (max-width: 720px) {
  .why-card { background: #fff; border: 1px solid rgba(17, 17, 17, .1); border-radius: 16px; padding: 30px 24px; }
  .price-cat h3 { font-size: 22px; }
}
.pricing-chips a.on { background: var(--accent); border-color: var(--accent); }
.bd-dots i.on { background: var(--accent); }

/* the embossed mark stays, now on neutral paper */
.bd-intro { background: #F7F7F7; }
.foot-sign .bd-mark { filter: drop-shadow(-2px -2px 2px rgba(255, 255, 255, 1)); }
@media (prefers-reduced-motion: reduce) { .cast-panel { transition: none; } }
/* captions: white with a soft dark halo (no box, no gradient) so they read on bright backdrops too */
.cap, .hero-cap { mix-blend-mode: normal; text-shadow: 0 0 10px rgba(0, 0, 0, .55), 0 0 3px rgba(0, 0, 0, .45), 0 1px 1px rgba(0, 0, 0, .35); font-weight: 500; }
.hero[data-cast] .hero-btns .pill-btn { padding: 0 24px; }
.hero[data-cast] .hero-inner { padding-right: 24px; }

/* header: the Book pill never moves. It is centred with inset+auto margins (not transform, which hover and press use),
   and the header keeps one height in every state, so nothing shifts when the page scrolls. */
.nav-sub .book.pill { position: absolute; right: 0; top: 0; bottom: 0; margin-top: auto; margin-bottom: auto; height: max-content; transform: none; }
.nav-bar, .nav.is-scrolled .nav-bar { max-height: none; overflow: visible; padding: 10px 0 8px; }
.nav.is-scrolled .nav-loc, .nav.is-scrolled .nav-tel { opacity: 1; pointer-events: auto; }
@media (max-width: 820px) {
  .nav-bar, .nav.is-scrolled .nav-bar { padding: 12px 0; }
  .nav-topbar, .nav.is-scrolled .nav-topbar { max-height: none; padding: 10px 22px; opacity: 1; }
}
@media (max-width: 820px) {
  .cast-panel:not(.is-cur), .cast-panel:nth-child(n):not(.is-cur) { display: none; }
  .cast-panel.is-cur { display: block; opacity: 1; }
}
/* the clips sit 1px inside the posters so the poster image stays the largest paint (LCP) and the video never replaces it */
.cast-panel video, .hero-video { inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); }
