/* Direct Path Homes plan pages. Theme tokens + the page's own classes.
   Never restyles .sc-stage, .sc-copy or any [data-sc-*] selector. */

:root {
  --sc-canvas:     #f8f5f0;
  --sc-surface:    #ffffff;
  --sc-ink:        #1c1916;
  --sc-ink-soft:   #6b625a;
  --sc-accent:     #9c6b35;
  --sc-accent-ink: #fbf6f0;
  --sc-font-display: "Bitter", Georgia, "Times New Roman", serif;
  --sc-font-text:    "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --sc-font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --sc-shadow-color: 28 18% 16%;

  --paper:  #f8f5f0;
  --paper-2:#efe9e0;
  --slate:  #172532;
  --slate-2:#223547;
  --slate-mid: #3f6484;
  --copper: #9c6b35;
  --copper-light: #d4ad7d;
  --bone:   #f2f5f8;
  --line:   rgba(28, 25, 22, 0.14);
  --index-h: 3.25rem;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { background: var(--paper); color: var(--sc-ink); }

/* ---------- label schema: every object on the page is labelled the same way */
.tag {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sc-ink-soft);
  font-variant-numeric: tabular-nums;
}
.label {
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-sm);
  line-height: 1.5;
  color: var(--sc-ink-soft);
  text-wrap: pretty;
}
.label b { font-weight: 600; color: var(--sc-ink); }
.facts {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0;
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  font-variant-numeric: tabular-nums;
}
.facts > span + span::before { content: "·"; margin-inline: 0.6em; color: var(--sc-ink-soft); }

