/* Hallmark · shape: Catalogue · genre: editorial · theme: Grid (deal 3/3, seed spec-jim-bicknell-carpentry-1c25·c1970efe·2026-12-03·r0) · job: hire · draw: ec2346
 * hero: Ledge · nav: edge-aligned · footer: colophon over the secure panel · imagery: photographs · signature: Jim's own glazed front door; his rooms pass behind its panes as you scroll
 * axes: light/grotesk-sans/cool · posture: full-palette · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R1 V2 · weakest: R, the reviews are titles only, so they sit on the red field at statement size with the job and postcode instead of a long quote */
/* waive 83-photo-treatment: Adil's standing rule (3 Dec) keeps spec sites colourful; the oak is the product, so photographs stay in colour instead of the theme's duotone */
/* waive no-scroll-motion (theme): Adil asked for Scrollcraft on every spec site; the one scroll move is the hero door, transform only, off under reduced motion */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-scrim: oklch(19% 0.022 266 / 0.55);
  --chrome-h: 136px;
  --text-poster: clamp(3rem, 5.4vw + 0.5rem, 6.5rem);
  --text-statement: clamp(1.75rem, 2.4vw + 0.75rem, 3.25rem);
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding-inline: var(--space-lg); border: 0; border-radius: 0; background: var(--color-ink); color: var(--color-paper); font-family: var(--font-body); font-weight: 500; 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); }
.btn:hover { background: var(--color-ink-2); }
.btn:active { background: var(--color-ink); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--s { min-height: 44px; white-space: nowrap; padding-inline: var(--space-md); font-size: var(--text-sm); }
.link { display: inline-flex; align-items: center; min-height: 44px; background: none; border: 0; padding: 0; color: currentColor; font-weight: 500; text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-mark); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }

/* 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; align-items: center; gap: var(--space-md); }
.concept .link { min-height: 44px; white-space: nowrap; }
.concept .short { display: none; }

/* nav */
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: 80px; }
.wordmark { display: inline-grid; grid-template-columns: auto auto; column-gap: var(--space-sm); align-items: center; font: 400 var(--text-lg)/0.92 var(--font-display); letter-spacing: -0.01em; text-decoration: none; color: var(--color-ink); }
.wordmark::before { content: ""; grid-row: span 2; width: 1.84em; height: 1.84em; background: var(--color-mark); }
.wordmark b { font-weight: 700; }
.wordmark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.nav ul { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav ul a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; font-size: var(--text-sm); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.nav ul a:hover { color: var(--color-mark); text-decoration: underline var(--rule-hair); text-underline-offset: 0.32em; }
.nav ul a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* hero: pinned act, the stage is the section */
.door-act { position: relative; }
.chrome { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.js .door-act .sc-stage { position: sticky; top: var(--chrome-h); }
.hero { position: relative; height: calc(100svh - var(--chrome-h)); overflow: clip; }
.hero__grid { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.hero__copy { grid-column: 1 / span 6; align-self: end; padding-bottom: var(--space-2xl); display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 { font-size: var(--text-poster); line-height: 0.92; letter-spacing: -0.045em; max-width: 11ch; }
.hero .lead { max-width: 34ch; color: var(--color-ink-2); }
.hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.hero__field { position: absolute; top: 0; bottom: 0; right: 0; left: calc(50% + var(--gap-columns) / 2); background: var(--color-field); color: var(--color-field-ink); }
.door { position: absolute; bottom: 0; left: 50%; height: min(92%, 980px); aspect-ratio: 802 / 1600; transform-origin: 50% 100%; translate: -50% 0; transform: translate3d(var(--lean-x, 0px), 0, 0) scale(calc(1 + var(--door-p, 0) * 0.05)); }
.door > img { position: relative; z-index: 2; width: 100%; height: 100%; }
.panes { position: absolute; z-index: 1; inset: 9.04% 17.56% 15.16% 20.19%; overflow: clip; background: var(--color-paper-2); }
.panes .strip { display: flex; width: 400%; height: 100%; transform: translate3d(calc(var(--room-x, 0) * 1% + var(--lean-x, 0px) * -1.6), 0, 0); }
.panes img { width: 25%; height: 100%; object-fit: cover; flex: none; }
.room-name { position: absolute; z-index: 3; left: 0; right: 0; bottom: var(--space-lg); padding-inline: var(--space-lg); color: var(--color-field-ink); font-size: var(--text-sm); font-weight: 500; text-align: end; }

/* sections */
section { scroll-margin-top: var(--space-lg); }
.section { padding-block: var(--section-gap); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); }
.sec-head { grid-column: 1 / span 5; display: grid; gap: var(--space-md); align-content: start; }
.sec-head p { color: var(--color-ink-2); max-width: 36ch; }

/* work index */
.work .index { grid-column: 1 / span 5; display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: 0; padding: 0; list-style: none; align-content: start; }
.work .index button { min-height: 44px; white-space: nowrap; padding: 0; border: 0; background: none; color: var(--color-ink); font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.025em; text-align: start; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.work .index button:hover { color: var(--color-mark); }
.work .index button[aria-pressed="true"] { color: var(--color-mark); }
.work .index button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }
.work figure { grid-column: 7 / -1; grid-row: 1 / span 2; margin: 0; display: grid; gap: var(--space-sm); }
.work .frame { aspect-ratio: 4 / 5; background: var(--color-paper-2); overflow: clip; }
.work .frame img { width: 100%; height: 100%; object-fit: cover; }
.work figcaption { display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.work .count { font-variant-numeric: tabular-nums; }

/* reviews: the one red field */
.field--mark { background: var(--color-mark); color: var(--color-mark-ink); --color-focus: var(--color-ink); }
.reviews h2 { grid-column: 1 / span 4; }
.reviews ol { grid-column: 5 / -1; margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xl); }
.reviews blockquote { margin: 0; font: 400 var(--text-statement)/1.08 var(--font-display); letter-spacing: -0.025em; overflow-wrap: break-word; min-width: 0; }
.reviews li p { margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 500; }
.reviews .score { grid-column: 1 / span 4; align-self: end; display: grid; gap: var(--space-2xs); }
.reviews .score b { font: var(--display-weight) var(--text-poster)/0.9 var(--font-display); letter-spacing: -0.045em; }
.reviews .score span { font-size: var(--text-sm); font-weight: 500; }

/* about: statement hung asymmetric */
.about .statement { grid-column: 4 / -1; font: 400 var(--text-statement)/1.12 var(--font-display); letter-spacing: -0.025em; max-width: 26ch; overflow-wrap: break-word; min-width: 0; }
.about dl { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); margin: 0; }
.about dt { font: var(--display-weight) var(--text-2xl)/1.05 var(--font-display); letter-spacing: -0.025em; }
.about dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); }
.makes { grid-column: 4 / -1; display: grid; gap: var(--space-sm); }
.makes h3 { font-size: var(--text-title); }
.makes ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: var(--gap-columns); }
.makes li { padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); break-inside: avoid; }

