/* ==========================================================================
   Counseling practice template (reference: captured Framer counseling page)
   Tokens first: swap the palette / fonts / radii here for another business.
   ========================================================================== */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* colour */
  --c-bg: #fbf8f2;          /* page */
  --c-sand: #f3eee3;        /* alternating bands */
  --c-surface: #ffffff;     /* cards, frames */
  --c-accent: #f5b83d;      /* brand sun */
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 24%, #fff);
  --c-ink: #1e1b16;         /* text, dark buttons, footer */
  --c-muted: #5e584d;       /* secondary text */
  --c-line: #d9d2c3;        /* hairlines, card borders */
  --c-on-ink: #fbf8f2;
  --c-ok: #1f7a4f;
  --c-focus: #1e1b16;
  /* type */
  --f-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --f-body: "Figtree", Arial, sans-serif;
  --fs-hero: 80px;  --fs-h2: 50px;  --fs-cta: 64px;  --fs-stat: 64px;
  --fs-h3: 30px;    --fs-row: 32px; --fs-card: 21px; --fs-lead: 17px; --fs-body: 15px; --fs-small: 14px;
  /* space & shape */
  --container: 1200px;
  --gutter: 40px;
  --section-y: 120px;
  --r-xl: 40px; --r-lg: 32px; --r-md: 24px; --r-sm: 20px; --r-xs: 12px; --r-pill: 999px;
  --r-swoop: 280px;          /* oversized top-right corner on sketch frames */
  --shadow-card: 0 14px 36px rgba(31, 26, 20, .16);
  --shadow-thumb: 0 10px 28px rgba(31, 26, 20, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);     /* reference: show / reveal */
  --ease-hide: cubic-bezier(.45, 0, .25, 1); /* reference: header hide */
  --dur-reveal: .65s; --dur-draw: 1.8s; --rise: 20px;
  --menu-row: 64px;
  --header-h: 63px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 100px; font-variation-settings: "opsz" 14; } /* reference pins Bricolage optical size to 14 */
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c-ink); color: var(--c-on-ink); padding: 10px 16px; border-radius: var(--r-pill); }
.skip-link:focus { top: 16px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.band { background: var(--c-sand); }

/* ---------- type ---------- */
.eyebrow { font: 600 var(--fs-small)/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.eyebrow--ink { color: var(--c-ink); }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.025em; text-wrap: balance; }
.h2--narrow { max-width: 9.2em; }
.h2--mid { max-width: 12.6em; }
.fees__copy .h2 { max-width: 6em; }
.articles .h2 { max-width: 8em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--c-muted); }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--split > div { display: grid; gap: 16px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 23px; border-radius: var(--r-pill); border: 1px solid var(--c-ink); font: 600 15px/1 var(--f-body); white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); }
.btn .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn--lg { min-height: 55px; padding: 0 27px; font-size: 15px; }
.btn--ink { background: var(--c-ink); color: var(--c-surface); }
.hero .btn--ink, .closing .btn--ink { color: var(--c-accent); }
.btn--outline { background: transparent; color: var(--c-ink); }
.btn--ink:hover { background: #3a342b; }
.btn--outline:hover { background: var(--c-ink); color: var(--c-bg); }
.hero .btn--outline:hover { color: var(--c-accent); }
.btn--icon:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-pill); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 20px 0 auto; z-index: 50; display: flex; justify-content: center; padding-inline: 20px; pointer-events: none; transition: transform .4s var(--ease), opacity .4s var(--ease); }
.site-header.is-hidden { transform: translateY(calc(-100% - 32px)); opacity: 0; transition: transform .65s var(--ease-hide), opacity .65s var(--ease-hide); }
.site-header.is-hidden .nav-bar { pointer-events: none; }
.nav-bar { pointer-events: auto; width: 720px; max-width: 100%; height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 7px 0 27px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-pill); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled .nav-bar { box-shadow: 0 10px 30px rgba(31, 26, 20, .08); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font: 700 24px/1 var(--f-display); letter-spacing: -.02em; }
.site-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-links { display: flex; align-items: center; gap: 0; margin-right: 49px; }
.nav-link { display: flex; align-items: center; min-height: 44px; padding: 0 16px; font-size: 15px; border-radius: var(--r-pill); transition: background-color .2s var(--ease); }
.nav-link:hover { background: var(--c-sand); }
.nav-link:active { background: var(--c-line); }
.nav-links__cta, .nav-links__item--phone, .nav-link__arrow { display: none; }
.menu-scrim { position: fixed; inset: 0; z-index: 45; background: rgba(30, 27, 22, .4); }
.menu-scrim[hidden] { display: none; }
html.is-menu-open { overflow: hidden; }
.nav-cta { min-height: 46px; padding: 0 24px; }
.menu-button { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 50%; cursor: pointer; }
@media (hover: hover) { .menu-button:hover { background: var(--c-sand); } }
.menu-button:active { background: var(--c-line); }
.menu-button .icon-close { display: none; }
.menu-button[aria-expanded="true"] .icon-open { display: none; }
.menu-button[aria-expanded="true"] .icon-close { display: block; }

/* ---------- hero ---------- */
.hero { padding-top: 103px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 638fr) minmax(0, 541fr); column-gap: 21px; align-items: stretch; }
.hero__copy { position: relative; isolation: isolate; padding: 56px 48px; display: grid; justify-items: start; align-content: center; background: var(--c-accent); border-radius: var(--r-xl); }
.hero__copy > :not(.loop-line) { position: relative; z-index: 1; }
.loop-line--hero { z-index: 0; left: 28px; top: 221px; width: 500px; height: 129px; stroke-width: 8.5; }
.hero__copy .eyebrow { font-size: 14px; margin-bottom: 26px; }
.hero__title { font-family: var(--f-display); font-weight: 700; font-size: var(--fs-hero); line-height: .96; letter-spacing: -.025em; max-width: 6.7em; }
.hero__body { margin-top: 30px; font-size: 19px; line-height: 1.52; max-width: 400px; color: var(--c-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-row { margin-top: 34px; }

/* sketch frames: white card, hairline border, accent circle multiplied under an ink drawing */
.sketch-frame { position: relative; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl) var(--r-swoop) var(--r-xl) var(--r-xl); isolation: isolate; }
.sketch-frame__shape { position: absolute; z-index: 0; left: 20%; top: 24%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--c-accent); opacity: .28; }
.sketch-frame__img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.hero__media { height: 640px; }
.sketch-frame--hero .sketch-frame__shape { left: 20%; top: 23.7%; width: 62%; }
.sketch-frame--hero .sketch-frame__img { object-position: 50% 30%; }
.care-card { position: absolute; z-index: 2; right: 24px; bottom: 24px; width: 348px; padding: 22px 24px 24px; background: var(--c-surface); border-radius: 28px; box-shadow: var(--shadow-card); }
.care-card__title { font: 600 21px/1.25 var(--f-display); letter-spacing: -.01em; }
.care-card__row { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.avatar-stack { display: flex; }
.avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid var(--c-surface); background: color-mix(in srgb, var(--c-accent) 45%, #fff); margin-left: -10px; isolation: isolate; }
.avatar:first-child { margin-left: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.care-card__names { font-size: 15px; line-height: 1.45; }
.care-card__note { font-size: 14px; line-height: 1.45; color: var(--c-muted); }
.care-card__status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-ok); }

/* ---------- proof strip ---------- */
.proof { padding-top: 64px; }
.proof__strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding-left: 32px; border-left: 1px solid var(--c-line); }
.proof__stat:first-child { padding-left: 0; border-left: 0; }
.proof__value { font: 700 var(--fs-stat)/.9 var(--f-display); letter-spacing: -.03em; }
.proof__label { font-size: 17px; line-height: 1.45; color: var(--c-muted); }

