/* Stavhaus Bloom. A product page for one timber garden room.

   Layout and motion follow montarville.ca, the owner's reference for a
   modern site: a full-width wordmark, two-line offset section titles,
   parallax image collages, stacking step cards, a pinned gallery and a
   wordmark footer. Colours are the owner's palette (22.10.): warm sand ground,
   olive for the two big bands, terracotta for accents only (main buttons, label
   bars, step numbers), anthracite for all type.

   System:
   - Type: General Sans for everything. Labels are small spaced capitals of the same
     face (the owner did not like the typewriter face, 22.10.).
   - Shape: 4px on buttons, cards, panels and inputs; photos square-cut.
   - Space: --sec between sections.
   - Motion lives in bloom.js (GSAP + ScrollTrigger + Lenis); without
     JavaScript, or with reduced motion, the page is complete and still. */

/* The font is served from this site (fonts/), so a visit sends nothing to Fontshare or Google.
   General Sans: Fontshare (ITF Free Font License). */
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap }

:root {
  color-scheme: light;
  --bg: #F2EEE6; --card: #E7E1D5; --panel: #F9F7F2;   /* sand */
  --ink: #383E42; --ink-2: #565C5F; --line: #DCD5C7; --field: #CEC6B6;   /* anthracite */
  --olive: #5B6B47; --on-olive: #F2EEE6;   /* sand on olive: 5.0:1 */
  --terra: #D9541E; --terra-2: #B5451A;    /* owner 09.11.: D9541E (white on it 4.0:1); terra-2 for small text + hover, 4.7:1 on sand */
  --err: #a0261d; --warn: #7a5200;
  --sans: "General Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --in: 1440px; --gutter: clamp(16px, 2.4vw, 40px);
  --sec: clamp(96px, 12vw, 176px);
  --r: 4px;
  --t-xs: 13px; --t-sm: 17px; --t-base: 17px; --t-md: 20px;   /* one body size; one step up everywhere (owner, 21.10.: too small) */
  /* labels, buttons and the phone menu; larger on phones (see the 560px block) */
  --t-label-xs: 13px; --t-label: 14px; --t-btn: 14px; --t-btn-sm: 13px; --t-menu: 13px;
  --t-lg: clamp(26px, 2.4vw, 36px);
  --t-tag: clamp(34px, 2.9vw, 42px);
  --t-xl: clamp(42px, 5.2vw, 84px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--t-base); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.02 }
p { margin: 0 }
a { color: inherit }
img { max-width: 100%; height: auto; display: block }
figure, dl, dd { margin: 0 }
[hidden] { display: none !important }
.in { max-width: var(--in); margin: 0 auto; padding-inline: var(--gutter) }
.disc { font-size: var(--t-xs); color: var(--ink-2) }
.meer, .faq { background: var(--panel); box-shadow: 0 0 0 100vmax var(--panel); clip-path: inset(0 -100vmax) }   /* a second ground, full width, inside .in */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }

/* Label above a title: a short bar and spaced capitals. */
.lbl { display: flex; align-items: center; gap: 10px; font: 500 var(--t-xs)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px }
.lbl i { width: 16px; height: 5px; background: var(--terra); border-radius: 1px }

/* Two-line titles: the second line steps in to the right. Each line sits in
   a mask so it can slide up into view. */
.split { font-size: var(--t-xl); display: grid; justify-self: stretch; width: 100% }
.split .l1, .split .l2 { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em }
.split .l1 > span, .split .l2 > span { display: inline-block }
.split .l2 { padding-left: 30% }

/* Buttons: rectangular, a small square before the text, like the reference. */
.btns { display: flex; flex-wrap: wrap; gap: 8px }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: var(--r);
  font: 600 var(--t-btn)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease) }
.btn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none }
.btn.pri { background: var(--terra); color: #fff }
.btn.pri:hover { background: var(--terra-2) }
.btn.sec { background: var(--card); color: var(--ink); border-color: var(--line) }
.btn.sec:hover { background: var(--ink); color: var(--bg) }
.btn:active { transform: scale(.98) }
.btn.sm { height: 36px; padding: 0 14px; font-size: var(--t-btn-sm) }

/* Header: a floating bar, inset from the edges. */
.top { position: fixed; top: 8px; left: 8px; right: 8px; z-index: 30 }
.bar { height: 52px; display: flex; align-items: center; gap: 28px; padding: 0 8px 0 16px; border-radius: var(--r);
  background: rgba(231, 225, 213, .82); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%) }