/* estimate: the ultramarine field holding the control */
.field { background: var(--color-field); color: var(--color-field-ink); --color-focus: var(--color-field-ink); }
.estimate h2 { grid-column: 1 / span 5; }
.estimate .intro { grid-column: 1 / span 5; grid-row: 2; align-self: start; max-width: 34ch; }
.estimate form { grid-column: 7 / -1; grid-row: 1 / span 3; display: grid; gap: var(--space-xl); }
.estimate fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: var(--space-md); }
.estimate legend, .estimate label { font-size: var(--text-sm); font-weight: 500; padding: 0; }
.chosen { font: var(--display-weight) var(--text-poster)/0.92 var(--font-display); letter-spacing: -0.045em; overflow-wrap: break-word; min-width: 0; }
.jobs { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.jobs label { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-lg); cursor: pointer; text-decoration: underline transparent var(--rule-hair); text-underline-offset: 0.32em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.jobs input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jobs label:hover { text-decoration-color: currentColor; }
.jobs label:has(input:checked) { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.jobs label:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.inputs label { display: grid; gap: var(--space-2xs); }
.inputs input { min-height: 52px; padding: 0; border: 0; border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-field-ink) 60%, transparent); border-radius: 0; background: none; color: var(--color-field-ink); font-size: var(--text-xl); }
.inputs input::placeholder { color: color-mix(in oklab, var(--color-field-ink) 55%, transparent); }
.inputs input:hover { border-bottom-color: var(--color-field-ink); }
.inputs input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.estimate .send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }

/* footer */
.foot { padding-block: var(--space-3xl) var(--space-2xl); }
.foot .cols { align-items: end; }
.foot .wordmark { grid-column: 1 / span 4; justify-self: start; font-size: var(--text-2xl); }
.foot p { grid-column: 5 / -1; color: var(--color-ink-2); max-width: 60ch; }

/* the Djenius secure panel */
.dj { background: var(--color-paper-2); padding-block: var(--space-2xl); }
.dj .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-lg); }
.dj h2 { font-size: var(--text-2xl); }
.dj p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 56ch; }
.dj .acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }

/* dialogs */
dialog { width: min(480px, calc(100% - 2 * var(--space-md))); padding: 0; border: 0; border-radius: 0; 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 h3 { font-size: var(--text-2xl); padding-right: var(--space-xl); }
.dlg p { color: var(--color-ink-2); }
.dlg .acts { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; 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:hover { color: var(--color-mark); }
.x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.x svg { width: 20px; height: 20px; }

/* tablet and phone: separate composition, the act unpins */
@media (max-width: 60rem) {
  .nav ul { display: none; }
  .chrome { position: static; }
  .door-act { height: auto !important; }
  .js .door-act .sc-stage { position: relative; top: auto; }
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero__grid { order: -1; }
  .room-name { display: none; }
  .hero__grid { display: block; height: auto; }
  .hero__copy { padding: var(--space-xl) 0 var(--space-2xl); }
  .hero__field { position: relative; inset: auto; width: auto; height: min(118vw, 78svh); margin-inline: calc(-1 * var(--gutter)); }
  .door { height: 90%; }
  .work .index, .work figure, .sec-head, .reviews h2, .reviews ol, .reviews .score, .about .statement, .about dl, .makes, .estimate h2, .estimate .intro, .estimate form, .foot .wordmark, .foot p { grid-column: 1 / -1; grid-row: auto; }
  .work figure { order: 3; }
  .about dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .concept .long { display: none; }
  .concept .short { display: inline; }
  .concept .container { flex-direction: column; align-items: stretch; gap: var(--space-2xs); padding-block: var(--space-sm); }
  .concept .acts { justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
  .inputs { grid-template-columns: minmax(0, 1fr); }
  .makes ul { columns: 1; }
  .work .index button { font-size: var(--text-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .door { transform: none; }
  .panes .strip { transform: none; }
  .door-act { height: auto !important; }
  .js .door-act .sc-stage { position: relative; top: auto; }
}
