/* Hallmark · shape: Pinned figure (one fixed figure, sections scroll past it) · genre: modern-minimal · theme: brand (DESIGN.md, Andrés Peinado)
 * paper: #f5fbf9 · accent: #e0553b · display: Sora 300 · body: IBM Plex Sans · outlier: IBM Plex Mono (labels only) · hero: split, head top-left, typed request bottom-left, offer bottom-right, figure centred · nav: hairline bar, wordmark left, links, one action · footer: wordmark over contact and links · signature: the figure that changes with each section, and a request to the AI typing itself
 * axes: light/geometric-sans/warm · posture: grid on show (reference: Nova Agent hero, adapted) · contrast: pass · fold: pass · copy: verbatim (04-textos.md) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, a grid-and-figure hero is a known pattern; the figure is Andrés's own monogram (A) or a robot in his colours (B), and the typed requests are his clients' real chores */
/* waive 24b: the button padding 10px 18px is DESIGN.md's button token */
/* waive 26b: no control on the page can be disabled */
/* waive 38iii: both lines of the head carry the same outline, the device from the reference; no single word is accented */
/* waive 64: mono is the material here (the technical layer the reference is about); it is used only for small labels, lower case, untracked */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- page frame ---------- */
:root { --nav-h: 64px; --rail-w: 88px; --color-accent-text: color-mix(in oklab, var(--color-accent) 80%, var(--color-ink)); } /* accent dark enough for small text (4.8:1 on paper) */
body { background: var(--color-paper); }
.frame { position: relative; }
/* the visible grid: container edges plus thirds */
.gridlines { position: fixed; inset: var(--nav-h) 0 0 0; pointer-events: none; z-index: 0; }
.gridlines .container { height: 100%; position: relative; }
.gridlines span { position: absolute; top: 0; bottom: 0; width: var(--rule-hair); background: var(--color-rule-soft); }
.gridlines span:nth-child(1) { left: var(--gutter); }
.gridlines span:nth-child(2) { left: calc(var(--gutter) + (100% - 2 * var(--gutter)) / 3); }
.gridlines span:nth-child(3) { left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * 2 / 3); }
.gridlines span:nth-child(4) { right: var(--gutter); }

