/* Hallmark · shape: Index-First (the reviews as a travelling index) · genre: editorial · theme: Manifesto (deal 2/3, seed prrp-limited-sheffield-loft-fdcb·af704956·2026-12-03·r0) · job: hire · draw: a76e16
 * hero: Ledge, pinned (swapped from Banner: Scrollcraft wants a layered first screen) · nav: masthead, three-part (four destinations) · footer: letter close · imagery: photographs (one own, one library stand-in) and the product drawn from their logo · signature: your scroll lifts the roof into a dormer and switches the new room's light on
 * axes: dark/display-condensed/warm · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S4 R4 V5 · weakest: S, almost no job photos reachable (Checkatrade blocks the album); the hero carries the trade as their own logo house, opened into a loft */
/* Hallmark · waive 38iii · Manifesto names one red word in the hero head as its signature and it appears once, in the hero · the red UP is the brand's one red word, as in their logo */
/* Hallmark · waive 55b · hero and poster heads are nowrap span lines sized in cqi · each line is its own element and can never wrap, so it leads tight */
@import url("./tokens.css");
@import url("./base.css");

:root { --chrome-h: 132px; --color-lamp: oklch(84% 0.13 78); --color-lamp-deep: oklch(70% 0.14 65); }

/* type, per Manifesto */
body { color: var(--color-ink-2); }
h1, h2, h3 { font-weight: 400; text-transform: uppercase; line-height: 1.02; color: var(--color-ink); }
.display { line-height: var(--lh-tight); max-width: none; }
.display > span { display: block; white-space: nowrap; }
.display .hot { font-style: normal; color: var(--color-accent-text); }
a:hover { text-decoration-color: var(--color-accent-text); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid transparent; border-radius: 0; background: none; color: var(--color-ink); font-weight: 600; font-size: var(--text-md); text-decoration: none; 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); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-deep); }
.btn--secondary { border-color: var(--color-ink-2); color: var(--color-ink); }
.btn--secondary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--ground { background: var(--color-paper); color: var(--color-ink); }
.btn--ground:hover { background: var(--color-paper-3); }
.btn--line { border-color: var(--color-accent-ink); color: var(--color-accent-ink); }
.btn--line:hover { background: var(--color-accent-ink); color: var(--color-accent-deep); }
.btn--ground:focus-visible, .btn--line:focus-visible { outline-color: var(--color-accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* chrome: the concept bar and the masthead, one sticky block */
.chrome { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-ink); }
.pbar { background: var(--color-paper-3); font-size: var(--text-sm); color: var(--color-ink-2); }
.pbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 52px; padding-block: var(--space-2xs); }
.pbar a.u { color: var(--color-ink); }
.pact { display: flex; align-items: center; gap: var(--space-xs); }
.secure { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
.secure:hover { background: var(--color-accent-deep); }
.afford { background: none; border: 0; cursor: pointer; color: var(--color-ink-2); text-decoration: underline; text-underline-offset: 0.16em; padding: 0 var(--space-xs); min-height: 44px; white-space: nowrap; }
.afford:hover { color: var(--color-ink); text-decoration-color: var(--color-accent-text); }
.afford:active, .secure:active { transform: translateY(1px); }
.secure:focus-visible, .afford:focus-visible, .pbar .u:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.mast .container { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; min-height: 76px; gap: var(--space-lg); }
.mast-links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.mast-links a { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding-block: var(--space-sm); }
.mast-links a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent-text); }
.mast-links a:focus-visible, .brand:focus-visible, .mast-tel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; letter-spacing: 0.06em; }
.brand:hover { color: var(--color-ink); }
.mark { width: 46px; height: 38px; fill: none; stroke: var(--color-ink); stroke-width: 3; stroke-linecap: square; }
.mark .mark-hot { stroke: var(--color-accent-text); }
.mast-tel { justify-self: end; color: var(--color-ink); font-weight: 600; text-decoration: none; padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-accent-text); transition: color var(--dur-short) var(--ease-out); }
.mast-tel:hover { color: var(--color-accent-text); }

