/* design\components.css: the CSS of the components in design\components.md, the director's. Every page loads it (the
   build copies it to site\assets\css\components.css). A page's own CSS only places and sizes its parts. */

/* ---------- type and grounds ---------- */
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--c-brand-text); }
:focus-visible { outline: 3px solid var(--c-brand-text); outline-offset: 3px; }
.band--ink :focus-visible, .hero__panel :focus-visible, .close :focus-visible, .callbar :focus-visible { outline-color: var(--c-brand-on-ink); }
::selection { background: color-mix(in srgb, var(--c-accent) 55%, var(--c-paper)); color: var(--c-ink); }

.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.band { position: relative; padding-block: var(--section-y); background: var(--c-paper); }
.band--alt { background: var(--c-paper-alt); }
.band--ink { background: var(--c-ink); color: var(--c-on-ink); overflow: hidden; isolation: isolate; }
.band--ink h2, .band--ink h3 { color: var(--c-on-ink); }

.section-head { display: grid; gap: var(--space-3); max-width: 46rem; margin-bottom: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); }
.section-head p { max-width: 38rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--c-ink-soft); }
.band--ink .section-head p { color: var(--c-on-ink-soft); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-more { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* ---------- buttons and the main action ---------- */
.button { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; min-height: 52px; padding: 0 1.4em; border: 0; border-radius: var(--radius-m); font: 600 1.0625rem/1.15 var(--font-ui); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.button--main { background: var(--c-accent); color: var(--c-on-brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 16%, transparent), 0 12px 24px -14px color-mix(in srgb, var(--c-accent-text) 80%, transparent); }
.button--main:hover { background: color-mix(in srgb, var(--c-accent) 86%, var(--c-paper)); transform: translateY(-1px); }
.button--main:active { transform: none; }
.button__arrow { flex: none; transition: transform var(--dur-fast) var(--ease-out); }
.button:hover .button__arrow { transform: translateX(3px); }
.button--quiet { min-height: 44px; padding: 0 0 2px; border-radius: 0; background: none; color: var(--c-ink); box-shadow: inset 0 -2px 0 var(--c-accent); }
.button--quiet:hover { box-shadow: inset 0 -3px 0 var(--c-accent); }
.cta-line { margin-top: var(--space-2); font-size: var(--fs-small); color: var(--c-ink-soft); }
.band--ink .cta-line, .hero__panel .cta-line:not(.picker .cta-line), .close .cta-line:not(.picker .cta-line) { color: var(--c-on-ink-soft); }

/* ---------- the clients picker ---------- */
.picker { display: grid; gap: var(--space-3); }
.picker--card { box-sizing: border-box; width: 100%; max-width: 520px; padding: clamp(18px, 1.2rem + 0.8vw, 28px); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.picker__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker__legend { padding: 0; margin-bottom: var(--space-2); font: 600 1.0625rem/1.3 var(--font-ui); color: var(--c-ink); }
.picker__choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.picker__choice { position: relative; display: block; }
.picker__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__choice span { display: grid; place-items: center; min-height: 50px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); font: 600 1.0625rem/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--c-ink); transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast); }
.picker__choice input:hover + span { border-color: var(--c-ink-soft); }
.picker__choice input:checked + span { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-on-ink); }
.picker__choice input:focus-visible + span { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
.picker__go { width: 100%; }
.picker .cta-line { margin: 0; text-align: center; color: var(--c-ink-soft); }

/* ---------- the header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.site-header__in { box-sizing: border-box; display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); max-width: calc(var(--max-w) + 2 * var(--gutter)); min-height: 76px; margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { display: block; flex: none; margin-right: auto; }
.logo { display: block; width: auto; height: auto; }
.logo--header { height: 42px; }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(14px, 1.7vw, 24px); margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-ink); font: 500 1rem/1 var(--font-ui); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--dur-fast); }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--c-accent); }
.site-header__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--c-ink); font: 600 1rem/1 var(--font-ui); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.site-header__phone svg { color: var(--c-brand-text); }
.site-header__cta { min-height: 46px; padding-inline: 1.15em; white-space: nowrap; }
.site-header__menu { display: none; }
/* The language switch (Part 2, step 12): in the bar, a small key to the same page in the other language (its code; its
   name in full for a screen reader and on hover), between the menu and the phone; in the open menu, under the last
   item, both, the page's own marked. */
.site-header__langs { display: flex; align-items: center; gap: 10px; }
.site-header__langs > * { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 42px; min-height: 40px; padding: 0 9px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); color: var(--c-ink); font: 600 0.875rem/1 var(--font-ui); letter-spacing: 0.04em; text-decoration: none; }
.site-header__langs [aria-current] { display: none; border-color: var(--c-ink); }
.site-header__langs a { transition: border-color var(--dur-fast); }
.site-header__langs a:hover { border-color: var(--c-ink); }
/* Spanish words run longer: its bar shows the phone as its icon alone, keeps tighter gaps from 1200 px, and folds its
   menu under 1200 px (the rules of the 1120 px fold below, for Spanish), so every word stays on one line. */
