/* Hallmark · theme: furrow (deal: manual, Cyrillic faces) · batch 13, niche: clinic · signature: a topic picker answered with a client's own words, and an AI assistant answering from the page's facts · axes: light */
@import url("./tokens.css");
@import url("./base.css");

/* ---- chrome ---- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 68px; }
.wordmark { font-family: var(--font-display); font-weight: var(--display-weight, 600); font-size: var(--text-xl); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav nav { display: flex; gap: var(--space-lg); }
.nav nav a { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink-2); white-space: nowrap; }
.nav nav a:hover { color: var(--color-ink); text-decoration: underline; }
@media (max-width: 60rem) { .nav nav { display: none; } }

.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-deep); border-color: var(--color-accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-2); border-color: var(--color-ink-2); }
.btn--sm { min-height: 44px; padding: 0 var(--space-md); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.sec { padding-block: var(--section-gap) 0; }
.sec:nth-of-type(3n) { padding-block-start: var(--section-gap-l); }
.sec:nth-of-type(3n+1) { padding-block-start: var(--section-gap-s); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: var(--gap-columns); }
.head--split .lead { justify-self: end; text-align: right; color: var(--color-ink-2); }
.head .lead { color: var(--color-ink-2); }
@media (max-width: 60rem) { .head--split { grid-template-columns: minmax(0, 1fr); } .head--split .lead { justify-self: start; text-align: left; } }

/* ---- hero ---- */
.hero { position: relative; }
.hero--stage { min-height: calc(100dvh - 69px); display: grid; align-items: center; padding-block: var(--space-2xl) var(--space-3xl); }
.hero__grid { display: grid; grid-template-columns: fit-content(36rem) minmax(0, 1fr); gap: var(--space-3xl); align-items: center; }
.hero__pic { margin: 0; height: min(72dvh, 720px); min-height: 440px; border-radius: var(--radius-card); }
.hero__text h1 { max-width: 11ch; text-wrap: wrap; }
.hero--stage .hero__text { max-width: 36rem; }
.hero__text .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: 34ch; }
.proof { display: flex; align-items: baseline; gap: var(--space-sm); margin-top: var(--space-xl); color: var(--color-ink-2); font-size: var(--text-sm); }
.proof__n { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 60rem) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .hero__pic { height: auto; min-height: 0; aspect-ratio: 4 / 5; } .hero--stage { min-height: 0; } }

.hero--poster { min-height: calc(100dvh - 69px); display: grid; align-items: end; color: var(--color-ink); }
.hero__bg { position: absolute; inset: 0; margin: 0; }
.hero__bg::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, color-mix(in oklab, var(--color-paper) 92%, transparent) 0%, color-mix(in oklab, var(--color-paper) 70%, transparent) 38%, color-mix(in oklab, var(--color-paper) 10%, transparent) 75%); }
.hero__inner { position: relative; z-index: 3; padding-block: var(--space-3xl); }
.hero--poster .hero__text { max-width: 44rem; }
.hero--poster .lead { margin-top: var(--space-lg); }

.hero--corridor { min-height: calc(100dvh - 69px); display: grid; align-items: center; padding-block: var(--space-2xl); border-bottom: var(--rule-hair, 1px) solid var(--color-rule); }
.h1--huge { font-size: clamp(3.25rem, 11vw, 11rem); max-width: 12ch; line-height: 1.02; }
.hero__foot { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-top: var(--space-2xl); }
.hero__foot .lead { color: var(--color-ink-2); }
.hero__foot .actions { margin-top: 0; justify-content: flex-end; }
.hero__foot .proof { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 60rem) { .hero__foot { grid-template-columns: minmax(0, 1fr); } .hero__foot .actions { justify-content: flex-start; } }