.label { font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.4; color: var(--color-muted); letter-spacing: 0; text-transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); height: var(--nav-h); background: color-mix(in oklab, var(--color-paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { height: 100%; display: flex; align-items: center; gap: var(--space-xl); }
.nav .brand { flex-shrink: 0; }
.nav .brand img { width: 172px; height: auto; }
@media (max-width: 30rem) { .nav .container { gap: var(--space-sm); } .nav .brand img { width: 128px; } .nav .btn { padding-inline: var(--space-md); } .nav-min { display: none; } }
.nav nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: var(--space-lg); margin: 0; padding: 0; }
.nav ul a { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink); white-space: nowrap; }
@media (max-width: 90rem) { .nav ul { gap: var(--space-md); } .nav .container { gap: var(--space-lg); } }
@media (max-width: 80rem) { .nav-min { display: none; } .nav .brand img { width: 150px; } }
/* six links do not fit beside the button below ~1250px: there the menu folds away as on mobile (a hamburger in WordPress) */
@media (max-width: 78rem) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }
.nav ul a:hover { text-decoration: underline; }
@media (max-width: 64rem) { .nav ul { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 10px 18px; border-radius: var(--radius-pill); font-weight: 600; font-size: var(--text-md); line-height: 1.2; text-decoration: none; white-space: nowrap; border: 1.5px solid transparent; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--color-focus-halo); transition: none; }
.btn-primary { background: var(--color-forest); color: var(--color-on-forest); }
.btn-primary:hover { background: color-mix(in oklab, var(--color-forest) 82%, var(--color-paper-3)); }
.btn-secondary { background: transparent; color: var(--color-ink); border-color: color-mix(in oklab, var(--color-muted) 60%, var(--color-paper)); }
.btn-secondary:hover { border-color: var(--color-forest); }
.btn-band { background: var(--color-accent); color: var(--color-accent-ink); }
.btn-band:hover { background: color-mix(in oklab, var(--color-accent) 85%, var(--color-surface)); }
.btn-mint { background: var(--color-paper-3); color: var(--color-on-mint); }
.btn-mint:hover { background: color-mix(in oklab, var(--color-paper-3) 80%, var(--color-forest)); color: var(--color-on-forest); }
.btn-mint svg { width: 18px; height: 18px; flex: none; }
.nav-actions { display: flex; align-items: center; gap: var(--space-xs); flex-shrink: 0; }
.nav-actions .nav-min { display: none; }
.nav:has(.nav-actions) .container { gap: var(--space-md); }
@media (min-width: 84.01rem) { .nav-quiz svg { display: none; } }
.nav:has(.nav-actions) ul { gap: var(--space-sm); }
.nav-actions .btn { min-height: 40px; padding: var(--space-xs) var(--space-md); font-size: var(--text-sm); }
@media (max-width: 84rem) { .nav:has(.nav-actions) ul { display: none; } .nav-actions { margin-left: auto; } }
@media (max-width: 30rem) { .nav:has(.nav-actions) .container { gap: var(--space-xs); } .nav:has(.nav-actions) .brand img { width: 128px; } .nav .nav-quiz { padding-inline: var(--space-sm); } .nav-actions .btn-primary { padding-inline: var(--space-sm); } .nav-quiz-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
@media (max-width: 24rem) { .nav:has(.nav-actions) .brand img { width: 112px; } }
@media (max-width: 21rem) { .nav:has(.nav-actions) .brand img { width: 88px; } }
.btn-ghost-light { background: transparent; color: var(--color-on-forest); border-color: color-mix(in oklab, var(--color-on-forest) 55%, transparent); }
.btn-ghost-light:hover { border-color: var(--color-on-forest); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 600; color: var(--color-ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.link svg { width: 16px; height: 16px; flex: none; stroke-width: 1.75; }
.link:hover { text-decoration-thickness: 2px; }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }

/* ---------- sections: text in the outer thirds, the centre third belongs to the figure ---------- */
main { position: relative; }
.sec { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); min-height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; position: relative; }
/* the text of every section stays in front of the robot */
.sec > :not(.figure-stage) { position: relative; z-index: 2; }
.sec > .left { grid-column: 1; padding: var(--space-2xl) var(--space-xl) var(--space-2xl) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-lg); }
.sec > .right { grid-column: 3; padding: var(--space-2xl) var(--rail-w) var(--space-2xl) var(--space-xl); display: flex; flex-direction: column; gap: var(--space-lg); }
.sec h2 { font-size: var(--text-section); font-weight: 300; line-height: 1.15; }
.sec .label { display: block; }
.sec-head { display: flex; gap: var(--space-sm); align-items: baseline; }

