/* Hallmark · shape: Feature Stack (draw c0d0fa; swapped from Catalogue, a builder has no inventory grid, the one project opened as a case is the spine) · genre: editorial · theme: Hedgerow (by request: the deep green of their own site board) · job: hire · draw: c0d0fa
 * hero: Stage (swapped from Corridor, their own photographs carry the page) · nav: edge bar, logo and one action (swapped from search-led, nothing to search) · footer: index columns · imagery: photographs, their own · signature: their Claygate extension rising stage by stage from the ground up 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 reviews band runs long, so each quote is trimmed to one sentence with its own words */
/* Hallmark · answered F-photo · their bright interiors break the theme's low-key rule; they are the business's own photographs, so the material wins, toned a step down */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 72px;
  --bar-h: 52px;
  --color-scrim: color-mix(in oklab, var(--color-paper-2) 72%, transparent);
}

body { font-size: 1.0625rem; line-height: 1.6; }
p { color: var(--color-ink-2); }
h1, h2, h3 { font-weight: 400; line-height: 1.08; color: var(--color-ink); }

/* buttons */
.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; white-space: nowrap; text-decoration: none; cursor: pointer; background: var(--color-accent); color: var(--color-accent-ink); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-accent-2); border-color: var(--color-accent-2); }
.btn:active { background: var(--color-accent); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--line { background: transparent; color: var(--color-accent); }
.btn--line:hover { background: color-mix(in oklab, var(--color-accent) 12%, transparent); color: var(--color-accent-2); }
.btn--s { min-height: 44px; padding: var(--space-xs) var(--space-md); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* concept bar (Djenius) */
.concept { background: var(--color-paper-2); font-size: var(--text-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.concept .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--bar-h); padding-block: var(--space-2xs); }
.concept p { color: var(--color-muted); }
.concept b { color: var(--color-ink); font-weight: 500; }
.concept .acts { display: flex; gap: var(--space-xs); flex: none; }
.concept .short { display: none; }

/* 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); }
.brand { display: block; flex: none; }
.brand img { width: 196px; height: auto; }
.nav ul { display: flex; gap: var(--space-xl); margin: 0; padding: 0; list-style: none; }
.nav ul a { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--color-ink-2); padding-block: var(--space-xs); border-bottom: var(--rule-hair) solid transparent; transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.nav ul a:hover { color: var(--color-ink); border-color: var(--color-accent); }
.nav .end { display: flex; align-items: center; gap: var(--space-lg); }
.nav .tel { font-size: var(--text-sm); font-weight: 500; text-decoration-color: var(--color-accent); color: var(--color-ink); }

/* hero: words on the green, their extension as a layered plate bleeding off the right edge */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: max(600px, calc(100svh - var(--nav-h) - var(--bar-h))); max-height: 1000px; }
.hero__text { display: flex; flex-direction: column; justify-content: center; gap: var(--space-lg); padding: var(--space-2xl) var(--space-3xl) var(--space-2xl) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.hero h1 { font-size: clamp(2.75rem, 4.2vw + 0.75rem, 5rem); max-width: 11ch; }
.hero .lead { color: var(--color-ink-2); max-width: 30ch; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.plate { position: relative; margin: 0; overflow: hidden; background: var(--color-paper-2); }
.plate .layer { position: absolute; inset: -4% -2% -6%; will-change: transform; }
.plate .layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.plate .layer--back img { filter: brightness(0.95); }
.plate .grow { position: absolute; inset: 0; transform-origin: 50% 82%; transform: scale(calc(1 + var(--hp, 0) * 0.07)); }
.plate .layer--ground { transform: translateY(calc(var(--hp, 0) * -7%)); }
.plate .layer--back { transform: translateY(calc(var(--hp, 0) * 2.5%)); }
.plate figcaption { position: absolute; left: var(--space-lg); bottom: var(--space-lg); z-index: 3; font-size: var(--text-xs); font-weight: 500; color: var(--color-ink); background: var(--color-paper); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-pill); }

/* sections */
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: var(--section-gap-s); }
.head { display: grid; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head p { max-width: 46ch; }

/* the build: one Claygate extension, pinned, each stage rising from the ground up */
.build { position: relative; margin-top: var(--space-2xl); }
.build__stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; padding-block: var(--space-2xl); }
.build h2 { max-width: 14ch; }
.build .intro { margin-top: var(--space-md); max-width: 36ch; }
.stages { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: 1.5px solid var(--color-accent); counter-reset: s; }
.stages li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.stages h3 { font-size: var(--text-2xl); color: var(--color-ink); transition: color var(--dur-short) var(--ease-out); }
.stages p { font-size: var(--text-md); transition: color var(--dur-short) var(--ease-out); }
.frames { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.frames figure { margin: 0; }
.frames img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; filter: brightness(0.95); }
.frames figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.build__where { margin-top: var(--space-md); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* the stacked, scroll-driven version, only with script and motion */
.motion .build__stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl); }
.motion .frames { display: block; height: min(100%, 760px); aspect-ratio: 3 / 4; justify-self: center; }
.motion .frames figure { position: absolute; inset: 0; }
.motion .frames img { height: 100%; aspect-ratio: auto; }
.motion .frames figcaption { display: none; }
.motion .frames figure + figure { clip-path: inset(calc((1 - var(--k, 0)) * 100%) 0 0 0); }
.motion .frames figure + figure::before { content: ""; position: absolute; left: 0; right: 0; top: calc((1 - var(--k, 0)) * 100%); height: 2px; background: var(--color-accent); z-index: 2; opacity: calc(var(--k, 0) * (1 - var(--k, 0)) * 4); }
.motion .stages h3, .motion .stages p { color: var(--color-muted); }
.motion .stages li[data-on] h3 { color: var(--color-ink); }
.motion .stages li[data-on] p { color: var(--color-ink-2); }
.motion .stages li { border-bottom-color: var(--color-rule); }
.motion .stages li[data-on] { border-bottom-color: var(--color-accent); }

