/* Ladderline Painting Co. page styles.
   Ported from the mockup (reference/mockup/styles.css) onto the scroll-craft tokens.
   scrollcraft.css is the mechanism and loads first. Nothing here restyles [data-sc-*]. */

:root {
  /* scroll-craft roles */
  --sc-canvas: #EFEBE3;
  --sc-surface: #F8F6F1;
  --sc-ink: #1C1F24;
  --sc-ink-soft: #4A4E55;
  --sc-accent: #BF5700;
  --sc-accent-ink: #1C1F24;
  --sc-font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sc-font-text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --sc-font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sc-shadow-color: 220 12% 12%;

  /* mockup tokens */
  --limestone: #EFEBE3;
  --chalk: #F8F6F1;
  --ink: #1C1F24;
  --ink-soft: #4A4E55;
  --rule: #D6D0C4;
  --burnt: #BF5700;
  --burnt-deep: #964400;
  --oak: #39492F;
  --aqua: #2F8A8F;
  --bluebonnet: #3B52A3;
  --on-dark: #EFEBE3;
  --on-dark-soft: #B9B4AA;

  --f-display: var(--sc-font-display);
  --f-body: var(--sc-font-text);
  --f-mono: var(--sc-font-mono);

  --wrap: 1180px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + 16px));
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.9rem, 1.6rem + 6vw, 6.4rem);

  /* hero wall ground. Replace with the colour sampled from the picked plate. */
  --wall: #E7E4E1;
  color-scheme: light;
}

body {
  font-size: var(--step-0);
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink);
}
img { height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--bluebonnet); outline-offset: 3px; border-radius: 2px; }
.band--ink :focus-visible, .process-act :focus-visible, .room-stage :focus-visible,
.site-footer :focus-visible, .topbar :focus-visible { outline-color: var(--chalk); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--on-dark); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.band { padding-block: clamp(64px, 9vw, 120px); border-top: 2px solid var(--ink); }
.band--post-pin { padding-top: clamp(40px, 5vw, 72px); }
.band--ink { background: var(--ink); color: var(--on-dark); }
.band--chalk { background: var(--chalk); }

/* ------------------------------------------------------------------ type */
h1, h2, h3 {
  font-family: var(--f-display);
  font-stretch: 62.5%;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1; }
h4 { font-family: var(--f-body); font-size: var(--step-1); font-weight: 600; margin: 0; line-height: 1.3; }
p { margin: 0; max-width: 64ch; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.55; max-width: 56ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 10px; background: currentColor; border-radius: 1px; flex: none; }
.muted { color: var(--ink-soft); }
.band--ink .muted, .process-act .muted { color: var(--on-dark-soft); }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 100%; font-weight: 800; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; white-space: nowrap;
  padding: 16px 24px; border: 2px solid var(--ink); background: var(--ink); color: var(--on-dark);
  cursor: pointer; border-radius: 2px;
  transition: transform .15s var(--sc-ease-out), box-shadow .15s var(--sc-ease-out);
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--burnt { background: var(--burnt); border-color: var(--burnt); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow { display: inline-block; transition: transform .15s var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--burnt); }
  .btn--ghost:hover { box-shadow: 4px 4px 0 var(--ink); }
  .btn--burnt:hover { box-shadow: 4px 4px 0 var(--on-dark); }
  .hero .btn--burnt:hover, .callbar .btn--burnt:hover { box-shadow: 4px 4px 0 var(--ink); }
  a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
}

/* ------------------------------------------------- utility bar and header */
.topbar { background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.topbar .hide-sm { opacity: .85; }
@media (max-width: 700px) { .topbar .hide-sm { display: none; } }
/* the contact bar rides along with the scroll on tablet and desktop. phones get the call bar instead */
@media (min-width: 861px) {
  .topbar { position: sticky; top: 0; z-index: calc(var(--sc-z-chrome, 60) + 10); }
  html { scroll-padding-top: 44px; }
}

/* The header scrolls away with the page. The chip rail is the chrome that stays. */
.site-header { position: relative; z-index: 50; background: var(--limestone); border-bottom: 2px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 12px; }
.brand { display: block; width: 230px; flex: none; }
.brand img { display: block; width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  font-family: var(--f-display); font-stretch: 100%; font-weight: 700; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; padding: 10px 12px; display: inline-block;
}
.nav > a:not(.btn):hover { color: var(--burnt-deep); }
.nav .btn { margin-left: 10px; padding: 12px 18px; color: var(--on-dark); }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--ink); padding: 10px 12px;
  font: 700 .85rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); cursor: pointer;
}
@media (max-width: 1120px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--limestone); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter-r) 20px var(--gutter); display: none;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; display: block; }
  .nav .btn { margin: 16px 0 0; border-bottom: 2px solid var(--ink); text-align: center; padding: 14px 18px; }
  .brand { width: 190px; }
}

