/* Hallmark · shape: job story in roller passes (one customer's review walked step by step, each step one more pass of paint) · genre: editorial · theme: custom · job: hire · idea: "Carol K.'s paint job told step by step in her own words, and the page gets one more, longer roller pass of brick red per step until the verdict is the whole wall painted" · vibe: "fresh paint, plain-spoken, neat straight edges"
 * paper: oklch(98.4% 0.005 30) · accent: oklch(20.5% 0.013 30) · display: Encode Sans Semi Condensed 900 · body: Encode Sans 400/700 · hero: on the bare white wall "Preble paints Spokane houses, start to finish." runs across in two lines of soot sentence case, and under it the first brick-red pass, painted in from the left edge a third of the way, holds 01 You call and ends in the soot call at the same height, with the rating flush right on the bare wall · nav: the wordmark with the trade and town under it, a link to the estimate form, the soot call button; no menu · footer: one light band, the wordmark, the town, three links and the sources line · imagery: none · signature: each step is one more, longer brick-red pass with dead-straight edges (01 a third of the way, 02 half, 03 two thirds, 04 most), until the verdict is the whole wall painted
 * axes: light/grotesk-heavy/chromatic-red · posture: committed (the brick paint is a surface: passes on the step screens and the whole verdict wall; soot is the signal for the call and the send) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: S, a pass of red could open any painter's page; every pass is tied to one line of Carol K.'s review and the passes grow with her story, so the device only works for this review */
/* Hallmark · hero-review: fix · 5 findings · 4 resolved (head names Carol K. and sets in two lines so the 01 pass sits higher and taller; the call is the second half of the 01 pass at the same height and the rating sits flush right; the head runs the width) · 1 partial (phone passes keep text-fit lengths, 64 to 94 percent, because each step name must sit inside its paint; the call now runs as a soot pass right under the 01 pass from the left edge) */
/* Hallmark · finish-review: folded into Impeccable critique A · 5 findings · 3 resolved (H1 the paints list set at quote size, H3 pass and verdict heads raised to about 51px at 1440, H5 the 03 step opens on the long gap) · 2 kept on purpose (H2 the rating's second showing is the verdict's peak; H4 is the 39b waiver below) */
/* Hallmark · answered F3 · balance stays only on phones, where it splits the head into three even lines; desktop sets it with a fixed break before start to finish */
/* Hallmark · dismissed F1 · the one straight quote is in the Netlify honeypot label the factory requires word for word, and it is hidden from view */
/* Hallmark · waive 39b · the hero call is one a.btn, the second half of the first paint pass, so it stands the pass's 140px; every other control is 48 to 56px · on Preble's first screen the call and the 01 pass are one roller stroke */
@import url("./tokens.css");
@import url("./base.css");

@media (max-width: 40rem) { :root { --gutter: 20px; --pass-h: 88px; } .pass .pass__paint { --len-now: var(--len-s); } }
@media (min-width: 40.01rem) and (max-width: 60rem) { :root { --pass-h: 112px; } }

body { font-size: var(--text-md); }
.nowrap { white-space: nowrap; }