/* The logo by one unit, C = the cap height of STAVHAUS (.718em; rules in brand/logo/build_logo.py).
   The mark is on an 11-step grid (C = 11): bars 3 wide and 3 apart, 5 · 9 · 11 · 7 high, on the
   letters' baseline; 1 C from the mark to the S, ink to ink (the S starts .03em in). Bar sizes
   round to half pixels so their edges are sharp on 2x screens. */
.logo { --u: calc(.718em / 11); display: inline-flex; align-items: flex-end; gap: calc(11 * var(--u) - .03em); font-weight: 600; letter-spacing: .14em; font-size: 18px; line-height: 1; text-decoration: none }
.logo .lw { display: block; text-box: trim-both cap alphabetic }
@supports not (text-box: trim-both cap alphabetic) { .logo .lw { margin: -.167em 0 -.115em } }   /* the same cap-to-baseline box from the font's ascent and descent */
.logo .bars { display: flex; align-items: flex-end; gap: calc(3 * var(--u)); gap: round(calc(3 * var(--u)), .5px) }
.logo .bars i { display: block; width: calc(3 * var(--u)); width: round(calc(3 * var(--u)), .5px); height: calc(var(--h) * var(--u)); height: round(calc(var(--h) * var(--u)), .5px); background: currentColor }
.links { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: auto; font: 500 var(--t-label)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase }
.links a { text-decoration: none; color: var(--ink-2); transition: color .2s }
.links a:hover { color: var(--ink) }
.has-sub { position: relative; display: flex; align-items: center; gap: 2px }
.sub-btn { width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--ink-2); cursor: pointer }
@media (pointer: coarse) { .sub-btn { width: 44px; height: 44px; margin-right: -12px } }
.sub-btn i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease) }
.sub { position: absolute; top: 100%; left: -16px; min-width: 260px; margin-top: 12px; padding: 8px; display: none; gap: 2px; background: var(--panel); border-radius: var(--r); box-shadow: 0 24px 48px -24px rgba(56, 62, 66, .45);
  letter-spacing: 0; text-transform: none; font: 500 var(--t-base)/1.2 var(--sans) }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px }   /* no gap for the pointer to fall through */
.has-sub:not(.shut):hover .sub, .has-sub:not(.shut):focus-within .sub, .sub-btn[aria-expanded="true"] + .sub { display: grid }
.has-sub:not(.shut):hover .sub-btn i, .sub-btn[aria-expanded="true"] i { transform: translateY(1px) rotate(225deg) }
.links .sub a { display: block; padding: 10px 12px; border-radius: 2px; color: var(--ink) }
.links .sub a:hover, .links .sub a:focus-visible { background: var(--card) }
.flag { width: 21px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(56, 62, 66, .18) }   /* the white of the Dutch flag needs an edge on the sand */
.lang { display: inline-flex; align-items: center; gap: 7px; font: 500 var(--t-label)/1 var(--sans); text-decoration: none; padding: 8px 10px; border-radius: var(--r); color: var(--ink-2) }
.lang:hover { color: var(--ink) }
.burger { display: none; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: var(--r); background: var(--ink); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px }
.burger i { display: block; width: 14px; height: 1.5px; background: var(--bg); transition: transform .3s var(--ease) }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg) }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg) }
.mnav { margin-top: 6px; display: grid; padding: 8px 16px 16px; border-radius: var(--r); background: var(--card); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain }   /* solid: the page showed through behind the links */
.mnav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 var(--t-menu)/1.1 var(--sans); letter-spacing: -0.01em }
.mnav .btn { margin-top: 16px; justify-self: start }
.mnav a.mnav-lang { display: flex; align-items: center; gap: 12px }
.mnav-lang .flag { width: 30px; height: 20px }
.mnav-sub { display: grid; padding: 4px 0 8px 12px; border-bottom: 1px solid var(--line) }
.mnav .mnav-sub a { padding: 10px 0; border: 0; font: 500 18px/1.2 var(--sans); letter-spacing: 0; color: var(--ink-2) }
.mnav a:has(+ .mnav-sub) { border-bottom: 0; padding-bottom: 8px }

