/* ============================================================
   STUDIO PETER VARGA : LIVING SURFACES (Lane B demo)
   Warm plaster daylight. Tactile maximalism. Real rooms, full bleed.
   Signature mechanism: The Transformation (scroll-scrubbed trowel pass).
   Palette pinned to the brand's live tokens; accent confined to the
   seam, the readout, and the primary action.
   ============================================================ */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #E3E1DE;        /* warm greige ground, the brand's live token */
  --paper-tint: #DAD6CF;   /* deeper plaster band */
  --ink: #1F1C1A;          /* warm near-black */
  --greige: #CFCDC7;       /* rules, borders */
  --umber: #6B6561;        /* secondary text */
  --clay: #9C5B33;         /* accent: wet roman clay. CONFINED. */
  --clay-deep: #7B4526;    /* accent at text sizes on paper */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: min(92vw, 1280px);
  --soft: "SOFT" 72;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: var(--wrap); margin-inline: auto; }

section[id], [id="finishes"], [id="studio"], [id="faq"], [id="start"] { scroll-margin-top: 72px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; text-decoration: none; border-radius: 2px;
  transition: top 200ms ease-out;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.arrival :focus-visible, .studio-act :focus-visible, .start :focus-visible,
.nav :focus-visible { outline-color: var(--paper); }

::selection { background: var(--clay); color: var(--paper); }

/* ---------- Type voices ---------- */
.display {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 560;
  line-height: 1.04;
  letter-spacing: -0.01em;
  font-size: clamp(2.1rem, 1.4rem + 3.4vw, 4.2rem);
  text-wrap: balance;
  max-width: 18ch;
}
.eyebrow {
  font-family: var(--sans);
  font-stretch: 87%;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: 1.1rem;
}
.eyebrow.light { color: var(--greige); }
.lede { max-width: 58ch; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.credit {
  margin-top: 0.9rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--umber);
}
.body-note { margin-top: 1rem; color: var(--umber); max-width: 48ch; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--clay);
  color: #FFF9F4;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 0;
  padding: 0.95rem 1.8rem;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block;
  color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.95rem 0.2rem;
  border-bottom: 1px solid rgba(227, 225, 222, 0.5);
  transition: border-color 180ms ease-out;
}
.btn-ghost:hover { border-color: var(--paper); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background-color 240ms ease-out, box-shadow 240ms ease-out;
}
.nav-logo img { height: 26px; width: auto; }
.nav .logo-dark { display: none; }
/* Fully opaque when solid: at 0.96 alpha the chapter headings ghosted through. */
.nav.solid { background: var(--paper); box-shadow: 0 1px 0 var(--greige); }
.nav.solid .logo-light { display: none; }
.nav.solid .logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  font-stretch: 90%;
  text-decoration: none; color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease-out;
}
.nav-links a:hover { border-color: currentColor; }
.nav.solid .nav-links a { color: var(--ink); }
.nav-links .nav-cta {
  border: 1px solid currentColor; border-radius: 2px; padding: 0.55rem 1rem;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.nav-links .nav-cta:hover { background: var(--paper); color: var(--ink); }
.nav.solid .nav-links .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-burger {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.burger-bar {
  display: block; width: 26px; height: 2px; background: var(--paper);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav.solid .burger-bar, .nav.menu-open .burger-bar { background: var(--ink); }
.nav.menu-open .burger-bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav.menu-open .burger-bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* No-JS mobile fallback menu (native details/summary). display:none unless the
   viewport is mobile AND html never received the .js class; the JS experience
   (burger + overlay menu) is untouched. Enabled in the 899px media block below. */
.nav-fallback { display: none; position: relative; }
.nav-fallback summary {
  list-style: none; cursor: pointer;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(31, 28, 26, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  padding: 0.55rem 0.9rem;
}
.nav-fallback summary::-webkit-details-marker { display: none; }
.nav-fallback nav {
  position: absolute; right: 0; top: calc(100% + 0.6rem);
  min-width: 230px;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--greige); border-radius: 2px;
  box-shadow: 0 12px 30px rgba(31, 28, 26, 0.3);
  padding: 0.4rem 0;
}
.nav-fallback nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.8rem 1.1rem;
}
.nav-fallback nav a:hover { background: var(--paper-tint); }

.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 4rem);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.menu a {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 540;
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1.25;
  text-decoration: none;
  border-bottom: 1px solid var(--greige);
  padding: 0.5rem 0;
  display: flex; align-items: baseline; gap: 1rem;
}
.menu a:hover { color: var(--clay-deep); }
.menu-n { font-family: var(--sans); font-size: 0.8rem; color: var(--umber); letter-spacing: 0.15em; }
.menu-start { color: var(--clay-deep); }
.menu-foot { margin-top: 2.2rem; color: var(--umber); font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------- Arrival ---------- */
.arrival {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  background: var(--ink);
}
.arrival-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  /* Grade for the daylight loop: already warm at the source, so a light warm push.
     If the moody hands clip is ever restored, use its harder grade instead:
     sepia(0.32) saturate(1.25) brightness(1.16) contrast(1.03). */
  filter: sepia(0.12) saturate(1.18) brightness(1.06);
}
.arrival-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(38, 27, 18, 0.88) 0%, rgba(38, 27, 18, 0.34) 45%, rgba(38, 27, 18, 0.1) 100%),
    linear-gradient(105deg, rgba(38, 27, 18, 0.5) 0%, rgba(38, 27, 18, 0) 60%),
    radial-gradient(85% 65% at 80% 12%, rgba(255, 194, 122, 0.18), rgba(255, 194, 122, 0) 62%);
}
.arrival-copy {
  position: relative; z-index: 2;
  width: var(--wrap); margin-inline: auto;
  padding-block: clamp(5.5rem, 14vh, 9rem);
}
.arrival-h1 {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 480;
  font-size: clamp(2.6rem, 1.6rem + 6vw, 6.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 14ch;
  text-wrap: balance;
}
.arrival-h1 .wonk {
  font-style: normal;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  color: #EFD9C4; /* solid fallback where background-clip: text is unsupported */
}
/* The thesis lives in the type: the wonk word is filled with real plaster texture
   (the paid-for trowel-sweep plate). Solid-color fallback above. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .arrival-h1 .wonk {
    background: url("../assets/plates/trowel-sweep-macro-01-1920.webp") center 42% / cover no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.arrival-sub {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.2rem);
  color: rgba(227, 225, 222, 0.92);
}
.arrival-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.2rem; flex-wrap: wrap; }
.arrival-cue {
  position: absolute; right: clamp(1rem, 4vw, 2.5rem); bottom: 1.4rem; z-index: 2;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(227, 225, 222, 0.75);
}
.cue-line { width: 3rem; height: 1px; background: rgba(227, 225, 222, 0.5); display: block; }

/* ---------- Chapter rail ---------- */
.rail {
  position: fixed; right: 1.2rem; top: 50%; transform: translateY(-50%);
  z-index: 90;
  display: none;
  flex-direction: column; gap: 0.85rem;
  opacity: 0; pointer-events: none;
  transition: opacity 260ms ease-out;
}
.rail.on { opacity: 1; pointer-events: auto; }
/* Round 2: rail labels get the scrim-chip treatment so they stay legible over
   BOTH the dark stage and the pale drained side (they were unreadable at t=0,
   t=1, and over Room 03). Same chip family as .tx-side. */
.rail a {
  display: flex; align-items: center; gap: 0.55rem; flex-direction: row-reverse;
  align-self: flex-end;
  text-decoration: none;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(31, 28, 26, 0.55);
  backdrop-filter: blur(4px);
  padding: 0.28rem 0.3rem 0.28rem 0.75rem;
  border-radius: 999px;
}
.rail a span {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 1px solid transparent; border-radius: 50%;
  font-size: 0.6rem; letter-spacing: 0.05em;
  color: var(--ink);
  background: rgba(227, 225, 222, 0.92);
  transition: background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}
.rail a.active span { background: var(--clay); border-color: var(--clay); color: #FFF9F4; }
@media (min-width: 1100px) { .rail { display: flex; } }

/* ---------- Chapters (shared) ---------- */
.chapter { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.chapter-tint { background: var(--paper-tint); }
.chapter-head { margin-bottom: clamp(2.2rem, 5vw, 4rem); }

figure figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem; color: var(--umber); line-height: 1.5;
  max-width: 46ch;
}
figure img { border-radius: 2px; }

/* ---------- THE TRANSFORMATION ---------- */
.tx-hint { margin-top: 1.2rem; color: var(--umber); max-width: 52ch; }
.tx-hint strong { color: var(--clay-deep); }

.tx-track { position: relative; }
html.js-anim .tx-track { height: 420vh; }
.tx-stage {
  position: relative;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
html.js-anim .tx-stage { position: sticky; top: 0; }

.tx-living, .tx-pop, .tx-drained img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

/* The reveal's promise is LIGHT AND TEXTURE, not color: this photograph is
   near-achromatic charcoal, so its whole life is relief modeling and specular
   sheen. Right of the seam, "flat light": local contrast collapsed, shadows
   lifted, texture detail softened, a paper-gray veil deadening the raking-light
   modeling (denser toward the bottom, where the photo's sheen lives). Left of
   the seam, the untouched photograph, plus a light pass that travels WITH the
   seam. All CSS compositing over the real photo; the pixels are never edited. */
.tx-drained {
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 calc(var(--t, 0) * 100%));
}
.tx-drained img {
  /* Round-2 floor: the drained side must read as a dull-lit ROOM, never a faded
     photocopy. Contrast floor raised (0.5 -> 0.78), lift eased, blur halved, so
     the relief's modeling stays legible at t=0 while the light still reads dead. */
  filter: contrast(0.78) brightness(1.07) saturate(0.72) blur(0.6px);
  transform: scale(1.02); /* hides the blur's soft edge bleed */
}
.tx-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(214, 211, 206, 0.16), rgba(214, 211, 206, 0.05));
}

