/* Hallmark · shape: Photographic (Steps first, no grid, no figures band, per draw) · genre: playful · theme: Werkstatt (manual: dealt Ink, Blueprint, Formwork; Blueprint and Formwork already carry two sibling builder sites and Ink reads colourless against Adil's colour rule) · job: hire · draw: 30774b
 * hero: Poster on an ultramarine field, the head on the calm left, a Berkhamsted terrace cut from its sky standing in a putty frame with its roofs and chimneys above the frame line · nav: bar (swapped from banner over a retracting bar: a builder is called, so the number stays put) · footer: colophon block · imagery: photographs, stand-ins in colour until KLB's own · signature: the terrace standing out of its frame while the headline sinks behind its roofs, then fifteen years filling in yellow from 2026 to 2041 · werkstatt: putty, flat (1px and 2px rules only, no shadows, no raised surfaces), photographs in colour by the studio's colour rule
 * scrollcraft: hero in three planes (field and headline, the frame, the terrace with the guarantee tag in front), each on its own rate; the guarantee pinned while the years fill · engine js only, its few device rules below
 * axes: mid/geometric-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, a sole trader's page has little to argue, so it leads with the one promise he writes himself (fifteen years) and shows it as time */
/* Hallmark · answered F4 · the WhatsApp and Instagram buttons live only inside the price dialog, its own page with one filled action */
/* Hallmark · dismissed 23 · the ultramarine field is the declared full-palette posture: the hero and the guarantee are the page's two blue fields, as Werkstatt's blue colourway allows */
/* Hallmark · waive 42 · bar nav: wordmark, three links and the phone · a builder is called, so the number sits where the hand goes */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --concept-h: 52px;
  --bar-h: 72px;
  --callbar-h: 64px;
  --color-dj: oklch(18% 0.008 60);
  --color-dj-ink: oklch(92% 0.015 82);
  --color-wa: oklch(62% 0.16 150);
  --color-wa-ink: oklch(18% 0.008 60);
  --color-scrim: oklch(18% 0.008 60 / 0.72);
  --color-frame: oklch(89.5% 0.018 84);
}

h1, h2, h3 { text-transform: uppercase; }
.lead { color: var(--color-ink-2); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-tooltip); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* controls: flat, square, two-pixel rules */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-bar) solid currentColor; border-radius: 0; font: 600 var(--text-sm)/1 var(--font-body); text-transform: uppercase; text-decoration: none; white-space: nowrap; color: inherit; background: 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); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.btn:active { opacity: 0.85; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.btn--line:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.btn--light { background: var(--color-accent-ink); border-color: var(--color-accent-ink); color: var(--color-ink); }
.btn--light:hover { background: var(--color-accent-3); border-color: var(--color-accent-3); }

/* the concept strip */
.concept { background: var(--color-dj); color: var(--color-dj-ink); font-size: var(--text-sm); }
.concept .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); min-height: var(--concept-h); padding-block: var(--space-2xs); }
.concept b { font-weight: 600; }
.concept__acts { display: flex; gap: var(--space-xs); flex: none; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-dj-ink); border-radius: 0; font: 600 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; color: var(--color-dj-ink); background: transparent; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.pill:hover { background: var(--color-dj-ink); color: var(--color-dj); }
.pill:active { opacity: 0.85; }
.pill:focus-visible { outline: 2px solid var(--color-accent-3); outline-offset: 2px; }
.pill--pay { background: var(--color-accent-3); border-color: var(--color-accent-3); color: var(--color-ink); }
.pill--pay:hover { background: var(--color-dj-ink); border-color: var(--color-dj-ink); color: var(--color-ink); }
.short { display: none; }