/* ---- areas: rows with a client's sentence ---- */
.area-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair, 1px) solid var(--color-ink); }
.area { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair, 1px) solid var(--color-rule); }
.area h3 { font-size: var(--text-title); }
.area blockquote { margin: 0; }
.area__line { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.area blockquote p { font-size: var(--text-lead); line-height: 1.45; max-width: 58ch; }
.area blockquote footer { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.area__n { font-size: var(--text-sm); color: var(--color-muted); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 60rem) { .area { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); } .area__n { text-align: left; } }

/* ---- the consultant ---- */
.band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); margin-top: var(--section-gap); }
.ask__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.ask .head { margin-bottom: 0; }
.chat { display: grid; gap: var(--space-md); }
.chat__log { list-style: none; margin: 0; padding: var(--space-lg); min-height: 220px; max-height: 420px; overflow-y: auto; display: grid; align-content: start; gap: var(--space-sm); background: var(--color-paper); border: 1px solid var(--color-rule); border-radius: var(--radius-card); }
.chat__log:empty::before { content: "Ответ появится здесь."; color: var(--color-muted); }
.msg { max-width: 88%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-card); line-height: 1.5; }
.msg--q { justify-self: end; background: var(--color-ink); color: var(--color-paper); }
.msg--a { justify-self: start; background: var(--color-paper-2); color: var(--color-ink); }
.msg--wait { color: var(--color-muted); }
.chat__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); }
.chat__form input { min-height: 48px; padding: 0 var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); }
.chat__form input:hover { border-color: var(--color-ink-2); }
.chat__form input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.chat__form input[aria-invalid] { border-color: var(--color-error); }
.chat__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
@media (max-width: 40rem) { .chat__chips { grid-template-columns: minmax(0, 1fr); } }
.chip { text-align: left; overflow: hidden; text-overflow: ellipsis; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-sm); white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.chip:hover { background: var(--color-paper); }
.chip:active { transform: translateY(1px); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip:disabled { opacity: 0.55; cursor: not-allowed; }
.chat__note { font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 60rem) { .ask__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } }

/* ---- pictures ---- */
.pics__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: 300px 300px; gap: var(--gap-columns); }
.pics__grid figure { margin: 0; border-radius: var(--radius-card); }
.pics__a { grid-row: 1 / 3; }
@media (max-width: 60rem) { .pics__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; } .pics__a { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } .pics__b, .pics__c { aspect-ratio: 3 / 4; } }

/* ---- reviews rail ---- */
.rail { list-style: none; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 30%); gap: var(--gap-columns); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); padding-block-end: var(--space-md); overscroll-behavior-x: contain; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.rv { scroll-snap-align: start; display: grid; align-content: space-between; gap: var(--space-lg); padding-top: var(--space-lg); border-top: 2px solid var(--color-ink); }
.rv blockquote { margin: 0; }
.rv blockquote p { line-height: 1.6; }
.rv__by { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 40rem) { .rail { grid-auto-columns: 85%; } }

/* ---- statement ---- */
.statement__q { margin: 0; max-width: 62rem; }
.statement__q p { font-family: var(--font-display); font-weight: var(--display-weight, 600); font-size: var(--text-section); line-height: 1.15; letter-spacing: var(--tracking-display); max-width: 45ch; }
.statement__q footer { margin-top: var(--space-lg); color: var(--color-ink-2); }

/* ---- prices ---- */
.prices__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding-block: var(--space-lg); border-bottom: var(--rule-hair, 1px) solid var(--color-rule); text-align: left; font-weight: 400; vertical-align: baseline; }
.ptable tr:first-child th, .ptable tr:first-child td { border-top: var(--rule-hair, 1px) solid var(--color-ink); }
.ptable th { padding-right: var(--space-lg); }
.ptable td { text-align: right; white-space: nowrap; font-family: var(--font-display); font-size: var(--text-title); }
@media (max-width: 60rem) { .prices__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- visit ---- */
.visit { padding-bottom: var(--section-gap); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: end; padding-top: var(--space-2xl); border-top: var(--rule-hair, 1px) solid var(--color-ink); }
.visit__addr { margin-top: var(--space-lg); font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.25; max-width: 24ch; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xs); border-bottom: var(--rule-hair, 1px) solid var(--color-rule); font-variant-numeric: tabular-nums; }
@media (max-width: 60rem) { .visit__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- footer: a mast ---- */
.foot { background: var(--color-ink); color: var(--color-paper); padding-block: var(--space-3xl) var(--space-xl); }
.foot__mark { font-family: var(--font-display); font-weight: var(--display-weight, 600); font-size: clamp(2.5rem, 7vw, 6rem); line-height: 1; letter-spacing: var(--tracking-display); overflow-wrap: break-word; min-width: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-top: var(--space-xl); }
.foot__links a { color: var(--color-paper); white-space: nowrap; }
.foot__links a:focus-visible { outline-color: var(--color-paper); }
.foot__legal { margin-top: var(--space-2xl); font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 72%, var(--color-ink)); }

/* ================= v2: motion and play ================= */
/* hero words rise, picture wipes open, slow push-in */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-words .w > span { display: inline-block; animation: wordUp 900ms var(--ease-out) both; animation-delay: calc(120ms + var(--i) * 90ms); }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
.rise { animation: rise 800ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 120ms + 200ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wipe { animation: wipe 1200ms var(--ease-in-out) 150ms both; }
@keyframes wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.kb { animation: kb 2600ms var(--ease-out) both; transform-origin: 50% 40%; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1); } }