/* ------------------------------------------------------------------ hero */
.hero { border-bottom: 2px solid var(--ink); }
.hero__stage { background: var(--wall); display: flex; align-items: center; }

/* The scene. Neither .scene nor .scene__box makes a stacking context, so the
   planes and the copy interleave: wall 1, copy 2, painter 3, foreground 4. */
.scene { position: absolute; inset: 0; pointer-events: none; }
.scene__box {
  position: absolute; right: 0; bottom: 0;
  width: max(100vw, calc(100svh * 16 / 9)); aspect-ratio: 16 / 9;
  --base: 75.8%; /* baseboard line, as a share of the box height */
}
.scene__plane { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.scene__plane--wall { z-index: 1; }
.scene__plane--wall > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.scene__plane--painter { z-index: 3; }
.scene__plane--fore { z-index: 4; }

/* The coat. It grows down the wall and creeps left as the act's --sc-p runs,
   with a stepped edge like a roller pass. It stops well short of the copy. */
.scene__coat {
  position: absolute; left: 0; right: 0; top: 0; height: var(--base);
  background: var(--burnt); mix-blend-mode: multiply;
  --x: calc(77% - var(--sc-p, 0) * 12%);
  --b: calc(45% + var(--sc-p, 0) * 55%);
  clip-path: polygon(
    var(--x) 0, 100% 0, 100% var(--b),
    calc(var(--x) + 9%) var(--b),
    calc(var(--x) + 9%) calc(var(--b) - 12%),
    calc(var(--x) + 4%) calc(var(--b) - 12%),
    calc(var(--x) + 4%) calc(var(--b) - 30%),
    var(--x) calc(var(--b) - 30%)
  );
}

.hero__copy {
  position: relative; z-index: 2;
  margin-left: var(--edge); width: min(41%, 40rem);
  padding-block: 24px;
}
.hero__copy h1 { margin-top: 18px; font-size: min(clamp(3.4rem, 1.4rem + 7.4vw, 8rem), 15svh); line-height: .86; }
.hero__copy h1 em { font-style: normal; color: var(--burnt-deep); }
.hero__copy .lede { margin-top: 26px; }
.hero__copy .btn-row { margin-top: 32px; }
.hero-meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 26px;
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.hero-meta span::before { content: "\2605"; margin-right: 8px; }

/* Fan deck. Opens with the scroll, part fanned on landing. */
.hero__deck { position: absolute; z-index: 5; left: 53%; bottom: 2%; width: clamp(150px, 14vw, 220px); pointer-events: none; }
.deck { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.chip {
  position: absolute; left: 28%; bottom: 4%; width: 44%; height: 84%;
  background: var(--chalk); border: 2px solid var(--ink); border-radius: 6px;
  transform-origin: 50% 92%; padding: 8px; display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 2px 0 rgba(28, 31, 36, .15);
  transform: rotate(calc(var(--r) * min(1, var(--sc-p, 0) * 2.4 + 0.3)));
  will-change: transform;
}
.chip .swatch { flex: 1; border-radius: 3px; background: var(--c); border: 1px solid rgba(28, 31, 36, .2); }
.chip .label { font-family: var(--f-display); font-stretch: 62.5%; font-weight: 800; text-transform: uppercase; font-size: .9rem; line-height: 1; white-space: nowrap; overflow: hidden; }
.chip .code { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .04em; display: flex; justify-content: space-between; color: var(--ink-soft); }
.deck .rivet { position: absolute; left: 50%; bottom: calc(4% + 84% * .08 - 9px); width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--chalk); z-index: 9; }

.stamp { position: absolute; z-index: 5; left: 54.5%; top: 6%; width: clamp(96px, 9vw, 132px); height: auto; aspect-ratio: 1; filter: drop-shadow(4px 4px 0 var(--ink)); pointer-events: none; }
.stamp-ring { transform-origin: 100px 100px; animation: ll-spin 26s linear infinite; }
@keyframes ll-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .hero__stage { display: block; }
  .scene__box { height: 42svh; width: auto; right: -8%; }
  .scene__plane--wall {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 24%);
  }
  .hero__copy { z-index: 6; margin: 0; width: 100%; padding: 22px var(--gutter-r) 0 var(--gutter); }
  .hero__copy .eyebrow { font-size: .68rem; letter-spacing: .08em; }
  .hero__copy h1 { margin-top: 12px; font-size: min(3rem, 13vw); line-height: .9; }
  .hero__copy .lede { margin-top: 14px; font-size: .97rem; line-height: 1.5; }
  .hero__copy .btn-row { margin-top: 18px; gap: 8px; flex-direction: column; }
  .hero__copy .btn { padding: 12px 18px; width: 100%; }
  .hero-meta { display: none; }
  .hero__deck { left: 3%; bottom: 1.5%; width: 124px; }
  .chip { padding: 5px; gap: 3px; border-radius: 4px; }
  .chip .label { font-size: .5rem; }
  .chip .code { display: none; }
  .deck .rivet { width: 12px; height: 12px; margin-left: -6px; border-width: 2px; }
  .stamp { left: 14px; top: auto; bottom: 27svh; width: 78px; filter: drop-shadow(3px 3px 0 var(--ink)); }
}

