/* v11 · "Open house"
   One white architectural model on paper. The page scrolls and the camera walks through it.
   Colour comes only from the work on the walls, and from one red sun at the end of the sightline.
   One typeface (Archivo): width does the hierarchy. Giant and condensed for the few big things, plain for the rest. */

:root {
  --paper: #f1f1ef;
  --ink: #000;
  --ink-2: #4b4b46;
  --ink-3: #85857f;
  --rule: rgba(0, 0, 0, .16);
  --sun: #e2432a;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --edge: clamp(18px, 3.4vw, 52px);
  --top: 62px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the model ---------- */
.stage { position: fixed; inset: 0; z-index: 1; }
#world { display: block; width: 100%; height: 100%; touch-action: pan-y; outline: none; }
.no-gl .stage, .no-gl .tags, .no-gl .loader, .no-gl .hero-hint, .no-gl .plan-dot { display: none; }
.flat { display: none; }
.no-gl .flat { display: block; }

/* room names pinned to the model while it is seen from outside */
.tags { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; padding: 0 0 20px 9px; border: 0; border-left: 1px solid var(--ink); background: none; font: 500 13.5px/1 var(--font); white-space: nowrap; cursor: pointer; pointer-events: auto; transform-origin: 0 100%; transition: opacity .3s; }
.tag::after { content: ''; position: absolute; left: -3px; bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.tag.is-hot { font-weight: 700; }
.loading .tag { opacity: 0; }

.loader { position: fixed; left: var(--edge); bottom: 18px; z-index: 8; font-size: 13.5px; color: var(--ink-2); transition: opacity .5s; }
html:not(.loading) .loader { opacity: 0; pointer-events: none; }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--top); padding: 0 var(--edge); }
.top::before { content: ''; position: absolute; inset: 0 0 -18px; z-index: -1; background: linear-gradient(var(--paper) 58px, transparent); pointer-events: none; opacity: 0; transition: opacity .4s; }
.is-in .top::before, .no-gl .top::before { opacity: 1; }
.top-name { font-weight: 650; font-size: 16px; letter-spacing: -.01em; text-decoration: none; }
.top-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 26px); font-size: 14.5px; font-weight: 500; }
.top-links a { text-decoration: none; padding: 6px 0; }
.top-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.top-status { display: inline-flex; align-items: center; gap: 8px; }
.top-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 550; font-size: 15.5px; text-decoration: none; transition: background .25s, color .25s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.more { display: inline-block; font-weight: 550; font-size: 15.5px; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.more:hover { text-decoration-color: var(--sun); }

/* ---------- type ---------- */
.h2 { font-size: clamp(32px, 3.5vw, 54px); line-height: 1.02; font-weight: 520; font-stretch: 78%; letter-spacing: -.012em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 46ch; color: var(--ink-2); }

/* ---------- entrance ---------- */
/* no z-index here on purpose: the name sits under the model (z 0 < stage 1), the copy sits over it (z 2) */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--top) + 3.5vh) var(--edge) 14px; pointer-events: none; }
.hero-say { position: relative; z-index: 2; max-width: 420px; pointer-events: auto; }
.hero-role { font-size: clamp(22px, 2.05vw, 31px); line-height: 1.1; font-weight: 520; font-stretch: 84%; letter-spacing: -.01em; }
.hero-line { margin-top: 14px; max-width: 40ch; color: var(--ink-2); }
.hero-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-hint { position: relative; z-index: 2; align-self: flex-end; margin: auto 0 14px; max-width: 26ch; text-align: right; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.hero-name { position: relative; z-index: 0; font-size: 17vw; line-height: .76; font-weight: 400; font-stretch: 62%; letter-spacing: -.012em; white-space: nowrap; padding-bottom: .19em; user-select: none; }
.hero-name span { display: inline-block; transition: transform 1.2s var(--ease), opacity .8s; }
.hero-name span + span { transition-delay: .08s; }
.hero-say, .hero-hint { transition: opacity .9s .25s, transform 1.1s var(--ease) .25s; }
.loading .hero-name span { transform: translateY(26%); opacity: 0; }
.loading .hero-say, .loading .hero-hint { opacity: 0; transform: translateY(14px); }
.no-gl .hero-flat { position: absolute; right: var(--edge); top: calc(var(--top) + 3.5vh); width: min(34vw, 380px); filter: grayscale(1); }
.gap { height: 70svh; }
.no-gl .gap { display: none; }

/* ---------- rooms: text scrolls past while the camera walks ---------- */
.room, .quote, .roles, .end, .foot { position: relative; z-index: 2; }
.room, .quote, .roles, .end { pointer-events: none; }
.exhibit { display: flex; align-items: center; min-height: 104svh; padding: 0 var(--edge); }
.exhibit-head { min-height: 88svh; }
.panel { position: relative; width: min(430px, 100%); pointer-events: auto; }
.panel-r { margin-left: auto; }
/* a soft pool of paper behind the text, so the model's lines never run through it */
.panel::before { content: ''; position: absolute; inset: -70px -90px; z-index: -1; background: radial-gradient(closest-side, var(--paper) 74%, transparent); pointer-events: none; }
.where, .when { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.panel h3 { margin-top: 10px; font-size: clamp(24px, 2.1vw, 31px); line-height: 1.08; font-weight: 550; font-stretch: 86%; letter-spacing: -.01em; text-wrap: balance; }
.kpi { margin-top: 26px; }
.kpi b { display: block; font-size: clamp(76px, 8.4vw, 136px); line-height: .82; font-weight: 520; font-stretch: 62%; letter-spacing: -.01em; white-space: nowrap; }
.kpi-words b { font-size: clamp(56px, 5.6vw, 92px); }
.kpi span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.facts { margin: 26px 0 22px; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 14px; font-weight: 500; color: var(--ink-3); padding-top: 1px; }
.facts dd { font-size: 15.5px; line-height: 1.45; }
.no-gl .panel .flat { margin-top: 22px; }
.no-gl .exhibit { min-height: 0; padding-block: 7svh; }
.no-gl .panel { width: min(680px, 100%); margin-left: 0; }
.no-gl .panel::before, .no-gl .end-in::before { display: none; }
.no-gl .quote, .no-gl .end { min-height: 0; padding-block: 12svh; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 30px; border-top: 1px solid var(--ink); }
.stats > div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.stats dd { font-size: clamp(40px, 4vw, 62px); line-height: .9; font-weight: 520; font-stretch: 62%; white-space: nowrap; }
.stats dt { margin-top: 8px; font-size: 14px; line-height: 1.3; color: var(--ink-2); }

.steps .exhibit { min-height: 84svh; }
.steps .org { margin-top: 6px; font-weight: 550; font-size: 15.5px; }
.steps .org + p { margin-top: 12px; color: var(--ink-2); }
.steps h3 { font-size: clamp(28px, 2.7vw, 40px); font-stretch: 78%; }

/* ---------- doorways: the model steps back and the words take the wall ---------- */
.quote { display: grid; align-content: center; min-height: 118svh; padding: 0 var(--edge); }
.quote-in { max-width: 1060px; pointer-events: auto; }
.quote .h2 { font-size: clamp(40px, 6.6vw, 112px); line-height: .88; font-stretch: 62%; max-width: 13ch; }
.quote-src { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.quote blockquote { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(24px, 4vw, 64px); margin: clamp(30px, 5vh, 56px) 0 26px; padding-top: 22px; border-top: 1px solid var(--ink); }
.quote blockquote p { font-size: clamp(19px, 1.65vw, 25px); line-height: 1.32; font-stretch: 92%; }

/* ---------- art ---------- */
.room-art { height: 250svh; }
.room-art [data-pose] { position: absolute; left: 0; width: 1px; height: 1px; }
.room-art [data-pose='artA'] { top: 50svh; }
.room-art [data-pose='artB'] { bottom: 50svh; }
.art-cap { position: sticky; top: calc(var(--top) + 3.5vh); width: min(400px, 100% - 2 * var(--edge)); margin-left: var(--edge); pointer-events: auto; }
.art-cap::before { content: ''; position: absolute; inset: -40px -80px -60px -60px; z-index: -1; background: radial-gradient(closest-side, var(--paper) 50%, transparent); pointer-events: none; }
.art-cap .lede { font-size: 15.5px; max-width: 34ch; }
.art-ig { position: absolute; left: var(--edge); bottom: 8svh; pointer-events: auto; }
.gl .art-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.no-gl .room-art { height: auto; padding: 14svh 0; }
.no-gl .art-cap { position: static; }
.no-gl .art-ig { position: static; margin: 26px var(--edge) 0; }
.no-gl .art-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 34px var(--edge) 0; pointer-events: auto; }
.art-list button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font-size: 13.5px; }
.art-list img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 6px; }