/* ---------- index strip (nav): the bottom edge, in the main site's label idiom */
.index {
  position: fixed; inset-inline: 0; bottom: 0; z-index: var(--sc-z-chrome);
  height: var(--index-h);
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 1.5rem;
  padding-inline: var(--sc-gutter);
  background: color-mix(in srgb, #fdfcfa 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid #ded5c8;
  font-family: var(--sc-font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.index__home { font-family: var(--sc-font-display); font-size: var(--sc-t-sm); letter-spacing: 0; text-transform: none; white-space: nowrap; color: var(--sc-ink); text-decoration: none; }
.index__home small { display: block; font-family: var(--sc-font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); margin-top: 0.1rem; }
.index__all { color: var(--sc-ink); text-decoration: none; border: 1px solid #ded5c8; padding: 0.3rem 0.6rem; border-radius: var(--sc-r-sm); white-space: nowrap; transition: border-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out); }
.index__all:hover { border-color: var(--copper); color: var(--copper); }
.index__rooms { display: flex; gap: 0.25rem 1.1rem; overflow: hidden; white-space: nowrap; min-width: 0; }
.index__rooms a, .index__sections a { color: var(--sc-ink-soft); text-decoration: none; position: relative; padding-block: 0.25rem; transition: color 140ms var(--sc-ease-out); }
.index__rooms a::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.45rem; background: #ded5c8; vertical-align: 0.1em; transition: background 140ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.index__rooms a.is-visited { color: var(--sc-ink); }
.index__rooms a.is-visited::before { background: var(--copper); }
.index__rooms a.is-current { color: var(--sc-ink); }
.index__rooms a.is-current::before { background: #b98a4f; transform: rotate(45deg); }
.index__rooms a:hover, .index__sections a:hover { color: var(--sc-ink); }
.index__right { display: flex; align-items: center; gap: 1.25rem; }
.index__sections { display: flex; gap: 1rem; }
.index__where { display: none; color: var(--sc-ink); }
.index__cta {
  font-family: var(--sc-font-text); font-size: var(--sc-t-sm); font-weight: 700; letter-spacing: 0; text-transform: none;
  color: var(--sc-accent-ink); background: var(--sc-accent); text-decoration: none;
  padding: 0.5rem 1rem; border-radius: var(--sc-r-sm); white-space: nowrap;
  transition: background 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.index__cta:hover { background: #85592c; }
.index__cta:active { transform: translateY(1px); }

@media (max-width: 860px) {
  .index { --index-h: 3.25rem; grid-template-columns: auto 1fr auto; gap: 0.75rem; }
  .index__rooms, .index__sections, .index__all, .index__home small { display: none; }
  .index__where { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* the fixed strip covers the bottom of every pinned stage; keep copy above it */
.sc-copy--lead, .sc-copy--trail { bottom: calc(var(--index-h) + clamp(1.5rem, 6vh, 4rem)); }

/* ---------- act 1: the tour (object one, already labelled) */
.tour { background: #0e1720; }
.tour__hush { opacity: 0; --sc-scrim-a: 0.9; }
.sc-copy--lead { position: absolute; }
.plate-bg { position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 94%, transparent); border-radius: var(--sc-r-md); box-shadow: 0 18px 40px -22px hsl(var(--sc-shadow-color) / 0.55), var(--sc-edge); }
.plate {
  position: relative;
  color: var(--sc-ink);
  padding: clamp(1.1rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.6vw, 2rem);
  max-width: min(34rem, 86vw);
}
.plate h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); line-height: 1.02; letter-spacing: var(--sc-track-snug); margin: 0 0 0.35rem; text-wrap: balance; }
.plate .facts { margin-top: 0.6rem; }
.plate__series { margin: 0.75rem 0 0; }
.plate__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.5rem; margin: 1rem 0 0; }
.plate__back { font-family: var(--sc-font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); text-decoration: none; border-bottom: 1px solid #ded5c8; padding-bottom: 0.15rem; }
.plate__back:hover { color: var(--sc-ink); border-color: var(--copper); }
.plate__cta { display: inline-block; margin-top: 0; color: var(--sc-ink); border-color: var(--copper); font-family: var(--sc-font-text); font-size: var(--sc-t-sm); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--copper); padding-bottom: 0.15rem; }
.plate__cta:hover { color: var(--copper); }

/* the living floor plan */
.living {
  position: absolute; right: var(--sc-gutter); bottom: calc(var(--index-h) + clamp(1.25rem, 4vh, 2.5rem));
  z-index: var(--sc-z-copy);
  width: clamp(14rem, 22vw, 22rem);
  opacity: 0; transform: translateY(12px);
  transition: opacity 420ms var(--sc-ease-out), transform 420ms var(--sc-ease-out);
  pointer-events: none;
}
.sc-stage.is-inside .living { opacity: 1; transform: none; }
.living__frame { position: relative; background: var(--paper); padding: 0.5rem; border-radius: var(--sc-r-sm); box-shadow: 0 14px 30px -18px hsl(var(--sc-shadow-color) / 0.6), var(--sc-edge); }
.living__frame img { display: block; width: 100%; height: auto; }
.living__frame svg, .plan__fig svg { position: absolute; inset: 0.5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); }
.plan__fig svg { inset: 0; width: 100%; height: 100%; }
.room { fill: var(--copper); opacity: 0; transition: opacity 360ms var(--sc-ease-out), fill 360ms var(--sc-ease-out); }
.room.is-visited { fill: var(--slate-mid); opacity: 0.16; }
.room.is-current { fill: var(--copper); opacity: 0.38; }
.living__where { margin: 0.55rem 0 0; font-family: var(--sc-font-text); font-size: var(--sc-t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.living__where b { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .living { display: none; } }

/* photo-hero variant: stills cross-dissolve under a slow push */
.stills { position: absolute; inset: 0; overflow: hidden; }
.stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1 + 0.08 * var(--sc-p, 0))); }

/* ---------- act 2: the plan */
.plan { background: var(--paper); }
.plan__stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(2rem, 6vh, 4rem) var(--sc-gutter) calc(var(--index-h) + 2rem); box-sizing: border-box; }
.plan__fig { position: relative; margin: 0; background: var(--sc-surface); padding: clamp(0.75rem, 1.5vw, 1.25rem); border-radius: var(--sc-r-md); box-shadow: 0 24px 50px -30px hsl(var(--sc-shadow-color) / 0.5), var(--sc-edge); }
.plan__fig img { display: block; width: 100%; height: auto; }
.plan__fig svg { inset: clamp(0.75rem, 1.5vw, 1.25rem); width: calc(100% - 2 * clamp(0.75rem, 1.5vw, 1.25rem)); height: calc(100% - 2 * clamp(0.75rem, 1.5vw, 1.25rem)); }
.plan__facts h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-3xl); line-height: 0.98; letter-spacing: var(--sc-track-tight); margin: 0; text-wrap: balance; }
.plan__sqft { font-family: var(--sc-font-display); font-size: var(--sc-t-xl); margin: 1.25rem 0 0; color: var(--sc-ink); }
.plan__sqft span { font-variant-numeric: tabular-nums; }
.plan__dims { margin: 0.4rem 0 0; }
.plan__rooms { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.plan__rooms li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line); font-family: var(--sc-font-text); font-size: var(--sc-t-sm); color: var(--sc-ink-soft); }
.plan__rooms li b { font-weight: 500; color: var(--sc-ink); }
.plan__rooms li span { font-variant-numeric: tabular-nums; }
.plan__rooms li.is-lit b::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--copper); margin-right: 0.6rem; vertical-align: 0.05em; }
@media (max-width: 860px) {
  .plan__stage { grid-template-columns: 1fr; align-content: center; gap: 1.25rem; padding-top: 1.5rem; }
  .plan__rooms { display: none; }
  .plan__facts h2 { font-size: var(--sc-t-2xl); }
}

