/* Hallmark · shape: Bento Grid (swapped to Case File: a builder is hired on one job seen going up, so the page runs hero, the build, the word, the index, the papers, the close) · genre: editorial · theme: Grid (deal 2/3, seed 3lance-developments-lymington-builders-e49a·4eb7319f·2026-12-03·r0) · job: hire · draw: 9cea32
 * hero: Stage (swapped from Corridor: the material is photographic, so the head sits on paper and their own house fills a flat green field) · nav: edge-aligned bar, wordmark, four links, the phone as the action (swapped from banner over a retracting bar: the pinned build sticks under it) · footer: mast · imagery: photographs, all 3Lance’s own, in true colour · signature: the gable window, a roof-shaped frame from their logo that opens as you scroll and shows one job going from trusses to handover
 * scrollcraft: hero in three planes cut from their own photograph (sky, house, gravel) moving at three rates under the pointer, the build pinned with the gable opening · no generated imagery · engine js only, its two device rules live below
 * axes: light/grotesk-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 builder’s page argues little; it leads with Andy’s name, his own finished house and the paperwork behind him instead of promises */
/* Hallmark · answered F4 · the WhatsApp button lives only inside the afford dialog, its own sheet with one filled action */
/* Hallmark · waive 44c · the hero’s visual is a full-height green field holding their house, so it always runs taller than the head beside it · the field is the hero’s colour and depth */
/* Notes: Grid prints photographs as ink duotone; a builder is hired on how the finished work looks, so their own photographs run in true colour on flat fields, never framed, never under type. Grid’s ultramarine and Swiss red are retuned to 3Lance’s own logo: a New Forest green field and the lime of the logo line as the one mark. */
/* Hallmark · dismissed 63 · no dot-joined strings on the page; the pay label reads as a sentence */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --concept-h: 52px;
  --bar-h: 72px;
  --chrome: calc(var(--concept-h) + var(--bar-h));
  --color-field: oklch(37% 0.085 150);
  --color-field-2: oklch(31% 0.075 150);
  --color-field-ink: oklch(97.5% 0.005 90);
  --color-field-muted: oklch(85% 0.03 140);
  --color-mark: oklch(85% 0.19 128);
  --color-mark-ink: oklch(19% 0.022 266);
  --color-accent: var(--color-field);
  --color-focus: oklch(42% 0.11 150);
  --color-dj: oklch(19% 0.022 266);
  --color-dj-ink: oklch(94% 0.006 90);
  --color-dj-2: oklch(29% 0.022 266);
  --color-wa: oklch(62% 0.16 150);
  --color-wa-ink: oklch(19% 0.022 266);
  --color-scrim: oklch(19% 0.022 266 / 0.72);
}

/* the theme’s photographs, in true colour */
[data-slot] > img { filter: none; mix-blend-mode: normal; }
[data-slot]:has(> img)::before { content: none; }

.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-modal); background: var(--color-ink); color: var(--color-paper); padding: var(--space-xs) var(--space-md); }
.skip:focus-visible { top: var(--space-md); }

/* controls: square, flat, no stroke */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border: 0; border-radius: 0; font: 500 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), 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); color: var(--color-paper); }
.btn--primary:hover { background: var(--color-ink-2); }
.btn--secondary { min-height: 44px; padding: 0; background: none; color: var(--color-ink); text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; }
.btn--secondary:hover { color: var(--color-field); text-decoration-thickness: 2px; }
.btn--paper { background: var(--color-paper); color: var(--color-ink); }
.btn--paper:hover { background: var(--color-mark); }
.btn--line { min-height: 44px; padding: 0; background: none; color: var(--color-field-ink); text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; }
.btn--line:hover { color: var(--color-mark); }
.close .btn:focus-visible, .services .btn:focus-visible { outline-color: var(--color-field-ink); }
.btn--wa { background: var(--color-wa); color: var(--color-wa-ink); }
.btn--wa:hover { background: color-mix(in oklab, var(--color-wa) 85%, var(--color-paper)); }

/* the Djenius concept bar */
.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: 500; }
.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: 0; border-radius: 0; font: 500 var(--text-sm)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; color: var(--color-dj-ink); background: var(--color-dj-2); 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-mark); outline-offset: 2px; }
.pill--pay { background: var(--color-mark); color: var(--color-mark-ink); }
.pill--pay:hover { background: var(--color-paper); color: var(--color-ink); }
.short { display: none; }