/* ---------- the preview bar and the mast ---------- */
.preview { margin: 0; padding: var(--space-xs) var(--gutter); background: var(--color-paper-3); color: var(--color-ink-2); font-size: var(--text-xs); line-height: 1.4; text-align: center; }
.mast__in { display: flex; align-items: center; gap: var(--space-lg); min-height: 88px; }
.wordmark { display: flex; flex-direction: column; justify-content: center; min-height: 48px; gap: var(--space-3xs); color: var(--color-ink); text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: 0.04em; line-height: 1.1; }
.wordmark__sub { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); letter-spacing: 0; color: var(--color-muted); }
.wordmark:hover .wordmark__sub { color: var(--color-ink-2); }
.mast__link { margin-left: auto; display: inline-flex; align-items: center; min-height: 48px; padding-inline: var(--space-xs); color: var(--color-ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: var(--color-rule); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.mast__link:hover { text-decoration-color: var(--color-field); }
.mast__short { display: none; }

/* ---------- buttons: soot, square-edged like trim ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: 0; font: 700 1.0625rem/1 var(--font-body); letter-spacing: var(--tracking-label); 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--ink { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--ink:hover { background: var(--color-accent-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--big { min-height: 56px; padding-inline: var(--space-xl); font-size: 1.1875rem; }
.mast__call { margin-left: 0; }

/* ---------- the hero: a bare wall and the first pass ---------- */
.hero { padding-top: clamp(var(--space-xl), 4.4vw, var(--space-3xl)); }
.hero h1 { max-width: 15em; font-size: var(--text-display); font-weight: 900; letter-spacing: var(--tracking-display); line-height: 1.08; color: var(--color-ink); }
.hero__lede { margin-top: var(--space-lg); max-width: 34em; font-size: clamp(1.125rem, 0.6vw + 1rem, 1.5rem); line-height: 1.45; color: var(--color-ink-2); }
.h1-tail { white-space: normal; }
@media (min-width: 60.01rem) { .hero h1 { text-wrap: wrap; } .h1-tail { white-space: nowrap; } }
.pass--hero { margin-top: clamp(var(--space-xl), 3.6vw, var(--space-2xl)); }

/* ---------- a pass of paint: full-bleed from the left edge, its length set per step ---------- */
.pass { container-type: inline-size; }
.pass__row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xl); row-gap: var(--space-lg); }
.pass__paint { --len-now: var(--len); --start: max(var(--gutter), calc((100cqw - var(--container)) / 2 + var(--gutter))); position: relative; isolation: isolate; overflow: hidden; flex: 0 0 auto; box-sizing: border-box; width: max(calc(var(--len-now) * 1cqw), var(--len-min, 0px)); max-width: 100%; min-height: var(--pass-h); margin: 0; padding: var(--space-md) var(--space-lg) var(--space-md) var(--start); display: flex; align-items: center; background: var(--color-field); color: var(--color-field-ink); font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 2.4vw + 1rem, 3.5rem); letter-spacing: var(--tracking-display); line-height: 1.05; box-shadow: inset -6px 0 0 var(--color-field-2); }
.pass__txt { position: relative; z-index: 2; display: inline-flex; align-items: baseline; gap: 0.4em; white-space: nowrap; }
.pass__no { font-variant-numeric: tabular-nums lining-nums; }
/* the unpainted tail: a spacer after the words; the roll only ever covers this, never the words */
.pass__wet { position: relative; flex: 1 1 auto; align-self: stretch; margin-left: var(--space-md); }
.pass__wet::after { content: ""; position: absolute; top: calc(-1 * var(--space-md)); bottom: calc(-1 * var(--space-md)); left: 0; right: calc(-1 * var(--space-lg)); background: var(--color-paper); transform: scaleX(0); transform-origin: right center; pointer-events: none; }
.pass__rest { --start: max(var(--gutter), calc((100cqw - var(--container)) / 2 + var(--gutter))); flex: 1 1 24rem; display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xl); row-gap: var(--space-md); padding-right: var(--start); }
.pass__rest .rating { margin-left: auto; }
.pass--hero .pass__row { column-gap: 0; }
.pass--hero .pass__rest { padding-left: 0; }
.btn--pass { min-height: var(--pass-h); padding-inline: var(--space-xl); font-size: clamp(1.1875rem, 0.5vw + 1rem, 1.5rem); }
.pass :focus-visible { outline-color: var(--color-focus); }

/* the rating, set as the line Google gives */
.rating { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.35em; font-weight: 700; font-size: var(--text-lg); line-height: 1.2; color: var(--color-ink); }
.rating b { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 2.6vw + 1rem, 4rem); letter-spacing: 0.04em; line-height: 1; font-variant-numeric: lining-nums; }

