/* ============================================================
   IBC Outdoor Living
   Concept spine: footing to firelight.
   Palette sampled from the client's own logo plate and mark.
   ============================================================ */

/* ---------- fonts (self hosted, latin subset) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-6NU78FyLNQOQZAnv9bYEvDiIdE9Ea92uemAk_WBq8U_9v0c2Wa0KxC9TeA.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/barlow-7cHpv4kjgoGqM7E_DMs5.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlow-7cHqv4kjgoGqM7E3_-gs51os.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlow-7cHqv4kjgoGqM7E30-8s51os.woff2') format('woff2');
}

/* ---------- tokens ---------- */
:root {
  --bark: #292620;
  --bark-deep: #12100d;
  --bark-mid: #1e1b16;
  --stone: #b9a57c;
  --stone-light: #cbbc9d;
  --paper: #f2ede3;
  --paper-dim: #e3dbcb;
  --ember: #c4622d;

  --ink: #1a1713;
  --ink-soft: #57503f;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 82rem;
  --rule: 1px solid color-mix(in srgb, var(--stone) 28%, transparent);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bark);
  color: var(--paper);
  font-family: var(--text);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.04; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--stone); outline-offset: 3px; }

/* the header is fixed, so anchor targets must stop clear of it or their
   heading lands underneath it */
section[id] { scroll-margin-top: 6rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--stone); color: var(--bark-deep); padding: .7rem 1.2rem; font-weight: 600;
}
.skip:focus { left: .5rem; top: .5rem; }

.eyebrow {
  font-family: var(--text); font-size: .75rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--stone);
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.6rem;
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--stone) 34%, transparent); }

/* ============================================================
   HEADER
   ============================================================ */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .85rem var(--gut);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(18, 16, 13, .95);
  backdrop-filter: blur(10px);
  border-bottom-color: color-mix(in srgb, var(--stone) 22%, transparent);
  padding-block: .55rem;
}
.hdr__mark {
  display: flex; align-items: center; gap: .85rem; text-decoration: none;
  margin-right: auto; padding: .3rem .75rem .3rem .3rem;
  transition: background .35s var(--ease);
}
.hdr__mark:hover { background: color-mix(in srgb, var(--stone) 14%, transparent); }
.hdr__mark img {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--stone) 55%, transparent),
              0 2px 14px rgba(0, 0, 0, .45);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.hdr__mark:hover img {
  box-shadow: 0 0 0 2px var(--stone), 0 3px 20px rgba(0, 0, 0, .55);
  transform: scale(1.03);
}
.hdr.is-stuck .hdr__mark img { width: 54px; height: 54px; }
.hdr__name { line-height: 1.15; }
.hdr__name b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 1.16rem; letter-spacing: .005em; color: var(--paper);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.hdr__name span {
  display: block; font-family: var(--text); font-size: .58rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-top: .15rem;
}
/* the wordmark must never wrap, it reads as three separate words if it does */
.hdr__name b, .hdr__name span { white-space: nowrap; }

/* shed header furniture as it gets tight, in order of least value:
   the estimate button (it is in the hero and the menu too), then the
   wordmark, then the phone number. Call and Menu always survive. */
@media (max-width: 52rem) {
  .hdr .cta-estimate { display: none; }
}
@media (max-width: 34rem) {
  .hdr__name { display: none; }
  .hdr__mark { padding-right: .35rem; }
  .hdr { gap: .7rem; }
}
@media (max-width: 30rem) {
  /* both selectors, or the is-stuck rule above wins on specificity */
  .hdr__mark img, .hdr.is-stuck .hdr__mark img { width: 48px; height: 48px; }
}
.hdr__nav { display: flex; gap: 1.7rem; }
.hdr__nav a {
  text-decoration: none; font-size: .82rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--stone-light);
  padding-block: .3rem; position: relative;
}
.hdr__nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--stone); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.hdr__nav a:hover::after, .hdr__nav a:focus-visible::after { transform: scaleX(1); }

/* the planner is the differentiator, so it carries a mark in the nav */
.hdr__nav a.is-tool { color: var(--stone); display: flex; align-items: center; gap: .45rem; }
.hdr__nav a.is-tool::before {
  content: ''; width: .38rem; height: .38rem; border-radius: 50%;
  background: var(--ember); flex: none;
}