/* the bar */
.bar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.bar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--bar-h); }
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); text-decoration: none; }
.mark__gable { width: 30px; height: 30px; flex: none; background: var(--color-mark); clip-path: polygon(50% 0, 100% 42%, 100% 100%, 0 100%, 0 42%); }
.mark__word { display: grid; font: 400 var(--text-md)/0.95 var(--font-display); letter-spacing: -0.01em; }
.mark__word b { font-weight: 700; font-size: var(--text-lg); }
.mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.bar nav ul { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.bar nav a, .bar__tel { display: inline-flex; align-items: center; min-height: 44px; font: 500 var(--text-sm)/1 var(--font-body); color: var(--color-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.bar nav a:hover { color: var(--color-field); text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; }
.bar nav a:focus-visible, .bar__tel:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.bar__tel { padding: 0 var(--space-md); background: var(--color-ink); color: var(--color-paper); font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.bar__tel:hover { background: var(--color-field); }

/* hero: the head on paper, their house on a flat green field that runs to the edge */
.hero { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(47%, 880px)); min-height: calc(100svh - var(--chrome)); padding-left: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))); }
.hero__text { display: grid; align-content: center; gap: var(--space-lg); padding-block: var(--space-2xl); padding-right: var(--space-3xl); }
.hero h1 { max-width: 11ch; font-size: clamp(3.25rem, 5.4vw + 0.25rem, 6.25rem); line-height: 0.94; letter-spacing: -0.045em; }
.hero .lead { max-width: 30ch; color: var(--color-ink-2); }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }
.hero__field { background: var(--color-field); color: var(--color-field-ink); display: grid; align-content: center; justify-items: start; gap: var(--space-md); padding: var(--space-xl) max(var(--gutter), var(--space-xl)) var(--space-xl) var(--space-xl); }
.hero__fig { display: flex; align-items: baseline; gap: var(--space-sm); font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-field-muted); }
.hero__fig .num { font: 700 var(--text-3xl)/1 var(--font-display); letter-spacing: -0.03em; color: var(--color-mark); }

/* hero depth: three planes cut from the one photograph. Aligned, they are the photograph */
.depth { position: relative; margin: 0; width: min(100%, calc(100svh - var(--chrome) - 9rem)); aspect-ratio: 1; overflow: clip; background: var(--color-field-2); --px: 0; --py: 0; }
.depth__plane { position: absolute; inset: 0; }
.depth__plane img { width: 100%; height: 100%; object-fit: cover; }
.depth__plane--plate img { transform: scale(1.12) translate(calc(var(--px) * -6px), calc(var(--py) * -6px)); }
.depth__plane--house img { transform: scale(1.04) translate(calc(var(--px) * -12px), calc(var(--py) * -8px)); }
.depth__plane--ground img { transform: scale(1.08) translate(calc(var(--px) * -24px), calc(var(--py) * -12px)); transform-origin: 50% 100%; }

/* scrollcraft devices: the pinned stage sticks under the bar, and every drift settles when motion is unwelcome */
.sc-act--pinned { position: relative; }
.sc-stage { position: sticky; top: var(--bar-h); height: calc(100vh - var(--bar-h)); height: calc(100svh - var(--bar-h)); overflow: clip; }
[data-sc-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) { [data-sc-parallax], .depth__plane img { transform: none !important; } }

/* the build: three stages, each in a gable from their logo */
.build { padding-block: var(--section-gap); }
.build__grid { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); align-items: start; }
.build__head { display: grid; gap: var(--space-md); }
.build__head .lead { color: var(--color-ink-2); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3xl); }
.step { display: grid; gap: var(--space-lg); align-content: start; }
.step .gable { order: -1; }
.step__txt { display: grid; gap: var(--space-xs); padding-bottom: var(--space-md); }
.step__txt p { color: var(--color-ink-2); max-width: 32ch; }
.gable { position: relative; aspect-ratio: 1; background: var(--color-paper-2); clip-path: polygon(50% 0, 100% 40%, 100% 100%, 0 100%, 0 40%); }
.gable img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.build__note { font-size: var(--text-sm); color: var(--color-muted); }