/* ---------- act 3: the rooms (a rail of prints) */
.rooms { background: var(--paper-2); }
.rail { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); padding: 0 var(--sc-gutter) calc(var(--index-h) + 0.5rem); height: 100%; box-sizing: border-box; }
.rail__lead { flex: 0 0 auto; width: clamp(16rem, 24vw, 22rem); }
.rail__lead h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-3xl); line-height: 0.98; letter-spacing: var(--sc-track-tight); margin: 0; }
.rail__lead p { margin: 1rem 0 0; }
.rail__note { flex: 0 0 auto; width: clamp(12rem, 18vw, 18rem); }
.print { flex: 0 0 auto; margin: 0; --i: 0; }
.rail .print img { display: block; height: clamp(18rem, calc(100svh - var(--index-h) - 11rem), 46rem); width: auto; max-width: 78vw; }
.print img { display: block; background: var(--sc-surface); padding: clamp(0.5rem, 1vw, 0.9rem); box-sizing: border-box; box-shadow: 0 20px 44px -28px hsl(var(--sc-shadow-color) / 0.55), var(--sc-edge); border-radius: var(--sc-r-sm); }
.print figcaption { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-top: 0.7rem; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rail .print { opacity: calc(0.55 + 0.45 * clamp(0, (var(--sc-p, 1) - var(--i) * 0.085) * 7, 1)); transform: translateY(calc(10px * (1 - clamp(0, (var(--sc-p, 1) - var(--i) * 0.085) * 7, 1)))); }
  .rail .print:first-of-type { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .rail { gap: 1rem; padding-bottom: 4rem; }
  .rail__lead { width: 74vw; }
  .rail .print { width: 82vw; }
  .rail .print img { height: auto; width: 100%; max-width: none; }
  .rail__note { width: 60vw; }
}

/* ---------- act 4: the rest of the rooms, the builder (flow) */
.rest { background: var(--sc-surface); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 7vw, 6rem); }
.rest__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.rest__head h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-snug); margin: 0; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 1.6vw, 1.5rem); align-items: start; }
.grid .print { width: auto; grid-column: span 4; }
.grid .print:nth-child(9n+4), .grid .print:nth-child(9n+5) { grid-column: span 6; }
.grid .print:nth-child(9n+6), .grid .print:nth-child(9n+7), .grid .print:nth-child(9n+8), .grid .print:nth-child(9n+9) { grid-column: span 3; }
.grid .print img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; padding: clamp(0.35rem, 0.6vw, 0.5rem); }
.grid .print figcaption { margin-top: 0.55rem; gap: 0.6rem; grid-template-columns: auto 1fr; align-items: baseline; }
.grid .print figcaption .label { font-size: var(--sc-t-xs); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1200px) { .grid .print:nth-child(n) { grid-column: span 6; } .grid .print:nth-child(9n+4), .grid .print:nth-child(9n+5) { grid-column: span 12; } }
@media (max-width: 860px) { .grid { gap: 1rem 0.75rem; } .grid .print:nth-child(n) { grid-column: span 6; } }
.provenance { margin-top: clamp(2.5rem, 4vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.provenance h3 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-lg); margin: 0 0 0.5rem; }
.provenance a { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid var(--copper); }
.provenance a:hover { color: var(--copper); }

