/* Aeris v5: page styles. The engine (scrollcraft.css/js) is untouched; this file
   themes it with tokens and styles our own markup only. */
:root {
  --sc-canvas: #f6f1e8; /* very light cream, a hint of beige (owner, 23 Sep) */
  --sc-surface: #efe7da;
  --sc-ink: #1c1a17;
  --sc-ink-soft: #655c51;
  --sc-accent: #1c1a17; /* black is the accent (Johnny: traditional black accents) */
  --sc-accent-ink: #f6f1e8;
  --sc-font-display: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-text: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sc-font-mono: "Martian Mono", ui-monospace, monospace;
  --serif: "Spectral", Georgia, serif;
  --oak: #c9ae8a;
  --oak-dark: #a4835a;
  --scent: #9a7646;
  --paper: #fbf8f2;
  --line: #e3d9ca;
  --sc-shadow-color: 35 30% 30%;
  --sc-edge: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --bar-h: 64px;
}
.sc-grain {
  opacity: 0.03;
}
[data-sc-progress] {
  background: var(--oak-dark);
  height: 2px;
}
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
}
.sc-display em {
  letter-spacing: -0.01em;
}

/* ---- header ------------------------------------------------------------- */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  background: color-mix(in oklab, var(--sc-canvas) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid color-mix(in oklab, var(--oak) 45%, transparent);
}
.bar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--sc-ink);
}
.bar__brand img {
  height: 26px;
  width: auto;
}
.bar__brand span {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding-left: 0.7rem;
  border-left: 1px solid var(--oak);
}
.bar__nav {
  margin-left: auto;
  display: flex;
  gap: clamp(0.75rem, 1.8vw, 1.6rem);
  font-size: 0.92rem;
}
.bar__nav a {
  text-decoration: none;
  color: var(--sc-ink-soft);
}
.bar__nav a:hover,
.bar__nav a[aria-current="page"] {
  color: var(--sc-ink);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--sc-ink);
  color: var(--sc-canvas);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow:
    0 1px 2px rgba(40, 30, 20, 0.18),
    0 6px 16px -6px rgba(40, 30, 20, 0.35);
  transition:
    transform var(--sc-d-fast) var(--sc-ease-out),
    background var(--sc-d-fast);
}
.btn:hover {
  background: #000;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--sc-ink);
  box-shadow: inset 0 0 0 1px var(--sc-ink);
}
.btn--ghost:hover {
  background: var(--sc-ink);
  color: var(--sc-canvas);
}
.bar .btn {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .bar__nav {
    display: none;
  }
  .bar .btn {
    margin-left: auto;
  }
  .bar__brand span {
    display: none;
  }
}

/* ---- the thread: the scent line's record, and the room plan (desktop) ---- */
.thread {
  position: fixed;
  left: clamp(10px, 1.4vw, 22px);
  top: 50%;
  translate: 0 -50%;
  z-index: 65;
  height: min(62vh, 520px);
  width: 14px;
}
.thread__line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: color-mix(in oklab, var(--oak) 55%, transparent);
}
.thread__fill {
  position: absolute;
  left: 6px;
  top: 0;
  width: 1.5px;
  height: 100%;
  background: var(--scent);
  transform-origin: 0 0;
  transform: scaleY(var(--thread, 0));
}
.thread ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}
.thread li {
  position: absolute;
  left: 0;
  translate: 0 -50%;
}
.thread a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--sc-ink-soft);
  font-size: 0.72rem;
  font-family: var(--sc-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.thread a::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sc-canvas);
  box-shadow: inset 0 0 0 1.5px var(--oak);
  flex: none;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}
.thread a.on::before {
  background: var(--scent);
  box-shadow: inset 0 0 0 1.5px var(--scent);
}
.thread a span {
  opacity: 0;
  translate: -4px 0;
  transition:
    opacity 0.25s,
    translate 0.25s;
  white-space: nowrap;
  background: color-mix(in oklab, var(--sc-canvas) 88%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
}
.thread:hover a span,
.thread a:focus-visible span {
  opacity: 1;
  translate: 0 0;
}
.thread a.now::before {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--scent) 25%, transparent);
}
@media (max-width: 860px) {
  .thread {
    display: none;
  }
}

/* ---- a full-bleed photographic "frame" that covers the stage like object-fit: cover,
   so planes and the scent line share one coordinate system ---------------- */
.frame {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  aspect-ratio: var(--ar);
  width: max(100vw, 100svh * var(--ar));
}
.frame > img,
.frame > svg,
.frame > .plane {
  position: absolute;
  top: 0;
  height: 100%;
}
.frame > img.fill,
.frame > svg {
  left: 0;
  width: 100%;
}
.scentpath,
.scentglow,
.scentbloom {
  fill: none;
  stroke: var(--scent);
  stroke-width: 2.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - clamp(0, (var(--sc-p, 0) - var(--a, 0)) / (var(--b, 1) - var(--a, 0)), 1));
}
.scentdot {
  fill: var(--scent);
  opacity: clamp(0, (var(--sc-p, 0) - var(--b, 1)) * 20, 1);
}
@media (prefers-reduced-motion: reduce) {
  .scentpath,
  .scentglow,
  .scentbloom {
    stroke-dashoffset: 0;
  }
  .scentdot {
    opacity: 1;
  }
}

/* ---- the scent line: A "Glow", picked by Gennaro (review batch 1, R4) ----------------
   v6 A was a pale honey core that washed into the cream. It now pops the way B's ink dots did,
   without B's grain: a deep amber core carries the contrast, a warm halo carries the glow, and a
   wide faint outer bloom lifts it off the photograph. Three strokes of one path (the two halos
   are clones made in site.js), so it stays one continuous, smooth line at any size. */
.scentglow {
  stroke: rgba(236, 178, 92, 0.5);
  stroke-width: 13;
}
.scentbloom {
  stroke: rgba(240, 196, 120, 0.2);
  stroke-width: 30;
}
.scentpath {
  stroke: #9a5b17;
  stroke-width: 2.6;
}
.scentdot {
  fill: #9a5b17;
  stroke: rgba(236, 178, 92, 0.6);
  stroke-width: 12;
  paint-order: stroke;
  vector-effect: non-scaling-stroke;
}
/* batch 2 (R5, R7): the line is drawn in the SVG's own units. With vector-effect: non-scaling-stroke,
   Chrome lays the dash out in screen pixels, so how much of the line showed depended on the screen
   size: on a 2560 px screen the closet line stopped part-way down the tube while the dot was already
   on screen. site.js sets --u (screen px per SVG unit, inverted) on each SVG, so the widths still
   read as 2.6 / 13 / 30 px while the dash is exact on every screen. */
