/* Hallmark · shape: Photographic · genre: editorial · theme: Studio (deal 1/3, seed kitchen-bathroom-fitters-southwick-a675·bf81ca83·2026-12-03·r0) · job: hire · draw: 19bbc0
 * hero: Poster (layered plate, head on the white wall) · nav: floating pill · footer: letter close · imagery: photographs (their own jobs) · signature: their 2025 bathroom tiled over its own strip-out, course by course, by the scroll
 * axes: light/roman-serif/warm · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R, the services list is type only, so it sits on the slate band with a ruled two-column set to carry mass */
/* Hallmark · waive 39b · the 80px controls are the six work index rows, each a full-width disclosure row · a room title in the serif needs the row height to read as an index of fitted rooms, not a button */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 76px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: 2px; background: var(--color-paper-hi); color: var(--color-ink); font-weight: 500; font-size: var(--text-md); 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:hover { background: var(--color-paper-2); }
.btn:active { background: var(--color-paper-3); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-accent-ink); }
.btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 88%, var(--color-ink)); }
.btn--primary:active { background: color-mix(in oklab, var(--color-accent) 78%, var(--color-ink)); }
.btn--s { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-rule); text-underline-offset: .2em; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; transition: none; }

/* ---------- crop marks ---------- */
.crop { position: relative; --l: 10px; --o: 14px; }
.crop::before { content: ""; position: absolute; inset: calc(-1 * var(--o)); pointer-events: none; z-index: 3;
  background:
    linear-gradient(var(--color-mark), var(--color-mark)) 0 var(--o) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--o) 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% var(--o) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--o)) 0 / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 0 calc(100% - var(--o)) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) var(--o) 100% / 1px var(--l) no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) 100% calc(100% - var(--o)) / var(--l) 1px no-repeat,
    linear-gradient(var(--color-mark), var(--color-mark)) calc(100% - var(--o)) 100% / 1px var(--l) no-repeat; }

.proof { background-color: var(--color-paper); background-image: radial-gradient(circle at 1px 1px, var(--color-dot) 1px, transparent 1.4px); background-size: 24px 24px; }