/* ---------- the steps ---------- */
.step { margin-top: var(--section-gap-s); }
.step__body { margin-top: var(--space-2xl); }
.step--color { margin-top: var(--section-gap-l); }
.step__body--split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.step__body--stack { display: grid; gap: var(--space-2xl); }
figure { margin: 0; }
blockquote { margin: 0; }
.story p { max-width: 15em; font-family: var(--font-display); font-weight: 900; font-size: var(--text-quote); letter-spacing: 0.04em; line-height: 1.08; color: var(--color-ink); text-wrap: balance; }
.story--xl p { max-width: 13em; font-size: var(--text-quote-xl); line-height: 1.08; }
.story figcaption, .pin figcaption { margin-top: var(--space-md); font-weight: 700; font-size: var(--text-md); color: var(--color-muted); }
.pin { padding-top: var(--space-md); border-top: var(--rule-thick) solid var(--color-ink); }
.pin p { max-width: 24em; font-size: var(--text-xl); line-height: 1.4; color: var(--color-ink); }
.pins { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); max-width: 62rem; }

/* ---------- the verdict: the whole wall painted ---------- */
.verdict { margin-top: var(--section-gap-s); padding-block: var(--space-3xl) var(--section-gap-s); background: var(--color-field); color: var(--color-field-ink); }
.verdict__head { display: flex; align-items: center; gap: 0.4em; min-height: var(--pass-h); font-weight: 900; font-size: clamp(1.75rem, 2.4vw + 1rem, 3.5rem); letter-spacing: var(--tracking-display); line-height: 1.05; }
.verdict .story { margin-top: var(--space-xl); }
.verdict .story p, .verdict .story figcaption, .verdict .pin p, .verdict .pin figcaption, .verdict .rating { color: var(--color-field-ink); }
.verdict__foot { margin-top: var(--space-3xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-xl) var(--gap-columns); align-items: end; }
.pin--field { border-top-color: var(--color-field-ink); }
.verdict :focus-visible { outline-color: var(--color-focus-on-field); }

/* ---------- what Preble paints ---------- */
.paints { margin-top: var(--section-gap); }
.paints__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-xl) var(--gap-columns); align-items: start; }
.paints h2 { font-size: var(--text-section); font-weight: 900; letter-spacing: 0.04em; line-height: 1.05; }
.paints__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-lg); }
.paints__list li { font-family: var(--font-display); font-weight: 900; font-size: var(--text-quote); letter-spacing: 0.04em; line-height: 1.1; color: var(--color-ink); }
.paints__list li:last-child { color: var(--color-field); }

/* ---------- your turn: the estimate ---------- */
.turn { margin-top: var(--section-gap); padding-bottom: var(--section-gap-s); }
.turn__grid { margin-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
.bigtel { display: inline-flex; align-items: center; min-height: 56px; color: var(--color-ink); font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 2.8vw + 1rem, 3.75rem); letter-spacing: 0.04em; line-height: 1.05; white-space: nowrap; text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 0.32em; text-decoration-color: var(--color-field); transition: color var(--dur-short) var(--ease-out); }
.bigtel:hover { color: var(--color-field-2); }
.turn__call p { margin-top: var(--space-lg); max-width: 26em; font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink-2); }
.form { display: grid; gap: var(--space-lg); padding: var(--space-xl); background: var(--color-paper-2); }
.form__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.field { display: grid; gap: var(--space-xs); font-weight: 700; font-size: var(--text-md); color: var(--color-ink); }
.field input, .field select, .field textarea { width: 100%; height: 52px; min-height: 0; padding: 0 var(--space-md); line-height: 1.2; border: 2px solid var(--color-muted); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-weight: 400; font-size: var(--text-md); transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { height: auto; min-height: 128px; padding-block: var(--space-sm); line-height: 1.5; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-ink); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.form .btn { justify-self: start; }
.form-note { font-size: var(--text-lg); line-height: 1.5; color: var(--color-ink); }
.form-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); font-weight: 700; text-decoration-color: var(--color-field); text-decoration-thickness: 2px; }