.scentpath,
.scentglow,
.scentbloom {
  vector-effect: none;
}
.scentglow {
  stroke-width: calc(var(--u, 1) * 13px);
}
.scentbloom {
  stroke-width: calc(var(--u, 1) * 30px);
}
.scentpath {
  stroke-width: calc(var(--u, 1) * 2.6px);
}
.thread__fill {
  background: #9a5b17;
  box-shadow: 0 0 7px 1px rgba(236, 178, 92, 0.8);
}
.thread a.on::before {
  background: #9a5b17;
  box-shadow:
    inset 0 0 0 1.5px #9a5b17,
    0 0 9px rgba(236, 178, 92, 0.85);
}
.route i {
  background: #9a5b17;
  box-shadow: 0 0 6px rgba(236, 178, 92, 0.9);
}

/* ---- act 1: spa (layered) ------------------------------------------------ */
.spa .sc-stage {
  background: #d9d0c4;
}
.spa .frame {
  --ar: 2720 / 1530;
}
.spa .plate {
  transform-origin: 62% 55%;
  transform: scale(calc(1 + var(--sc-p, 0) * 0.035));
}
/* batch 1 (R1): the plume. It rides the plate (same scroll zoom, same origin), so the vent and
   its smoke never part. Inside, .plume turns the frame so the slot line is level; each copy is
   turned back (so the picture is untouched) and then only skewed and stretched about the slot
   line itself. Skew and stretch about a line leave that line fixed, so the roots stay on the
   vent while the tendrils sway and reach out of it. Nothing translates. */
.spa .plumes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 62% 55%;
  transform: scale(calc(1 + var(--sc-p, 0) * 0.035));
}
.spa .plume {
  position: absolute;
  inset: 0;
  transform-origin: var(--ox) var(--oy);
  transform: rotate(var(--ang));
}
.spa .plume .pl {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: var(--ox) var(--oy);
  transform: rotate(calc(-1 * var(--ang)));
  will-change: transform;
}
/* batch 2 (R1): the fitted spa mist stays as a soft base; the visible motion now comes from the
   lobby-method .smoke on the same slot (below). pl2/pl3 are no longer made: three copies of one
   image at one position only blurred into each other, which is why the owner saw no movement. */