/* ---------- hero ---------- */
.hero { grid-template-rows: auto 1fr auto; }
.prompt { grid-column: 1 / span 2; grid-row: 3; align-self: end; margin: 0 0 var(--space-2xl) var(--space-lg); max-width: 34rem; background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-md) var(--space-lg); position: relative; z-index: 2; }
/* in B the right column stacks: who it is for, the clients' questions, the buttons */
.hero .offer:has(.audience) { grid-row: 1 / span 2; margin-top: var(--space-2xl); }
.offer .audience { margin: 0 0 var(--space-sm); }
/* in B the box sits in the right column, between the audience and the buttons */
.offer .prompt { grid-column: auto; grid-row: auto; align-self: stretch; margin: 0 0 var(--space-xs); max-width: none; padding: var(--space-md); }
.offer .prompt p { min-height: 4lh; }
.prompt .label { margin-bottom: var(--space-xs); color: var(--color-accent-text); }
.prompt p { font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-ink); min-height: 3lh; }
.prompt .caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.18em; background: var(--color-accent); margin-left: var(--space-3xs); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.audience { grid-column: 3; grid-row: 1; align-self: start; margin: var(--space-2xl) var(--rail-w) 0 var(--space-xl); display: grid; align-content: start; gap: var(--space-sm); }
.audience > .label { color: var(--color-ink); text-align: right; }
.audience > p.label { color: var(--color-accent-text); }
.audience ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); justify-items: end; }
.audience li { display: flex; align-items: center; gap: var(--space-sm); width: 100%; }
.audience li::before { content: ""; flex: 1; border-top: var(--rule-hair) dashed var(--color-rule); }
.hero-title { grid-column: 1 / span 2; grid-row: 1; align-self: start; margin: var(--space-2xl) 0 0 var(--space-lg); position: relative; z-index: 2; }
/* the title block spans the robot: let clicks through to it, except on the text itself */
.hero-title { pointer-events: none; } .hero-title > * { pointer-events: auto; }
.hero-ask { width: fit-content; max-width: calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 3 - var(--space-lg)); margin-top: var(--space-xl); display: flex; align-items: flex-start; gap: var(--space-sm); font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); line-height: 1.25; color: var(--color-accent); }
.hero-ask svg { width: 1.15em; height: 1.15em; flex: none; margin-top: 0.08em; color: var(--color-accent); }
.hero .hero-title .lead { margin: var(--space-sm) 0 0; padding: 0; max-width: calc((min(100vw, var(--container)) - 2 * var(--gutter)) / 3 - var(--space-xl) - var(--space-lg)); }
.hero h1 { margin: 0; font-size: min(3.5rem, (min(100vw, var(--container)) - 2 * var(--gutter)) / 27.5); white-space: nowrap; font-weight: 300; line-height: 1.15; max-width: none; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); position: relative; z-index: 2; }
.hero h1 span { display: inline-block; border: var(--rule-hair) solid var(--color-accent); padding: 0.02em 0.22em 0.08em; background: color-mix(in oklab, var(--color-paper) 85%, transparent); }
.offer { grid-column: 3; grid-row: 2; align-self: start; margin: var(--space-xl) var(--rail-w) 0 var(--space-xl); display: flex; flex-direction: column; gap: var(--space-md); position: relative; z-index: 2; }
.hero .lead { grid-column: 1; grid-row: 2; align-self: center; margin: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-lg); font-size: var(--text-lead); line-height: 1.45; max-width: 26rem; position: relative; z-index: 2; }
.offer .actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3xs); }

/* ---------- profiles ---------- */
.tabs { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--space-2xl) var(--space-lg) 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); overflow: hidden; background: var(--color-surface); align-self: start; }
.tabs button { display: flex; gap: var(--space-sm); align-items: center; min-height: 52px; padding: var(--space-sm) var(--space-md); border: 0; border-right: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-muted); text-align: left; cursor: pointer; font-size: var(--text-md); transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tabs button:last-child { border-right: 0; }
.tabs button:hover { color: var(--color-ink); background: var(--color-paper); }
.tabs button[aria-selected="true"] { color: var(--color-accent-ink); background: var(--color-accent); font-weight: 600; }
.tabs button[aria-selected="true"] .label { color: var(--color-accent-ink); }
.tabs button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -4px; transition: none; }
.tabs .label { color: inherit; }
.profiles { grid-template-rows: auto auto 1fr; }
.profiles-q { grid-column: 1 / span 2; grid-row: 1; margin: var(--space-2xl) var(--space-lg) 0; display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); line-height: 1.2; color: var(--color-ink-2); }
.profiles-q svg { width: 1.1em; height: 1.1em; color: var(--color-accent); flex: none; }
/* the tabs ask to be chosen: a darker frame and, the first time the block comes into view, each one lights up in turn */
.profiles .tabs { border-color: var(--color-ink-2); box-shadow: var(--shadow-card); }
.tabs.nudge button[aria-selected="false"] { animation: nudge 1.1s var(--ease-out) both; }
.tabs.nudge button:nth-child(2) { animation-delay: 0.15s; } .tabs.nudge button:nth-child(3) { animation-delay: 0.3s; } .tabs.nudge button:nth-child(4) { animation-delay: 0.45s; }
@keyframes nudge { 30% { background: var(--color-paper-2); color: var(--color-ink-2); } }
@media (prefers-reduced-motion: reduce) { .tabs.nudge button { animation: none; } }
/* the tabs keep to the first two columns: the third one is the robot's */
@media (min-width: 64.01rem) { .profiles .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); } }
@media (min-width: 68rem) { .profiles .tabs button { white-space: nowrap; } }
@media (min-width: 64.01rem) and (max-width: 67.99rem) { .profiles .tabs button { padding-inline: var(--space-sm); gap: var(--space-xs); } }
.profiles .tabs { grid-row: 2; grid-column: 1 / span 2; margin-top: var(--space-sm); margin-right: var(--space-xl); }
/* the robot moves to the right column here, so the tab panel takes the middle one */
.profiles .left, .profiles .right { grid-row: 3; justify-content: center; }
.profiles .right { grid-column: 2; padding: var(--space-2xl) var(--space-xl); }
.profiles .panel > p { color: var(--color-accent); }
.panel { display: flex; flex-direction: column; gap: var(--space-md); }
.panel p { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); line-height: 1.3; }
.js .panel[hidden] { display: none; }