html[lang="es"] .site-header__phone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html[lang="es"] .site-header__phone { justify-content: center; width: 44px; }
@media (min-width: 1200px) { html[lang="es"] .site-header__in { gap: clamp(12px, 1.15vw, 20px); } html[lang="es"] .nav__list { gap: clamp(12px, 1.2vw, 20px); } }
@media (min-width: 1120px) and (max-width: 1199px) {
  html[lang="es"] .site-header__in { min-height: 66px; flex-wrap: wrap; }
  html[lang="es"] .logo--header { height: 34px; }
  html[lang="es"] .site-header__menu { display: inline-flex; align-items: center; gap: 10px; order: 3; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1 var(--font-ui); cursor: pointer; }
  html[lang="es"] .site-header__burger { display: grid; gap: 4px; width: 16px; }
  html[lang="es"] .site-header__burger i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
  html[lang="es"] .site-header__phone { order: 2; }
  html[lang="es"] .site-header__nav { order: 4; display: none; flex-basis: 100%; margin: 0; padding: 4px 0 16px; }
  html[lang="es"] .site-header[data-open] .site-header__nav { display: block; }
  html[lang="es"] .nav__list { flex-direction: column; gap: 0; }
  html[lang="es"] .nav a { width: 100%; min-height: 48px; font-size: 1.0625rem; border-top: 1px solid var(--c-line); }
  html[lang="es"] .site-header__langs { order: 5; display: none; flex-basis: 100%; margin-top: calc(-16px - clamp(14px, 1.6vw, 24px)); padding: 12px 0 16px; border-top: 1px solid var(--c-line); }
  html[lang="es"] .site-header[data-open] .site-header__langs { display: flex; }
  html[lang="es"] .site-header__langs > *, html[lang="es"] .site-header__langs [aria-current] { display: inline-flex; min-width: 56px; min-height: 44px; font-size: 1rem; }
}
/* Six menu items since Part 2 (Blog, the agency's ask of 8 Nov) and the language key (step 12): the number hides under
   1260 px and the menu folds under 1120 px (it was 1180 and 980 with five), the main button staying in the bar down to
   980 px as before; the gaps stop growing at 24 px, where the bar stops growing. */
@media (max-width: 1259px) { .site-header__phone-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; } .site-header__phone { justify-content: center; width: 44px; } }
@media (max-width: 979px) { .site-header__cta { display: none; } }
@media (max-width: 1119px) {
  .site-header__in { min-height: 66px; flex-wrap: wrap; }
  .logo--header { height: 34px; }
  .site-header__menu { display: inline-flex; align-items: center; gap: 10px; order: 3; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1 var(--font-ui); cursor: pointer; }
  .site-header__burger { display: grid; gap: 4px; width: 16px; }
  .site-header__burger i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
  .site-header__phone { order: 2; }
  .site-header__nav { order: 4; display: none; flex-basis: 100%; margin: 0; padding: 4px 0 16px; }
  .site-header[data-open] .site-header__nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav a { width: 100%; min-height: 48px; font-size: 1.0625rem; border-top: 1px solid var(--c-line); }
  .site-header__langs { order: 5; display: none; flex-basis: 100%; margin-top: calc(-16px - clamp(14px, 1.6vw, 24px)); padding: 12px 0 16px; border-top: 1px solid var(--c-line); }
  .site-header[data-open] .site-header__langs { display: flex; }
  .site-header__langs > *, .site-header__langs [aria-current] { display: inline-flex; min-width: 56px; min-height: 44px; font-size: 1rem; }
}