/* rating: big number and stars that fill */
.proof { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xl); animation: rise 800ms var(--ease-out) 800ms both; }
.proof__n { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.proof__side { display: grid; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.proof__side b { font-weight: 600; color: var(--color-ink); }
.stars { display: inline-flex; gap: var(--space-2xs); }
.star { --star: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z%22/%3E%3C/svg%3E"); width: 18px; height: 18px; background: linear-gradient(90deg, var(--color-accent) calc(var(--f) * 100%), var(--color-rule) 0); -webkit-mask: var(--star) center / contain no-repeat; mask: var(--star) center / contain no-repeat; animation: starIn 500ms var(--ease-out) both; }
.star:nth-child(1) { animation-delay: 900ms; } .star:nth-child(2) { animation-delay: 980ms; } .star:nth-child(3) { animation-delay: 1060ms; } .star:nth-child(4) { animation-delay: 1140ms; } .star:nth-child(5) { animation-delay: 1220ms; }
@keyframes starIn { from { transform: scale(0.2) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* marquee of areas */
.mq { position: relative; margin-top: var(--section-gap-s); border-block: var(--rule-hair, 1px) solid var(--color-ink); overflow: hidden; padding-block: var(--space-lg); }
.mq__track { display: grid; gap: var(--space-xs); }
.mq__track > div { display: flex; width: max-content; gap: var(--space-xl); align-items: center; font-family: var(--font-display); font-weight: var(--display-weight, 600); font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.1; letter-spacing: var(--tracking-display); white-space: nowrap; animation: mq 48s linear infinite; }
.mq__track > div:nth-child(2) { animation-direction: reverse; animation-duration: 60s; color: transparent; -webkit-text-stroke: 1px var(--color-ink-2); }
.mq__track span[aria-hidden] { color: var(--color-accent); -webkit-text-stroke: 0; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq:hover .mq__track > div, .mq:focus-within .mq__track > div, .mq.is-paused .mq__track > div { animation-play-state: paused; }
.mq__pause { position: absolute; right: var(--gutter); bottom: var(--space-xs); min-height: 44px; padding: 0 var(--space-sm); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink-2); font-size: var(--text-xs); cursor: pointer; }
.mq__pause:hover { color: var(--color-ink); }
.mq__pause:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* situation picker */
.situ__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.situ__tabs { display: grid; gap: 0; border-top: var(--rule-hair, 1px) solid var(--color-ink); }
.situ__tab { display: flex; align-items: baseline; gap: var(--space-md); width: 100%; min-height: 64px; padding: var(--space-md) 0; border: 0; border-bottom: var(--rule-hair, 1px) solid var(--color-rule); background: none; color: var(--color-ink-2); font: inherit; font-family: var(--font-display); font-size: var(--text-title); text-align: left; cursor: pointer; transition: color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.situ__k { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; min-width: 2ch; }
@media (min-width: 60rem) { .situ__tab { white-space: nowrap; } }
.situ__tab:hover { color: var(--color-ink); transform: translateX(6px); }
.situ__tab:active { transform: translateX(3px); }
.situ__tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.situ__tab[aria-selected="true"] { color: var(--color-ink); transform: translateX(14px); }
.situ__tab[aria-selected="true"] .situ__k { color: var(--color-accent); }
.situ__stage { position: sticky; top: calc(68px + var(--space-xl)); min-height: 380px; padding: var(--space-2xl); background: var(--color-paper-2); border-radius: var(--radius-card); }
.situ__panel h3 { font-size: var(--text-section); }
.situ__panel + .situ__panel { margin-top: var(--space-2xl); }
.js .situ__panel + .situ__panel { margin-top: 0; }
.js .situ__panel[data-off] { display: none; }
.js .situ__panel:not([data-off]) { animation: panelIn 520ms var(--ease-out) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.situ__q { margin: var(--space-lg) 0 0; }
.situ__q p { font-size: var(--text-xl); line-height: 1.4; max-width: 46ch; }
.situ__q p::before { content: "«"; } .situ__q p::after { content: "»"; }
.situ__q footer { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.situ__line { margin-top: var(--space-lg); font-size: var(--text-xl); line-height: 1.4; color: var(--color-ink-2); }
.situ__n { margin-top: var(--space-lg); color: var(--color-ink-2); }
.situ__n b { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-accent); font-weight: var(--display-weight, 600); }
.situ .actions { margin-top: var(--space-xl); }
@media (max-width: 60rem) { .situ__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); } .situ__stage { position: static; padding: var(--space-lg); min-height: 0; } .situ__tab[aria-selected="true"] { transform: translateX(8px); } }

/* consultant: live state and typing */
.ask__live { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
.ask__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: pulse 1.8s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.8); opacity: 1; } 70% { transform: scale(1.6); opacity: 0.35; } 100% { transform: scale(0.8); opacity: 1; } }
.msg { animation: msgIn 380ms var(--ease-out) both; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.dots { display: inline-flex; gap: var(--space-2xs); padding-block: var(--space-xs); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1s var(--ease-in-out) infinite; }
.dots i:nth-child(2) { animation-delay: 150ms; } .dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-5px); opacity: 1; } }

/* reviews wall: two rows drifting against each other */
.wall { display: grid; gap: var(--gap-columns); overflow: hidden; padding-block: var(--space-xs); }
.wall__row { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: var(--gap-columns); width: max-content; will-change: transform; }
.wall__row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.wall .rv { width: min(26rem, 80vw); flex: none; padding: var(--space-lg); background: var(--color-paper-2); border-top: 0; border-radius: var(--radius-card); }
.rv__stars { display: block; color: var(--color-ink-2); margin-bottom: var(--space-2xs); }
@media (max-width: 60rem) { .wall { overflow: visible; } .wall__row { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; } .wall .rv { scroll-snap-align: start; } }

/* statement words light up */
.js .litup .lw { opacity: 0.2; transition: opacity 300ms var(--ease-out); }
.js .litup .lw.on { opacity: 1; }

/* parallax pictures */
.pics__grid figure { overflow: hidden; }
.pics__grid figure > img { inset: -8% 0; height: 116%; }

/* map */
.visit__grid { align-items: stretch; }
.visit .hours { margin-top: var(--space-xl); }
.map { margin: 0; min-height: 380px; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--color-rule); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
[data-dark] .map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.6) brightness(0.95); }