/* ---------- roles ---------- */
.roles { padding: 24svh var(--edge) 20svh; }
.roles-in { max-width: 1120px; pointer-events: auto; }
.roles-list { margin-top: clamp(26px, 4vh, 44px); border-top: 1px solid var(--ink); }
.roles details { border-bottom: 1px solid var(--ink); }
.roles summary { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: .16em 0 .2em; font-size: clamp(34px, 5.6vw, 92px); line-height: .96; font-weight: 520; font-stretch: 62%; letter-spacing: -.005em; cursor: pointer; list-style: none; color: var(--ink-3); transition: color .3s; }
.roles summary::-webkit-details-marker { display: none; }
.roles summary::after { content: '+'; font-size: .5em; font-weight: 400; font-stretch: 100%; line-height: 1; transition: rotate .4s var(--ease); }
.roles summary:hover, .roles details[open] summary { color: var(--ink); }
.roles details[open] summary::after { rotate: 45deg; }
.role-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14px clamp(24px, 4vw, 64px); padding: 6px 0 30px; }
.role-line { font-size: clamp(21px, 1.9vw, 28px); line-height: 1.14; font-weight: 520; font-stretch: 84%; max-width: 22ch; }
.role-body ul { display: grid; gap: 8px; color: var(--ink-2); }
.role-body li { padding-left: 18px; position: relative; }
.role-body li::before { content: ''; position: absolute; left: 0; top: .68em; width: 9px; height: 1.5px; background: var(--ink); }
.role-body .more { grid-column: 2; justify-self: start; margin-top: 6px; }
.kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(20px, 3vw, 44px); margin-top: clamp(44px, 8vh, 80px); }
.kit dt { font-weight: 600; font-size: 15px; }
.kit dd { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* ---------- the last room ---------- */
.end { display: flex; align-items: flex-end; min-height: 118svh; padding: 0 var(--edge) 17svh; }
.end-in { position: relative; pointer-events: auto; }
.end-in::before { content: ''; position: absolute; inset: -90px -120px -60px -80px; z-index: -1; background: radial-gradient(closest-side, var(--paper) 70%, transparent); pointer-events: none; }
.end h2 { font-size: clamp(50px, 8.6vw, 150px); line-height: .84; font-weight: 520; font-stretch: 62%; letter-spacing: -.01em; max-width: 10ch; }
.end .lede { margin-top: 24px; max-width: 44ch; }
.end-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 18px var(--edge) 54px; border-top: 1px solid var(--rule); background: var(--paper); font-size: 13.5px; color: var(--ink-2); }
.foot a { text-underline-offset: 3px; }

