/* Roomwork. Plaster white, pale grey, graphite ink and one sky blue. */
@font-face { font-family: "Elvon Grotesk"; src: url("/live/roomwork/fonts/elvon-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Elvon Grotesk"; src: url("/live/roomwork/fonts/elvon-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
/* Elvon's dollar sign has only short stubs and reads as an S at text sizes; borrow a clearer one. */
@font-face { font-family: "Elvon Grotesk"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"); font-weight: 400; unicode-range: U+0024; }
@font-face { font-family: "Elvon Grotesk"; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"), local("Arial"); font-weight: 500; unicode-range: U+0024; }
@font-face { font-family: "Serial Mono"; src: url("/live/roomwork/fonts/serial-mono-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --plaster: #F4F5F4;
  --pale: #E4E6E7;
  --stone: #C9CDD0;
  --ink: #15181B;
  --mid: #5D646B;
  --sky: #5BB2F0;
  --sans: "Elvon Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Serial Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 3vw, 40px);
  --bar: 64px;
  /* four sizes: display, heading, body, label */
  --f-display: clamp(60px, 10vw, 168px);
  --f-head: clamp(30px, 3.5vw, 52px);
  --f-body: 17px;
  --f-label: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
}

html { background: var(--plaster); }
body {
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--f-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}
em, i { font-style: normal; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img, video { display: block; width: 100%; height: auto; }
a { text-decoration: none; }
button { background: none; border: 0; padding: 0; }
.mono { font-family: var(--mono); font-size: var(--f-label); letter-spacing: 0.01em; line-height: 1.4; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--plaster); padding: 10px 16px; border-radius: 999px; transition: top 0.2s var(--ease-ui); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 var(--gut); }
.h-xl { font-size: var(--f-head); line-height: 1.04; letter-spacing: -0.025em; font-weight: 500; text-wrap: balance; }

/* ---------- Bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gut); background: var(--plaster);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), border-color 0.3s;
}
.bar.is-scrolled { border-bottom-color: var(--stone); }
.bar.is-hidden { transform: translateY(-101%); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: var(--f-body); font-weight: 500; letter-spacing: -0.02em; justify-self: start; min-height: 44px; }
.logo svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
.logo svg .logo__door { stroke: var(--sky); stroke-width: 3; }
.here { justify-self: center; font-family: var(--mono); font-size: var(--f-label); white-space: nowrap; }
.here__k { color: var(--mid); margin-right: 6px; }
.here__v { display: inline-block; transition: opacity 0.25s; }
.here__v.is-swap { opacity: 0; }
.bar__end { justify-self: end; display: flex; align-items: center; gap: 28px; }
.links { display: flex; gap: 26px; font-size: 15px; }
.links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.links a::after, [data-underline]::after, .cap__a::after, .say__link::after, .room__next::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease-ui);
}
.links a:hover::after, .links a:focus-visible::after, [data-underline]:hover::after, .cap__a:hover::after, .say__link:hover::after, .room__next:hover::after { transform: scaleX(1); transform-origin: left; }
[data-underline] { position: relative; display: inline-block; }
[data-underline]::after { bottom: 0; }

.pill, .chip, .send {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; overflow: hidden;
  isolation: isolate; transition: color 0.3s var(--ease-ui), transform 0.15s;
}
.pill { background: var(--sky); color: var(--ink); }
.pill::before, .chip::before, .send::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.pill:hover, .pill:focus-visible, .send:hover, .send:focus-visible { color: var(--plaster); }
.pill:hover::before, .pill:focus-visible::before, .chip:hover::before, .chip:focus-visible::before, .send:hover::before, .send:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.pill:active, .chip:active, .send:active, .chat__go:active { transform: scale(0.97); }
.menu-btn { display: none; height: 44px; padding: 0 4px; font-size: 15px; font-weight: 500; }

.sheet { position: fixed; inset: 0; z-index: 45; background: var(--plaster); padding: calc(var(--bar) + 32px) var(--gut) 32px; display: flex; flex-direction: column; justify-content: space-between; }
.sheet[hidden] { display: none; }
.sheet nav { display: flex; flex-direction: column; }
.sheet nav a { font-size: clamp(40px, 12vw, 64px); letter-spacing: -0.04em; line-height: 1.1; font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--stone); display: flex; align-items: baseline; gap: 14px; }
.sheet nav a .mono { color: var(--mid); letter-spacing: 0; }
.sheet__foot { font-family: var(--mono); font-size: var(--f-label); color: var(--mid); }

/* ---------- Walk stage ---------- */
.walk { position: relative; }
.is-live .walk { height: 600svh; }
.is-live .stage { position: sticky; top: 0; }
.stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.stage__media { position: absolute; inset: 0; }
.stage__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s var(--ease-ui); }
.stage__still--tall, .stage__still--cut { display: none; }
.model-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 0.8s var(--ease-ui); }
.has-frame .model-canvas { opacity: 1; }
.has-frame .stage__still, .has-frame .plan__still { opacity: 0; }

.labels { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; translate: -50% -100%;
  display: inline-flex; gap: 8px; align-items: baseline; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.01em;
  background: var(--plaster); border: 1px solid var(--stone); padding: 5px 8px;
  opacity: 0; transition: opacity 0.35s var(--ease-ui);
}
.tag b { font-weight: 400; color: var(--mid); }
.tag .tag__s { color: var(--mid); }
.tag.is-on { opacity: 1; }
.tag--lot { background: var(--sky); border-color: var(--sky); }
.tag--lot b, .tag--lot .tag__s { color: var(--ink); }
.tag--you { background: var(--ink); color: var(--plaster); border-color: var(--ink); }
.tag--you b, .tag--you .tag__s { color: var(--pale); }

.hero { position: absolute; inset: var(--bar) var(--gut) 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 5vh, 56px) 0 96px; }
.hero__title { font-size: var(--f-display); line-height: 0.88; letter-spacing: -0.055em; font-weight: 500; max-width: 9.4ch; text-wrap: balance; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__sub { max-width: 30em; color: var(--ink); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--mid); }
.hero__meta li { white-space: nowrap; }
.hero > * { pointer-events: auto; }
@media (min-width: 861px) {
  .hero { display: grid; grid-template-columns: 1fr minmax(260px, 340px); column-gap: 40px; align-items: end; align-content: start; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 0.6em; }
  .hero__sub { font-size: 16px; }
  .hero__title { max-width: none; white-space: nowrap; }
  .hero__title br { display: block; }
}

.caps { position: absolute; left: var(--gut); bottom: 84px; width: min(460px, calc(100% - 2 * var(--gut))); pointer-events: none; }
.cap { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease-ui), transform 0.6s var(--ease); }
.cap.is-active { opacity: 1; transform: none; pointer-events: auto; }
.cap__still { display: none; }
.cap__body { background: var(--plaster); border: 1px solid var(--stone); padding: 22px 24px 18px; }
.cap__k { color: var(--mid); margin-bottom: 14px; }
.cap__t { font-size: var(--f-head); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.cap__l { margin-top: 12px; color: var(--ink); max-width: 34em; }
.cap__f { margin-top: 14px; color: var(--mid); }
.cap__a { position: relative; display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; font-weight: 500; }
.cap__a::after { bottom: 10px; }
.cap__a--go { background: var(--sky); padding: 0 20px; border-radius: 999px; margin-top: 14px; }
.cap__a--go::after { display: none; }

.chapters { position: absolute; left: var(--gut); right: var(--gut); bottom: 18px; display: flex; justify-content: space-between; border-top: 1px solid var(--stone); }
.chapters a { position: relative; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; padding-top: 2px; color: var(--mid); transition: color 0.25s; }
.chapters a b { font-weight: 400; }
.chapters a::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.chapters a.is-active, .chapters a:hover { color: var(--ink); }
.chapters a.is-active::before { transform: scaleX(1); }
.chapters__lot.is-active::before { background: var(--sky); }

/* ---------- Process ---------- */
.process { padding: clamp(120px, 14vw, 220px) 0 clamp(96px, 10vw, 160px); }
.process .h-xl { max-width: 12ch; margin-bottom: clamp(48px, 6vw, 88px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.step__m { aspect-ratio: 3 / 4; overflow: hidden; background: var(--pale); border-radius: 2px; }
.step__m img, .step__m video { width: 100%; height: 100%; object-fit: cover; }
.step__n { margin-top: 18px; color: var(--mid); }
.step__t { margin-top: 6px; font-size: var(--f-body); font-weight: 500; }
.step__l { margin-top: 4px; color: var(--mid); max-width: 28em; }

/* ---------- Services sentence ---------- */
.say { padding: clamp(80px, 9vw, 140px) 0; border-top: 1px solid var(--stone); }
.say__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.say__k { color: var(--mid); margin-bottom: 22px; }
.say__t { letter-spacing: -0.03em; }
.say__btn {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.18em; font: inherit; letter-spacing: inherit;
  color: var(--ink); padding: 0; border-bottom: 0.09em solid var(--sky); line-height: 1; cursor: pointer;
  transition: border-color 0.25s;
}
.say__btn svg { width: 0.42em; height: 0.42em; fill: none; stroke: var(--ink); stroke-width: 1.6; transform: translateY(-0.06em); transition: transform 0.35s var(--ease); }
.say__btn:hover svg, .say__btn:focus-visible svg { transform: translateY(-0.06em) rotate(180deg); }
.say__btn:hover { border-bottom-color: var(--ink); }
#say-word, #say-rest { transition: opacity 0.25s var(--ease-ui); }
.is-swapping #say-word, .is-swapping #say-rest, .is-swapping #say-facts { opacity: 0; }
.say__hint { margin-top: 20px; color: var(--mid); }
.say__facts { margin-top: 28px; max-width: 34em; transition: opacity 0.25s; }
.say__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; margin-top: 8px; }
.say__m { aspect-ratio: 4 / 5; overflow: hidden; background: var(--pale); border-radius: 2px; }
.say__m img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s var(--ease-ui); }

/* ---------- Studio ---------- */
.studio { padding: clamp(40px, 5vw, 80px) 0 clamp(120px, 12vw, 200px); }
.studio__m { aspect-ratio: 16 / 8; overflow: hidden; background: var(--pale); border-radius: 2px; clip-path: inset(0); }
.kit-js:not(.is-static) .studio__m[data-reveal-img] { clip-path: inset(100% 0 0 0); }
.studio__m img { width: 100%; height: 100%; object-fit: cover; }
.studio__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); margin-top: clamp(40px, 5vw, 72px); }
.studio__copy > p:first-child { max-width: 36em; }
.studio__side { margin-top: clamp(32px, 4vw, 56px); width: min(100%, 360px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--pale); border-radius: 2px; }
.studio__side img { width: 100%; height: 100%; object-fit: cover; }
.people { margin-top: 36px; border-top: 1px solid var(--stone); }
.people li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--stone); }
.people .mono { color: var(--mid); text-align: right; }
.clients { margin-top: 32px; max-width: 40em; color: var(--ink); }
.clients .mono { display: block; color: var(--mid); margin-bottom: 8px; }