/* hero: the Ledge, pinned; the head rests at the base beside the house */
.sc-stage { position: sticky; top: var(--chrome-h); height: calc(100svh - var(--chrome-h)); overflow: clip; }
.hero-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: end; padding-block: var(--space-xl) var(--space-2xl); }
.hero-copy { container-type: inline-size; display: grid; gap: var(--space-lg); padding-bottom: var(--space-xs); }
.hero h1 { font-size: min(26cqi, 13rem); }
.hero .lead { color: var(--color-ink-2); max-width: 30ch; }
.scene { position: relative; height: 100%; min-height: 0; --lift: 1; --light: 1; --beat: 1; --p: 1; }
.plane { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plane--back { transform: translate3d(0, calc((1 - var(--p)) * -24px), 0); }
.plane--house { transform: translate3d(0, calc((1 - var(--p)) * 10px), 0); }
.plane--front { transform: translate3d(0, calc((1 - var(--p)) * 90px), 0); }
.far { fill: var(--color-paper-2); }
.far-line { fill: none; stroke: var(--color-rule); stroke-width: 2; }
.house { fill: var(--color-paper); }
.line, .win, .slope-old, .dormer-edge, .floor { fill: none; stroke: var(--color-ink); stroke-width: 4; stroke-linecap: square; stroke-linejoin: miter; }
.win { stroke-width: 3; stroke: var(--color-ink-2); }
.floor { stroke: var(--color-rule); stroke-width: 2; stroke-dasharray: 10 8; }
.slope-old { opacity: calc(1 - var(--lift)); }
.dormer { fill: var(--color-paper-3); }
.dormer-edge { opacity: min(1, calc(var(--lift) * 4)); }
.hot-line { fill: none; stroke: var(--color-accent); stroke-width: 6; stroke-linecap: square; }
.lamp { fill: var(--color-lamp); opacity: var(--light); }
.glaze { fill: none; stroke: var(--color-paper-3); stroke-width: 3; opacity: var(--light); }
.ladder { fill: none; stroke: var(--color-lamp-deep); stroke-width: 5; stroke-linecap: square; }
.beat { position: absolute; right: 0; top: var(--space-md); max-width: 18ch; font-size: var(--text-lead); font-weight: 600; color: var(--color-ink); opacity: var(--beat); transform: translate3d(0, calc((1 - var(--beat)) * 12px), 0); }
.reveal { animation: wipe var(--dur-long) var(--ease-out) both; }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* the record: four ways up */
.record { padding-block: var(--section-gap) var(--section-gap-s); }
.record h2 { margin-bottom: var(--space-2xl); }
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows .n { font-family: var(--font-display); font-size: var(--text-section); line-height: 1; color: var(--color-muted); }
.rows h3 { font-size: var(--text-3xl); }
.rows p { font-size: var(--text-lead); max-width: 40ch; }

/* Paul and Rob: a split with their own photograph */
.crew { padding-block: var(--section-gap-s) var(--section-gap); }
.crew-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.crew-photo, .house-photo { margin: 0; }
.frame { aspect-ratio: 3 / 4; width: 100%; }
figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); }
.crew-copy { display: grid; gap: var(--space-lg); }
.facts { margin: var(--space-lg) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.facts li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-size: var(--text-lead); color: var(--color-ink); }

/* reviews: the poster line, then the rail travels */
.say { display: flex; flex-direction: column; justify-content: center; gap: var(--space-2xl); background: var(--color-paper-2); border-block: var(--rule-hair) solid var(--color-rule); }
.say .container { container-type: inline-size; }
.poster { max-width: none; font-size: min(10.4cqi, 9.5rem); line-height: var(--lh-tight); }
.poster > span { display: block; white-space: nowrap; }
.rail-wrap { overflow: clip; }
.rail { display: flex; gap: var(--gap-columns); margin: 0; padding: 0 var(--gutter); list-style: none; width: max-content; }
.rail:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.rail li { width: 520px; flex: none; display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg) 0 0; border-top: var(--rule-bar) solid var(--color-ink); }
.rail h3 { font-size: var(--text-2xl); }
.rail .where { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.rail blockquote { margin: var(--space-xs) 0 0; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); }
.rail .rail-end { width: auto; border-top-color: var(--color-accent); align-content: start; justify-items: start; padding-right: var(--gutter); }