/* ---------- footer ---------- */
.foot { padding-block: var(--space-2xl) var(--space-3xl); background: var(--color-paper-2); border-top: var(--rule-thick) solid var(--color-ink); }
.foot__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--space-md) var(--gap-columns); align-items: baseline; }
.foot__mark { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); letter-spacing: 0.04em; line-height: 1.1; }
.foot__town { color: var(--color-ink-2); }
.foot__links { grid-column: 2; margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: var(--space-xl); }
.foot__links a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--color-ink); white-space: nowrap; text-decoration-color: var(--color-field); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.foot__links a:hover { color: var(--color-field-2); }
.foot__small { grid-column: 2; font-size: var(--text-sm); color: var(--color-muted); }
.foot a:focus-visible, .turn a:focus-visible, .mast a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* ---------- the phone call bar: only after the hero, never over the estimate form ---------- */
.callbar { display: none; }
@media (max-width: 48rem) {
  .js .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); padding: var(--space-xs) var(--gutter) calc(var(--space-xs) + env(safe-area-inset-bottom)); background: var(--color-paper); border-top: var(--rule-thick) solid var(--color-field); transform: translateY(110%); visibility: hidden; transition: transform var(--dur-short) var(--ease-out), visibility 0s linear var(--dur-short); }
  .js .callbar.is-on { transform: none; visibility: visible; transition: transform var(--dur-short) var(--ease-out), visibility 0s; }
  .callbar .btn { width: 100%; }
  .foot { padding-bottom: calc(var(--space-3xl) + 72px); }
}

/* ---------- the roll: each pass rolls out to its length (the page's one motion; the tail after the words only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pass--hero .pass__wet::after { animation: roll var(--dur-roll) var(--ease-out) 250ms both; }
  @supports (animation-timeline: view()) {
    .step .pass__wet::after, .turn .pass__wet::after { animation: roll linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes roll { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .pass__wet::after { content: none; animation: none; } }

/* ---------- tablet and phone ---------- */
@media (max-width: 60rem) {
  .step__body--split, .verdict__foot, .paints__grid, .turn__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__in { grid-template-columns: minmax(0, 1fr); }
  .foot__links, .foot__small { grid-column: 1; }
}
@media (max-width: 48rem) {
  .mast__link { display: none; }
  .mast__call { margin-left: auto; }
  .pass__rest { flex: 1 1 100%; padding-inline: var(--gutter); }
  .pass__rest .rating { margin-left: 0; }
  .pass__rest .btn { width: 100%; }
  .pass--hero .pass__row { row-gap: 0; }
  .pass--hero .pass__rest { padding-left: 0; row-gap: var(--space-lg); }
  .pass--hero .btn--pass { width: 100%; min-height: 72px; justify-content: flex-start; padding-inline: var(--gutter) var(--space-lg); font-size: 1.25rem; }
  .pass--hero .rating { padding-left: var(--gutter); }
  .pins { grid-template-columns: minmax(0, 1fr); }
  .form__two { grid-template-columns: minmax(0, 1fr); }
  .form { padding: var(--space-lg); }
  .form .btn { justify-self: stretch; }
}
@media (max-width: 30rem) {
  .mast__in { min-height: 72px; gap: var(--space-md); }
  .wordmark { font-size: 1.25rem; }
  .wordmark__sub { font-size: var(--text-xs); }
  .mast__long { display: none; }
  .mast__short { display: inline; }
  .mast__call { padding-inline: var(--space-lg); }
  .hero { padding-top: var(--space-lg); }
  .hero__lede { margin-top: var(--space-md); }
  .pass--hero { margin-top: var(--space-lg); }
  .step__body { margin-top: var(--space-xl); }
  .pin p { font-size: var(--text-lg); }
}
