/* Hallmark · shape: job sheet (swap from Conversational FAQ, taken by two sibling builds) · genre: editorial · theme: Hedgerow (deal 2/3, seed lsl-fencing-landscaping-stratford-upon-avon-21b2·d303aca9·2026-12-03·r1) · job: hire · draw: 9769fa
 * hero: Stage split (swap from Corridor: the gate photo pair is the material) · nav: edge-aligned, mark, three links, the phone as the action · footer: statement · imagery: photographs, the owner's own · signature: the drive gates shut as you scroll · hedgerow: hedge
 * axes: dark/high-contrast-serif/chromatic-green · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the work rail is the only picture-led run, so the cream statement and the reviews carry the rest without photographs */
/* Hallmark · waive 44c · the gate photo and its caption run to 830px on a 900px screen · the hero is a sticky stage inside a 180svh scroll act where the drive gates shut */
/* Hallmark · waive 79 · the copy column sits beside the taller gate photo · the space under the buttons is the gate photo's height, centred in the pinned stage */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --chrome: 136px;
  --stick: 68px;
  --color-scrim: color-mix(in oklab, var(--color-paper-2) 78%, transparent);
  --color-line: color-mix(in oklab, var(--color-ink) 8%, transparent);
}

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; border: 1.5px solid var(--color-accent); border-radius: var(--radius-pill); padding: var(--space-sm) var(--space-lg); font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; 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--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn--primary:active { background: var(--color-accent); }
.btn--secondary { background: transparent; color: var(--color-accent); }
.btn--secondary:hover { background: color-mix(in oklab, var(--color-accent) 12%, transparent); }
.btn--secondary:active { background: color-mix(in oklab, var(--color-accent) 20%, transparent); }
.btn:focus-visible, .link-btn:focus-visible, a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--s { min-height: 44px; padding: var(--space-xs) var(--space-md); font-size: var(--text-xs); }
.pair { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: var(--color-ink); font-size: var(--text-md); font-weight: 500; text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.2em; cursor: pointer; transition: text-decoration-thickness var(--dur-short) var(--ease-out); }
.link-btn:hover { text-decoration-thickness: 2px; }
a { text-decoration-color: var(--color-accent); }

/* concept bar (Djenius) */
.concept { background: var(--color-paper-3); color: var(--color-ink); font-size: var(--text-sm); }
.concept .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 56px; padding-block: var(--space-xs); }
.concept .acts { display: flex; gap: var(--space-xs); }
.concept .short { display: none; }

/* nav */
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.mark img { width: 156px; height: auto; }
.nav nav { display: flex; gap: var(--space-xl); font-size: var(--text-sm); font-weight: 500; }
.nav nav a { text-decoration: none; color: var(--color-ink-2); transition: color var(--dur-short) var(--ease-out); }
.nav nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.nav-call { font-weight: 700; font-size: var(--text-md); color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); font-variant-numeric: tabular-nums; }

/* hero: the drive gates shut as you scroll */
.hero-act { --g: 0; position: relative; }
.hero { padding-block: var(--space-sm); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero-copy { display: grid; gap: var(--space-lg); }
.hero h1 { font-size: clamp(2.75rem, 4.2vw + 0.75rem, 4.75rem); max-width: 11ch; line-height: 1.04; }
.hero .lead { color: var(--color-ink-2); max-width: 34ch; }
.hero .pair { margin-top: var(--space-xs); }
.gate { margin: 0; display: grid; gap: var(--space-sm); }
.gate-frame { position: relative; aspect-ratio: 1352 / 1108; overflow: hidden; container-type: inline-size; outline: var(--rule-hair) solid var(--color-line); outline-offset: -1px; max-height: calc(100svh - var(--chrome) - 72px); width: auto; }
.gate-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate-open { filter: saturate(0.94) contrast(1.06); }
.leaf { position: absolute; inset: 0; }
.leaf img { filter: saturate(0.94) contrast(1.06); }
.js .leaf--l { clip-path: inset(0 calc(100% - var(--g) * 50%) 0 0); }
.js .leaf--r { clip-path: inset(0 0 0 calc(100% - var(--g) * 50%)); }
.no-leaf .leaf, html:not(.js) .leaf { display: none; }
.gate-frame::before, .gate-frame::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--color-accent); z-index: 2; opacity: calc(min(var(--g) * 14, (1 - var(--g)) * 14)); pointer-events: none; }
.hero-act .gate-frame::before { left: 0; transform: translateX(calc(var(--g) * 50cqi)); }
.hero-act .gate-frame::after { right: 0; transform: translateX(calc(var(--g) * -50cqi)); }
html:not(.js) .gate-frame::before, html:not(.js) .gate-frame::after { display: none; }
.gate figcaption { font-size: var(--text-sm); color: var(--color-muted); }