/* side table of contents on wide screens */
.toc { display: none; }
@media (min-width: 1680px) {
  .toc { display: block; position: fixed; right: var(--space-xl); top: 50%; transform: translateY(-50%); z-index: var(--z-sticky); }
  .toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); justify-items: end; }
  .toc a { display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-xs); color: var(--color-muted); text-decoration: none; }
  .toc a::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: transform var(--dur-short) var(--ease-out); transform-origin: right; }
  .toc a:hover, .toc a[aria-current="true"] { color: var(--color-ink); }
  .toc a[aria-current="true"]::after { transform: scaleX(2); background: var(--color-accent); }
}

/* mobile dock */
.dock { display: none; }
@media (max-width: 60rem) {
  .dock { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-xs); position: fixed; left: var(--space-sm); right: var(--space-sm); bottom: calc(var(--space-sm) + env(safe-area-inset-bottom)); z-index: var(--z-sticky-nav); padding: var(--space-xs); background: color-mix(in oklab, var(--color-paper) 88%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--color-rule); border-radius: calc(var(--radius-pill) + 8px); transform: translateY(160%); transition: transform var(--dur-long) var(--ease-out); }
  .dock.is-on { transform: none; }
  .dock .btn { justify-content: center; }
  .foot { padding-bottom: calc(var(--space-3xl) + var(--space-2xl)); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-words .w > span, .rise, .wipe, .kb, .proof, .star, .msg, .js .situ__panel:not([data-off]) { animation: none; }
  .mq__track > div { animation: none; }
  .ask__dot, .dots i { animation: none; }
  .js .litup .lw { opacity: 1; }
  .wall__row { transform: none !important; }
  .wall { overflow-x: auto; }
}