/* ---------- act 5: the ask (inquiry plate, set like a label) */
.ask { background: var(--slate); --sc-ink: var(--bone); --sc-ink-soft: #9db1c4; --sc-accent: var(--copper-light); color: var(--sc-ink); }
.ask__stage { display: grid; padding: clamp(1rem, 3vh, 2rem) var(--sc-gutter) calc(var(--index-h) + 1rem); box-sizing: border-box; }
.ask__plate { align-self: center; justify-self: center; width: min(44rem, 100%); background: var(--slate-2); border-radius: var(--sc-r-md); padding: clamp(1.5rem, 3.5vw, 3rem); box-shadow: 0 30px 60px -36px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06); }
.ask__plate h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); line-height: 1.02; letter-spacing: var(--sc-track-snug); margin: 0.3rem 0 0.7rem; }
.ask__plate .label { color: var(--sc-ink-soft); }
.ask__plate .label b { color: var(--sc-ink); }
.ask__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem; margin-top: 1.1rem; }
.ask__fields .f--wide { grid-column: 1 / -1; }
.f { display: grid; gap: 0.35rem; }
.f label { font-family: var(--sc-font-text); font-size: var(--sc-t-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sc-ink-soft); }
.f input, .f textarea {
  font: inherit; font-family: var(--sc-font-text); font-size: var(--sc-t-base); color: var(--sc-ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(242,245,248,0.28); padding: 0.55rem 0;
  border-radius: 0; outline: none; transition: border-color 140ms var(--sc-ease-out);
}
.f textarea { resize: vertical; min-height: 3.6rem; line-height: 1.5; }
.f input:focus-visible, .f textarea:focus-visible { border-bottom-color: var(--copper-light); box-shadow: 0 1px 0 var(--copper-light); }
.f input::placeholder, .f textarea::placeholder { color: rgba(242,245,248,0.38); }
.ask__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.btn {
  font-family: var(--sc-font-text); font-size: var(--sc-t-base); font-weight: 700; letter-spacing: 0;
  color: #fbf6f0; background: #9c6b35; border: 0; border-radius: var(--sc-r-sm); padding: 0.85rem 1.5rem; cursor: pointer;
  transition: background 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn:hover { background: #85592c; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.ask__alt { margin: 0; }
.ask__alt a { color: var(--sc-ink); text-decoration: none; border-bottom: 1px solid var(--copper-light); }
.ask__note { margin-top: 0.6rem; min-height: 1.2em; }
.ask__note[data-tone="ok"] { color: var(--copper-light); }
.ask__note[data-tone="err"] { color: #e6a08a; }
.ask__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 1.5rem; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid rgba(242,245,248,0.14); }
.ask__base .tag { color: var(--sc-ink-soft); }
.ask__base a { color: inherit; text-decoration: none; }
.ask__base a:hover { color: var(--copper-light); }
@media (max-width: 860px) { .ask__fields { grid-template-columns: 1fr; } .ask__plate h2 { font-size: var(--sc-t-2xl); } }

/* ---------- reduced motion: keep meaning, drop movement */
@media (prefers-reduced-motion: reduce) {
  .living { opacity: 1; transform: none; }
  .tour__hush { display: none; }
  .room.is-visited, .room.is-current { transition: none; }
}

/* ---------- phones: the ask has to fit one viewport with the index strip */
@media (max-width: 860px) {
  .ask__stage { padding-top: 0.75rem; padding-bottom: calc(var(--index-h) + 0.25rem); }
  .ask__plate { padding: 1.1rem 1.1rem 1rem; border-radius: var(--sc-r-sm); }
  .ask__plate h2 { font-size: clamp(1.7rem, 7vw, 2.1rem); margin: 0.2rem 0 0.5rem; }
  .ask__plate > .label { font-size: var(--sc-t-xs); line-height: 1.4; }
  .ask__fields { gap: 0.55rem; margin-top: 0.8rem; }
  .f label { font-size: 0.62rem; }
  .f input, .f textarea { padding: 0.35rem 0; font-size: 0.95rem; }
  .f textarea { min-height: 3.2rem; rows: 2; }
  .f--where { display: none; }
  .ask__row { margin-top: 0.9rem; gap: 0.6rem; }
  .btn { padding: 0.7rem 1.1rem; }
  .ask__note { margin-top: 0.5rem; min-height: 1.2em; }
  .ask__base { margin-top: 0.7rem; padding-top: 0.5rem; }
  .ask__base .tag:nth-child(2) { display: none; }
}

/* ---------- the plans index (catalog of every home) */
.catalog { background: var(--paper); }
.cat { padding-bottom: calc(var(--index-h) + 3rem); }
.cat__head { padding-top: clamp(4rem, 10vh, 7rem); padding-bottom: clamp(2rem, 5vh, 4rem); }
.cat__head h1 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-4xl); line-height: 0.96; letter-spacing: var(--sc-track-tight); margin: 0.4rem 0 1rem; }
.cat__head .label { max-width: 52ch; }
.cat__group { padding-top: clamp(2rem, 4vw, 3.5rem); }
.cat__group h2 { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-snug); margin: 0 0 1.25rem; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 1.6vw, 1.5rem); }
.card { display: grid; gap: 0.6rem; align-content: start; color: inherit; text-decoration: none; }
.card img, .card__blank { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sc-surface); padding: clamp(0.35rem, 0.6vw, 0.5rem); box-sizing: border-box; border-radius: var(--sc-r-sm); box-shadow: 0 18px 40px -26px hsl(var(--sc-shadow-color) / 0.5), var(--sc-edge); transition: transform 180ms var(--sc-ease-out), box-shadow 180ms var(--sc-ease-out); }
.card:hover img { transform: translateY(-2px); box-shadow: 0 24px 46px -26px hsl(var(--sc-shadow-color) / 0.6), var(--sc-edge); }
.card:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: var(--sc-r-sm); }
.card__body { display: grid; gap: 0.2rem; }
.card__name { font-family: var(--sc-font-display); font-size: var(--sc-t-lg); line-height: 1.1; color: var(--sc-ink); }
.card__badge { color: var(--copper); margin-top: 0.15rem; }
.cat__foot { padding-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.cat__foot a { color: inherit; text-decoration: none; }
@media (max-width: 1200px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; gap: 1rem 0.75rem; } .catalog .index__rooms { display: none; } }