.spa .plume .pl1 {
  opacity: 0.45;
  animation: sway1 6.4s ease-in-out infinite alternate;
}
.spa .plume .pl2 {
  opacity: 0.46;
  animation: sway2 8.6s ease-in-out -3.1s infinite alternate;
}
/* the third copy carries the flow: soft bands of density travel down the tendrils, away from the slot */
.spa .plume .pl3 {
  opacity: 0.5;
  animation:
    sway3 5.2s ease-in-out -1.7s infinite alternate,
    flow 2.8s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 50%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 50%, #000 100%);
  -webkit-mask-size: 100% 9%;
  mask-size: 100% 9%;
}
@keyframes sway1 {
  from {
    transform: skewX(-3.5deg) scaleY(0.95) rotate(calc(-1 * var(--ang)));
  }
  to {
    transform: skewX(3deg) scaleY(1.05) rotate(calc(-1 * var(--ang)));
  }
}
@keyframes sway2 {
  from {
    transform: skewX(4deg) scaleY(1.08) rotate(calc(-1 * var(--ang)));
  }
  to {
    transform: skewX(-3deg) scaleY(0.97) rotate(calc(-1 * var(--ang)));
  }
}
@keyframes sway3 {
  from {
    transform: skewX(-2deg) scaleY(1.02) rotate(calc(-1 * var(--ang)));
  }
  to {
    transform: skewX(2.6deg) scaleY(1.14) rotate(calc(-1 * var(--ang)));
  }
}
@keyframes flow {
  from {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
  to {
    -webkit-mask-position: 0 9%;
    mask-position: 0 9%;
  }
}
@keyframes breathe {
  from {
    transform: skewX(-3deg) scaleY(0.95);
  }
  to {
    transform: skewX(3deg) scaleY(1.06);
  }
}

/* ---- batch 2 (R1, R8): one smoke for every vent, the lobby method ------------------------
   The lobby is the standard (owner: "utterly fantastic"). A .smoke is rooted on the vent line:
   left/top = the line's start, width = its length, rotated to its angle. Inside, copies of the
   lobby's own mist sprite (made in site.js) hang from that line, each offset along it, each
   waving on its own clock; one carries bands of density travelling away from the vent. They
   only skew and stretch about the vent line, so the smoke never leaves the vent.
   --lean tips the tendrils (the throw direction), --sy stretches them for a small vent, and
   --emit (rooms only, set by site.js) lets the smoke come out of the vent as the room passes. */
.smoke {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: 0;
  transform-origin: 0 0;
  transform: rotate(var(--rot, 0deg));
  pointer-events: none;
  z-index: 2;
}
.smoke .smin {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transform-origin: 50% 0;
  transform: scaleY(var(--emit, 1));
  opacity: calc(0.15 + var(--emit, 1) * 0.85);
}
.smoke .sm {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  max-width: none;
  margin-top: -0.9%;
  transform-origin: 50% 3%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.smoke .sm1 {
  opacity: 0.72;
  animation: smw1 5.4s ease-in-out infinite alternate;
}
.smoke .sm2 {
  left: -8%;
  opacity: 0.56;
  animation: smw2 7.2s ease-in-out -2.4s infinite alternate;
}
.smoke .sm3 {
  left: 7%;
  opacity: 0.5;
  animation:
    smw3 6.2s ease-in-out -4.1s infinite alternate,
    smflow 2.4s linear infinite;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.15) 50%, #000 100%);
  mask-image:
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.15) 50%, #000 100%);
  -webkit-mask-size:
    100% 100%,
    100% 20%;
  mask-size:
    100% 100%,
    100% 20%;
  -webkit-mask-repeat: no-repeat, repeat;
  mask-repeat: no-repeat, repeat;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.smoke .sm4 {
  left: -3%;
  opacity: 0.4;
  animation: smw2 9s ease-in-out -5.2s infinite alternate-reverse;
}
@keyframes smw1 {
  from {
    transform: skewX(calc(var(--lean, 0deg) - 5deg)) scaleY(calc(var(--sy, 1) * 0.9));
  }
  to {
    transform: skewX(calc(var(--lean, 0deg) + 4.5deg)) scaleY(calc(var(--sy, 1) * 1.1));
  }
}
@keyframes smw2 {
  from {
    transform: skewX(calc(var(--lean, 0deg) + 5.5deg)) scaleY(calc(var(--sy, 1) * 1.1)) scaleX(-1);
  }
  to {
    transform: skewX(calc(var(--lean, 0deg) - 4deg)) scaleY(calc(var(--sy, 1) * 0.94)) scaleX(-1);
  }
}
@keyframes smw3 {
  from {
    transform: skewX(calc(var(--lean, 0deg) - 3deg)) scaleY(calc(var(--sy, 1) * 1));
  }
  to {
    transform: skewX(calc(var(--lean, 0deg) + 4deg)) scaleY(calc(var(--sy, 1) * 1.2));
  }
}
/* one tile of the band mask per cycle (tile 20% -> position 25%), so the flow never jumps */
@keyframes smflow {
  from {
    -webkit-mask-position:
      0 0,
      0 0;
    mask-position:
      0 0,
      0 0;
  }
  to {
    -webkit-mask-position:
      0 0,
      0 25%;
    mask-position:
      0 0,
      0 25%;
  }
}
.spa .subject {
  left: 0;
  width: 100%;
  transform-origin: 79% 95.4%;
  transform: scale(calc(1 + var(--sc-p, 0) * 0.055)) translateX(calc(var(--sc-p, 0) * -1%));
}
.spa .wall {
  left: -53.57%;
  width: 107.13%;
  transform: translateX(calc(var(--sc-p, 0) * var(--sc-p, 0) * 40%));
}
.spa .wall-r {
  left: 93.53%;
  width: 12.94%;
  transform: translateX(calc(var(--sc-p, 0) * var(--sc-p, 0) * -62%));
}
.spa .hero-copy {
  position: absolute;
  z-index: 20;
  left: clamp(2.5rem, 6vw, 6rem);
  bottom: clamp(3rem, 14vh, 9rem);
  max-width: min(34rem, 40vw);
}
.spa .hero-copy h1 {
  font-size: clamp(2.6rem, 1.6rem + 3.6vw, 5.4rem);
}
.spa .hero-copy p {
  margin-top: 1.1rem;
  color: #3b352e;
  font-size: var(--sc-t-lg);
  line-height: 1.45;
  max-width: 30ch;
}
.spa .hero-copy .sc-label {
  display: block;
  margin-bottom: 1.2rem;
  color: #4d463d;
}
.spa .phone {
  display: none;
}
/* v6 (item 2): the phone hero gets its own sliding wall. It waits just off the left edge and
   crosses the room as the pin runs, the same door move as desktop, closing on the cut to the lobby. */
.spa .phone .wall-m {
  left: -341.4%;
  width: 341.4%;
  max-width: none;
  transform: translateX(calc(var(--sc-p, 0) * var(--sc-p, 0) * 29.3%));
  filter: drop-shadow(10px 0 18px rgba(60, 45, 30, 0.22));
}
@media (max-width: 860px) {
  .spa .desk {
    display: none;
  }
  .spa .phone {
    display: block;
  }
  .spa .phone.frame {
    --ar: 1536 / 2752;
  }
  .spa .phone .subject {
    transform-origin: 60% 88%;
  }
  .spa .hero-copy {
    left: 1.25rem;
    right: 1.25rem;
    top: calc(var(--bar-h) + 1.25rem);
    bottom: auto;
    max-width: none;
  }
  .spa .hero-copy h1 {
    font-size: clamp(2.3rem, 9.5vw, 3.2rem);
  }
  .spa .hero-copy p {
    font-size: 1.02rem;
    max-width: 34ch;
  }
}

/* ---- generic act copy ------------------------------------------------------ */
.copy {
  position: absolute;
  z-index: 20;
  max-width: min(36rem, 44vw);
}
.copy h2 {
  font-size: var(--sc-t-3xl);
}
.copy p {
  margin-top: 1rem;
  font-size: var(--sc-t-lg);
  line-height: 1.45;
  color: #3b352e;
  max-width: 34ch;
}
.copy--tl {
  left: clamp(2.5rem, 6vw, 6rem);
  top: calc(var(--bar-h) + clamp(2rem, 8vh, 5rem));
}
.copy--bl {
  left: clamp(2.5rem, 6vw, 6rem);
  bottom: clamp(2.5rem, 10vh, 6rem);
}
.copy--tr {
  right: clamp(2.5rem, 5vw, 5rem);
  top: calc(var(--bar-h) + clamp(2rem, 8vh, 5rem));
  text-align: left;
}
.veil {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.veil--tl {
  background: linear-gradient(
    160deg,
    rgba(246, 241, 232, 0.92) 0%,
    rgba(246, 241, 232, 0.66) 26%,
    rgba(246, 241, 232, 0) 52%
  );
}
.veil--bl {
  background: linear-gradient(
    20deg,
    rgba(246, 241, 232, 0.94) 0%,
    rgba(246, 241, 232, 0.62) 28%,
    rgba(246, 241, 232, 0) 55%
  );
}
/* v6 (item 1): a scrim sized to the copy, not half the frame, so the lobby keeps its depth.
   batch 1 (R3): tighter again and lighter at its edge, so it no longer reads as fog over the left third */
.veil--copy {
  background: radial-gradient(
    ellipse 40% 50% at 14% 86%,
    rgba(246, 241, 232, 0.9) 0%,
    rgba(246, 241, 232, 0.62) 45%,
    rgba(246, 241, 232, 0) 78%
  );
}
@media (max-width: 860px) {
  .copy {
    left: 1.25rem !important;
    right: 1.25rem;
    max-width: none;
  }
  .copy h2 {
    font-size: clamp(2rem, 8.4vw, 2.8rem);
  }
  .copy p {
    font-size: 1.02rem;
  }
  .copy--tr {
    top: calc(var(--bar-h) + 1.25rem);
  }
  .veil--tl,
  .veil--bl {
    background: linear-gradient(
      180deg,
      rgba(246, 241, 232, 0.94) 0%,
      rgba(246, 241, 232, 0.7) 30%,
      rgba(246, 241, 232, 0) 55%
    );
  }
  .veil--bl {
    background: linear-gradient(
      0deg,
      rgba(246, 241, 232, 0.95) 0%,
      rgba(246, 241, 232, 0.7) 30%,
      rgba(246, 241, 232, 0) 55%
    );
  }
  .veil--copy {
    background: linear-gradient(
      0deg,
      rgba(246, 241, 232, 0.92) 0%,
      rgba(246, 241, 232, 0.66) 26%,
      rgba(246, 241, 232, 0) 46%
    );
  }
}

/* ---- act 2 lobby + act 4 vent (scrub) -------------------------------------- */
.clipframe {
  position: absolute;
  inset: 0;
}
.clipframe svg {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  width: max(100vw, 100svh * 16 / 9);
  aspect-ratio: 16 / 9;
  height: auto;
  z-index: 5;
}
@media (max-width: 860px) {
  .clipframe svg.desk-only {
    display: none;
  }
}
/* batch 1 (R2): live smoke on the lobby slot. .lm is laid out in the clip's own pixels (frame 0);
   site.js maps it onto the covered video and moves it with the camera track, frame by frame. */
.lobbymist {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.lobbymist .lm {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: none;
}
.lobbymist .lm.on {
  display: block;
}
/* the desktop slot ends short of the frame's edges: feather the smoke out at its two ends */
.lobbymist .lm--d {
  -webkit-mask-image: linear-gradient(90deg, transparent 10.5%, #000 13.5%, #000 89.5%, transparent 92.5%);
  mask-image: linear-gradient(90deg, transparent 10.5%, #000 13.5%, #000 89.5%, transparent 92.5%);
}
/* each copy is rooted at its own slot line (lobby-mist.webp's root is 3.6% down the image) */
.lobbymist .lp {
  position: absolute;
  height: auto;
  max-width: none;
  transform-origin: 50% 3.6%;
  will-change: transform;
}
.lobbymist .lp1 {
  opacity: 0.66;
  animation: lsway1 5.8s ease-in-out infinite alternate;
}
.lobbymist .lp2 {
  opacity: 0.56;
  animation: lsway2 7.4s ease-in-out -2.6s infinite alternate;
}
.lobbymist .lp3 {
  opacity: 0.46;
  animation:
    lsway3 6.6s ease-in-out -4.1s infinite alternate,
    flow 2.6s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 50%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.2) 50%, #000 100%);
  -webkit-mask-size: 100% 16%;
  mask-size: 100% 16%;
}
.lobbymist .lp4 {
  opacity: 0.36;
  animation: lsway2 9.2s ease-in-out -5.3s infinite alternate-reverse;
}
@keyframes lsway1 {
  from {
    transform: skewX(-4deg) scaleY(0.94);
  }
  to {
    transform: skewX(3.5deg) scaleY(1.07);
  }
}
@keyframes lsway2 {
  from {
    transform: skewX(4.5deg) scaleY(1.08) scaleX(-1);
  }
  to {
    transform: skewX(-3deg) scaleY(0.96) scaleX(-1);
  }
}
@keyframes lsway3 {
  from {
    transform: skewX(-2.5deg) scaleY(1.02);
  }
  to {
    transform: skewX(3deg) scaleY(1.16);
  }
}

/* ---- act 3 home: the rail --------------------------------------------------- */
.home .sc-stage {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--sc-canvas), #f1e9dc);
}
.rail {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding-inline: clamp(2.5rem, 7vw, 7rem) clamp(2.5rem, 7vw, 7rem);
  padding-top: var(--bar-h);
}
.rail__lead,
.rail__note {
  flex: none;
  width: min(30rem, 78vw);
}
/* v6 (item 3): on desktop the first room card waits just past the right edge, so the act opens
   on the headline alone and the cards slide in with the scroll instead of arriving half-cut. */
/* batch 2 (R6): that space is now the home. The line leaves the headline, goes into the house,
   and out toward the three rooms. The house fills the gap exactly (so the first room still waits
   just past the right edge), capped by the stage height on very wide screens. */
.house {
  flex: none;
  margin: 0;
  width: min(30rem, 84vw);
}
.house__img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(60, 45, 30, 0.1),
    0 22px 44px -18px rgba(60, 45, 30, 0.35);
  background: #e8dfd1;
}
.house__img img,
.house__img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: visible;
}
.house figcaption {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--sc-ink-soft);
}
.house figcaption b {
  color: var(--sc-ink);
  font-weight: 500;
}
@media (min-width: 861px) {
  .rail {
    --lead-gap: max(0px, calc(100vw - clamp(2.5rem, 7vw, 7rem) - min(30rem, 78vw) - clamp(1.25rem, 3vw, 3rem) + 24px));
  }
  .house {
    width: max(
      18rem,
      min(calc(var(--lead-gap) - clamp(1.25rem, 3vw, 3rem) - 24px), calc((100svh - var(--bar-h) - 9rem) * 4 / 3))
    );
  }
  .rail__lead {
    position: relative;
  }
  /* the scent carries the eye across that space, from the headline to the first room */
  .rail__thread {
    position: absolute;
    left: calc(100% + 1.5rem);
    width: calc(var(--lead-gap) - 1.5rem);
    top: 38%;
    height: 26%;
    overflow: visible;
  }
}
.rail__thread {
  display: none;
}
@media (min-width: 861px) {
  .rail__thread {
    display: block;
  }
}
.rail__lead h2 {
  font-size: var(--sc-t-3xl);
}
.rail__lead p {
  margin-top: 1rem;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-lg);
  line-height: 1.5;
  max-width: 32ch;
}
.room {
  flex: none;
  width: min(26rem, 64vw);
  margin: 0;
}
.room__img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(60, 45, 30, 0.1),
    0 22px 44px -18px rgba(60, 45, 30, 0.35);
  background: #e8dfd1;
}
.room__img img,
.room__img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* batch 1 (R1, "apply everywhere smoke leaves a vent"): rooted at the grille line (7.6% down the sprite), sway and reach only */
.room__img .vmist {
  position: absolute;
  width: 46%;
  height: auto;
  inset: auto;
  transform-origin: 50% 7.6%;
  animation: breathe 6s ease-in-out infinite alternate;
  pointer-events: none;
}
.room figcaption {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--sc-ink-soft);
}
.room figcaption b {
  color: var(--sc-ink);
  font-weight: 500;
}
.trio {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.2rem;
}
.trio div {
  border-top: 1px solid var(--oak);
  padding-top: 0.8rem;
}
.trio b {
  display: block;
  font-size: 1.15rem;
  font-weight: 500;
}
.trio span {
  color: var(--sc-ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.trio .num {
  font-family: var(--sc-font-mono);
  font-size: 0.78rem;
  color: var(--oak-dark);
  letter-spacing: 0.06em;
}

/* ---- act 5: how it works (pin) --------------------------------------------- */
.how .sc-stage {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: calc(var(--bar-h) + 1rem) clamp(2.5rem, 6vw, 6rem) 2rem;
}
.how__fig {
  position: relative;
}
.how__fig svg {
  width: 100%;
  height: auto;
}
.how h2 {
  font-size: var(--sc-t-2xl);
}
.stages {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.1rem;
}
.stages li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.2rem 0.6rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  opacity: 0.38;
  transition: opacity 0.35s var(--sc-ease-out);
}
.stages li.lit {
  opacity: 1;
}
.stages .n {
  font-family: var(--sc-font-mono);
  font-size: 0.75rem;
  color: var(--oak-dark);
  padding-top: 0.2rem;
}
.stages b {
  font-weight: 500;
}
.stages li > span:not(.n) {
  grid-column: 2;
  color: var(--sc-ink-soft);
  font-size: 0.93rem;
  line-height: 1.45;
}
.stages b {
  grid-column: 2;
}
.stages .n {
  grid-row: 1 / span 2;
}
.dg-svg .ln {
  fill: none;
  stroke: #3a342d;
  stroke-width: 1.25;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dg-svg .ln2 {
  fill: none;
  stroke: #8f8578;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dg-svg .panel {
  fill: rgba(201, 174, 138, 0.14);
}
.dg-svg .flow {
  fill: none;
  stroke: var(--scent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dg-svg .mist {
  fill: none;
  stroke: var(--scent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.dg-svg .dot {
  fill: var(--scent);
}
.dg-svg .tube {
  fill: none;
  stroke: #3a342d;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.dg-svg .qc {
  fill: #3a342d;
  stroke: #3a342d;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dg-svg .tapring {
  fill: none;
  stroke: var(--scent);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.dg-svg .tapring2 {
  fill: none;
  stroke: var(--scent);
  stroke-width: 1;
  opacity: 0.5;
  vector-effect: non-scaling-stroke;
}
.dg-svg .led {
  fill: #2f6fb5;
}
.dg-svg .ledring {
  fill: none;
  stroke: #2f6fb5;
  stroke-width: 1;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}
.dg-svg .mark {
  fill: none;
  stroke: #3a342d;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.dg-svg .leader {
  fill: none;
  stroke: #8f8578;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.dg-svg text {
  fill: #6b6257;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dg-svg .lbl {
  display: none;
}
.dg-svg .dg {
  transition: opacity 0.5s var(--sc-ease-out);
}
.dg-svg .dg.off {
  opacity: 0.12;
}
.how__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.4rem;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--sc-ink-soft);
}
.how__facts b {
  display: block;
  color: var(--sc-ink);
  font-weight: 500;
  font-size: 0.92rem;
}
@media (max-width: 860px) {
  .stages li > span:not(.n) {
    display: none;
  }
  .how .sc-stage {
    grid-template-columns: 1fr;
    align-content: start;
    padding: calc(var(--bar-h) + 0.75rem) 1.25rem 1rem;
    gap: 0.5rem;
  }
  .how h2 {
    font-size: 1.7rem;
  }
  .how__facts {
    display: none;
  }
  .stages li {
    padding: 0.45rem 0;
  }
}

/* ---- act 6: authored silence ------------------------------------------------ */
.silence {
  position: relative;
  height: 70vh;
  background: var(--sc-canvas);
  overflow: hidden;
}
.silence__oak {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 10px;
  translate: -50% 0;
  background: url("web/oak.webp") center / 400px auto;
  opacity: 0.55;
  border-radius: 2px;
}
.silence svg {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 40px;
  translate: -50% 0;
  overflow: visible;
}

/* ---- act 7: the source (peak) ---------------------------------------------- */
.source .sc-stage {
  background: #efe6d8;
}
.source .frame {
  --ar: 2752 / 1536;
}
.source .closet {
  transform-origin: 48.3% 42.4%;
  transform: scale(calc(1 + var(--sc-p, 0) * 0.14));
}
.source .door {
  left: 0;
  width: 100%;
  transform-origin: 50% 53%;
  transform: scale(calc(1 + var(--sc-p, 0) * var(--sc-p, 0) * 2.6));
}
.source svg {
  transform-origin: 48.3% 42.4%;
  transform: scale(calc(1 + var(--sc-p, 0) * 0.14));
}
.source .copy {
  right: clamp(2rem, 4vw, 4rem);
  left: auto;
  bottom: clamp(6rem, 22vh, 14rem);
  max-width: min(30rem, 33vw);
}
.source .copy h2 {
  font-size: var(--sc-t-3xl);
}
.source .copy .sc-label {
  display: block;
  margin-bottom: 1rem;
  color: #4d463d;
}
.source .copy p {
  color: #2e2a25;
}
.source .copy .btn {
  margin-top: 1.4rem;
}
.source .phone {
  display: none;
}
@media (max-width: 860px) {
  .source .desk {
    display: none;
  }
  .source .phone {
    display: block;
  }
  .source .phone.frame {
    --ar: 1536 / 2752;
  }
  .source .phone .closet,
  .source .phone svg {
    transform-origin: 43% 42%;
  }
  .source .copy {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.5rem;
    max-width: none;
    background: var(--sc-canvas);
    padding: 1rem 1.1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -18px rgba(60, 45, 30, 0.45);
  }
  .source .copy h2 {
    font-size: 2rem;
  }
}

/* ---- flow sections ------------------------------------------------------------- */
.sect {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 9rem);
}
.wrap {
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 6vw, 6rem);
}
.kicker {
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--oak-dark);
}
.h2 {
  font-size: var(--sc-t-3xl);
  margin-top: 0.8rem;
}
.lede {
  margin-top: 1rem;
  font-size: var(--sc-t-lg);
  line-height: 1.5;
  color: var(--sc-ink-soft);
  max-width: 44ch;
}
.oakrule {
  height: 10px;
  border-radius: 2px;
  background: url("web/oak.webp") center / 800px auto;
  opacity: 0.9;
}

/* unit */
.unit {
  background: var(--paper);
}
.unit__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: 2.5rem;
}
.unit__hero {
  position: relative;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px -30px rgba(60, 45, 30, 0.4);
}
.unit__hero img {
  width: 100%;
  height: auto;
}
.hot {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  translate: -50% -50%;
  border: 0;
  background: var(--sc-ink);
  color: var(--sc-canvas);
  font: 500 0.75rem var(--sc-font-mono);
  cursor: pointer;
  box-shadow: 0 0 0 5px rgba(28, 26, 23, 0.12);
}
.hot[aria-pressed="true"] {
  background: var(--scent);
  box-shadow: 0 0 0 6px rgba(154, 118, 70, 0.25);
}
/* v6 (item 4): six markers, each a dot on the part and a leader to its badge */
.unit__hero .leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.leaders line {
  stroke: var(--sc-ink);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}
.leaders circle {
  fill: var(--sc-canvas);
  stroke: var(--sc-ink);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.leaders g.on line {
  stroke: var(--scent);
  opacity: 1;
}
.leaders g.on circle {
  fill: var(--scent);
  stroke: var(--scent);
}
@media (max-width: 860px) {
  .hot {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
    box-shadow: 0 0 0 3px rgba(28, 26, 23, 0.12);
  }
}
.parts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.parts li {
  border-top: 1px solid var(--line);
}
.parts button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.2rem 0.6rem;
  width: 100%;
  padding: 0.95rem 0;
}
.parts button:focus-visible {
  outline: 2px solid var(--sc-ink);
  outline-offset: 3px;
}
.parts .n {
  font-family: var(--sc-font-mono);
  font-size: 0.75rem;
  color: var(--oak-dark);
  padding-top: 0.25rem;
}
.parts b {
  font-weight: 500;
  font-size: 1.05rem;
}
.parts .d {
  grid-column: 2;
  color: var(--sc-ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
  display: none;
}
.parts li.on .d {
  display: block;
}
.parts .ph {
  grid-column: 2;
  margin-top: 0.6rem;
  display: none;
  border-radius: 10px;
  overflow: hidden;
  max-width: 22rem;
}
.parts li.on .ph {
  display: block;
}
.build {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 3rem;
}
.build figure {
  margin: 0;
}
.build img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.build figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--sc-ink-soft);
}
.build figcaption b {
  display: block;
  color: var(--sc-ink);
  font-weight: 500;
}
.kit {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
}
.kit img {
  border-radius: 12px;
}
.kit ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.95rem;
}
.kit li {
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
@media (max-width: 860px) {
  .unit__grid,
  .kit {
    grid-template-columns: 1fr;
  }
  .build {
    grid-template-columns: 1fr;
  }
  .kit ul {
    columns: 1;
  }
}

/* sizes (pin + count) */
.sizes .sc-stage {
  background: linear-gradient(180deg, #f2ebe0, #ece2d3);
  display: grid;
  align-content: center;
  justify-items: center;
  padding-top: var(--bar-h);
}
.sizes__img {
  width: min(92vw, 1500px, calc((100svh - var(--bar-h) - 300px) * 1.7778));
  margin: 0.6rem auto 0;
}
@media (max-width: 860px) {
  .sizes__img {
    width: min(92vw, calc((100svh - var(--bar-h) - 330px) * 0.75));
  }
}
.sizes__img img {
  width: 100%;
  height: auto;
}
.sizes .top {
  text-align: center;
}
.sizes .top h2 {
  font-size: var(--sc-t-2xl);
}
.skus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(92vw, 1200px);
  margin-top: 0.5rem;
  text-align: center;
}
.skus div {
  padding: 0.6rem 0.5rem;
}
.skus b {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
}
.skus .w {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.skus div > span:not(.w) {
  display: block;
  color: var(--sc-ink-soft);
  font-size: 0.88rem;
}
.skus .w {
  display: block;
}
.skus .w span {
  font: inherit;
  color: inherit;
}
.sizes-m {
  display: none;
}
/* v6 (items 31, 38): coverage is the big number; each size links to its own product page */
.sizes {
  position: relative;
}
.sizes > .anchor {
  position: absolute;
  left: 0;
  top: 23vh;
  width: 1px;
  height: 1px;
}
.skus .buy {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: var(--sc-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.skus .buy:hover {
  color: #000;
}
.tbc {
  font-style: italic;
  color: var(--sc-ink-soft);
}
/* v6: the model table scrolls inside its own box on a phone instead of widening the page */
.tablewrap {
  margin-top: 1.8rem;
  overflow-x: auto;
}
.tablewrap .table {
  margin-top: 0;
}
@media (max-width: 860px) {
  .tablewrap .table {
    min-width: 620px;
  }
}
.form .privacy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--sc-ink-soft);
}
@media (max-width: 860px) {
  .sizes-d {
    display: none;
  }
  .sizes-m {
    display: block;
  }
  .skus .w {
    font-size: 1.3rem;
  }
  .skus div > span:not(.w) {
    font-size: 0.78rem;
  }
  .skus .buy {
    font-size: 0.76rem;
    min-height: 32px;
    display: inline-flex;
    align-items: flex-end;
  }
}

/* oils */
.oils {
  background: var(--sc-canvas);
}
.oils__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: 2rem;
}
.oils figure {
  margin: 0;
}
.oils img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.chips span {
  border: 1px solid var(--oak);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.88rem;
}
.oils__boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (max-width: 860px) {
  .oils__grid {
    grid-template-columns: 1fr;
  }
}

/* close (pin): two doors and one button */
.close .sc-stage {
  background: var(--sc-canvas);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: var(--bar-h);
}
.close__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: 1.5rem clamp(2.5rem, 6vw, 6rem);
}
.close__ask h2 {
  font-size: var(--sc-t-3xl);
}
.close__ask p {
  margin: 1rem 0 1.4rem;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-lg);
  max-width: 26ch;
}
.doorlink {
  display: block;
  text-decoration: none;
  color: var(--sc-ink);
}
.doorlink__img {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px #d6bf9c,
    0 0 0 11px #b99a70,
    0 30px 50px -30px rgba(60, 45, 30, 0.5);
}
.doorlink__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--sc-ease-out);
}
.doorlink:hover .doorlink__img img {
  transform: scale(1.04);
}
.doorlink b {
  display: block;
  margin-top: 1.4rem;
  font-size: 1.25rem;
  font-weight: 500;
}
.doorlink span {
  color: var(--sc-ink-soft);
  font-size: 0.95rem;
}
.route {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}
.route a {
  color: inherit;
  text-decoration: none;
}
.route a:hover {
  color: var(--sc-ink);
}
.route i {
  width: 22px;
  height: 1.5px;
  background: var(--scent);
  display: inline-block;
}
@media (max-width: 860px) {
  .close__main {
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .close__ask {
    grid-column: 1 / -1;
  }
  .close__ask h2 {
    font-size: 2rem;
  }
  .doorlink__img {
    aspect-ratio: 4 / 5;
  }
}

/* footer */
.foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem clamp(1.25rem, 6vw, 6rem) 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--sc-ink-soft);
  background: var(--sc-canvas);
}
.foot a {
  color: var(--sc-ink);
}
.foot .brand b {
  color: var(--sc-ink);
  font-weight: 500;
}
.foot details {
  min-width: 14rem;
}
.foot summary {
  cursor: pointer;
  color: var(--sc-ink);
  list-style: none;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.foot summary::after {
  content: "+";
  font-family: var(--sc-font-mono);
}
.foot details[open] summary::after {
  content: "–";
}
.foot details ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}
.foot details li {
  padding: 0.25rem 0;
}
.foot .spacer {
  margin-left: auto;
}