/* ----------------------------------------------------------- town ribbon */
.ribbon { background: var(--ink); color: var(--on-dark); overflow: hidden; }
.ribbon-track { display: flex; width: max-content; animation: ll-slide 38s linear infinite; }
.ribbon:hover .ribbon-track, .ribbon:focus-within .ribbon-track { animation-play-state: paused; }
.ribbon-track ul { display: flex; list-style: none; margin: 0; padding: 14px 0; }
.ribbon-track li { font-family: var(--f-display); font-stretch: 62.5%; font-weight: 900; font-size: 1.6rem; text-transform: uppercase; padding-inline: 22px; display: flex; align-items: center; gap: 44px; white-space: nowrap; line-height: 1; }
.ribbon-track li::after { content: "\2605"; color: var(--burnt); font-size: 1.1rem; }
@keyframes ll-slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 60px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > * { min-width: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* -------------------------------------------------- split service panels */
.split { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); border: 2px solid var(--ink); }
.split > .panel { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 22px; padding: 0 clamp(28px, 4vw, 52px) clamp(28px, 4vw, 52px); min-width: 0; }
.split > .panel + .panel { border-left: 2px solid var(--ink); }
.split .panel-res { background: var(--chalk); }
.split .panel-com { background: var(--ink); color: var(--on-dark); }
.panel-img { margin: 0 calc(-1 * clamp(28px, 4vw, 52px)) 10px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--ink); }
.panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split h3 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.split .tag { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.split ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.split li { padding-left: 20px; position: relative; font-size: 1rem; }
.split li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--burnt); }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; grid-template-rows: none; }
  .split > .panel { grid-row: auto; grid-template-rows: none; }
  .split > .panel + .panel { border-left: 0; border-top: 2px solid var(--ink); }
}
@media (max-width: 440px) { .split ul { grid-template-columns: 1fr; } }

/* ------------------------------------------------ process: a sideways rail */
.process-act { background: var(--ink); color: var(--on-dark); border-top: 2px solid var(--ink); }
.process-stage { background: var(--ink); display: flex; align-items: center; }
.steps { gap: clamp(28px, 3vw, 48px); padding-inline: var(--edge); align-items: stretch; }
.steps > * { flex: none; }
.steps__lead { width: min(34rem, 80vw); display: grid; gap: 20px; align-content: center; padding-right: clamp(8px, 3vw, 48px); }
.step { width: min(22rem, 74vw); border-top: 2px solid var(--on-dark); padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.step .n { font-family: var(--f-display); font-stretch: 62.5%; font-weight: 900; font-size: clamp(3.4rem, 2.4rem + 3vw, 5.4rem); line-height: .86; color: var(--burnt); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.step p { font-size: 1rem; color: var(--on-dark); }
.steps__end { width: min(20rem, 74vw); display: grid; align-content: center; justify-items: start; }
@media (prefers-reduced-motion: reduce) { .steps { padding-block: 40px; } }

/* --------------------------------------------- climate: feature and specs */
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.specs { border-top: 2px solid var(--ink); margin: 0; }
.specs > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--burnt-deep); padding-top: 3px; }
.specs dd { margin: 0; }
@media (max-width: 520px) { .specs > div { grid-template-columns: 1fr; gap: 6px; } }