/* ---------- method ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-sm); padding: var(--space-md) 0; border-top: var(--rule-hair) solid var(--color-rule); opacity: 0.55; transition: opacity var(--dur-long) var(--ease-out); }
.steps li:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.steps li.is-on, .no-js .steps li { opacity: 1; }
.steps h3 { font-family: var(--font-body); font-weight: 600; color: var(--color-accent); font-size: var(--text-lg); line-height: 1.4; margin-bottom: var(--space-3xs); }
.steps p { font-size: var(--text-sm); color: var(--color-muted); }
.steps .label { padding-top: var(--space-2xs); color: var(--color-ink-2); }

/* ---------- about ---------- */
.about > .left { grid-column: 1 / span 2; }
.about > .left p { max-width: 36rem; font-size: var(--text-lg); }
.portrait { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 64.01rem) { .about .portrait { aspect-ratio: 4 / 5; } }

/* ---------- faq ---------- */
.faq { grid-template-rows: auto 1fr; }
.faq > .faq-head { grid-column: 1 / span 2; grid-row: 1; justify-self: center; width: max-content; align-items: center; text-align: center; padding-inline: 0; }
.faq > .faq-head h2 { white-space: nowrap; }
.faq > .right { grid-column: 1 / span 2; grid-row: 2; justify-content: flex-start !important; padding: 0 var(--space-xl) var(--space-2xl) var(--space-lg); }
.method > .left, .method > .right { grid-row: 1; }
.method > .method-intro { justify-content: center; }
.faq details { border-top: var(--rule-hair) solid var(--color-rule); }
.faq details:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; transition: transform var(--dur-short) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.faq details p { padding-bottom: var(--space-md); color: var(--color-muted); }
.pending { background: var(--color-pending); color: var(--color-ink); padding: 0 var(--space-2xs); border-radius: 4px; }

/* ---------- band and footer ---------- */
.band { position: relative; z-index: 3; background: var(--color-forest); color: var(--color-on-forest); padding-block: var(--space-3xl); }
.band .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); align-items: end; }
.band h2 { grid-column: 1 / span 2; color: var(--color-on-forest); font-weight: 300; font-size: var(--text-section); line-height: 1.15; }
.band p { color: var(--color-paper-3); }
.band .actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.band .label { color: var(--color-paper-3); }
.footer { position: relative; z-index: 3; background: var(--color-paper); border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); }
.footer .container { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl); }
.footer img { width: 200px; height: auto; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.footer a { text-decoration: none; } .footer a:hover { text-decoration: underline; }
.footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.footer .legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }

/* ---------- side rail ---------- */
.rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: var(--z-sticky); display: grid; gap: var(--space-sm); justify-items: end; }
.rail a:not([aria-current="true"]):not(:hover):not(:focus-visible) { color: transparent; }
.rail a:not([aria-current="true"]):not(:hover):not(:focus-visible)::after { color: var(--color-muted); }
.rail a { display: flex; align-items: center; gap: var(--space-xs); text-decoration: none; color: var(--color-muted); }
.rail a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; border: var(--rule-hair) solid currentColor; transition: background-color var(--dur-short) var(--ease-out); }
.rail a[aria-current="true"] { color: var(--color-ink-2); }
.rail a[aria-current="true"]::after { background: var(--color-accent); border-color: var(--color-accent); }
.rail a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- whatsapp ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-sticky); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--color-forest); color: var(--color-on-forest); box-shadow: var(--shadow-card); transition: transform var(--dur-short) var(--ease-out); }
.wa { border: 2px solid color-mix(in oklab, var(--color-accent) 70%, transparent); } /* a soft coral ring keeps it visible over the dark contact band */
.wa:hover { transform: scale(1.06); }
.wa:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 7px var(--color-focus-halo); transition: none; }
.wa svg { width: 26px; height: 26px; }