/* ================= v3: 3D scales, cursor, magnetic actions ================= */
.hero__3d { position: relative; height: min(76dvh, 760px); min-height: 460px; }
.hero__3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1200ms var(--ease-out); }
.hero__3d.is-live canvas { opacity: 1; }
.hero__3d--over { position: absolute; top: 0; bottom: 0; right: 0; width: 52%; height: auto; min-height: 0; z-index: 2; pointer-events: none; }
.hero--corridor { position: relative; overflow: hidden; }
.hero--corridor .hero__wide { position: relative; z-index: 3; }
.hero--corridor .h1--huge { max-width: 9ch; }
.hero--corridor .hero__foot { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.hero--corridor .hero__foot .actions { justify-content: flex-start; grid-column: 1; }
.hero--corridor .hero__foot .proof { grid-column: 1; }
.hero--corridor .hero__3d--over { width: 46%; }
@media (max-width: 60rem) {
  .hero__3d { height: 62vw; min-height: 300px; }
  .hero__3d--over { position: relative; width: 100%; height: 72vw; z-index: 2; }
  .hero--poster .hero__3d--over { position: absolute; top: 0; height: 60%; opacity: 0.85; }
}
.cursor { position: fixed; left: 0; top: 0; z-index: var(--z-tooltip); width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid var(--color-accent); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity var(--dur-short) var(--ease-out), width var(--dur-short) var(--ease-out); mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { transform-origin: center; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor { display: none; } .hero__3d canvas { transition: none; } }

.scene-flash { position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--color-accent) 55%, transparent), transparent); }
.scene-flash.on { animation: flash 700ms var(--ease-out); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.hero { cursor: default; }
.hero__3d { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .scene-flash.on { animation: none; } }

/* ===== batch 12 backgrounds: lit paper, the clinic's motif, tinted bands ===== */
:root { --glow: color-mix(in oklab, var(--color-accent) 22%, transparent); --glow-2: color-mix(in oklab, var(--color-accent-2, var(--color-accent)) 30%, transparent); }
body { background-color: var(--color-paper);
  background-image:
    radial-gradient(60rem 40rem at 110% -10%, var(--glow-2), transparent 70%),
    radial-gradient(50rem 36rem at -15% 55%, color-mix(in oklab, var(--color-accent) 9%, transparent), transparent 70%),
    radial-gradient(46rem 30rem at 105% 95%, color-mix(in oklab, var(--color-accent) 10%, transparent), transparent 70%);
  background-attachment: fixed; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-dark] body::before { mix-blend-mode: screen; opacity: .06; }
main, .foot, .nav { position: relative; z-index: 1; }
.nav { z-index: var(--z-sticky-nav); }

/* hero: a pool of light behind the 3D object and the motif drifting through it */
.hero { isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background: radial-gradient(38rem 34rem at 72% 48%, var(--glow-2), transparent 68%), radial-gradient(26rem 22rem at 78% 60%, var(--glow), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none; background: var(--color-accent); opacity: .10;
  -webkit-mask: var(--motif) 0 0 / 132px 132px repeat, radial-gradient(70% 80% at 70% 45%, #000 0%, transparent 75%); -webkit-mask-composite: source-in;
  mask: var(--motif) 0 0 / 132px 132px repeat, radial-gradient(70% 80% at 70% 45%, #000 0%, transparent 75%); mask-composite: intersect;
  animation: motifDrift 60s linear infinite; }
html[data-dark] .hero::after { opacity: .16; }
.hero--poster::after { z-index: 1; opacity: .14; }
.hero--poster::before { z-index: 1; opacity: .7; }
@keyframes motifDrift { to { transform: translateY(132px); } }

/* bands and cards: soft tinted fills instead of flat blocks */
.band { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in oklab, var(--color-paper-2) 85%, var(--color-accent) 15%), var(--color-paper-2) 55%, color-mix(in oklab, var(--color-paper-2) 88%, var(--color-accent) 12%)); }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--color-accent); opacity: .07;
  -webkit-mask: var(--motif) 0 0 / 110px 110px repeat; mask: var(--motif) 0 0 / 110px 110px repeat; }
.situ__stage, .wall .rv, .chat__log { background: linear-gradient(150deg, color-mix(in oklab, var(--color-paper-2) 80%, var(--color-accent) 20%), var(--color-paper-2) 60%);
  box-shadow: 0 1px 0 color-mix(in oklab, var(--color-ink) 6%, transparent), 0 18px 40px -24px color-mix(in oklab, var(--color-accent) 45%, transparent); }
.chat__log { background: var(--color-paper); }
.situ { position: relative; }
.situ::before { content: ""; position: absolute; inset: 8% -10% auto auto; width: 40rem; height: 40rem; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); }
.mq { background: linear-gradient(90deg, transparent, color-mix(in oklab, var(--color-accent) 9%, transparent) 30%, color-mix(in oklab, var(--color-accent) 9%, transparent) 70%, transparent); }
.visit { position: relative; }
.visit::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(40rem 26rem at 15% 40%, var(--glow), transparent 70%); }
.foot { isolation: isolate; overflow: hidden; }
.foot::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--color-paper); opacity: .06;
  -webkit-mask: var(--motif) 0 0 / 120px 120px repeat; mask: var(--motif) 0 0 / 120px 120px repeat; }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

@media (max-width: 60rem) {
  .hero--corridor { display: block; padding-top: 0; }
  .hero--corridor .hero__3d--over { position: relative; width: 100%; height: 68vw; max-height: 420px; }
  .hero--corridor .hero__foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-l, 1.25rem); }
  .hero--corridor .h1--huge { max-width: none; }
}