.photo { margin: 0; border: 2px solid var(--ink); overflow: hidden; background: var(--ink); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; }
.photo--tall { aspect-ratio: 4 / 3; box-shadow: 8px 8px 0 var(--burnt); }

/* ------------------------------------- the room: one room, six colours */
.room-act { border-top: 2px solid var(--ink); }
.room-stage { background: var(--ink); color: var(--chalk); }
.room {
  height: 100%; display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding: clamp(20px, 4svh, 48px) max(var(--gutter-r), 3.4vw) clamp(20px, 4svh, 48px) max(var(--gutter), 3vw);
}
.room__side { display: grid; gap: clamp(16px, 2.6svh, 28px); align-content: center; min-width: 0; }
.room__side h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); }
.room__now { display: grid; gap: 8px; border-top: 2px solid var(--chalk); padding-top: 14px; }
.room__code { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); display: flex; gap: 18px; }
.room__name { font-family: var(--f-display); font-stretch: 62.5%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); line-height: .9; min-height: 1.8em; text-wrap: balance; }
.room__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rchip {
  appearance: none; min-height: 44px; padding: 6px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center;
  background: transparent; color: var(--chalk); border: 2px solid rgba(248, 246, 241, .45); border-radius: 4px;
  font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: .86rem; line-height: 1.05; text-transform: uppercase; text-align: left; cursor: pointer;
  transition: background-color .16s var(--sc-ease-out), color .16s var(--sc-ease-out), border-color .16s var(--sc-ease-out), transform .12s var(--sc-ease-out);
}
.rchip i { display: block; width: 34px; height: 34px; border-radius: 2px; background: var(--c, #888); border: 1px solid rgba(248, 246, 241, .5); }
.rchip:active { transform: scale(.97); }
.rchip[aria-pressed="true"] { background: var(--chalk); color: var(--ink); border-color: var(--chalk); box-shadow: 4px 4px 0 var(--burnt); }
.rchip[aria-pressed="true"] i { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .rchip:hover { border-color: var(--chalk); } }
.room__hint { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-soft); transition: color .24s var(--sc-ease-out); }
.room-stage.is-live .room__hint { color: var(--chalk); }
.room-stage.is-live .room__hint::before { content: "\2605"; color: var(--burnt); margin-right: 8px; }

.room__photo {
  position: relative; margin: 0; justify-self: end; width: 100%; max-width: calc(80svh * 16 / 9);
  aspect-ratio: 16 / 9; border: 2px solid var(--chalk); background: #2a2e35; overflow: hidden; isolation: isolate;
}
.room__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__wall {
  position: absolute; inset: 0; mix-blend-mode: multiply;
  -webkit-mask-image: url(assets/room-mask.png); mask-image: url(assets/room-mask.png);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.room__wall--a { background: var(--wa, transparent); clip-path: inset(0 0 0 calc(var(--t, 0) * 100%)); }
.room__wall--b { background: var(--wb, transparent); clip-path: inset(0 calc((1 - var(--t, 0)) * 100%) 0 0); }
.room__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; }

@media (max-width: 860px) {
  .room { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; padding-block: 16px 84px; }
  .room__side { display: contents; }
  .room__side h2 { order: 1; font-size: 2rem; }
  .room__photo { order: 2; max-width: none; }
  .room__now { order: 3; padding-top: 10px; gap: 4px; }
  .room__name { font-size: min(2.1rem, 9vw); min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; }
  .room__chips { order: 4; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rchip { grid-template-columns: 1fr; gap: 5px; padding: 5px; font-size: .68rem; align-content: start; }
  .rchip i { width: 100%; height: 26px; }
  .room__hint { order: 5; font-size: .7rem; }
  .room__photo figcaption { font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  .room-act { height: auto !important; }
  .room-stage { position: relative; height: auto; padding-block: clamp(32px, 6vw, 72px); }
}

/* --------------------------------------------------------------- promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.promises > div { background: var(--limestone); padding: 28px; display: grid; gap: 12px; align-content: start; }
.promises .k { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.promises h3 { font-size: 1.9rem; }
@media (min-width: 901px) { .promises > div { grid-row: span 3; grid-template-rows: subgrid; } }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }

/* ------------------------------------------------- before and after slider */
.ba-card { margin: 0; display: grid; gap: 12px; }
.ba { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border: 2px solid var(--ink); background: var(--ink); --pos: 50%; touch-action: pan-y; }
.band--ink .ba { border-color: var(--on-dark); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--chalk); pointer-events: none; box-shadow: 0 0 0 1px rgba(28, 31, 36, .4); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--burnt); border: 3px solid var(--chalk); color: var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible ~ .ba-handle, .ba:focus-within .ba-handle { background: var(--bluebonnet); }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--bluebonnet); outline-offset: 3px; }
.ba-label { position: absolute; top: 12px; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; pointer-events: none; z-index: 1; }
.ba-label--before { left: 12px; background: var(--ink); color: var(--on-dark); }
.ba-label--after { right: 12px; background: var(--burnt); color: #fff; }
.ba-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ba-title { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.1; }
.ba-tag { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.band--ink .ba-tag { color: var(--on-dark-soft); }
.teaser { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.teaser-side { display: grid; gap: 24px; }
@media (max-width: 860px) { .teaser { grid-template-columns: 1fr; } }
.sample-note { margin-top: 22px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-soft); max-width: none; }

/* ----------------------------------------------------------------- reviews */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.review { background: var(--chalk); border: 2px solid var(--ink); padding: 28px; display: grid; gap: 18px; align-content: space-between; }
.review blockquote { margin: 0; font-size: 1.08rem; line-height: 1.55; align-self: start; }
.review .stars { color: var(--burnt-deep); letter-spacing: 3px; font-size: 1.05rem; }
.review footer { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; display: grid; gap: 4px; align-self: end; }
.placeholder-tag { display: inline-block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--on-dark); padding: 3px 7px; justify-self: start; }
@media (min-width: 901px) { .reviews > .review { grid-row: span 3; grid-template-rows: subgrid; } }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ------------------------------------------------- area cards (paint chips) */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.areas > div { perspective: 900px; }
.area-chip { border: 2px solid var(--ink); background: var(--chalk); display: grid; grid-template-rows: 120px auto; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 0 rgba(28, 31, 36, .15); }
.area-chip .swatch { background: var(--c); border-bottom: 2px solid var(--ink); position: relative; }
.area-chip .swatch span { position: absolute; right: 12px; bottom: 10px; font-family: var(--f-mono); font-size: .72rem; color: var(--ink); background: var(--chalk); padding: 3px 7px; letter-spacing: .06em; }
.area-chip .body { padding: 18px 18px 20px; display: grid; gap: 6px; }
.area-chip h3 { font-size: 2rem; }
.area-chip .code { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-soft); letter-spacing: .04em; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------- faq */
.two-col { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-weight: 600; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--f-display); font-weight: 900; font-size: 2rem; line-height: 1; color: var(--burnt-deep); transition: transform .2s var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; display: grid; gap: 12px; color: var(--ink-soft); }