/* ---------- the stop icon ---------- */
.stop { position: absolute; z-index: 6; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--c-ink) 78%, transparent); color: var(--c-on-ink); cursor: pointer; transition: background-color var(--dur-fast); }
.stop:hover { background: var(--c-ink); }
.band:not(.band--ink) > .wrap > .stop { background: var(--c-paper-alt); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
[data-kit-tabs-stop] .stop__play { display: none; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__play { display: inline; }
[data-kit-tabs-stop][aria-pressed="true"] .stop__pause { display: none; }

/* ---------- the riser line (the motif) ---------- */
.riser { position: absolute; display: block; overflow: visible; pointer-events: none; }
.riser path { fill: none; stroke: var(--c-accent); stroke-width: var(--riser-w); stroke-linecap: round; }
.riser .riser__dash { stroke: var(--c-dash); stroke-width: 2; stroke-dasharray: 7 9; }
.riser--ground { inset: 0; z-index: 0; width: 100%; height: 100%; opacity: 0.16; }
.riser--ground path { stroke-width: 1.5; }
.riser__node { box-sizing: border-box; display: inline-block; flex: none; width: 14px; height: 14px; border: 2.5px solid var(--c-dash); border-radius: 50%; background: var(--c-paper); transition: background-color var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out); }

/* ---------- the home header ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); min-height: min(860px, calc(100svh - 76px)); background: var(--c-ink); color: var(--c-on-ink); overflow: hidden; isolation: isolate; }
.hero__panel { position: relative; display: flex; align-items: center; padding: clamp(40px, 5vw, 80px) clamp(28px, 3.6vw, 64px) clamp(64px, 7vw, 104px) max(var(--gutter), calc((100vw - var(--max-w)) / 2)); }
.hero__copy { position: relative; z-index: 1; display: grid; gap: clamp(18px, 1.6vw, 26px); width: 100%; max-width: 600px; }
.hero__title { font-size: clamp(2.25rem, 1.2rem + 3.1vw, 3.9rem); line-height: 1.05; letter-spacing: -0.022em; color: var(--c-on-ink); text-wrap: initial; }
.hero__word { display: block; white-space: nowrap; color: var(--c-accent-on-ink); opacity: calc(1 - var(--kit-swap, 0)); transform: translateY(calc(var(--kit-swap, 0) * 0.12em)); }
.hero__lead { max-width: 34rem; font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.28rem); line-height: 1.5; color: var(--c-on-ink-soft); }
.hero__stage { position: relative; min-height: 100%; }
/* the kit's header rotation (kit.md, "The header that changes its field"), as it gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
.hero__stop { top: 20px; right: 20px; }
.book { position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px; box-sizing: border-box; max-width: min(390px, calc(100% - 40px)); padding: 14px 18px 14px 14px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 14px)); }
.book__tick { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); }
.book__text { display: grid; gap: 3px; min-width: 0; }
.book__title { font: 600 1.0625rem/1.25 var(--font-ui); }
.book__sub { font-size: var(--fs-small); line-height: 1.35; color: var(--c-ink-soft); }
.riser--foot { left: 0; right: 0; bottom: 0; z-index: 4; width: 100%; height: 80px; }
@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__panel { padding: 36px var(--gutter) 40px; }
  .hero__stage { min-height: 0; aspect-ratio: 16 / 11; }
  .hero__stop { top: 14px; right: 14px; }
  .book { padding: 11px 14px 11px 11px; gap: 11px; }
  .book__tick { width: 32px; height: 32px; }
  .book__title { font-size: 1rem; }
  .riser--foot { display: none; }
}

/* ---------- chapters on the riser line ---------- */
.chapters { --p: 0; --gap-x: 72px; --line-x: calc((100% - var(--gap-x)) * 5 / 12 + var(--gap-x)); position: relative; display: grid; gap: clamp(72px, 8vw, 128px); margin: 0; padding: 0; list-style: none; }
.chapters::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--line-x); width: 2px; margin-left: -1px; background: repeating-linear-gradient(to bottom, var(--c-dash) 0 7px, transparent 7px 16px); }
.chapters::after { content: ""; position: absolute; top: 0; left: var(--line-x); width: var(--riser-w); height: calc(var(--p) * 100%); margin-left: calc(var(--riser-w) / -2); border-radius: 2px; background: var(--c-accent); }
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap-x); align-items: center; }
.chapter__text { display: grid; gap: var(--space-3); max-width: 30rem; }
.chapter__text h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem); }
.chapter__slip { color: var(--c-ink-soft); }
.chapter__fix { color: var(--c-ink); }
.chapter__stage { position: relative; height: 520px; }
.chapter__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); }
.chapter__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.chapter__pill { position: absolute; z-index: 4; top: 22px; left: -18px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 11px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1 var(--font-ui); white-space: nowrap; box-shadow: var(--shadow-s); }
.chapter.is-reached .riser__node { border-color: var(--c-accent); background: var(--c-accent); }
.chapter__scene { position: absolute; z-index: 2; }
.line__stop { top: 28px; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); }
@media (max-width: 899px) {
  .chapters { --line-x: 9px; gap: 64px; }
  .chapter { grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding-left: 32px; }
  .chapter__stage { display: grid; height: auto; }
  .chapter__media { position: relative; height: 240px; }
  .chapter__pill { top: 14px; left: -40px; }
  .chapter__scene { position: relative; inset: auto; width: auto; margin: -96px 10px 0; }
  .chapter .chapter__scene { overflow: visible; }
}