/* ---------- floor plan: where you are ---------- */
.plan { position: fixed; left: calc(var(--edge) - 10px); bottom: 8px; z-index: 6; display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 10px; background: var(--paper); font-size: 13.5px; font-weight: 500; transition: opacity .5s, transform .6s var(--ease); }
.plan.is-off { opacity: 0; transform: translateY(10px); pointer-events: none; }
.plan-rooms { position: relative; display: flex; width: 200px; height: 18px; }
.plan-rooms button { flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 1px solid var(--ink); margin-left: -1px; background: var(--paper); cursor: pointer; transition: background .3s; }
.plan-rooms button:hover { background: #dcdcd8; }
.plan-rooms button.is-here { background: #fff; }
.plan-dot { position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--sun); pointer-events: none; }
.plan-name { min-width: 8ch; }
.no-gl .plan.is-off { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: calc(var(--top) + 8px) var(--edge) 22px; border: 0; background: var(--paper); color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
.lightbox::backdrop { background: var(--paper); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; min-height: 0; }
.lb-media { position: relative; min-height: 0; }
.lb-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .22)); }
.lightbox[open] .lb-media img { animation: lb .6s var(--ease); }
@keyframes lb { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lb-title { font-size: clamp(26px, 3vw, 44px); line-height: 1; font-weight: 520; font-stretch: 70%; }
.lb-meta { font-size: 14.5px; color: var(--ink-2); }
.lb-bar { position: absolute; right: var(--edge); bottom: 22px; display: flex; gap: 6px; }
.lb-bar button { min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); background: none; font-weight: 550; font-size: 14.5px; cursor: pointer; }
.lb-bar button:hover { background: var(--ink); color: var(--paper); }

