/* The home page story. One sticky stage that scroll plays like a film.
   Two layouts share one engine. Wide: the picture fills the screen and the words sit on it.
   Tall (phones, upright tablets): the picture is a band at the top with its own camera, the words sit below it,
   and every pop-up is a sheet that rises from the bottom. */
:root {
  --paper: #F5F5F7; --white: #FFFFFF; --ink: #1D1D1F; --stone: #6E6E73; --fog: #D2D2D7; --surface: #FFFFFF; --line: transparent;
  --table: #E9E3DF;
  --lift: drop-shadow(0 2px 5px rgba(0,0,0,0.08)) drop-shadow(0 16px 30px rgba(0,0,0,0.16));
  --marker: #FFCC00; --signal: #0071E3; --ember: #FF5F1F; --dusk: #5E5CE6; --field: #30B15C;
  --sans: 'Host Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --m: clamp(18px, 4vw, 64px);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.5, 1.8, 0.3, 0.8);
  --band0: 50vh;
  --ls: clamp(32px, min(5.1vw, 11vh), 92px); --lst: clamp(28px, min(3.9vw, 9vh), 68px);
  --top: clamp(76px, 12vh, 124px);
}
:where(.stage, .stage *, .nojs, .nojs *) { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; background: var(--table); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { background: var(--table); overflow-x: clip; }
:where(.stage) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.stage) :is(ol, ul) { list-style: none; }
:where(.stage, .nojs) a { color: inherit; -webkit-tap-highlight-color: transparent; }

.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--table); transition: background-color 0.5s; }
.band { position: absolute; inset: 0; overflow: hidden; }
.cam { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; }
.pl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
#roofwrap { position: absolute; inset: 0; z-index: 20; opacity: 0; pointer-events: none; will-change: opacity, transform; }
#roof { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
#roof img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#shade { position: absolute; inset: 0; background: rgba(52, 34, 24, 0.55); will-change: transform, opacity; }
.divider { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; opacity: 0; z-index: 30; }
#marks { position: absolute; inset: 0; z-index: 62; pointer-events: none; }
.skirt, .veil, .veiltop { display: none; }
.ov { position: absolute; z-index: 60; }
/* Every word that sits under the band on a phone. One layer, so it can slide as the band changes height without any layout. */
.copy { position: absolute; inset: 0; z-index: 60; pointer-events: none; }

