/* Kent Floors & Decor website. Built on the Kent design system tokens (tokens.css). */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--tan-300); color: var(--stone-1000); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 10px 18px; border-radius: 999px; background: var(--action); color: var(--on-action); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

:root {
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1440px;
  --hdr: 72px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}
@media (min-width: 768px) { :root { --gutter: max(32px, env(safe-area-inset-left, 0px)); --gutter-r: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1280px) { :root { --gutter: 56px; --gutter-r: 56px; --hdr: 84px; } }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) + var(--gutter-r)); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: clamp(80px, 12vw, 180px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.dark { background: var(--bg); color: var(--text); }
/* a section that switches theme also resets its text colour, since color inherits as a computed value */
[data-theme] { color: var(--text); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-brand);
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.chev { position: relative; display: inline-block; width: 15px; height: 13px; flex: none; }
.chev::before, .chev::after { content: ""; position: absolute; top: 0; width: 7.5px; height: 13px; clip-path: polygon(100% 0, 55% 50%, 100% 100%, 45% 100%, 0 50%, 45% 0); }
.chev::before { left: 0; background: var(--accent); }
.chev::after { left: 6.5px; background: var(--highlight); }
.on-photo .eyebrow, .eyebrow--light { color: var(--stone-0); }

.display {
  font-weight: 700; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(46px, 9.4vw, 168px);
  text-wrap: balance;
}
.h1 { font-weight: 700; letter-spacing: -.035em; line-height: .98; font-size: clamp(40px, 6.6vw, 112px); text-wrap: balance; }
.h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.02; font-size: clamp(34px, 4.8vw, 76px); text-wrap: balance; }
.h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.12; font-size: clamp(24px, 2.4vw, 38px); text-wrap: balance; }
.h4 { font-weight: 600; letter-spacing: -.01em; line-height: 1.25; font-size: clamp(19px, 1.5vw, 23px); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.6; color: var(--text-muted); max-width: 40ch; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.num { font-variant-numeric: tabular-nums; }
.outline-text { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.accent-text { color: var(--text-brand); }

/* Split text helpers (lines are masked so words rise from below) */
.split-line { display: block; overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }
.split-word { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--action); color: var(--on-action);
  font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease-out), border-color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent::before { background: var(--action); }
.btn--accent:hover { color: var(--on-action); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost::before { background: var(--action); }
.btn--ghost:hover { color: var(--on-action); }
.btn--light { background: transparent; color: var(--stone-0); border-color: rgba(255, 255, 255, .7); }
.btn--light::before { background: var(--stone-0); }
.btn--light:hover { color: var(--stone-1000); }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--icon { width: 44px; min-height: 44px; padding: 0; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; padding-bottom: 4px;
  transition: background-size .45s var(--ease-out);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 16px;
  border: 1px solid var(--border-input); border-radius: 999px; background: transparent; color: var(--text);
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.tag {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-muted);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.on-photo .tag { border-color: rgba(255, 255, 255, .35); color: var(--stone-100); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease-out), background-color .4s, color .4s, box-shadow .4s;
  color: var(--text);
}
.hdr__inner { height: var(--hdr); display: flex; align-items: center; gap: 28px; }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { height: 34px; width: auto; }
@media (min-width: 1280px) { .hdr__logo img { height: 40px; } }
.hdr__logo .logo-rev { display: none; }
.hdr__nav { display: none; gap: 30px; margin-left: 12px; }
.hdr__nav a {
  position: relative; text-decoration: none; font-size: 15px; font-weight: 600; padding-block: 6px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { background-size: 100% 2px; }
.hdr__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__cta { display: none; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; transition: background-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 22px; height: 22px; }
.burger { position: relative; width: 22px; height: 14px; }
.burger i { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger i:first-child { top: 3px; }
.burger i:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .burger i:first-child { top: 6.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { top: 6.5px; transform: rotate(-45deg); }
.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (min-width: 1024px) {
  .hdr__nav { display: flex; }
  .hdr__cta { display: inline-flex; }
  .menu-btn { display: none; }
}
.hdr.is-solid { background: var(--bg); box-shadow: var(--shadow-header); }
.hdr.is-solid.is-over-dark { background: var(--stone-950); color: var(--stone-0); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.hdr.is-solid.is-over-dark .logo-std { display: none; }
.hdr.is-solid.is-over-dark .logo-rev { display: block; }
.hdr.is-over-dark .hdr__cta { background: var(--stone-0); color: var(--stone-1000); }
.hdr.is-hidden { transform: translateY(-100%); }
/* Over a dark photo: light text and the reversed logo */
.hdr.is-over-dark:not(.is-solid) { color: var(--stone-0); }
.hdr.is-over-dark:not(.is-solid) .logo-std { display: none; }
.hdr.is-over-dark:not(.is-solid) .logo-rev { display: block; }
.hdr.is-over-dark:not(.is-solid) .hdr__cta { background: var(--stone-0); color: var(--stone-1000); }
[data-theme="dark"] .hdr .logo-std { display: none; }
[data-theme="dark"] .hdr .logo-rev { display: block; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--hdr) + 24px) var(--gutter-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: var(--stone-950); color: var(--stone-0);
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.menu__links { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu__links a { display: block; text-decoration: none; font-size: clamp(38px, 11vw, 64px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.menu__links a span { display: inline-block; }
.menu__foot { display: grid; gap: 6px; margin-top: 40px; color: var(--stone-300); font-size: 14px; }
.menu__foot a { text-decoration: none; }
body.menu-open .hdr { color: var(--stone-0); }
body.menu-open .hdr .logo-std { display: none; }
body.menu-open .hdr .logo-rev { display: block; }
body.menu-open .hdr.is-solid { background: transparent; box-shadow: none; }

/* ---------- Loader and page transition planks ---------- */
.planks { position: fixed; inset: 0; z-index: 200; display: flex; pointer-events: none; }
.planks span { flex: 1; height: 100%; background: var(--stone-950); transform: scaleY(0); transform-origin: 50% 0; }
.planks span:nth-child(even) { background: #1b1916; }
html.is-entering .planks span { transform: scaleY(1); }
.loader {
  position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; pointer-events: none;
  color: var(--stone-0);
}
.loader__inner { display: grid; justify-items: center; gap: 26px; }
.loader__mark { display: flex; gap: 0; height: 64px; }
.loader__mark i { display: block; width: 37px; height: 64px; clip-path: polygon(100% 0, 55% 50%, 100% 100%, 45% 100%, 0 50%, 45% 0); }
.loader__mark i:first-child { background: var(--red-600); margin-right: -6px; }
.loader__mark i:last-child { background: var(--tan-500); }
.loader__year { overflow: clip; font-size: 15px; font-weight: 600; letter-spacing: .3em; font-variant-numeric: tabular-nums; color: var(--stone-300); }
.loader:not(.is-on) { display: none; }

/* ---------- Custom cursor (fine pointers only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; opacity: 0; }
@media (pointer: fine) { .has-cursor .cursor { display: block; } }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); }
.cursor__ring {
  position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--text) 50%, transparent);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { opacity: 0; color: var(--stone-0); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); border-color: var(--accent); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--accent); }

/* ---------- Media helpers ---------- */
.media { position: relative; overflow: hidden; background: var(--surface-sunken); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { height: 120%; margin-top: -10%; will-change: transform; }
.js .reveal-clip { clip-path: inset(100% 0 0 0); }
.reduced .reveal-clip { clip-path: none !important; }
.js .hero__title, .js [data-split] { visibility: hidden; }
.js .hero__bottom { opacity: 0; }
.reduced .hero__bottom { opacity: 1; }
.reduced .hero__title, .reduced [data-split] { visibility: visible; }

/* ---------- Home: hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; color: var(--stone-0); overflow: clip; background: var(--stone-1000); }
.hero__frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slides .slice { position: absolute; top: 0; height: 100%; background-repeat: no-repeat; will-change: transform; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 12, 11, .55) 0%, rgba(13, 12, 11, .15) 35%, rgba(13, 12, 11, .25) 60%, rgba(13, 12, 11, .82) 100%); }
.hero__intro { position: absolute; inset: 0; display: flex; pointer-events: none; z-index: 3; }
.hero__intro span { flex: 1; background: var(--stone-1000); transform-origin: 50% 0; }
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: 1fr auto; gap: 32px;
  padding-top: calc(var(--hdr) + 40px); padding-bottom: clamp(28px, 5vh, 56px);
}
.hero__title { align-self: end; max-width: 13ch; }
.hero__bottom { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .hero__bottom { grid-template-columns: 1fr auto; } }
.hero__lead { max-width: 46ch; color: var(--stone-100); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; align-items: center; gap: 18px; color: var(--stone-200); font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.hero__counter { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 599px) { .hero__caption { display: none; } .hero__meta { justify-content: space-between; } .hero__bar { flex: 1; max-width: 160px; } }
.hero__bar { position: relative; width: 120px; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hero__bar i { position: absolute; inset: 0; background: var(--stone-0); transform-origin: 0 50%; transform: scaleX(0); }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--stone-200); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 1.5px; height: 36px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--stone-0); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Home: story ---------- */
.story__grid { display: grid; gap: clamp(48px, 7vw, 120px); }
@media (min-width: 1024px) { .story__grid { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.story__text { font-size: clamp(26px, 3.3vw, 52px); font-weight: 600; line-height: 1.18; letter-spacing: -.025em; text-wrap: pretty; }
.story__text .w { opacity: .14; transition: opacity .1s; }
.story__photos { position: relative; height: clamp(420px, 52vw, 720px); }
.story__photos .media { position: absolute; }
.story__photos .p1 { inset: 0 18% 22% 0; }
.story__photos .p2 { width: 52%; aspect-ratio: 4 / 5; right: 0; bottom: 0; outline: 10px solid var(--bg); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 120px); border-top: 1px solid var(--border); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { padding: 28px 24px 8px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--border); padding-left: 24px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat__n { display: block; font-size: clamp(48px, 6vw, 96px); font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__n sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; color: var(--text-brand); }
.stat__l { display: block; margin-top: 10px; color: var(--text-muted); font-size: 14px; font-weight: 600; }

/* ---------- Marquee ---------- */
.marquee { padding-block: clamp(24px, 3vw, 44px); border-block: 1px solid var(--border); overflow: clip; user-select: none; }
.marquee__row { display: flex; width: max-content; will-change: transform; }
.marquee__row + .marquee__row { margin-top: 6px; }
.marquee__item { display: inline-flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); padding-right: clamp(20px, 2.4vw, 40px); font-size: clamp(40px, 7.5vw, 128px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; white-space: nowrap; }
.marquee__item .chev { width: .3em; height: .26em; }
.marquee__item .chev::before, .marquee__item .chev::after { width: .15em; height: .26em; }
.marquee__item .chev::after { left: .13em; }
.marquee__row--outline .marquee__item { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* ---------- Home: horizontal collections ---------- */
.hs { position: relative; overflow: clip; background: var(--bg); }
.hs__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .hs__head { grid-template-columns: 1fr auto; align-items: end; } }
.hs__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.hs__viewport::-webkit-scrollbar { display: none; }
.hs__track { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; }
.panel { position: relative; flex: none; width: min(82vw, 560px); scroll-snap-align: start; color: var(--text); text-decoration: none; }
.panel__media { aspect-ratio: 4 / 5; }
.panel__no { position: absolute; top: 18px; left: 18px; z-index: 2; color: var(--stone-0); font-size: 13px; font-weight: 700; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.panel__body { display: grid; gap: 8px; padding-top: 20px; }
.panel__name { font-size: clamp(24px, 2.2vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.panel__desc { color: var(--text-muted); font-size: 15px; line-height: 1.6; max-width: 42ch; }
.panel__media img { transition: transform 1.2s var(--ease-out); }
.panel:hover .panel__media img { transform: scale(1.06); }
.hs__progress { height: 2px; margin-top: 36px; background: var(--border); }
.hs__progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1024px) {
  .hs.is-pinned .hs__viewport { overflow: visible; scroll-snap-type: none; }
  .hs.is-pinned .panel { width: clamp(380px, 34vw, 560px); }
  .hs.is-pinned { height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--hdr) + 12px) 40px; }
  .hs.is-pinned .panel__media { aspect-ratio: auto; height: min(52svh, 560px); }
  .hs.is-pinned .hs__head { margin-bottom: 28px; }
}

/* ---------- Home: transformation (plank reveal) ---------- */
.tf { background: var(--bg-subtle); }
.tf__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .tf__grid { grid-template-columns: 1fr 1.05fr; gap: 72px; } .tf.is-pinned { height: 100svh; display: flex; align-items: center; padding-block: calc(var(--hdr) + 16px) 32px; } }
.tf__copy { display: grid; gap: 24px; }
.tf__steps { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--border); }
.tf__step { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; transition: color .3s; }
.tf__step.is-on { color: var(--text); }
.tf__step b { font-variant-numeric: tabular-nums; }
.tf__frame { position: relative; width: 100%; max-width: 560px; justify-self: center; aspect-ratio: 1054 / 1410; overflow: hidden; background: var(--surface-sunken); }
@media (min-width: 1024px) { .tf.is-pinned .tf__frame { height: calc(100svh - var(--hdr) - 80px); width: auto; max-width: none; } }
.tf__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tf__planks { position: absolute; inset: 0; }
.tf__plank { position: absolute; background-repeat: no-repeat; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); transform-origin: 0 50%; }
.tf__label {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(13, 12, 11, .7); color: var(--stone-0);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.tf__label i { width: 8px; height: 8px; border-radius: 50%; background: var(--stone-400); transition: background-color .3s; }
.tf__label.is-after i { background: var(--tan-400); }
.tf__quote { padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.tf__quote cite { display: block; margin-top: 8px; font-style: normal; color: var(--text); font-weight: 600; font-size: 13px; }

/* ---------- Home: walls stack (always dark) ---------- */
.walls { background: var(--bg); }
.walls__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); }
@media (min-width: 900px) { .walls__head { grid-template-columns: 1fr auto; align-items: end; } }
.stack { display: grid; gap: 28px; }
.card {
  position: sticky; top: calc(var(--hdr) + 20px + var(--i, 0) * 14px);
  display: grid; overflow: hidden; background: var(--surface); color: var(--text);
  min-height: min(76svh, 720px); transform-origin: 50% 0; will-change: transform;
  border: 1px solid var(--border);
}
@media (min-width: 900px) { .card { grid-template-columns: 1.35fr 1fr; } }
.card__media { position: relative; min-height: 280px; }
.card__media img { position: absolute; inset: 0; }
.card__body { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 56px); }
.card__no { color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.card__kicker { color: var(--text-brand); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card__title { font-size: clamp(32px, 3.8vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.card__text { color: var(--text-muted); max-width: 44ch; }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-top: 12px; }
.card__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
.card--glow .card__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 55%, rgba(255, 190, 80, .35), transparent 70%); mix-blend-mode: screen; animation: glow 3.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; } }

/* ---------- Home: room finder ---------- */
.rooms__grid { display: grid; gap: clamp(32px, 4vw, 72px); }
@media (min-width: 1024px) { .rooms__grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.rooms__tabs { display: grid; margin-top: 36px; border-top: 1px solid var(--border); }
.rooms__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); background: none; cursor: pointer; text-align: left;
  color: var(--text-muted); font-size: clamp(22px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
  transition: color .3s, padding-left .45s var(--ease-out);
}
.rooms__tab svg { width: 26px; height: 26px; opacity: 0; transform: translateX(-12px); transition: opacity .3s, transform .45s var(--ease-out); color: var(--accent); }
.rooms__tab:hover { color: var(--text); }
.rooms__tab[aria-selected="true"] { color: var(--text); padding-left: 14px; }
.rooms__tab[aria-selected="true"] svg { opacity: 1; transform: none; }
.rooms__stage { position: relative; min-height: 520px; display: grid; }
.rooms__panel { grid-area: 1 / 1; display: grid; grid-template-rows: 1fr auto; gap: 20px; }
.rooms__panel[hidden] { display: none !important; }
.rooms__img { position: relative; min-height: 320px; }
.rooms__img img { position: absolute; inset: 0; }
.rooms__picks { display: grid; gap: 10px; }
@media (min-width: 640px) { .rooms__picks { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.pick { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); text-decoration: none; transition: border-color .25s, background-color .25s; }
.pick:hover { border-color: var(--border-strong); background: var(--bg-subtle); }
.pick b { font-size: 16px; font-weight: 700; }
.pick span { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* ---------- Home: proof (full-bleed quote) ---------- */
.proof { position: relative; min-height: 100svh; display: grid; align-items: center; color: var(--stone-0); overflow: clip; background: var(--stone-1000); }
.proof__bg { position: absolute; inset: -10% 0; }
.proof__bg img { width: 100%; height: 100%; object-fit: cover; }
.proof::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 12, 11, .86) 0%, rgba(13, 12, 11, .55) 60%, rgba(13, 12, 11, .3) 100%); }
.proof__inner { position: relative; z-index: 1; padding-block: 120px; }
.proof__mark { width: 46px; height: 40px; margin-bottom: 32px; background: var(--red-500); clip-path: polygon(100% 0, 55% 50%, 100% 100%, 45% 100%, 0 50%, 45% 0); }
.proof__quote { max-width: 22ch; font-size: clamp(32px, 4.6vw, 76px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.proof__quote .w { opacity: .2; }
.proof__cite { margin-top: 32px; color: var(--stone-200); font-size: 15px; font-weight: 600; }
.proof__cap { position: absolute; right: var(--gutter-r); bottom: 28px; z-index: 1; color: var(--stone-300); font-size: 12px; font-weight: 600; letter-spacing: .08em; }

/* ---------- Showrooms ---------- */
.visit__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 1024px) { .visit__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.map { position: relative; aspect-ratio: 1 / 1; background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map .grid-line { stroke: var(--border); stroke-width: 1; }
.map .bay { fill: color-mix(in srgb, var(--blue-300) 22%, var(--bg-subtle)); }
.map .shore { fill: none; stroke: var(--blue-300); stroke-width: 1.5; stroke-dasharray: 4 6; }
.map .road { fill: none; stroke: var(--border-input); stroke-width: 1.5; }
.map .route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; }
.map .pin circle.halo { fill: var(--accent); opacity: .16; transform-box: fill-box; transform-origin: center; animation: halo 2.6s ease-out infinite; }
.map .pin circle.dot { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
.map .pin text { fill: var(--text); font-family: var(--font-sans); font-size: 15px; font-weight: 700; }
.map .pin text.sub { fill: var(--text-muted); font-size: 12px; font-weight: 600; }
.map .area { fill: var(--text-subtle); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.map .pin.is-active circle.dot { fill: var(--highlight); }
@keyframes halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(2.4); opacity: 0; } }
.map__note { position: absolute; left: 14px; bottom: 12px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.branches { display: grid; gap: 0; border-top: 1px solid var(--border); }
.branch { display: grid; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--border); transition: padding-left .45s var(--ease-out); }
.branch.is-active { padding-left: 14px; box-shadow: inset 2px 0 0 var(--accent); }
.branch__name { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.branch__addr { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.branch__rows { display: grid; gap: 4px; font-size: 14px; font-variant-numeric: tabular-nums; }
.branch__rows div { display: flex; gap: 12px; }
.branch__rows dt { min-width: 74px; color: var(--text-muted); font-weight: 600; }
.branch__rows dd a { text-decoration: none; font-weight: 600; }
.branch__rows dd a:hover { text-decoration: underline; text-underline-offset: .2em; }
.branch__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; gap: clamp(32px, 4vw, 72px); }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: 1fr 1.6fr; } }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-child { border-top: 1px solid var(--border-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer;
  font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.01em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(135deg); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 0 26px; max-width: 64ch; color: var(--text-muted); }
.faq__body p + p { margin-top: 12px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: clip; background: var(--bg); }
.cta__inner { display: grid; gap: 40px; justify-items: start; }
@media (min-width: 1024px) { .cta__inner { grid-template-columns: 1fr auto; align-items: end; } }
.cta__title { font-size: clamp(48px, 9vw, 168px); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.cta__title em { font-style: normal; color: var(--text-brand); }
.cta__btn {
  position: relative; display: grid; place-items: center; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); text-decoration: none; text-align: center;
  font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: .01em;
  transition: background-color .3s;
}
.cta__btn:hover { background: var(--accent-hover); }
.cta__btn svg { width: 22px; height: 22px; margin: 8px auto 0; display: block; }
.cta__pattern { position: absolute; right: -4vw; top: 50%; width: 46vw; max-width: 720px; translate: 0 -50%; opacity: .07; pointer-events: none; }

/* ---------- Footer ---------- */
.ftr { position: relative; overflow: clip; background: var(--surface-inverse); color: var(--text-inverse); padding-top: clamp(72px, 9vw, 140px); }
.ftr a { color: inherit; text-decoration: none; }
.ftr a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ftr__grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }
.ftr__brand { grid-column: 1 / -1; display: grid; gap: 18px; max-width: 34ch; }
@media (min-width: 900px) { .ftr__brand { grid-column: auto; } }
.ftr__brand img { height: 44px; width: auto; }
.ftr__brand .logo-std { display: none; }
[data-theme="dark"] .ftr__brand .logo-std { display: block; }
[data-theme="dark"] .ftr__brand .logo-rev { display: none; }
.ftr__brand p { font-size: 15px; line-height: 1.6; opacity: .8; }
.ftr h3 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.ftr ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.ftr__big { margin-top: clamp(56px, 8vw, 120px); font-size: clamp(56px, 13.4vw, 236px); font-weight: 800; letter-spacing: -.055em; line-height: .78; white-space: nowrap; overflow: clip; padding-bottom: .09em; }
.ftr__big span { display: inline-block; }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); font-size: 13px; opacity: .75; }

/* ---------- Inner pages ---------- */
.phero { padding-top: calc(var(--hdr) + clamp(48px, 8vw, 120px)); }
.phero__head { display: grid; gap: 28px; }
@media (min-width: 1024px) { .phero__head { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.phero__media { margin-top: clamp(40px, 6vw, 88px); height: clamp(320px, 62svh, 760px); }
.phero--dark { background: var(--bg); }

.filters { position: sticky; top: calc(var(--hdr) + 8px); z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); }
.filters__count { margin-left: auto; color: var(--text-muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

.coll { display: grid; gap: clamp(28px, 4vw, 72px); padding-block: clamp(56px, 7vw, 110px); border-bottom: 1px solid var(--border); }
@media (min-width: 1024px) {
  .coll { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .coll:nth-child(even) .coll__media { order: 2; }
}
.coll__media { aspect-ratio: 5 / 4; }
.coll__media--wide { aspect-ratio: 2.5 / 1; }
@media (min-width: 1024px) { .coll__media--wide { aspect-ratio: 5 / 4; } }
.coll__body { display: grid; gap: 18px; align-content: center; }
.coll__no { color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.coll__kicker { color: var(--text-brand); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.coll__name { font-size: clamp(36px, 4.4vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.coll__text { color: var(--text-muted); max-width: 46ch; font-size: 17px; }
.coll__uses { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 4px; font-size: 14px; }
.coll__uses dt { color: var(--text-muted); font-weight: 600; }
.coll__uses dd { font-weight: 600; }
.coll__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.cat-grid { display: grid; gap: 40px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cat { position: relative; perspective: 900px; }
.cat__link { display: grid; gap: 14px; text-decoration: none; }
.cat__media { aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.cat__media img { transition: transform 1.2s var(--ease-out); }
.cat:hover .cat__media { box-shadow: 0 30px 60px -30px rgba(13, 12, 11, .55); }
.cat:hover .cat__media img { transform: scale(1.05); }
.cat__badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(13, 12, 11, .62); color: var(--stone-0); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); }
.cat__pdf { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--stone-0); color: var(--stone-1000); transform: translateY(-10px); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; }
.cat__pdf svg { width: 20px; height: 20px; }
.cat:hover .cat__pdf, .cat:focus-within .cat__pdf { transform: none; opacity: 1; }
.cat__pdf:hover { background: var(--accent); color: var(--on-accent); }
@media (hover: none) { .cat__pdf { transform: none; opacity: 1; } }
.cat__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.cat__line { color: var(--text-muted); font-size: 14px; line-height: 1.55; }

/* Inquiry form */
.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.field label small { color: var(--text-muted); font-weight: 500; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: 0;
  background: var(--surface); color: var(--text); font: 500 16px/1.5 var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; padding-block: 12px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--border-strong); box-shadow: 0 0 0 2px var(--focus); }
.field--error input, .field--error textarea { border: 2px solid var(--danger-fg); }
.field__err { color: var(--danger-fg); font-size: 14px; font-weight: 600; }
.suffix { display: flex; }
.suffix input { flex: 1; min-width: 0; }
.suffix span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--border-input); border-left: 0; background: var(--surface-sunken); color: var(--text-muted); font-size: 14px; font-weight: 600; }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 18px; border: 1px solid var(--success-border); background: var(--success-bg); font-size: 15px; line-height: 1.55; }
.notice svg { width: 22px; height: 22px; color: var(--success-fg); grid-row: span 2; }
.notice strong { color: var(--success-fg); }
.inquire__grid { display: grid; gap: clamp(36px, 5vw, 80px); }
@media (min-width: 1024px) { .inquire__grid { grid-template-columns: 1fr 1.3fr; } }
.contact-list { display: grid; gap: 22px; margin-top: 36px; }
.contact-list a { display: grid; gap: 2px; text-decoration: none; }
.contact-list small { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-list b { font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-block: clamp(48px, 6vw, 96px); }
.pager a { display: grid; gap: 6px; text-decoration: none; }
.pager a:last-child { text-align: right; justify-items: end; }
.pager small { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pager b { font-size: clamp(28px, 4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: color .3s; }
.pager a:hover b { color: var(--text-brand); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .story__text .w, .proof__quote .w { opacity: 1; }
}

/* =====================================================================
   v2: product-grade layer. Mono labels, grain, WebGL, anatomy, ripples,
   range index, bento, command palette, section rail.
   ===================================================================== */
:root { --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.mono, .eyebrow, .panel__no, .card__no, .coll__no, .hero__meta, .tf__step b, .tf__label, .cat__badge, .stat__l, .map__note, .proof__cap, .filters__count, .scroll-cue {
  font-family: var(--font-mono); font-feature-settings: "zero" 1;
}
.eyebrow { font-weight: 600; letter-spacing: .12em; font-size: 12px; }
.stat__l { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.hero__meta { font-weight: 500; letter-spacing: .02em; }
kbd, .kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); border-radius: 6px; font: 600 11px/1 var(--font-mono); opacity: .8; }

/* Film grain: a fixed, very faint noise layer */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
[data-theme="dark"] body::after, html[data-theme="dark"] body::after { opacity: .07; }
@keyframes grain { 0%, 100% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; } 60% { background-position: -19px -11px; } 80% { background-position: 43px 31px; } }

/* Header search pill */
.hdr__search {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: color-mix(in srgb, currentColor 5%, transparent); color: inherit;
  font-size: 14px; font-weight: 600; transition: background-color .2s, border-color .2s;
}
.hdr__search:hover { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.hdr__search svg { width: 17px; height: 17px; }
.hdr__search .kbds { display: none; gap: 3px; }
@media (min-width: 1024px) { .hdr__search .kbds { display: inline-flex; } }
@media (max-width: 639px) { .hdr__search { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: transparent; background: none; } .hdr__search .lbl { display: none; } }

/* WebGL hero canvas sits over the first-paint image and fades in when its textures are ready */
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s ease; }
.hero__gl.is-ready { opacity: 1; }

/* ---------- Anatomy ---------- */
.anat { position: relative; overflow: clip; background: var(--bg); }
.anat__grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .anat__grid { grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 100svh; padding-block: calc(var(--hdr) + 12px) 24px; } }
.anat__copy { display: grid; gap: 22px; align-content: center; padding-top: clamp(80px, 10vw, 0px); }
.anat__steps { display: grid; min-height: 190px; }
.anat__step { grid-area: 1 / 1; display: grid; gap: 10px; align-content: start; opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .3s ease; }
.anat__step.is-on { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .14s, transform .7s var(--ease-out) .14s; }
.anat__step .mono { color: var(--text-brand); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.anat__step h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.anat__step p { color: var(--text-muted); max-width: 40ch; }
.anat__note { color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); }
.anat__stage { position: relative; height: min(70svh, 640px); min-height: 380px; }
.anat__scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1700px; perspective-origin: 50% 30%; }
.anat__stack { position: relative; width: var(--w); height: var(--d); transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-36deg); --w: 440px; --d: 160px; margin-left: -18%; }
@media (max-width: 1023px) { .anat__stack { --w: 300px; --d: 110px; margin-left: -26%; } }
.ly { position: absolute; inset: 0; transform-style: preserve-3d; transition: opacity .4s, filter .4s; }
.ly.is-dim { opacity: .28; filter: saturate(.4); }
.ly__top { position: absolute; inset: 0; background: var(--top); background-size: cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ly__front { position: absolute; left: 0; top: 100%; width: 100%; height: calc(var(--t) * 1px); transform-origin: 50% 0; transform: rotateX(-90deg); background: var(--edge); }
.ly__side { position: absolute; left: 100%; top: 0; width: calc(var(--t) * 1px); height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: var(--edge2, var(--edge)); }
.ly__pin { position: absolute; right: 4%; top: 18%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.ly--coat { --top: linear-gradient(118deg, rgba(255,255,255,.62), rgba(255,255,255,.06) 38%, rgba(255,255,255,.3) 58%, rgba(255,255,255,.04)); --edge: rgba(220, 235, 245, .55); }
.ly--wear { --top: linear-gradient(180deg, rgba(196, 220, 236, .34), rgba(196, 220, 236, .2)); --edge: rgba(170, 200, 220, .55); }
.ly--decor { --top: url("/tex/oak.webp") center / cover; --edge: #8a6338; --edge2: #7a5730; }
.ly--core { --top: url("/tex/core.webp") center / 320px; --edge: linear-gradient(180deg, #9aa0a4, #7e8488); --edge2: linear-gradient(180deg, #8a9094, #6e7478); }
.ly--under { --top: radial-gradient(circle at 2px 2px, rgba(255,255,255,.14) 1px, transparent 1.5px) 0 0 / 7px 7px, #3b4247; --edge: #2c3236; }
.anat__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.anat__lines path { fill: none; stroke: var(--border-input); stroke-width: 1; transition: stroke .3s; }
.anat__lines path.is-on { stroke: var(--accent); stroke-width: 1.5; }
.anat__labels { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: clamp(22px, 4.2svh, 44px); margin: 0; padding: 0; list-style: none; }
.anat__label { display: grid; gap: 2px; padding-left: 12px; border-left: 2px solid transparent; transition: border-color .3s, color .3s; color: var(--text-muted); }
.anat__label b { font-size: 14px; font-weight: 700; color: var(--text); }
.anat__label span { font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.anat__label.is-on { border-color: var(--accent); }
.anat__label.is-on span { color: var(--text-brand); }
@media (max-width: 1023px) { .anat__labels, .anat__lines { display: none; } .anat__stage { height: 360px; } }

/* ---------- Waterproof ripple ---------- */
.wp__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) { .wp__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.wp__stage { position: relative; aspect-ratio: 1334 / 480; max-width: 100%; overflow: hidden; background: var(--surface-sunken); touch-action: pan-y; }
.wp__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; cursor: crosshair; }
.wp__gl.is-ready { opacity: 1; }
.wp__hint, .wp__tag { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(13, 12, 11, .62); color: var(--stone-0); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; backdrop-filter: blur(8px); pointer-events: none; }
.wp__hint { left: 16px; top: 16px; transition: opacity .5s; }
.wp__hint i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-300); animation: pulse 1.6s ease-out infinite; }
.wp.is-touched .wp__hint { opacity: 0; }
.wp__tag { right: 16px; bottom: 16px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 184, 214, .7); } 100% { box-shadow: 0 0 0 12px rgba(155, 184, 214, 0); } }

/* ---------- Range index ---------- */
.range__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 1024px) { .range__head { grid-template-columns: 1fr auto; align-items: end; } }
.range__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border-strong); }
.range__row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 8px 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border);
  text-decoration: none; color: var(--text); transition: opacity .35s, padding .5s var(--ease-out);
}
@media (min-width: 900px) { .range__row { grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr) 110px 28px; padding: 22px 0; } }
.range__no { color: var(--text-muted); font: 500 13px/1 var(--font-mono); }
.range__name { font-size: clamp(24px, 3.2vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; transition: transform .5s var(--ease-out), color .3s; }
.range__kick { display: none; color: var(--text-muted); font-size: 15px; }
.range__cat { color: var(--text-muted); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; text-align: right; }
.range__row > svg { display: none; width: 24px; height: 24px; color: var(--accent); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .45s var(--ease-out); }
@media (min-width: 900px) { .range__kick, .range__row > svg { display: block; } }
.range__list.is-hover .range__row { opacity: .3; }
.range__list.is-hover .range__row.is-active { opacity: 1; }
.range__row.is-active .range__name { transform: translateX(14px); }
.range__row.is-active > svg { opacity: 1; transform: none; }
.range__float { position: fixed; left: 0; top: 0; z-index: 60; width: 340px; aspect-ratio: 4 / 3; margin: -130px 0 0 30px; pointer-events: none; opacity: 0; transform: scale(.6); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); }
.range__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.range__float img.is-on { opacity: 1; }
@media (pointer: coarse), (max-width: 899px) { .range__float { display: none; } }

/* ---------- Bento ---------- */
.bento__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.bento__grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .bento__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .b--time { grid-column: span 4; grid-row: span 2; } .b { grid-column: span 2; } .b--time { grid-column: span 4; } }
.b { position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 260px; padding: clamp(22px, 2.4vw, 32px); overflow: hidden; background: var(--bg-subtle); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.b h3 { font-size: clamp(20px, 1.7vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.b p { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.b .mono { font-size: 12px; color: var(--text-muted); letter-spacing: .04em; }
.b__foot { margin-top: auto; }
.b--time { justify-content: space-between; background: var(--stone-950); color: var(--stone-0); border-color: transparent; }
.b--time p { color: var(--stone-300); max-width: 46ch; }
.b--time .big { font-size: clamp(88px, 13vw, 210px); font-weight: 800; letter-spacing: -.06em; line-height: .82; }
.b--time .big sup { font-size: .32em; color: var(--red-400); vertical-align: top; position: relative; top: .3em; }
.tl { display: grid; gap: 12px; }
.tl__bar { position: relative; height: 2px; background: rgba(255, 255, 255, .18); }
.tl__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red-500), var(--tan-400)); transform-origin: 0 50%; }
.tl__bar i::after { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--tan-400); box-shadow: 0 0 0 6px rgba(194, 151, 99, .25); }
.tl__ticks { display: flex; justify-content: space-between; color: var(--stone-400); font: 500 11px/1 var(--font-mono); }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--text-subtle); }
.b--open.is-open .status i { background: #3fbf7f; animation: live 1.8s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(63, 191, 127, .55); } 100% { box-shadow: 0 0 0 12px rgba(63, 191, 127, 0); } }
.b--water .swatch { position: relative; height: 110px; margin-top: auto; background: url("/tex/oak.webp") center / cover; border-radius: 0; overflow: hidden; }
.drop { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.95) 0 12%, rgba(255,255,255,.35) 22%, rgba(120,150,170,.18) 60%, rgba(0,0,0,.18) 100%); box-shadow: 2px 4px 6px rgba(0,0,0,.25); animation: bead 4s ease-in-out infinite; }
@keyframes bead { 50% { transform: translateY(-2px) scale(1.04); } }
.b--cats .fan { position: relative; height: 140px; margin-top: auto; }
.b--cats .fan img { position: absolute; left: 50%; bottom: 0; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); transform-origin: 50% 100%; transition: transform .6s var(--ease-out); }
.b--cats .fan img:nth-child(1) { transform: translateX(-50%) rotate(-10deg) translateX(-30px); }
.b--cats .fan img:nth-child(2) { transform: translateX(-50%) rotate(0deg); }
.b--cats .fan img:nth-child(3) { transform: translateX(-50%) rotate(10deg) translateX(30px); }
.b--cats:hover .fan img:nth-child(1) { transform: translateX(-50%) rotate(-18deg) translateX(-70px) translateY(-6px); }
.b--cats:hover .fan img:nth-child(3) { transform: translateX(-50%) rotate(18deg) translateX(70px) translateY(-6px); }
.b--cats:hover .fan img:nth-child(2) { transform: translateX(-50%) translateY(-10px); }
.lay { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: auto; }
.lay i { height: 14px; background: var(--tan-300); transform-origin: 0 50%; animation: lay 4.8s var(--ease-out) infinite; animation-delay: calc(var(--k) * .12s); }
.lay i:nth-child(3n) { background: var(--tan-400); }
.lay i:nth-child(4n) { background: var(--tan-200); }
@keyframes lay { 0%, 8% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
.b--call .phone { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--font-mono); letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.b--call .row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Command palette ---------- */
.cmdk { width: min(640px, calc(100% - 24px)); max-height: min(70svh, 560px); margin: 12svh auto auto; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.cmdk::backdrop { background: rgba(13, 12, 11, .5); backdrop-filter: blur(6px); }
.cmdk__box { display: flex; flex-direction: column; max-height: min(70svh, 560px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-dialog); }
.cmdk__in { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.cmdk__in svg { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.cmdk__in input { flex: 1; min-width: 0; height: 60px; border: 0; outline: 0; background: none; color: var(--text); font: 500 18px/1 var(--font-sans); }
.cmdk__list { flex: 1; overflow: auto; margin: 0; padding: 8px; list-style: none; overscroll-behavior: contain; }
.cmdk__group { padding: 12px 10px 6px; color: var(--text-muted); font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.cmdk__item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 10px; cursor: pointer; }
.cmdk__item.is-sel { background: var(--bg-subtle); box-shadow: inset 2px 0 0 var(--accent); }
.cmdk__t { font-weight: 600; }
.cmdk__s { color: var(--text-muted); font: 500 12px/1.3 var(--font-mono); text-align: right; }
.cmdk__empty { padding: 24px 10px; color: var(--text-muted); }
.cmdk__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); color: var(--text-muted); font: 500 11px/1 var(--font-mono); }

/* ---------- Section rail ---------- */
.rail { position: fixed; right: 18px; top: 50%; z-index: 80; display: none; flex-direction: column; gap: 10px; transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity .4s; mix-blend-mode: difference; color: #fff; }
@media (min-width: 1280px) and (pointer: fine) { .rail { display: flex; } }
.rail.is-shown { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 14px; text-decoration: none; }
.rail i { width: 14px; height: 1.5px; background: currentColor; opacity: .45; transition: width .4s var(--ease-out), opacity .3s; }
.rail span { font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .4s var(--ease-out); }
.rail a.is-on i { width: 28px; opacity: 1; }
.rail a:hover span, .rail a.is-on span { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) { body::after { animation: none; } }
.hdr__nav a { white-space: nowrap; }
@media (max-width: 1279px) { .hdr__nav { gap: 22px; margin-left: 4px; } .hdr__search .lbl { display: none; } .hdr__search { padding: 0 10px; } .hdr__inner { gap: 20px; } }

@media (max-width: 767px) { .wp__stage { aspect-ratio: auto; height: 340px; } }
@media (max-width: 1023px) {
  .anat__grid { min-height: 100svh; align-content: start; padding-top: calc(var(--hdr) + 8px); gap: 4px; }
  .anat__copy { padding-top: 0; gap: 14px; }
  .anat__note { display: none; }
  .anat__steps { min-height: 150px; }
  .anat__stage { height: min(44svh, 360px); min-height: 280px; }
}

/* =====================================================================
   v3: product storytelling. Plank hero, room builder, walls story,
   compare, local nav, chapters.
   ===================================================================== */

/* ---------- Intro: the plank is the hero ---------- */
.intro { background: var(--bg); }
.intro__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 50% at 68% 58%, rgba(194, 151, 99, .2), transparent 70%), radial-gradient(35% 35% at 12% 18%, rgba(167, 34, 17, .16), transparent 70%); }
.intro__copy { display: grid; align-content: center; position: relative; z-index: 2; }
.intro__hero, .intro__anat { grid-area: 1 / 1; display: grid; gap: 22px; align-content: center; }
.intro__title { margin: 0; font-size: clamp(54px, 8.4vw, 150px); font-weight: 700; letter-spacing: -.055em; line-height: .88; text-wrap: balance; }
.intro__lead { max-width: 34ch; color: var(--text-muted); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.intro .scroll-cue { margin-top: 18px; color: var(--text-muted); }
.intro .scroll-cue i { background: color-mix(in srgb, var(--text) 25%, transparent); }
.intro .scroll-cue i::after { background: var(--text); }
.js .intro__top, .js .intro__bottom { opacity: 0; }
.reduced .intro__top, .reduced .intro__bottom, .reduced .intro .anat__scene { opacity: 1; }

.reduced .intro__anat { opacity: 1; visibility: visible; grid-area: auto; margin-top: 48px; }
.intro .anat__stack { --w: 540px; --d: 196px; margin-left: 0; }
@media (max-width: 1023px) { .intro .anat__stack { --w: 300px; --d: 110px; } }
.anat__tilt, .anat__float { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.anat__shadow { position: absolute; left: 50%; top: 60%; width: 62%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(14px); }
.ly--coat .ly__top { overflow: hidden; }
.ly--coat .ly__top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); background-size: 260% 100%; animation: sheen 5.5s ease-in-out infinite; }
@keyframes sheen { 0% { background-position: 160% 0; } 55%, 100% { background-position: -60% 0; } }
@media (max-width: 1023px) {
  .intro .anat__grid { grid-template-rows: auto 1fr; }
  .intro__title { font-size: clamp(46px, 13vw, 76px); }
}

/* ---------- Statement ---------- */
.statement__text { max-width: 22ch; margin: 0 auto; text-align: center; font-size: clamp(32px, 4.6vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: 1.06; text-wrap: balance; }
.statement .stats { margin-top: clamp(64px, 9vw, 130px); }

/* ---------- Room builder ---------- */
.builder { position: relative; overflow: clip; background: var(--bg-subtle); }
.builder__grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .builder__grid { grid-template-columns: .82fr 1.18fr; align-items: center; min-height: 100svh; padding-block: calc(var(--hdr) + 12px) 24px; } }
@media (max-width: 1023px) { .builder__grid { padding-block: calc(var(--hdr) + 12px) 32px; } }
.builder__copy { display: grid; gap: 18px; align-content: center; position: relative; z-index: 2; }
.builder__steps { min-height: 130px; }
.cfg { display: grid; gap: 16px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), visibility .5s; }
.cfg.is-on, .reduced .cfg { opacity: 1; visibility: visible; transform: none; }
.cfg__group { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.cfg__group legend { padding: 0; margin-bottom: 8px; color: var(--text-muted); font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.cfg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--border-input); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 13px/1 var(--font-sans); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.opt:hover { border-color: var(--border-strong); }
.opt[aria-pressed="true"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.opt__chip { width: 28px; height: 28px; flex: none; border-radius: 50%; background: #999 center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.opt__chip--floor-oak { background-image: url("/tex/oak-board.webp"); }
.opt__chip--floor-white-oak { background-image: url("/tex/white-oak-board.webp"); }
.opt__chip--floor-grey-oak { background-image: url("/tex/grey-oak-board.webp"); }
.opt__chip--floor-walnut { background-image: url("/tex/walnut-board.webp"); }
.opt__chip--wall-marble { background-image: url("/tex/marble.webp"); }
.opt__chip--wall-slats { background: repeating-linear-gradient(90deg, #9a6a3f 0 4px, #2b1e15 4px 6px); }
.opt__chip--wall-stone { background-image: url("/tex/stacked-stone.webp"); }
.opt__chip--wall-onyx { background-image: url("/tex/onyx.webp"); box-shadow: 0 0 12px rgba(255, 170, 60, .7); }
.opt__chip--wall-charcoal { background-image: url("/tex/charcoal.webp"); }
.opt__chip--door-black { background: linear-gradient(180deg, #2a2725, #121110); }
.opt__chip--door-light { background: linear-gradient(180deg, #e8dcc8, #c9b89c); }
.cfg__out { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.cfg__out a { color: var(--text); font-weight: 600; text-underline-offset: .2em; }

.builder__stage { position: relative; height: min(78svh, 740px); min-height: 380px; }
@media (max-width: 1023px) { .builder__stage { height: 380px; } }
.room__scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2200px; perspective-origin: 50% 15%; }
.room__shadow { position: absolute; left: 50%; top: 66%; width: 70%; height: 20%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); filter: blur(16px); }
.room__tilt { transform-style: preserve-3d; transform: translateY(16%) rotateX(58deg); }
.room { --S: 420px; --H: 290px; position: relative; width: var(--S); height: var(--S); transform-style: preserve-3d; transform: rotateZ(45deg); }
@media (max-width: 1023px) { .room { --S: 240px; --H: 166px; } }
.room[data-floor="oak"] { --floor-tex: url("/tex/oak-board.webp"); }
.room[data-floor="white-oak"] { --floor-tex: url("/tex/white-oak-board.webp"); }
.room[data-floor="grey-oak"] { --floor-tex: url("/tex/grey-oak-board.webp"); }
.room[data-floor="walnut"] { --floor-tex: url("/tex/walnut-board.webp"); }
.room[data-wall="marble"] { --wall-tex: url("/tex/marble.webp"); }
.room[data-wall="slats"] { --wall-tex: repeating-linear-gradient(90deg, #a06e42 0 9px, #2b1e15 9px 13px); }
.room[data-wall="stone"] { --wall-tex: url("/tex/stacked-stone.webp"); }
.room[data-wall="onyx"] { --wall-tex: url("/tex/onyx.webp"); }
.room[data-wall="charcoal"] { --wall-tex: url("/tex/charcoal.webp"); }
.room[data-door="black"] { --door-bg: linear-gradient(180deg, #2a2725, #121110); }
.room[data-door="light"] { --door-bg: linear-gradient(180deg, #e8dcc8, #c9b89c); }
.room__floor { position: absolute; inset: 0; transform-style: preserve-3d; background: #3a3632; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.plk { position: absolute; background-image: var(--floor-tex); background-size: auto 100%; background-repeat: repeat-x; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); transition: background-image .2s; }
.room__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .8s; background: radial-gradient(75% 60% at 0% 0%, rgba(255, 176, 70, .6), transparent 70%); mix-blend-mode: screen; }
.room[data-wall="onyx"] .room__glow { opacity: 1; }
.room__wall { position: absolute; transform-style: preserve-3d; }
.room__wall--back { left: 0; top: calc(var(--H) * -1); width: var(--S); height: var(--H); transform-origin: 50% 100%; transform: rotateX(-90deg); }
.room__wall--side { left: calc(var(--H) * -1); top: 0; width: var(--H); height: var(--S); transform-origin: 100% 50%; transform: rotateY(90deg); }
.wall__in { position: absolute; display: flex; transform-style: preserve-3d; background: rgba(0, 0, 0, .05); }
.room__wall--back .wall__in { inset: 0; }
.room__wall--side .wall__in { width: var(--S); height: var(--H); left: calc((var(--H) - var(--S)) / 2); top: calc((var(--S) - var(--H)) / 2); transform: rotate(-90deg); }
.pnl { flex: 1; height: 100%; background: var(--wall-tex); background-size: 600% 100%; background-position: calc(var(--k) * 20%) 0; box-shadow: inset -1px 0 0 rgba(0, 0, 0, .22); transform-origin: 50% 100%; }
.room[data-wall="slats"] .pnl, .room[data-wall="stone"] .pnl { background-size: auto; }
.room[data-wall="stone"] .pnl { background-size: 220px auto; }
.room__wall--side .pnl { filter: brightness(.78); }
.room[data-wall="onyx"] .pnl { filter: brightness(1.12) saturate(1.1); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .3), 0 0 36px rgba(255, 170, 60, .35); }
.room[data-wall="onyx"] .room__wall--side .pnl { filter: brightness(.95) saturate(1.1); }
.door { position: absolute; bottom: 0; left: 62%; width: 21%; height: 78%; background: #141210; box-shadow: inset 0 0 0 4px #ece6dd; transform-style: preserve-3d; }
.door__leaf { position: absolute; inset: 4px 4px 0; background: var(--door-bg); transform-origin: 0 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35); }
.door__leaf::before { content: ""; position: absolute; inset: 10% 16% 52%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1), 0 0 0 0; }
.door__leaf::after { content: ""; position: absolute; inset: 54% 16% 8%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1); }
.room[data-door="light"] .door__leaf::before, .room[data-door="light"] .door__leaf::after { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); }
.door__leaf b { position: absolute; right: 12%; top: 46%; width: 4px; height: 16%; border-radius: 2px; background: #c8a46a; }

/* ---------- Walls story ---------- */
.ws__head { display: grid; gap: 24px; margin-bottom: clamp(32px, 4vw, 64px); }
@media (min-width: 1024px) { .ws__head { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.ws__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .ws__grid { grid-template-columns: .78fr 1.22fr; gap: 72px; } }
.ws__item { display: flex; flex-direction: column; gap: 14px; }
.ws__mimg { aspect-ratio: 4 / 3; margin-bottom: 8px; }
.ws__no { color: var(--text-muted); font-size: 12px; letter-spacing: .08em; }
.ws__name { font-size: clamp(32px, 3.4vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.ws__kick { color: var(--text-brand); font-weight: 600; }
.ws__text { color: var(--text-muted); max-width: 44ch; }
.ws__actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 6px; }
.ws__media { display: none; }
@media (min-width: 1024px) {
  .ws__item { min-height: 78svh; justify-content: center; opacity: .3; transition: opacity .5s; }
  .ws__item.is-on { opacity: 1; }
  .ws__mimg { display: none; }
  .ws__media { display: block; position: sticky; top: calc(var(--hdr) + 28px); height: calc(100svh - var(--hdr) - 56px); }
}
.ws__frame { position: relative; height: 100%; overflow: hidden; background: var(--surface-sunken); }
.ws__img { position: absolute; inset: 0; margin: 0; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-out); }
.ws__img.is-on { clip-path: inset(0 0 0 0); }
.ws__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.ws__img.is-on img { transform: scale(1); }
.ws__dots { position: absolute; right: 18px; top: 50%; z-index: 50; display: grid; gap: 8px; transform: translateY(-50%); }
.ws__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); transition: height .45s var(--ease-out), background-color .3s; }
.ws__dots i.is-on { height: 24px; background: #fff; }

/* ---------- Compare ---------- */
.cmp__head { display: grid; gap: 20px; justify-items: center; text-align: center; margin-bottom: clamp(36px, 5vw, 72px); }
.cmp__scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.cmp__grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); }
.cmp__col { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 20px 8px; border-left: 1px solid var(--border); text-align: center; scroll-snap-align: start; }
.cmp__col:first-child { border-left: 0; }
.cmp__name { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.cmp__kick { color: var(--text-brand); font: 600 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; min-height: 2.8em; }
.cmp__rows { display: grid; width: 100%; margin-top: 4px; }
.cmp__rows div { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--border); min-height: 86px; align-content: start; }
.cmp__rows dt { color: var(--text-muted); font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cmp__rows dd { font-size: 14px; font-weight: 600; line-height: 1.45; }
.cmp__actions { display: grid; gap: 12px; justify-items: center; margin-top: 8px; }
.slab { width: 190px; height: 150px; display: grid; place-items: center; perspective: 800px; }
.slab__in { position: relative; width: 150px; height: 74px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-32deg); transition: transform .9s var(--ease-out); }
.slab__turn { position: absolute; inset: 0; transform-style: preserve-3d; }
.cmp__col:hover .slab__in { transform: rotateX(50deg) rotateZ(-18deg) translateZ(14px); }
.slab__in i { position: absolute; display: block; }
.slab__top { inset: 0; background: var(--tex) center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.slab__front { left: 0; top: 100%; width: 100%; height: 12px; transform-origin: 50% 0; transform: rotateX(-90deg); background: var(--edge); }
.slab__side { left: 100%; top: 0; width: 12px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: var(--edge); filter: brightness(.85); }
.slab--oak { --tex: url("/tex/oak.webp"); --edge: #8a6338; }
.slab--grey-oak { --tex: url("/tex/grey-oak.webp"); --edge: #7d7770; }
.slab--white-oak { --tex: url("/tex/white-oak.webp"); --edge: #b49c7c; }
.slab--walnut { --tex: url("/tex/walnut.webp"); --edge: #4a3020; }
.slab--sport { --tex: linear-gradient(90deg, transparent 47%, #fff 47% 50%, transparent 50%), linear-gradient(0deg, transparent 60%, rgba(255,255,255,.9) 60% 63%, transparent 63%), #1f5596; --edge: #173a69; }
.slab--maple { --tex: linear-gradient(0deg, transparent 66%, #b8202a 66% 70%, transparent 70%), url("/tex/white-oak.webp"); --edge: #b49c7c; }

/* ---------- Local nav (sticky, under the site header) ---------- */
.localnav { position: sticky; top: var(--hdr); z-index: 90; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--border); transition: top .5s var(--ease-out); }
.hdr.is-hidden ~ main .localnav { top: 0; }
.localnav__in { display: flex; align-items: center; gap: 24px; height: 52px; }
.localnav__t { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.localnav__links { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.localnav__links::-webkit-scrollbar { display: none; }
.localnav__links a { color: var(--text-muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s; }
.localnav__links a:hover, .localnav__links a.is-on { color: var(--text); }
@media (max-width: 639px) { .localnav__t { display: none; } .localnav__links { margin-left: 0; } }

/* ---------- Chapters ---------- */
.chapter { padding-top: clamp(88px, 11vw, 170px); }
.chapter__head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(32px, 4vw, 60px); }
.chapter__no { color: var(--text-brand); font-size: 12px; letter-spacing: .1em; }
.chapter__name { margin: 0; font-size: clamp(44px, 7.2vw, 124px); font-weight: 700; letter-spacing: -.055em; line-height: .92; text-wrap: balance; }
.chapter__kick { color: var(--text-muted); font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; }
.chapter__media { position: relative; height: min(86svh, 920px); }
@media (max-width: 767px) { .chapter__media { height: 62svh; } }
.chapter__media--hero { margin-top: clamp(40px, 6vw, 88px); }
.chapter__frame { position: absolute; inset: 0; overflow: hidden; }
.js .chapter__frame { clip-path: inset(0 12% 0 12%); }
.reduced .chapter__frame { clip-path: none !important; }
.chapter__frame img { width: 100%; height: 100%; object-fit: cover; }
.chapter__body { display: grid; gap: 28px; padding-block: clamp(36px, 4vw, 56px) clamp(24px, 3vw, 40px); }
@media (min-width: 1024px) { .chapter__body { grid-template-columns: 1.1fr 1fr; gap: 48px 72px; align-items: start; } }
.chapter__text { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.6; max-width: 40ch; }
.chapter__specs { display: grid; }
.chapter__specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.chapter__specs div:last-child { border-bottom: 1px solid var(--border); }
.chapter__specs dt { color: var(--text-muted); font: 600 11px/1.6 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.chapter__specs dd { font-weight: 600; }
.chapter__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }

.intro__top, .intro__bottom { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .intro .anat__grid { position: relative; }
  .intro__copy { position: static; }
  .intro__hero { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter-r); top: calc(var(--hdr) + 3svh); bottom: 4svh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; pointer-events: none; }
  .intro__hero > * { pointer-events: auto; justify-items: center; }
  .intro__title { font-size: clamp(52px, 6.4vw, 116px); }
  .intro__lead { max-width: 52ch; }
  .intro .scroll-cue { margin-top: 0; }
}
.builder .h2 { font-size: clamp(30px, 3.3vw, 56px); }
.room__tilt { transform: translateY(4%) rotateX(58deg); }
.room { --S: min(400px, 34vw, 46svh); --H: calc(var(--S) * .68); }
@media (max-width: 1023px) { .room { --S: 230px; --H: 156px; } .room__tilt { transform: translateY(10%) rotateX(58deg); } }
.builder.is-cfg .builder__steps { display: none; }
@media (min-width: 1024px) { .cfg { position: relative; } }
.ws { position: relative; background: var(--bg); }
@media (max-width: 1023px) {
  .builder__grid { min-height: 100svh; align-content: start; gap: 6px; }
  .builder__stage { order: -1; height: 280px; min-height: 0; }
  .builder .h2 { font-size: 28px; }
  .builder__copy { gap: 12px; }
  .builder__steps { min-height: 110px; }
  .cfg { gap: 10px; }
  .cfg__group legend { margin-bottom: 4px; }
  .cfg__opts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .cfg__opts::-webkit-scrollbar { display: none; }
  .opt { flex: none; }
  .builder .anat__note { display: none; }
}

/* ---------- v4: anatomy as its own section, sized for phones ---------- */
.intro .anat__stack { --w: 480px; --d: 176px; }
@media (min-width: 1024px) { .intro__copy .intro__anat { align-content: center; } }
@media (max-width: 1023px) {
  .intro .anat__grid { min-height: 100svh; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 0; padding-top: calc(var(--hdr) + 12px); padding-bottom: 16px; }
  .intro__copy { align-content: start; }
  .intro__anat { gap: 12px; }
  .intro .h2 { font-size: clamp(28px, 8vw, 36px); }
  .intro .anat__steps { min-height: 124px; }
  .anat__step h3 { font-size: 22px; }
  .anat__step p { font-size: 15px; line-height: 1.5; }
  .intro .anat__stage { height: auto; min-height: 240px; }
  .intro .anat__stack { --w: 220px; --d: 80px; }
  .anat__shadow { top: 64%; }
}

/* ---------- v4: lineup cards on phones carry their own text ---------- */
.hs__hint { display: none; }
@media (max-width: 1023px) {
  .hs__hint { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
  .hs__hint svg { width: 16px; height: 16px; animation: nudge 1.6s var(--ease-in-out) infinite; }
  .panel { width: 80vw; max-width: 420px; }
  .panel__media { aspect-ratio: 4 / 5; }
  .panel__media::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(13, 12, 11, .88)); pointer-events: none; }
  .panel__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 20px 22px; gap: 6px; color: var(--stone-0); }
  .panel__body .coll__kicker { color: var(--tan-300); }
  .panel__name { color: var(--stone-0); font-size: 28px; }
  .panel__desc { color: var(--stone-200); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hs__head { margin-bottom: 24px; }
}
@keyframes nudge { 50% { transform: translateX(5px); } }

/* =====================================================================
   v4: court builder, room builder extras, spill test, material library,
   before/after on phones
   ===================================================================== */
.builder.court-sec, .builder.spill { background: var(--bg); }
.court-sec { background: var(--bg) !important; }
@media (min-width: 1024px) { .builder__grid--flip { grid-template-columns: 1.18fr .82fr; } }
.cfg__row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.opt__chip--night { background: radial-gradient(circle at 35% 35%, #ffd27a 0 18%, #2a2420 22%); }
.opt__chip--random { background: conic-gradient(#a72211 0 25%, #ad8349 0 50%, #766b3d 0 75%, #cfc6b8 0); }
.opt__chip--sport-basketball { background: url("/tex/white-oak.webp") center / cover; box-shadow: inset 0 0 0 2px rgba(184, 32, 42, .8); }
.opt__chip--sport-pickleball { background: #2f62a8; box-shadow: inset 0 0 0 2px #fff; }

/* room builder extras */
.builder__stage--room { touch-action: pan-y; }
.room__spin { transform-style: preserve-3d; }
.cfg.is-on ~ * .room__spin, .builder.is-cfg .builder__stage--room { cursor: grab; }
.builder.is-cfg .builder__stage--room:active { cursor: grabbing; }
.drag-hint { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface-inverse) 85%, transparent); color: var(--text-inverse); font: 500 12px/1 var(--font-mono); letter-spacing: .04em; opacity: 0; transition: opacity .5s; pointer-events: none; white-space: nowrap; }
.builder.is-cfg .drag-hint { opacity: 1; }
.builder.is-dragged .drag-hint { opacity: 0; }
.room .room__floor, .room .pnl, .room .door { transition: filter .8s; }
.room.is-night .room__floor { filter: brightness(.45) saturate(.9); }
.room.is-night .pnl { filter: brightness(.42); }
.room.is-night .room__wall--side .pnl { filter: brightness(.34); }
.room.is-night[data-wall="onyx"] .pnl { filter: brightness(1.25) saturate(1.2); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .3), 0 0 60px rgba(255, 160, 50, .6); }
.room.is-night[data-wall="onyx"] .room__glow { opacity: 1; filter: brightness(1.5); }
.room__lamp { position: absolute; width: 46%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 140, .55), transparent); mix-blend-mode: screen; opacity: 0; transition: opacity .8s; pointer-events: none; }
.room.is-night .room__lamp { opacity: 1; }
.builder { transition: background-color .8s, color .8s; }

/* court */
.court { --W: min(460px, 38vw, 54svh); --L: calc(var(--W) * .532); position: relative; width: var(--W); height: var(--L); transform-style: preserve-3d; }
@media (max-width: 1023px) { .court { --W: 290px; } }
.court__surface { position: absolute; inset: 0; transform-style: preserve-3d; background: #2b2926; }
.tile { position: absolute; width: calc(100% / 12 + .5px); height: calc(100% / 6 + .5px); background: var(--court-bg); background-size: 1200% 600%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .18); transition: background .6s; }
.court[data-sport="basketball"] { --court-bg: url("/tex/white-oak.webp"); --line: #f4f1ea; }
.court[data-sport="pickleball"] { --court-bg: linear-gradient(#2f62a8, #2f62a8); --line: #ffffff; }
.court[data-sport="pickleball"] .tile { background: linear-gradient(135deg, #3369b3, #2a5b9c); }
.court__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(.6px); }
.court__lines path, .court__lines rect, .court__lines circle { fill: none; stroke: var(--line); stroke-width: 4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
@media (max-width: 1023px) { .court__lines path, .court__lines rect, .court__lines circle { stroke-width: 2.5; } }
.court[data-sport="basketball"] .lines--basketball path:nth-child(5), .court[data-sport="basketball"] .lines--basketball path:nth-child(8) { stroke: #b8202a; }
.lines { transition: opacity .4s; }
.lines { opacity: 0; }
.court[data-sport="basketball"] .lines--basketball, .court[data-sport="pickleball"] .lines--pickleball, .court[data-sport="tennis"] .lines--tennis, .court[data-sport="badminton"] .lines--badminton, .court[data-sport="volleyball"] .lines--volleyball { opacity: 1; }
.hoop { position: absolute; top: 50%; width: calc(var(--W) * .2); height: calc(var(--L) * .3); margin-top: calc(var(--L) * -.15); transform-style: preserve-3d; }
.hoop--l { left: calc(var(--W) * -.2 + 2px); transform-origin: 100% 50%; }
.hoop--r { left: calc(100% - 2px); transform-origin: 0 50%; }
.hoop__in { position: absolute; width: calc(var(--L) * .3); height: calc(var(--W) * .2); left: calc((var(--W) * .2 - var(--L) * .3) / 2); top: calc((var(--L) * .3 - var(--W) * .2) / 2); }
.hoop--l .hoop__in { transform: rotate(-90deg); }
.hoop--r .hoop__in { transform: rotate(90deg); }
.hoop__pole { position: absolute; left: 47%; bottom: 0; width: 6%; height: 62%; background: #3a3a3a; }
.hoop__board { position: absolute; left: 14%; top: 4%; width: 72%; height: 42%; background: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #b8202a; }
.hoop__rim { position: absolute; left: 40%; top: 46%; width: 20%; height: 3px; background: #e0602a; border-radius: 2px; }
.net { position: absolute; left: 50%; top: 4%; width: calc(var(--W) * .07); height: 92%; transform-origin: 0 50%; transform-style: preserve-3d; }
.net__in { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.75) 0 1px, transparent 1px 5px), repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 1px, transparent 1px 5px); box-shadow: inset 3px 0 0 #fff; }
.court[data-sport="basketball"] .net, .court:not([data-sport="basketball"]) .hoop { visibility: hidden; }

/* spill test */
.spill__stage { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 40px); }
.spill__item { flex: 1; max-width: 330px; display: grid; justify-items: center; gap: 10px; }
.spill__scene { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; perspective: 1500px; perspective-origin: 50% 20%; }
.spill__tilt { transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(40deg); }
.spill__slab { --s: min(230px, 18vw, 30svh); position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; }
@media (max-width: 1023px) { .spill__slab { --s: min(120px, 30vw); } }
.spill__top { position: absolute; inset: 0; transform-style: preserve-3d; background: #2b2622; }
.spill__front { position: absolute; left: 0; top: 100%; width: 100%; height: 14px; transform-origin: 50% 0; transform: rotateX(-90deg); background: var(--edge); }
.spill__side { position: absolute; left: 100%; top: 0; width: 14px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: var(--edge); filter: brightness(.8); }
.spill__slab--hard { --edge: #7a5530; --brd: url("/tex/oak-board.webp"); }
.spill__slab--ever { --edge: #b59d7d; --brd: url("/tex/white-oak-board.webp"); }
.brd { position: absolute; background: var(--brd); background-size: auto 100%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .3); transform-origin: 50% 50%; }
.puddle { position: absolute; left: 22%; top: 24%; width: 58%; height: 50%; border-radius: 48% 52% 44% 56% / 56% 44% 54% 46%; transform: translateZ(1.5px) scale(0); background: radial-gradient(60% 60% at 40% 35%, rgba(255, 255, 255, .5), rgba(185, 215, 235, .35) 45%, rgba(140, 180, 210, .28) 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), inset -6px -8px 14px rgba(255, 255, 255, .25), 0 0 10px rgba(120, 160, 200, .25); }
.puddle::after { content: ""; position: absolute; left: 22%; top: 18%; width: 30%; height: 14%; border-radius: 50%; background: rgba(255, 255, 255, .8); filter: blur(2px); }
.stain { position: absolute; left: 20%; top: 22%; width: 62%; height: 54%; border-radius: 48% 52% 44% 56% / 56% 44% 54% 46%; transform: translateZ(.8px); background: radial-gradient(closest-side, rgba(60, 35, 15, .0) 55%, rgba(60, 35, 15, .45) 85%, transparent); opacity: 0; }
.fall { position: absolute; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 18%, rgba(170, 205, 230, .9) 40%, rgba(110, 160, 200, .8)); opacity: 0; }
.spill__label { display: grid; justify-items: center; gap: 4px; text-align: center; }
.spill__label b { font-size: 15px; }
.spill__state { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); transition: color .3s, border-color .3s, background-color .3s; }
.spill__state.is-bad { color: var(--danger-fg); border-color: var(--danger-border); background: var(--danger-bg); }
.spill__state.is-good { color: var(--success-fg); border-color: var(--success-border); background: var(--success-bg); }
@media (max-width: 1023px) { .spill .builder__stage { height: 300px; } }

/* material library */
.lib .cmp__head .link-arrow { margin-top: 4px; }
.lib__grid { display: grid; gap: 34px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .lib__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .lib__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.lib__item { display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--text); }
.lib__stage { width: 100%; aspect-ratio: 1.1; display: grid; place-items: center; perspective: 700px; }
.lib__tile { position: relative; width: 70%; aspect-ratio: 1; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-38deg); transition: transform .9s var(--ease-out); }
.lib__item:hover .lib__tile, .lib__item:focus-visible .lib__tile { transform: rotateX(46deg) rotateZ(-26deg) translateZ(26px); }
.lib__top { position: absolute; inset: 0; background: var(--img) center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.lib__front { position: absolute; left: 0; top: 100%; width: 100%; height: 10px; transform-origin: 50% 0; transform: rotateX(-90deg); background: #2a2622; }
.lib__side { position: absolute; left: 100%; top: 0; width: 10px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: #1c1916; }
.lib__tile::after { content: ""; position: absolute; inset: 8% -6% -14% 8%; transform: translateZ(-16px); background: rgba(0, 0, 0, .35); filter: blur(10px); transition: transform .9s var(--ease-out), opacity .9s; }
.lib__item:hover .lib__tile::after { transform: translateZ(-44px); opacity: .6; }
.lib__cat { color: var(--text-brand); font: 600 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.lib__name { font-size: 16px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lib__kick { color: var(--text-muted); font-size: 13px; line-height: 1.4; }

/* before/after pinned on phones too */
@media (max-width: 1023px) {
  .tf.is-pinned { height: 100svh; padding-block: calc(var(--hdr) + 12px) 14px; display: flex; }
  .tf.is-pinned .tf__grid { height: 100%; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
  .tf.is-pinned .tf__copy { gap: 10px; }
  .tf.is-pinned .lead, .tf.is-pinned .tf__quote { display: none; }
  .tf.is-pinned .h2 { font-size: 28px; }
  .tf.is-pinned .tf__step { padding: 8px 0; font-size: 14px; }
  .tf.is-pinned .tf__frame { height: 100%; width: auto; max-width: 100%; justify-self: center; }
}
/* compare: every column shares one row grid so rows line up */
.cmp__grid { grid-template-rows: repeat(7, auto); }
.cmp__col { display: grid; grid-row: span 7; grid-template-rows: subgrid; justify-items: center; align-content: start; row-gap: 10px; }
.cmp__rows { display: contents; }
.cmp__rows div { width: 100%; min-height: 0; }
.cmp__name { min-height: 2.3em; display: flex; align-items: center; }
.cmp__kick { min-height: 2.8em; }
.cmp__actions { align-self: start; }
@media (max-width: 767px) { .cmp__grid { grid-auto-columns: 78vw; } }
.spill.is-cfg .builder__steps { display: grid; }

/* ---------- v5: room builder refinements ---------- */
.room__edge { position: absolute; background: #2c2824; }
.room__edge--front { left: 0; top: 100%; width: 100%; height: 16px; transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(180deg, #3a342e, #221f1b); }
.room__edge--right { left: 100%; top: 0; width: 16px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(90deg, #2e2a25, #1a1815); }
.room__ao { position: absolute; inset: 0; pointer-events: none; transform: translateZ(.4px);
  background: linear-gradient(180deg, rgba(0, 0, 0, .32), transparent 16%), linear-gradient(90deg, rgba(0, 0, 0, .26), transparent 14%); }
.room__sun { position: absolute; left: 3%; top: 30%; width: 44%; height: 26%; pointer-events: none; transform: translateZ(.5px) skewY(-8deg);
  background: linear-gradient(90deg, rgba(255, 244, 220, .34), rgba(255, 244, 220, .08)); filter: blur(4px); mix-blend-mode: screen; transition: opacity .8s; }
.room.is-night .room__sun { opacity: 0; }
.wall__in::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, .22), transparent 30%, rgba(255, 255, 255, .06)); }
.wall__skirt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 4.5%; background: linear-gradient(180deg, #f1ece4, #d9d2c6); box-shadow: 0 -1px 0 rgba(0, 0, 0, .15); }
.room.is-night .wall__skirt { filter: brightness(.45); }
.wall__cap { position: absolute; left: 0; top: 0; width: 100%; height: 12px; z-index: 2; transform-origin: 50% 0; transform: rotateX(90deg); background: #e9e4dc; }
.room.is-night .wall__cap { filter: brightness(.5); }
.door { z-index: 3; }
.door::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(0, 0, 0, .35); }
.window { position: absolute; z-index: 3; left: 16%; top: 16%; width: 30%; height: 46%; background: #ece6dd; box-shadow: inset 0 0 0 4px #ece6dd; padding: 5px; }
.window__glass { position: absolute; inset: 5px; background: linear-gradient(200deg, #cfe3f2 0%, #a9c8e2 55%, #e6ddc8 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: background 1s; }
.window__glass::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #ece6dd; }
.window__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .5), transparent 40%); }
.room.is-night .window__glass { background: linear-gradient(200deg, #0d1a33 0%, #1d2d4f 60%, #3a2a3a 100%); }
.room.is-night .window { filter: brightness(.6); }
.opt[aria-pressed="true"] .opt__chip { box-shadow: 0 0 0 2px var(--bg-subtle), 0 0 0 4px var(--accent); }
.cfg__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.cfg__sumt { margin-right: 4px; color: var(--text-muted); font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.sumchip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-inverse); color: var(--text-inverse); font-size: 13px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.sumchip:hover { background: var(--accent); color: var(--on-accent); }
.plk, .pnl { backface-visibility: hidden; }

/* ---------- v6: library tiles show the material itself ---------- */
.lib__top { background: #888 center / cover; }
.lib__tile[data-mat="kent-vinyl-tiles"] .lib__top { background-image: url("/tex/oak.webp"); }
.lib__tile[data-mat="iwf-mfb"] .lib__top { background-image: url("/tex/grey-oak.webp"); }
.lib__tile[data-mat="everwood"] .lib__top { background-image: url("/tex/white-oak.webp"); }
.lib__tile[data-mat="outdoor-decking"] .lib__top { background: repeating-linear-gradient(90deg, transparent 0 15%, #1d1410 15% 17%), url("/tex/walnut-board.webp") center / 400% 100%; }
.lib__tile[data-mat="sports-flooring"] .lib__top { background: linear-gradient(90deg, transparent 48%, #fff 48% 51%, transparent 51%), linear-gradient(0deg, transparent 30%, rgba(255,255,255,.9) 30% 33%, transparent 33%), linear-gradient(135deg, #3369b3, #2a5b9c); }
.lib__tile[data-mat="basketball-flooring"] .lib__top { background: radial-gradient(circle at 50% 50%, transparent 26%, #f4f1ea 26% 28%, transparent 28%), linear-gradient(90deg, transparent 49%, #f4f1ea 49% 51%, transparent 51%), url("/tex/white-oak.webp") center / cover; }
.lib__tile[data-mat="translucent-stone"] .lib__top { background-image: url("/tex/onyx.webp"); box-shadow: 0 0 30px rgba(255, 170, 60, .55), inset 0 0 0 1px rgba(255, 255, 255, .15); }
.lib__tile[data-mat="flexible-stone"] .lib__top { background-image: url("/tex/flex-stone.webp"); }
.lib__tile[data-mat="spc-wall-panels"] .lib__top { background-image: url("/tex/marble.webp"); }
.lib__tile[data-mat="bamboo-charcoal"] .lib__top { background-image: url("/tex/charcoal.webp"); }
.lib__tile[data-mat="acoustic-panels"] .lib__top { background: repeating-linear-gradient(90deg, #a06e42 0 9px, #2b1e15 9px 13px); }
.lib__tile[data-mat="pu-stone"] .lib__top { background-image: url("/tex/stacked-stone.webp"); background-size: 200%; }
.lib__tile[data-mat="main-doors"] .lib__top, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__top {
  background: linear-gradient(90deg, transparent 77%, #c8a46a 77% 79%, transparent 79%) 0 46% / 100% 14% no-repeat,
              linear-gradient(transparent, transparent) , var(--door-face); box-shadow: inset 0 0 0 6px var(--door-frame), inset 0 0 0 7px rgba(0,0,0,.3); }
.lib__tile[data-mat="main-doors"] { --door-face: linear-gradient(180deg, #2a2725, #121110); --door-frame: #3a3532; }
.lib__tile[data-mat="aluminum-wpc-doors"] { --door-face: linear-gradient(180deg, #e8dcc8, #c9b89c); --door-frame: #b9ab94; }
.lib__tile[data-mat="main-doors"] .lib__top::before, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__top::before { content: ""; position: absolute; inset: 14% 22% 54%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.lib__tile[data-mat="main-doors"] .lib__top::after, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__top::after { content: ""; position: absolute; inset: 52% 22% 12%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.lib__tile[data-mat="aluminum-wpc-doors"] .lib__top::before, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__top::after { box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); }

/* ---------- v6: deck builder ---------- */
.deck-sec { background: linear-gradient(180deg, #f3eee6, #e9e1d4); }
[data-theme="dark"].deck-sec { background: linear-gradient(180deg, #121826, #1d1a22 60%, #2a1f1c); }
.deck { --W: min(470px, 38vw, 56svh); --L: calc(var(--W) * .72); position: relative; width: var(--W); height: var(--L); transform-style: preserve-3d; }
@media (max-width: 1023px) { .deck { --W: min(270px, 70vw); } }
.deck__ground { position: absolute; display: block; background: #4a3f33; }
.deck__edge { position: absolute; }
.deck__edge--front { left: 0; top: 100%; width: 100%; height: 22px; transform-origin: 50% 0; transform: rotateX(-90deg); background: linear-gradient(180deg, #5b4c3c, #33291f); }
.deck__edge--right { left: 100%; top: 0; width: 22px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: linear-gradient(90deg, #4a3d30, #2a2219); }
.deck__joists { position: absolute; inset: 0; transform-style: preserve-3d; }
.joist { position: absolute; width: 2.4%; background: #2b231c; transform: translateZ(1.5px); }
.deck__boards { position: absolute; inset: 0; transform-style: preserve-3d; }
.bd { position: absolute; background: var(--bd); background-size: cover; transform: translateZ(3px); box-shadow: inset 0 0 0 .5px rgba(0,0,0,.35), inset 0 -1px 0 rgba(0,0,0,.25); transition: background-image .2s; }
.pool { position: absolute; transform-style: preserve-3d; }
.pool__floor { position: absolute; inset: 0; transform: translateZ(-38px); background: repeating-linear-gradient(0deg, rgba(255,255,255,.35) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 12px), #3d8fbf; }
.pool__wb { position: absolute; left: 0; top: 0; width: 100%; height: 41px; transform-origin: 50% 0; transform: rotateX(-90deg); background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px 12px), linear-gradient(180deg, #7cc0e0, #3f88b4); }
.pool__wl { position: absolute; left: 0; top: 0; width: 41px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); background: repeating-linear-gradient(0deg, rgba(255,255,255,.3) 0 1px, transparent 1px 12px), linear-gradient(90deg, #67b0d4, #2f789f); }
.pool__water { position: absolute; inset: 0; transform: translateZ(-38px); opacity: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35) 0 2px, transparent 3px) 0 0 / 22px 18px, radial-gradient(circle at 70% 60%, rgba(255,255,255,.25) 0 2px, transparent 3px) 0 0 / 30px 26px, linear-gradient(160deg, rgba(120, 205, 235, .85), rgba(40, 140, 190, .8));
  animation: caustic 6s linear infinite; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
@keyframes caustic { to { background-position: 44px 36px, -60px 52px, 0 0; } }
.pool__glow { position: absolute; inset: 0; transform: translateZ(-6px); opacity: 0; transition: opacity .9s; background: radial-gradient(closest-side, rgba(110, 230, 255, .7), transparent); mix-blend-mode: screen; pointer-events: none; }
.pool__coping { position: absolute; box-sizing: border-box; border: 5px solid #e8e2d8; transform: translateZ(3.5px); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.lng { position: absolute; width: 22%; height: 12%; transform-style: preserve-3d; }
.lng i { position: absolute; display: block; }
.lng__top { inset: 0; transform: translateZ(12px); background: #f3efe8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset 0 -3px 0 rgba(0,0,0,.08); }
.lng__front { left: 0; top: 100%; width: 100%; height: 9px; transform-origin: 50% 0; transform: translateZ(12px) rotateX(-90deg); background: #6b5440; }
.lng__side { left: 100%; top: 0; width: 9px; height: 100%; transform-origin: 0 50%; transform: translateZ(12px) rotateY(90deg); background: #574332; }
.lng__back { left: 0; top: 0; width: 32%; height: 100%; transform-origin: 0 50%; transform: translateZ(12px) rotateY(-55deg); background: #e7e1d8; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.bulb { position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%; transform: translateZ(5px); background: #6b5f50; transition: background-color .8s, box-shadow .8s; }
.deck .bd, .deck .deck__ground, .deck .lng__top, .deck .lng__back, .deck .pool__coping { transition: filter .9s; }
.deck[data-light="dusk"] .bd, .deck[data-light="dusk"] .deck__ground { filter: brightness(.5) saturate(.85); }
.deck[data-light="dusk"] .lng__top, .deck[data-light="dusk"] .lng__back, .deck[data-light="dusk"] .pool__coping { filter: brightness(.55); }
.deck[data-light="dusk"] .pool__glow { opacity: 1; }
.deck[data-light="dusk"] .pool__water { filter: brightness(1.15) saturate(1.3); }
.deck[data-light="dusk"] .bulb { background: #ffd58a; box-shadow: 0 0 10px 4px rgba(255, 200, 110, .7), 0 0 30px 8px rgba(255, 190, 90, .35); }
.opt__chip--light-day { background: radial-gradient(circle, #ffd76a 0 35%, #ffefb8 36%); }
.opt__chip--light-dusk { background: linear-gradient(180deg, #1d2a4a, #a8573a); }

/* ---------- v7: deck scene props ---------- */
.deck { --HH: calc(var(--W) * .34); }
.deck__house { position: absolute; left: 0; top: calc(var(--HH) * -1); width: 100%; height: var(--HH); transform-origin: 50% 100%; transform: rotateX(-90deg); transform-style: preserve-3d; }
.house__in { position: absolute; inset: 0; background: linear-gradient(180deg, #ebe5da, #ddd5c7); box-shadow: inset 0 -6px 0 #b9ae9c; transition: filter .9s; }
.house__glass { position: absolute; bottom: 6px; width: 17%; height: 72%; background: linear-gradient(200deg, #d7e6ef 0%, #a9c3d6 60%, #c9c1b0 100%); box-shadow: inset 0 0 0 3px #3a332c; transition: background 1s, box-shadow 1s; }
.house__glass:nth-child(1) { left: 30%; } .house__glass:nth-child(2) { left: 47.5%; } .house__glass:nth-child(3) { left: 65%; }
.house__glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.55), transparent 45%); }
.house__eave { position: absolute; left: -2%; right: -2%; top: 0; height: 9%; background: #3a332c; }
.deck[data-light="dusk"] .house__in { background: linear-gradient(180deg, #4a4540, #3b3632); box-shadow: inset 0 -6px 0 #2a2622; }
.deck[data-light="dusk"] .house__glass { background: linear-gradient(200deg, #ffd99a 0%, #f2b25c 70%, #c98a3e 100%); box-shadow: inset 0 0 0 3px #3a332c, 0 0 40px 6px rgba(255, 190, 100, .45); }

.lng { width: 24%; height: 11%; }
.lng__sh { inset: 4% -6% -18% 2%; transform: translateZ(3.6px); background: rgba(0, 0, 0, .28); filter: blur(5px); border-radius: 4px; }
.lng__top { transform: translateZ(10px); background: linear-gradient(90deg, #f6f3ec, #ebe5db); box-shadow: inset 0 0 0 2px #8a6a4a, inset 0 -3px 0 rgba(0,0,0,.08); }
.lng__front { height: 7px; transform: translateZ(10px) rotateX(-90deg); background: linear-gradient(90deg, #7a5c40, #8f6e4e); }
.lng__side { width: 7px; transform: translateZ(10px) rotateY(90deg); background: #5f4733; }
.lng__back { width: 30%; transform: translateZ(10px) rotateY(-50deg); background: linear-gradient(90deg, #efe9df, #e2dbcf); box-shadow: inset 0 0 0 2px #8a6a4a; }

.umb { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.umb i { position: absolute; display: block; }
.umb__sh { left: -46px; top: -30px; width: 92px; height: 72px; border-radius: 50%; transform: translate(14px, 22px) translateZ(3.6px); background: radial-gradient(closest-side, rgba(0,0,0,.3), transparent); }
.umb__pole { left: -1.5px; top: -78px; width: 3px; height: 78px; transform-origin: 50% 100%; transform: rotateX(-90deg); background: #e7e1d6; }
.umb__top { left: -48px; top: -48px; width: 96px; height: 96px; transform: translateZ(76px); clip-path: polygon(50% 0, 85% 15%, 100% 50%, 85% 85%, 50% 100%, 15% 85%, 0 50%, 15% 15%); background: conic-gradient(from 22.5deg, #efe8dc 0 12.5%, #e2d9ca 0 25%, #efe8dc 0 37.5%, #e2d9ca 0 50%, #efe8dc 0 62.5%, #e2d9ca 0 75%, #efe8dc 0 87.5%, #e2d9ca 0); transition: filter .9s; }
.deck[data-light="dusk"] .umb__top, .deck[data-light="dusk"] .umb__pole { filter: brightness(.5); }
@media (max-width: 1023px) { .umb { transform: scale(.62); } }

.plt { position: absolute; width: 10%; height: 12%; transform-style: preserve-3d; }
.plt i { position: absolute; display: block; }
.plt__top { inset: 0; transform: translateZ(16px); background: #3b2f25; }
.plt__front { left: 0; top: 100%; width: 100%; height: 16px; transform-origin: 50% 0; transform: translateZ(16px) rotateX(-90deg); background: #6d6a63; }
.plt__side { left: 100%; top: 0; width: 16px; height: 100%; transform-origin: 0 50%; transform: translateZ(16px) rotateY(90deg); background: #57544e; }
.plt__leaf { inset: -30% -25%; transform: translateZ(22px); border-radius: 50%; background: radial-gradient(circle at 30% 35%, #6f9a4e 0 18%, transparent 19%), radial-gradient(circle at 65% 30%, #5d8a41 0 20%, transparent 21%), radial-gradient(circle at 50% 65%, #4f7a37 0 24%, transparent 25%), radial-gradient(circle at 25% 70%, #628f45 0 16%, transparent 17%), radial-gradient(circle at 78% 66%, #577f3b 0 17%, transparent 18%); transition: filter .9s; }
.plt__leaf--hi { inset: -10% -5%; transform: translateZ(34px); background: radial-gradient(circle at 40% 40%, #86b05e 0 22%, transparent 23%), radial-gradient(circle at 66% 58%, #75a052 0 22%, transparent 23%), radial-gradient(circle at 34% 70%, #6a9748 0 18%, transparent 19%); }
.deck[data-light="dusk"] .plt i { filter: brightness(.45) saturate(.8); }

/* ---------- v7: filter bar, solid full-bleed band that tucks under the header ---------- */
.filters { top: var(--hdr); padding: 12px 0; background: var(--bg); backdrop-filter: none; box-shadow: 0 0 0 100vmax var(--bg), 0 1px 0 100vmax var(--border, rgba(0,0,0,.08)); clip-path: inset(0 -100vmax -1px); transition: top .4s var(--ease-out, cubic-bezier(.2,.7,.2,1)); }
body:has(.hdr.is-hidden) .filters { top: 0; }
@media (max-width: 767px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; scroll-snap-align: start; }
  .filters__count { flex: none; padding-left: 8px; font-size: 12px; }
}

/* ---------- v8: collection pages ---------- */
.cp__hero { display: grid; padding-top: var(--hdr); background: var(--bg-subtle); }
.cp__herocopy { display: grid; align-content: end; gap: 22px; padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(36px, 5vw, 72px); }
.cp__title { font-size: clamp(46px, 6.4vw, 108px); font-weight: 700; letter-spacing: -.05em; line-height: .94; text-wrap: balance; max-width: 11ch; }
.cp__kick { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -.01em; color: var(--text-muted); max-width: 30ch; text-wrap: balance; }
.cp__heroimg { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-sunken); }
.cp__heroimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .cp__hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.38fr); align-items: stretch; }
  .cp__heroimg { aspect-ratio: auto; min-height: min(calc(100svh - var(--hdr)), 860px); max-height: 980px; }
  .cp__herocopy { padding-right: clamp(32px, 4vw, 72px); }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.crumbs a:hover { color: var(--text); }
.cp__bar { position: sticky; top: var(--hdr); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); transition: top .4s cubic-bezier(.2,.7,.2,1); }
body:has(.hdr.is-hidden) .cp__bar { top: 0; }
.cp__barin { display: flex; align-items: center; gap: 28px; min-height: 60px; }
.cp__barin > b { font-size: 17px; letter-spacing: -.01em; margin-right: auto; white-space: nowrap; }
.cp__barin nav { display: flex; gap: 24px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cp__barin nav a:hover { color: var(--text); }
@media (max-width: 767px) { .cp__barin nav { display: none; } .cp__barin { gap: 12px; } }
.cp__h { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 64px); }
.cp__ovgrid { display: grid; gap: clamp(32px, 5vw, 96px); }
@media (min-width: 1024px) { .cp__ovgrid { grid-template-columns: 1.55fr 1fr; align-items: start; } }
.cp__lede { margin-top: 24px; font-size: clamp(21px, 1.9vw, 30px); line-height: 1.38; font-weight: 600; letter-spacing: -.02em; text-wrap: pretty; max-width: 34ch; }
.cp__aside { display: grid; gap: 18px; padding-top: 8px; }
.cp__aside > h3 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-brand); }
.cp__uses { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.cp__uses li { padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; font-weight: 600; }
.cp__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-top: clamp(56px, 7vw, 110px); border-top: 1px solid var(--border); }
.fact { display: grid; gap: 8px; align-content: start; padding: 28px 24px 8px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--border); }
.fact b { font-size: clamp(36px, 4.4vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.fact span { color: var(--text-muted); font-size: 15px; line-height: 1.45; max-width: 24ch; }
@media (max-width: 639px) { .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); } }
.feats { list-style: none; padding: 0; display: grid; gap: clamp(28px, 3vw, 48px); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: clamp(56px, 7vw, 100px); }
.feats h3 { font-size: 19px; letter-spacing: -.015em; margin-bottom: 10px; }
.feats h3::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 18px; }
.feats p { color: var(--text-muted); line-height: 1.6; }
.gal { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.gal::-webkit-scrollbar { display: none; }
.gal__track { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; }
.gal__item { scroll-snap-align: start; display: grid; gap: 12px; }
.gal__item img { height: clamp(280px, 54svh, 560px); width: auto; max-width: 88vw; object-fit: cover; background: var(--surface-sunken); }
.gal__item figcaption { font-size: 14px; color: var(--text-muted); }
.gal:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.cp__lgrid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .cp__lgrid { grid-template-columns: 1fr 1.4fr; } }
.layers { list-style: none; padding: 0; border-top: 1px solid var(--border); }
.layers li { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.layers .mono { grid-row: span 2; color: var(--text-brand); font-size: 13px; padding-top: 4px; }
.layers b { font-size: 19px; letter-spacing: -.015em; }
.layers p { color: var(--text-muted); line-height: 1.55; }
.sw__group + .sw__group { margin-top: clamp(48px, 6vw, 88px); }
.sw__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.sw__head h3 { font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.02em; }
.sw__head .mono { color: var(--text-muted); font-size: 12px; }
.sw__note { color: var(--text-muted); margin: -8px 0 24px; max-width: 60ch; }
.sw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
@media (max-width: 479px) { .sw__grid { grid-template-columns: 1fr 1fr; } }
.sw__img { aspect-ratio: 1; overflow: hidden; background: var(--surface-sunken); }
.sw__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sw:hover .sw__img img { transform: scale(1.06); }
.sw figcaption { display: grid; gap: 2px; padding-top: 10px; }
.sw figcaption b { font-size: 15px; letter-spacing: -.01em; }
.sw figcaption .mono { color: var(--text-muted); font-size: 12px; }
.cp__fine { color: var(--text-muted); font-size: 14px; margin-top: 28px; }
.cp__specs { background: var(--bg); }
.spec__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .spec__grid { grid-template-columns: 1fr 2fr; } .spec__grid .cp__h { align-content: start; position: sticky; top: calc(var(--hdr) + 90px); } }
.spec__cols { display: grid; gap: 48px 40px; }
@media (min-width: 768px) { .spec__cols { grid-template-columns: 1fr 1fr; } }
.spec__group h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-brand); margin-bottom: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; }
.spec__group dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.spec__group dt { color: var(--text-muted); }
.spec__group dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.rel__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .rel__grid { grid-template-columns: repeat(3, 1fr); } }
.rel { display: grid; gap: 10px; }
.rel__media { aspect-ratio: 4 / 3; }
.rel__media img { transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.rel:hover .rel__media img { transform: scale(1.05); }
.rel h3 { font-size: 22px; letter-spacing: -.02em; }

/* deck colours: strips cut from the Kent decking catalogue colour chart */
.deck[data-tone="golden-oak"] { --bd: url("/tex/deck-golden-oak.webp"); }
.opt__chip--tone-golden-oak { background: url("/tex/deck-golden-oak.webp") center / cover; }
.deck[data-tone="premium-oak"] { --bd: url("/tex/deck-premium-oak.webp"); }
.opt__chip--tone-premium-oak { background: url("/tex/deck-premium-oak.webp") center / cover; }
.deck[data-tone="tasmania-oak"] { --bd: url("/tex/deck-tasmania-oak.webp"); }
.opt__chip--tone-tasmania-oak { background: url("/tex/deck-tasmania-oak.webp") center / cover; }
.deck[data-tone="merbau"] { --bd: url("/tex/deck-merbau.webp"); }
.opt__chip--tone-merbau { background: url("/tex/deck-merbau.webp") center / cover; }
.deck[data-tone="dark-oak"] { --bd: url("/tex/deck-dark-oak.webp"); }
.opt__chip--tone-dark-oak { background: url("/tex/deck-dark-oak.webp") center / cover; }
.deck[data-tone="hickory"] { --bd: url("/tex/deck-hickory.webp"); }
.opt__chip--tone-hickory { background: url("/tex/deck-hickory.webp") center / cover; }
.deck[data-tone="urban-oak"] { --bd: url("/tex/deck-urban-oak.webp"); }
.opt__chip--tone-urban-oak { background: url("/tex/deck-urban-oak.webp") center / cover; }
.codes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.codes li { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; letter-spacing: .02em; background: var(--surface); }
.codes--sm li { padding: 5px 10px; font-size: 12px; }
.sw__grid--sm { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.sw__grid--sm .sw__img { aspect-ratio: 2 / 1; }
.sw__grid--sm figcaption b { font-size: 13px; font-weight: 600; }
.sw__grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sw__grid--wide .sw__img { aspect-ratio: 5 / 1; }
.dcards { display: grid; gap: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.dcard { display: grid; gap: 10px; align-content: start; }
.dcard__sws { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; }
.dcard__sw { display: grid; gap: 6px; }
.dcard__sw img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--surface-sunken); }
.dcard__sw figcaption { font-size: 12px; color: var(--text-muted); line-height: 1.3; }
.dcard h3 { font-size: 19px; letter-spacing: -.015em; margin-top: 6px; }
.dcard .mono { font-size: 12px; color: var(--text-muted); }
.sers { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); background: var(--border); border: 1px solid var(--border); }
.ser { display: grid; gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 34px); background: var(--bg); }
.ser__meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-brand); }
.ser h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.025em; }
.ser dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.ser dt { color: var(--text-muted); }
.ser dd { font-weight: 600; }
.ser__more { font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.ser__ds summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; padding: 10px 0; border-top: 1px solid var(--border); }
.ser__ds summary::-webkit-details-marker { display: none; }
.ser__ds summary i { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .3s; }
.ser__ds[open] summary i { transform: rotate(225deg) translate(-2px, -2px); }
.ser__ds .codes { padding: 6px 0 4px; }
.cp__gal--sm .gal__item img { height: clamp(220px, 36svh, 380px); }
.cp__designs { background: var(--bg-subtle); }

/* ---------- v9/v10: photo wall, rows that drift sideways (short on every screen) ---------- */
.pw__rows { display: grid; gap: clamp(10px, 1.2vw, 18px); overflow: hidden; }
.pw__row { overflow: hidden; }
.pw__track { display: flex; gap: clamp(10px, 1.2vw, 18px); width: max-content; animation: pwdrift var(--dur, 80s) linear infinite; }
.pw__row[data-dir="-1"] .pw__track { animation-direction: reverse; }
.pw__rows:hover .pw__track, .pw__rows:focus-within .pw__track { animation-play-state: paused; }
@keyframes pwdrift { to { transform: translateX(calc(-50% - clamp(5px, .6vw, 9px))); } }
.pw__tile { position: relative; display: block; flex: none; height: clamp(170px, 24vw, 330px); aspect-ratio: var(--ar, 1.3); overflow: hidden; background: var(--surface-sunken); }
.pw__img, .pw__img img { width: 100%; height: 100%; }
.pw__img img { display: block; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.pw__tile:hover .pw__img img { transform: scale(1.05); }
.pw__cap { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; background: rgba(21, 20, 18, .72); color: #fff; backdrop-filter: blur(8px); font-size: 13px; border-radius: 999px; transform: translateY(6px); opacity: 0; transition: opacity .4s, transform .4s; }
.pw__cap span { color: rgba(255,255,255,.7); font-size: 12px; }
.pw__tile:hover .pw__cap, .pw__tile:focus-visible .pw__cap { opacity: 1; transform: none; }
@media (hover: none) { .pw__cap { opacity: 1; transform: none; font-size: 12px; padding: 6px 10px; } .pw__cap span { display: none; } }
@media (prefers-reduced-motion: reduce) { .pw__track { animation: none; } .pw__row { overflow-x: auto; } }

.gal__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.gal__nav { display: flex; gap: 10px; }
.gal__btn { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--bg); color: var(--text); cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.gal__btn svg { width: 20px; height: 20px; }
.gal__btn--prev svg { transform: scaleX(-1); }
.gal__btn:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.gal__btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 767px) { .gal__nav { display: none; } }

/* more courts from the sports catalogues */
.court[data-sport="tennis"] { --court-bg: linear-gradient(#3f7d4a, #3f7d4a); --line: #ffffff; }
.court[data-sport="tennis"] .tile { background: linear-gradient(135deg, #46874f, #376f42); }
.court[data-sport="badminton"] { --court-bg: linear-gradient(#167466, #167466); --line: #ffffff; }
.court[data-sport="badminton"] .tile { background: linear-gradient(135deg, #1a7f70, #13665a); }
.court[data-sport="volleyball"] { --court-bg: linear-gradient(#c8622e, #c8622e); --line: #ffffff; }
.court[data-sport="volleyball"] .tile { background: linear-gradient(135deg, #d26a33, #b85828); }
.court[data-sport="tennis"] .net { width: calc(var(--W) * .045); }
.court[data-sport="badminton"] .net { width: calc(var(--W) * .1); }
.court[data-sport="volleyball"] .net { width: calc(var(--W) * .12); }
.court[data-sport="volleyball"] .net__in { left: 40%; }
.court[data-sport="badminton"] .net__in { left: 36%; }
.net { transition: width .5s; }
.opt__chip--sport-tennis { background: #3f7d4a; box-shadow: inset 0 0 0 2px #fff; }
.opt__chip--sport-badminton { background: #167466; box-shadow: inset 0 0 0 2px #fff; }
.opt__chip--sport-volleyball { background: #c8622e; box-shadow: inset 0 0 0 2px #fff; }

/* doors in the material library stand up like doors, and swing a little on hover */
.lib__tile[data-mat="main-doors"], .lib__tile[data-mat="aluminum-wpc-doors"] { width: 36%; aspect-ratio: .48; transform: rotateY(28deg) rotateX(4deg); transform-origin: 0 50%; }
.lib__item:hover .lib__tile[data-mat="main-doors"], .lib__item:hover .lib__tile[data-mat="aluminum-wpc-doors"],
.lib__item:focus-visible .lib__tile[data-mat="main-doors"], .lib__item:focus-visible .lib__tile[data-mat="aluminum-wpc-doors"] { transform: rotateY(52deg) rotateX(4deg); }
.lib__tile[data-mat="main-doors"] .lib__front, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__front { display: none; }
.lib__tile[data-mat="main-doors"] .lib__side, .lib__tile[data-mat="aluminum-wpc-doors"] .lib__side { width: 8px; background: var(--door-frame); filter: brightness(.7); }
.lib__tile[data-mat="main-doors"]::after, .lib__tile[data-mat="aluminum-wpc-doors"]::after { inset: 94% -30% -8% -10%; transform: none; border-radius: 50%; background: rgba(0, 0, 0, .3); filter: blur(8px); }
.lib__item:hover .lib__tile[data-mat="main-doors"]::after, .lib__item:hover .lib__tile[data-mat="aluminum-wpc-doors"]::after { transform: none; opacity: .5; }

/* ---------- v10: since-1983 stack (replaces the statement + stats block) ---------- */
.stk__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 1024px) { .stk__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.stk__copy { display: grid; gap: 22px; align-content: start; }
.stk__list { list-style: none; padding: 0; margin-top: 8px; border-top: 1px solid var(--border); }
.stk__row a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 13px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-muted); transition: color .4s; }
.stk__row .mono { grid-row: span 2; font-size: 12px; padding-top: 4px; color: var(--text-muted); }
.stk__row b { font-size: 18px; letter-spacing: -.015em; }
.stk__sub { font-size: 14px; }
.stk__row.is-on a { color: var(--text); }
.stk__row.is-on .mono { color: var(--text-brand); }
.stk__row a:hover b { color: var(--text-brand); }
.stk__facts { display: flex; flex-wrap: wrap; gap: 10px 36px; margin-top: 6px; }
.stk__facts div { display: grid; gap: 2px; }
.stk__facts dt { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.stk__facts dd { font-size: clamp(28px, 2.6vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.stk__stage { position: relative; aspect-ratio: 1 / .9; }
@media (max-width: 1023px) { .stk__stage { order: -1; aspect-ratio: 1 / .85; } }
.stk__scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2200px; }
.stk__shadow { position: absolute; left: 50%; top: 66%; width: 70%; height: 22%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.24), transparent); filter: blur(14px); }
.stk__tilt { transform-style: preserve-3d; transform: rotateX(58deg); }
.stk__stack { --S: min(330px, 34vw); --T: 16px; --G: 12px; position: relative; width: var(--S); height: calc(var(--S) * .66); transform-style: preserve-3d; transform: rotateZ(-36deg); }
@media (max-width: 1023px) { .stk__stack { --S: min(250px, 62vw); --T: 12px; --G: 9px; } }
.stk__slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * (var(--T) + var(--G)))); }
.stk__slab i { position: absolute; display: block; }
.stk__top { inset: 0; transform: translateZ(var(--T)); background: var(--face) center / cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.stk__front { left: 0; top: 100%; width: 100%; height: var(--T); transform-origin: 50% 0; transform: translateZ(var(--T)) rotateX(-90deg); background: var(--edge); }
.stk__side { left: 100%; top: 0; width: var(--T); height: 100%; transform-origin: 0 50%; transform: translateZ(var(--T)) rotateY(90deg); background: var(--edge); filter: brightness(.82); }
.stk__slab--vinyl { --face: repeating-conic-gradient(#e9e4da 0 25%, #3b3632 0 50%) 0 0 / 25% 37.5%; --edge: #2f2a26; }
.stk__slab--wood { --face: url("/tex/oak.webp"); --edge: #7a5530; }
.stk__slab--spc { --face: url("/tex/grey-oak.webp"); --edge: #6f6a63; }
.stk__slab--stone { --face: url("/tex/marble.webp"); --edge: #b9b2a6; }
.stk__slab--acoustic { --face: repeating-linear-gradient(90deg, #a06e42 0 9px, #2b1e15 9px 13px); --edge: #2b1e15; }
.stk__slab--deck { --face: repeating-linear-gradient(0deg, transparent 0 calc(20% - 2px), rgba(30,20,12,.55) calc(20% - 2px) 20%), url("/tex/deck-golden-oak.webp") center / cover; --edge: #8a6a45; }
.stk__slab--door { --face: linear-gradient(90deg, transparent 80%, #c8a46a 80% 82%, transparent 82%) 0 50% / 100% 22% no-repeat, linear-gradient(180deg, #2a2725, #121110); --edge: #1a1816; }
.stk__slab--door .stk__top::before, .stk__slab--door .stk__top::after { content: ""; position: absolute; top: 14%; bottom: 14%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.14); }
.stk__slab--door .stk__top::before { left: 8%; right: 54%; }
.stk__slab--door .stk__top::after { left: 50%; right: 22%; }

/* ---------- v10: before/after, progress over the photo ---------- */
.tf__plank { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25), 0 6px 10px -6px rgba(0, 0, 0, .35); }
.tf__sheen { position: absolute; inset: -10% -30%; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.28) 50%, transparent 62%); }
.tf__ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; pointer-events: none; }
.tf__segs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tf__seg { display: grid; gap: 7px; }
.tf__seg i { position: relative; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.tf__seg i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.tf__seg b { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); text-shadow: 0 1px 6px rgba(0,0,0,.45); transition: color .3s; }
.tf__seg.is-on b { color: #fff; }
.tf__chip { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(13, 12, 11, .72); color: rgba(255,255,255,.75); font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.tf__chip b { color: #fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.tf.is-done .tf__chip { background: var(--accent); }
.tf__frame { box-shadow: 0 40px 80px -40px rgba(13, 12, 11, .45); }
.tf__frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 22%; z-index: 1; background: linear-gradient(rgba(0,0,0,.35), transparent); pointer-events: none; }
@media (max-width: 1023px) {
  .tf.is-pinned .tf__grid { grid-template-rows: auto minmax(0, 1fr); }
  .tf.is-pinned .tf__frame { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); height: 100%; aspect-ratio: auto; justify-self: stretch; box-shadow: none; }
  .tf__ui { padding: 14px var(--gutter); }
}

/* ---------- v10: walls showcase (tabs + one stage, replaces the long scroll) ---------- */
.ws2 { display: grid; gap: clamp(20px, 2.4vw, 36px); }
.ws2__tabs { grid-area: tabs; } .ws2__frame { grid-area: frame; } .ws2__panels { grid-area: panel; }
.ws2 { grid-template-areas: "tabs" "frame" "panel"; }
@media (min-width: 1024px) { .ws2 { grid-template-columns: minmax(260px, .6fr) minmax(0, 1.4fr); grid-template-rows: auto 1fr; grid-template-areas: "tabs frame" "panel frame"; align-items: start; column-gap: clamp(32px, 4vw, 64px); } }
.ws2__tabs { display: grid; align-content: start; border-top: 1px solid rgba(255,255,255,.14); }
.ws2__tab { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: baseline; gap: 10px; padding: 18px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.14); background: none; color: rgba(255,255,255,.5); text-align: left; cursor: pointer; font: inherit; transition: color .3s; }
.ws2__tab b { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; }
.ws2__tab .mono { font-size: 12px; }
.ws2__tab:hover, .ws2__tab.is-on { color: #fff; }
.ws2__tab.is-on .mono { color: var(--tan-400); }
.ws2__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tan-400); transform-origin: 0 50%; transform: scaleX(0); }
.ws2__tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ws2__frame { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-sunken); touch-action: pan-y; }
.ws2__frame .ws__img { position: absolute; inset: 0; }
.ws2__panel { display: grid; gap: 10px; max-width: 60ch; }
.ws2__panel.is-on { animation: ws2in .7s var(--ease-out) both; }
@keyframes ws2in { from { opacity: 0; transform: translateY(10px); } }
.ws2__panel .ws__name { font-size: clamp(28px, 2.6vw, 44px); }
@media (min-width: 1024px) { .ws2__panels { display: grid; } }
@media (max-width: 1023px) {
  .ws2__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border: 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .ws2__tabs::-webkit-scrollbar { display: none; }
  .ws2__tab { flex: none; display: inline-flex; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
  .ws2__tab .mono { display: none; }
  .ws2__tab b { font-size: 15px; }
  .ws2__tab.is-on { background: #fff; color: var(--stone-1000); }
  .ws2__bar { bottom: 0; height: 3px; }
  .ws2__frame { aspect-ratio: 4 / 3.4; margin-inline: calc(var(--gutter) * -1); }
}

/* the net plane stands on its left edge (local x = height above the floor): posts at both ends, white tape along the top */
.net__in { box-shadow: inset -3px 0 0 #fff; transition: left .5s; }
.net::before, .net::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: #d9d6d0; }
.net::before { top: -1px; } .net::after { bottom: -1px; }

/* ---------- v10: room builder, real finishes and door styles ---------- */
.room[data-wall="flex"] { --wall-tex: url("/tex/flex-stone.webp"); }
.opt__chip--wall-flex { background: url("/tex/flex-stone.webp") center / cover; }
.room[data-fin="img"] .pnl { background: var(--wall-tex) center / cover no-repeat; }
.room[data-fin="slat"] .pnl { background: repeating-linear-gradient(90deg, var(--wall-tex) 0 9px, #1d1612 9px 13px); }
.cfg__opts--fin { gap: 8px; }
.opt--fin { padding: 3px; border-radius: 50%; }
.opt--fin .opt__chip { width: 34px; height: 34px; background-size: cover; background-position: center; }
.opt--fin[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.cfg__finname { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-weight: 600; color: var(--text); }
.room[data-door="copper"] { --door-bg: radial-gradient(circle at 50% 36%, #f0c487 0 5%, transparent 6%), repeating-conic-gradient(from 0deg at 50% 36%, #6e3a1e 0 4deg, #8a4c27 4deg 8deg), #7a4222; }
.room[data-door="french"] { --door-bg: linear-gradient(90deg, transparent 49.2%, rgba(0,0,0,.5) 49.2% 50.8%, transparent 50.8%), linear-gradient(180deg, #8e9297, #6c7075); }
.room[data-door="korean"] { --door-bg: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), linear-gradient(180deg, #5e6167, #3e4146); }
.room[data-door="walnut"] { --door-bg: repeating-linear-gradient(90deg, rgba(0,0,0,.08) 0 1px, transparent 1px 7px), linear-gradient(90deg, #6b4428, #80573a 45%, #5f3b22); }
.room[data-door="light"] { --door-bg: linear-gradient(180deg, #ded7cb, #c4baab); }
.room[data-door="french"] .door__leaf::before { inset: 8% 56% 8% 10%; }
.room[data-door="french"] .door__leaf::after { inset: 8% 10% 8% 56%; }
.room[data-door="korean"] .door__leaf::before { inset: 22% 26% 30% 26%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.22); }
.room[data-door="korean"] .door__leaf::after, .room[data-door="copper"] .door__leaf::before, .room[data-door="copper"] .door__leaf::after,
.room[data-door="walnut"] .door__leaf::before, .room[data-door="walnut"] .door__leaf::after, .room[data-door="light"] .door__leaf::after { display: none; }
.room[data-door="light"] .door__leaf::before { inset: 0 0 0 auto; width: 30%; box-shadow: none; border-left: 2px solid rgba(0,0,0,.08); }
.opt__chip--door-copper { background: repeating-conic-gradient(from 0deg at 50% 40%, #7a3f1f 0 12deg, #b06a35 12deg 24deg); }
.opt__chip--door-french { background: linear-gradient(90deg, #8e9297 48%, #3b3d40 48% 52%, #8e9297 52%); }
.opt__chip--door-korean { background: repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 1px, transparent 1px 3px), #4e5156; }
.opt__chip--door-walnut { background: linear-gradient(90deg, #6b4428, #80573a 45%, #5f3b22); }
.opt__chip--door-light { background: linear-gradient(180deg, #ded7cb, #c4baab); }

@media (min-width: 1024px) { .ws2 .ws2__frame { align-self: stretch; aspect-ratio: auto; min-width: 0; min-height: min(68svh, 640px); } }

/* the stack stays in view while the list scrolls past it */
@media (min-width: 1024px) { .stk__grid { align-items: start; } .stk__stage { position: sticky; top: calc(var(--hdr) + 6svh); } }
@media (max-width: 1023px) {
  .stk__stage { position: sticky; top: var(--hdr); z-index: 2; height: 36svh; aspect-ratio: auto; margin-inline: calc(var(--gutter) * -1); background: linear-gradient(var(--bg) 82%, transparent); }
  .stk__stack { --S: min(210px, 52vw); --T: 10px; --G: 7px; }
  .stk__shadow { top: 70%; }
}

/* collection bar: the name gives way before the button does */
.cp__barin > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cp__barin .btn { flex: none; }
@media (max-width: 400px) { .cp__barin .btn { padding: 0 16px; } }