/* ----------------------- close: the ground takes the visitor's chosen colour */
.close {
  position: relative; padding-block: clamp(64px, 9vw, 120px); border-top: 2px solid var(--ink);
  color: var(--chosen-ink, #F8F6F1);
  /* first coat: a shade deeper than the chosen colour, so copy reads before the roll */
  background: color-mix(in srgb, var(--chosen, #BF5700) 66%, #1C1F24);
}
.close :focus-visible, .close .choice input:focus-visible + span { outline-color: var(--chosen-ink, #F8F6F1); }
/* the ground is the chosen colour taken a step toward ink, so 20px copy clears 4.5:1 on all six */
.close__ground { position: absolute; inset: 0; z-index: 0; background: color-mix(in srgb, var(--chosen, #BF5700) 82%, #1C1F24); }
.close > .wrap { position: relative; z-index: 1; }
.quote-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.close__pitch { display: grid; gap: 22px; align-content: start; justify-items: start; }
.close__pitch h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); }
.close__pitch p { font-size: 1.25rem; font-weight: 600; line-height: 1.45; max-width: 30ch; }
.close__pitch .phone { font-family: var(--f-display); font-stretch: 75%; font-weight: 900; font-size: 2rem; text-decoration: none; line-height: 1.1; }
.close__pick strong { text-transform: uppercase; }

.form { background: var(--chalk); color: #1C1F24; border: 2px solid var(--ink); padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; box-shadow: 10px 10px 0 var(--ink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row > * { min-width: 0; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form { box-shadow: 6px 6px 0 var(--ink); } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 12px 14px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; font-family: var(--f-body); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.choice span { display: inline-block; border: 2px solid var(--ink); padding: 10px 16px; background: #fff; font-family: var(--f-body); font-weight: 600; font-size: .95rem; letter-spacing: 0; text-transform: none; border-radius: 2px; }
.choice input:checked + span { background: var(--ink); color: var(--on-dark); }
.choice input:focus-visible + span { outline: 3px solid var(--bluebonnet); outline-offset: 3px; }
.form .btn { justify-self: start; }
.form-status { border: 2px solid var(--ink); background: var(--limestone); padding: 16px 18px; font-weight: 500; max-width: none; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 72px 48px; }
.site-footer .brand-f { width: 250px; max-width: 100%; display: block; }
.site-footer .brand-f img { width: 100%; height: auto; }
.site-footer h4 { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--on-dark-soft); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .bottom { border-top: 1px solid rgba(239, 235, 227, .2); padding-block: 22px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .04em; color: var(--on-dark-soft); }
.site-footer p { color: var(--on-dark-soft); }
@media (max-width: 900px) { .site-footer .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .top { grid-template-columns: 1fr; } }

/* -------------------------- chip rail: the fan deck that stays on screen */
.chiprail {
  position: fixed; right: 0; top: 50%; z-index: var(--sc-z-chrome, 60);
  display: none; flex-direction: column; align-items: flex-end; gap: 6px;
  transform: translate(110%, -50%); opacity: 0; visibility: hidden;
  transition: transform .3s var(--sc-ease-out), opacity .3s var(--sc-ease-out), visibility 0s linear .3s;
}
.chiprail.is-on { transform: translate(0, -50%); opacity: 1; visibility: visible; transition-delay: 0s; }
.chiprail a {
  position: relative; display: block; width: 12px; height: 34px;
  border: 2px solid var(--ink); border-right: 0; border-radius: 3px 0 0 3px;
  background: var(--chosen, var(--c)); box-shadow: 0 0 0 1px rgba(248, 246, 241, .7);
  transition: width .18s var(--sc-ease-out);
}
.chiprail a[aria-current="true"] { width: 26px; }
.chiprail a span {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap; padding: 5px 9px; opacity: 0; pointer-events: none;
  transition: opacity .14s var(--sc-ease-out);
}
.chiprail a:hover span, .chiprail a:focus-visible span { opacity: 1; }
.chiprail a:hover { width: 26px; }
/* a wider invisible hit area, so the 12px tick is not the whole target */
.chiprail a::before { content: ""; position: absolute; top: -3px; bottom: -3px; right: 0; width: 44px; }
@media (min-width: 1100px) { .chiprail { display: flex; } }

/* --------------------------------- call bar: phones only, after the hero */
.callbar { display: none; }
@media (max-width: 860px) {
  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--sc-z-chrome, 60);
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
    background: var(--limestone); border-top: 4px solid var(--chosen, #1C1F24);
    transform: translateY(110%); visibility: hidden;
    transition: transform .3s var(--sc-ease-out), visibility 0s linear .3s;
  }
  .is-past-hero .callbar { transform: none; visibility: visible; transition-delay: 0s; }
  .callbar .btn { padding: 13px 10px; font-size: .88rem; }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .stamp-ring { animation: none; }
  .chip { transform: rotate(var(--r)); }
  .scene__coat { --x: 59%; --b: 100%; }
  .chiprail, .callbar, .btn, .arrow, .rchip { transition: none; }
}

/* ------------------------------- the repaint: scroll wipes before to after */
.wipe-act { background: var(--ink); color: var(--on-dark); }
.wipe-stage { background: var(--ink); overflow: hidden; }
.wipe { position: absolute; inset: 0; --w: clamp(0, calc((var(--sc-p, 0) - 0.1) / 0.68), 1); }
.wipe__photo { position: absolute; inset: 0; margin: 0; }
.wipe__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
.wipe__after { position: absolute; inset: 0; clip-path: inset(0 calc((1 - var(--w)) * 100%) 0 0); }
.wipe__edge { position: absolute; top: 0; bottom: 0; left: calc(var(--w) * 100%); width: 8px; margin-left: -4px; background: var(--burnt); box-shadow: 0 0 0 2px var(--chalk); opacity: calc(var(--w) * (1 - var(--w)) * 40); }
.wipe__head { position: absolute; z-index: 2; left: var(--gutter); top: clamp(64px, 9vh, 110px); background: var(--ink); color: var(--on-dark); padding: 18px 22px 20px; border: 2px solid var(--chalk); max-width: min(34rem, calc(100% - 2 * var(--gutter))); display: grid; gap: 10px; }
.wipe__head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); }
.wipe__tag { top: auto; bottom: 56px; font-size: .9rem; padding: 8px 14px; z-index: 2; }
.wipe__tag--after { left: var(--gutter); right: auto; opacity: clamp(0, calc(var(--w) * 8 - 0.6), 1); }
.wipe__tag--before { right: var(--gutter); left: auto; opacity: clamp(0, calc((1 - var(--w)) * 8 - 0.6), 1); }
.wipe__photo figcaption { position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; }
@media (max-width: 860px) {
  .wipe { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 16px var(--gutter-r) 96px var(--gutter); }
  .wipe__head { position: static; border: 0; padding: 0; max-width: none; }
  .wipe__photo { position: relative; inset: auto; aspect-ratio: 3 / 2; border: 2px solid var(--chalk); }
  .wipe__photo img { object-position: 50% 50%; }
  .wipe__tag { bottom: 34px; font-size: .72rem; padding: 5px 9px; }
  .wipe__tag--after { left: 10px; } .wipe__tag--before { right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .wipe { --w: .5; } }

/* -------------------- the repaint as one large manual slider (round 4) */
.ba-card--hero .ba { aspect-ratio: 16 / 9; max-height: 78vh; width: 100%; }
.ba-card--hero .ba-label { font-size: .9rem; padding: 8px 14px; top: 16px; }
.ba-card--hero .ba-handle::after { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 1.5rem; }
@media (max-width: 860px) { .ba-card--hero .ba { aspect-ratio: 3 / 2; } .ba-card--hero .ba-label { font-size: .72rem; padding: 5px 9px; top: 12px; } }
.band--ink .ba:has(.ba-range:focus-visible) { outline-color: var(--chalk); }

/* ---- round 5: labels fade out as their photo is hidden, and the repaint slider goes full screen */
.ba { --p: .5; }
.ba-label--before { opacity: clamp(0, calc((var(--p) - 0.1) * 14), 1); }
.ba-label--after { opacity: clamp(0, calc((0.9 - var(--p)) * 14), 1); }
.makeover { background: var(--ink); color: var(--on-dark); border-block: 2px solid var(--ink); }
.ba-card--full { display: block; margin: 0; }
.ba-card--full .ba { aspect-ratio: auto; width: 100%; height: calc(100svh - 36px); min-height: 420px; border: 0; }
.ba-card--full .ba-label { top: auto; bottom: 28px; font-size: .95rem; padding: 9px 16px; }
.ba-card--full .ba-label--before { left: var(--gutter); }
.ba-card--full .ba-label--after { right: var(--gutter-r); }
.ba-card--full .ba-handle { width: 6px; margin-left: -3px; }
.ba-card--full .ba-handle::after { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 1.6rem; }
.makeover__head { position: absolute; z-index: 2; left: var(--gutter); top: clamp(24px, 6vh, 64px); background: var(--ink); color: var(--on-dark); padding: 18px 22px 20px; border: 2px solid var(--chalk); max-width: min(34rem, calc(100% - 2 * var(--gutter))); display: grid; gap: 10px; pointer-events: none; }
.makeover__head h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.8rem); }
.makeover__hint { margin: 0; color: var(--on-dark-soft); font-size: 1rem; }
.makeover__note { position: absolute; z-index: 2; right: 0; top: 0; background: var(--ink); color: var(--on-dark); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; pointer-events: none; }
.makeover .ba:has(.ba-range:focus-visible) { outline: 3px solid var(--chalk); outline-offset: -6px; }
.ba-card--full { position: relative; }
@media (max-width: 860px) {
  .makeover__head { position: static; border: 0; max-width: none; padding: 28px var(--gutter-r) 20px var(--gutter); }
  .ba-card--full .ba { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .ba-card--full .ba-label { bottom: 14px; font-size: .72rem; padding: 5px 9px; }
  .ba-card--full .ba-handle::after { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 1.2rem; }
}