/* ---------- mobile menu ---------- */
.burger { display: none; align-items: center; gap: .55rem; padding: .5rem .2rem; color: var(--stone-light); }
.burger__box { display: grid; gap: .3rem; width: 1.35rem; }
.burger__box i {
  display: block; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger__label { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.burger[aria-expanded="true"] .burger__box i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box i:last-child { transform: translateY(-4px) rotate(-45deg); }

.navpanel {
  position: fixed; inset: 0; z-index: 55; background: var(--bark-deep);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem var(--gut) 2rem; overflow-y: auto;
}
.navpanel[hidden] { display: none; }
.navpanel__nav { display: grid; }
.navpanel__nav a {
  display: flex; align-items: baseline; gap: 1rem; text-decoration: none;
  font-family: var(--display); font-size: clamp(1.5rem, 7vw, 2.2rem);
  padding: .75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--stone) 18%, transparent);
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.navpanel__nav a span {
  font-family: var(--text); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; color: var(--stone); flex: none;
}
.navpanel__nav a b {
  font-family: var(--text); font-size: .58rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bark-deep); background: var(--ember);
  padding: .2rem .45rem; align-self: center;
}
.navpanel__nav a:hover, .navpanel__nav a:focus-visible { color: var(--stone); padding-left: .5rem; }
.navpanel__nav a.is-tool { color: var(--stone-light); }
.navpanel__foot { margin-top: 2.4rem; display: grid; gap: .4rem; font-size: .95rem; }
.navpanel__foot a { text-decoration: none; color: var(--stone-light); }
.navpanel__foot p { color: color-mix(in srgb, var(--paper) 45%, transparent); font-size: .85rem; }

@media (max-width: 62rem) {
  .hdr__nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 30rem) {
  .hdr .cta-estimate { display: none; }
  .burger__label { display: none; }
}

/* ============================================================
   1. HERO  ·  the scroll journey
   ============================================================ */
/* One screen. The film simply plays; nobody is made to scroll a page and a
   half of hero before they reach a single project. */
.hero__stage {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--bark-deep);
  display: grid; grid-template-rows: 1fr auto;
}
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero__poster { z-index: 1; transition: opacity .8s var(--ease); }
.hero__stage.is-ready .hero__poster { opacity: 0; pointer-events: none; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--bark-deep) 90%, transparent) 0%, color-mix(in srgb, var(--bark-deep) 66%, transparent) 38%, transparent 72%),
    linear-gradient(to bottom, color-mix(in srgb, var(--bark-deep) 78%, transparent) 0%, transparent 34%, transparent 44%, color-mix(in srgb, var(--bark-deep) 92%, transparent) 100%),
    radial-gradient(120% 80% at 50% 60%, transparent 40%, color-mix(in srgb, var(--bark-deep) 62%, transparent) 100%);
}
.hero__inner {
  position: relative; z-index: 3; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem var(--gut) 0;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
}
.hero__kicker {
  font-size: .75rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 6.4rem);
  font-variation-settings: 'SOFT' 40, 'WONK' 1, 'opsz' 120;
  letter-spacing: -.022em; max-width: 16ch;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--stone); display: block; }
.hero__lede {
  margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: color-mix(in srgb, var(--paper) 84%, transparent);
}
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2rem; margin-top: 2.6rem; }

/* chapter rail: always visible, active state by colour + rule, never opacity 0 */
.hero__rail {
  position: relative; z-index: 3; grid-row: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gut) 2.2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.5rem, 2vw, 2rem);
}
.chap { padding-top: .9rem; border-top: 2px solid color-mix(in srgb, var(--stone) 40%, transparent); }
.chap__n { font-size: .68rem; font-weight: 600; letter-spacing: .24em; color: var(--stone); }
.chap__t {
  font-family: var(--display); font-size: clamp(.95rem, 2vw, 1.3rem); margin-top: .2rem;
  color: var(--paper);
}
.chap__t { color: var(--paper); }
.chap__d {
  font-size: .82rem; line-height: 1.45; margin-top: .35rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}
@media (max-width: 48rem) {
  .hero__rail { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .chap__d { display: none; }
}

.hero__scrollcue {
  position: absolute; z-index: 3; right: var(--gut); top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}
@media (max-width: 62rem) { .hero__scrollcue { display: none; } }

/* ============================================================
   2. CREDENTIALS STRIP
   ============================================================ */
.creds { background: var(--bark-deep); border-block: var(--rule); position: relative; z-index: 4; }
.creds__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--maxw); margin-inline: auto;
}
.creds__cell { padding: 2.4rem var(--gut); border-left: var(--rule); }
.creds__cell:first-child { border-left: 0; }
.creds__k { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); color: var(--stone); font-variation-settings: 'SOFT' 30, 'WONK' 1; }
.creds__v { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--paper) 62%, transparent); margin-top: .4rem; }
@media (max-width: 60rem) {
  .creds__grid { grid-template-columns: repeat(2, 1fr); }
  .creds__cell:nth-child(3) { border-left: 0; }
  .creds__cell:nth-child(n+3) { border-top: var(--rule); }
}

