/* Hallmark · shape: Workshop sequence (custom split stage, then a pinned build sequence) · genre: editorial · theme: Garden (deal manual: dealt Brutal, Formwork, Vellum, Manifesto, Solstice, Broadside; Formwork and Broadside are taken by trade sites, Brutal, Formwork and Solstice carry hard shadows or boxed cells, Broadside prints photos colourless) · job: hire · draw: manual
 * hero: Split stage, headline in ink on oat paper, his kitchen photo cut into three depth planes bleeding off the right edge · nav: edge-aligned sticky bar, wordmark, three links, the number · footer: a plain mast with the place and the number · imagery: photographs, all his own · signature: the scroll fits the hero's kitchen from bare carcasses to finished room, from his own job photos
 * axes: light/roman-serif/chromatic-green · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a trade page argues little; it argues with his own photographs, the same kitchen shown going in */
/* Hallmark · waive 79 · the split hero centres the head in its paper column while his kitchen photo fills the whole stage beside it · the kitchen plate is the hero's mass, the paper side stays quiet so the headline reads */
/* Hallmark · answered F4 · the concept bar's secure link belongs to Djenius, not to the page; the page's one primary is the leaf call pill */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 64px;
  --bar-h: 56px;
  --plate-ratio: 4 / 3;
}

/* ---------- concept bar (Djenius) ---------- */
.pbar { background: var(--color-ink); color: var(--color-accent-ink); font-size: var(--text-sm); }
.pbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--bar-h); flex-wrap: wrap; padding-block: var(--space-2xs); }
.pbar a.u { color: var(--color-accent-2); }
.pact { display: flex; align-items: center; gap: var(--space-sm); }
.pbar .u:focus-visible, .secure:focus-visible, .afford:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: 2px; }
.secure { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-accent-2); color: var(--color-ink); font-weight: 500; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-short) var(--ease-out); }
.secure:hover { background: var(--color-accent-ink); }
.afford { background: none; border: 0; cursor: pointer; color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 0.16em; padding: 0 var(--space-xs); min-height: 44px; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.afford:hover { color: var(--color-accent-2); }
.afford:active { color: var(--color-accent-2); }
.secure:active { background: var(--color-paper-3); }
.thanks { display: none; }
.is-secured .thanks { display: block; }
.is-secured .pitch { display: none; }

/* ---------- popovers ---------- */
.pop { position: fixed; inset: auto; top: 50%; left: 50%; translate: -50% -50%; margin: 0; width: min(30rem, calc(100% - 2 * var(--space-md))); padding: var(--space-xl) var(--space-xl) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
.pop::backdrop { background: color-mix(in oklab, var(--color-ink) 45%, transparent); }
.pop p { font-size: var(--text-lead); line-height: 1.45; padding-right: var(--space-lg); }
.pop-ctas { display: flex; gap: var(--space-sm); 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; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font-size: var(--text-xl); line-height: 1; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.pop-x:hover { background: var(--color-paper-2); }
.pop-x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-rule-2); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { background: var(--color-paper-3); }
.btn--primary:active { background: var(--color-ink); border-color: var(--color-ink); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }
.on-ink .btn { color: var(--color-accent-ink); border-color: var(--color-accent-2); }
.on-ink .btn:hover { background: color-mix(in oklab, var(--color-accent-ink) 12%, transparent); }
a:hover { text-decoration-color: var(--color-accent); }
.link { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.16em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.16em; cursor: pointer; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link-btn:hover { text-decoration-color: var(--color-accent); }
.link-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--nav-h); }
.wordmark { font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: var(--tracking-display); color: var(--color-ink); text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.nav li a { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.nav li a:hover { color: var(--color-accent); }
.nav .tel { font-weight: 500; color: var(--color-ink); white-space: nowrap; }

/* ---------- hero: split stage ---------- */
.hero-act { position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; min-height: calc(100svh - var(--nav-h) - var(--bar-h)); }
.js .hero-act { height: 170svh; }
.js .hero { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h) - var(--bar-h)); min-height: 0; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; gap: var(--space-lg); padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); background: var(--color-paper); position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.75rem, 4.2vw + 1rem, 6rem); line-height: 1.02; max-width: 11ch; color: var(--color-ink); }
.hero .lead { color: var(--color-ink-2); max-width: 30ch; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.plate { position: relative; margin: 0; overflow: clip; background: var(--color-paper-3); border-left: var(--rule-hair) solid var(--color-rule); }
.plate .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 60%; will-change: transform; filter: contrast(1.06) saturate(0.94); }
.plate .far { transform: scale(calc(1.02 + var(--hp, 0) * 0.04)); transform-origin: 55% 45%; }
.plate .mid { transform: translate3d(0, calc(var(--hp, 0) * -1.5%), 0) scale(calc(1.02 + var(--hp, 0) * 0.1)); transform-origin: 50% 78%; }
.plate .near { transform: translate3d(0, calc(var(--hp, 0) * 3%), 0) scale(calc(1.02 + var(--hp, 0) * 0.26)); transform-origin: 62% 100%; }
.plate figcaption { position: absolute; left: var(--space-lg); bottom: var(--space-lg); z-index: 3; padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink-2); font: 400 var(--text-sm)/1.4 var(--font-outlier); }