/* ---------- compare ---------- */
.compare { --kit-v: 0.55; position: relative; height: clamp(460px, 44vw, 600px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); touch-action: pan-y; user-select: none; }
.compare__before, .compare__after { position: absolute; inset: 0; overflow: hidden; }
.compare__after { clip-path: inset(0 0 0 calc(var(--kit-v) * 100%)); }
.compare__img, .compare__img img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.compare__before .compare__img { filter: grayscale(1) contrast(0.92) brightness(0.92); }
.compare__before::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 22%, transparent); }
.compare__tag { position: absolute; z-index: 2; top: 22px; padding: 9px 15px; border-radius: 999px; font: 600 0.9375rem/1 var(--font-ui); }
.compare__before .compare__tag { left: 22px; background: color-mix(in srgb, var(--c-ink) 82%, transparent); color: var(--c-on-ink); }
.compare__tag--after { right: 22px; background: var(--c-accent); color: var(--c-on-brand); }
.compare__cards { position: absolute; z-index: 2; bottom: 24px; display: grid; gap: 10px; width: min(300px, calc(var(--side) - 40px)); }
.compare__before .compare__cards { --side: 55%; left: 22px; }
.compare__after .compare__cards { --side: 45%; right: 22px; }
.ccard { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "i s" "i b"; column-gap: 12px; align-items: center; padding: 12px 15px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-m); }
.ccard span { grid-area: s; font-size: 0.875rem; line-height: 1.3; color: var(--c-ink-soft); }
.ccard b { grid-area: b; font: 600 1.0625rem/1.25 var(--font-ui); font-variant-numeric: tabular-nums; }
.ccard i { grid-area: i; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); }
.ccard--before { grid-template-columns: 1fr; grid-template-areas: "s" "b"; background: color-mix(in srgb, var(--c-paper) 94%, var(--c-ink)); }
.ccard--before b { color: var(--c-ink-soft); }
.compare [data-kit-whole] { transition: opacity 0.2s, visibility 0s; }
.compare [data-kit-under] { opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s 0.2s; }
.compare input[type="range"] { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: calc(var(--kit-v) * 100%); z-index: 4; width: 0; pointer-events: none; opacity: clamp(0, calc((min(var(--kit-v), 1 - var(--kit-v)) - 0.03) * 14), 1); }
.compare input:focus-visible + .compare__handle { opacity: 1; }
.compare__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--riser-w) / -2); width: var(--riser-w); background: var(--c-accent); }
.compare__knob { position: absolute; top: 36%; left: -26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); box-shadow: var(--shadow-m); }
.compare input:focus-visible + .compare__handle .compare__knob { outline: 3px solid var(--c-paper); outline-offset: 3px; }
.compare__hint { position: absolute; top: calc(36% + 62px); left: 0; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 0.875rem/1 var(--font-ui); box-shadow: var(--shadow-s); }
.compare[data-kit-touched] .compare__hint { opacity: 0; transition: opacity var(--dur-med); }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.promises li { display: flex; align-items: center; gap: 12px; font: 600 1.0625rem/1.3 var(--font-ui); }
.promises i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); }
@media (max-width: 899px) {
  .compare { height: 500px; }
  .compare__tag { top: 14px; padding: 8px 12px; font-size: 0.875rem; }
  .compare__before .compare__tag { left: 12px; }
  .compare__tag--after { right: 12px; }
  .compare__cards { bottom: 14px; gap: 8px; }
  .compare__before .compare__cards { left: 10px; width: calc(55% - 22px); }
  .compare__after .compare__cards { right: 10px; width: calc(45% - 20px); }
  .ccard { padding: 9px 10px; column-gap: 8px; }
  .ccard i { width: 24px; height: 24px; }
  .ccard i svg { width: 16px; height: 16px; }
  .ccard span { font-size: 0.8125rem; }
  .ccard b { font-size: 0.9375rem; }
  .ccard:nth-child(3), .ccard__more { display: none; }
  .compare__knob { top: 24%; }
  .compare__hint { top: calc(24% + 62px); }
  .promises { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the steps tour ---------- */
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps .section-head { margin-bottom: clamp(1.8rem, 1.4rem + 1.5vw, 2.6rem); }
.steps__tabs { display: grid; gap: 4px; }
.steps__tab { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-items: start; width: 100%; padding: 12px 12px 22px 0; border: 0; background: none; color: var(--c-on-ink-soft); text-align: left; font: inherit; cursor: pointer; }
.steps__node { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; box-sizing: border-box; border: 2px solid var(--c-ink-3); border-radius: 50%; background: var(--c-ink); color: var(--c-on-ink); font: 600 1.125rem/1 var(--font-display); font-style: normal; transition: background-color var(--dur-med), border-color var(--dur-med), color var(--dur-med); }
.steps__tab[aria-selected="true"] .steps__node, .steps__tab:has(~ .steps__tab[aria-selected="true"]) .steps__node { border-color: var(--c-accent); background: var(--c-accent); color: var(--c-on-brand); }
.steps__words { display: grid; gap: 4px; padding-top: 4px; }
.steps__words b { font: 600 1.25rem/1.25 var(--font-display); color: var(--c-on-ink); }
.steps__words span { font-size: 1rem; }
.steps__tab[aria-selected="true"] .steps__words span { color: var(--c-on-ink); }
.steps__tab:not(:last-child)::before, .steps__tab:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 60px; bottom: -14px; width: 2px; }
.steps__tab:not(:last-child)::before { background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--c-dash) 55%, transparent) 0 6px, transparent 6px 13px); }
.steps__tab:not(:last-child)::after { left: calc(23px - var(--riser-w) / 2); width: var(--riser-w); bottom: auto; height: 0; border-radius: 2px; background: var(--c-accent); }
.steps__tab[aria-selected="true"]:not(:last-child)::after { height: calc(var(--kit-fill, 0) * (100% - 46px)); }
.steps__tab:has(~ .steps__tab[aria-selected="true"])::after { height: calc(100% - 46px); }
.steps__tab:hover .steps__words b { text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 5px; }
.steps__cta { margin-top: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.steps__stage { position: relative; height: clamp(470px, 40vw, 530px); border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink-2); }
.steps__media { position: absolute; inset: 0; }
.steps__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.steps__media::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 28%, transparent); }
.steps__panel { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 28px; }
.steps__panel:focus-visible { outline-offset: -6px; }
.steps__scene { width: 100%; }
.steps__stop { top: 14px; right: 14px; }
@media (max-width: 899px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__side { display: contents; }
  .steps .section-head { order: 1; }
  .steps__track { order: 2; margin-bottom: 22px; } /* the kit's tour watches its tablist's parent: a box here, never display: contents, or it never turns on the phone */
  .steps__stage { order: 3; height: 500px; }
  .steps__panel { padding: 14px; }
  .steps__cta { order: 4; }
}

