/* DoorMan: every style for the one-page site.
   Tokens first; sections follow the page order. Motion states live at the end and only apply under html.js
   (html.is-static = reduced motion or ?qa=1, which shows the final state). */

/* ---------- fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/big-shoulders-display-var.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --wood: #6B4129;          /* primary: the brown of the hero panel */
  --wood-hi: #8F5D3D;       /* light end of the panel shading */
  --wood-lo: #4A2B1B;       /* dark end of the panel shading */
  --wood-deep: #4A2C1D;     /* headings, buttons, footer */
  --ink: #33201A;           /* body text */
  --muted: #6E5646;         /* secondary text: 5.7:1 on cream, 6.9:1 on white */
  --cream: #EFEAE3;         /* page ground */
  --paper: #F8F5F0;         /* light panels */
  --white: #FFFFFF;
  --on-wood: #F6EEE5;       /* text on the wood panel: 5:1 at its lightest corner */
  --on-wood-2: #EADBCB;     /* quieter text on wood */
  --tan: #D9B48F;
  --rust: #C8602A;          /* the logo orange: the order badge only */
  --line: rgba(74, 44, 29, .14);
  --line-2: rgba(74, 44, 29, .3);
  --shadow: 0 1px 2px rgba(51, 32, 26, .06), 0 18px 40px -18px rgba(51, 32, 26, .28);

  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1400px;
  --gutter: clamp(16px, 3.6vw, 40px);
  --header-h: 76px;
  --sec: clamp(60px, 6.6vw, 98px);
  --gap: clamp(12px, 1.4vw, 20px);
  --light-w: clamp(320px, 34vw, 560px);   /* the cream right-hand panel of the hero */
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
main, section { display: block; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--wood); color: var(--on-wood); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 200; padding: 12px 16px; background: var(--wood-deep); color: #fff; font: 700 13px var(--sans); transform: translateY(-160%); transition: transform .25s var(--ease-out); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); overflow-x: clip; }
.mono { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 1.75; letter-spacing: .06em; text-transform: uppercase; }

