/* Stavhaus Bloom. A product page for one timber garage.

   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 stay light: the owner asked for a light page with
   black type and architectural neutrals, so black takes the reference's red.

   System:
   - Type: General Sans for everything, Sono (mono) for labels and numbers.
   - 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. */

:root {
  color-scheme: light;
  --bg: #f3f3f1; --card: #e8e8e5; --panel: #fbfbfa;
  --ink: #121212; --ink-2: #565653; --ink-3: #6e6e6a; --mute: #8a8a86; --line: #d9d9d5; --field: #c9c8c3;
  --err: #a0261d; --warn: #7a5200;
  --sans: "General Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Sono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --in: 1440px; --gutter: clamp(16px, 2.4vw, 40px);
  --sec: clamp(96px, 12vw, 176px);
  --r: 4px;
  --t-xs: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 19px;
  /* mono labels, buttons and the phone menu; larger on phones (see the 560px block) */
  --t-mono-xs: 11px; --t-mono: 12px; --t-btn: 13px; --t-btn-sm: 12px; --t-menu: 13px;
  --t-lg: clamp(26px, 2.4vw, 36px);
  --t-tag: clamp(26px, 2.7vw, 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-3) }
: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 mono capitals. */
.lbl { display: flex; align-items: center; gap: 10px; font: 500 var(--t-xs)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 20px }
.lbl i { width: 16px; height: 5px; background: var(--ink); 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(--ink); color: var(--bg) }
.btn.pri:hover { background: #2c2c2b }
.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(232, 232, 229, .78); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%) }
.logo { display: inline-flex; align-items: flex-end; gap: 10px; font-weight: 600; letter-spacing: .14em; font-size: 15px; line-height: 1; text-decoration: none }
.logo span { display: block; line-height: 1; transform: translateY(1px) }
.logo .bars { display: flex; align-items: flex-end; gap: 3px; height: 11px; margin-bottom: 1px }
.logo .bars i { display: block; width: 3px; background: currentColor }
.links { display: flex; gap: 24px; margin-left: auto; margin-right: auto; font: 500 var(--t-mono)/1 var(--mono); letter-spacing: .06em; text-transform: uppercase }
.links a { text-decoration: none; color: var(--ink-2); transition: color .2s }
.links a:hover { color: var(--ink) }
.lang { font: 500 var(--t-mono)/1 var(--mono); 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) }   /* 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 }

/* Hero: the wordmark across the page, the line under it, intro and photo. */
.hero { padding-top: 72px; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; 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 }
.hero-grid { width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 0 24px; padding-block: 28px 0 }
.tag { grid-column: 1 / 6; font-size: var(--t-tag); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; color: var(--mute) }
.tag b { color: var(--ink); font-weight: 600 }
.intro { grid-column: 1 / 6; grid-row: 2; align-self: end; padding-bottom: 32px; display: grid; gap: 20px; font-size: var(--t-sm); color: var(--ink-2); max-width: 52ch }
.intro b { color: var(--ink); font-weight: 600 }
/* The photo sits in the bottom right corner of the screen, flush with both edges. */
.hero-fig { grid-column: 6 / 13; grid-row: 1 / 3; align-self: end; position: relative;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--in)) / 2))) }
.hero-fig img { width: 100%; height: clamp(320px, calc(100dvh - 330px), 720px); object-fit: cover; object-position: 50% 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) }

/* 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 { margin-top: 16px }
.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(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3) }

/* The garage: drawings in a viewer, price row under it. */
.band { background: var(--card) }
.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-mono)/1 var(--mono); 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 }
.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(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3) }
.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(--mono); color: var(--ink) }
.card-n span { color: var(--mute) }
.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-mono-xs)/1.2 var(--mono); 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-top: 12px }
/* 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-mono-xs)/1 var(--mono);
  background: rgba(243, 243, 241, .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. */
.contact { margin-top: var(--sec); 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: 16px }
.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-mono)/1.2 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink) }
.field label small { font-weight: 400; color: var(--ink-3); 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: #85847f }
.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-3) }
.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-3) }
.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 }
.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-3) }
.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) }
.foot-cards { display: grid; grid-template-columns: 1fr 2fr; gap: 8px }
.fc { border-radius: var(--r); padding: 20px }
.fc-nav { background: var(--panel); 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; gap: 16px; font: 500 var(--t-mono)/1 var(--mono); text-transform: uppercase; letter-spacing: .06em }
.fsmall a { text-decoration: none; color: var(--ink-2) }
.fc-info { background: var(--card); 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-mono-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3) }
.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: grid; gap: 8px; justify-items: start }
.soc a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600 }
.soc i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); background: var(--bg); transition: background-color .25s var(--ease), color .25s var(--ease) }
.soc svg { width: 16px; height: 16px; fill: currentColor }
.soc a:hover i { background: var(--ink); color: var(--bg) }
.legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 var(--t-mono-xs)/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3) }
.legal a { color: var(--ink); text-underline-offset: 3px }
/* The Stavhaus line, closing the page above the wordmark. */
.slogan { width: 100%; margin-top: clamp(56px, 8vw, 112px); font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05 }
.mega-foot { margin-top: 24px; margin-bottom: -.2em }

/* 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;
  box-shadow: 0 16px 40px -16px rgba(18, 18, 18, .55); transition: transform .2s var(--ease), background-color .3s var(--ease) }
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex: none }
.wa-float:hover { background: #2c2c2b }
.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) {
  .tag { grid-column: 1 / 7 }
  .intro { grid-column: 1 / 7 }
  .hero-fig { grid-column: 7 / 13 }
  .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 */
@media (max-width: 860px) {
  /* Tablets: half a step up; phones get the full step below. */
  :root { --t-xs: 13px; --t-sm: 15px; --t-mono-xs: 12px; --t-mono: 13px; --t-btn: 14px; --t-btn-sm: 13px; --t-menu: 24px }
  .links, .bar .lang, .cta-top { display: none }
  .burger { display: inline-flex }
  .hero { min-height: 0 }
  .hero-grid { grid-template-columns: 1fr; gap: 24px }
  .tag, .intro, .hero-fig { grid-column: 1; grid-row: auto }
  .intro { padding-bottom: 0 }
  .hero-fig { margin-inline: calc(-1 * var(--gutter)) }
  .hero-fig img { height: auto; aspect-ratio: 4 / 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.plan .dw { min-width: 560px; max-height: none }
  .sheet .wide { display: none }
  .sheet .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 }
  .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: every small size one step up (about 15 %), the menu much larger. Headings stay. */
  :root { --t-xs: 14px; --t-sm: 16px; --t-base: 17px; --t-md: 21px;
    --t-mono-xs: 13px; --t-mono: 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 }
}
/* 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 }
}