/* ---------- figures ---------- */
.figures { padding-block: var(--section-gap-s); }
.figures ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: 0; padding: 0; list-style: none; }
.figures li { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-lg); }
.figure { display: block; font: 600 clamp(5rem, 9vw, 9.5rem)/0.9 var(--font-display); font-variant-numeric: oldstyle-nums proportional-nums; letter-spacing: var(--tracking-display); color: var(--color-ink); }
.figure--leaf { color: var(--color-accent); }
.figures p { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 30ch; }

/* ---------- the build: pinned sequence ---------- */
.build { background: var(--tint-moss); }
.build-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; padding-block: var(--space-2xl); }
.js .build-act .build-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); }
.build h2 { max-width: 14ch; }
.build .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.steps { margin: var(--space-xl) 0 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline; padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-muted); transition: color var(--dur-short) var(--ease-out); }
.steps li::before { counter-increment: step; content: counter(step); font: 600 var(--text-xl)/1 var(--font-display); font-variant-numeric: oldstyle-nums; }
.steps li span { font: 600 var(--text-title)/1.2 var(--font-display); }
.steps li.is-on { color: var(--color-ink); }
.steps li.is-on::before { color: var(--color-accent); }
.frames { position: relative; margin: 0; aspect-ratio: 3 / 4; max-height: calc(100svh - var(--nav-h) - 2 * var(--space-2xl)); justify-self: center; width: auto; height: 100%; border-radius: var(--radius-card); overflow: clip; background: var(--color-paper-3); }
.frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(0.94); }
.frames .k4 { object-position: 38% 50%; }
.js .frames .k2 { clip-path: inset(0 0 0 calc(100% - var(--w2, 0) * 100%)); }
.js .frames .k3 { clip-path: inset(0 0 0 calc(100% - var(--w3, 0) * 100%)); }
.js .frames .k4 { clip-path: inset(0 0 0 calc(100% - var(--w4, 0) * 100%)); }
.frames .edge { position: absolute; top: 0; bottom: 0; width: 3px; left: calc(100% - var(--we, 0) * 100%); background: var(--color-accent-2); z-index: 5; opacity: var(--wo, 0); }
.frames-cap { display: none; }

/* ---------- services ---------- */
.services { padding-block: var(--section-gap); }
.services .head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.services .head p { color: var(--color-ink-2); max-width: 44ch; }
.rows { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule-2); }
.rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.rows h3 { font-size: var(--text-title); }
.rows p { color: var(--color-ink-2); }

/* ---------- work ---------- */
.work { padding-block: var(--section-gap-s) var(--section-gap); }
.work h2 { margin-bottom: var(--space-2xl); }
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.work figure { margin: 0; }
.work .ph { overflow: clip; border-radius: var(--radius-card); outline: var(--rule-hair) solid var(--color-rule); outline-offset: -1px; background: var(--color-paper-3); }
.work .ph img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(0.94); }
.work figcaption { margin-top: var(--space-sm); font: 400 var(--text-sm)/1.4 var(--font-outlier); color: var(--color-muted); }
.w-alcove { grid-column: 1 / span 5; grid-row: span 2; }
.w-alcove .ph { aspect-ratio: 3 / 4; }
.w-doors { grid-column: 6 / span 7; }
.w-doors .ph { aspect-ratio: 4 / 3; }
.w-wardrobe { grid-column: 6 / span 3; }
.w-wardrobe .ph { aspect-ratio: 3 / 4; }
.w-wardrobe img { object-position: 40% 50%; }
.w-office { grid-column: 9 / span 4; }
.w-office .ph { aspect-ratio: 3 / 4; }
.w-office img { object-position: 60% 50%; }