/* Texture pop: the same image overlay-blended onto itself in a band trailing the
   seam, snapping ridge contrast right where the light passes. Masked band and
   bell-curve opacity (0 at both ends of the pass) both derive from --t, so drag,
   keyboard, and scroll all move the light identically. */
.tx-pop { display: none; }
@supports (mask-image: linear-gradient(#000, #000)) or (-webkit-mask-image: linear-gradient(#000, #000)) {
  .tx-pop {
    display: block;
    pointer-events: none;
    mix-blend-mode: overlay;
    /* Round 2: band widened (34% -> 48% trail) and bell raised so ridges visibly
       snap alight as the seam passes. */
    opacity: calc(var(--t, 0) * (1 - var(--t, 0)) * 6.5);
    -webkit-mask-image: linear-gradient(to right,
      transparent calc(var(--t, 0) * 100% - 48%),
      rgba(0, 0, 0, 0.9) calc(var(--t, 0) * 100% - 14%),
      #000 calc(var(--t, 0) * 100% - 2%),
      transparent calc(var(--t, 0) * 100% + 2%));
    mask-image: linear-gradient(to right,
      transparent calc(var(--t, 0) * 100% - 48%),
      rgba(0, 0, 0, 0.9) calc(var(--t, 0) * 100% - 14%),
      #000 calc(var(--t, 0) * 100% - 2%),
      transparent calc(var(--t, 0) * 100% + 2%));
  }
}

/* Warm raking beam hugging the seam's trailing edge, additive over the charcoal.
   Round 2: the bell peak was too timid on screen; the blade is now an unmistakable
   rust-gold edge (hot core 0.72 at the seam, bell multiplier 6.5 so mid-pass
   clamps to full strength), the single designed moment of the pass. */
.tx-lightbeam {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(var(--t, 0) * (1 - var(--t, 0)) * 6.5);
  background: linear-gradient(to right,
    rgba(255, 178, 110, 0) calc(var(--t, 0) * 100% - 44%),
    rgba(255, 178, 110, 0.18) calc(var(--t, 0) * 100% - 20%),
    rgba(255, 172, 96, 0.42) calc(var(--t, 0) * 100% - 8%),
    rgba(255, 202, 138, 0.72) calc(var(--t, 0) * 100% - 1.5%),
    rgba(255, 226, 186, 0.28) calc(var(--t, 0) * 100% + 1%),
    rgba(255, 226, 186, 0) calc(var(--t, 0) * 100% + 4.5%));
}

/* No-JS and reduced-motion: the stage is simply the finished room. The hint
   goes too: it promises the scroll/drag interaction, which does not exist here,
   and copy must never promise what the pixels cannot deliver. */
html:not(.js-anim) .tx-hint,
html:not(.js-anim) .tx-drained,
html:not(.js-anim) .tx-pop,
html:not(.js-anim) .tx-lightbeam,
html:not(.js-anim) .tx-seam,
html:not(.js-anim) .tx-readout,
html:not(.js-anim) .tx-side { display: none; }

.tx-seam {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--t, 0) * 100%);
  width: 0; z-index: 4;
}
.tx-seam-line {
  position: absolute; top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(227,225,222,0.15), var(--paper) 18%, var(--paper) 82%, rgba(227,225,222,0.15));
  box-shadow: 0 0 18px rgba(31, 28, 26, 0.55);
}
.tx-handle {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--clay);
  color: #FFF9F4;
  display: grid; place-items: center;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 4px 18px rgba(31, 28, 26, 0.45);
}
.tx-handle:active { cursor: grabbing; }
.tx-grip { font-size: 1rem; letter-spacing: 0.1em; user-select: none; }