/* ---------- touch: every link and button meets a 44px finger */
@media (pointer: coarse) {
  .index__home { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
  .index__all { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.8rem; }
  .index__cta { display: inline-flex; align-items: center; min-height: 40px; padding-block: 0; }
  .plate__links { gap: 0.25rem 1.25rem; align-items: center; }
  .plate__cta, .plate__back { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
  .plate__cta { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--copper); }
  .plate__back { border-bottom: 0; box-shadow: inset 0 -1px 0 #ded5c8; }
  .provenance a, .ask__base a, .ask__alt a, .cat__foot a { display: inline-block; padding-block: 0.6rem; }
  .ask__alt a { margin-block: -0.4rem; }
  .ask__base { gap: 0 1.5rem; margin-top: 0.4rem; padding-top: 0.3rem; align-items: center; }
  .ask__base .tag { padding-block: 0.6rem; }
  .cards .card { min-height: 44px; }
}
@media (max-width: 860px) { .index__all { display: none; } }

/* ---------- phones: the drawing opens large enough to read the room names */
.plan__zoom { display: none; }
.plan__dialog { display: none; }
@media (max-width: 860px) {
  .plan__fig { cursor: zoom-in; }
  .plan__zoom { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin: 0.4rem 0 0; padding: 0 0.2rem; border: 0; background: none; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
  .plan__zoom::before { content: ""; width: 0.55rem; height: 0.55rem; border: 1.5px solid currentColor; border-radius: 2px; }
  .plan__dialog { display: block; position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper, #f8f5f0); color: var(--sc-ink); }
  .plan__dialog:not([open]) { display: none; }
  .plan__dialog::backdrop { background: rgba(14,23,32,0.5); }
  .plan__scroller { position: absolute; inset: 0 0 4.5rem 0; overflow: auto; -webkit-overflow-scrolling: touch; display: grid; align-items: center; padding: 1rem; box-sizing: border-box; }
  .plan__scroller img { display: block; width: 230vw; max-width: none; height: auto; background: #fff; padding: 0.75rem; box-sizing: border-box; border-radius: var(--sc-r-sm); }
  .plan__bar { position: absolute; inset: auto 0 0 0; height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 var(--sc-gutter); background: color-mix(in srgb, #fdfcfa 92%, transparent); border-top: 1px solid #ded5c8; font-family: var(--sc-font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink-soft); }
  .plan__close { min-height: 44px; padding: 0 1rem; border: 1px solid #ded5c8; border-radius: var(--sc-r-sm); background: #fdfcfa; color: var(--sc-ink); font: inherit; letter-spacing: inherit; text-transform: inherit; }
}

/* ---------- phones: the tour is a letterboxed film across the top of the stage
   with the living floor plan underneath, instead of a portrait crop that threw
   away the sides of every room and blew a small clip up to fill the screen */
@media (max-width: 860px) {
  .tour .sc-stage :is(video[data-sc-scrub], .sc-stage__poster), .tour .stills { inset: 0 0 auto 0; height: 38svh; }
  .tour .stills img { object-position: 50% 50%; }
  .tour .living { display: block; position: absolute; top: calc(38svh + 1.1rem); left: var(--sc-gutter); right: var(--sc-gutter); bottom: auto; width: auto; }
  .tour[data-sc-act="pin"] .living { display: none; }
  .sc-stage.is-inside .living.is-held { opacity: 0; transform: translateY(12px); }
  .living__frame { padding: 0.4rem; }
  .living__frame svg { inset: 0.4rem; width: calc(100% - 0.8rem); height: calc(100% - 0.8rem); }
  .living__where { font-size: 0.7rem; }
}