/* ---------- Planner ---------- */
.plan { padding: clamp(96px, 10vw, 160px) 0 clamp(96px, 10vw, 160px); border-top: 1px solid var(--stone); scroll-margin-top: var(--bar); }
.plan__head { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 88px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.plan__head .h-xl { max-width: 13ch; }
.plan__lede { color: var(--mid); max-width: 30em; }
.plan__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.plan__model { position: sticky; top: calc(var(--bar) + 20px); }
.plan__stage { position: relative; aspect-ratio: 7 / 5; background: var(--plaster); border: 1px solid var(--stone); overflow: hidden; }
.plan__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s var(--ease-ui); }
.plan__still--tall { display: none; }
.plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.has-frame .plan__svg { display: none; }
.brief { display: grid; grid-template-columns: repeat(5, 1fr); border-left: 1px solid var(--stone); margin-top: -1px; }
.brief > div { border: 1px solid var(--stone); border-left: 0; padding: 10px 12px 12px; min-width: 0; }
.brief dt { color: var(--mid); }
.brief dd { margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; transition: background-color 0.6s; }
.brief dd.is-new { background: var(--sky); }
.brief dd.is-empty { color: var(--mid); }

.chat { display: flex; flex-direction: column; min-height: 100%; }
.chat__log { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.chat__log:empty { display: none; }
.chat__log li { display: grid; grid-template-columns: 1fr; gap: 3px; padding-bottom: 14px; border-bottom: 1px solid var(--stone); }
.chat__log .q { color: var(--mid); font-family: var(--mono); font-size: var(--f-label); }
.chat__log .a { font-weight: 500; }
.chat__log .r { color: var(--mid); }
.chat__step { color: var(--mid); margin-bottom: 12px; }
.chat__q { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; min-height: 2.2em; text-wrap: pretty; }
.chat__q .ack { display: block; font-size: var(--f-body); line-height: 1.5; letter-spacing: 0; font-weight: 400; color: var(--ink); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; min-height: 44px; }
.chip { border: 1px solid var(--ink); background: var(--plaster) linear-gradient(var(--sky), var(--sky)) no-repeat right center / 0% 100%; color: var(--ink); font-weight: 400; padding: 0 16px; cursor: pointer; transition: color 0.3s var(--ease-ui), background-size 0.45s var(--ease), transform 0.15s; }
.chip::before { display: none; }
.chip:hover, .chip:focus-visible { background-size: 100% 100%; background-position: left center; border-color: var(--sky); }
.chip--go { background-color: var(--sky); border-color: var(--sky); font-weight: 500; }
.chat__form { display: flex; align-items: center; gap: 12px; margin-top: 24px; border-bottom: 1px solid var(--ink); }
.chat__in { flex: 1; min-width: 0; appearance: none; border: 0; background: transparent; font: inherit; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); padding: 14px 0; border-radius: 0; }
.chat__in::placeholder { color: var(--mid); opacity: 1; }
.chat__in:focus-visible { outline: none; }
.chat__form:focus-within { border-bottom-color: var(--sky); }
.chat__go { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; transition: background-color 0.25s, transform 0.15s; }
.chat__go svg { width: 18px; height: 18px; fill: none; stroke: var(--plaster); stroke-width: 1.8; }
.chat__go:hover, .chat__go:focus-visible { background: var(--sky); }
.chat__go:hover svg, .chat__go:focus-visible svg { stroke: var(--ink); }
.chat__note { margin-top: 14px; color: var(--mid); }
.chat.is-done .chat__form, .chat.is-done .chat__note { display: none; }
.done { margin-top: 8px; border-top: 2px solid var(--sky); padding-top: 18px; }
.done__k { color: var(--mid); }
.done p + p { margin-top: 10px; }
.done__ref { font-family: var(--mono); font-size: var(--f-label); color: var(--mid); }
.again { position: relative; display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; margin-top: 8px; cursor: pointer; }