/* ---------- reviews ---------- */
.reviews { background: var(--color-ink); color: var(--color-accent-ink); padding-block: var(--section-gap); }
.reviews h2 { color: var(--color-accent-ink); }
.rating { display: flex; align-items: baseline; gap: var(--space-md); margin-top: var(--space-md); color: var(--color-accent-2); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-2xl) 0 0; padding: 0; list-style: none; }
.quotes li { border-top: var(--rule-hair) solid var(--color-accent-2); padding-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.quotes blockquote { margin: 0; font: 600 var(--text-title)/1.3 var(--font-display); color: var(--color-accent-ink); }
.quotes p { font-size: var(--text-sm); color: var(--color-accent-2); }
.reviews .link-btn { color: var(--color-accent-ink); margin-top: var(--space-xl); }
.reviews .link-btn:focus-visible { outline-color: var(--color-accent-2); }

/* ---------- close ---------- */
.close { padding-block: var(--section-gap); }
.close-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.close .ph { margin: 0; aspect-ratio: 1; overflow: clip; border-radius: var(--radius-card); background: var(--color-paper-3); }
.close .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: contrast(1.06) saturate(0.94); }
.close h2 { max-width: 14ch; }
.close .lead { margin-top: var(--space-md); color: var(--color-ink-2); }
.close dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); margin: var(--space-xl) 0 0; padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.close dt { color: var(--color-muted); font-size: var(--text-sm); }
.close dd { margin: 0; }

/* ---------- footer ---------- */
.foot { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--space-2xl) var(--space-xl); font-size: var(--text-sm); color: var(--color-ink-2); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-lg); align-items: flex-end; }
.foot .wordmark { display: block; margin-bottom: var(--space-xs); }

/* ---------- reveals (scrollcraft mechanism rules, scoped under .js) ---------- */
.js [data-sc-in] { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js [data-sc-in].sc-in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 60rem) {
  :root { --nav-h: 56px; }
  .nav ul { display: none; }
  .js .hero-act { height: auto !important; }
  .hero, .js .hero { position: relative; top: auto; height: auto; grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding: var(--space-xl) var(--gutter) var(--space-xl); }
  .hero h1 { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .plate { aspect-ratio: 4 / 3; border-left: 0; }
  .figures ul { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .figure { font-size: clamp(4rem, 18vw, 6rem); }
  .js .build-act { height: auto !important; }
  .build-stage, .js .build-act .build-stage { position: relative; top: auto; height: auto; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-block: var(--section-gap-s); }
  .frames { width: 100%; height: auto; max-height: none; aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); overflow: visible; background: none; }
  .frames img { position: relative; inset: auto; aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius-card); }
  .js .frames .k2, .js .frames .k3, .js .frames .k4 { clip-path: none; }
  .frames .edge { display: none; }
  .steps li, .steps li.is-on::before { color: var(--color-ink); }
  .services .head, .rows li, .close-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .close-grid { gap: var(--space-xl); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-alcove, .w-doors { grid-column: 1 / -1; grid-row: auto; }
  .w-wardrobe { grid-column: 1; }
  .w-office { grid-column: 2; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .pbar .container { justify-content: center; text-align: center; }
  .nav .tel { font-size: var(--text-sm); }
  .wordmark { font-size: var(--text-lg); }
}
@media (prefers-reduced-motion: reduce) and (min-width: 60.0625rem) {
  .frames { max-width: 34rem; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-act, .js .build-act { height: auto !important; }
  .js .hero, .js .build-act .build-stage { position: relative; top: auto; }
  .plate .layer { transform: none !important; }
  .frames { width: 100%; height: auto; max-height: none; aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); overflow: visible; background: none; }
  .frames img { position: relative; inset: auto; aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius-card); }
  .js .frames .k2, .js .frames .k3, .js .frames .k4 { clip-path: none; }
  .frames .edge { display: none; }
  .js [data-sc-in] { opacity: 1; transform: none; }
}