/* the bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-ink); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: calc(var(--bar-h) - var(--rule-bar)); }
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; color: var(--color-ink); }
.mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.mark__blocks { width: 26px; height: 26px; }
.mark__blocks .b1 { fill: var(--color-accent); } .mark__blocks .b2 { fill: var(--color-accent-2-deep); } .mark__blocks .b3 { fill: var(--color-accent-3); }
.mark__word { font: 700 var(--text-xl)/1 var(--font-display); text-transform: uppercase; letter-spacing: var(--tracking-display); }
.bar nav ul { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.bar nav a { font-weight: 600; text-decoration: none; padding-block: var(--space-xs); border-bottom: var(--rule-bar) solid transparent; transition: border-color var(--dur-short) var(--ease-out); }
.bar nav a:hover { border-bottom-color: var(--color-ink); }
.bar nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.btn--bar { min-height: 44px; }

/* hero: an ultramarine field, the terrace standing out of its frame */
.hero { position: relative; overflow: clip; isolation: isolate; background: var(--color-accent); color: var(--color-accent-ink); height: calc(100svh - var(--concept-h) - var(--bar-h)); min-height: 600px; max-height: 1000px; }
.hero__in { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-start; padding-top: clamp(var(--space-xl), 7vh, var(--space-3xl)); }
.hero__text { max-width: min(46%, 40rem); }
.hero h1 { color: var(--color-accent-ink); font-size: clamp(2.75rem, 4.6vw + 0.5rem, 5.5rem); line-height: 1; max-width: 12ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-accent-ink); max-width: 30ch; }
.hero__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero .btn--line { color: var(--color-accent-ink); }
.hero .btn--line:hover { background: var(--color-accent-ink); border-color: var(--color-accent-ink); color: var(--color-accent); }

.scene { position: absolute; right: 0; bottom: 0; height: 90%; aspect-ratio: 752 / 760; z-index: 3; pointer-events: none; }
.scene__frame { position: absolute; left: calc(-1 * var(--space-xl)); right: 0; bottom: 0; height: 69.5%; background: var(--color-frame); z-index: 1; }
.scene__houses { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; z-index: 2; transform-origin: 50% 100%; }
.scene__tag { position: absolute; z-index: 3; left: calc(-1 * var(--space-2xl)); bottom: var(--space-2xl); display: grid; gap: var(--space-2xs); padding: var(--space-md) var(--space-lg); background: var(--color-accent-3); color: var(--color-ink); pointer-events: auto; }
.scene__tag b { font: 700 var(--text-xl)/1 var(--font-display); text-transform: uppercase; }
.scene__tag span { font-size: var(--text-sm); font-weight: 600; }

/* the planes move at their own rates as the hero scrolls away */
@media (prefers-reduced-motion: no-preference) and (min-width: 60.001rem) {
  .js .hero__text { transform: translate3d(0, calc((var(--sc-p, 0.5) - 0.5) * 2 * 260px), 0); }
  .js .scene__houses { transform: scale(calc(1 + (var(--sc-p, 0.5) - 0.5) * 0.14)); }
  .js .scene__tag { transform: translate3d(0, calc((var(--sc-p, 0.5) - 0.5) * 2 * -140px), 0); }
}

/* focus rings on the coloured fields */
.hero :focus-visible, .guarantee :focus-visible, .contact :focus-visible, .concept :focus-visible { outline-color: var(--color-accent-3); }

/* sections */
.section { padding-block: var(--section-gap) 0; }
.section h2 { margin-bottom: var(--space-2xl); }