/* the rest of the house: list beside the roofline */
.house { padding-block: var(--section-gap-l) var(--section-gap); }
.house-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.house-copy h2 { margin-bottom: var(--space-2xl); }
.trades { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap-columns); border-top: var(--rule-hair) solid var(--color-rule); }
.trades li { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); font-family: var(--font-display); font-size: var(--text-xl); text-transform: uppercase; color: var(--color-ink); line-height: 1.2; }
.house-photo .frame { aspect-ratio: 603 / 841; max-height: 720px; }

/* the pledge: the page's one red field */
.pledge { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--section-gap-s); }
.pledge-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: end; }
.pledge h2 { color: var(--color-accent-ink); font-size: clamp(3rem, 6vw, 6.5rem); line-height: 0.95; }
.pledge-act { display: grid; gap: var(--space-lg); }
.pledge-tel { font-family: var(--font-display); font-size: clamp(2.75rem, 5.2vw, 5.5rem); line-height: 1; color: var(--color-accent-ink); text-decoration: none; }
.pledge-tel:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.pledge-tel:focus-visible { outline: 2px solid var(--color-accent-ink); outline-offset: 4px; }
.pledge p { font-size: var(--text-lead); color: var(--color-accent-ink); }

/* footer: a letter close */
.foot { padding-block: var(--space-3xl) var(--space-2xl); }
.foot .sign { font-family: var(--font-display); text-transform: uppercase; font-size: var(--text-3xl); color: var(--color-ink); margin-bottom: var(--space-lg); }
.foot .small { font-size: var(--text-sm); color: var(--color-muted); max-width: 80ch; }
.foot a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* pop-ups: what would be built in */
.pop { margin: auto; border: var(--rule-hair) solid var(--color-rule); padding: var(--space-xl) var(--space-lg) var(--space-lg); max-width: min(440px, calc(100% - 32px)); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-lg); line-height: 1.5; }
.pop::backdrop { background: color-mix(in oklab, var(--color-paper) 70%, transparent); }
.pop-ctas { display: flex; gap: var(--space-xs); margin-top: var(--space-lg); flex-wrap: wrap; }
.pop-x { position: absolute; top: var(--space-xs); right: var(--space-xs); width: 44px; height: 44px; border: 0; background: none; color: var(--color-ink); font-size: var(--text-xl); cursor: pointer; }
.pop-x:hover { color: var(--color-accent-text); }
.pop-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

/* Scrollcraft mechanism rules (the engine stylesheet is not linked: it trips floors 56, 62 and 67) */
[data-sc-pan] { display: flex; }
.js [data-sc-in] { opacity: 0; transform: translate3d(0, 16px, 0); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js [data-sc-in].is-in, .js [data-sc-in].sc-in { opacity: 1; transform: none; }
.js [data-sc-in][data-sc-stagger] { opacity: 1; transform: none; }

/* phones and tablets: unpinned, stacked */
@media (max-width: 60rem) {
  .chrome { position: relative; }
  .pbar .container { flex-wrap: wrap; justify-content: center; text-align: center; padding-block: var(--space-xs); }
  .mast .container { grid-template-columns: auto auto; justify-content: space-between; }
  .mast-links { display: none; }
  .brand { font-size: 2rem; }
  [data-sc-act] { height: auto !important; }
  .sc-stage { position: relative; top: 0; height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-block: var(--space-lg) var(--space-2xl); }
  .scene { order: -1; height: min(78vw, 420px); overflow: clip; }
  .beat { display: none; }
  .hero h1 { font-size: 25cqi; }
  .rows li { grid-template-columns: minmax(0, 1fr) minmax(0, 7fr); }
  .rows li p { grid-column: 2; }
  .crew-grid, .house-grid, .pledge-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .house-photo { order: -1; }
  .say { padding-block: var(--section-gap-s); gap: var(--space-xl); }
  .rail-wrap { overflow-x: auto; scroll-snap-type: x mandatory; }
  .rail-wrap { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail { transform: none !important; padding-inline: 0; }
  .rail li { width: min(80vw, 340px); scroll-snap-align: start; }
}
@media (max-width: 40rem) {
  .trades { grid-template-columns: minmax(0, 1fr); }
  .mast-tel { font-size: var(--text-sm); }
  .pact { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  [data-sc-act] { height: auto !important; }
  .sc-stage { position: relative; top: 0; }
  .js [data-sc-in] { opacity: 1; transform: none; }
  .rail-wrap { overflow-x: auto; }
  .rail { transform: none !important; }
}