/* pinned: one gable on the right grows from the size of the logo to the whole column,
   and the three stages hand over inside it as the scroll runs */
.build--pin { padding-block: 0; }
.build--pin .build__stage { display: grid; align-content: center; background: var(--color-paper); }
.build--pin .build__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto auto 1fr auto; column-gap: var(--space-3xl); row-gap: 0; align-items: start; }
.build--pin .build__head { grid-column: 1; grid-row: 1; margin-bottom: var(--space-lg); }
.build--pin .steps, .build--pin .step { display: contents; }
.build--pin .step__txt { grid-column: 1; padding: var(--space-md) 0 var(--space-md) var(--space-lg); position: relative; opacity: calc(0.32 + 0.68 * var(--on)); transition: opacity var(--dur-short) var(--ease-out); }
.build--pin .step__txt::before { content: ""; position: absolute; left: 0; top: var(--space-md); bottom: var(--space-md); width: 4px; background: var(--color-mark); transform-origin: 50% 0; transform: scaleY(var(--on)); }
.build--pin .step--1 { --on: clamp(0, (0.36 - var(--sc-p, 1)) * 30, 1); }
.build--pin .step--2 { --on: min(clamp(0, (var(--sc-p, 0) - 0.36) * 30, 1), clamp(0, (0.68 - var(--sc-p, 1)) * 30, 1)); }
.build--pin .step--3 { --on: clamp(0, (var(--sc-p, 1) - 0.68) * 30, 1); }
.build--pin .step--1 .step__txt { grid-row: 2; }
.build--pin .step--2 .step__txt { grid-row: 3; }
.build--pin .step--3 .step__txt { grid-row: 4; }
.build--pin .build__note { grid-row: 6; }
.build--pin .gable { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: center; width: min(100%, calc(100svh - var(--bar-h) - 2 * var(--space-2xl)), 720px); transform-origin: 50% 100%; transform: scale(calc(0.34 + 0.66 * clamp(0, var(--sc-p, 1) / 0.3, 1))); }
.build--pin .step--2 .gable, .build--pin .step--3 .gable { background: none; }
.build--pin .step .gable img { opacity: var(--on); transition: opacity var(--dur-long) var(--ease-out); }
.build--pin .step--1 .gable { z-index: 1; }
.build--pin .step--2 .gable { z-index: 2; }
.build--pin .step--3 .gable { z-index: 3; }

/* the word: one sentence hung from column four, two more beneath */
.reviews { padding-block: var(--section-gap); background: var(--color-paper-2); }
.reviews .container { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); }
.statement { grid-column: 4 / -1; margin: 0; display: grid; gap: var(--space-lg); }
.statement blockquote { margin: 0; }
.statement blockquote p { max-width: 28ch; font: 400 clamp(2.25rem, 3.4vw + 0.5rem, 4.25rem)/1.04 var(--font-display); letter-spacing: -0.03em; color: var(--color-ink); text-wrap: balance; }
figcaption { font: 500 var(--text-sm)/1.4 var(--font-body); color: var(--color-muted); }
.quotes { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-3xl); }
.quotes figure { margin: 0; display: grid; gap: var(--space-sm); align-content: start; }
.quotes blockquote { margin: 0; }
.quotes blockquote p { font-size: var(--text-lg); line-height: 1.45; color: var(--color-ink); max-width: 36ch; }
.reviews .btn--secondary { grid-column: 4 / -1; justify-self: start; }

/* what we build: the index on the green field, the chosen trade in lime, its photograph beside */
.services { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--section-gap); --color-focus: var(--color-field-ink); }
.services__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-3xl); align-items: center; }
.services h2 { margin-bottom: var(--space-xl); }
.index { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); }
.index button { display: inline-flex; align-items: center; min-height: 52px; padding: 0; border: 0; background: none; color: var(--color-field-muted); font: 700 clamp(1.75rem, 2.6vw + 0.5rem, 3.25rem)/1.05 var(--font-display); letter-spacing: -0.035em; text-align: start; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.index button:hover { color: var(--color-field-ink); }
.index button[aria-pressed="true"] { color: var(--color-mark); }
.index button:active { opacity: 0.85; }
.index button:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 4px; }
.services__pic { margin: 0; display: grid; gap: var(--space-md); }
.frame { position: relative; aspect-ratio: 1; background: var(--color-field-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.services figcaption { color: var(--color-field-muted); font-size: var(--text-md); max-width: 40ch; }

/* the papers */
.papers { padding-block: var(--section-gap); }
.papers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-3xl); align-items: start; }
.rows { margin: 0; }
.rows div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-xs) var(--space-3xl); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows div:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.rows dt { font: 700 var(--text-lg)/1.25 var(--font-display); letter-spacing: -0.015em; }
.rows dd { margin: 0; color: var(--color-ink-2); }