/* steps: a ruled schedule */
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-ink); }
.steps__list li { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; }
.steps__list li + li { padding-left: var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.steps__n { font: 700 clamp(3.5rem, 5vw, 5.5rem)/0.9 var(--font-display); font-variant-numeric: tabular-nums; }
.steps__list p { color: var(--color-ink-2); }

/* trades: each a coded row */
.trade { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); column-gap: var(--gap-columns); align-items: stretch; border-top: var(--rule-bar) solid var(--color-ink); padding-block: var(--space-lg); }
.trade:last-child { border-bottom: var(--rule-bar) solid var(--color-ink); }
.trade__name { display: flex; align-items: flex-end; padding: var(--space-lg); min-height: 220px; font-size: clamp(1.75rem, 1.6vw + 0.75rem, 2.75rem); line-height: 1; max-width: none; }
.trade--blue .trade__name { background: var(--color-accent); color: var(--color-accent-ink); }
.trade--red .trade__name { background: var(--color-accent-2-deep); color: var(--color-accent-ink); }
.trade--yellow .trade__name { background: var(--color-accent-3); color: var(--color-ink); }
.trade__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: center; }
.trade__list li { padding-block: var(--space-sm); font-size: var(--text-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.trade__list li:last-child { border-bottom: 0; }
.trade__photo { aspect-ratio: 4 / 3; min-height: 220px; }
[data-slot] > img { filter: none; }

/* the guarantee: pinned, the years fill */
.guarantee-act { margin-top: var(--section-gap); }
.guarantee { background: var(--color-accent); color: var(--color-accent-ink); padding-block: var(--section-gap-s); }
.guarantee h2 { color: var(--color-accent-ink); font-size: var(--text-display); max-width: 14ch; line-height: 1; }
.guarantee .lead { margin-top: var(--space-lg); color: var(--color-accent-ink); }
.years { margin-top: var(--space-2xl); }
.years__track { height: 40px; border: var(--rule-bar) solid var(--color-accent-ink); overflow: clip; }
.years__fill { height: 100%; background: var(--color-accent-3); transform-origin: 0 50%; }
.years__ticks { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.years__ticks li { position: relative; padding-top: var(--space-sm); font: 700 var(--text-lg)/1 var(--font-display); font-variant-numeric: tabular-nums; border-left: var(--rule-hair) solid var(--color-accent-ink); min-height: 32px; padding-left: var(--space-2xs); }
.years__ticks li:last-child { border-left: 0; border-right: var(--rule-hair) solid var(--color-accent-ink); text-align: right; padding-right: var(--space-2xs); }
.js .is-pinned .years__fill { transform: scaleX(clamp(0.02, var(--sc-p, 1) * 1.25, 1)); }

/* Scrollcraft device rules (engine stylesheet not linked) */
.js .is-pinned { position: relative; }
.js .is-pinned .sc-stage { position: sticky; top: var(--bar-h); height: calc(100svh - var(--bar-h)); overflow: clip; display: grid; align-content: center; }

/* reviews */
.reviews__head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.reviews__head h2 { margin: 0; max-width: 16ch; }
.quotes { border-top: var(--rule-bar) solid var(--color-ink); }
.quotes figure { margin: 0; display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); column-gap: var(--gap-columns); align-items: end; padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.quotes blockquote { margin: 0; font: 700 var(--text-display-s)/1.02 var(--font-display); text-transform: uppercase; }
.quotes blockquote p { max-width: 28ch; }
.quotes figcaption { font-size: var(--text-sm); font-weight: 600; color: var(--color-muted); }

/* contact: the ink band */
.contact { margin-top: var(--section-gap); background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap-s); }
.contact__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-3xl); align-items: center; }
.contact h2 { color: var(--color-paper); }
.contact__tel { display: inline-block; white-space: nowrap; margin-block: var(--space-sm) var(--space-lg); font: 700 clamp(2rem, 5vw, 4.75rem)/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--color-accent-3); text-decoration: none; }
.contact__tel:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.contact__tel:focus-visible { outline: 2px solid var(--color-accent-3); outline-offset: 4px; }
.contact p { color: var(--color-paper-3); max-width: 44ch; }
.sheet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--rule-bar) solid var(--color-paper); }
.sheet__cell { display: grid; gap: var(--space-2xs); padding: var(--space-sm) var(--space-md); border-bottom: var(--rule-hair) solid var(--color-muted); }
.sheet__cell:nth-child(1) { border-right: var(--rule-hair) solid var(--color-muted); }
.sheet__cell--wide { grid-column: 1 / -1; }
.sheet__cell span { font-size: var(--text-sm); font-weight: 600; color: var(--color-paper-3); }
.sheet input { min-height: 44px; padding: 0 var(--space-2xs); border: 0; border-bottom: 1px solid var(--color-paper-3); background: transparent; color: var(--color-paper); font-size: var(--text-lg); caret-color: var(--color-accent-3); }
.sheet input:focus-visible { outline: 2px solid var(--color-accent-3); outline-offset: 4px; }
.sheet input:hover { background: var(--color-ink-2); }
.sheet input:user-invalid { box-shadow: inset 0 -2px 0 var(--color-error); }
.sheet__go { grid-column: 1 / -1; min-height: 52px; border: 0; }
.sheet__go:focus-visible { outline: 2px solid var(--color-accent-3); outline-offset: -4px; }