/* trade pages (simple, same look, black accent) */
.tp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: 86vh;
  padding: calc(var(--bar-h) + 2rem) clamp(1.25rem, 6vw, 6rem) clamp(2rem, 6vh, 4rem);
}
.tp-hero > img {
  order: 2;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 30px 60px -36px rgba(60, 45, 30, 0.5);
}
.tp-hero > div {
  order: 1;
}
.tp-hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.6rem);
}
.tp-hero p {
  margin-top: 1rem;
  font-size: var(--sc-t-lg);
  color: #3b352e;
  max-width: 40ch;
  line-height: 1.5;
}
@media (max-width: 860px) {
  .tp-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .tp-hero > img {
    order: 1;
    height: 46vh;
  }
  .tp-hero > div {
    order: 2;
  }
}
.facts3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}
.facts3 div {
  border-top: 2px solid var(--sc-ink);
  padding-top: 0.9rem;
}
.facts3 .big {
  display: block;
  margin-bottom: 0.35rem;
  font-size: var(--sc-t-2xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.facts3 b {
  display: block;
  font-weight: 500;
  margin-top: 0.3rem;
}
.facts3 span {
  color: var(--sc-ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.split2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.split2 img {
  border-radius: 14px;
  width: 100%;
  height: auto;
}
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
  counter-reset: s;
}
.steps3 article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.steps3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.steps3 div {
  padding: 1rem 1.1rem 1.2rem;
}
.steps3 b {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
}
.steps3 p {
  margin: 0.4rem 0 0;
  color: var(--sc-ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}
.steps3 small {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--oak-dark);
  text-transform: uppercase;
}
.types3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.types3 article {
  border-top: 2px solid var(--sc-ink);
  padding-top: 1rem;
}
.types3 svg {
  width: 100%;
  max-width: 220px;
  height: auto;
  color: var(--sc-ink);
}
.types3 b {
  display: block;
  margin-top: 0.6rem;
  font-weight: 500;
}
.types3 p {
  color: var(--sc-ink-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}
.badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.badges div {
  border: 1px solid var(--sc-ink);
  border-radius: 12px;
  padding: 1rem;
  background: var(--paper);
}
.badges b {
  display: block;
  font-weight: 500;
}
.badges small {
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--oak-dark);
  text-transform: uppercase;
}
.badges p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--sc-ink-soft);
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.8rem;
  font-size: 0.95rem;
}
.table th,
.table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table th {
  font-weight: 500;
  font-size: 0.8rem;
  font-family: var(--sc-font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--oak-dark);
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--sc-ink-soft);
}
.form input,
.form select,
.form textarea {
  border: 1px solid #cfc3b1;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  min-height: 44px;
}
.form .full {
  grid-column: 1 / -1;
}
.form .note {
  font-size: 0.82rem;
  color: var(--sc-ink-soft);
}
.form .done {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 10px;
  background: #efe6d6;
}
.form.sent .done {
  display: block;
}
.form .fail {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: 10px;
  background: #f3dfd3;
}
.form.failed .fail {
  display: block;
}
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.soon {
  margin-top: 2.5rem;
  border: 1px dashed var(--oak-dark);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.soon b {
  font-weight: 500;
}
@media (max-width: 860px) {
  .facts3,
  .steps3,
  .types3,
  .split2 {
    grid-template-columns: 1fr;
  }
  .badges {
    grid-template-columns: 1fr 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .table {
    font-size: 0.82rem;
  }
}

/* reduced motion: every stage stays complete */
@media (prefers-reduced-motion: reduce) {
  .room__img .vmist,
  .spa .plume .pl,
  .lobbymist .lp {
    animation: none;
  }
  .spa .plume .pl2,
  .spa .plume .pl3,
  .lobbymist .lp3,
  .lobbymist .lp4 {
    display: none;
  }
  .spa .plume .pl1 {
    opacity: 0.9;
  }
  .lobbymist .lp2 {
    transform: scaleX(-1);
  }
  /* batch 2: every vent's smoke holds still, fully out, two copies */
  .smoke .sm {
    animation: none;
    transform: skewX(var(--lean, 0deg)) scaleY(var(--sy, 1));
  }
  .smoke .sm2 {
    transform: skewX(var(--lean, 0deg)) scaleY(var(--sy, 1)) scaleX(-1);
  }
  .smoke .sm3,
  .smoke .sm4 {
    display: none;
  }
  .smoke .smin {
    transform: none;
    opacity: 1;
  }
  .spa .plate,
  .spa .subject,
  .spa .wall,
  .spa .wall-r,
  .source .closet,
  .source svg {
    transform: none !important;
  }
  .source .door,
  .spa .phone .wall-m {
    display: none;
  }
  /* v6 (item 7): with motion off the closet does not zoom, so the copy sits over the darker door jamb; give it the panel phones already use */
  .source .copy {
    background: rgba(246, 241, 232, 0.9);
    padding: 1.1rem 1.3rem 1.3rem;
    border-radius: 14px;
    box-shadow: 0 10px 30px -18px rgba(60, 45, 30, 0.45);
  }
}

/* ==== Owner review, batch 3 (R10 to R13, OWNER-REVIEW-v6.md) ============================== */

/* R10 · How it works: the part coming into focus glows, in the scent line's honey. site.js builds a
   halo for each diagram group from its own strokes (a wide faint bloom under a warm halo), plus a
   soft pool of light behind the compact parts; only the newest lit step carries it. */
.dg-halo {
  opacity: 0;
  transition: opacity 0.6s var(--sc-ease-out);
  pointer-events: none;
}
.dg-halo.on {
  opacity: 1;
}
.dg-halo .hb,
.dg-halo .hg {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  vector-effect: non-scaling-stroke;
}
.dg-halo .hb {
  stroke: rgba(240, 196, 120, 0.26);
  stroke-width: 20px;
}
.dg-halo .hg {
  stroke: rgba(236, 178, 92, 0.62);
  stroke-width: 7px;
}
.dg-halo .pool {
  fill: url(#dgPool);
}
.dg-svg .dg .ln,
.dg-svg .dg .ln2,
.dg-svg .dg .tube {
  transition: stroke 0.5s var(--sc-ease-out);
}
.dg-svg .dg.focus .ln,
.dg-svg .dg.focus .tube {
  stroke: #9a5b17;
}
.dg-svg .dg.focus .ln2 {
  stroke: #b98a4e;
}
.dg-svg .dg.focus .qc {
  fill: #9a5b17;
  stroke: #9a5b17;
}
.stages li {
  position: relative;
  transition:
    opacity 0.35s var(--sc-ease-out),
    background-color 0.5s;
}
.stages li.now {
  background: linear-gradient(90deg, rgba(240, 196, 120, 0.32), rgba(240, 196, 120, 0) 80%);
}
.stages li.now::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 3px;
  border-radius: 2px;
  background: #9a5b17;
  box-shadow: 0 0 10px 1px rgba(236, 178, 92, 0.85);
}
.stages li.now .n {
  color: #9a5b17;
}

/* R11 · The unit: the numbers pop out with the photo (--pop, per badge, from site.js), then the scroll
   walks through them; the open one glows like the scent line. Clicking still opens any part. */
.hot {
  scale: calc(0.3 + var(--pop, 1) * 0.7);
  opacity: var(--pop, 1);
  transition:
    background 0.35s,
    box-shadow 0.35s,
    color 0.35s;
}
.hot[aria-pressed="true"] {
  background: #9a5b17;
  color: #fff8ec;
  scale: calc((0.3 + var(--pop, 1) * 0.7) * 1.14);
  box-shadow:
    0 0 0 5px rgba(236, 178, 92, 0.45),
    0 0 22px 6px rgba(240, 196, 120, 0.55);
}
.leaders g {
  opacity: var(--pop, 1);
}
.leaders g.on line {
  stroke: #9a5b17;
  stroke-width: 2;
  opacity: 1;
}
.leaders g.on circle {
  fill: #9a5b17;
  stroke: rgba(236, 178, 92, 0.6);
  stroke-width: 10;
  paint-order: stroke;
}
.parts {
  align-content: start;
} /* the reserved height (site.js) must not stretch the rows */
.parts li {
  position: relative;
  transition: background-color 0.45s;
}
.parts li.on {
  background: linear-gradient(90deg, rgba(240, 196, 120, 0.26), rgba(240, 196, 120, 0) 75%);
}
.parts li.on::before {
  content: "";
  position: absolute;
  left: -0.8rem;
  top: 1rem;
  height: 1.35rem;
  width: 3px;
  border-radius: 2px;
  background: #9a5b17;
  box-shadow: 0 0 10px 1px rgba(236, 178, 92, 0.85);
}
.parts li.on .n {
  color: #9a5b17;
}
.parts li.on .d,
.parts li.on .ph {
  animation: partIn 0.45s var(--sc-ease-out) both;
}
@keyframes partIn {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}

/* R12 · Oils: a bigger photo that bleeds off the left edge and slides in from the left (--in, site.js) */
@media (min-width: 861px) {
  .oils__grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }
}
.oils .oils__fig {
  margin-left: calc(-1 * (max(0px, (100vw - 86rem) / 2) + clamp(1.25rem, 6vw, 6rem)));
  overflow: hidden;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 30px 60px -36px rgba(60, 45, 30, 0.45);
  translate: calc((1 - var(--in, 1)) * -55%) 0;
  opacity: calc(0.25 + var(--in, 1) * 0.75);
}
.oils .oils__fig img {
  border-radius: 0;
  scale: calc(1.12 - var(--in, 1) * 0.12);
  transform-origin: 30% 50%;
}
@media (max-width: 860px) {
  .oils .oils__fig {
    margin-inline: calc(-1 * clamp(1.25rem, 6vw, 6rem));
    border-radius: 0;
  }
}

/* R13 + R14 · The close: each card is a pocket door. As the close arrives the oak leaf slides
   sideways into the card frame and out of sight (--door, site.js; For Pros first, sliding left;
   Reseller sliding right). The frame clips it, so the panel disappears into the wall. The scene
   behind settles from a slight push-in, and the label comes up once the door is open. Hover and
   the link are unchanged. */
.doorlink__img img {
  scale: calc(1 + (1 - var(--door, 1)) * 0.14);
}
.doorlink__img::after,
.doorlink__img::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(calc(var(--door, 1) * -101%));
}
.doorlink__img::after {
  z-index: 2;
  box-shadow: 10px 0 18px -8px rgba(30, 20, 10, calc(var(--door, 1) * (1 - var(--door, 1)) * 2));
  background:
    linear-gradient(
      90deg,
      rgba(40, 25, 10, 0.2),
      rgba(40, 25, 10, 0) 12%,
      rgba(255, 245, 225, 0.1) 60%,
      rgba(40, 25, 10, 0.14)
    ),
    url("web/oak.webp") center / 900px auto;
}
.doorlink__img::before {
  z-index: 3;
  background:
    radial-gradient(ellipse 4px 15px at 86% 52%, #1c1a17 0 55%, rgba(28, 26, 23, 0.3) 70%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='.7'%3E%3Crect x='14' y='11' width='72' height='50' rx='1' stroke='rgba(60,38,18,.4)'/%3E%3Crect x='14' y='72' width='72' height='50' rx='1' stroke='rgba(60,38,18,.4)'/%3E%3Crect x='15' y='12' width='72' height='50' rx='1' stroke='rgba(255,246,228,.35)'/%3E%3Crect x='15' y='73' width='72' height='50' rx='1' stroke='rgba(255,246,228,.35)'/%3E%3C/g%3E%3C/svg%3E")
      center / 100% 100% no-repeat;
}
.doorlink + .doorlink .doorlink__img::after,
.doorlink + .doorlink .doorlink__img::before {
  transform: translateX(calc(var(--door, 1) * 101%));
}
.doorlink + .doorlink .doorlink__img::after {
  box-shadow: -10px 0 18px -8px rgba(30, 20, 10, calc(var(--door, 1) * (1 - var(--door, 1)) * 2));
}
.doorlink + .doorlink .doorlink__img::before {
  background-position:
    0 0,
    center;
  background-image:
    radial-gradient(ellipse 4px 15px at 14% 52%, #1c1a17 0 55%, rgba(28, 26, 23, 0.3) 70%, transparent 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 133' preserveAspectRatio='none'%3E%3Cg fill='none' stroke-width='.7'%3E%3Crect x='14' y='11' width='72' height='50' rx='1' stroke='rgba(60,38,18,.4)'/%3E%3Crect x='14' y='72' width='72' height='50' rx='1' stroke='rgba(60,38,18,.4)'/%3E%3Crect x='15' y='12' width='72' height='50' rx='1' stroke='rgba(255,246,228,.35)'/%3E%3Crect x='15' y='73' width='72' height='50' rx='1' stroke='rgba(255,246,228,.35)'/%3E%3C/g%3E%3C/svg%3E");
}
.doorlink b,
.doorlink > span {
  display: block;
  opacity: var(--cap, 1);
  translate: 0 calc((1 - var(--cap, 1)) * 12px);
}

@media (prefers-reduced-motion: reduce) {
  .dg-halo {
    display: none;
  }
  .hot,
  .hot[aria-pressed="true"] {
    scale: none;
    opacity: 1;
  }
  .leaders g {
    opacity: 1;
  }
  .parts li.on .d,
  .parts li.on .ph {
    animation: none;
  }
  .oils .oils__fig {
    translate: none;
    opacity: 1;
  }
  .oils .oils__fig img {
    scale: none;
  }
  .doorlink__img::after,
  .doorlink__img::before {
    display: none;
  }
  .doorlink__img img {
    scale: none;
  }
  .doorlink b,
  .doorlink > span {
    opacity: 1;
    translate: none;
  }
}

/* 2 Nov audit: on phones the room rail stops a few pixels past the left edge, which clipped the first letters of the Quiet / Control / Simplicity note. Inset the note's text so it always clears the edge. */
@media (max-width: 860px) {
  .rail__note {
    padding-left: 1.75rem;
  }
}

/* 2 Nov audit: phone menu. The button only shows under 861 px; it opens the header links as a panel under the bar. */
.bar__menu {
  display: none;
}
.bar__nav-extra {
  display: none;
}
@media (max-width: 860px) {
  .bar .btn {
    margin-left: auto;
  }
  .bar__menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -0.5rem;
    padding: 0 11px;
    border: 0;
    background: transparent;
    color: var(--sc-ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bar__menu span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform var(--sc-d-fast) var(--sc-ease-out),
      opacity var(--sc-d-fast);
  }
  .bar.is-open .bar__menu span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .bar.is-open .bar__menu span:nth-child(2) {
    opacity: 0;
  }
  .bar.is-open .bar__menu span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .bar.is-open .bar__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem clamp(1rem, 3vw, 2.5rem) 1rem;
    font-size: 1.05rem;
    background: var(--sc-canvas);
    border-bottom: 1px solid color-mix(in oklab, var(--oak) 45%, transparent);
    box-shadow: 0 14px 28px -18px rgba(40, 30, 20, 0.45);
  }
  .bar.is-open .bar__nav a {
    display: block;
    padding: 0.85rem 0;
    border-top: 1px solid color-mix(in oklab, var(--oak) 30%, transparent);
  }
  .bar.is-open .bar__nav a:first-child {
    border-top: 0;
  }
}