.tx-side {
  position: absolute; top: 5.4rem; z-index: 3;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(31, 28, 26, 0.55);
  padding: 0.45rem 0.8rem; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.tx-side-a { left: clamp(1rem, 4vw, 2.5rem); }
.tx-side-b { right: clamp(1rem, 4vw, 2.5rem); }

/* Round 2: readout and caption ride the same dark scrim chips as the side labels,
   so they hold against the pale drained side at t=0 (they were pale-on-pale). */
.tx-readout {
  position: absolute; left: clamp(1rem, 4vw, 2.5rem); bottom: 1.4rem; z-index: 3;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(31, 28, 26, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.45rem 0.8rem; border-radius: 2px;
}
.tx-pct { color: #E8B48E; font-variant-numeric: tabular-nums; }

.tx-caption {
  position: absolute; right: clamp(1rem, 4vw, 2.5rem); bottom: 1.4rem; z-index: 3;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: rgba(227, 225, 222, 0.92);
  text-align: right;
  max-width: 40ch;
  background: rgba(31, 28, 26, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.45rem 0.8rem; border-radius: 2px;
}

/* Round 2: the stage chrome (labels, readout, caption, seam) shows only while the
   stage is actually pinned; on entry and exit it fades, so the caption never
   rides up into the fixed chapter-rail zone as the stage scrolls away. */
.tx-side, .tx-readout, .tx-caption, .tx-seam { transition: opacity 220ms ease-out; }
.tx-stage.tx-idle .tx-side,
.tx-stage.tx-idle .tx-readout,
.tx-stage.tx-idle .tx-caption,
.tx-stage.tx-idle .tx-seam { opacity: 0; pointer-events: none; }

/* Chapter 01 outro pair */
.duo {
  display: grid; gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.duo-b { margin-top: clamp(2rem, 6vw, 5rem); }

/* ---------- Mazama ---------- */
.mazama-grid {
  display: grid; gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
}
.mz-tall { grid-row: 1 / 3; }

/* ---------- Bath ---------- */
.bath-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr 1.15fr;
  align-items: start;
}
.bath-second { margin-top: clamp(2rem, 4vw, 3.5rem); max-width: 420px; }
.sheen-host { position: relative; overflow: hidden; border-radius: 2px; }
.sheen {
  position: absolute; inset: 0; pointer-events: none;
  opacity: 0;
  background: radial-gradient(42% 34% at var(--mx, 50%) var(--my, 40%),
    rgba(255, 243, 224, 0.32), rgba(255, 243, 224, 0) 70%);
  mix-blend-mode: soft-light;
  transition: opacity 300ms ease-out;
}
html.js-anim .sheen-host:hover .sheen { opacity: 1; }

/* ---------- Walls / Tremont strip ---------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 33.5vw);
  gap: clamp(1rem, 2vw, 1.8rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: max(calc((100vw - var(--wrap)) / 2), 1rem);
  padding-bottom: 0.8rem;
  scrollbar-width: thin;
  scrollbar-color: var(--greige) transparent;
}
.strip figure { scroll-snap-align: center; }
.strip img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.strip-n {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  color: var(--clay-deep); margin-right: 0.5rem;
}
.walls-extra {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.walls-quote p {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 480;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.25;
  text-wrap: balance;
}
.walls-quote cite {
  display: block; margin-top: 1.2rem;
  font-family: var(--sans); font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--umber);
}

/* ---------- Kitchen ---------- */
.kitchen-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: 1fr 1fr;
  align-items: start; /* Round 2: kill the caption-row void; the copy column now fills down */
}
.kitchen-texture {
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  max-width: 300px;
}
.spec-tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin-top: 1.6rem;
}
.spec-tags li {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--greige); border-radius: 999px;
  padding: 0.45rem 0.95rem;
  color: var(--umber);
  background: rgba(255, 255, 255, 0.35);
}
.field { margin-top: clamp(3rem, 7vw, 5.5rem); }
.field-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--umber);
  border-top: 1px solid var(--greige);
  padding-top: 1.2rem; margin-bottom: 1.6rem;
}
.field-cards {
  display: grid; gap: clamp(1.2rem, 3vw, 2.2rem);
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}
.field-cards img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }

/* ---------- Interlude ---------- */
.interlude {
  position: relative;
  min-height: 62svh;
  display: grid; place-items: center;
  background:
    linear-gradient(rgba(31, 28, 26, 0.58), rgba(31, 28, 26, 0.58)),
    url("../assets/plates/lime-plaster-field-01-1920.webp") center / cover no-repeat;
  color: var(--paper);
  padding: clamp(4rem, 10vw, 7rem) 1.5rem;
}
.interlude-copy { text-align: center; max-width: 860px; }
.interlude-line {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 460;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.1rem);
  line-height: 1.2;
  text-wrap: balance;
}

/* ---------- Specimen wall ---------- */
.finishes { padding-top: 0; }
.ticker {
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--greige);
  padding-block: 0.9rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--paper);
}
.ticker-row { display: inline-block; }
.ticker-row span {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--umber);
}
html.js-anim .ticker-row {
  animation: ticker 46s linear infinite;
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.specimens {
  columns: 4;
  column-gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.specimen {
  position: relative; display: block; overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  background: var(--paper-tint);
  break-inside: avoid;
  margin-bottom: clamp(0.8rem, 1.6vw, 1.4rem);
}
.specimen:nth-child(8n+1), .specimen:nth-child(8n+6) { aspect-ratio: 3 / 5; }
.specimen:nth-child(8n+4) { aspect-ratio: 1 / 1; }
.specimen img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 280ms ease-out;
}
.specimen:hover img, .specimen:focus-visible img { transform: scale(1.06); }
/* Round 2 (S1): pointer-tracked raking sheen on the tiles, screen-blended so the
   finish visibly answers the light as the pointer moves. */
.specimen::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(46% 38% at var(--mx, 50%) var(--my, 40%),
    rgba(255, 236, 208, 0.6), rgba(255, 236, 208, 0) 72%);
  transition: opacity 240ms ease-out;
}
html.js-anim .specimen:hover::after,
html.js-anim .specimen:focus-visible::after { opacity: 1; }
.specimen-name { z-index: 2; }
.specimen-name {
  position: absolute; left: 0.9rem; bottom: 0.8rem; right: 0.9rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #FFF9F4;
  text-shadow: 0 1px 8px rgba(31, 28, 26, 0.9);
  padding-top: 2.2rem;
  background: linear-gradient(to top, rgba(31, 28, 26, 0.55), rgba(31, 28, 26, 0));
}
/* Round 2: the samples row is now three columns, bottom-aligned, so the old
   right-hand void is filled by copy plus the curated sample box. */