/* ---------- the calculator ---------- */
.worth { --calc-fill: var(--c-accent); --calc-thumb: var(--c-paper); --calc-thumb-edge: var(--c-ink); --calc-track: var(--c-line); --calc-focus: var(--c-brand-text); --calc-font-figure: var(--font-display); --calc-track-size: 8px; --calc-thumb-size: 30px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.worth__copy { display: grid; gap: clamp(22px, 2vw, 30px); }
.worth__copy .section-head { margin: 0; }
.worth__copy .calc-sliders { gap: 26px; }
.worth__copy .calc-slider__value { font-family: var(--font-display); font-weight: 600; }
.worth__result { position: relative; display: grid; gap: 14px; padding: clamp(22px, 2.4vw, 36px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--c-line); }
.worth__stop { top: 16px; right: 16px; background: var(--c-paper-alt); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); }
.worth__stop:hover { background: var(--c-line); }
.worth__picture { margin: 0 -8px; }
.worth .calc-note { font-size: var(--fs-small); color: var(--c-ink-soft); }
.pile { display: block; width: 100%; height: auto; overflow: visible; }
.pile__shadow { fill: color-mix(in srgb, var(--c-ink) 9%, transparent); }
.pile__slip { transform: translate(calc(var(--x, 200) * 1px), calc((var(--y, 215) - (1 - var(--kit-in, 1)) * 50) * 1px)) rotate(calc(var(--r, 0) * 1deg)); opacity: var(--kit-in, 1); }
.pile__slip:not([data-kit-on]) { opacity: 0; }
.pile__under { fill: color-mix(in srgb, var(--c-ink) 7%, transparent); }
.pile__paper { fill: var(--c-paper); stroke: var(--c-line); stroke-width: 1.5; }
/* only the slip on top shows its writing: the ones under it are covered */
.pile__slip[data-kit-on]:has(~ .pile__slip[data-kit-on]) .pile__ink { visibility: hidden; transition: visibility 0s linear 0.25s; }
.pile__month { font: 600 18px var(--font-ui); fill: var(--c-ink); }
.pile__rule { stroke: var(--c-line); stroke-width: 1.5; }
.pile__job { font: 500 18px var(--font-ui); fill: var(--c-ink-soft); }
.pile__amt { font: 600 18px var(--font-ui); fill: var(--c-ink); font-variant-numeric: tabular-nums; }
.pile__more { font: 600 18px var(--font-ui); fill: var(--c-accent-text); }
.pile__stamp rect { fill: color-mix(in srgb, var(--c-accent) 26%, transparent); stroke: var(--c-accent-text); stroke-width: 2.5; }
.pile__stamp text { font: 700 18px var(--font-display); letter-spacing: 0.05em; fill: var(--c-accent-text); }
@media (min-width: 900px) {
  .worth__picture { width: min(100%, 440px); margin: 0 auto; }
}
@media (max-width: 899px) {
  .worth { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .worth__copy { gap: 18px; }
  .worth__copy .calc-sliders { gap: 14px; }
  .worth__result { gap: 10px; padding: 18px; }
}

/* ---------- who we help ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tiles__more { grid-column: span 2; }
.tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); color: var(--c-on-ink); text-decoration: none; isolation: isolate; }
.tile__img, .tile__img img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; transition: transform var(--dur-med) var(--ease-out); }
.tile:hover .tile__img img { transform: scale(1.035); }
.tile__text { position: absolute; inset: auto 0 0; z-index: 1; display: grid; gap: 5px; padding: 64px 18px 18px; background: linear-gradient(to top, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 70%, transparent) 55%, transparent 100%); }
.tile__name { font: 600 1.3rem/1.2 var(--font-display); color: var(--c-on-ink); }
.tile__fields { font-size: 0.9375rem; line-height: 1.4; color: var(--c-on-ink); opacity: 0.86; }
.tile--more { aspect-ratio: auto; height: 100%; min-height: 220px; background: var(--c-ink); }
.tile--more .tile__text { inset: 0; align-content: end; padding: 28px; background: none; }
.tile--more .tile__name { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.tile__go { display: grid; place-items: center; width: 48px; height: 48px; margin-top: 10px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-brand); }
.riser--tile { inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.tile:focus-visible { outline-offset: 4px; }
@media (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__text { padding: 48px 12px 12px; }
  .tile__name { font-size: 1.0625rem; }
  .tile__fields { font-size: 0.875rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: 110px; display: grid; gap: var(--space-3); justify-items: start; }
.faq__side p:not(.cta-line) { color: var(--c-ink-soft); font-size: 1.125rem; }
.faq__side .button { margin-top: var(--space-2); }
.faq__side .cta-line { margin-top: 0; }
.qa { border-top: 1px solid var(--c-line); }
.qa:last-child { border-bottom: 1px solid var(--c-line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 44px; padding: 22px 0; font: 600 1.2rem/1.35 var(--font-display); cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background-color: var(--c-paper-alt); background-image: linear-gradient(var(--c-ink), var(--c-ink)), linear-gradient(var(--c-ink), var(--c-ink)); background-position: center; background-repeat: no-repeat; background-size: 14px 2px, 2px 14px; transition: background-color var(--dur-med) var(--ease-out); }
.qa[open] summary::after { background-color: var(--c-accent); background-size: 14px 2px, 2px 0; }
.qa__a { max-width: 42rem; padding: 0 48px 24px 0; color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__side { position: static; }
}

/* ---------- the closing band ---------- */
.close { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(84px, 10vw, 150px); background: var(--c-ink); color: var(--c-on-ink); }
.close__media { position: absolute; inset: 0; z-index: -2; }
.close__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 94%, transparent) 0%, color-mix(in srgb, var(--c-ink) 86%, transparent) 38%, color-mix(in srgb, var(--c-ink) 18%, transparent) 72%, transparent 100%); }
.close__in { position: relative; z-index: 1; display: grid; gap: 30px; justify-items: start; }
.close__copy { display: grid; gap: 16px; max-width: 36rem; }
.close__copy h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3.3rem); color: var(--c-on-ink); }
.close__copy p { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); color: var(--c-on-ink-soft); }
.close__stop { top: 20px; right: 20px; }
.riser--whole { left: 0; right: 0; bottom: 0; z-index: 0; width: 100%; height: 90px; }
@media (max-width: 899px) {
  .close__media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 90%, transparent) 0%, color-mix(in srgb, var(--c-ink) 82%, transparent) 100%); }
}