/* ============================================================
   3. WHAT WE BUILD  ·  asymmetric editorial split
   ============================================================ */
.build { background: var(--paper); color: var(--ink); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.build .eyebrow { color: var(--ink-soft); }
.build .eyebrow::after { background: color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.build__top { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.build__top h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 15ch; }
.build__top p { color: var(--ink-soft); max-width: 46ch; }
@media (max-width: 54rem) { .build__top { grid-template-columns: 1fr; align-items: start; } }

.svc { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.svc__item {
  padding: 2.2rem 1.8rem 2.4rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  position: relative;
}
.svc__item:nth-child(3n) { border-right: 0; padding-right: 0; }
.svc__item:nth-child(3n+2), .svc__item:nth-child(3n+3) { padding-left: 1.8rem; }
.svc__icon { width: 40px; height: 40px; color: var(--ember); }
.svc__item h3 { font-size: 1.3rem; margin-top: 1.1rem; letter-spacing: -.01em; }
.svc__item p { font-size: .95rem; color: var(--ink-soft); margin-top: .55rem; max-width: 32ch; }
@media (max-width: 54rem) {
  .svc { grid-template-columns: repeat(2, 1fr); }
  .svc__item:nth-child(3n) { border-right: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); padding-right: 1.8rem; }
  .svc__item { padding-left: 0 !important; padding-right: 1.5rem; }
  .svc__item:nth-child(2n) { border-right: 0; padding-left: 1.5rem !important; padding-right: 0; }
}
@media (max-width: 34rem) {
  .svc { grid-template-columns: 1fr; }
  .svc__item, .svc__item:nth-child(2n), .svc__item:nth-child(3n) { border-right: 0; padding-left: 0 !important; padding-right: 0; }
}

/* ============================================================
   4. THE WORK  ·  deck portfolio
   ============================================================ */
.work { background: var(--bark); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.work__head { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; margin-bottom: clamp(2rem, 5vw, 3.4rem); }
.work__head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 14ch; }
.work__note { font-size: .92rem; color: color-mix(in srgb, var(--paper) 62%, transparent); max-width: 38ch; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.5rem, 1.1vw, .9rem); }
.shot { position: relative; overflow: hidden; grid-column: span 4; aspect-ratio: 4 / 3; background: var(--bark-mid); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); }
.shot::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stone) 0%, transparent);
  transition: box-shadow .4s var(--ease); pointer-events: none;
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.045); filter: brightness(1.06); }
.shot:hover::after, .shot:focus-visible::after { box-shadow: inset 0 0 0 2px var(--stone); }
.shot--wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.shot--tall { grid-column: span 4; aspect-ratio: 3 / 4; }
.shot[hidden] { display: none; }
@media (max-width: 60rem) {
  .shot, .shot--tall { grid-column: span 6; aspect-ratio: 4 / 3; }
  .shot--wide { grid-column: span 12; }
}
@media (max-width: 34rem) {
  .shot, .shot--wide, .shot--tall { grid-column: span 12; aspect-ratio: 4 / 3; }
}
.work__more { display: flex; justify-content: center; margin-top: 2.6rem; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: color-mix(in srgb, var(--bark-deep) 96%, transparent);
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 86svh; object-fit: contain; }
.lb__close, .lb__prev, .lb__next {
  position: absolute; color: var(--paper); width: 3rem; height: 3rem;
  display: grid; place-items: center; font-size: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--stone) 40%, transparent);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: color-mix(in srgb, var(--stone) 22%, transparent); border-color: var(--stone); }
.lb__close { top: 1.2rem; right: 1.2rem; }
.lb__prev { left: 1.2rem; top: 50%; margin-top: -1.5rem; }
.lb__next { right: 1.2rem; top: 50%; margin-top: -1.5rem; }
.lb__count { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .18em; color: var(--stone); }

/* ============================================================
   BEFORE / AFTER
   The whole section removes itself when no pairs are configured,
   so it never ships as an empty shell.
   ============================================================ */