/* Hero: the wordmark across the page, the line under it, intro and photo. */
.hero { padding-top: 72px; overflow: hidden }
.mega { margin: 0; padding-inline: var(--gutter); font-weight: 600; font-size: 20.6vw; line-height: .78; letter-spacing: -0.055em; white-space: nowrap; color: var(--ink) }
.mega .mw { display: inline-block }
.mega .mw > span { display: inline-block }
/* Left: the wordmark on top, the message at the foot of the photo. Right: the photo, up to the header. */
.hero-grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr repeat(4, auto); column-gap: 24px }
.hero .mega, .tag, .hero-sub, .hero-tags, .hero .btns { grid-column: 1 / 7 }
.hero .mega { grid-row: 1; padding: 0; font-size: min(11.8vw, 170px) }   /* about 40 % smaller, and it fits the left column */
.tag { grid-row: 3; padding-top: 24px; font-size: var(--t-tag); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; color: var(--ink) }
.hero-sub { grid-row: 4; margin-top: 16px; font-size: 20px; line-height: 1.4; color: var(--ink-2); max-width: 32em; text-wrap: pretty }
.hero-tags { grid-row: 5; margin-top: 16px; font: 500 var(--t-label-xs)/1.5 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2) }
.hero .btns { grid-row: 6; margin-top: 20px }
/* The photo sits in the bottom right corner of the screen, flush with both edges. */
.hero-fig { grid-column: 7 / 13; grid-row: 1 / -1; align-self: start; position: relative;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--in)) / 2))) }
.hero-fig img { width: 100%; height: auto; aspect-ratio: 1; max-height: calc(100dvh - 130px); min-height: 360px; object-fit: cover; object-position: 46% 60% }
.hero-fig figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; font-size: var(--t-xs); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .55) }

/* The facts a buyer checks first, in one line under the hero. */
.trust { list-style: none; margin-block: 0; width: 100%; display: flex; flex-wrap: wrap; gap: 8px 40px; padding-block: 20px; font: 500 var(--t-label)/1.3 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink) }

/* One design, one price: offset title and a collage. */
.one { padding-block: var(--sec) 0 }
.one-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; margin-top: 40px; align-items: start }
.one-a, .one-b, .st-a, .st-b { overflow: hidden }   /* the photo opens slightly enlarged; keep that inside its frame */
.one-a { grid-column: 1 / 5; grid-row: 1 / 3 }
.one-a img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover }
.one-t { grid-column: 6 / 9; display: grid; gap: 32px }
.one-t2 { grid-column: 10 / 13; display: grid; gap: 28px; justify-items: start }
.one-t p, .one-t2 p { font-size: var(--t-base); color: var(--ink-2) }
.one-b { grid-column: 9 / 13; grid-row: 2; margin-top: 48px }
.one-b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.one .disc, .st-disc { margin-top: 32px }   /* clear of the drifting photo above */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px }
.facts div { border-top: 1px solid var(--ink); padding-top: 12px; display: grid; gap: 2px }
.facts dt { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums }
.facts dd { font: 500 var(--t-xs)/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2) }

/* The garden room: drawings in a viewer, price row under it. */
.band { background: var(--olive); color: var(--on-olive) }
/* On the olive: sand type and labels; the panels inside keep the light ground and dark type. */
.band .lbl, .band .split, .band .prod-note, .band .contact-txt > p, .band .contact-txt .mail, .band > .in > .disc { color: var(--on-olive) }
.band .lbl i { background: var(--on-olive) }
.band .tabs { background: none; box-shadow: inset 0 0 0 1px rgba(242, 238, 230, .35) }   /* sand on plain olive, 5.0:1: a lighter ground under it fell to 3.8:1 */
.band .tabs button { color: var(--on-olive) }
.band .tabs button[aria-selected="true"] { background: var(--on-olive); color: var(--ink) }
.band .wa-inline { background: none; color: var(--on-olive); border-color: rgba(242, 238, 230, .35) }
.band .wa-inline:hover { background: var(--on-olive); color: var(--ink) }
.band .sheet, .band .viewer .cap, .band .buy, .band .form { color: var(--ink) }
.prod { margin-top: var(--sec); padding-block: var(--sec) }
.prod-in { display: grid; gap: 24px }
.prod-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px }
.prod-head > div:first-child { flex: 1 1 520px; min-width: 0 }
.prod-note { margin-top: 20px; color: var(--ink-2); max-width: 52ch }
.how-p { margin-top: 20px; font-size: var(--t-md); color: var(--ink-2) }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: var(--r) }
.tabs button { font: 500 var(--t-label)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: transparent; border: 0;
  border-radius: 2px; padding: 11px 14px; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease) }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg) }