/* what we build: a field-guide index, no pictures */
.index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--color-accent); }
.index li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.index h3 { font-size: clamp(1.953rem, 2.2vw + 1rem, 3rem); max-width: none; }
.index p { max-width: 44ch; }

/* statement */
.statement { background: var(--color-paper-2); }
.statement blockquote { margin: 0; display: grid; gap: var(--space-xl); }
.statement blockquote p { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.15; color: var(--color-ink); max-width: 28ch; }
.statement footer { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }

/* work */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-columns); }
.work figure { margin: 0; display: grid; gap: var(--space-sm); }
.work img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; outline: var(--rule-hair) solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; filter: brightness(0.95); }
.work figure:nth-child(even) { margin-top: var(--space-2xl); }
.work h3 { font-size: var(--text-xl); }
.work figcaption p { font-size: var(--text-sm); color: var(--color-muted); }
.work-more { margin-top: var(--space-2xl); }

/* the cream band: figures and what clients say */
.band--cream { --color-focus: var(--color-paper); background: var(--color-ink); color: var(--color-paper); --color-rule: color-mix(in oklab, var(--color-paper) 22%, var(--color-ink)); }
.band--cream h2, .band--cream h3 { color: var(--color-paper); }
.band--cream p { color: color-mix(in oklab, var(--color-paper) 82%, var(--color-ink)); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--color-accent-deep); border-bottom: var(--rule-hair) solid var(--color-rule); margin-bottom: var(--space-3xl); }
.figures div { padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.figures div:first-child { border-left: 0; padding-left: 0; }
.figures .figure { display: block; font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; color: var(--color-paper); font-variant-numeric: lining-nums tabular-nums; }
.figures div:first-child .figure { color: var(--color-accent-deep); }
.figures span:last-child { display: block; margin-top: var(--space-sm); font-size: var(--text-sm); font-weight: 500; color: color-mix(in oklab, var(--color-paper) 70%, var(--color-ink)); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.quotes blockquote { margin: 0; display: flex; flex-direction: column; gap: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.quotes blockquote p { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.35; color: var(--color-paper); }
.quotes footer { margin-top: auto; font-size: var(--text-sm); font-weight: 500; color: color-mix(in oklab, var(--color-paper) 70%, var(--color-ink)); }
.band--cream .btn { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.band--cream .btn:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }
.band--cream .btn--line { background: transparent; color: var(--color-paper); }
.band--cream .btn--line:hover { background: color-mix(in oklab, var(--color-paper) 8%, transparent); color: var(--color-paper); }
.reviews-more { margin-top: var(--space-2xl); }

/* close: the enquiry, then the contact details */
.close { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); margin-top: var(--space-xl); }
.field { display: grid; gap: var(--space-2xs); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: 0; background: var(--color-paper-2); color: var(--color-ink); transition: border-color var(--dur-short) var(--ease-out); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 0; border-color: var(--color-focus); transition: none; }
.field input:user-invalid { border-color: var(--color-error); }
.form .btn { justify-self: start; }
.contact { display: grid; gap: var(--space-xl); padding-top: var(--space-md); }
.contact dl { margin: 0; display: grid; gap: var(--space-lg); }
.contact dt { font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); }
.contact dd { margin: var(--space-2xs) 0 0; }
.contact .big { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--color-ink); text-decoration-color: var(--color-accent); }
.contact .big + .big { display: block; margin-top: var(--space-2xs); }
.contact dd a { color: var(--color-ink); text-decoration-color: var(--color-accent); }