.trans { background: var(--bark-deep); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.trans h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 18ch; }
.trans__lede { margin-top: 1.1rem; max-width: 50ch; color: color-mix(in srgb, var(--paper) 68%, transparent); }
.ba__mount { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: clamp(2.2rem, 5vw, 3.4rem); }

.ba { margin: 0; }
.ba__frame {
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  cursor: ew-resize; touch-action: pan-y; user-select: none;
  border: 1px solid color-mix(in srgb, var(--stone) 26%, transparent);
}
.ba__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__clip { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.ba__clip img { width: 100vw; max-width: none; }
.ba__frame .ba__clip img { width: 100%; }

.ba__handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3rem; margin-left: -1.5rem;
  padding: 0; background: none; cursor: ew-resize; display: grid; place-items: center;
}
.ba__handle::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
  margin-left: -1px; background: var(--paper); box-shadow: 0 0 12px rgba(0,0,0,.5);
}
.ba__grip {
  position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--paper); box-shadow: 0 2px 14px rgba(0,0,0,.4);
  display: grid; place-items: center;
}
.ba__grip::before, .ba__grip::after {
  content: ''; position: absolute; width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba__grip::before { border-right: 7px solid var(--bark); left: .5rem; }
.ba__grip::after { border-left: 7px solid var(--bark); right: .5rem; }
.ba__handle:focus-visible .ba__grip { outline: 3px solid var(--stone); outline-offset: 3px; }

.ba__tag {
  position: absolute; top: .9rem; z-index: 2; font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; padding: .3rem .6rem;
  background: color-mix(in srgb, var(--bark-deep) 78%, transparent); color: var(--stone-light);
}
.ba__tag--b { left: .9rem; }
.ba__tag--a { right: .9rem; }

.ba figcaption { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.ba figcaption b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.ba figcaption span { font-size: .85rem; color: color-mix(in srgb, var(--paper) 58%, transparent); }

/* ============================================================
   5. PROCESS
   ============================================================ */
.proc { background: var(--paper); color: var(--ink); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.proc .eyebrow { color: var(--ink-soft); }
.proc .eyebrow::after { background: color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.proc h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 16ch; }
.steps { margin-top: clamp(2.4rem, 6vw, 4rem); display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 5.5rem 1fr 1fr; gap: clamp(1rem, 3vw, 3rem);
  padding-block: 2rem; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.step__n { font-family: var(--display); font-size: 2.6rem; color: var(--stone); line-height: 1; font-variation-settings: 'WONK' 1; }
.step h3 { font-size: 1.45rem; letter-spacing: -.01em; }
.step p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 54rem) {
  .step { grid-template-columns: 3.2rem 1fr; }
  /* the number is a <p> as well, so a bare `.step p` rule drags it into
     column 2 and it lands on top of the heading */
  .step__n { font-size: 1.9rem; grid-column: 1; grid-row: 1 / span 2; }
  .step > div,
  .step > p:not(.step__n) { grid-column: 2; }
}

/* ============================================================
   6. MATERIALS
   ============================================================ */
.mat { background: var(--bark-deep); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.mat h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 16ch; }
.mat__lede { margin-top: 1.2rem; max-width: 52ch; color: color-mix(in srgb, var(--paper) 70%, transparent); }
.mat__band { margin-top: clamp(2.4rem, 6vw, 3.6rem); padding: 2rem; border: 1px solid color-mix(in srgb, var(--stone) 30%, transparent); display: flex; flex-wrap: wrap; gap: 1.4rem 2.5rem; align-items: center; }
.mat__band strong { font-family: var(--display); font-size: 1.35rem; color: var(--stone); }
.mat__band p { font-size: .95rem; color: color-mix(in srgb, var(--paper) 70%, transparent); max-width: 52ch; }
.woods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 2rem; background: color-mix(in srgb, var(--stone) 24%, transparent); border: 1px solid color-mix(in srgb, var(--stone) 24%, transparent); }
.wood { background: var(--bark-deep); padding: 1.6rem 1.3rem; }
.wood__sw { height: 4px; width: 3rem; margin-bottom: 1rem; }
.wood h3 { font-size: 1.12rem; }
.wood dl { margin: .9rem 0 0; font-size: .82rem; }
.wood dt { color: var(--stone); letter-spacing: .1em; text-transform: uppercase; font-size: .66rem; margin-top: .6rem; }
.wood dd { margin: .1rem 0 0; color: color-mix(in srgb, var(--paper) 74%, transparent); }
@media (max-width: 64rem) { .woods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 40rem) { .woods { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   7. TESTIMONIAL
   ============================================================ */
.quote { background: var(--paper); color: var(--ink); padding-block: clamp(4.5rem, 11vw, 9rem); }
.quote blockquote { margin: 0; max-width: 34ch; }
.quote__mark { font-family: var(--display); font-size: 5rem; line-height: .6; color: var(--ember); display: block; margin-bottom: 1.2rem; }
.quote p {
  font-family: var(--display); font-size: clamp(1.5rem, 3.3vw, 2.5rem); line-height: 1.24;
  letter-spacing: -.015em; font-variation-settings: 'SOFT' 44, 'WONK' 1;
}
.quote p + p { margin-top: 1.1rem; }
.quote figcaption { margin-top: 2rem; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.quote__row { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quote__row img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
@media (max-width: 60rem) { .quote__row { grid-template-columns: 1fr; } .quote__row img { aspect-ratio: 16/10; } }

/* ---------- rating + reviews ---------- */
.score {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  margin-top: clamp(3rem, 7vw, 5rem); padding: 1.4rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  background: color-mix(in srgb, var(--paper-dim) 55%, transparent);
}
.score__num { display: flex; align-items: baseline; gap: .7rem; }
.score__num b {
  font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1;
  font-variation-settings: 'SOFT' 30, 'WONK' 1;
}
.score__stars { color: var(--ember); font-size: 1.05rem; letter-spacing: .1em; }
.score__meta { margin-right: auto; }
.score__count { font-weight: 600; font-size: .95rem; }
.score__src { font-size: .82rem; color: var(--ink-soft); }
.cta-reviews {
  display: inline-flex; align-items: center; gap: .55rem; text-decoration: none;
  font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .7rem 1.1rem; border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.cta-reviews svg { width: .95rem; height: .95rem; transition: transform .35s var(--ease); }
.cta-reviews:hover { background: var(--ink); color: var(--paper); }
.cta-reviews:hover svg { transform: translateX(3px); }

.revs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 1.6rem; }
@media (max-width: 64rem) { .revs { grid-template-columns: 1fr; } }
.rev {
  padding: 1.4rem 1.5rem;
  border-left: 2px solid var(--ember);
  background: color-mix(in srgb, var(--paper-dim) 40%, transparent);
}
.rev__stars { color: var(--ember); font-size: .9rem; letter-spacing: .1em; }
.rev__body { font-size: .93rem; margin-top: .6rem; color: var(--ink); }
.rev__who { margin-top: .9rem; font-weight: 600; font-size: .88rem; }
.rev__who span { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-soft); letter-spacing: .04em; }
.revs__note { margin-top: 1.4rem; font-size: .78rem; color: var(--ink-soft); max-width: 74ch; }

/* ============================================================
   8. BOOK
   ============================================================ */
.book { background: var(--bark); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.book h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 16ch; }
.book__lede { margin-top: 1.2rem; max-width: 48ch; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.book__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); margin-top: clamp(2.4rem, 6vw, 3.6rem); align-items: start; }
@media (max-width: 62rem) { .book__grid { grid-template-columns: 1fr; } }

.visit { border-left: 2px solid color-mix(in srgb, var(--stone) 45%, transparent); padding-left: clamp(1.2rem, 3vw, 2rem); }
.visit__h {
  font-family: var(--text); font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--stone);
}
.visit__steps { margin-top: 1.6rem; display: grid; gap: 1.6rem; }
.visit__steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .4rem 1rem; align-items: start; }
.visit__n { font-family: var(--display); font-size: 1.5rem; color: var(--stone); line-height: 1; font-variation-settings: 'WONK' 1; }
.visit__steps p { font-size: .95rem; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.visit__steps b { color: var(--paper); font-weight: 600; }
.visit__note {
  margin-top: 2rem; padding-top: 1.3rem; font-size: .88rem;
  border-top: 1px solid color-mix(in srgb, var(--stone) 26%, transparent);
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.field label em {
  font-style: normal; letter-spacing: .1em;
  color: color-mix(in srgb, var(--paper) 40%, transparent); margin-left: .4rem;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--paper);
  background: var(--bark-mid); border: 1px solid color-mix(in srgb, var(--stone) 28%, transparent);
  padding: .8rem .9rem; border-radius: 0; width: 100%;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--stone); background: var(--bark-deep); outline: none; }
.field textarea { resize: vertical; min-height: 7rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 40rem) { .form__row { grid-template-columns: 1fr; } }
.form__note { font-size: .8rem; color: color-mix(in srgb, var(--paper) 55%, transparent); }
.form__trust {
  font-size: .8rem; color: color-mix(in srgb, var(--paper) 62%, transparent);
  padding-left: .9rem; border-left: 2px solid color-mix(in srgb, var(--stone) 45%, transparent);
}
.form__done {
  border: 1px solid color-mix(in srgb, var(--stone) 40%, transparent);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--bark-mid);
}
.form__done b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--stone);
  font-variation-settings: 'SOFT' 34, 'WONK' 1; margin-bottom: .7rem;
}
.form__done p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: .97rem; }
.form__done a { color: var(--stone); }