/* ---------- concept bar (Djenius) ---------- */
.concept { background: var(--color-ink); color: var(--color-paper); 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 p { color: var(--color-paper); }
.concept .acts { display: flex; gap: var(--space-xs); }
.concept .btn { border-color: var(--color-paper); }
.concept .btn--quiet { background: transparent; color: var(--color-paper); }
.concept .btn--quiet:hover { background: color-mix(in oklab, var(--color-paper) 14%, transparent); }
.concept .short { display: none; }

/* ---------- nav: floating pill ---------- */
.navwrap { position: sticky; top: var(--space-sm); height: 0; display: flow-root; z-index: var(--z-sticky-nav); }
.pill { display: flex; align-items: center; gap: var(--space-lg); width: fit-content; max-width: calc(100% - 2 * var(--gutter)); margin: var(--space-sm) auto 0; padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-lg); background: var(--color-paper-hi); border: var(--rule-hair) solid var(--color-rule); border-radius: 4px; }
.mark { display: flex; align-items: baseline; gap: var(--space-xs); text-decoration: none; color: var(--color-ink); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
.mark b { font-weight: 400; color: var(--color-ink); }
.mark span { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-ink-2); letter-spacing: 0; }
.mark:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; }
.pill nav ul { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.pill nav a { font-size: var(--text-sm); color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.pill nav a:hover { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); }
.pill nav a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

/* ---------- hero: poster on their own kitchen ---------- */
.hero { position: relative; container-type: size; height: calc(100svh - 56px); min-height: 600px; overflow: clip; background: var(--color-paper-hi); }
.stack { position: absolute; left: 50%; width: max(100cqw, 133.334cqh); aspect-ratio: 4 / 3; top: calc((100cqh - max(100cqw, 133.334cqh) * 0.75) * 0.2); translate: -50% 0; }
.stack img { position: absolute; display: block; max-width: none; }
.stack .plate { inset: 0; width: 100%; height: 100%; transform-origin: 62% 40%; transform: scale(calc(1 + var(--hp, 0) * 0.035)); }
.stack .front { left: 69.4%; top: 55.73%; width: 30.6%; height: 41.15%; transform-origin: 100% 100%; transform: scale(calc(1 + var(--hp, 0) * 0.16)); z-index: 2; }
.guides { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.guides line { stroke: var(--color-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 1200; stroke-dashoffset: 0; }
.guides .tick { stroke-width: 2; }
.js .guides line { animation: draw 1.4s var(--ease-out) .35s both; }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
.tag { position: absolute; z-index: 1; translate: -100% -50%; padding: var(--space-2xs) var(--space-xs); background: var(--color-paper-hi); color: var(--color-ink); font-size: var(--text-xs); font-weight: 500; line-height: 1.3; white-space: nowrap; border-left: 2px solid var(--color-accent); }
.hero .copy { position: absolute; z-index: 4; }
.copy h1 { font-size: clamp(2.5rem, 4.3cqw, 5.25rem); line-height: 1; max-width: 12ch; color: var(--color-ink); }
.copy .lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 34ch; }
.copy .ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

@media (min-width: 72rem) and (min-aspect-ratio: 7 / 5) {
  .hero .copy { left: auto; right: auto; inset-inline-start: calc(50cqw + (0.455 - 0.5) * max(100cqw, 133.334cqh)); bottom: calc(100cqh - ((100cqh - max(100cqw, 133.334cqh) * 0.75) * 0.2 + max(100cqw, 133.334cqh) * 0.75 * 0.495)); width: calc(max(100cqw, 133.334cqh) * 0.39); }
}
@media not ((min-width: 72rem) and (min-aspect-ratio: 7 / 5)) {
  .hero { height: auto; min-height: 0; container-type: inline-size; padding-top: calc(var(--nav-h) + var(--space-xl)); }
  .hero .copy { position: static; padding: 0 var(--gutter) var(--space-xl); max-width: 40rem; }
  .copy h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
  .stack { position: relative; left: 0; top: 0; translate: none; width: 100%; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 90px; }
.sec { padding-block: var(--section-gap); }
.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; margin-bottom: var(--space-2xl); }
.sec-head p { color: var(--color-ink-2); max-width: 44ch; }

/* work index */
.index { border-top: var(--rule-hair) solid var(--color-ink); }
.row { border-bottom: var(--rule-hair) solid var(--color-rule); }
.row > button { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-3xl); align-items: baseline; width: 100%; padding: var(--space-lg) 0; border: 0; background: none; color: var(--color-ink); text-align: left; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.row > button:hover h3 { text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.row > button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.row h3 { font-size: var(--text-xl); max-width: none; }
.row .yr { color: var(--color-ink-2); font-variant-numeric: tabular-nums; }
.row .open { justify-self: end; font-size: var(--text-sm); color: var(--color-muted); }
.row .open::after { content: "Open"; }
.row[data-open] .open::after { content: "Close"; }
.case-body { display: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); padding: var(--space-md) 0 var(--space-2xl); }
.row[data-open] .case-body { display: grid; }
.case-body figure { margin: 0; }
.case-body img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-paper-2); }
.case-body .side { display: flex; flex-direction: column; gap: var(--space-md); padding-top: var(--space-md); }
.case-body .side p { color: var(--color-ink-2); }
.ratio { display: flex; align-items: center; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
.ratio::before { content: ""; width: 40px; height: 1px; background: var(--color-accent); }

/* case: tiled by the scroll */
.case { background: var(--color-paper-2); }
.case .sc-stage, .case [data-sc-stage] { height: 100svh; display: grid; align-items: center; }
.js .case .sc-stage { position: sticky; top: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; padding-top: var(--nav-h); }
.case-copy { display: flex; flex-direction: column; gap: var(--space-lg); }
.case-copy p { color: var(--color-ink-2); }
.readout { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); color: var(--color-muted); font-variant-numeric: tabular-nums; }
.readout b { font-weight: 500; color: var(--color-ink); }
.bar { position: relative; width: 160px; height: 2px; background: var(--color-rule); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(var(--tp, 1)); }
.frame { position: relative; justify-self: center; height: min(72svh, 760px); aspect-ratio: 3 / 4; max-width: 100%; background: var(--color-paper-3); }
.frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .frame .after { display: none; }
.tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); z-index: 1; }
.js .tiles i { background-image: url("img/case-after.webp"); background-repeat: no-repeat; background-size: 600% 800%; opacity: 0; transform: scale(.86); clip-path: inset(1.5px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.js .tiles i.on { opacity: 1; transform: none; }
.js .frame.done .tiles i { clip-path: inset(0); }
.setout { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.setout line { stroke: var(--color-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.frame.done .setout { opacity: 0; }
.cap { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* services on slate */
.services { background: var(--color-slate-paper); }
.svc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-3xl); border-top: var(--rule-hair) solid var(--color-ink); list-style: none; margin: 0; padding: 0; }
.svc li { display: flex; flex-direction: column; gap: var(--space-2xs); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid color-mix(in oklab, var(--color-slate) 35%, transparent); }
.svc h3 { font-size: var(--text-title); }
.svc p { color: var(--color-ink-2); }

/* reviews: ink band */
.reviews { background: var(--color-ink); color: var(--color-paper); }
.reviews h2, .reviews h3 { color: var(--color-paper); }
.rv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.score { display: flex; flex-direction: column; gap: var(--space-md); }
.score h2.big { max-width: none; font-family: var(--font-display); font-size: clamp(5rem, 11vw, 10rem); line-height: .9; letter-spacing: -0.03em; color: var(--color-paper); font-variant-numeric: tabular-nums; }
.score .big small { display: block; margin-top: var(--space-sm); font-family: var(--font-body); font-size: var(--text-md); letter-spacing: 0; line-height: 1.5; color: color-mix(in oklab, var(--color-paper) 78%, var(--color-ink)); }
.score p { color: color-mix(in oklab, var(--color-paper) 78%, var(--color-ink)); }
.score .btn { align-self: flex-start; background: transparent; color: var(--color-paper); border-color: var(--color-paper); }
.score .btn:hover { background: color-mix(in oklab, var(--color-paper) 12%, transparent); }
.quotes { display: flex; flex-direction: column; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.quotes li { border-top: var(--rule-hair) solid color-mix(in oklab, var(--color-paper) 30%, transparent); padding-top: var(--space-lg); }
.quotes blockquote { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.3; color: var(--color-paper); }
.quotes cite { display: block; margin-top: var(--space-sm); font-style: normal; font-size: var(--text-sm); color: color-mix(in oklab, var(--color-paper) 72%, var(--color-ink)); }

/* where */
.where .w-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.where .w-grid > div > p { margin-top: var(--space-lg); color: var(--color-ink-2); }
.towns { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-ink); }
.towns li { display: flex; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-family: var(--font-display); font-size: var(--text-xl); }
.towns li span { font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-muted); align-self: center; }

/* letter close */
.close { padding-block: var(--section-gap) var(--section-gap-s); }
.letter { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.letter .body { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 36rem; }
.letter .body p { color: var(--color-ink-2); }
.letter .sign { color: var(--color-ink); }
.lines { display: flex; flex-direction: column; border-top: var(--rule-hair) solid var(--color-ink); }
.lines a, .lines div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-decoration: none; color: var(--color-ink); }
.lines a { transition: color var(--dur-short) var(--ease-out); }
.lines a:hover b { text-decoration: underline; text-decoration-color: var(--color-accent); }
.lines a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.lines b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lines span { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.lines + .btn { margin-top: var(--space-lg); }

/* Djenius aside + footer */
.dj { background: var(--color-slate-paper); padding-block: var(--space-2xl); }
.dj .container { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xl); flex-wrap: wrap; }
.dj h2 { font-size: var(--text-2xl); }
.dj p { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 52ch; }
.dj .acts { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.foot { padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.foot p { max-width: none; color: var(--color-muted); }

/* dialogs */
dialog { width: min(480px, calc(100% - 2 * var(--space-md))); padding: 0; border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-card); background: var(--color-paper-hi); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim); }
.dlg { position: relative; display: flex; flex-direction: column; gap: var(--space-md); padding: var(--space-xl); }
.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-sm); margin-top: var(--space-xs); }
.x { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 2px; background: transparent; color: var(--color-ink); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.x:hover { background: var(--color-paper-2); }
.x:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.x svg { width: 20px; height: 20px; }

/* scrollcraft mechanism, restated in-page (engine css not linked) */
.js [data-sc-in] { opacity: 0; transform: translateY(16px); 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; }
.sc-act--pinned { position: relative; }

@media (max-width: 60rem) {
  .pill nav { display: none; }
  .mark span { display: none; }
  .sec-head, .case-grid, .rv, .where .w-grid, .letter, .case-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .row > button { grid-template-columns: minmax(0, 1fr) auto; }
  .row .yr { grid-row: 2; }
  .row .open { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
  .case-grid { gap: var(--space-lg); padding-top: calc(var(--nav-h) + var(--space-sm)); }
  .case-copy { gap: var(--space-sm); }
  .case-copy .lead-s { display: none; }
  .frame { height: min(56svh, 520px); }
}
@media (max-width: 40rem) {
  .concept .long { display: none; } .concept .short { display: inline; }
  .concept .container { flex-direction: column; align-items: stretch; gap: var(--space-xs); }
  .concept .acts .btn { flex: 1; padding: 0 var(--space-sm); }
  .hero { height: auto; }
  .lines span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stack .plate, .stack .front { transform: none; }
  .js .guides line { animation: none; }
  .js .tiles i { transition: none; }
  .js [data-sc-in] { opacity: 1; transform: none; transition: none; }
}