@media (min-width: 60.001rem) {
  .js .hero-act { height: 180svh; }
  .js .hero { position: sticky; top: var(--stick); min-height: calc(100svh - var(--chrome)); display: grid; align-items: center; }
  .js .hero-copy { transform: translateY(calc(var(--g) * -18px)); }
  .js .gate-open, .js .leaf img { transform: scale(calc(1.05 - var(--g) * 0.05)); }
  .hero { min-height: calc(100svh - var(--chrome)); display: grid; align-items: center; }
}

/* what he builds */
.builds { padding-block: var(--section-gap-s) var(--section-gap); }
.builds-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns) var(--space-3xl); align-items: start; }
.builds h2 { max-width: 14ch; }
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--color-accent); }
.index > li { display: grid; gap: var(--space-2xs); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.index h3 { font-size: var(--text-2xl); max-width: none; }
.index p { color: var(--color-ink-2); }

/* one job opened */
.case { background: var(--color-paper-2); padding-block: var(--section-gap); }
.case-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.case-photo { margin: 0; display: grid; gap: var(--space-sm); }
.case-photo .frame { aspect-ratio: 4 / 3; overflow: hidden; outline: var(--rule-hair) solid var(--color-line); outline-offset: -1px; }
.case-photo img { width: 100%; height: 112%; object-fit: cover; margin-top: -6%; }
.case-photo figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.case-copy { display: grid; gap: var(--space-xl); }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--color-accent); }
.steps li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); }
.steps .when { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); padding-top: var(--space-3xs); }
.pull { margin: 0; display: grid; gap: var(--space-sm); }
.pull p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; color: var(--color-ink); max-width: 30ch; }
.pull footer, .quotes footer { font-size: var(--text-sm); color: var(--color-muted); }

/* reviews */
.reviews { padding-block: var(--section-gap); }
.score { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-2xl); }
.figure { display: flex; align-items: baseline; gap: var(--space-md); margin: 0; }
.figure .big { font-family: var(--font-display); font-size: clamp(4rem, 7vw, 7rem); line-height: 0.9; color: var(--color-accent); font-variant-numeric: lining-nums tabular-nums; }
.figure .of { font-size: var(--text-sm); color: var(--color-muted); max-width: 14ch; }
.quotes { list-style: none; margin: 0 0 var(--space-xl); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); }
.quotes li { border-top: var(--rule-hair) solid var(--color-muted); padding-top: var(--space-lg); }
.quotes blockquote { margin: 0; display: grid; gap: var(--space-md); }
.quotes p { font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink); }

/* recent work rail */
.work { background: var(--color-paper-2); }
.work-stage { display: flex; flex-direction: column; justify-content: center; gap: var(--space-xl); padding-block: var(--space-3xl); overflow: clip; }
.rail { list-style: none; margin: 0; padding: 0 var(--gutter); display: flex; gap: var(--gap-columns); will-change: transform; }
.rail li { flex: 0 0 auto; width: clamp(18rem, 30vw, 30rem); display: grid; gap: var(--space-sm); }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: var(--rule-hair) solid var(--color-line); outline-offset: -1px; filter: saturate(0.94) contrast(1.06); }
.rail p { font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 60.001rem) {
  .js .work-stage { position: sticky; top: 0; height: 100svh; }
  .work-head { max-width: var(--container); }
}