/* ============================================================
   STICKY ACTION BAR
   Call and estimate within thumb reach once the hero is behind you.
   ============================================================ */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: 1fr 1fr;
  transform: translateY(101%); transition: transform .45s var(--ease);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .45);
}
.actionbar.is-up { transform: none; }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem .8rem; text-decoration: none; font-weight: 600;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  transition: filter .25s var(--ease);
}
.actionbar a:active { filter: brightness(.92); }
.actionbar svg { width: 1.05rem; height: 1.05rem; }
.actionbar__call { background: var(--bark-deep); color: var(--stone); border-top: 1px solid color-mix(in srgb, var(--stone) 34%, transparent); }
.actionbar__quote { background: var(--stone); color: var(--bark-deep); }
@media (min-width: 62rem) {
  /* on a desktop the header is always in view, so the bar is noise */
  .actionbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .actionbar { transition: none; } }
.hp { position: absolute; left: -9999px; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.ftr { background: var(--bark-deep); border-top: var(--rule); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: clamp(1.8rem, 4vw, 3rem); }
@media (max-width: 60rem) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 34rem) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__mark { display: flex; align-items: center; gap: .8rem; }
.ftr__mark img { width: 72px; height: 72px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--stone) 45%, transparent); }
.ftr h4 { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-family: var(--text); font-weight: 600; margin-bottom: 1rem; }
.ftr li { margin-bottom: .5rem; font-size: .93rem; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.ftr a { text-decoration: none; transition: color .3s var(--ease); }
.ftr a:hover { color: var(--stone); }
.ftr__badge { width: 92px; opacity: .85; margin-top: 1.2rem; }
.ftr__base {
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding-top: 1.4rem; border-top: var(--rule);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
  font-size: .78rem; color: color-mix(in srgb, var(--paper) 50%, transparent);
}
.social { display: flex; gap: .8rem; margin-top: 1rem; }
.social a { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--stone) 34%, transparent); transition: background .3s var(--ease), border-color .3s var(--ease); }
.social a:hover { background: color-mix(in srgb, var(--stone) 20%, transparent); border-color: var(--stone); }
.social svg { width: 1rem; height: 1rem; }