/* ---------- the footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--c-line); background: var(--c-paper-alt); color: var(--c-ink); }
.site-footer__in { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 40px; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: clamp(56px, 6vw, 80px) var(--gutter) 44px; }
.logo--footer { height: 40px; }
.site-footer__line { max-width: 22rem; margin-top: 16px; color: var(--c-ink-soft); }
.site-footer__title { margin-bottom: 10px; font: 600 0.9375rem/1.3 var(--font-ui); color: var(--c-ink); }
.site-footer ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 32px; color: var(--c-ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-accent); text-underline-offset: 4px; }
.site-footer__contact { display: grid; align-content: start; gap: 2px; }
.site-footer__contact address, .site-footer__hours { color: var(--c-ink-soft); font-style: normal; line-height: 2; }
.site-footer__legal { box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding: 18px var(--gutter) 26px; border-top: 1px solid var(--c-line); font-size: var(--fs-small); color: var(--c-ink-soft); }
.site-footer__legal ul { display: flex; gap: 20px; }
@media (max-width: 899px) {
  .site-footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__legal { padding-bottom: 96px; }
}

/* ---------- the exit popup ---------- */
.exit { box-sizing: border-box; width: min(540px, calc(100vw - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; }
.exit::backdrop { background: color-mix(in srgb, var(--c-ink) 62%, transparent); }
.exit:focus, .exit:focus-visible { outline: none; }
.exit__in { position: relative; display: grid; gap: 14px; padding: 30px 30px 64px; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); overflow: hidden; opacity: 0; transform: translateY(12px); transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.exit[data-kit-on] .exit__in { opacity: 1; transform: none; }
.logo--exit { height: 32px; }
.exit__title { padding-right: 36px; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); }
.exit__line { color: var(--c-ink-soft); }
.exit .picker { margin-top: 6px; }
.exit__close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink); cursor: pointer; }
.exit__close:hover { background: var(--c-line); }
.riser--card { left: 0; right: 0; bottom: 0; width: 100%; height: 56px; }
html[data-kit-modal] { overflow: hidden; }

/* ---------- the call bar on the phone ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--c-ink); box-shadow: 0 -10px 26px rgba(15, 29, 48, 0.28); transform: translateY(110%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { display: grid; place-items: center; min-height: 48px; border-radius: var(--radius-m); font: 600 1rem/1 var(--font-ui); text-decoration: none; }
.callbar__call { color: var(--c-on-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink-3); }
.callbar__cta { background: var(--c-accent); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- the skeleton's pages ---------- */
.thanks { box-sizing: border-box; display: grid; gap: var(--space-4); justify-items: start; max-width: calc(760px + 2 * var(--gutter)); min-height: 60vh; margin-inline: auto; padding: var(--section-y) var(--gutter); }
.thanks__headline { font-size: var(--fs-h1); }
.thanks__body { font-size: 1.15rem; color: var(--c-ink-soft); }
.thanks__next { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.thanks__next li:first-child a { box-sizing: border-box; display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.4em; border-radius: var(--radius-m); background: var(--c-accent); color: var(--c-on-brand); font: 600 1.0625rem/1 var(--font-ui); text-decoration: none; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 16%, transparent); }
.thanks__next li + li a { display: inline-flex; align-items: center; min-height: 52px; color: var(--c-ink); font-weight: 600; }
.not-found h1, .legal h1 { font-size: var(--fs-h1); }
.legal h2 { font-size: var(--fs-h3); }

@media (prefers-reduced-motion: reduce) {
  .button, .button__arrow, .tile__img img, .exit__in, .callbar, .riser__node, .steps__node { transition: none; }
}

/* ---------- fix round F2 ---------- */
/* The line under every main button is the agency's own, two sentences: it breaks into even lines. */
.cta-line { max-width: 34em; text-wrap: balance; }
.picker .cta-line { margin-inline: auto; }