.viewer { background: var(--panel); border-radius: var(--r); padding: clamp(16px, 3vw, 48px) }
.pan { display: grid; gap: 12px }
.sheet { display: flex; justify-content: center }
.sheet .dw { width: 100%; height: auto; max-height: 640px; font-family: var(--sans) }
.sheet .dw > rect:first-of-type { fill: transparent }
/* Service cards and service pages */
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; width: 100% }
.sv { display: grid; gap: 12px; align-content: start; color: var(--ink); text-decoration: none; min-width: 0 }
.sv-img { display: block; overflow: hidden; border-radius: var(--r) }
.hero-fig img, .sv-img img, .svc-f img, .svc-f2 img { filter: saturate(.86) sepia(.06) }   /* the renders are cooler and greener than the rest */
.sv-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s var(--ease) }
.sv:hover .sv-img img { transform: scale(1.03) }
.sv-t { display: grid; gap: 6px }
.sv-t b { font-size: var(--t-md); font-weight: 600 }
.sv-t span { color: var(--ink-2); font-size: var(--t-sm) }
.sv-t u { font-size: var(--t-sm); font-weight: 600; color: var(--terra-2); text-underline-offset: 3px }
.sv-big { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center }
.sv-big .sv-t b { font-size: var(--t-lg) }
.sv-small .sv-img img { aspect-ratio: 16 / 10 }
.h-sm { margin: 0; font-size: var(--t-lg); font-weight: 600; letter-spacing: -.02em; line-height: 1.15 }
.how3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: var(--sec) }
.svc2 + .how3 { padding-top: 0 }
.how3-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px }
.w3 { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--ink) }
.w3 b { color: var(--terra-2); font-weight: 600 }
.w3 h3 { margin: 0; font-size: var(--t-md); font-weight: 600 }
.w3 p { margin: 0; color: var(--ink-2); font-size: var(--t-sm) }
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; padding-block: 112px 64px }
.svc-t { display: grid; gap: 20px; justify-items: start }
.svc-h { margin: 0; font-size: var(--t-xl); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance }
.svc-i { margin: 0; font-size: var(--t-md); color: var(--ink-2); max-width: 46ch }
.svc-pr { margin: 0; color: var(--ink-2) }
.svc-pr b { display: block; font-size: var(--t-lg); color: var(--ink); font-weight: 600 }
.svc-f { position: relative; margin: 0; overflow: hidden; border-radius: var(--r) }
.svc-f img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover }
.svc-f figcaption { position: absolute; left: 14px; right: 14px; bottom: 10px; font-size: var(--t-xs); color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .6) }
.svc2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-bottom: 72px }
.svc-c { display: grid; gap: 14px; align-content: start }
.svc-c h3 { margin: 8px 0 0; font-size: var(--t-md); font-weight: 600 }
.svc-c p { margin: 0; color: var(--ink-2); max-width: 56ch }
.svc-l { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2) }
.svc-more a { color: var(--terra-2); text-decoration: underline; text-underline-offset: 3px }
.svc-f2 { margin: 0; overflow: hidden; border-radius: var(--r) }
.svc-f2 img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover }
@media (max-width: 860px) {
  .sv-grid, .how3-g { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .sv-big { grid-template-columns: minmax(0, 1fr); gap: 12px }
  .svc, .svc2 { grid-template-columns: minmax(0, 1fr); padding-block: 96px 40px }
  .svc2 { padding-block: 0 56px }
}
@media (max-width: 560px) { .sv-grid, .how3-g { grid-template-columns: minmax(0, 1fr) } }
.meer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: start; padding-block: var(--sec) }
.meer-p { max-width: 62ch; font-size: var(--t-md); color: var(--ink-2) }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; width: 100% }
.more-i { display: grid; gap: 10px; align-content: start; padding-top: 16px; border-top: 1px solid var(--ink) }
.more-i h3 { margin: 0; font-size: var(--t-md); font-weight: 600 }
.more-i p { margin: 0; color: var(--ink-2); font-size: var(--t-sm) }
.link-more { font-size: var(--t-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--terra-2) }
@media (max-width: 860px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .more-grid { grid-template-columns: minmax(0, 1fr) } }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center }
.reals { display: grid; gap: 12px }
.real { display: block; width: 100%; height: auto; border-radius: var(--r) }
@media (max-width: 860px) { .pair { grid-template-columns: minmax(0, 1fr) } }
.cad { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; mix-blend-mode: multiply }
.tabs { flex-wrap: wrap }
.prod-head > *, .prod-in > * { min-width: 0 }
@media (max-width: 600px) { .cad { min-width: 640px; max-height: none } }
.sheet .tall { display: none }
.sheet .wide, .sheet .tall { width: 100% }
.cap { font-size: var(--t-sm); color: var(--ink-2); text-align: center }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; gap: 40px; align-items: center;
  background: var(--panel); border-radius: var(--r); padding: clamp(20px, 2.6vw, 32px) }