/* ============================================================
   BESPOKE CHROME  ·  every CTA its own garment, no shared button class
   ============================================================ */

/* estimate: slab that fills left to right */
.cta-estimate {
  position: relative; overflow: hidden; text-decoration: none;
  display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.9rem; background: var(--stone); color: var(--bark-deep);
  font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
}
.cta-estimate span { position: relative; z-index: 1; }
.cta-estimate svg { position: relative; z-index: 1; width: 1.05rem; height: 1.05rem; transition: transform .4s var(--ease); }
.cta-estimate::before {
  content: ''; position: absolute; inset: 0; background: var(--paper);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.cta-estimate:hover::before, .cta-estimate:focus-visible::before { transform: scaleX(1); }
.cta-estimate:hover svg, .cta-estimate:focus-visible svg { transform: translateX(4px); }

/* see the work: bare text, rule draws out */
.cta-work {
  text-decoration: none; position: relative; font-weight: 500;
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper);
  padding-bottom: .45rem;
}
.cta-work::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--stone); transform: scaleX(.28); transform-origin: left; transition: transform .5s var(--ease);
}
.cta-work:hover::after, .cta-work:focus-visible::after { transform: scaleX(1); }

/* financing: outline pill, border thickens only */
.cta-finance {
  display: inline-flex; align-items: center; text-decoration: none;
  padding: .6rem 1.2rem; border: 1px solid color-mix(in srgb, var(--stone) 55%, transparent);
  border-radius: 999px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-light);
  transition: border-width .2s var(--ease), border-color .3s var(--ease), padding .2s var(--ease);
}
.cta-finance:hover, .cta-finance:focus-visible { border-width: 2px; border-color: var(--stone); padding: calc(.6rem - 1px) calc(1.2rem - 1px); }