/* colophon */
.colophon { padding-block: var(--space-3xl); border-top: var(--rule-bar) solid var(--color-ink); }
.colophon__word { font: 700 var(--text-section)/1 var(--font-display); text-transform: uppercase; margin-bottom: var(--space-lg); }
.colophon p:not(.colophon__word) { max-width: 72ch; color: var(--color-ink-2); }
.colophon a { text-decoration-thickness: 2px; }
.colophon a:hover { text-decoration-thickness: 3px; }

.callbar { display: none; }

/* dialogs */
dialog { margin: auto; padding: 0; border: var(--rule-bar) solid var(--color-ink); border-radius: 0; width: min(480px, calc(100% - var(--space-xl))); background: var(--color-paper); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim); }
.dlg { position: relative; padding: var(--space-xl); display: grid; gap: var(--space-md); }
.dlg h2 { font-size: var(--text-2xl); max-width: 16ch; padding-right: var(--space-xl); }
.dlg p { color: var(--color-ink-2); }
.dlg__acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.btn--wa { border-color: var(--color-wa); background: var(--color-wa); color: var(--color-wa-ink); }
.btn--wa:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--color-ink); cursor: pointer; }
.x svg { width: 22px; height: 22px; }
.x:hover { background: var(--color-paper-2); }
.x:active { background: var(--color-paper-3); }
.x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }

/* under 60rem: the field stacks over the terrace, nothing pins */
@media (max-width: 60rem) {
  .bar nav { display: none; }
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero__in { height: auto; padding-block: var(--space-xl) var(--space-lg); }
  .hero__text { max-width: none; }
  .scene { position: relative; width: 100%; height: auto; margin-top: var(--space-xl); }
  .scene__tag { left: var(--gutter); bottom: var(--space-lg); }
  .steps__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps__list li:nth-child(n + 3) { border-top: var(--rule-hair) solid var(--color-rule); }
  .trade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: var(--space-lg); }
  .trade__name { grid-column: 1 / -1; min-height: 140px; }
  .guarantee-act { margin-top: var(--section-gap); }
  .quotes figure { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-md); }
  .scene__tag { padding: var(--space-sm) var(--space-md); }
  .scene__tag b { font-size: var(--text-lg); }
  .contact__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); }
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xs); padding: var(--space-xs) var(--gutter); background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-ink); }
  body { padding-bottom: var(--callbar-h); }
}
@media (max-width: 40rem) {
  .long { display: none; } .short { display: inline; }
  .concept .container { padding-inline: var(--space-sm); }
  .pill { padding: 0 var(--space-sm); font-size: var(--text-xs); }
  .mark__word { font-size: var(--text-lg); }
  .btn--bar { display: none; }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .steps__list li, .steps__list li + li { padding-left: 0; border-left: 0; }
  .steps__list li + li { border-top: var(--rule-hair) solid var(--color-rule); }
  .trade { grid-template-columns: minmax(0, 1fr); }
  .reviews__head { flex-direction: column; align-items: start; }
  .quotes blockquote { font-size: var(--text-2xl); }
  .scene__frame { left: 0; }
  .years__ticks li { font-size: var(--text-xs); }
  .years__ticks span { display: none; }
  .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet__cell:nth-child(1) { border-right: 0; }
}
@media (max-width: 26rem) {
  .concept .container { flex-wrap: wrap; justify-content: center; padding-block: var(--space-xs); row-gap: var(--space-2xs); }
  .concept__text { flex-basis: 100%; text-align: center; }
  .concept__acts { flex: 1; }
  .concept__acts .pill { flex: 1; justify-content: center; }
}