/* words */
.line { left: var(--m); bottom: clamp(64px, 10vh, 120px); font-size: var(--ls); font-weight: 500; line-height: 0.98; letter-spacing: -0.038em; pointer-events: none; }
.line.is-top { bottom: auto; top: var(--top); font-size: var(--lst); }
.line span { display: block; }
.line i { display: block; font-style: normal; transform: translateY(26px); opacity: 0; filter: blur(9px); transition: transform 0.7s var(--out), opacity 0.7s var(--out), filter 0.7s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.line.is-on i { transform: none; opacity: 1; filter: none; }
.line:not(.is-on) i { transition-duration: 0.3s; transition-delay: 0s; }
.xl { left: var(--m); bottom: clamp(14px, 3vh, 40px); font-size: clamp(64px, min(12.4vw, 30vh), 240px); font-weight: 500; line-height: 0.9; letter-spacing: -0.058em; transform: translateY(8%); opacity: 0; transition: transform 0.6s var(--out), opacity 0.45s var(--out); pointer-events: none; }
.xl.is-on { transform: none; opacity: 1; }
/* Anything switched off is also hidden from the keyboard and from screen readers, after its fade. */
.fade { opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity 0.6s var(--out), transform 0.6s var(--out), visibility 0s 0.6s; pointer-events: none; }
.fade.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity 0.6s var(--out), transform 0.6s var(--out), visibility 0s; pointer-events: auto; }
.foot { --sq-r: 9px; --sq-fill: var(--white); left: var(--m); bottom: calc(clamp(64px, 10vh, 120px) + 2 * var(--ls) + 18px); padding: 8px 11px; font: 400 12px/1.45 var(--mono); }
.foot b { font-weight: 500; }
.foot.is-low { bottom: clamp(64px, 10vh, 110px); }
.cue { left: 50%; translate: -50% 0; bottom: clamp(22px, 3.4vh, 40px); display: flex; align-items: center; gap: 9px; font: 400 12px/1 var(--mono); }
.cue i { width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); rotate: 45deg; animation: bob 1.8s var(--out) infinite; }
@keyframes bob { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 3px; } }
.links { left: var(--m); top: calc(var(--top) + 2 * var(--lst) + 18px); display: flex; flex-wrap: wrap; gap: 6px; }
.links a { --sq-r: 11px; --sq-fill: var(--white); display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; font-size: 15px; font-weight: 600; text-decoration: none; transition: --sq-fill 0.25s, color 0.25s; }
.links a:hover, .links a:focus-visible { --sq-fill: var(--ink); color: #fff; }
.links a i { font-style: normal; transition: translate 0.4s var(--out); }
.links a:hover i { translate: 4px 0; }
.cap { --sq-r: 18px; --sq-fill: var(--white); --sq-shadow: var(--lift); padding: 16px 18px 18px; width: min(340px, 78vw); display: grid; gap: 9px; }
.cap.is-bare { padding: 0; }
.cap small { display: flex; justify-content: space-between; gap: 12px; font: 500 12px/1.2 var(--mono); color: #515154; }
.cap p { font-size: clamp(22px, 2vw, 30px); font-weight: 500; line-height: 1.06; letter-spacing: -0.022em; }
.cap.is-bare p { font-size: clamp(26px, 3vw, 52px); letter-spacing: -0.03em; }
.cap p span { color: #8E8E93; }
.cap ul { display: grid; gap: 7px; font-size: 16px; line-height: 1.25; }
.cap li { display: flex; gap: 9px; align-items: baseline; transition: opacity 0.4s var(--out), translate 0.4s var(--bounce); }
.cap li::before { content: ''; width: 10px; height: 10px; background: var(--marker); flex: none; }
.cap li.is-ahead { opacity: 0; translate: 14px -10px; }
.cap dl { display: grid; font-size: 16px; }
.cap dl button { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; min-height: 40px; padding: 8px 0; border-top: 1px solid var(--fog); text-align: left; }
.cap dl button:hover dt, .cap dl button:focus-visible dt { translate: 4px 0; }
.cap dt { transition: translate 0.4s var(--out); }
.cap dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.at-tl { left: var(--m); top: var(--top); }
.at-tr { right: var(--m); top: var(--top); }
.at-run { left: var(--m); top: calc(var(--top) + clamp(84px, 9.4vw, 170px)); width: min(300px, 70vw); }
.inset { --sq-r: 18px; --sq-fill: var(--white); --sq-shadow: var(--lift); left: var(--m); bottom: clamp(64px, 10vh, 110px); width: min(300px, 46vw); padding: 5px; }
.inset div { --sq-r: 14px; aspect-ratio: 16 / 10; background: url(pic/s11.jpg) 62% 38% / 230%; }
.inset b { --sq-r: 7px; --sq-fill: var(--white); position: absolute; left: 14px; bottom: 14px; padding: 6px 8px; font: 500 12px/1 var(--mono); }

/* the seven parts, shown while we build */
.parts { left: var(--m); bottom: clamp(64px, 10vh, 110px); display: grid; gap: 10px; }
.parts small { font: 500 12px/1.2 var(--mono); color: var(--ink); }
.parts ol { display: flex; gap: 6px; }
.parts button { --sq-r: 11px; --sq-fill: var(--white); --sq-shadow: drop-shadow(0 6px 12px rgba(0,0,0,0.14)); width: 44px; height: 44px; font: 500 14px/1 var(--mono); transition: --sq-fill 0.25s, color 0.25s, translate 0.4s var(--bounce); }
.parts button:hover, .parts button:focus-visible, .parts button[aria-expanded="true"] { --sq-fill: var(--ink); color: #fff; translate: 0 -4px; }

/* click points on the pictures */
.hot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; translate: -50% -50%; scale: 0.4; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, scale 0.4s var(--bounce), visibility 0s 0.3s; pointer-events: none; }
.hot.is-on { opacity: 1; scale: 1; visibility: visible; pointer-events: auto; will-change: translate; transition: opacity 0.3s, scale 0.4s var(--bounce), visibility 0s; }
.hot .dot { --sq-r: 7px; --sq-fill: var(--ink); width: 24px; height: 24px; display: grid; place-items: center; transition: scale 0.4s var(--bounce); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.hot .dot i { --sq-r: 3.5px; --sq-fill: var(--white); width: 12px; height: 12px; display: block; }
.hot.is-room .dot { --sq-r: 6px; width: 20px; height: 20px; }
.hot.is-room .dot i { --sq-r: 3px; width: 10px; height: 10px; }
.hot .ring { --sq-r: 7px; --sq-fill: transparent; --sq-line: var(--ink); position: absolute; width: 24px; height: 24px; opacity: 0; }
.hot.is-lead .ring { animation: ping 2.2s var(--out) infinite; animation-delay: calc(var(--i, 0) * 0.35s); }
.hot:hover .dot, .hot:focus-visible .dot, .hot[aria-expanded="true"] .dot { scale: 1.3; }
.hot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.hot b { position: absolute; left: 50%; top: 100%; translate: -50% -4px; white-space: nowrap; --sq-r: 6px; --sq-fill: var(--white); padding: 4px 7px; font: 500 11px/1 var(--mono); opacity: 0; transition: opacity 0.25s, translate 0.4s var(--out); pointer-events: none; }
.hot:hover b, .hot:focus-visible b { opacity: 1; translate: -50% 0; }
@keyframes ping { 0% { scale: 1; opacity: 0.7; } 70%, 100% { scale: 2.6; opacity: 0; } }

/* the one pop-up */
.pop { --sq-r: 18px; --sq-fill: var(--white); --sq-shadow: var(--lift); position: absolute; z-index: 90; width: min(336px, 80vw); padding: 14px 16px 14px; display: grid; gap: 9px; opacity: 0; scale: 0.94; transform-origin: 0 100%; transition: opacity 0.2s, scale 0.42s var(--bounce); pointer-events: none; visibility: hidden; }
.pop.is-on { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; }
.pop header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 500 12px/1.2 var(--mono); color: #515154; min-height: 20px; }
.pop header em { font-style: normal; margin-left: auto; }
.pop-x { --sq-r: 9px; --sq-fill: var(--paper); display: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; font: 500 18px/1 var(--sans); color: var(--ink); }
.pop > img { --sq-r: 10px; display: block; width: calc(100% + 12px); margin: 0 -6px 2px; aspect-ratio: 16 / 9; object-fit: cover; }
.pop-t { font-size: 22px; font-weight: 500; line-height: 1.08; letter-spacing: -0.022em; }
.pop-t span { color: #8E8E93; }
.pop-src { font: 400 12px/1.4 var(--mono); color: var(--stone); }
.pop dl { display: grid; font-size: 15px; }
.pop dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--fog); }
.pop dd { font-weight: 600; text-align: right; }
.pop-steps { display: flex; align-items: center; gap: 4px; padding-top: 8px; border-top: 1px solid var(--fog); }
.pop-steps span { font: 400 12px/1.2 var(--mono); color: var(--stone); margin-right: auto; }
.pop-steps button { --sq-r: 8px; --sq-fill: transparent; width: 32px; height: 32px; display: grid; place-items: center; transition: --sq-fill 0.2s; }
.pop-steps button i { --sq-r: 3px; width: 12px; height: 12px; display: block; transition: scale 0.4s var(--bounce); }
.pop-steps button:hover, .pop-steps button[aria-pressed="true"] { --sq-fill: var(--paper); }
.pop-steps button[aria-pressed="true"] i { scale: 1.25; }
.pop footer { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pop footer a, .pop footer button { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; text-decoration: none; text-align: left; }
.pop footer i { font-style: normal; transition: translate 0.4s var(--out); }
.pop footer a:hover i, .pop footer button:hover i { translate: 4px 0; }
.pop :focus-visible, .room :focus-visible, .chips :focus-visible, .rail :focus-visible, .cap :focus-visible, .sheet :focus-visible, .fan :focus-visible, .parts :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* a room, opened */
.room { position: absolute; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.room.is-on { visibility: visible; pointer-events: auto; }
.room-pic { position: absolute; inset: 0; background: var(--table); will-change: clip-path; }
.room-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.2s var(--out); }
.room.is-on .room-pic img { scale: 1; }
.room-card { --sq-r: 26px; --sq-fill: var(--white); --sq-shadow: var(--lift); position: absolute; right: var(--m); top: clamp(76px, 11vh, 110px); bottom: clamp(18px, 3vh, 36px); width: min(440px, 40vw); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; translate: 40px 0; opacity: 0; transition: translate 0.7s var(--out) 0.25s, opacity 0.5s var(--out) 0.25s; }
.room.is-on .room-card { translate: 0 0; opacity: 1; }
.room-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 12px 0 22px; font: 500 12px/1.2 var(--mono); color: #515154; }
.room-top button { --sq-r: 11px; --sq-fill: var(--paper); height: 44px; padding: 0 14px; font: 600 14px/1 var(--sans); color: var(--ink); }
.room-body { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 22px 16px; display: grid; gap: 14px; align-content: start; }
.room-body h2 { font-size: clamp(30px, 3vw, 46px); font-weight: 500; letter-spacing: -0.035em; line-height: 0.98; }
.room-now { display: grid; gap: 7px; }
.room-now p { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }
.room-now p span { color: #8E8E93; }
.room-now small { font: 400 12px/1.4 var(--mono); color: var(--stone); }
.room-steps { display: grid; }
.room-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; padding: 11px 0; border-top: 1px solid var(--fog); opacity: 0; translate: 0 12px; transition: opacity 0.5s var(--out), translate 0.6s var(--out); transition-delay: calc(0.4s + var(--i) * 0.06s); }
.room.is-on .room-steps li { opacity: 1; translate: 0 0; }
.room-steps i { --sq-r: 3px; width: 12px; height: 12px; margin-top: 5px; }
.room-steps b { display: block; font: 500 12px/1.2 var(--mono); color: #515154; margin-bottom: 4px; }
.room-steps p { font-size: 16px; line-height: 1.28; }
.room-steps p span { color: var(--stone); }
.room-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 16px; border-top: 1px solid var(--fog); }
.room-foot button { min-height: 44px; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.room-foot small { font: 400 12px/1.3 var(--mono); color: var(--stone); }

/* step chips, bottom right, and on a phone the row of rooms */
.chips { right: var(--m); bottom: clamp(18px, 3vh, 36px); display: flex; gap: 6px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; pointer-events: none; z-index: 80; }
.chips.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; pointer-events: auto; }
.chips button { --sq-r: 10px; --sq-fill: var(--white); display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 600; transition: --sq-fill 0.3s, color 0.3s; }
.chips button i { --sq-r: 2.5px; width: 10px; height: 10px; flex: none; }
.chips button.is-on { --sq-fill: var(--ink); color: #fff; }
.rail { display: none; }

/* the two dark panels */
.ink { --k: clamp(28px, 3.4vw, 56px); position: absolute; inset: 0; z-index: 40; overflow: hidden; background: var(--ink); color: #fff; transform: translateY(101%); will-change: transform, opacity; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-image: var(--sq-tile-tl), var(--sq-tile-tr), var(--sq-solid), var(--sq-solid); mask-image: var(--sq-tile-tl), var(--sq-tile-tr), var(--sq-solid), var(--sq-solid);
  -webkit-mask-position: left top, right top, center top, left bottom; mask-position: left top, right top, center top, left bottom;
  -webkit-mask-size: var(--k) var(--k), var(--k) var(--k), calc(100% - 2 * var(--k) + 2px) var(--k), 100% calc(100% - var(--k) + 1px); mask-size: var(--k) var(--k), var(--k) var(--k), calc(100% - 2 * var(--k) + 2px) var(--k), 100% calc(100% - var(--k) + 1px); }
.ink .line { color: #fff; bottom: auto; top: var(--top); font-size: clamp(30px, min(4.2vw, 9vh), 76px); }
.ink .note { position: absolute; left: var(--m); bottom: clamp(56px, 8vh, 84px); max-width: 26em; font: 400 12px/1.4 var(--mono); color: #A1A1A6; }
.sheet { --sq-r: 22px; --sq-fill: var(--white); position: absolute; color: var(--ink); padding: clamp(14px, 1.7vw, 28px); display: grid; gap: 6px; align-content: start; will-change: transform; }
.sheet small { display: flex; justify-content: space-between; font: 500 12px/1.2 var(--mono); color: var(--stone); }
.sheet h4 { font-size: clamp(20px, 2vw, 32px); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 6px; }
.sheet li { border-top: 1px solid var(--fog); transition: opacity 0.3s; }
.sheet li button { display: grid; grid-template-columns: 7.4em minmax(0, 1fr) 1em; gap: 10px; width: 100%; padding: clamp(6px, 0.8vw, 11px) 0; font-size: clamp(13px, 1.05vw, 17px); text-align: left; align-items: baseline; }
.sheet li.is-solo button { grid-template-columns: minmax(0, 1fr) 1em; }
.sheet li b { font-weight: 600; }
.sheet li span { color: #515154; transition: translate 0.4s var(--out), color 0.2s; }
.sheet li button:hover span, .sheet li button:focus-visible span, .sheet li button[aria-expanded="true"] span { translate: 5px 0; color: var(--ink); }
.sheet li em { font-style: normal; opacity: 0.35; transition: opacity 0.2s; }
.sheet li button:hover em { opacity: 1; }
.sheet li.is-ahead button > :not(b) { opacity: 0; }
.sheet li.is-solo.is-ahead { opacity: 0; }
#sh1 { left: 40%; top: 9%; width: 31%; height: 110%; }
#sh2 { left: 73%; top: 16%; width: 23%; height: 110%; }
.grid { position: absolute; left: 38%; right: var(--m); top: var(--top); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,0.22); border-left: 1px solid rgba(255,255,255,0.22); }
.grid div { padding: clamp(12px, 1.4vw, 22px); border-right: 1px solid rgba(255,255,255,0.22); border-bottom: 1px solid rgba(255,255,255,0.22); display: grid; gap: 8px; align-content: start; min-height: 9vw; }
.grid b { font-size: clamp(26px, 3.1vw, 54px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.grid span { font-size: clamp(13px, 1.05vw, 17px); line-height: 1.3; color: #C7C7CC; }
.grid small { font: 500 12px/1.2 var(--mono); color: #8E8E93; }
.fan { position: absolute; left: 38%; bottom: clamp(84px, 14vh, 150px); display: flex; }
.fan button { width: clamp(108px, 11.6vw, 198px); height: clamp(84px, 9vw, 150px); margin-right: clamp(-40px, -2.2vw, -16px); --sq-r: 14px; --sq-fill: var(--white); --sq-shadow: drop-shadow(0 12px 22px rgba(0,0,0,0.45)); color: var(--ink); padding: clamp(10px, 1.1vw, 18px); display: grid; align-content: space-between; text-align: left; will-change: transform; transition: translate 0.45s var(--bounce); }
.fan button:hover, .fan button:focus-visible, .fan button[aria-expanded="true"] { translate: 0 -14px; z-index: 2; }
.fan b { font-size: clamp(15px, 1.36vw, 23px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.fan small { font: 400 11px/1.25 var(--mono); color: var(--stone); }

#h15 { bottom: 27vh; font-size: clamp(48px, min(6.4vw, 15vh), 118px); color: #fff; }
#h15 span { display: block; }
.close-sub { left: var(--m); bottom: 19vh; width: min(15em, 70vw); font-size: clamp(17px, 1.5vw, 24px); line-height: 1.3; color: #fff; }
.close-btn { left: var(--m); bottom: 10.5vh; --sq-r: 12px; --sq-fill: #fff; color: var(--ink); font-size: clamp(15px, 1.2vw, 19px); font-weight: 600; padding: 14px 20px; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }


/* ---------- tall: phones and upright tablets ---------- */
[data-mode="tall"] { --m: 18px; --ls: clamp(30px, 9.3vw, 52px); --lst: var(--ls); --b: calc(var(--band0) + 20px + 2 * var(--ls) + 14px); --c: calc(var(--b) + 46px); }
/* Below the band the page is the model's own table. A model picture melts into it and a photograph keeps a clean edge.
   Nothing here is a mask on the pictures: the skirt is the table drawn over the band's lower part. It only ever
   moves, so a phone never repaints the band. */
[data-mode="tall"] { --tablec: #CBBDB8; background: var(--tablec); }
[data-mode="tall"][data-tone="dark"] { --tablec: #4B4954; }
[data-mode="tall"] .band { inset: 0 0 auto 0; height: var(--band0); }
[data-mode="tall"] .skirt { display: block; position: absolute; left: 0; right: 0; top: 0; z-index: 1; background: var(--tablec); pointer-events: none; transition: opacity 0.5s, background-color 0.5s; }
[data-mode="tall"] .skirt { height: 100%; will-change: transform; }
[data-mode="tall"] .copy { will-change: transform; }
[data-mode="tall"] .line, [data-mode="tall"] .line.is-top { left: 18px; right: 18px; top: calc(var(--band0) + 20px); bottom: auto; font-size: var(--ls); line-height: 1; max-width: none !important; }
[data-mode="tall"] .xl { left: 18px; top: calc(var(--band0) + 14px); bottom: auto; font-size: clamp(72px, 21.5vw, 150px); }
[data-mode="tall"] .foot, [data-mode="tall"] .foot.is-low { left: 18px; right: auto; bottom: auto; top: var(--b); }
[data-mode="tall"] .links { left: 18px; right: 18px; top: var(--b); }
[data-mode="tall"] .links a { height: 44px; }
[data-mode="tall"] .cue { left: 18px; translate: none; bottom: max(22px, env(safe-area-inset-bottom)); }
[data-mode="tall"] .cap, [data-mode="tall"] .cap.at-tl, [data-mode="tall"] .cap.at-tr { left: 18px; right: 18px; width: auto; top: calc(var(--band0) + 20px); bottom: auto; }
[data-mode="tall"] .cap.is-bare p { font-size: var(--ls); line-height: 1; letter-spacing: -0.038em; }
[data-mode="tall"] .cap.at-run { top: calc(var(--c) + 58px); }
[data-mode="tall"] .inset { display: none; }
[data-mode="tall"] .parts { left: 18px; right: 18px; bottom: auto; top: var(--b); }
[data-mode="tall"] .parts { grid-template-columns: minmax(0, 1fr); }
[data-mode="tall"] .parts ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 5px; }
[data-mode="tall"] .parts button { width: 100%; }
[data-mode="tall"] .hot .ring { display: none; }
[data-mode="tall"] .hot b { display: none; }

[data-mode="tall"] .pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 64%; overflow-y: auto; overscroll-behavior: contain; --sq-r: 26px; padding: 14px 18px max(28px, calc(env(safe-area-inset-bottom) + 12px)); gap: 11px; scale: 1; translate: 0 104%; transition: translate 0.55s var(--out), opacity 0.2s, visibility 0s 0.55s; transform-origin: 50% 100%; }
[data-mode="tall"] .pop.is-on { translate: 0 0; transition: translate 0.55s var(--out), opacity 0.2s, visibility 0s; }
[data-mode="tall"] .pop { grid-template-columns: minmax(0, 1fr); }
[data-mode="tall"] .pop-x { display: grid; place-items: center; }
[data-mode="tall"] .pop-t { font-size: 25px; }
[data-mode="tall"] .pop-steps button { width: 44px; height: 44px; }
[data-mode="tall"] .pop footer a, [data-mode="tall"] .pop footer button { min-height: 44px; font-size: 16px; }

[data-mode="tall"] .rail { position: absolute; left: 0; right: 0; top: var(--c); z-index: 80; pointer-events: none; display: flex; gap: 6px; overflow-x: auto; padding: 4px 18px; scrollbar-width: none; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0s 0.4s; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
[data-mode="tall"] .rail::-webkit-scrollbar { display: none; }
[data-mode="tall"] .rail.is-on { opacity: 1; visibility: visible; transition: opacity 0.4s, visibility 0s; pointer-events: auto; }
[data-mode="tall"] .rail button { --sq-r: 11px; --sq-fill: var(--white); flex: none; height: 44px; padding: 0 14px; font-size: 15px; font-weight: 600; transition: --sq-fill 0.25s, color 0.25s; }
[data-mode="tall"] .rail button[aria-expanded="true"] { --sq-fill: var(--ink); color: #fff; }
[data-mode="tall"] .chips { left: 18px; right: auto; bottom: max(14px, env(safe-area-inset-bottom)); gap: 6px; }
[data-mode="tall"] .chips button { height: 44px; min-width: 44px; padding: 0 12px; justify-content: center; }
[data-mode="tall"] .chips button:not(.is-on) span { display: none; }
[data-mode="tall"] .chips button:not(.is-on) { padding: 0; }

[data-mode="tall"] .room-pic { inset: 0 0 auto 0; height: 46%; }
[data-mode="tall"] .room-card { left: 0; right: 0; top: calc(46% - 26px); bottom: 0; width: auto; translate: 0 40px; }
[data-mode="tall"] .room-top { padding: 14px 12px 0 18px; }
[data-mode="tall"] .room-body { padding: 4px 18px 14px; }
[data-mode="tall"] .room-foot { padding: 10px 18px max(14px, env(safe-area-inset-bottom)); }

[data-mode="tall"] .ink { --k: 26px; }
[data-mode="tall"] .ink .line { top: 84px; font-size: var(--ls); }
[data-mode="tall"] .ink .note { left: 18px; right: 18px; bottom: max(16px, env(safe-area-inset-bottom)); }
[data-mode="tall"] #ink1 .note { display: none; }
[data-mode="tall"] #sh1, [data-mode="tall"] #sh2 { left: 18px; right: 18px; width: auto; top: calc(84px + 3 * var(--ls) + 18px); height: 120%; padding: 16px; }
[data-mode="tall"] .sheet li button { font-size: 15px; padding: 9px 0; min-height: 44px; grid-template-columns: 6.6em minmax(0, 1fr) 1em; }
[data-mode="tall"] .sheet li.is-solo button { grid-template-columns: minmax(0, 1fr) 1em; }
[data-mode="tall"] .grid { left: 18px; right: 18px; top: calc(84px + 2 * var(--ls) + 18px); grid-template-columns: 1fr; border-left: 0; }
[data-mode="tall"] .grid div { grid-template-columns: 5.2em minmax(0, 1fr); align-items: baseline; gap: 12px; min-height: 0; padding: 12px 0; border-right: 0; }
[data-mode="tall"] .grid b { font-size: 30px; }
[data-mode="tall"] .grid span { font-size: 15px; }
[data-mode="tall"] .grid div:nth-child(n+5) { display: none; }
[data-mode="tall"] .grid div:nth-child(4) { grid-template-columns: 1fr; }
[data-mode="tall"] .fan { left: 18px; right: 0; bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px)); overflow-x: auto; padding: 18px 18px 6px 0; scrollbar-width: none; }
[data-mode="tall"] .fan::-webkit-scrollbar { display: none; }
[data-mode="tall"] .fan button { flex: none; width: 150px; height: 104px; margin-right: 8px; padding: 12px; transform: none !important; }
[data-mode="tall"] .fan b { font-size: 18px; }
[data-mode="tall"] #h15 { top: calc(var(--band0) + 18px); bottom: auto; font-size: clamp(56px, 17vw, 120px); }
[data-mode="tall"] .close-sub { left: 18px; top: calc(var(--band0) + 18px + 2 * 0.9 * clamp(56px, 17vw, 120px) + 14px); bottom: auto; font-size: 18px; }
[data-mode="tall"] .close-btn { left: 18px; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); justify-content: center; min-height: 56px; font-size: 17px; --sq-r: 14px; }

/* a short phone: the hint goes, and the row of rooms moves up into its place */
@media (max-height: 720px) {
  [data-mode="tall"] { --c: var(--b); }
  [data-mode="tall"] .foot { display: none; }
}

/* the smallest phones */
@media (max-width: 359px) {
  [data-mode="tall"] .pop-steps { gap: 2px; justify-content: space-between; }
  [data-mode="tall"] .pop-steps span { display: none; }
}
@media (max-height: 600px) {
  [data-mode="tall"] .cap { padding: 12px 14px 13px; gap: 7px; }
  [data-mode="tall"] .cap ul { font-size: 15px; gap: 5px; }
  [data-mode="tall"] .cap dl button { min-height: 36px; padding: 6px 0; }
  /* no room for the row of rooms and the report together, so the report takes the row's place and the rooms stay tappable on the model */
  [data-mode="tall"][data-scene="run"] .rail { display: none; }
  [data-mode="tall"][data-scene="run"] .cap.at-run { top: var(--b); }
}

/* wide but short: a phone on its side */
@media (max-height: 520px) {
  [data-mode="wide"] .foot { display: none; }
  [data-mode="wide"] .room-card { top: 70px; bottom: 10px; }
  [data-mode="wide"] .pop { max-height: calc(100% - 84px); overflow-y: auto; }
  [data-mode="wide"] .sheet li button { padding: 3px 0; }
  [data-mode="wide"] { --top: 84px; }
  [data-mode="wide"] #sh1 { top: 84px; } [data-mode="wide"] #sh2 { top: 100px; }
  [data-mode="wide"] .grid div:nth-child(n+4) { display: none; }
  [data-mode="wide"] .close-sub { display: none; }
  [data-mode="wide"] #h15 { bottom: 84px; }
  [data-mode="wide"] .close-btn { bottom: 20px; }
  [data-mode="wide"] .cue { left: auto; right: var(--m); translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  .line i, .xl, .fade, .hot, .pop, .cap li, .room-card, .room-steps li, .room-pic img { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .hot .ring, .cue i { animation: none !important; }
}

/* ---------- no script ----------
   The story needs script to play. Without it the page shows its first frame and its headline, and says the rest in plain words. */
html:not(.js) .stage { position: relative; height: 72vh; height: 72svh; }
html:not(.js) #roofwrap { opacity: 1; }
html:not(.js) #shade, html:not(.js) .ink, html:not(.js) .ov:not(h1), html:not(.js) .pop, html:not(.js) .room { display: none; }
html:not(.js) h1.line i { transform: none; opacity: 1; filter: none; }
.nojs { padding: clamp(40px, 6vw, 96px) var(--m); background: var(--paper); display: grid; gap: 16px; }
.nojs p { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.28; letter-spacing: -0.012em; max-width: 34em; }
.nojs b, .nojs a { font-weight: 600; }
.nojs p:last-child { display: flex; flex-wrap: wrap; gap: 8px 28px; }