/* the close: the green field, the numbers set large */
.close { background: var(--color-field); color: var(--color-field-ink); padding-block: var(--section-gap); --color-focus: var(--color-field-ink); }
.close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: var(--space-3xl); row-gap: var(--space-2xl); align-items: start; }
.close__main { display: grid; gap: var(--space-lg); }
.close h2 { font-size: clamp(2.75rem, 4.4vw + 0.5rem, 5.25rem); line-height: 0.98; letter-spacing: -0.04em; max-width: 12ch; }
.close .lead { color: var(--color-field-muted); max-width: 34ch; }
.close__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.close__lines { margin: 0; display: grid; gap: var(--space-lg); }
.close__lines div { display: grid; gap: var(--space-2xs); }
.close__lines dt { font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--color-field-muted); }
.close__lines dd { margin: 0; font: 700 var(--text-2xl)/1.2 var(--font-display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.close__lines dd:last-child { min-width: 0; }
.close__lines div:last-child dd { font: 400 var(--text-lg)/1.45 var(--font-body); letter-spacing: 0; max-width: 40ch; }
.close__lines a { color: var(--color-field-ink); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.close__lines a:hover { color: var(--color-mark); text-decoration: underline var(--rule-hair); text-underline-offset: 0.2em; }
.close__lines a:focus-visible { outline: 2px solid var(--color-field-ink); outline-offset: 2px; }
.close__lines a[href^="mailto"] { font-size: var(--text-xl); }

/* footer: the mast */
.mast { padding-block: var(--space-3xl) var(--space-2xl); background: var(--color-paper); }
.mast .container { display: grid; gap: var(--space-xl); }
.mast__word { display: flex; flex-wrap: wrap; gap: 0 0.25em; font: 400 clamp(3rem, 8vw, 8.5rem)/0.9 var(--font-display); letter-spacing: -0.05em; color: var(--color-ink); max-width: none; }
.mast__word b { font-weight: 700; }
.mast__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin: 0; padding: 0; list-style: none; }
.mast__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.mast__links a:hover { color: var(--color-field); text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; }
.mast__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.mast__legal { font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }

/* dialogs: flat sheets */
dialog { margin: auto; padding: 0; border: 0; 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); }
.x { position: absolute; top: var(--space-sm); right: var(--space-sm); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--color-ink); cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.x svg { width: 22px; height: 22px; }
.x:hover { color: var(--color-field); }
.x:active { opacity: 0.85; }
.x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; }

@media (max-width: 75rem) {
  .bar nav ul { gap: var(--space-lg); }
}
@media (max-width: 60rem) {
  .bar nav { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-left: 0; }
  .hero__text { padding: var(--space-2xl) var(--gutter) var(--space-xl); }
  .hero__field { padding: var(--space-lg) var(--gutter) var(--space-xl); }
  .depth { width: 100%; }
  .build__grid, .papers__grid, .services__grid, .close__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: var(--space-lg); }
  .reviews .container { grid-template-columns: minmax(0, 1fr); }
  .statement, .quotes, .reviews .btn--secondary { grid-column: 1; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@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); }
  .bar__tel { font-size: var(--text-sm); padding: 0 var(--space-sm); }
  .mark__word b { font-size: var(--text-md); }
  .step { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); column-gap: var(--space-md); }
  .steps { gap: var(--space-xl); }
  .rows div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .index button { font-size: 1.5rem; white-space: nowrap; }
  .close__lines dd { font-size: var(--text-xl); }
  .close__lines a[href^="mailto"] { font-size: var(--text-md); }
}
@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; }
  .bar__tel { font-size: var(--text-xs); }
  .mark__gable { width: 24px; height: 24px; }
}