/* ---------- Footer ---------- */
.foot { background: var(--sky); color: var(--ink); padding: clamp(96px, 10vw, 160px) 0 28px; }
.foot__big { font-size: var(--f-display); line-height: 0.9; letter-spacing: -0.055em; font-weight: 500; max-width: 9ch; text-wrap: balance; }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(64px, 8vw, 120px); padding-top: 24px; border-top: 1px solid var(--ink); }
.foot__k { margin-bottom: 8px; }
.foot__grid a { min-height: 32px; display: inline-flex; align-items: center; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; }
.foot__base a { position: relative; display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- Case view ---------- */
.case { position: fixed; inset: 0; z-index: 80; background: var(--plaster); display: flex; flex-direction: column; }
.case[hidden] { display: none; }
.case__bar { flex: none; height: var(--bar); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); border-bottom: 1px solid var(--stone); }
.case__close { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background-color 0.25s, color 0.25s; }
.case__close:hover, .case__close:focus-visible { background: var(--ink); color: var(--plaster); }
.case__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.room { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 88px); padding: clamp(32px, 4vw, 56px) var(--gut) 0; max-width: 1520px; margin: 0 auto; }
.room[hidden] { display: none; }
.room__side { position: sticky; top: 32px; align-self: start; }
.room__k { color: var(--mid); }
.room__t { font-size: clamp(56px, 8vw, 132px); line-height: 0.9; letter-spacing: -0.05em; font-weight: 500; margin-top: 18px; }
.room__l { margin-top: 18px; max-width: 30em; }
.room__plan { margin-top: 28px; border: 1px solid var(--stone); padding: 16px; }
.room__plan svg { width: 100%; height: auto; max-height: 300px; display: block; }
.room__plan .w { fill: var(--ink); }
.room__plan .fl { fill: var(--pale); }
.room__plan .fx { fill: var(--stone); }
.room__plan .cone { fill: var(--ink); opacity: 0.12; transition: opacity 0.25s, fill 0.25s; }
.room__plan .cone.is-on { fill: var(--sky); opacity: 0.9; }
.room__plan .vn { font-family: var(--mono); font-size: 7px; fill: var(--ink); }
.room__plan .dim { font-family: var(--mono); font-size: 7px; fill: var(--mid); }
.room__d { margin-top: 24px; }
.room__d > div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--stone); }
.room__d dt { color: var(--mid); padding-top: 4px; }
.room__views { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.room__views li { cursor: default; }
.room__views img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--pale); border-radius: 2px; }
.room__views li:nth-child(even) img { width: 82%; margin-left: auto; }
.room__views li:nth-child(even) p { text-align: right; }
.room__views p { margin-top: 10px; color: var(--mid); }
.room__views p b { font-weight: 400; color: var(--ink); margin-right: 10px; }
.room__end { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 64px 0 56px; margin-top: 48px; border-top: 1px solid var(--stone); }
.room__credits { color: var(--mid); max-width: 52em; }
.room__next { position: relative; display: inline-flex; flex-direction: column; align-items: flex-end; font-size: var(--f-head); line-height: 1.1; letter-spacing: -0.025em; font-weight: 500; padding-bottom: 6px; white-space: nowrap; }
.room__next .mono { color: var(--mid); letter-spacing: 0; margin-bottom: 6px; }
.room__next::after { bottom: 0; }
.case-open { overflow: hidden; }