.price { display: grid; gap: 4px }
.price small, .price span { font: 500 var(--t-xs)/1.3 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2) }
.price b { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap }
.incl { display: grid; gap: 6px }
.incl b { font-size: var(--t-sm); font-weight: 600 }
.incl p { font-size: var(--t-sm); color: var(--ink-2) }

/* How we build: cards that stack as you scroll, offset left and right. */
.how { padding-block: var(--sec) 0 }
.stack { display: grid; gap: 32px; margin-top: 56px; padding-bottom: 8vh }
.card { position: sticky; top: 96px; width: min(62%, 860px); margin-left: calc(var(--o) * 1%); min-height: 380px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 16px 32px;
  background: var(--panel); border-radius: var(--r); padding: 28px; transform-origin: 50% 0; box-shadow: 0 1px 0 var(--line) }
.card-n { grid-column: 1 / -1; justify-self: end; font: 500 var(--t-xs)/1 var(--sans); color: var(--terra-2) }
.card-n span { color: var(--ink-2) }
.card h3 { grid-column: 1; grid-row: 2; font-size: var(--t-lg); line-height: 1.05 }
.card p { grid-column: 1; grid-row: 3; align-self: end; font-size: var(--t-sm); color: var(--ink-2); max-width: 36ch }
.card-img { grid-column: 2; grid-row: 2 / 4; display: block; min-height: 260px; background-color: var(--card); background-repeat: no-repeat }
.card-img.on-white, .gthumb.on-white { background-color: #fff }   /* product photos on white: the concrete block */
.gal.is-pin .slide.on-white { background: #fff }
.gal.is-pin .slide.on-white img { object-fit: contain; padding-block: 14vh }
.how .disc { margin-top: 8px }

/* Materials: a pinned gallery. Without the pin (phones, no JS) it is a list. */
.gal { padding-block: var(--sec) 0 }
.gal-head { display: grid; justify-items: start }
.gal-head p { margin-top: 24px; color: var(--ink-2); max-width: 52ch; justify-self: end; margin-right: 8% }
.gal-stage { position: relative; margin-top: 56px }
.gal-slides, .gal-idx { display: none }
.gal-cards { max-width: var(--in); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.gcard { background: var(--panel); border-radius: var(--r); padding: 10px 10px 16px; display: grid; gap: 10px; align-content: start }
.gl { display: flex; justify-content: space-between; align-items: center; font: 500 var(--t-label-xs)/1.2 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2) }
.gl i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none }
.gthumb { display: block; aspect-ratio: 16 / 10; background-color: var(--card); background-repeat: no-repeat }
.gcard h3 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15 }
.gcard p { font-size: var(--t-sm); color: var(--ink-2) }
.gal-disc { margin-block: 12px var(--sec) }
/* Pinned (set by bloom.js on wide screens): photo fills the screen, cards travel over it. */
.gal.is-pin .gal-stage { height: 100vh; overflow: hidden; margin-top: 48px }
.gal.is-pin .gal-slides { display: block; position: absolute; inset: 0 }
.gal.is-pin .slide { position: absolute; inset: 0; overflow: hidden }
.gal.is-pin .slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform-origin: var(--pos) }
.gal.is-pin .gal-idx { display: grid; gap: 8px; position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; z-index: 2 }
.gal.is-pin .gal-idx li { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r); font: 500 var(--t-label-xs)/1 var(--sans);
  background: rgba(242, 238, 230, .55); color: var(--ink-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .3s, color .3s }
.gal.is-pin .gal-idx li.on { background: var(--panel); color: var(--ink) }
.gal.is-pin .gal-cards { display: block; position: absolute; inset: 0; padding: 0; max-width: none; z-index: 3; pointer-events: none }
.gal.is-pin .gcard { position: absolute; left: 50%; top: 50%; width: min(340px, 30vw); box-shadow: 0 30px 60px -30px rgba(18, 18, 18, .45); pointer-events: auto }

/* Garden studio: text, and two photos that drift at different speeds. */
.studio { padding-block: var(--sec) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start }
.studio-t { grid-column: 1 / 7; grid-row: 1; display: grid; justify-items: start; gap: 0; position: relative; z-index: 2 }
.studio-t .blur { margin-top: 28px; font-size: var(--t-md); line-height: 1.45; color: var(--ink); max-width: 30ch }
.studio-t .btn { margin-top: 28px }
.st-a { grid-column: 7 / 13; grid-row: 1 / 3 }
.st-a img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover }
.st-b { grid-column: 3 / 7; grid-row: 2; margin-top: 40px }
.st-b img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover }
.st-disc { grid-column: 1 / -1 }