/* submit: press */
.cta-send {
  justify-self: start; padding: 1.05rem 2.1rem; background: var(--stone); color: var(--bark-deep);
  font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .12s var(--ease), background .3s var(--ease);
}
.cta-send:hover { background: var(--stone-light); }
.cta-send:active { transform: translateY(1px); }

/* show more: hairline box that fills from centre */
.cta-more {
  position: relative; overflow: hidden; padding: .9rem 2.2rem;
  border: 1px solid color-mix(in srgb, var(--stone) 45%, transparent);
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone-light);
}
.cta-more span { position: relative; z-index: 1; }
.cta-more::before {
  content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--stone) 18%, transparent);
  transform: scaleX(0); transition: transform .45s var(--ease);
}
.cta-more:hover::before { transform: scaleX(1); }

/* call now: in the header at every width, outlined so the filled
   estimate button stays the louder of the two */
.cta-call {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  padding: .72rem 1.05rem; flex: none;
  border: 1px solid color-mix(in srgb, var(--stone) 60%, transparent);
  color: var(--stone-light); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.cta-call svg { width: 1.05rem; height: 1.05rem; flex: none; }
.cta-call__word { display: none; }
.cta-call:hover, .cta-call:focus-visible {
  background: color-mix(in srgb, var(--stone) 16%, transparent);
  border-color: var(--stone); color: var(--paper);
}
.cta-call:active { transform: translateY(1px); }

/* tight widths: the number gives way to the word, then to the icon alone */
@media (max-width: 46rem) {
  .cta-call__num { display: none; }
  .cta-call__word { display: inline; }
}
@media (max-width: 26rem) {
  .cta-call__word { display: none; }
  .cta-call { padding: .72rem .8rem; }
}

/* ============================================================
   MATERIAL TABS  ·  decking, railing, hardwood
   ============================================================ */
.tabs {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 26%, transparent);
}
.tab {
  padding: .85rem 1.3rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 58%, transparent);
  position: relative; transition: color .3s var(--ease);
}
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--stone); transform: scaleX(0); transition: transform .35s var(--ease);
}
.tab:hover { color: var(--paper); }
.tab.is-on { color: var(--paper); }
.tab.is-on::after { transform: scaleX(1); }

.panel { padding-top: clamp(1.8rem, 4vw, 2.6rem); }
.panel[hidden] { display: none; }
.panel__lede { max-width: 62ch; color: color-mix(in srgb, var(--paper) 74%, transparent); }
.panel__more {
  margin-top: 1.8rem; font-size: .88rem; max-width: 68ch;
  color: color-mix(in srgb, var(--paper) 56%, transparent);
  padding-left: 1rem; border-left: 2px solid color-mix(in srgb, var(--stone) 40%, transparent);
}

.coll { padding-block: 1.9rem; border-top: 1px solid color-mix(in srgb, var(--stone) 20%, transparent); }
.coll:first-of-type { margin-top: 1.8rem; }
.coll header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.coll h3 { font-size: 1.4rem; letter-spacing: -.01em; }
.coll__tier { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.coll p { margin-top: .5rem; max-width: 60ch; font-size: .95rem; color: color-mix(in srgb, var(--paper) 68%, transparent); }

.chips { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin-top: 1.2rem; }
.chips li { display: flex; align-items: center; gap: .55rem; font-size: .84rem; color: color-mix(in srgb, var(--paper) 82%, transparent); }
.chips i {
  width: 2.6rem; height: 1.5rem; display: block; flex: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--paper) 22%, transparent);
}
.chips--wide { margin-top: 1.6rem; gap: 1rem 1.6rem; }
.chips--wide i { width: 3.4rem; height: 2rem; }