/* ---------- services ---------- */
.services { padding-top: 106px; padding-bottom: 96px; }
.services .section-head { margin-bottom: 38px; }
.service-list { border-bottom: 0; margin-bottom: 40px; }
.service-row { position: relative; border-bottom: 1px solid var(--c-line); }
.service-row__link { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr) minmax(0, 360px) 202px; align-items: center; min-height: 98px; padding: 18px 0; }
.service-row:first-child .service-row__link { min-height: 104px; }
.service-row__fill { position: absolute; inset: 6px -16px; border-radius: 28px; background: var(--c-accent); opacity: 0; transform: scaleY(.85); transition: opacity .3s var(--ease), transform .35s var(--ease); z-index: -1; }
.service-row__num { font-size: 17px; color: var(--c-muted); }
.service-row__title { font: 600 var(--fs-row)/1.15 var(--f-display); letter-spacing: -.015em; }
.service-row__summary { font-size: 17px; line-height: 1.55; color: var(--c-muted); }
.service-row__arrow { justify-self: end; width: 24px; height: 24px; transition: transform .3s var(--ease); }
.service-row__thumb { position: absolute; z-index: 3; right: 64px; top: -22px; width: 144px; aspect-ratio: 1; border: 4px solid var(--c-surface); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--shadow-thumb); overflow: hidden; opacity: 0; transform: scale(.9) rotate(4deg); transition: opacity .25s var(--ease), transform .3s var(--ease); pointer-events: none; }
.service-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) {
  .service-row__link:hover .service-row__fill { opacity: 1; transform: none; }
  .service-row__link:hover .service-row__thumb { opacity: 1; transform: rotate(4deg); }
  .service-row__link:hover .service-row__arrow { transform: translateX(-4px); }
  .service-row__link:hover .service-row__summary { color: var(--c-ink); }
  .service-row__link:hover .service-row__num { color: var(--c-ink); }
}
.service-row__link:focus-visible { outline-offset: -2px; border-radius: 28px; }
.service-row__link:focus-visible .service-row__fill { opacity: .6; transform: none; }
.service-row__link:active .service-row__fill { opacity: 1; transform: scale(.99); }

/* ---------- approach ---------- */
.approach { padding-block: 96px 90px; }
.approach__grid { display: grid; grid-template-columns: minmax(0, 563fr) minmax(0, 564fr); gap: 73px; align-items: center; }
.sketch-frame--approach { --r-swoop: 220px; height: 479px; }
.sketch-frame--approach .sketch-frame__shape { left: 20%; top: 17%; width: 58%; }
.approach__copy .eyebrow { margin-bottom: 18px; }
.approach__copy .h2 { max-width: 9.5em; }
.approach__copy .lead { margin-top: 24px; }
.point-list { margin-top: 22px; }
.point-list li { display: flex; align-items: center; gap: 14px; min-height: 55px; border-top: 1px solid var(--c-line); font-size: 17px; }
.point-list li::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c-accent); }
.approach .btn { margin-top: 26px; }

/* ---------- how it works ---------- */
.steps { padding-top: 24px; }
.steps__card { position: relative; overflow: hidden; background: var(--c-accent); border-radius: var(--r-xl); padding: 72px 60px 76px; }
.steps .section-head { margin-bottom: 32px; position: relative; }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.step__numeral { display: block; font: 700 var(--fs-stat)/1 var(--f-display); letter-spacing: -.03em; }
.step__title { margin-top: 12px; font: 600 var(--fs-h3)/1.14 var(--f-display); letter-spacing: -.015em; }
.step__body { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--c-ink); }

/* hand-drawn loop lines (stroke draws in when revealed) */
.loop-line { position: absolute; overflow: visible; fill: none; stroke: var(--c-surface); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; pointer-events: none; }
.loop-line--steps { top: 190px; left: 60px; width: 1040px; height: 85px; stroke-width: 7.4; }
.loop-line--steps-phone { display: none; }
.loop-line--faq { position: relative; display: block; width: 300px; height: 78px; margin-top: 30px; stroke: var(--c-ink); stroke-width: 7.6; opacity: .9; }
.loop-line--closing { top: 40px; right: 60px; width: 560px; height: 145px; transform: scaleX(-1); stroke-width: 7.6; }
@media (prefers-reduced-motion: no-preference) {
  .js .loop-line[data-draw] { stroke-dashoffset: 1; }
  .js .loop-line[data-draw].is-drawn { stroke-dashoffset: 0; transition: stroke-dashoffset var(--dur-draw) cubic-bezier(.45, 0, .25, 1) .3s; }
}