/* ---------- the figure: pinned in the middle, in the right column on profiles, hidden over the photo,
   and from the FAQ on it waits as a button beside WhatsApp (the script sets the transform) ---------- */
.figure-slot { display: contents; }
.sec > .figure-slot { z-index: auto; }
.figure-stage { --s: 1; position: fixed; z-index: 1; left: 50%; top: calc(var(--nav-h) + (100dvh - var(--nav-h)) * 0.45); width: min(28vw, 360px); aspect-ratio: 1; transform: translate(-50%, -50%); transform-origin: 50% 50%; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out), transform 700ms var(--ease-out), z-index 0s; }
/* docking: it flies over the contact band in front of everything, so the eye follows it down to the WhatsApp corner */
.figure-stage.docked { z-index: var(--z-sticky); }
body.fig-off .figure-stage:not(.docked), body[data-state="about"] .figure-stage:not(.docked) { opacity: 0; }
.figure-stage .dock-bg { position: absolute; inset: 4%; border-radius: 50%; background: var(--color-surface); border: calc(1px / var(--s)) solid var(--color-ink-2); box-shadow: var(--shadow-card); opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.figure-stage.docked .dock-bg { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .figure-stage, .figure-stage .dock-bg { transition: none; } }

/* ---------- small screens: one column, figure inside the hero, no rail ---------- */
@media (max-width: 64rem) {
  .gridlines span:nth-child(2), .gridlines span:nth-child(3) { display: none; }
  .rail { display: none; }
  .sec { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: var(--space-xl); }
  .sec > .left, .sec > .right, .prompt, .audience, .hero-title, .hero .lead, .offer, .tabs { grid-column: 1; grid-row: auto; margin: 0; padding: var(--space-md) 0; }
  .prompt { margin: var(--space-lg) 0 0; padding: var(--space-md); max-width: none; }
  .audience > .label { text-align: left; } .audience ul { justify-items: start; } .audience li::before { display: none; }
  .hero h1 { font-size: var(--text-2xl); white-space: normal; }
  .tabs { margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs button:nth-child(2) { border-right: 0; } .tabs button:nth-child(-n+2) { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .profiles .left, .profiles .right, .profiles .tabs, .profiles-q { grid-row: auto; grid-column: 1; }
  .profiles-q { margin: 0; font-size: var(--text-lg); }
  .profiles .tabs { margin: 0; }
  .profiles .right { padding: var(--space-md) 0; }
  .hero .lead { grid-column: 1; grid-row: auto; margin: 0; padding: var(--space-md) 0; max-width: none; }
  .hero .hero-title .lead { max-width: none; }
  .hero-ask { max-width: none; font-size: var(--text-lg); }
  .faq > .faq-head { width: auto; justify-self: stretch; align-items: flex-start; text-align: left; }
  .faq > .faq-head h2 { white-space: normal; }
  .faq > .right { padding: var(--space-md) 0; }
  .method > .left, .method > .right { grid-row: auto; }
  .figure-slot { display: block; position: relative; width: min(72vw, 300px); aspect-ratio: 1; margin: var(--space-md) auto 0; }
  .figure-slot .figure-stage { position: absolute; inset: 0; width: 100%; transform: none !important; }
  /* docked: from the FAQ on, it waits beside WhatsApp */
  .figure-slot .figure-stage.docked { position: fixed; inset: auto 84px 18px auto; width: 61px; animation: dock-in var(--dur-long) var(--ease-out) both; }
  @keyframes dock-in { from { opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .figure-slot .figure-stage.docked { animation: none; } }
  .band .container, .footer .container { grid-template-columns: minmax(0, 1fr); }
  .band h2 { grid-column: 1; }
}

@media (max-width: 64rem) { .hero .offer:has(.audience) { grid-row: auto; margin-top: 0; } }

/* ---------- contact form as a chat (B) ---------- */
html:has(.chat[open]) { overflow-y: hidden; }
.chat { position: fixed; inset: auto var(--space-lg) var(--space-lg) auto; margin: 0; width: min(27rem, calc(100% - 2 * var(--space-lg))); height: min(42rem, calc(100dvh - 2 * var(--space-lg))); max-width: none; max-height: none; padding: 0; border: var(--rule-hair) solid var(--color-ink-2); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: var(--shadow-card); overflow: hidden; }
.chat[open] { display: flex; flex-direction: column; animation: chat-in var(--dur-long) var(--ease-out) both; }
.chat::backdrop { background: color-mix(in oklab, var(--color-ink) 35%, transparent); }
@keyframes chat-in { from { opacity: 0; transform: translateY(var(--space-md)); } }
.chat-head { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-sm) var(--space-sm) var(--space-md); background: var(--color-forest); color: var(--color-on-forest); }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.chat-name { font-weight: 600; line-height: 1.2; }
.chat-sub { font-size: var(--text-xs); line-height: 1.3; }
.chat-close { margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--color-on-forest); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.chat-close:hover { background: color-mix(in oklab, var(--color-on-forest) 15%, transparent); }
.chat-close:focus-visible { outline: 2px solid var(--color-on-forest); outline-offset: -4px; transition: none; }
.chat-close svg { width: 22px; height: 22px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-xs); background: var(--color-paper-2); }
.msg { max-width: 85%; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-card); font-size: var(--text-sm); line-height: 1.45; overflow-wrap: break-word; animation: msg-in var(--dur-short) var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(var(--space-2xs)); } }
.msg-bot { align-self: flex-start; background: var(--color-surface); border: var(--rule-hair) solid var(--color-rule); border-end-start-radius: var(--space-2xs); }
.msg-me { align-self: flex-end; background: var(--color-forest); color: var(--color-on-forest); border-end-end-radius: var(--space-2xs); }
.msg-typing { display: flex; gap: var(--space-2xs); padding-block: var(--space-sm); }
.msg-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); animation: dot 1s var(--ease-in-out) infinite; }
.msg-typing span:nth-child(2) { animation-delay: 0.15s; } .msg-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 0.3; transform: translateY(-2px); } }
.chat-reply { padding: var(--space-sm) var(--space-md) var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.chat-reply:empty { display: none; }
.chat-options { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.chip { min-height: 44px; padding: var(--space-2xs) var(--space-md); border: var(--rule-hair) solid var(--color-ink-2); border-radius: var(--radius-pill); background: var(--color-surface); color: var(--color-ink-2); font: inherit; font-size: var(--text-sm); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.chip:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.chat-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chat-scale .chip { padding: 0; }
.chat-scale-ends { display: flex; justify-content: space-between; margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-muted); }
.chat-input { display: flex; align-items: flex-end; gap: var(--space-xs); }
.chat-input input, .chat-input textarea { flex: 1; min-width: 0; min-height: 44px; padding: var(--space-xs) var(--space-sm); border: var(--rule-hair) solid var(--color-ink-2); border-radius: var(--radius-card); background: var(--color-surface); color: var(--color-ink); font: inherit; font-size: var(--text-md); resize: none; }
.chat-input input:focus-visible, .chat-input textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; transition: none; }
.chat-input [aria-invalid="true"] { border-color: var(--color-accent-text); }
.chat-send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-accent-ink); cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.chat-send:hover { transform: scale(1.06); }
.chat-send:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.chat-send svg { width: 20px; height: 20px; }
.chat-error { margin-top: var(--space-2xs); font-size: var(--text-xs); color: var(--color-accent-text); }
.chat-final { display: grid; gap: var(--space-sm); justify-items: start; }
.chat-check { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: var(--text-sm); line-height: 1.4; }
.chat-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--color-forest); flex: none; }
.chat-check input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chat-check a { color: inherit; }
@media (max-width: 40rem) { .chat { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .chat[open], .msg, .msg-typing span { animation: none; } }