/* headings: tall condensed capitals, like the reference */
.h2 { font: 800 clamp(42px, 4.5vw, 66px)/.94 var(--display); text-transform: uppercase; letter-spacing: .002em; color: var(--wood-deep); }
.h2--center { text-align: center; }
.h3 { font: 800 clamp(32px, 3vw, 46px)/.95 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.eyebrow { font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(30px, 4vw, 54px); }

/* ---------- buttons: a label and a boxed arrow, like the reference ---------- */
.btn { --bg: var(--wood-deep); --fg: var(--white); display: inline-flex; align-items: stretch; min-height: 48px; padding: 4px; background: var(--bg); color: var(--fg); border: 0; border-radius: 0; text-decoration: none; cursor: pointer; font: 700 12.5px/1.1 var(--sans); letter-spacing: .07em; text-transform: uppercase; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.btn > span { display: flex; align-items: center; padding: 0 18px 0 16px; }
.btn__box { flex: none; display: grid; place-items: center; width: 40px; background: var(--fg); color: var(--bg); font-style: normal; transition: background-color .3s var(--ease-out), color .3s var(--ease-out); }
.btn__box svg { width: 17px; height: 17px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__box svg, .btn:focus-visible .btn__box svg { transform: translateX(3px); }
.btn--dark:hover { --bg: #5E3A26; }
.btn--light { --bg: var(--white); --fg: var(--wood-deep); }
.btn--light:hover { --bg: var(--paper); }
.btn--line { --bg: transparent; --fg: var(--wood-deep); box-shadow: inset 0 0 0 1.5px var(--wood-deep); color: var(--wood-deep); }
.btn--line .btn__box { color: var(--white); }
.btn--line:hover { --bg: rgba(74, 44, 29, .06); }
.btn--block { display: flex; width: 100%; }
.btn--block > span { flex: 1; justify-content: center; }
.btn:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 4px; }
.hero .btn:focus-visible, .menu .btn:focus-visible { outline-color: var(--on-wood); }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.icon-btn svg { width: 21px; height: 21px; }
.badge { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rust); color: #fff; font: 700 10.5px/18px var(--sans); text-align: center; }
.badge[hidden] { display: none; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: var(--on-wood); transition: transform .55s var(--ease-out), background-color .35s ease, box-shadow .35s ease, height .35s var(--ease-out); }
.header__bar { height: 100%; display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); }
/* the logo is the round emblem (its own cream badge, so it reads on wood and on cream alike). At the top of the page the
   compact emblem hangs below the bar over the wood hero; once the header turns solid it shrinks into the bar and
   crossfades to the door seal, because the name can't be read at 52 px */
.header__logo { position: relative; display: block; flex: none; align-self: flex-start; width: 104px; height: 104px; margin-top: 12px; border-radius: 50%; color: inherit; text-decoration: none; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin-top .35s var(--ease-out); }
.emblem { display: block; width: 100%; height: 100%; }
.header__logo .emblem { position: absolute; inset: 0; transition: opacity .3s ease; }
.header__logo .emblem--seal { opacity: 0; }
.site-header.is-solid .header__logo .emblem--badge { opacity: 0; }
.site-header.is-solid .header__logo .emblem--seal { opacity: 1; }
.site-header:not(.is-solid) .header__logo .emblem--badge { filter: drop-shadow(0 10px 16px rgba(28, 12, 4, .3)); }
.site-header.is-solid .header__tools { color: #3C1D0E; }
.header__nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.header__nav a { position: relative; display: block; padding: 10px 0; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: inherit; }
.header__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.header__nav a:hover::after, .header__nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__tools { margin-left: auto; display: flex; align-items: center; gap: 2px; color: var(--wood-deep); }
.header__phone { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 0; margin-right: 6px; border-right: 1px solid var(--line-2); font: 500 12px/1 var(--mono); letter-spacing: .05em; text-decoration: none; color: inherit; white-space: nowrap; }
.header__phone svg { width: 16px; height: 16px; }
.header__phone:hover span { text-decoration: underline; text-underline-offset: 3px; }
.header__menu { display: none; }
.site-header.is-solid { height: 64px; background: rgba(239, 234, 227, .94); color: var(--wood-deep); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); }
.site-header.is-solid .header__logo { width: 52px; height: 52px; margin-top: 6px; }
/* hidden states clear the bar plus the hanging emblem and its shadow */
.site-header.is-hidden { transform: translate3d(0, calc(-100% - 64px), 0); }

/* ---------- 1. hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(660px, 100svh, 940px); background: var(--paper); }
.hero__wood { position: absolute; inset: 0; z-index: -2; background: linear-gradient(32deg, var(--wood-lo) 0%, var(--wood) 52%, var(--wood-hi) 100%); }
/* a faint vertical grain, drawn as stretched noise: no image download */
.hero__wood::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply; background-size: 520px 520px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .006' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .1  0 0 0 0 .05  .9 0 0 0 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.hero__light { position: absolute; inset: 0 0 0 auto; z-index: -2; width: var(--light-w); background: var(--paper); }
.hero__inner { position: static; min-height: inherit; display: flex; align-items: center; padding-top: calc(var(--header-h) + 24px); padding-bottom: 56px; }
.hero__copy { position: relative; z-index: 3; width: min(600px, calc(100% - var(--light-w) - 120px)); color: var(--on-wood); }
.hero__title { font: 900 clamp(62px, 8.1vw, 124px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.002em; margin: 0 0 clamp(20px, 2.4vw, 30px); }
.hero__line { display: block; white-space: nowrap; }
.hero__line .ch { display: inline-block; will-change: transform; }
.hero__lede { max-width: 460px; margin-bottom: clamp(24px, 3vw, 34px); color: var(--on-wood); font-size: 12.5px; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 26px; margin-bottom: clamp(36px, 6vh, 64px); }
.hero__wa { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--on-wood); font: 700 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; }
.hero__wa svg { width: 20px; height: 20px; }
.hero__wa span { border-bottom: 1px solid rgba(246, 238, 229, .5); padding-bottom: 3px; transition: border-color .3s; }
.hero__wa:hover span { border-color: var(--on-wood); }
.hero__proof { display: flex; align-items: center; gap: 14px; }
.swatches { display: flex; padding-left: 10px; }
.swatches img { width: 42px; height: 42px; margin-left: -10px; border-radius: 50%; border: 2px solid var(--on-wood); object-fit: cover; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.hero__proof-text { display: grid; gap: 3px; }
.hero__proof-text b { font: 800 27px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.hero__proof-text .mono { font-size: 11px; line-height: 1.2; color: var(--on-wood-2); }

.hero__stage { position: absolute; z-index: 2; margin: 0; left: calc(100% - var(--light-w)); top: 52%; height: min(76%, 720px); aspect-ratio: 696 / 1200; transform: translate(-50%, -50%); }
.hero__fly { position: absolute; inset: 0; }
.hero__product { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__shadow { position: absolute; left: 14%; right: 14%; bottom: 0; height: 6%; background: radial-gradient(closest-side, rgba(38, 21, 12, .5), rgba(38, 21, 12, 0)); }
.hero__tag { position: absolute; left: 86%; top: 16%; display: grid; gap: 4px; padding: 11px 14px 12px; background: rgba(255, 255, 255, .92); color: var(--wood-deep); box-shadow: var(--shadow); white-space: nowrap; }
.hero__tag .mono { font-size: 10.5px; line-height: 1.1; color: var(--muted); }
.hero__tag b { font: 800 30px/.9 var(--display); }
.hero__thumbs { position: absolute; z-index: 3; right: var(--gutter); top: 52%; transform: translateY(-50%); display: flex; flex-direction: column; gap: clamp(6px, 1.4vh, 14px); }
.hero__thumb { display: grid; place-items: center; width: 62px; height: 82px; padding: 6px; background: transparent; border: 1px solid transparent; cursor: pointer; opacity: .66; transition: opacity .3s, border-color .3s, background-color .3s, transform .45s var(--ease-out); }
.hero__thumb img { width: 100%; height: 100%; object-fit: contain; }
.hero__thumb:hover { opacity: 1; transform: translateX(-3px); }
.hero__thumb[aria-pressed="true"] { opacity: 1; background: var(--white); border-color: var(--line); box-shadow: var(--shadow); }

/* ---------- 2. price list ---------- */
.range-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: calc(clamp(30px, 4vw, 54px) * -.45) 0 clamp(24px, 3vw, 38px); }
.range-filter[hidden] { display: none; }
.rf { min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--line-2); color: var(--wood-deep); cursor: pointer; font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out); }
.rf:hover { border-color: var(--wood-deep); }
.rf[aria-pressed="true"] { background: var(--wood-deep); border-color: var(--wood-deep); color: var(--white); }
.rf:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 3px; }
.products { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.4vw, 46px) var(--gap); }
.product { position: relative; display: flex; flex-direction: column; }
.product[hidden] { display: none; }
.product__kind { margin-top: 16px; font: 500 10.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.product__spec { margin-bottom: 8px; font: 500 13.5px/1.45 var(--sans); color: var(--muted); }
.product__img { position: relative; aspect-ratio: 1 / 1.1; overflow: hidden; background: var(--white); }
.product__img img { position: absolute; left: 0; top: 7%; width: 100%; height: 86%; object-fit: contain; transition: transform .8s var(--ease-out); }
.product:hover .product__img img { transform: scale(1.045); }
.product__name { margin: 6px 0 4px; font: 800 25px/1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.product__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.product__price b { font: 500 14px/1 var(--mono); color: var(--wood-deep); letter-spacing: .02em; }
.product__add { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; color: var(--wood-deep); font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .3s, color .3s; }
.product__add svg { width: 15px; height: 15px; transition: transform .45s var(--ease-out); }
.product__add:hover { border-color: var(--wood-deep); }
.product__add:hover svg { transform: rotate(90deg); }
.product__add.is-added svg { transform: none; }
.note { max-width: 780px; margin-top: clamp(26px, 3vw, 38px); font: 400 11.5px/1.8 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.note a { color: var(--wood-deep); text-underline-offset: 3px; }

/* ---------- 3. everything we make (marquee) ---------- */
.s-range { padding-bottom: calc(var(--sec) - 44px); }
.s-range .h2 { margin-bottom: clamp(34px, 4vw, 58px); }
.marquee { overflow: hidden; padding: 4px 0 40px; }
.marquee__track { display: flex; gap: var(--gap); width: max-content; padding-inline: var(--gutter); }
.tile:nth-child(even) { margin-top: 34px; }
.tile a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: clamp(138px, 12vw, 164px); aspect-ratio: 1; background: var(--white); color: var(--wood-deep); text-decoration: none; transition: background-color .35s var(--ease-out), color .35s var(--ease-out); }
.tile__icon { width: 50px; height: 50px; }
.tile span { padding-inline: 8px; text-align: center; font: 400 11px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.tile a:hover, .tile a:focus-visible { background: var(--wood-deep); color: var(--on-wood); }
.tile a:focus-visible { outline-offset: -6px; }
.marquee.is-ready .marquee__track { animation: marquee 56s linear infinite; }
.marquee.is-ready:hover .marquee__track, .marquee.is-ready:focus-within .marquee__track, .marquee.is-off .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(calc(var(--shift, 50%) * -1), 0, 0); } }

/* ---------- 4. three timbers ---------- */
.timbers { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.timber { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: var(--wood); color: var(--white); }
.timber img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.timber:hover img { transform: scale(1.04); }
.timber::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(52, 30, 19, .94) 0%, rgba(74, 44, 29, .62) 30%, rgba(74, 44, 29, .1) 58%, rgba(74, 44, 29, .22) 100%); }
.timber__tag { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 6px 9px; background: rgba(74, 44, 29, .38); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.timber__add { position: absolute; z-index: 2; right: 16px; top: 12px; min-height: 36px; padding: 0 12px; background: var(--white); border: 0; color: var(--wood-deep); cursor: pointer; font: 500 11px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; transition: background-color .3s; }
.timber__add:hover { background: var(--paper); }
.timber__add:focus-visible { outline-color: var(--white); }
.timber__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 26px); }
.timber__name { margin-bottom: 8px; font: 800 clamp(36px, 3.4vw, 52px)/.9 var(--display); text-transform: uppercase; }
.timber__price { margin-bottom: 8px; font: 400 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #F0E2D3; }
.timber__price b { font-weight: 500; font-size: 14px; color: var(--white); margin-right: 6px; }
.timber__note { max-width: 36ch; min-height: 4.5em; font: 500 14px/1.5 var(--sans); color: rgba(255, 255, 255, .88); }

/* ---------- 5. steelwork band ---------- */
.s-steel { position: relative; overflow-x: clip; }
.steel__media { position: relative; height: clamp(440px, 50vw, 780px); overflow: hidden; background: #D8CBBC; }
.steel__media picture, .steel__media img { width: 100%; height: 100%; }
.steel__media img { object-fit: cover; object-position: 62% 50%; transform-origin: 50% 60%; }
.steel__wrap { position: relative; z-index: 2; margin-top: -180px; }
.steel__card { max-width: 540px; padding: clamp(24px, 3vw, 42px); background: var(--paper); box-shadow: var(--shadow); }
.steel__text { margin: 14px 0 26px; max-width: 42ch; color: var(--muted); font-size: 15.5px; }

/* ---------- 6. why DoorMan ---------- */
.s-why { padding-top: calc(var(--sec) - 10px); }
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.why__list { display: grid; gap: clamp(18px, 2vw, 26px); margin-top: clamp(28px, 3.4vw, 46px); }
.why__list dt { margin-bottom: 7px; font: 800 23px/1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.why__list dd { max-width: 44ch; font: 400 12px/1.75 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.why__collage { position: relative; aspect-ratio: 1 / .9; }
.why__big { position: absolute; right: 0; top: 0; z-index: 1; width: 66%; height: 70%; overflow: hidden; }
.why__block { position: absolute; right: 0; top: 70%; z-index: 1; width: 66%; height: 16%; background: var(--wood); }
.why__small { position: absolute; left: 0; top: 48%; z-index: 2; width: 42%; aspect-ratio: 1; overflow: hidden; box-shadow: var(--shadow); }
.why__big img, .why__small img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 7. how to order ---------- */
.s-order .h2 { margin-bottom: clamp(34px, 4vw, 58px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.step { position: relative; display: flex; flex-direction: column; min-height: clamp(330px, 30vw, 400px); padding: clamp(22px, 2.4vw, 34px); background: var(--white); }
.step__icon { display: grid; place-items: center; width: 46px; height: 46px; background: var(--wood-deep); color: #F3E7DA; }
.step__icon svg { width: 22px; height: 22px; }
.step__num { position: absolute; right: clamp(18px, 2vw, 28px); top: clamp(8px, 1.2vw, 16px); font: 900 clamp(76px, 7.4vw, 112px)/1 var(--display); color: rgba(74, 44, 29, .09); }
.step__text { margin: auto 0 28px; padding-top: 48px; font: 700 clamp(22px, 1.9vw, 27px)/1.12 var(--display); text-transform: uppercase; letter-spacing: .004em; color: var(--wood-deep); }
.step__label b { display: block; margin-bottom: 4px; font: 800 19px/1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.step__label span { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 3.4vw, 46px); }
.order__actions [hidden] { display: none; }

/* ---------- 8. questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__lede { max-width: 34ch; margin-top: 22px; color: var(--muted); }
.faq__list { border-bottom: 1px solid var(--line-2); }
.faq__item { border-top: 1px solid var(--line-2); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none; font: 800 clamp(22px, 2vw, 28px)/1.1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-2); transition: border-color .3s, background-color .3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .45s var(--ease-out); }
.faq__item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__item summary:hover i { border-color: var(--wood-deep); }
.faq__item[open] summary i { background: var(--wood-deep); color: var(--white); border-color: var(--wood-deep); }
.faq__a { padding: 0 60px 26px 0; }
.faq__a p { max-width: 62ch; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.faq__item[open] .faq__a { animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translate3d(0, -6px, 0); } }

/* ---------- 9. closing call to action ---------- */
.s-cta { position: relative; overflow-x: clip; }
.cta__media { height: clamp(520px, 50vw, 760px); overflow: hidden; background: #D9CBBB; }
.cta__media picture, .cta__media img { width: 100%; height: 100%; }
.cta__media img { object-fit: cover; }
.s-cta > .wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cta__box { overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "h h" "t b"; align-items: end; gap: 18px 28px; width: min(100%, 1000px); padding: clamp(28px, 3.6vw, 54px); background: var(--white); box-shadow: var(--shadow); }
.cta__box .h2 { grid-area: h; }
.cta__text { grid-area: t; max-width: 440px; color: var(--muted); }
.cta__btn { grid-area: b; }

/* ---------- footer ---------- */
.site-footer { overflow: hidden; padding-top: clamp(64px, 7vw, 104px); color: var(--wood-deep); }
.foot__top { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 70px); align-items: start; }
.foot__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foot__kicker { margin-bottom: 12px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot__phone { display: inline-block; font: 800 clamp(40px, 4.6vw, 68px)/1 var(--display); letter-spacing: .004em; color: var(--wood-deep); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 9px; white-space: nowrap; }
.foot__phone:hover { text-decoration-thickness: 5px; }
.foot__how { margin-top: 20px; font: 400 12px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.foot__how a { color: var(--wood-deep); text-underline-offset: 3px; }
.foot__nav ul, .foot__links { display: grid; gap: 1px; }
.foot__nav a, .foot__links a { font: 800 clamp(22px, 2vw, 28px)/1.16 var(--display); text-transform: uppercase; text-decoration: none; color: var(--wood-deep); }
.foot__nav a:hover, .foot__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(52px, 7vw, 100px); }
.foot__mark { flex: 1 1 auto; min-width: 0; overflow: hidden; }
/* the full emblem (laurels and motto) only at 200 px and up, where its motto can be read */
.foot__emblem { display: block; width: clamp(200px, 17vw, 236px); height: auto; aspect-ratio: 1; }
.foot__links { flex: none; padding-bottom: .6%; }
.foot__legal { margin-top: clamp(26px, 3vw, 40px); padding: 18px 0 26px; border-top: 1px solid var(--line); font: 400 11px/1.7 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---------- order list drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(33, 20, 13, .45); opacity: 0; transition: opacity .4s ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(470px, 100%); background: var(--paper); box-shadow: -24px 0 60px -24px rgba(33, 20, 13, .4); transform: translate3d(100%, 0, 0); transition: transform .55s var(--ease-out); outline: none; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 12px 24px; border-bottom: 1px solid var(--line); }
.drawer__title { font: 800 32px/1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 26px; }
.drawer__empty { padding: 4px 0 18px; color: var(--muted); font-size: 15px; }
.drawer__empty[hidden] { display: none; }
.drawer__items { margin-bottom: 18px; }
.item { display: grid; grid-template-columns: 46px minmax(0, 1fr) 0; grid-template-areas: "img name line" "img ctrl ctrl"; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item__img { grid-area: img; display: grid; place-items: center; width: 46px; height: 58px; background: var(--white); color: var(--wood-deep); }
.item__img img { width: auto; height: 86%; }
.item__img svg { width: 30px; height: 30px; }
.item__name { grid-area: name; font: 800 19px/1.05 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.item__name small { display: block; margin-top: 3px; font: 400 11px/1.2 var(--mono); letter-spacing: .05em; color: var(--muted); }
.item__line { display: none; }
.item__ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 6px; }
.qty-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: var(--white); border: 1px solid var(--line-2); color: var(--wood-deep); cursor: pointer; }
.qty-btn svg { width: 15px; height: 15px; }
.qty-btn:hover { border-color: var(--wood-deep); }
.qty { min-width: 30px; text-align: center; font: 700 15px/1 var(--sans); }
.item__remove { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; background: none; border: 0; color: var(--muted); cursor: pointer; font: 400 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.item__remove svg { width: 16px; height: 16px; }
.item__remove:hover { color: var(--wood-deep); }
.drawer__label { margin-bottom: 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 10px 12px; background: var(--white); border: 1px solid var(--line-2); color: var(--wood-deep); cursor: pointer; font: 700 13px/1.1 var(--sans); transition: border-color .25s, background-color .25s; }
.chip b { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.chip:hover { border-color: var(--wood-deep); }
.drawer__fields { display: grid; gap: 14px; margin-top: 24px; }
.field span { display: block; margin-bottom: 6px; font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; }
.field input, .field textarea { display: block; width: 100%; padding: 11px 12px; background: var(--white); border: 1px solid rgba(74, 44, 29, .42); border-radius: 0; color: var(--ink); font: 500 16px/1.4 var(--sans); }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 1px; }
.drawer__foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 2px; }
.drawer__total span { font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.drawer__total b { font: 800 36px/1 var(--display); color: var(--wood-deep); }
.drawer__fine { margin-bottom: 14px; font: 400 11px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.drawer__sent { margin-top: 12px; padding: 10px 12px; background: var(--paper); border-left: 3px solid var(--wood-deep); color: var(--ink); font: 500 13.5px/1.45 var(--sans); outline: none; }
.drawer__sent[hidden] { display: none; }
.drawer__call { display: block; margin-top: 10px; padding: 8px 0; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .05em; color: var(--wood-deep); }

.order-pill { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 10px 0 16px; background: var(--wood-deep); color: var(--white); border: 0; cursor: pointer; box-shadow: 0 14px 34px -12px rgba(33, 20, 13, .55); font: 700 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; transition: transform .5s var(--ease-out), opacity .35s; }
.order-pill svg { width: 19px; height: 19px; }
.order-pill b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--white); color: var(--wood-deep); font: 800 13px/1 var(--sans); }
.order-pill[hidden] { display: none; }
.wa-fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 18px 0 14px; background: var(--wood-deep); color: var(--white); text-decoration: none; box-shadow: 0 14px 34px -12px rgba(33, 20, 13, .55); font: 700 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; transition: transform .5s var(--ease-out), opacity .35s, visibility 0s; }
.wa-fab svg { width: 20px; height: 20px; }
.wa-fab:hover { background: #5E3A26; }
.wa-fab:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 3px; }
html.js .wa-fab:not(.is-on) { transform: translate3d(0, 140%, 0); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .5s var(--ease-out), opacity .35s, visibility 0s .5s; }
.order-pill:focus-visible { outline: 2px solid var(--wood-deep); outline-offset: 3px; }
.order-pill.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- 3b. gallery: a wood band of the client's designs, two actions under every picture ---------- */
.s-gallery { position: relative; isolation: isolate; background: linear-gradient(32deg, var(--wood-lo) 0%, var(--wood) 52%, var(--wood-hi) 100%); color: var(--on-wood); }
.s-gallery::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: multiply; pointer-events: none; background-size: 520px 520px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .006' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .1  0 0 0 0 .05  .9 0 0 0 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.s-gallery .h2 { color: var(--on-wood); }
.gal__lede { max-width: 40ch; color: var(--on-wood-2); font-size: 15px; }
.s-gallery .rf { color: var(--on-wood); border-color: rgba(246, 238, 229, .4); }
.s-gallery .rf:hover { border-color: var(--on-wood); }
.s-gallery .rf[aria-pressed="true"] { background: var(--on-wood); border-color: var(--on-wood); color: var(--wood-deep); }
.s-gallery :focus-visible { outline: 2px solid var(--on-wood); outline-offset: 3px; }
.gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(30px, 3.2vw, 44px) var(--gap); margin: 0; padding: 0; list-style: none; }
.gal__item { display: flex; flex-direction: column; min-width: 0; }
.gal__item[hidden], .gal.is-short > .gal__item:nth-child(n + 7) { display: none; }
.gal__open { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: rgba(20, 10, 4, .25); }
.gal__open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.gal__open:hover img { transform: scale(1.045); }
.gal__zoom { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; background: rgba(251, 241, 226, .94); color: var(--wood-deep); opacity: 0; transform: translate3d(0, -4px, 0); transition: opacity .3s ease, transform .45s var(--ease-out); }
.gal__zoom svg { width: 17px; height: 17px; }
.gal__open:hover .gal__zoom, .gal__open:focus-visible .gal__zoom { opacity: 1; transform: none; }
.gal__body { padding-top: 14px; }
.gal__kind { font: 500 10.5px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--on-wood-2); }
.gal__name { margin: 6px 0 10px; font: 800 24px/1 var(--display); text-transform: uppercase; color: var(--on-wood); }
.gal__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.gal__ask, .gal__add { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 0; background: none; border: 0; border-bottom: 1px solid rgba(246, 238, 229, .4); color: var(--on-wood); cursor: pointer; font: 500 11.5px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: border-color .3s; }
.gal__ask svg, .gal__add svg { flex: none; width: 16px; height: 16px; }
.gal__ask:hover, .gal__add:hover, .gal__add.is-added { border-color: var(--on-wood); }
.gal__more { display: flex; justify-content: center; margin-top: 30px; }
.gal__more[hidden] { display: none; }
.gal__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; margin-top: clamp(42px, 5vw, 66px); padding-top: 28px; border-top: 1px solid rgba(246, 238, 229, .25); }
.gal__note { max-width: 58ch; color: var(--on-wood-2); }
@media (hover: none) { .gal__zoom { opacity: 1; transform: none; } }
@media (max-width: 1180px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) {
  .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .gal__name { font-size: 20px; }
  .gal__cta { flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (pointer: coarse) { .gal__ask, .gal__add { min-height: 44px; } }

/* ---------- gallery: enlarged view (a dialog) ---------- */
.lb { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: clamp(0px, 3vw, 40px); }
.lb[hidden] { display: none; }
.lb__scrim { position: absolute; inset: 0; background: rgba(26, 14, 8, .86); opacity: 0; transition: opacity .4s ease; }
.lb.is-open .lb__scrim { opacity: 1; }
.lb__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: minmax(0, 1fr); width: min(100%, 1240px); height: min(100%, 860px); background: var(--wood-deep); color: var(--on-wood); outline: none; opacity: 0; transform: translate3d(0, 18px, 0) scale(.985); transition: opacity .4s ease, transform .55s var(--ease-out); }
.lb.is-open .lb__panel { opacity: 1; transform: none; }
.lb__stage { position: relative; min-height: 0; overflow: hidden; background: #1F130C; touch-action: pan-y; }
.lb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lb__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; padding: 0; background: rgba(251, 241, 226, .94); color: var(--wood-deep); border: 0; cursor: pointer; }
.lb__nav svg { width: 22px; height: 22px; }
.lb__nav--prev { left: 12px; }
.lb__nav--prev svg { transform: scaleX(-1); }
.lb__nav--next { right: 12px; }
.lb__side { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 60px 28px 28px; overflow-y: auto; }
.lb__count, .lb__kind { color: var(--on-wood-2); }
.lb__title { margin: 6px 0 4px; font: 800 clamp(30px, 3vw, 42px)/.95 var(--display); text-transform: uppercase; }
.lb__text { color: var(--on-wood-2); font-size: 15px; }
.lb__cta { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; }
.lb__add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; background: transparent; border: 1px solid rgba(246, 238, 229, .45); color: var(--on-wood); cursor: pointer; font: 700 12.5px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; transition: border-color .3s; }
.lb__add svg { width: 17px; height: 17px; }
.lb__add:hover, .lb__add.is-added { border-color: var(--on-wood); }
.lb__close { position: absolute; top: 8px; right: 8px; z-index: 3; color: var(--on-wood); }
.lb :focus-visible { outline: 2px solid var(--on-wood); outline-offset: 2px; }
@media (max-width: 899px) {
  .lb { padding: 0; }
  .lb__panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; }
  .lb__side { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
  .lb__title { font-size: 28px; }
  .lb__text { display: none; }
  .lb__cta { grid-template-columns: 1fr; padding-top: 10px; }
  .lb__close { background: rgba(26, 14, 8, .55); }
  .lb__nav { width: 42px; height: 42px; margin-top: -21px; }
}

/* ---------- 7b. what to measure ---------- */
.measure { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.measure__fig { margin: 0; padding: clamp(20px, 3vw, 40px); background: var(--white); color: var(--wood-deep); }
.measure__svg { display: block; width: 100%; height: auto; }
.measure__accent { stroke: var(--rust); }
.measure__label text { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); }
.measure__list { display: grid; gap: 18px; margin: clamp(24px, 3vw, 34px) 0 clamp(26px, 3vw, 36px); padding: 0; list-style: none; counter-reset: m; }
.measure__list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; counter-increment: m; }
.measure__list li::before { content: "0" counter(m); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; background: var(--wood-deep); color: #F3E7DA; font: 500 13px/1 var(--mono); }
.measure__list b { padding-top: 3px; font: 800 21px/1 var(--display); text-transform: uppercase; color: var(--wood-deep); }
.measure__list span { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 899px) {
  .measure { grid-template-columns: 1fr; }
  .measure__fig { order: 2; }
}

/* ---------- phone menu ---------- */
.menu { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; padding: 10px var(--gutter) calc(24px + env(safe-area-inset-bottom)); background: var(--wood-deep); color: var(--on-wood); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 96px; }
.menu__logo { display: block; width: 88px; height: 88px; }
.menu__links { display: grid; gap: 2px; margin: 5vh 0 32px; }
.menu__links a { display: block; padding: 4px 0; font: 800 clamp(40px, 11vw, 60px)/1.02 var(--display); text-transform: uppercase; text-decoration: none; color: inherit; }
.menu__actions { display: grid; gap: 12px; margin-top: auto; }
.menu__actions .btn { --bg: var(--white); --fg: var(--wood-deep); }
.menu__call { display: block; padding: 12px; text-align: center; font: 500 13px/1 var(--mono); letter-spacing: .05em; color: inherit; }
.menu.is-open { animation: menu-in .45s var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translate3d(0, -12px, 0); } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .timbers { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .timbers::-webkit-scrollbar { display: none; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timber { flex: 0 0 clamp(280px, 44vw, 380px); scroll-snap-align: start; }
  .header__phone span { display: none; }
  .header__phone { padding-right: 10px; }
}
@media (max-width: 1024px) {
  .why { grid-template-columns: 1fr; }
  .why__collage { max-width: 680px; width: 100%; margin-inline: auto; }
  .foot__top { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); }
  .foot__nav { grid-column: 1 / -1; }
  .foot__nav ul { grid-auto-flow: column; justify-content: start; gap: 6px 22px; }
}
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .steps { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .faq { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
  .step { min-height: 0; }
  .step__text { margin-top: 0; padding-top: 28px; }
  .header__nav, .header__phone { display: none; }
  .header__menu { display: inline-grid; }
  .header__menu[hidden] { display: none; }
  .header__tools { color: inherit; }
  /* the compact emblem needs about 88 px for "The" to read; it hangs below the 64 px bar like the desktop badge */
  .header__logo { width: 88px; height: 88px; margin-top: 6px; }
  .site-header.is-solid .header__logo { width: 52px; height: 52px; margin-top: 6px; }

  .hero { min-height: 0; }
  .hero__wood { bottom: 0; }
  .hero__light { width: 100%; top: auto; height: 128px; }
  .hero__inner { display: block; padding-top: calc(var(--header-h) + 52px); padding-bottom: 0; }
  .hero__copy { width: auto; }
  .hero__title { font-size: clamp(54px, 15.4vw, 104px); }
  .hero__actions { margin-bottom: 30px; }
  .hero__stage { position: relative; left: auto; top: auto; transform: none; height: clamp(320px, 88vw, 460px); margin: 10px auto 0; }
  .hero__tag { left: auto; right: 74%; top: auto; bottom: 26%; }
  .hero__thumbs { position: relative; right: auto; top: auto; transform: none; flex-direction: row; justify-content: center; gap: 6px; padding: 12px 0 20px; }
  .hero__thumb { width: 54px; height: 70px; }
  .hero__thumb:hover { transform: none; }

  .steel__wrap { margin-top: -64px; }
  .s-cta > .wrap { position: relative; inset: auto; margin-top: -96px; display: block; }
  .cta__media { height: clamp(300px, 70vw, 460px); }
  .cta__box { grid-template-columns: 1fr; grid-template-areas: "h" "t" "b"; }
  .cta__btn { justify-self: start; }
  .foot__bottom { flex-direction: column; align-items: stretch; }
  .foot__links { grid-auto-flow: column; justify-content: start; gap: 22px; }
}
@media (max-width: 699px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .product__name { font-size: 21px; }
  .product__add span[data-label] { font-size: 10.5px; }
  .range-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .range-filter::-webkit-scrollbar { display: none; }
  .timber { flex-basis: 78vw; }
  .tile:nth-child(even) { margin-top: 24px; }
  .marquee { padding-bottom: 34px; }
  .why__collage { aspect-ratio: 1 / .96; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__img { max-width: 260px; }
  .foot__nav ul { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .foot__phone { font-size: clamp(36px, 10.4vw, 52px); }
  .drawer__body, .drawer__foot { padding-inline: 18px; }
  .drawer__head { padding-left: 18px; }
}
@media (max-width: 359px) {
  .header__logo { width: 80px; height: 80px; margin-top: 6px; }
  .site-header.is-solid .header__logo { width: 48px; height: 48px; margin-top: 8px; }
  .header__bar { gap: 12px; }
}
@media (max-width: 380px) {
  .hero__actions .btn > span { padding-inline: 12px; }
  .foot__links { gap: 16px; }
}

/* touch screens: every control at least 44 px tall */
@media (pointer: coarse) {
  .product__add, .timber__add, .item__remove, .chip, .rf { min-height: 44px; }
  .qty-btn { width: 44px; height: 44px; }
  .foot__nav a, .foot__links a { display: inline-block; padding-block: 9px; }
  .foot__phone { padding-block: 2px; }
  .drawer__call { padding-block: 14px; }
}

/* ---------- motion: hidden states (only when JavaScript runs and motion is on) ---------- */
html.js:not(.is-static) [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out), transform 1.15s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0ms); }
html.js:not(.is-static) [data-reveal="slide"] { transform: translate3d(-14vw, 0, 0); }
html.js:not(.is-static) [data-reveal="up"] { transform: translate3d(0, 30px, 0); }
html.js:not(.is-static) [data-reveal="rise"] { transform: translate3d(0, 60px, 0); filter: blur(6px); }
/* the footer emblem rolls in like a roller on its rail: moving 1.1 diameters turns it 126 degrees */
html.js:not(.is-static) [data-reveal="mark"] .foot__emblem { transform: translate3d(-110%, 0, 0) rotate(-126deg); transition: transform 1.6s var(--ease-out) var(--d, 0ms); }
html.js:not(.is-static) [data-reveal="mark"].is-in .foot__emblem { transform: none; }
html.js:not(.is-static) [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* while a row lags behind the scroll, JavaScript owns the transform; only opacity eases */
html.js:not(.is-static) .is-lag > [data-reveal] { transition: opacity .9s var(--ease-out); transition-delay: var(--d, 0ms); }

/* hero intro start state (site.js plays it, then adds .is-done) */
html.js:not(.is-static) .hero:not(.is-done) .hero__light { transform: translate3d(100%, 0, 0); }
html.js:not(.is-static) .hero:not(.is-done) .hero__fly,
html.js:not(.is-static) .hero:not(.is-done) .hero__tag,
html.js:not(.is-static) .hero:not(.is-done) .hero__thumb,
html.js:not(.is-static) .hero:not(.is-done) [data-intro],
html.js:not(.is-static) .hero:not(.is-done) .hero__title { opacity: 0; }
html.js:not(.is-static) body:not(.intro-done) .site-header { transform: translate3d(0, calc(-100% - 64px), 0); }

/* failsafe: if site.js never starts, everything shows after 3.2 s */
html.js:not(.motion-on):not(.is-static) [data-reveal],
html.js:not(.motion-on):not(.is-static) [data-reveal="mark"] .foot__emblem,
html.js:not(.motion-on):not(.is-static) .hero .hero__light,
html.js:not(.motion-on):not(.is-static) .hero .hero__fly,
html.js:not(.motion-on):not(.is-static) .hero .hero__tag,
html.js:not(.motion-on):not(.is-static) .hero .hero__thumb,
html.js:not(.motion-on):not(.is-static) .hero [data-intro],
html.js:not(.motion-on):not(.is-static) .hero .hero__title,
html.js:not(.motion-on):not(.is-static) .site-header { animation: dm-release .01s linear 3.2s forwards; }
@keyframes dm-release { to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee { overflow-x: auto; }
}
html.is-static .marquee { overflow-x: auto; scrollbar-width: none; }
html.is-static .marquee::-webkit-scrollbar { display: none; }

@media (forced-colors: active) {
  .btn, .chip, .qty-btn, .product__add, .timber__add, .hero__thumb { border: 1px solid ButtonText; }
  .hero__wood::after { display: none; }
}
@media print {
  .site-header, .hero__thumbs, .order-pill, .wa-fab, .drawer, .menu, .marquee, .lb, .gal__more { display: none !important; }
  .gal.is-short > .gal__item { display: flex !important; }
  .faq__a { display: block !important; }
  .hero { min-height: 0; }
  html.js [data-reveal], html.js .hero *, html.js .foot__emblem { opacity: 1 !important; transform: none !important; filter: none !important; }
}