.rails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 1.8rem; background: color-mix(in srgb, var(--stone) 22%, transparent); border: 1px solid color-mix(in srgb, var(--stone) 22%, transparent); }
.rail { background: var(--bark-deep); padding: 1.6rem 1.4rem; }
.rail__mat { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }
.rail h3 { font-size: 1.18rem; margin-top: .45rem; }
.rail p { font-size: .89rem; margin-top: .6rem; color: color-mix(in srgb, var(--paper) 66%, transparent); }
.rail dl { margin: 1.1rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; font-size: .78rem; }
.rail dt { color: var(--stone); letter-spacing: .08em; text-transform: uppercase; font-size: .64rem; align-self: center; }
.rail dd { margin: 0; color: color-mix(in srgb, var(--paper) 78%, transparent); }
@media (max-width: 64rem) { .rails { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 42rem) { .rails { grid-template-columns: 1fr; } }

.wood__latin { font-size: .72rem; font-style: italic; color: color-mix(in srgb, var(--paper) 50%, transparent); margin-top: .2rem; }
.wood__note { font-size: .82rem; line-height: 1.5; margin-top: .9rem; color: color-mix(in srgb, var(--paper) 64%, transparent); }
.mat__fine { font-size: .78rem; color: color-mix(in srgb, var(--paper) 45%, transparent); margin-top: 2.2rem; max-width: 72ch; }

/* ============================================================
   DECK PLANNER
   ============================================================ */
.plan { background: var(--paper); color: var(--ink); padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.plan .eyebrow { color: var(--ink-soft); }
.plan .eyebrow::after { background: color-mix(in srgb, var(--ink-soft) 30%, transparent); }
.plan h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; font-variation-settings: 'SOFT' 34, 'WONK' 1; max-width: 16ch; }
.plan__lede { margin-top: 1.1rem; max-width: 52ch; color: var(--ink-soft); }
.plan__grid {
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2.2rem, 5vw, 3.4rem); align-items: start;
}
@media (max-width: 66rem) { .plan__grid { grid-template-columns: 1fr; } }

.plan__stage {
  position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 11;
  background: linear-gradient(to bottom, #b9c6d4 0%, #d8dcd6 62%, #c8cbbe 100%);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
  overflow: hidden;
}
/* a floor only where there is room for it: pairing min-height with
   aspect-ratio on a narrow screen forces the width past the viewport */
@media (min-width: 48rem) { .plan__stage { min-height: 22rem; } }
.plan__stage canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.plan__stage canvas:active { cursor: grabbing; }
.plan__hint {
  position: absolute; left: 0; bottom: 0; padding: .5rem .8rem;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bark-deep) 78%, transparent); color: var(--stone-light);
}

.plan__controls { display: grid; gap: 1.4rem; }
.ctl { border: 0; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ctl legend {
  padding: 0; font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem;
}
.seg { display: flex; flex-wrap: wrap; gap: 1px; background: color-mix(in srgb, var(--ink) 18%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.seg__b {
  flex: 1 1 auto; background: var(--paper); padding: .58rem .5rem; font-size: .76rem;
  font-weight: 500; letter-spacing: .04em; color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg__b:hover { background: var(--paper-dim); }
.seg__b.is-on { background: var(--bark); color: var(--paper); }

.rng { display: grid; gap: .3rem; font-size: .8rem; color: var(--ink-soft); }
.rng b { color: var(--ink); font-weight: 600; font-family: var(--display); font-size: .95rem; }
.rng input[type=range] { width: 100%; accent-color: var(--bark); }

.plan__controls select {
  font: inherit; font-size: .85rem; width: 100%; padding: .55rem .6rem; border-radius: 0;
  color: var(--ink); background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.swatches { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.sw {
  width: 2rem; height: 1.5rem; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  padding: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.sw:hover { transform: translateY(-2px); }
.sw.is-on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--bark); }
.sw__name { flex-basis: 100%; font-size: .74rem; color: var(--ink-soft); margin-top: .2rem; }
.chk { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-soft); }
.chk input { accent-color: var(--bark); width: 1rem; height: 1rem; }

.tally {
  display: grid; gap: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.tally div { background: var(--paper); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem .85rem; }
.tally span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tally b { font-family: var(--display); font-size: 1.05rem; }

/* planner CTA: fills upward */
.cta-plan {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  gap: .8rem; padding: 1rem 1.4rem; background: var(--bark); color: var(--paper);
  font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; width: 100%;
}
.cta-plan span, .cta-plan svg { position: relative; z-index: 1; }
.cta-plan svg { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.cta-plan::before {
  content: ''; position: absolute; inset: 0; background: var(--ember);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease);
}
.cta-plan:hover::before { transform: scaleY(1); }
.cta-plan:hover svg { transform: translateX(4px); }
.plan__fine { font-size: .74rem; color: color-mix(in srgb, var(--ink-soft) 82%, transparent); }

/* ============================================================
   REVEALS  ·  fire on mount, never viewport gated, transform only
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .rise-1 { animation-delay: .06s; }
  .rise-2 { animation-delay: .14s; }
  .rise-3 { animation-delay: .22s; }
  @keyframes rise { from { transform: translateY(18px); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hero__video { display: none; }
  .hero__poster { opacity: 1 !important; }
}