/* ---------- cursor: drafting brackets that frame whatever you can act on ---------- */
.cur { display: none; position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; mix-blend-mode: difference; }
.has-cur .cur { display: block; }
.cur i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; border: 1.5px solid #fff; will-change: transform; }
.cur i:nth-child(1) { border-right: 0; border-bottom: 0; }
.cur i:nth-child(2) { border-left: 0; border-bottom: 0; }
.cur i:nth-child(3) { border-left: 0; border-top: 0; }
.cur i:nth-child(4) { border-right: 0; border-top: 0; }
.cur b { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: #fff; will-change: transform; }
.cur-tip { display: none; position: fixed; left: 0; top: 0; z-index: 100; padding: 6px 8px 5px; background: var(--ink); color: var(--paper); font: 550 12.5px/1 var(--font); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; will-change: transform; }
.has-cur .cur-tip { display: block; }
.cur-tip.is-on { opacity: 1; }
.cur.is-out { opacity: 0; }
.has-cur, .has-cur * { cursor: none !important; }

.nojs { position: relative; z-index: 3; padding: 20px var(--edge); }

/* ---------- small screens: the model takes the top, the words take the bottom ---------- */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 10px; }
  .hero-say { max-width: 330px; }
  .hero-hint { order: 2; align-self: flex-start; text-align: left; max-width: none; margin: auto 0 12px; }
  .hero-name { order: 3; white-space: normal; line-height: .8; }
  .hero-name span { display: block; }
  .hero-say { order: 1; }
  .top-links a:first-child { display: none; }
  .exhibit { align-items: flex-end; min-height: 124svh; padding-bottom: 9svh; }
  .exhibit-head { min-height: 96svh; }
  .steps .exhibit { min-height: 100svh; }
  .panel { width: 100%; }
  .panel::before { inset: -70px calc(-1 * var(--edge)) -12svh; background: linear-gradient(transparent, var(--paper) 70px); }
  .kpi { margin-top: 18px; }
  .kpi b { font-size: clamp(64px, 20vw, 96px); }
  .kpi-words b { font-size: clamp(46px, 13.5vw, 70px); }
  .facts { margin: 18px 0 16px; }
  .facts > div { grid-template-columns: 84px 1fr; padding: 9px 0; }
  .facts dd { font-size: 15px; }
  .stats { margin-top: 20px; }
  .quote blockquote { grid-template-columns: 1fr; }
  .role-body { grid-template-columns: 1fr; }
  .role-body .more { grid-column: 1; }
  .kit { grid-template-columns: 1fr; }
  .art-cap::before { inset: -30px calc(-1 * var(--edge)) -40px; background: linear-gradient(var(--paper) 70%, transparent); }
  .plan-rooms { width: 132px; }
  .plan { bottom: auto; top: calc(var(--top) - 8px); background: none; }
  .hero-line { display: none; }
  .end-in::before { inset: -40px calc(-1 * var(--edge)) -17svh; background: linear-gradient(transparent, var(--paper) 60px); }
  .foot { padding-bottom: 60px; }
  .lb-bar { position: static; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-name span, .hero-say, .hero-hint, .plan, .loader { transition: none; }
  .lightbox[open] .lb-media img { animation: none; }
}

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