.samples-note {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; gap: clamp(1.2rem, 3vw, 2.5rem);
  grid-template-columns: minmax(240px, 380px) 1fr minmax(180px, 280px);
  align-items: end;
}
.samples-lede {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 480;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}
.samples-systems {
  margin-top: 1.1rem;
  color: var(--umber);
  max-width: 44ch;
}
.samples-note figcaption {
  margin-top: 0.8rem;
  font-size: 0.85rem; color: var(--umber);
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  width: min(94vw, 1080px);
  max-height: 92svh;
}
.lightbox::backdrop { background: rgba(31, 28, 26, 0.82); }
.lightbox figure { display: grid; }
.lightbox img {
  width: 100%; max-height: 72svh; object-fit: cover;
  cursor: zoom-in;
  transition: transform 280ms ease-out;
}
.lightbox img.zoomed { transform: scale(2.2); cursor: zoom-out; }
.lightbox figure { overflow: hidden; position: relative; }
/* Round 2 (S1): the macro view answers the pointer too: a raking sheen that
   tracks the cursor over the specimen, screen-blended. */
.lb-sheen {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(34% 26% at var(--mx, 50%) var(--my, 40%),
    rgba(255, 236, 208, 0.5), rgba(255, 236, 208, 0) 70%);
  transition: opacity 240ms ease-out;
}
html.js-anim .lightbox figure:hover .lb-sheen { opacity: 1; }
.lightbox figcaption {
  position: relative; z-index: 2;
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  padding: 1.1rem 1.4rem 1.3rem;
  background: var(--ink);
}
.lightbox figcaption strong {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-weight: 560; font-size: 1.4rem;
}
.lightbox figcaption span { color: var(--greige); font-size: 0.92rem; max-width: 46ch; }
.lightbox-inquire {
  color: #E8B48E;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration-color: rgba(232, 180, 142, 0.45);
  text-underline-offset: 4px;
}
.lightbox-inquire:hover { color: var(--paper); }
.lightbox-zoomhint { margin-left: auto; font-size: 0.75rem; color: var(--umber); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.lightbox-close {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(31, 28, 26, 0.65); color: var(--paper);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: var(--clay); }

/* ---------- Credentials band (Round 2, M5) ---------- */
.creds {
  background: var(--paper-tint);
  border-block: 1px solid var(--greige);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.creds .eyebrow { margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.creds-grid {
  display: grid; gap: clamp(1.4rem, 3vw, 2.8rem);
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
.cred { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.cred-n {
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 560;
  font-size: clamp(2.6rem, 1.8rem + 3.4vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.cred-l {
  margin-top: 0.7rem;
  color: var(--umber);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 30ch;
}

/* ---------- Studio act (dark) ---------- */
.studio-act {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.studio-act .lede { color: var(--greige); }
.fresco-row {
  display: grid; gap: clamp(1.8rem, 4vw, 3.5rem);
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
}
.fresco-row .origin-quote { margin-block: 0; }
.fresco-proof figcaption { color: var(--greige); }
.origin-quote {
  border-left: 2px solid var(--clay);
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  margin-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 860px;
}
.origin-quote p {
  font-family: var(--display);
  font-variation-settings: "SOFT" 80;
  font-weight: 440;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.22;
  text-wrap: balance;
}
.origin-quote cite {
  display: block; margin-top: 1.1rem;
  font-family: var(--sans); font-style: normal;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--umber);
}
.team {
  display: grid; gap: clamp(1.5rem, 3.5vw, 3rem);
  grid-template-columns: repeat(3, 1fr);
}
.member img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.member h3 {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-weight: 560; font-size: 1.5rem; line-height: 1.2;
}
.member-role {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--greige); opacity: 0.75;
  margin: 0.35rem 0 0.9rem;
}
.member p:last-child { color: var(--greige); font-size: 0.98rem; }
.vatican {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(207, 205, 199, 0.25);
  color: var(--greige);
  font-size: 1.05rem;
  max-width: 62ch;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(240px, 1fr) 1.6fr;
  align-items: start;
}
.faq-figure { margin-top: clamp(1.8rem, 4vw, 2.8rem); max-width: 380px; }
.faq-list details { border-bottom: 1px solid var(--greige); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--display); font-variation-settings: var(--soft);
  font-weight: 540; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.55rem);
  padding: 1.2rem 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--sans); font-weight: 400; font-size: 1.4rem;
  color: var(--clay-deep);
  transition: transform 200ms ease-out;
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 1.4rem; max-width: 60ch; color: var(--umber); }

/* ---------- Start / footer ---------- */
.start {
  background:
    linear-gradient(rgba(31, 28, 26, 0.9), rgba(31, 28, 26, 0.94)),
    url("../assets/plates/trowel-sweep-macro-01-1920.webp") center / cover no-repeat;
  color: var(--paper);
  padding-top: clamp(4.5rem, 10vw, 8.5rem);
}
.start-grid {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
}
.start .lede { color: var(--greige); }
.inquire-list {
  list-style: none;
  margin-top: 1.8rem;
  display: flex; flex-direction: column; gap: 0.1rem;
}
.inquire-list li {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-weight: 480; font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  border-bottom: 1px solid rgba(207, 205, 199, 0.2);
  padding: 0.7rem 0;
}
.start-direct { margin-top: 2rem; line-height: 2.1; }
.start-direct a { color: var(--paper); text-decoration-color: rgba(227, 225, 222, 0.4); }
.start-direct a:hover { text-decoration-color: var(--clay); }

.intake {
  background: var(--paper); color: var(--ink);
  border-radius: 3px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.45rem;
}
.intake-title {
  font-family: var(--display); font-variation-settings: var(--soft);
  font-weight: 560; font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.intake label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--umber);
  margin-top: 0.7rem;
}
.intake select, .intake input, .intake textarea {
  font: inherit; color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--greige); border-radius: 2px;
  padding: 0.7rem 0.85rem;
  width: 100%;
}
.intake select:focus, .intake input:focus, .intake textarea:focus {
  outline: 2px solid var(--clay); outline-offset: 0;
  border-color: var(--clay);
}
.intake .btn-primary { margin-top: 1.2rem; }
.intake-note { font-size: 0.8rem; color: var(--umber); margin-top: 0.4rem; }

.footer {
  margin-top: clamp(4rem, 9vw, 7rem);
  border-top: 1px solid rgba(207, 205, 199, 0.2);
  padding-block: 2.5rem 2.2rem;
}
.footer-grid { display: grid; gap: 1.6rem; }
.footer-logo { height: 30px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--greige); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { border-color: currentColor; }
.footer-fact { color: var(--greige); font-size: 0.9rem; }
.footer-legal { color: var(--umber); font-size: 0.78rem; max-width: 70ch; }

/* ---------- Closing room (Round 2, M5 peak-end) ---------- */
.closing {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.closing-img {
  width: 100%;
  height: min(92svh, 900px);
  object-fit: cover;
  object-position: center 35%;
}
.closing-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31, 28, 26, 0.62), rgba(31, 28, 26, 0) 55%);
}
.closing-line {
  position: absolute; inset-inline: 0;
  bottom: clamp(3.2rem, 11vh, 6.5rem);
  margin-inline: auto;
  width: min(92vw, 820px);
  text-align: center;
  font-family: var(--display);
  font-variation-settings: var(--soft);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 3.2rem);
  line-height: 1.15;
  color: var(--paper);
  text-wrap: balance;
}
.closing-credit {
  position: absolute; right: clamp(1rem, 4vw, 2.5rem); bottom: 1.1rem;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(227, 225, 222, 0.75);
}