/* the owner's word, on cream */
.word { background: var(--color-ink); color: var(--color-paper); padding-block: var(--section-gap); --color-rule: color-mix(in oklab, var(--color-paper) 22%, var(--color-ink)); }
.statement { font-size: var(--text-display-s); max-width: 22ch; color: var(--color-paper); line-height: 1.12; }
.sig { margin-top: var(--space-lg); font-weight: 500; color: var(--color-accent-deep); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-2xl) 0 0; border-top: var(--rule-hair) solid var(--color-rule); }
.figures > div { padding: var(--space-lg) var(--space-lg) 0 0; border-right: var(--rule-hair) solid var(--color-rule); display: flex; flex-direction: column-reverse; gap: var(--space-xs); }
.figures > div + div { padding-left: var(--space-lg); }
.figures > div:last-child { border-right: 0; }
.figures dt { font-size: var(--text-sm); color: var(--color-accent-ink); }
.figures dd { margin: 0; font-variant-numeric: lining-nums tabular-nums; font-family: var(--font-display); font-size: var(--text-3xl); color: var(--color-accent-deep); line-height: 1.1; }

/* close */
.close { padding-block: var(--section-gap); }
.close-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.close-copy { display: grid; gap: var(--space-lg); justify-items: start; }
.close-photo { margin: 0; display: grid; gap: var(--space-sm); }
.close-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: var(--rule-hair) solid var(--color-line); outline-offset: -1px; filter: saturate(0.94) contrast(1.06); }
.close-photo figcaption { font-size: var(--text-sm); color: var(--color-muted); }
.close .lead { color: var(--color-ink-2); max-width: 36ch; }
.phone { font-family: var(--font-display); font-size: clamp(2.5rem, 4.5vw, 4.5rem); line-height: 1; color: var(--color-ink); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; border-bottom: 1.5px solid var(--color-accent); transition: color var(--dur-short) var(--ease-out); }
.phone:hover { color: var(--color-accent-2); }
.where { font-size: var(--text-sm); color: var(--color-muted); }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-muted); padding-block: var(--space-3xl) var(--space-2xl); }
.foot-word { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1; color: var(--color-ink); max-width: 16ch; }
.foot-line { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.dj { margin-top: var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
.dj h3 { font-size: var(--text-2xl); }
.dj p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 52ch; }
.dj .pair { justify-content: flex-end; }

/* dialogs */
dialog { width: min(480px, calc(100% - 2 * var(--space-md))); padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim); }
.dlg { display: grid; gap: var(--space-lg); padding: var(--space-xl); }
.dlg h3 { font-size: var(--text-2xl); }
.dlg p { color: var(--color-ink-2); }
.pair--stack { flex-direction: column; }
.pair--stack .btn { width: 100%; }

/* scrollcraft mechanism rules, ported (scrollcraft.css is not linked) */
.js [data-sc-stagger] > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out); }
.js [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }
[data-sc-parallax] { will-change: transform; }

@media (max-width: 60rem) {
  :root { --chrome: 120px; }
  .concept .long { display: none; } .concept .short { display: inline; }
  .nav nav { display: none; }
  .hero-grid, .builds-grid, .case-grid, .close-grid, .dj { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero { padding-block: var(--space-md) var(--space-2xl); }
  .gate-frame { max-height: none; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures > div, .figures > div + div { padding: var(--space-md) 0; border-right: 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
  .dj .pair { justify-content: flex-start; }
  .work { height: auto !important; }
  .rail { overflow-x: auto; scroll-snap-type: x proximity; transform: none !important; padding-bottom: var(--space-sm); }
  .rail li { width: 78vw; scroll-snap-align: start; }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 40rem) {
  .concept .container { flex-direction: column; align-items: stretch; gap: var(--space-xs); }
  .concept .acts .btn { flex: 1; }
  .mark img { width: 104px; }
  .score { margin-bottom: var(--space-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-sc-stagger] > * { opacity: 1; transform: none; }
  [data-sc-parallax], .rail { transform: none !important; }
  [data-sc-reveal] { clip-path: none !important; }
  .js .hero-copy, .js .gate-open, .js .leaf img { transform: none; }
  .work { height: auto !important; }
  .js .work-stage { position: static; height: auto; }
  .rail { overflow-x: auto; }
}