/* The proof band: the proof slot (Home #proof). BrightLocal's findings today, the agency's Google reviews later. */
.proof { position: relative; display: grid; align-items: center; min-height: 520px; padding: clamp(22px, 3vw, 40px); }
.proof__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-m); background: var(--c-ink); }
.proof__media video, .proof__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.proof__stop { top: 16px; right: 16px; }
.proof__slot { position: relative; z-index: 2; display: grid; gap: 14px; width: min(420px, 40%); margin: 0; padding: 0; list-style: none; }
.proof__slot::before { content: ""; position: absolute; left: 0; top: 34px; bottom: 34px; border-left: var(--riser-w) solid var(--c-accent); }
.pcard { position: relative; display: grid; grid-template-columns: minmax(5.6rem, auto) 1fr; column-gap: 16px; row-gap: 6px; padding: 18px 22px 16px 28px; border-radius: var(--radius-m); background: var(--c-paper); border: 1px solid var(--c-line); box-shadow: var(--shadow-l); }
.pcard .riser__node { position: absolute; left: -7px; top: 27px; border-color: var(--c-accent); background: var(--c-accent); }
.pcard__num { grid-row: 1 / span 2; align-self: start; font: 600 clamp(2.2rem, 1.75rem + 1.2vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.pcard__text { font: 500 1rem/1.4 var(--font-text); color: var(--c-ink); }
.pcard__src { justify-self: start; font: 600 0.875rem/1.3 var(--font-ui); color: var(--c-brand-text); text-decoration: underline; text-underline-offset: 3px; }
.pcard__src:hover { color: var(--c-ink); }

/* The sample report (Home #sample): plancards (knob bare) over the footage of the business at work, labeled. */
.sample { position: relative; min-height: 580px; }
.sample__media { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); }
.sample__media video, .sample__media img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.sample__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 38%, color-mix(in srgb, var(--c-ink) 30%, transparent) 100%); pointer-events: none; }
.sample__stop { top: 16px; right: 16px; }
.sample__report { position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; width: 54%; display: grid; align-content: center; gap: 12px; padding: 22px 26px 22px 0; }
.sample__label { justify-self: start; margin-left: 20px; padding: 8px 15px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1.25 var(--font-ui); box-shadow: var(--shadow-s); }