/* ---------- Reveal system (IO one-shot, gated on .js-anim) ---------- */
html.js-anim [data-r] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms ease-out, transform 280ms ease-out;
}
html.js-anim [data-r].in { opacity: 1; transform: none; }
html.js-anim [data-r-group] [data-r]:nth-child(2) { transition-delay: 70ms; }
html.js-anim [data-r-group] [data-r]:nth-child(3) { transition-delay: 140ms; }

/* ---------- Reduced motion (belt over the js-anim gate) ---------- */
@media (prefers-reduced-motion: reduce) {
  .ticker-row { animation: none; }
  .specimen img, .lightbox img, .btn-primary { transition: none; }
  .arrival-video { display: none; }
  .arrival { background: var(--ink) url("../assets/video/hero-daylight-wall-poster.jpg") center / cover no-repeat; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  /* No-JS mobile: swap the dead burger for the native details/summary menu. */
  html:not(.js) .nav-burger { display: none; }
  html:not(.js) .nav-fallback { display: block; }

  .duo, .mazama-grid, .bath-grid, .kitchen-grid, .walls-extra,
  .start-grid, .faq-grid, .samples-note, .fresco-row { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .faq-figure, .kitchen-texture { max-width: 420px; }
  .duo-b { margin-top: 0; }
  .mz-tall { grid-row: auto; }
  .kitchen-hero { order: 2; }
  .field-cards { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .member img { max-width: 420px; }

  .specimens { columns: 2; }

  .strip { grid-auto-columns: 82vw; }
  .bath-second { max-width: 100%; }

  .tx-side { top: 4.6rem; }
  .tx-caption { display: none; }
  /* Round 3: the handle is a 52px circle riding the seam's 0-width left edge
     (calc(var(--t,0) * 100%)); at t=0/t=1 that puts the seam flush with the
     viewport edge and half the circle off-screen. The seam LINE may still
     touch the true edges; only the handle's own travel is inset by its half
     width (26px). Since .tx-handle's containing block is .tx-seam (already
     offset by --t), the extra "left" here is the DELTA between the clamped
     absolute position and the seam's own position, not the absolute position
     itself: 0 in the middle of the travel (handle rides the seam exactly),
     and it only pulls the handle inward once the seam gets within 26px of
     either edge. Relies on .tx-stage being full-bleed with the viewport at
     this breakpoint (no side padding), confirmed live at 390px. */
  .tx-handle {
    width: 52px; height: 52px;
    left: calc(clamp(26px, calc(var(--t, 0) * 100vw), calc(100vw - 26px)) - calc(var(--t, 0) * 100vw));
  }
  html.js-anim .tx-track { height: 340vh; }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .specimens { columns: 3; }
}