/* Contact: text and the form. */
/* Questions: one line each, open to read. The answers are in the page for search engines and AI as well. */
.faq { padding-block: var(--sec) }
.faq-list { margin-top: 40px; max-width: 900px; border-bottom: 1px solid var(--line) }
.qa { border-top: 1px solid var(--line) }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0 }
.qa summary::-webkit-details-marker { display: none }
.qa summary h3 { font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.3 }
.qa summary::after { content: "+"; flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r); background: var(--card);
  font: 400 22px/1 var(--sans); color: var(--ink); transition: background-color .3s var(--ease), color .3s var(--ease) }
@media (hover: hover) { .qa summary:hover::after { background: var(--ink); color: var(--bg) } }   /* no sticky black on touch */
.qa[open] summary::after { content: "\2212"; background: var(--terra); color: #fff }   /* minus */
.qa summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px }
.qa p { padding: 0 64px 24px 0; max-width: 70ch; font-size: var(--t-base); color: var(--ink-2) }
.qa p a { color: var(--ink); text-underline-offset: 3px }
.contact { padding-block: var(--sec) }
.contact-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 96px); align-items: start }
.contact-txt { display: grid; justify-items: start; position: sticky; top: 104px }
.contact-txt > p { margin-top: 24px; color: var(--ink-2); max-width: 44ch }
.contact-txt .mail { margin-top: 8px; color: var(--ink); font-weight: 600; user-select: all }
.form { background: var(--panel); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px }
.form-body { display: grid; gap: 32px }
.fgroup { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 16px }
.fgroup legend { float: left; width: 100%; padding: 0; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2 }   /* float: an ordinary grid item, with the same gap as the fields */
.fgroup + .fgroup { padding-top: 32px; border-top: 1px solid var(--line) }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.field { display: grid; gap: 8px; min-width: 0; align-content: start }
.field label { font: 500 var(--t-label)/1.2 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink) }
.field label small { font-weight: 400; color: var(--ink-2); text-transform: none; letter-spacing: 0 }
.field input, .field textarea, .field select { font: inherit; font-size: var(--t-base); color: var(--ink); background: #fff;
  border: 1px solid var(--field); border-radius: var(--r); padding: 0 14px; height: 48px; width: 100%; min-width: 0; transition: border-color .2s, box-shadow .2s }
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5 }
.field input::placeholder, .field textarea::placeholder { color: #6C706F }   /* 5.0:1 on the white field */
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18, 18, 18, .12) }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%23121212%27 stroke-width=%271.5%27/%3E%3C/svg%3E") no-repeat right 14px center }
.field small { font-size: var(--t-xs); color: var(--ink-2) }
.field .err { display: none; font-size: var(--t-sm); color: var(--err) }
.field.invalid .err { display: block }
.field.invalid input, .field.invalid select { border-color: var(--err) }
.tel { display: flex; gap: 8px }
.field .tel select { flex: none; width: auto }
.field .tel input { flex: 1 1 auto }
.addr { display: grid; grid-template-columns: minmax(0, 1fr) 6.5em 5.5em; gap: 0 12px }
.addr .addr-hint { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: 8px }
.addr .pc-found { font-size: var(--t-sm); color: var(--ink) }
.addr .pc-outside { font-size: var(--t-sm); color: var(--warn) }
.addr .addr-hint small { font-size: var(--t-xs); color: var(--ink-2) }
.photos[hidden], .photos [hidden] { display: none }
.photos { grid-template-columns: minmax(0, 1fr) }   /* the auto-fill thumbnails would size the column to max-width otherwise */
.field .ph-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; max-width: 520px }
.ph-list li { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--card) }
.ph-list img { display: block; width: 100%; height: 100%; object-fit: cover }
.ph-rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(18, 18, 18, .78); color: #fff; font: 400 18px/1 var(--sans); cursor: pointer }
.ph-rm:hover { background: var(--ink) }
.ph-add { justify-self: start }
.ph-err { font-size: var(--t-sm); color: var(--err) }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.form-foot { display: grid; gap: 10px; justify-items: start; margin-top: 8px }
.form-error { font-size: var(--t-sm); color: var(--err) }
.form-error .btn { margin-top: 10px }
/* Privacy and terms: one reading column under the header. Terms articles number as 3.1, 3.2. */
.doc { padding-top: 140px; padding-bottom: var(--sec); counter-reset: art; overflow-wrap: break-word; hyphens: auto }   /* Dutch compounds are long */
.doc > * { max-width: 760px }
.doc h1 { font-size: clamp(34px, 6vw, 72px); margin-bottom: 24px }
.doc-intro { font-size: var(--t-md); line-height: 1.5; color: var(--ink-2); margin-bottom: 40px }
.doc section { padding: 28px 0; border-top: 1px solid var(--line); counter-increment: art }
.doc h2 { font-size: var(--t-md); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 14px }
.doc p, .doc li { font-size: var(--t-base); line-height: 1.6; color: var(--ink-2) }
.doc section p + p, .doc section p + ul, .doc section ul + p { margin-top: 12px }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px }
.doc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: lid }
.doc ol li { position: relative; padding-left: 3.2em; counter-increment: lid }
.doc ol li::before { content: counter(art) "." counter(lid); position: absolute; left: 0; top: .15em; font: 500 var(--t-label)/1.6 var(--sans); color: var(--ink) }
.doc b { color: var(--ink); font-weight: 600 }
.doc a { color: var(--ink); text-underline-offset: 3px }
.doc-date { margin-top: 32px; font: 500 var(--t-label)/1.4 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2) }
.privacy a, .legal a { text-underline-offset: 3px }
.nf { min-height: 100dvh; display: grid; align-content: center; gap: 32px; padding-block: 80px }
.nf .mega { padding: 0 }
.privacy { font-size: var(--t-xs); color: var(--ink-2) }
.form-status { display: none; padding: 8px 0 }
.form-status.show { display: grid; gap: 6px }
.form-status b { font-size: var(--t-md); font-weight: 600 }
.form-status p { color: var(--ink-2); font-size: var(--t-sm) }