/* ---------- team ---------- */
.team { padding-top: 120px; padding-bottom: 120px; }
.team__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.team__head > div { display: grid; gap: 16px; }
.team__hint { font-size: 15px; color: var(--c-muted); padding-bottom: 4px; margin-left: auto; }
.team__pause { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; min-height: 44px; padding: 0 16px; border: 1px solid var(--c-ink); border-radius: var(--r-pill); background: var(--c-surface); font-size: 14px; cursor: pointer; }
.team__pause:focus-visible { position: static; width: auto; height: auto; clip-path: none; }
.team__head { position: relative; }
.team__viewport { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; mask-image: linear-gradient(90deg, transparent 40px, #000 170px, #000 calc(100% - 170px), transparent calc(100% - 40px)); }
.team__viewport::-webkit-scrollbar { display: none; }
.team__viewport.is-dragging { cursor: grabbing; }
.team__viewport.is-dragging * { user-select: none; }
.team__strip { display: flex; gap: 24px; width: max-content; padding-inline: max(0px, (100vw - 1440px) / 2) 120px; }
.team-card { width: 300px; flex: none; }
.team__viewport { -webkit-user-select: none; user-select: none; }
.team-card__portrait { position: relative; height: 350px; overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); isolation: isolate; transition: transform .35s var(--ease); }
.team-card__shape { position: absolute; left: 11%; top: 4%; width: 78%; height: 78%; border-radius: 50%; background: var(--c-accent); opacity: .3; }
.team-card__portrait img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; mix-blend-mode: multiply; }
.team-card:hover .team-card__portrait { transform: translateY(-4px); }
.team-card__name { margin-top: 18px; font: 600 var(--fs-card)/1.25 var(--f-display); letter-spacing: -.01em; }
.team-card__role { margin-top: 4px; font-size: 15px; color: var(--c-muted); }

/* ---------- who we help ---------- */
.audience__panel { background: var(--c-accent-soft); border-radius: var(--r-xl); padding: 70px 60px 72px; }
.audience__title { margin-top: 16px; max-width: 11em; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; min-height: 52px; padding: 0 21px; border: 1px solid var(--c-ink); border-radius: var(--r-pill); font: 600 22px/1 var(--f-display); letter-spacing: -.01em; transition: background-color .25s var(--ease); }
.chip:hover { background: var(--c-surface); }

/* ---------- fees ---------- */
.fees { padding-top: 120px; padding-bottom: 72px; }
.fees__grid { display: grid; grid-template-columns: minmax(0, 1fr) 748px; gap: 72px; align-items: start; }
.fees__copy .h2 { margin-top: 16px; }
.fees__copy .lead { margin-top: 26px; max-width: 380px; }
.fees__copy .btn { margin-top: 32px; }
.fee-table { border: 1px solid var(--c-line); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface); }
.fee-table table { width: 100%; border-collapse: collapse; }
.fee-table thead th { background: var(--c-accent); height: 50px; font: 600 14px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-align: left; color: var(--c-ink); }
.fee-table th, .fee-table td { padding: 0 27px; }
.fee-table th:first-child { padding-right: 0; }
.fee-table thead th:nth-child(2), .fee-table td:nth-child(2) { width: 196px; padding: 0; }
.fee-table thead th:last-child, .fee-table td:last-child { text-align: right; width: 110px; }
.fee-table tbody tr { height: 73px; border-top: 1px solid var(--c-line); }
.fee-table tbody tr:first-child { border-top: 0; }
.fee-table tbody th { font: 600 var(--fs-card)/1.2 var(--f-display); letter-spacing: -.01em; text-align: left; }
.fee-table tbody td { font-size: 17px; color: var(--c-muted); }
.fee-table tbody td:last-child { font: 600 var(--fs-card)/1.2 var(--f-display); color: var(--c-ink); }

/* ---------- insurance ticker ---------- */
.insurance { padding-bottom: 96px; }
.insurance__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.insurance__head > div { display: grid; gap: 8px; }
.insurance__title { font: 600 22px/1.25 var(--f-display); letter-spacing: -.01em; }
.ticker { position: relative; overflow: hidden; margin-inline: auto; max-width: 1300px; mask-image: linear-gradient(90deg, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; gap: 16px; padding-right: 16px; }
.plan-tile { display: flex; align-items: center; justify-content: center; width: 196px; height: 87px; padding: 0 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-sm); text-align: center; font: 700 24px/1.08 var(--f-display); letter-spacing: -.02em; }
.ticker__pause { position: absolute; z-index: 2; right: 8px; top: 50%; translate: 0 -50%; min-height: 44px; padding: 0 16px; border: 1px solid var(--c-ink); border-radius: var(--r-pill); background: var(--c-surface); font-size: 14px; cursor: pointer; opacity: 0; pointer-events: none; }
.ticker__pause:focus-visible, .ticker:hover .ticker__pause { opacity: 1; pointer-events: auto; }
.ticker__pause:active { transform: scale(.97); }

/* ---------- testimonials ---------- */
.testimonials { padding-block: 96px 96px; }
.testimonials .section-head { margin-bottom: 48px; }
.quote-mosaic { columns: 3; column-gap: 24px; }
.quote { break-inside: avoid; margin-bottom: 24px; padding: 36px 32px 32px; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-surface); transition: transform .35s var(--ease); }
.quote:hover { transform: translateY(-3px); }
.quote--accent { background: var(--c-accent); border-color: var(--c-accent); }
.quote--ink { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-on-ink); }
.quote__text { text-wrap: pretty; }
.quote--large .quote__text { font: 600 30px/1.14 var(--f-display); letter-spacing: -.015em; }
.quote--small { padding-top: 34px; }
.quote--small .quote__text { font-size: 19px; line-height: 1.52; }
.quote__by { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.monogram { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-ink); color: var(--c-on-ink); font-size: 15px; }
.quote--accent .monogram { color: var(--c-accent); }
.quote--ink .monogram { background: var(--c-accent); color: var(--c-ink); }
.quote__name { display: block; font-size: 15px; line-height: 1.4; }
.quote__context { display: block; font-size: 14px; line-height: 1.45; color: var(--c-muted); }
.quote--ink .quote__context { color: color-mix(in srgb, var(--c-on-ink) 75%, transparent); }

/* ---------- our space ---------- */
.space { padding-top: 104px; padding-bottom: 104px; }
.space__pair { display: grid; grid-template-columns: minmax(0, 676fr) minmax(0, 500fr); gap: 24px; }
.space__figure .sketch-frame { height: 420px; --r-swoop: 200px; }
.sketch-frame--narrow { border-radius: var(--r-lg); }
.sketch-frame--wide .sketch-frame__shape { left: 22%; top: 17%; width: 60%; }
.sketch-frame--narrow .sketch-frame__shape { left: 18%; top: 17%; width: 66%; }
.caption { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }

/* ---------- articles ---------- */
.articles { padding-top: 0; padding-bottom: 96px; }
.articles .section-head { margin-bottom: 50px; }
.articles__row { display: grid; grid-template-columns: minmax(0, 624fr) minmax(0, 520fr); gap: 56px; align-items: start; }
.sketch-frame--article { height: 360px; --r-swoop: 200px; }
.sketch-frame--article .sketch-frame__shape { left: 22%; top: 12%; width: 56%; }
.sketch-frame--article .sketch-frame__img { object-position: 50% 70%; }
.article-featured__link { display: block; }
.article__cat { display: block; font-size: 14px; }
.article-featured .article__cat { margin-top: 22px; }
.article-featured__title { margin-top: 14px; font: 600 var(--fs-h3)/1.14 var(--f-display); letter-spacing: -.015em; }
.article-featured__excerpt { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--c-muted); }
.article-featured__link:hover .article-featured__title { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.article-featured__link:hover .sketch-frame__img { transform: scale(1.03); }
.sketch-frame__img { transition: transform .6s var(--ease); }
.article-list li { border-bottom: 1px solid var(--c-line); }
.article-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px 0; transition: padding .3s var(--ease); }
.article-list li:first-child .article-item { padding-top: 32px; }
.article-item .article__cat { margin-bottom: 8px; }
.article-item__title { display: block; max-width: 420px; text-wrap: balance; font: 600 var(--fs-card)/1.3 var(--f-display); letter-spacing: -.01em; }
.article-item .icon { transition: transform .3s var(--ease); }
.article-item:hover .icon { transform: translateX(4px); }
.article-item:hover .article-item__title { text-decoration: underline; text-underline-offset: 4px; }
.article-item:active { opacity: .75; }

/* ---------- faq ---------- */
.faq { padding-block: 96px; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 728px); justify-content: space-between; gap: 72px; align-items: start; }
.faq__title { margin-top: 16px; max-width: 7.2em; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; text-wrap: balance; list-style: none; cursor: pointer; font: 600 22px/1.25 var(--f-display); letter-spacing: -.01em; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:hover { color: var(--c-muted); }
.faq-item__q:active { opacity: .7; }
.faq-item__toggle { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.faq-item__v { transform-origin: 12px 12px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-item__v { transform: scaleY(0); }
.faq-item[open] .faq-item__q { color: var(--c-muted); }
.faq-item__a { padding: 0 64px 26px 0; font-size: 17px; line-height: 1.55; color: var(--c-muted); }
@media (prefers-reduced-motion: no-preference) {
  .faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { block-size: auto; }
}
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--c-accent); padding-block: 88px 92px; }
.closing .container { position: relative; }
.closing__title { font: 700 var(--fs-cta)/1 var(--f-display); letter-spacing: -.025em; }
.closing .btn-row { margin-top: 36px; }
.closing .btn--outline:hover { background: var(--c-ink); color: var(--c-accent); }

/* ---------- footer ---------- */
.site-footer { background: var(--c-ink); color: var(--c-on-ink); padding-block: 88px 52px; }
.footer__top { display: flex; justify-content: space-between; gap: 48px; }
.footer__logo { font: 700 50px/1 var(--f-display); letter-spacing: -.025em; }
.footer__tagline { margin-top: 30px; max-width: 340px; font-size: 17px; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 80%, transparent); }
.footer__cols { display: grid; grid-template-columns: 198px 208px 200px; padding-top: 8px; }
.footer__heading { font: 600 14px/1.3 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c-on-ink) 60%, transparent); margin-bottom: 18px; }
.footer__col li + li { margin-top: 15px; }
.footer__col a, .footer__legal a { font-size: 15px; line-height: 1.55; border-radius: 4px; transition: color .2s var(--ease); }
.footer__col a:hover, .footer__legal a:hover { color: var(--c-accent); }
.footer__col a:active, .footer__legal a:active { opacity: .7; }
.site-footer :focus-visible { outline-color: var(--c-accent); }
.crisis-note { display: flex; align-items: center; gap: 12px; margin-top: 64px; min-height: 52px; padding: 12px 20px; border: 1px solid color-mix(in srgb, var(--c-on-ink) 40%, transparent); border-radius: var(--r-xs); font-size: 14px; }
.crisis-note .icon { width: 20px; height: 20px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 30px; border-top: 1px solid color-mix(in srgb, var(--c-on-ink) 22%, transparent); }
.footer__copy { font-size: 14px; color: color-mix(in srgb, var(--c-on-ink) 75%, transparent); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { font-size: 14px; }

/* ---------- sticky phone action bar ---------- */
.sticky-bar { display: none; }

/* ---------- reveal on scroll (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Tablet 810–1199
   ========================================================================== */
@media (max-width: 1199px) {
  :root { --fs-hero: 64px; --fs-h2: 44px; --fs-cta: 56px; --fs-stat: 52px; --fs-row: 28px; --fs-h3: 26px; }
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__grid { column-gap: 16px; }
  .hero__copy { padding: 48px 36px; }
  .loop-line--hero { left: 20px; top: 190px; width: 400px; height: 103px; }
  .hero__media { height: 560px; --r-swoop: 200px; }
  .care-card { width: auto; left: 24px; }
  .service-row__link { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 300px) 60px; }
  .service-row__thumb { display: none; }
  .approach__grid { gap: 48px; }
  .steps__list { gap: 32px; }
  .loop-line--steps { width: 650px; height: 53px; top: 176px; left: 40px; }
  .fees__grid { grid-template-columns: 1fr; gap: 48px; }
  .faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .articles__row { gap: 40px; }
  .footer__top { flex-direction: column; }
  .loop-line--closing { width: 360px; height: 93px; top: 28px; right: 24px; }
}

/* ==========================================================================
   Phone ≤ 809
   ========================================================================== */