/* footer */
.foot { border-top: var(--rule-hair) solid var(--color-muted); padding-block: var(--space-2xl); }
.foot .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.foot img { width: 220px; height: auto; }
.foot h3 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-muted); margin-bottom: var(--space-sm); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); }
.foot a { color: var(--color-ink-2); text-decoration-color: var(--color-accent); }
.foot a:hover { color: var(--color-ink); }
.foot .legal { margin-top: var(--space-2xl); font-size: var(--text-xs); color: var(--color-muted); }

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

/* dialogs */
dialog { width: min(480px, calc(100% - 2 * var(--space-md))); padding: 0; border: var(--rule-hair) solid var(--color-rule); border-radius: 0; background: var(--color-paper); color: var(--color-ink); }
dialog::backdrop { background: var(--color-scrim); }
.dlg { position: relative; display: grid; gap: var(--space-md); padding: var(--space-xl); }
.dlg h3 { font-size: var(--text-2xl); padding-right: var(--space-xl); }
.dlg .acts { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.x { position: absolute; top: var(--space-md); right: var(--space-md); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out); }
.x:hover { background: var(--color-paper-3); color: var(--color-ink); }
.x svg { width: 20px; height: 20px; }

@media (max-width: 75rem) {
  .nav ul { display: none; }
}
@media (max-width: 60rem) {
  .concept .long { display: none; } .concept .short { display: inline; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; max-height: none; }
  .hero__text { padding: var(--space-xl) var(--gutter) var(--space-xl); }
  .plate { aspect-ratio: 4 / 5; max-height: 72svh; }
  .build__stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .motion .build__stage { grid-template-rows: auto minmax(0, 1fr); align-items: stretch; gap: var(--space-md); padding-block: var(--space-md); }
  .motion .build .intro, .motion .build__where { display: none; }
  .motion .build h2 { font-size: var(--text-2xl); }
  .motion .stages { margin-top: var(--space-sm); }
  .motion .stages li { display: none; padding-block: var(--space-xs); grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .motion .stages li[data-on] { display: grid; }
  .motion .stages h3 { font-size: var(--text-xl); }
  .motion .frames { height: 100%; width: auto; max-width: 100%; min-height: 0; }
  .index li { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work figure:nth-child(even) { margin-top: 0; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .close { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  :root { --nav-h: 64px; }
  .concept .container { padding-block: var(--space-xs); }
  .concept p { display: none; }
  .concept .acts { flex: 1; flex-direction: column; }
  .brand img { width: 136px; }
  .nav .tel { display: none; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures div { border-left: 0; padding-inline: 0; border-top: var(--rule-hair) solid var(--color-rule); }
  .figures div:first-child { border-top: 0; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .stages li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (prefers-reduced-motion: reduce) {
  .plate .grow, .plate .layer--ground, .plate .layer--back { transform: none; }
}