/* Footer: two cards and the wordmark, cut by the bottom edge. */
.foot { padding-top: 40px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ink); color: var(--on-olive) }
.foot :focus-visible { outline-color: var(--on-olive) }
.foot-cards { display: grid; grid-template-columns: 1fr 2fr; gap: 8px }
.fc { border-radius: var(--r); padding: 20px }
.fc { border: 1px solid rgba(242, 238, 230, .2) }
.fc-nav { display: grid; gap: 20px; align-content: space-between; min-height: 260px }
.fbig { display: grid; gap: 4px; font-size: var(--t-md); font-weight: 600 }
.fbig a { text-decoration: none }
.fbig a:hover { text-decoration: underline; text-underline-offset: 4px }
.fsmall { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 500 var(--t-label)/1 var(--sans); text-transform: uppercase; letter-spacing: .06em }
.fsmall a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-olive) }
.fc-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start }
.fc-info div { display: grid; gap: 6px; align-content: start }
.fc-info small { font: 500 var(--t-label-xs)/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: rgba(242, 238, 230, .78) }
.fc-info b { font-weight: 600 }
.fc-info b a, .contact-txt .mail a { text-decoration: none }
.fc-info b a:hover, .contact-txt .mail a:hover { text-decoration: underline; text-underline-offset: 3px }
.soc { display: flex; flex-wrap: wrap; gap: 8px }   /* icons only; the names are in aria-label */
.soc a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600 }
.soc i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r); background: rgba(242, 238, 230, .12); transition: background-color .25s var(--ease), color .25s var(--ease) }
.soc svg { width: 18px; height: 18px; fill: currentColor }
.soc a:hover i { background: var(--on-olive); color: var(--ink) }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 var(--t-label-xs)/1.45 var(--sans); text-transform: uppercase; letter-spacing: .04em; color: rgba(242, 238, 230, .78) }
.legal a { color: var(--on-olive); text-underline-offset: 3px }
/* The Stavhaus line, closing the page above the wordmark. */
.mega-foot { margin-top: clamp(56px, 8vw, 112px); color: var(--on-olive) }
.slogan { width: 100%; margin-top: 32px; padding-bottom: 96px; font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05 }   /* the last line of the page, and room for the WhatsApp button below it */