@media (max-width: 809px) {
  :root { --gutter: 20px; --fs-hero: 46px; --fs-h2: 35px; --fs-cta: 42px; --fs-stat: 46px; --fs-row: 24px; --fs-h3: 24px; --fs-card: 20px; --section-y: 72px; --header-h: 63px; }
  .eyebrow { font-size: 14px; letter-spacing: .06em; }

  .site-header { padding-inline: 20px; }
  .nav-bar { width: 100%; padding: 0 11px 0 19px; }
  .nav-cta { display: none; }
  .menu-button { display: inline-flex; }
  /* phone menu: card under the pill, like the reference, plus scrim, scroll lock and focus handling (JS) */
  .nav-links { display: none; position: absolute; top: calc(100% + 9px); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; padding: 8px 20px 20px; max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
  .site-header .nav-bar { position: relative; }
  .nav-links.is-open { display: flex; }
  .nav-links__item, .nav-links__item--phone { display: block; border-bottom: 1px solid var(--c-line); }
  .nav-link { min-height: var(--menu-row); padding: 0; justify-content: space-between; font: 600 24px/1 var(--f-display); letter-spacing: -.015em; border-radius: 0; }
  .nav-link:hover, .nav-link:active { background: none; color: var(--c-muted); }
  .nav-link__arrow { display: block; width: 22px; height: 22px; transition: transform .25s var(--ease); }
  .nav-link:hover .nav-link__arrow { transform: translateX(3px); }
  .nav-links__cta { display: block; margin-top: 20px; }
  .nav-links__cta .btn { width: 100%; min-height: 55px; font-size: 16px; }
  .menu-scrim { z-index: 45; }
  @media (prefers-reduced-motion: no-preference) {
    .nav-links.is-open { animation: menu-in .35s var(--ease); }
    .menu-scrim:not([hidden]) { animation: fade-in .3s var(--ease); }
  }

  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; row-gap: 12px; }
  .hero__copy { padding: 40px 24px 44px; border-radius: var(--r-lg); }
  .loop-line--hero { left: 16px; top: 125px; width: 300px; height: 78px; stroke-width: 14; }
  .hero__copy .eyebrow { font-size: 14px; letter-spacing: .035em; margin-bottom: 20px; }
  .hero__title { max-width: 6.2em; }
  .hero__body { margin-top: 13px; font-size: 17px; line-height: 1.55; max-width: 262px; }
  .hero .btn-row { flex-direction: column; align-items: flex-start; margin-top: 27px; }
  .hero__media { height: 440px; --r-swoop: 150px; }
  .sketch-frame--hero .sketch-frame__shape { left: 18%; top: 20%; width: 64%; }
  .sketch-frame--hero .sketch-frame__img { object-position: 50% 18%; }
  .care-card { left: 0; right: 12px; bottom: 12px; width: auto; padding: 16px 14px 20px; border-radius: 24px; }
  .care-card__title { font-size: 20px; }
  .care-card__row { margin-top: 10px; gap: 14px; }

  .proof { padding-top: 46px; }
  .proof__strip { grid-template-columns: 1fr 1fr; row-gap: 26px; column-gap: 0; }
  .proof__stat, .proof__stat:first-child { padding-left: 0; border-left: 0; gap: 4px; }
  .proof__stat:nth-child(even) { padding-left: 3px; }
  .proof__label { font-size: 16px; }

  .services { padding-top: 64px; padding-bottom: 56px; }
  .section-head { margin-bottom: 40px; gap: 14px; }
  .services .section-head { margin-bottom: 33px; }
  .h2--narrow, .h2--mid { max-width: none; }
  .services .h2 { max-width: 9.6em; }
  .service-list { margin-bottom: 25px; }
  .service-row__link, .service-row:first-child .service-row__link { grid-template-columns: 58px minmax(0, 1fr) 24px; column-gap: 16px; grid-template-areas: "thumb title arrow" "thumb summary arrow"; min-height: 117px; padding: 0; align-content: center; }
  .service-row__num { display: none; }
  .service-row__thumb { display: block; position: static; grid-area: thumb; width: 58px; height: 58px; margin: 0; border: 0; border-radius: var(--r-xs); box-shadow: 0 0 0 1px var(--c-line); opacity: 1; transform: none; align-self: start; margin-top: 0; }
  .service-row__title { grid-area: title; }
  .service-row__summary { grid-area: summary; margin-top: 6px; font-size: 15px; line-height: 1.6; max-width: 15.5em; }
  .service-row__arrow { grid-area: arrow; }
  .service-row__fill { inset: 4px -10px; }

  .approach { padding-block: 56px; }
  .approach__grid { grid-template-columns: 1fr; gap: 36px; }
  .sketch-frame--approach { height: 300px; --r-swoop: 150px; }
  .approach__copy .h2 { max-width: 8.4em; }
  .approach__copy .lead { font-size: 15.5px; line-height: 1.6; margin-top: 30px; }
  .point-list { margin-top: 24px; }
  .point-list li { min-height: 53px; font-size: 15.5px; gap: 14px; }
  .approach .btn { margin-top: 30px; }

  .steps { padding-top: 12px; }
  .steps__card { padding: 44px 24px 45px; border-radius: 28px; }
  .steps .section-head { margin-bottom: 24px; gap: 12px; }
  .steps__list { grid-template-columns: 1fr; gap: 20px; }
  .step__numeral { font-size: 46px; }
  .step__title { margin-top: 6px; }
  .step__body { font-size: 15.5px; margin-top: 10px; }
  .loop-line--steps { display: none; }
  .loop-line--steps-phone { display: block; width: 210px; height: 54px; top: 4px; right: -24px; stroke-width: 7.6; }

  .team { padding-top: 69px; padding-bottom: 66px; }
  .team__head { margin-bottom: 28px; }
  .team__head .h2 { max-width: 7.4em; }
  .team__hint { display: none; }
  .team__viewport { mask-image: linear-gradient(90deg, transparent 0, #000 90px, #000 calc(100% - 50px), transparent 100%); }
  .team__strip { padding-inline: 0 40px; }
  .team-card__name { font-size: 20px; margin-top: 16px; }
  .team-card__role { font-size: 15px; }

  .audience__panel { padding: 44px 24px 48px; border-radius: 28px; }
  .audience__title { max-width: 6.7em; margin-top: 18px; }
  .chips { margin-top: 30px; gap: 12px; }
  .chip { min-height: 49px; font-size: 20px; padding: 0 21px; }

  .fees { padding-top: 68px; padding-bottom: 56px; }
  .fees__grid { gap: 29px; }
  .fees__copy .lead { font-size: 15.5px; line-height: 1.6; max-width: none; }
  .fees__copy .btn { margin-top: 28px; }
  .fee-table { border-radius: 20px; }
  .fee-table thead th { height: 45px; font-size: 14px; letter-spacing: .06em; }
  .fee-table th, .fee-table td { padding: 0 15px; }
  .fee-table thead th:nth-child(2), .fee-table td:nth-child(2) { width: 100px; padding: 0 0 0 4px; }
  .fee-table thead th:last-child, .fee-table td:last-child { width: 70px; }
  .fee-table tbody tr { height: 58px; }
  .fee-table tbody tr:nth-child(-n+2) { height: 84px; }
  .fee-table tbody th, .fee-table tbody td:last-child { font-size: 20px; }
  .fee-table tbody td { font-size: 15.5px; }

  .insurance { padding-bottom: 56px; }
  .insurance__head { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 26px; }
  .insurance__title { font-size: 20px; }
  .ticker { mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%); padding-left: 20px; }
  .plan-tile { width: 176px; }

  .testimonials { padding-block: 56px 56px; }
  .testimonials .section-head { margin-bottom: 52px; }
  .quote-mosaic { columns: 1; display: flex; flex-direction: column; gap: 17px; }
  .quote { order: var(--phone-order); margin: 0; padding: 32px 32px 32px; border-radius: 28px; }
  .quote--small { padding-top: 32px; }
  .quote__text { text-wrap: pretty; }
.quote--large .quote__text { font-size: 23.5px; line-height: 1.18; }
  .quote--small .quote__text { font-size: 17px; line-height: 1.6; }
  .quote__by { margin-top: 26px; }

  .space { padding-top: 64px; padding-bottom: 56px; }
  .space .h2 { max-width: 7.7em; }
  .space__pair { grid-template-columns: 1fr; gap: 28px; }
  .space .section-head { margin-bottom: 47px; }
  .space__figure .sketch-frame { height: 260px; --r-swoop: 150px; }
  .caption { margin-top: 22px; font-size: 15px; }

  .articles { padding-bottom: 56px; }
  .articles .section-head { margin-bottom: 72px; }
  .section-head--split { display: grid; }
  .articles .section-head__cta { display: none; }
  .articles__row { grid-template-columns: 1fr; gap: 26px; }
  .sketch-frame--article { height: 220px; --r-swoop: 150px; }
  .article-featured .article__cat { margin-top: 22px; font-size: 14px; }
  .article-featured__title { font-size: 22.5px; max-width: 11em; margin-top: 12px; }
  .article-featured__excerpt { font-size: 15.5px; line-height: 1.6; margin-top: 12px; }
  .article-item, .article-list li:first-child .article-item { padding: 28px 0 26px; }
  .article-item__title { font-size: 19.5px; max-width: 300px; }

  .faq { padding-block: 56px; }
  .faq__grid { gap: 32px; }
  .faq__title { max-width: 10em; }
  .loop-line--faq { width: 220px; height: 57px; margin-top: 22px; }
  .faq-item__q { font-size: 19.5px; }

  .closing { padding-block: 58px 60px; }
  .closing__title { line-height: .95; }
  .closing__title { max-width: 6em; }
  .closing .btn-row { flex-direction: column; align-items: flex-start; margin-top: 36px; }
  .loop-line--closing { width: 220px; height: 57px; top: 8px; right: -40px; }

  .site-footer { padding-block: 56px 0; }
  .footer__logo { font-size: 36px; }
  .footer__tagline { margin-top: 26px; font-size: 15.5px; }
  .footer__top { gap: 48px; }
  .footer__cols { grid-template-columns: 1fr; gap: 36px; padding-top: 0; }
  .footer__col li + li { margin-top: 0; }
  .footer__col a, .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__heading { margin-bottom: 6px; }
  .footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
  .crisis-note { margin-top: 56px; align-items: flex-start; padding: 14px 20px 16px; font-size: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 64px; padding-top: 22px; padding-bottom: 122px; }
  .footer__legal a { font-size: 14px; }
  .footer__bottom { gap: 6px; }

  .sticky-bar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--c-bg); box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .16); transform: translateY(110%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
  .sticky-bar.is-shown { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .sticky-bar .btn { min-height: 48px; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

/* large phones / small tablets 600–809: keep the phone layout but stop it over-stretching */
@media (min-width: 600px) and (max-width: 809px) {
  .hero__body { max-width: 420px; }
  .hero__media { height: 520px; }
  .care-card { right: auto; width: 360px; }
  .space__figure .sketch-frame { height: 360px; }
  .sketch-frame--article { height: 320px; }
  .sketch-frame--approach { height: 380px; }
  .quote-mosaic { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ext: css/showcase-dental.css */
/* ==========================================================================
   showcase-dental: variation knobs for the SUNWELL counselling template
   (appended to the staged site.css; base template untouched). Knobs are
   classes on <html> set from data site.knobs; see README.md.
   ========================================================================== */

/* ---------- type: one-weight display serif (Lora 500) -> never synthesise bold ---------- */
html { font-variation-settings: normal; }
.h2, .hero__title, .brand, .proof__value, .service-row__title, .care-card__title, .step__numeral, .step__title,
.team-card__name, .chip, .fee-table tbody th, .fee-table tbody td:last-child, .plan-tile, .insurance__title,
.quote--large .quote__text, .article-featured__title, .article-item__title, .faq-item__q, .closing__title,
.footer__logo, .nav-link { font-synthesis: none; }
.h2, .hero__title, .brand, .proof__value, .step__numeral, .closing__title, .footer__logo { font-weight: 500; letter-spacing: -.02em; }
.service-row__title, .care-card__title, .step__title, .team-card__name, .chip, .fee-table tbody th,
.fee-table tbody td:last-child, .plan-tile, .insurance__title, .quote--large .quote__text,
.article-featured__title, .article-item__title, .faq-item__q { font-weight: 500; letter-spacing: -.01em; }
.hero__title { line-height: 1.02; max-width: 8.4em; }
.h2 { line-height: 1.06; }
.eyebrow { letter-spacing: .1em; }

/* ---------- photos instead of multiplied ink sketches ---------- */
.sketch-frame__shape, .team-card__shape { display: none; }
.sketch-frame__img, .team-card__portrait img, .avatar img { mix-blend-mode: normal; }
.sketch-frame { background: var(--c-sand); border: 0; }
.team-card__portrait { background: var(--c-sand); border: 0; }
.team-card__portrait img { object-position: 50% 20%; }
.avatar { background: var(--c-sand); }
.sketch-frame--hero .sketch-frame__img { object-position: 42% 30%; }

/* ---------- knob: mask = arch (hero, approach, team) + soft rectangle (others) ---------- */
.k-mask-arch .sketch-frame { border-radius: var(--r-lg); }
.k-mask-arch .sketch-frame--hero { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 270px 270px var(--r-lg) var(--r-lg); }
.k-mask-arch .sketch-frame--approach { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 280px 280px var(--r-lg) var(--r-lg); }
.k-mask-arch .team-card__portrait { border-radius: 50% 50% var(--r-md) var(--r-md) / 150px 150px var(--r-md) var(--r-md); }
.k-mask-arch .service-row__thumb { border-radius: 50% 50% 14px 14px / 60px 60px 14px 14px; }
.k-mask-soft .sketch-frame, .k-mask-soft .team-card__portrait { border-radius: var(--r-lg); }

/* ---------- knob: menu = full-width bar (desktop) + full-screen sheet (phone) ---------- */
.k-menu-bar .site-header { inset: 0 0 auto; padding-inline: 0; }
.k-menu-bar .nav-bar { width: 100%; height: 76px; border: 0; border-bottom: 1px solid var(--c-line); border-radius: 0;
  padding: 0 max(var(--gutter), (100% - var(--container)) / 2); background: color-mix(in srgb, var(--c-bg) 94%, transparent); gap: 32px; }
.k-menu-bar .site-header.is-scrolled .nav-bar { box-shadow: 0 8px 24px -16px rgba(23, 58, 52, .35); }
.k-menu-bar .site-nav { justify-content: center; }
.k-menu-bar .nav-links { margin-right: 0; gap: 4px; }
.k-menu-bar .brand { gap: 10px; font-size: 27px; }
.k-menu-bar .brand::before { content: ""; width: 26px; height: 30px; flex: none; border-radius: 50% 50% 9px 9px / 14px 14px 9px 9px;
  background: var(--c-ink); box-shadow: inset 0 -9px 0 var(--c-warm); }
.k-menu-bar .hero { padding-top: 100px; }
@media (max-width: 809px) {
  .k-menu-bar .nav-bar { height: 64px; padding: 0 12px 0 20px; }
  .k-menu-bar .brand { font-size: 24px; }
  .k-menu-bar .brand::before { width: 22px; height: 26px; }
  .k-menu-bar .nav-links { position: fixed; inset: 64px 0 0; max-height: none; border: 0; border-top: 1px solid var(--c-line); border-radius: 0;
    box-shadow: none; padding: 12px 24px 32px; background: var(--c-bg); }
  .k-menu-bar .nav-link { min-height: 72px; font-size: 30px; }
  .k-menu-bar .menu-scrim { display: none; }
  .k-menu-bar .hero { padding-top: 76px; }
}

/* ---------- knob: buttons = rounded-square family ---------- */
.k-btn-square .btn, .k-btn-square .btn:focus-visible { border-radius: 14px; }
.k-btn-square .btn { font-weight: 600; letter-spacing: .005em; }
.k-btn-square .btn--ink:hover { background: color-mix(in srgb, var(--c-ink) 82%, #fff); }
.k-btn-square .hero .btn--ink, .k-btn-square .closing .btn--ink { color: var(--c-on-ink); }
.k-btn-square .hero .btn--outline:hover, .k-btn-square .closing .btn--outline:hover { color: var(--c-on-ink); }

/* ---------- knob: cards = tinted, borderless ---------- */
.k-cards-tint .quote { border: 0; background: var(--c-surface); box-shadow: 0 1px 0 rgba(23, 58, 52, .04); }
.k-cards-tint .quote--accent { background: var(--c-accent); }
.k-cards-tint .quote--ink { background: var(--c-ink); }
.k-cards-tint .fee-table { border: 0; background: var(--c-sand); }
.k-cards-tint .fee-table tbody tr { border-top-color: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.k-cards-tint .plan-tile { border: 0; background: var(--c-sand); }
.k-cards-tint .care-card { border-radius: 22px; }
.k-cards-tint .audience__panel { background: var(--c-sand); }

/* hero loop line: under the copy, bottom-right, instead of across the (longer, Cyrillic) title */
.hero__copy { overflow: hidden; }
.loop-line--hero { top: 34px; left: auto; right: -70px; bottom: auto; width: 330px; height: 85px; opacity: .9; }

/* accents */
.point-list li::before { background: var(--c-warm); }
.status-dot { background: var(--c-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-ok) 18%, transparent); }
.loop-line { stroke: var(--c-surface); }
.loop-line--faq { stroke: var(--c-warm); opacity: 1; }
.service-row__fill { background: var(--c-sand); }
.fee-table thead th { background: var(--c-ink); color: var(--c-on-ink); }
.crisis-note { border-style: dashed; }

/* ---------- fees: UAH prices need a wider price column ---------- */
.fee-table thead th:nth-child(2), .fee-table td:nth-child(2) { width: 150px; }
.fee-table thead th:last-child, .fee-table td:last-child { width: 200px; }
.fee-table tbody tr { height: 70px; }
.fee-table tbody th { padding-block: 12px; }

/* ---------- "how we work" ticker: auto-width text tiles ---------- */
.plan-tile { width: auto; height: 74px; padding: 0 30px; font-size: 21px; white-space: nowrap; }

/* ---------- motion: hero photo settles in, care card rises (first screen, no scroll needed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .k-motion-settle .sketch-frame--hero .sketch-frame__img { animation: settle 1.6s var(--ease) both; }
  .k-motion-settle .care-card { animation: rise .9s var(--ease) .55s both; }
  .k-motion-settle .proof__stat { animation: rise .8s var(--ease) .45s both; }
  .k-motion-settle .proof__stat:nth-child(2) { animation-delay: .55s; }
  .k-motion-settle .proof__stat:nth-child(3) { animation-delay: .65s; }
  .k-motion-settle .proof__stat:nth-child(4) { animation-delay: .75s; }
}
@keyframes settle { from { transform: scale(1.08); opacity: .4; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* ---------- tablet 810-1199: first screen must fit the 1120x620 showcase frame ---------- */
@media (max-width: 1199px) {
  .k-menu-bar .hero { padding-top: 92px; }
  .hero__copy { padding: 36px 36px 40px; }
  .hero__copy .eyebrow { margin-bottom: 18px; }
  .hero__body { margin-top: 18px; font-size: 17px; }
  .hero .btn-row { margin-top: 26px; }
  .hero__media { height: 512px; }
  .k-mask-arch .sketch-frame--hero { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 250px 250px var(--r-lg) var(--r-lg); }
  .care-card { padding: 16px 18px 18px; }
}

/* ---------- phone: heading, CTA and the top of the photo inside 360x700 ---------- */
@media (max-width: 809px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { padding: 26px 22px 26px; }
  .hero__copy .eyebrow { margin-bottom: 14px; font-size: 13px; }
  .hero__title { max-width: none; }
  .hero__body { margin-top: 12px; font-size: 16px; line-height: 1.5; max-width: none; }
  .hero .btn-row { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 20px; gap: 10px; }
  .hero .btn--lg { min-height: 50px; padding: 0 22px; }
  .loop-line--hero { top: 4px; right: -50px; width: 170px; height: 44px; stroke-width: 8; }
  .hero__media { height: auto; }
  .hero__media .sketch-frame__img { height: 330px; }
  .care-card { position: relative; left: auto; right: auto; bottom: auto; margin: -64px 12px 12px; }
  .k-mask-arch .sketch-frame--hero { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 170px 170px var(--r-lg) var(--r-lg); }
  .k-mask-arch .sketch-frame--approach { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 160px 160px var(--r-lg) var(--r-lg); }
  .sketch-frame--approach { height: 340px; }
  .fee-table th, .fee-table td { padding: 0 12px; }
  .fee-table thead th:nth-child(2), .fee-table td:nth-child(2) { width: 66px; padding: 0; font-size: 14px; }
  .fee-table thead th:last-child, .fee-table td:last-child { width: 112px; }
  .fee-table tbody th, .fee-table tbody td:last-child { font-size: 17px; }
  .fee-table tbody tr, .fee-table tbody tr:nth-child(-n+2) { height: auto; }
  .fee-table tbody th, .fee-table tbody td { padding-block: 14px; }
  .plan-tile { height: 64px; font-size: 18px; padding: 0 22px; }
  .proof__value { font-size: 40px; }
  .chip { font-size: 18px; min-height: 46px; padding: 0 18px; }
  .quote--large .quote__text { font-size: 22px; }
  .footer__logo { display: inline-flex; gap: 10px; }
}

/* ---------- section-order spacing (sections moved away from their template neighbours) ---------- */
.audience { padding-top: 24px; padding-bottom: 104px; }
.articles { padding-top: 104px; }
.loop-line--steps { top: 166px; height: 46px; }
@media (max-width: 1199px) { .loop-line--steps { top: 150px; height: 40px; } }
@media (max-width: 809px) {
  .audience { padding-top: 12px; padding-bottom: 60px; }
  .articles { padding-top: 60px; }
  .chip { white-space: normal; line-height: 1.2; padding-block: 10px; }
  .closing__title { max-width: none; }
  .fee-table thead th:nth-child(2), .fee-table td:nth-child(2) { width: 56px; font-size: 13px; }
  .fee-table thead th:last-child, .fee-table td:last-child { width: 124px; }
  .fee-table tbody td:last-child { font-size: 16px; }
}

/* ==========================================================================
   Round 2 (2026-12-02): phone first screen, phone fee table
   ========================================================================== */
/* phone first screen (360x700 rail frame): compact copy card, then the whole photo (both faces, the chair) ends
   inside the screen; the care card follows below the photo instead of covering its lower part. */
@media (max-width: 809px) {
  .k-menu-bar .hero { padding-top: 74px; }           /* the 1199px rule above set 92px for phones too */
  .hero__grid { gap: 12px; }
  .hero__copy { padding: 20px 20px 22px; }
  .hero__copy .eyebrow { margin-bottom: 10px; font-size: 12.5px; }
  .hero__title { line-height: 1.04; }
  .hero__body { margin-top: 10px; font-size: 15px; line-height: 1.45; }
  .hero .btn-row { margin-top: 16px; }
  .hero .btn--lg { min-height: 48px; }
  /* --k-hero-photo-gap = height of header + copy card + gaps + 12px; set per language in the plan (uk copy is longer) */
  .hero__media .sketch-frame__img { height: clamp(250px, calc(100svh - var(--k-hero-photo-gap, 412px)), 420px); object-position: 60% 22%; }
  .k-mask-arch .sketch-frame--hero { border-radius: 50% 50% var(--r-lg) var(--r-lg) / 120px 120px var(--r-lg) var(--r-lg); }
  .care-card { margin: 12px 0 0; }
}
/* phone fee table (MWG responsive-table, stacked layout): a price is one unit ("від 1 200 грн" on one line, built with
   no-break spaces). Each row becomes a two-column grid: service name with its duration below it (label injected) on
   the left, the price on the right; the column header row is hidden (as the guide prescribes for the stacked
   layout). Fits 320 px and up without hyphenation. */
@media (max-width: 809px) {
  .fee-table table, .fee-table tbody { display: block; }
  .fee-table thead { display: none; }
  .fee-table tbody tr, .fee-table tbody tr:nth-child(-n+2) { display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "svc fee" "len fee"; align-items: center; column-gap: 14px; row-gap: 4px; height: auto; padding: 14px 18px; }
  .fee-table tbody th, .fee-table tbody td, .fee-table tbody td:nth-child(2), .fee-table tbody td:last-child { width: auto; padding: 0; }
  .fee-table tbody th { grid-area: svc; font-size: 18px; }
  .fee-table tbody td:nth-child(2) { grid-area: len; font-size: 13.5px; line-height: 1.3; }
  .fee-table tbody td:nth-child(2)::before { content: "Час: "; }
  .fee-table tbody td:nth-child(2):lang(en)::before { content: "Time: "; }
  .fee-table tbody td:last-child { grid-area: fee; white-space: nowrap; font-size: 17px; text-align: right; }
}
/* LOGIC 2026-12-02: team row scrolls on the phone but stopped between cards (audit carousel-swipe): snap to each dentist. */
#team .team__viewport { scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
#team .team__strip > * { scroll-snap-align: start; }

/* team slider: the template's left edge-fade (transparent → 90px) lay over the first card at rest, so the first name
   read «лена Мельник» on the phone (audit faded-at-rest, LOGIC 2026-12-02). Fade only the trailing edge. */
.team__viewport { mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 50px), transparent 100%) !important; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 50px), transparent 100%) !important; }

/* business tokens (library_build_site.py) */
@font-face { font-family: "Biz Display"; src: url("../assets/fonts/biz-lora-cyrillic-normal-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Biz Display"; src: url("../assets/fonts/biz-lora-latin-normal-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
@font-face { font-family: "Biz Body"; src: url("../assets/fonts/biz-Onest-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Biz Body"; src: url("../assets/fonts/biz-Onest-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212; }
:root { --c-bg: #f6f6f1; --c-sand: #e8efe9; --c-surface: #ffffff; --c-accent: #c6ddcf; --c-ink: #163a33; --c-muted: #4c615b; --c-line: #d3ddd6; --c-on-ink: #f6f6f1; --c-ok: #2f8a5b; --c-focus: #163a33; --c-warm: #e9a882; --f-display: "Biz Display", Georgia, serif; --f-body: "Biz Body", system-ui, -apple-system, "Segoe UI", sans-serif; --fs-hero: 72px; --fs-h2: 48px; --fs-cta: 58px; --fs-stat: 58px; --fs-row: 30px; --r-xl: 32px; --r-lg: 28px; --r-md: 22px; }
@media (max-width: 1199px) { :root { --fs-hero: 54px; --fs-h2: 42px; --fs-cta: 50px; --fs-stat: 50px; --fs-row: 27px; } }
@media (max-width: 809px) { :root { --fs-hero: 34px; --fs-h2: 32px; --fs-cta: 36px; --fs-stat: 40px; --fs-row: 22px; --fs-h3: 23px; --fs-card: 19px; --k-hero-photo-gap: 376px; } }

/* enhanced photos: <picture> wrapper is layout-neutral */
picture.biz-pic { display: contents; } picture.biz-pic > source { display: none; }