@media (max-width: 899px) {
  .proof { min-height: 0; padding: 0; }
  .proof__media { position: relative; height: 260px; }
  .proof__slot { width: auto; margin: -64px 12px 0 18px; }
  .sample { display: grid; min-height: 0; }
  .sample__media { position: relative; height: 280px; }
  .sample__media::after { background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--c-ink) 26%, transparent) 100%); }
  .sample__report { position: relative; inset: auto; width: auto; margin-top: -86px; padding: 0 8px; }
  .sample__label { margin-left: 12px; }
}
@media (max-width: 899px) { .sample__label { font-size: 0.875rem; } }
/* The call bar's main button carries the longer name: it takes more of the bar, so it stays on one line at 320 px. */
.callbar { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); }
.callbar a { padding-inline: 8px; text-align: center; }
/* On a small phone each finding stands over its words, so the words keep a readable measure. */
@media (max-width: 520px) {
  .pcard { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 16px 18px 14px 24px; }
  .pcard__num { grid-row: auto; font-size: 2.2rem; }
  .pcard .riser__node { top: 24px; }
}
@media (max-width: 359px) { .callbar a { padding-inline: 4px; font-size: 0.9375rem; } }
/* The line's stop icon sits on its first picture, so the two are seen together (one icon holds the four chapters). */
.chapter__stage .stop.line__stop { top: 16px; right: 16px; }
@media (max-width: 899px) {
  /* The sample's cards stay on their footage on the phone too: the clip fills the whole stage, the plumber at its top. */
  .sample { display: block; min-height: 0; padding: 230px 8px 14px; }
  .sample__media { position: absolute; inset: 0; height: auto; }
  .sample__media::after { background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--c-ink) 34%, transparent) 100%); }
  .sample__report { position: relative; inset: auto; width: auto; margin: 0; padding: 0; }
  /* The calculator keeps to its height on the phone with the longer line under its button. */
  .worth__copy { gap: 12px; }
  .worth__result { gap: 8px; padding: 16px; }
  .worth__picture { width: min(100%, 290px); margin: 0 auto; }
}
@media (max-width: 374px) {
  /* Under 375 px the sample's first card grows taller than the scene's stage: the footage reaches past it. */
  .sample { padding-bottom: 52px; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Part 2 (11 Nov): the parts every inner page shares. A page's own CSS sets its own layout of each.
   --------------------------------------------------------------------------------------------------------------- */
/* The inner header: a photo (or footage) behind, the words on the navy or on its shade; each page lays it out its own way. */
.phead { position: relative; isolation: isolate; overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.phead__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.phead__media > img, .phead__media > video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.phead__in { position: relative; z-index: 1; }
.phead__copy { display: grid; gap: var(--space-3); align-content: center; }
.phead h1 { color: var(--c-on-ink); }
.phead__lead { max-width: 34rem; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; color: var(--c-on-ink-soft); }
.phead__cta { display: grid; gap: var(--space-2); justify-items: start; margin-top: var(--space-2); }
.phead .cta-line { color: var(--c-on-ink-soft); }
.phead :focus-visible { outline-color: var(--c-brand-on-ink); }
.phead__stop { top: 20px; right: 20px; }
/* A closing band on a photo (the clip's rule above, for an image). */
.close__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
/* The riser line as a faint field behind a part on the designed ground. */
.riser--field { inset: 0; z-index: 0; width: 100%; height: 100%; }
.riser--field .riser__dash { stroke: color-mix(in srgb, var(--c-dash) 70%, transparent); }
/* A small product card over a photo (a Maps result, an ad, a review, a booking): solid white, a hairline, a long soft shadow. */
.fc { display: grid; gap: 3px; padding: 14px 16px 15px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); font-family: var(--font-text); }
.fc__label { display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--c-ink-soft); }
.fc__name { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--c-ink); }
.fc__line { font-size: 13.5px; line-height: 1.4; color: var(--c-ink-soft); font-variant-numeric: tabular-nums; }
.fc__chip { justify-self: start; display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; padding: 4px 11px; border-radius: 999px; background: var(--c-brand-light); color: var(--c-brand-text); font-size: 13px; font-weight: 600; }
.fc__live { width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.fc__pin { flex: none; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; background: var(--c-brand); transform: rotate(-45deg); }
.fc__ad { padding: 0 6px; border: 1px solid var(--c-line); border-radius: 4px; color: var(--c-ink); font-weight: 600; }
.fc__icon { flex: none; width: 16px; height: 16px; }
.fc__icon circle { fill: var(--c-accent); }
.fc__icon path { stroke: var(--c-on-brand); }
.fc__call { justify-self: start; margin-top: 8px; padding: 6px 16px; border-radius: 999px; background: var(--c-accent); color: var(--c-on-brand); font-size: 14px; font-weight: 600; }
.fc__stars { color: var(--c-accent-text); font-size: 15px; letter-spacing: 2px; line-height: 1; }

/* ---------- the Blog's posts (src\partials\blog.mjs): the post's header, its words, the close band ---------- */
/* The header: its photo full bleed; the title card there from the first frame on the photo's clear side, the summary
   landing in a second card under it and the riser line drawing along the photo's foot (a kit sequence with its hold). */
.post-head { display: grid; min-height: clamp(540px, 76vh, 700px); }
.post-head .phead__media img { object-position: var(--pos, 50% 50%); }
.post-head__seq { position: relative; display: grid; align-items: end; }
.post-head__in { display: flex; padding-block: clamp(40px, 5vw, 72px) clamp(104px, 10vw, 136px); }
.post-head--right .post-head__in { justify-content: flex-end; }
.post-head--edge .post-head__in { max-width: none; }
.post-head__stack { display: grid; gap: 12px; width: var(--card-w, min(560px, 44vw)); }
.post-head__crumbs { justify-self: start; }
.post-head__crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 2px 16px; border-radius: 999px; background: var(--c-paper); box-shadow: var(--shadow-m); list-style: none; font: 600 0.875rem/1.3 var(--font-ui); }
.post-head__crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--c-ink-soft); }
.post-head__crumbs a { display: inline-block; padding-block: 10px; color: var(--c-ink); text-decoration: none; }
.post-head__crumbs a:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-head__title { display: grid; gap: 14px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.post-head h1 { color: var(--c-ink); font-size: clamp(1.6rem, 1.05rem + 1.35vw, 2.35rem); line-height: 1.14; }
.post-head__by { font: 600 0.9375rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.post-head__dek { margin: 0; padding: 18px 22px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font-size: 1.0625rem; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-m); opacity: var(--kit-in, 1); }
/* The kit's hold (the site check asks it of every sequence): the title card is its first item, on through the turn;
   the summary and the line only fade, in and out (a slide, a scale or a drawing would be taken back the way it came). */
.post-head__riser { opacity: var(--kit-in, 1); }
.post-head :focus-visible { outline-color: var(--c-brand-text); }
/* The words: one readable column. */
.post__in { max-width: calc(44rem + 2 * var(--gutter)); }
.post__in > * + * { margin-top: 1.15em; }
.post__in h2 { margin-top: 1.8em; font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.95rem); line-height: 1.25; }
.post__in p { font-size: clamp(1.06rem, 1rem + 0.25vw, 1.19rem); line-height: 1.72; }
.post__in > .post__ask { margin-top: 2.2em; padding: 22px 24px; border-radius: var(--radius-l); background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 600; line-height: 1.55; }
.post__ask a { color: var(--c-brand-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* The close band: the words over the shade on the left only; a call from Google Maps, then the booked card landing
   over it on the clear side. */
.close--blog .close__media::after { background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 82%, transparent) 30%, color-mix(in srgb, var(--c-ink) 24%, transparent) 42%, transparent 52%); }
.close--blog .close__copy { max-width: 27rem; }
.bclose__cta { display: grid; gap: var(--space-2); justify-items: start; max-width: 27rem; }
.bclose { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(96px, 11vw, 150px); display: grid; width: 290px; }
.bclose > * { grid-area: 1 / 1; margin: 0; }
.bclose__ring { align-self: end; justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 9px; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1.2 var(--font-ui); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-m); }
.bclose__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-text); }
.bclose__ico svg { width: 17px; height: 17px; }
.bclose__booked { display: flex; align-items: center; gap: 12px; padding: 14px 18px 15px 14px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); opacity: var(--kit-in, 1); }
.bclose__tick svg { display: block; width: 30px; height: 30px; }
.bclose__tick circle { fill: var(--c-accent); }
.bclose__tick path { stroke: var(--c-on-brand); }
.bclose__words { display: grid; gap: 2px; }
.bclose__words b { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.bclose__words span { font-size: 0.875rem; line-height: 1.35; color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .bclose { display: none; }
}
@media (max-width: 1100px) {
  /* the photo still fills the whole header and the cards stand over its foot (Lessons) */
  .post-head { min-height: 0; }
  .post-head__in, .post-head--edge .post-head__in { display: block; max-width: calc(var(--max-w) + 2 * var(--gutter)); padding-block: clamp(200px, 40vw, 400px) 64px; }
  .post-head__stack { width: auto; max-width: 720px; }
}