/* WhatsApp: a fixed button in the bottom-right corner, and one in the contact text. */
.wa-float { position: fixed; z-index: 25; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 16px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); text-decoration: none; font: 600 var(--t-btn)/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid rgba(242, 238, 230, .25); box-shadow: 0 16px 40px -16px rgba(18, 18, 18, .55); transition: transform .2s var(--ease), background-color .3s var(--ease), opacity .25s var(--ease), visibility .25s }
.wa-float.off { opacity: 0; visibility: hidden }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex: none }
.wa-float:hover { background: #2B3033 }
.wa-float:active { transform: scale(.97) }
.wa-inline { margin-top: 20px }
.wa-inline::before { display: none }
.wa-inline i { display: grid; place-items: center }
.wa-inline svg { width: 16px; height: 16px; fill: currentColor }

/* Reduced motion: still, complete. */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* Tablet */
@media (max-width: 1024px) {
  .one-t { grid-column: 6 / 13 }
  .one-t2 { grid-column: 6 / 13 }
  .one-b { grid-column: 6 / 13; grid-row: 3 }
  .card { width: min(78%, 860px); margin-left: calc(var(--o) * .5%) }
  .buy { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) }
  .buy .btn { grid-column: 1 / -1; justify-self: start }
  .gal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
/* Phone and small tablet */
/* Below 1000 px the header no longer fits on one line (measured: it needs 986 px): the phone menu takes over. */
@media (max-width: 1000px) {
  :root { --t-menu: 24px }
  .links, .bar .lang, .cta-top { display: none }
  .burger { display: inline-flex }
}

@media (max-width: 860px) {
  :root { --sec: 72px }
  .wa-float.off-sm { opacity: 0; visibility: hidden }
  /* Stacked: message and buttons first, then the photo, so both are on the first screen; the list of work under the photo. */
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none }
  .hero .mega, .tag, .hero-sub, .hero .btns, .hero-tags, .hero-fig { grid-column: 1; grid-row: auto }
  .tag { padding-top: 12px }
  .hero-fig { order: 1; margin: 24px calc(-1 * var(--gutter)) 0; align-self: auto }
  .hero-fig img { aspect-ratio: 3 / 2; max-height: none; min-height: 0 }
  .hero-tags { order: 2 }
  .trust { order: 3 }
  .split .l2 { padding-left: 14% }
  .one-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px }
  .one-a { grid-column: 1 / -1; grid-row: auto }
  .one-a img { aspect-ratio: 4 / 3 }
  .one-t, .one-t2 { grid-column: 1 / -1 }
  .one-b { grid-column: 1 / -1; grid-row: auto; margin-top: 0 }
  .buy { grid-template-columns: 1fr; gap: 16px }
  .sheet { overflow-x: auto; justify-content: flex-start }
  .sheet.frame .wide { display: none }
  .sheet.frame .tall { display: block }
  .sheet.frame .dw { min-width: 520px; max-height: none }
  .card { width: 100%; margin-left: 0; grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; min-height: 0; top: 76px }
  .card-img { grid-column: 1; grid-row: 2; min-height: 200px }
  .card h3 { grid-row: 3 } .card p { grid-row: 4 }
  .gal-head p { justify-self: start; margin-right: 0 }
  .studio { grid-template-columns: 1fr 1fr; gap: 16px 12px }
  .studio-t { grid-column: 1 / -1 }
  .studio-t .blur { max-width: 52ch }   /* as wide as the other texts on an iPad */
  .st-a { grid-column: 1 / -1; grid-row: auto }
  .st-a img { aspect-ratio: 4 / 3 }
  .st-b { grid-column: 1 / -1; grid-row: auto; margin-top: 0 }
  .contact-in { grid-template-columns: 1fr }
  .contact-txt { position: static }
  .foot-cards { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  /* Phones: notes, labels and buttons one more step, the menu larger still. Headings stay. */
  .hero .mega { display: none }   /* the logo is right above it; the room goes to the photo */
  .tag { padding-top: 8px }
  .hero-sub { font-size: 18px }
  .split .l2 { padding-left: 0 }   /* the offset left an empty margin and looked broken at this width */
  :root { --sec: 64px; --t-xs: 14px; --t-md: 21px; --t-label-xs: 14px; --t-btn: 15px; --t-btn-sm: 14px; --t-menu: 28px }
  .wa-float { width: 52px; padding: 0; justify-content: center }
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0) }
  .gal-cards { grid-template-columns: 1fr }
  .row2 { grid-template-columns: 1fr }
  .facts { gap: 16px 12px }
  .fc-info { grid-template-columns: 1fr }
  .qa p { padding-right: 0 }
  /* The plan for phones fits the width (no sideways panning) with larger text. */
  .sheet.plan .wide { display: none }
  .sheet.plan .tall { display: block }
  .sheet.plan .dw { max-height: none }
}
/* Postcode on its own line below 380 px: three fields in one row leave it too narrow. */
@media (max-width: 380px) {
  .addr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px }
  .addr > .field:first-child { grid-column: 1 / -1 }
}