/* ---------- Static and no-WebGL: the walk becomes stacked rooms ---------- */
.is-static .walk, .no-3d .walk { height: auto; }
.is-static .stage, .no-3d .stage { height: auto; min-height: 0; overflow: visible; padding-top: var(--bar); }
.is-static .stage__media, .no-3d .stage__media { position: relative; aspect-ratio: 1600 / 503; }
.is-static .stage__still, .no-3d .stage__still { display: none; }
.is-static .stage__still--cut, .no-3d .stage__still--cut { display: block; }
.is-static .tag, .no-3d .tag { left: var(--sx); top: var(--cy); opacity: 1; }
.is-static .stage, .no-3d .stage { display: flex; flex-direction: column; }
.is-static .hero, .no-3d .hero { position: static; order: -1; display: block; height: auto; padding: clamp(24px, 4vw, 56px) var(--gut) 0; }
.is-static .hero__foot, .no-3d .hero__foot { margin: 32px 0 40px; }
.is-static .caps, .no-3d .caps { position: static; width: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 28px; padding: 96px var(--gut) 0; max-width: 1520px; margin: 0 auto; pointer-events: auto; }
.is-static .cap, .no-3d .cap { position: static; opacity: 1; transform: none; pointer-events: auto; }
.is-static .cap__still, .no-3d .cap__still { display: block; aspect-ratio: 16 / 10; object-fit: cover; background: var(--pale); border-radius: 2px; }
.is-static .cap__body, .no-3d .cap__body { border: 0; padding: 18px 0 0; background: none; }
.is-static .cap--top, .no-3d .cap--top { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
.is-static .chapters, .no-3d .chapters { display: none; }
.is-static .model-canvas, .no-3d .model-canvas { display: none; }

/* ---------- Narrow screens ---------- */
@media (max-aspect-ratio: 1/1) {
  .is-live .stage__still { display: none; }
  .is-live .stage__still--tall { display: block; }
  .is-live .plan__still { display: none; }
  .is-live .plan__still--tall { display: block; }
}
@media (max-width: 1100px) {
  .links { gap: 18px; }
  .here { display: none; }
  .bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 860px) {
  :root { --bar: 58px; }
  .links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .bar__end { gap: 14px; }
  .pill { height: 40px; padding: 0 16px; font-size: 14px; }
  .hero { padding-bottom: 84px; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__meta { gap: 14px; flex-wrap: wrap; }
  .caps { bottom: 72px; }
  .cap__body { padding: 16px 18px 12px; }
  .cap__t { font-size: 30px; }
  .cap__l { font-size: 15px; margin-top: 8px; }
  .chapters a:not(.is-active) span { display: none; }
  .chapters { gap: 4px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .say__grid, .studio__grid, .plan__head, .plan__grid, .room { grid-template-columns: 1fr; }
  .say__m { aspect-ratio: 4 / 3; }
  .studio__m { aspect-ratio: 4 / 3; }
  .plan__model { position: relative; top: 0; }
  .plan__stage { aspect-ratio: 9 / 10; }
  .plan__still { display: none; }
  .plan__still--tall { display: block; }
  .brief { grid-template-columns: repeat(2, 1fr); }
  .brief > div:last-child { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .room__side { position: static; }
  .room__views li:nth-child(even) img { width: 100%; }
  .room__views li:nth-child(even) p { text-align: left; }
  .room__end { flex-direction: column; align-items: flex-start; }
  .room__next { align-items: flex-start; white-space: normal; }
  .is-static .caps, .no-3d .caps { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .is-static .cap--top, .no-3d .cap--top { grid-template-columns: 1fr; gap: 0; }
  .is-static .stage__media, .no-3d .stage__media { aspect-ratio: 3 / 4; }
  .is-static .stage__still--cut, .no-3d .stage__still--cut { display: none; }
  .is-static .stage__still--tall, .no-3d .stage__still--tall { display: block; }
  .is-static .tag, .no-3d .tag { left: var(--tx, var(--sx)); top: var(--ty, var(--sy)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step__m { aspect-ratio: 4 / 3; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__base { flex-direction: column; margin-top: 48px; }
  .hero__meta li:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cap, .tag, .model-canvas, .stage__still, .say__m img, .bar { transition: none; }
}
