/* LINEA — the fictional residence's own world (Newsreader, Manrope, one champagne line). MOTERA appears only in the
   about view, in its own Instrument Serif, Archivo, graphite and stone. Motion: settle .2,.8,.2,1; travel .7,0,.2,1. */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(../fonts/Newsreader-normal-300.woff2) format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 300 400; font-display: swap; src: url(../fonts/Newsreader-italic-300.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 500; font-display: swap; src: url(../fonts/Manrope-normal-400.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSerif-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/InstrumentSerif-italic-latin.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/JetBrainsMono-normal-latin.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/Archivo-normal-latin.woff2) format('woff2'); }

:root {
  --night: #0B0D12; --night-2: #11141B; --lime: #EDE6DA; --lime-2: rgba(237, 230, 218, .76); --lime-3: rgba(237, 230, 218, .56);
  --champ: #D8C29C; --champ-2: rgba(216, 194, 156, .55); --champ-halo: rgba(216, 194, 156, .18); --hair: rgba(237, 230, 218, .3); --scrim: 9, 10, 12;
  --settle: cubic-bezier(.2, .8, .2, 1); --travel: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(20px, 5vw, 72px); --top: clamp(18px, 3.2vh, 34px);
  --graphite: #101112; --stone: #F3F0EB; --raspberry: #B63868; --muted: #5E5A54;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--lime); }
body { font: 400 16px/1.5 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .32; cursor: default; }
:focus-visible { outline: 2px solid var(--champ); outline-offset: 4px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr { 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: 90; background: var(--lime); color: var(--night); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { position: fixed; inset: auto 20px 20px; z-index: 70; }

/* type: one serif voice for names and numbers, one sans for everything that is information */
.label { margin: 0; font: 500 12px/1.2 'Manrope'; letter-spacing: .22em; text-transform: uppercase; color: var(--lime-2); }
.label--champ { color: var(--champ); }
.display { margin: 0; font: 300 clamp(44px, 6.2vw, 104px)/.97 'Newsreader', serif; letter-spacing: -.024em; text-wrap: balance; }
.display i, .title i { font-style: italic; }
.title { margin: 0; font: 300 clamp(36px, 4.2vw, 72px)/1.02 'Newsreader', serif; letter-spacing: -.02em; text-wrap: balance; }
.sub { margin: 0; font: 400 clamp(15px, 1.2vw, 18px)/1.5 'Manrope'; color: var(--lime-2); }
.fine { margin: 0; font: 400 13px/1.5 'Manrope'; color: var(--lime-3); letter-spacing: .01em; }
.label, .sub, .fine, .display, .title, .hint, .roomnav, .floorcard__num { text-shadow: 0 1px 18px rgba(var(--scrim), .6); }

/* the hairline call to action */
.cta { display: inline-flex; align-items: center; gap: 18px; font: 500 13px/1 'Manrope'; letter-spacing: .2em; text-transform: uppercase;
       text-decoration: none; padding: 15px 0; color: var(--lime); }
.cta__line { position: relative; width: 64px; height: 1px; background: var(--champ); transition: width .5s var(--settle); flex: none; }
.cta__line::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--champ); border-right: 1px solid var(--champ); transform: rotate(45deg); }
.cta:hover .cta__line, .cta:focus-visible .cta__line { width: 96px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hair); border-radius: 50%; font: 300 21px/1 'Manrope';
            background: rgba(var(--scrim), .42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color .3s, background-color .3s; }
.icon-btn:hover:not(:disabled) { border-color: var(--champ); background: rgba(var(--scrim), .6); }
.icon-btn--text { width: auto; padding: 0 16px; border-radius: 22px; font: 500 12px/1 'Manrope'; letter-spacing: .16em; text-transform: uppercase; }

/* top bar */
.topbar { position: fixed; z-index: 40; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
          padding: calc(var(--top) + env(safe-area-inset-top)) var(--gutter) 0; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.wordmark { font: 300 15px/1 'Manrope'; letter-spacing: .62em; text-decoration: none; padding: 12px 0; position: relative; }
.wordmark::after { content: ''; position: absolute; left: 0; bottom: 2px; width: 30px; height: 1px; background: var(--champ); transition: width .5s var(--settle); }
.wordmark:hover::after { width: 60px; }
.topbar__right { display: flex; gap: clamp(18px, 2.4vw, 34px); align-items: center; }
.toplink { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 'Manrope'; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 14px 0; color: var(--lime-2); transition: color .3s; }
.toplink:hover { color: var(--lime); }
.menu-btn__lines { position: relative; width: 22px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
body[data-view="about"] .topbar { color: var(--graphite); }
body[data-view="about"] .toplink { color: var(--muted); }
body[data-view="about"] .wordmark::after { background: var(--graphite); }
[data-show-in] { display: none; }
body[data-view="room"] [data-show-in~="room"], body[data-view="tower"] [data-show-in~="tower"] { display: inline-flex; }

/* views */
main { position: fixed; inset: 0; }
.view { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--settle), visibility 0s linear .7s; }
.view.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--settle), visibility 0s; }
.stage { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.scrim { position: absolute; inset: 0; pointer-events: none; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 26px; background: var(--night);
          transition: opacity .9s var(--settle), visibility 0s linear .9s; }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__mark { font: 300 18px/1 'Manrope'; letter-spacing: .62em; margin-right: -.62em; }
.loader__line { width: 160px; height: 1px; background: var(--hair); overflow: hidden; }
.loader__line span { display: block; height: 100%; width: 0; background: var(--champ); transition: width .4s var(--settle); }

/* 01 arrival */
.stage--drift .stage__img { transform: scale(1.06); transition: transform 14s var(--settle); }
.is-active .stage--drift .stage__img.is-in { transform: scale(1) translate3d(var(--px, 0), var(--py, 0), 0); }
.scrim--arrival { background: linear-gradient(90deg, rgba(var(--scrim), .62), rgba(var(--scrim), .18) 46%, rgba(var(--scrim), 0) 62%),
                  linear-gradient(0deg, rgba(var(--scrim), .45), rgba(var(--scrim), 0) 30%); }
.arrival__copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-38%); max-width: min(46vw, 760px); display: grid; gap: 28px; }
.arrival__copy .display { animation: rise 1.1s var(--settle) .5s both; }
.arrival__copy .label { animation: rise 1s var(--settle) .3s both; }
.arrival__copy .cta { animation: rise 1s var(--settle) .8s both; justify-self: start; }
.concept-link { position: absolute; right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom)); font: 400 13px/1 'Manrope'; letter-spacing: .06em; color: var(--lime-3); text-decoration: none; padding: 12px 0; }
.concept-link:hover { color: var(--lime); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 02 tower: the plate cranes; the selected floor's band of the lit plate fades up */
.tower__stage { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.tower__plate { position: absolute; top: 0; will-change: transform; transition: transform .8s var(--settle); }
.tower__plate.no-anim { transition: none; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plate--lit { opacity: 0; transition: opacity .34s var(--settle); }
.plate--lit.is-on { opacity: 1; transition: opacity .5s var(--settle) .06s; }
.tower__bands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tower__bands .band { fill: none; stroke: rgba(237, 230, 218, .0); stroke-width: 1; transition: stroke .3s var(--settle); }
.tower__bands .band.is-hover { stroke: rgba(237, 230, 218, .55); stroke-dasharray: 2 4; }
.tower__bands .band.is-on { stroke: rgba(216, 194, 156, .75); }
.scrim--tower { background: linear-gradient(0deg, rgba(var(--scrim), .82), rgba(var(--scrim), .12) 40%, rgba(var(--scrim), 0) 58%),
                linear-gradient(270deg, rgba(var(--scrim), .35), rgba(var(--scrim), 0) 22%); }
.view--tower.is-entering .rail, .view--tower.is-entering .rail__step, .view--tower.is-entering .floorcard, .view--tower.is-entering .leader, .view--tower.is-entering .hint { opacity: 0; transition: opacity .4s var(--settle); }
.leader { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.leader line { stroke: var(--champ); stroke-width: 1; opacity: .85; }
.rail { position: absolute; right: calc(var(--gutter) - 12px); top: 0; bottom: 0; width: 92px; touch-action: none; cursor: ns-resize; }
.rail:focus-visible { outline-offset: -6px; }
.rail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail__svg text { font: 400 11px 'Manrope'; letter-spacing: .06em; fill: var(--lime-3); }
.rail__spine { stroke: rgba(237, 230, 218, .28); }
.rail__tick { stroke: rgba(237, 230, 218, .3); }
.rail__tick.is-big { stroke: rgba(237, 230, 218, .62); }
.rail__halo { fill: rgba(11, 13, 18, .5); stroke: var(--champ-2); }
.rail__dot { fill: var(--champ); }
.rail__now { font: 300 26px 'Newsreader' !important; fill: var(--lime) !important; letter-spacing: 0 !important; }
.rail__step { position: absolute; right: calc(var(--gutter) + 6px); bottom: calc(clamp(40px, 9vh, 96px) + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.hint { position: absolute; right: calc(var(--gutter) + 104px); top: calc(var(--top) + 70px); margin: 0; font: 400 13px/1.4 'Manrope'; letter-spacing: .04em; color: var(--lime-3); transition: opacity .5s; text-align: right; max-width: 200px; }
.hint.is-gone { opacity: 0; }
.floorcard { position: absolute; left: var(--gutter); bottom: calc(clamp(40px, 9vh, 96px) + env(safe-area-inset-bottom)); width: min(520px, calc(100vw - 2 * var(--gutter) - 120px)); display: grid; gap: 12px; }
.floorcard__num { margin: 0 0 -6px; font: 300 clamp(64px, 7.2vw, 118px)/.9 'Newsreader', serif; letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.floorcard__num #fc-num { display: inline-block; }
.floorcard__word { font-size: .34em; letter-spacing: .01em; font-style: italic; color: var(--lime-2); vertical-align: .9em; margin-right: .1em; }
.floorcard__title { font-size: clamp(26px, 2.4vw, 38px); }
.floorcard .cta { justify-self: start; margin-top: 4px; }
.floorcard__note { max-width: 46ch; }

/* 03 rooms: the panorama is the room */
.pano { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; display: block; outline: none; }
.pano.is-dragging { cursor: grabbing; }
.pano:focus-visible { outline: 2px solid var(--champ); outline-offset: -6px; }
.pano--next { opacity: 0; pointer-events: none; z-index: 2; }
.room__fallback { z-index: 1; }
.walk { z-index: 3; }
.scrim--room { z-index: 4; background: linear-gradient(0deg, rgba(var(--scrim), .72), rgba(var(--scrim), .18) 26%, rgba(var(--scrim), 0) 42%),
                linear-gradient(180deg, rgba(var(--scrim), .55), rgba(var(--scrim), 0) 24%); }
.room__loading { position: absolute; z-index: 5; left: 0; top: 0; height: 1px; width: 0; background: var(--champ); opacity: 0; }
.is-loading .room__loading { opacity: .8; animation: load 1.6s var(--settle) infinite; }
@keyframes load { from { width: 0; left: 0; } 50% { width: 40%; left: 30%; } to { width: 0; left: 100%; } }
.room__copy { position: absolute; z-index: 6; left: var(--gutter); top: calc(var(--top) + 84px); max-width: 640px; display: grid; gap: 12px; pointer-events: none; transition: opacity .5s var(--settle); }
.room__copy.is-out { opacity: 0; }
.room__copy.is-quiet { opacity: .28; }
.room__copy .title--room { animation: rise .9s var(--settle) both; }
.room__note { margin-top: 2px; }
.floorstep { position: absolute; z-index: 6; left: var(--gutter); bottom: calc(146px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 4px;
             border: 1px solid var(--hair); border-radius: 26px; padding: 3px; background: rgba(var(--scrim), .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.floorstep__btn { width: 40px; height: 40px; border-radius: 50%; font-size: 13px; color: var(--lime-2); transition: background-color .3s, color .3s; }
.floorstep__btn:hover:not(:disabled) { background: rgba(237, 230, 218, .08); color: var(--lime); }
.floorstep__now { padding: 0 12px; text-decoration: none; font: 500 12px/1 'Manrope'; letter-spacing: .16em; text-transform: uppercase; color: var(--lime-2); white-space: nowrap; }
.floorstep__now b { font: 300 22px/1 'Newsreader'; letter-spacing: 0; color: var(--lime); margin-left: 4px; vertical-align: -2px; }
.drag-hint { position: absolute; z-index: 6; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%) scale(.98); padding: 12px 20px 12px 46px; border-radius: 24px;
             background: rgba(var(--scrim), .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--hair);
             font: 500 12px/1 'Manrope'; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); opacity: 0; pointer-events: none; transition: opacity .6s var(--settle), transform .6s var(--settle); white-space: nowrap; }
.drag-hint::before { content: ''; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1px solid var(--champ); }
.drag-hint::after { content: ''; position: absolute; left: 23px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--champ); animation: nudge 2.2s var(--settle) infinite; }
.drag-hint.is-on { opacity: 1; transform: translate(-50%, -50%); }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-4px); } 70% { transform: translateX(4px); } }
.view-ctrl { position: absolute; z-index: 6; right: var(--gutter); bottom: calc(146px + env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.minimap { position: absolute; z-index: 6; right: var(--gutter); top: calc(var(--top) + 70px); width: 200px; height: 128px; border-radius: 2px; opacity: .9; transition: opacity .3s; }
.minimap:hover { opacity: 1; }
.minimap svg { width: 100%; height: 100%; overflow: visible; }
.minimap .room { fill: rgba(237, 230, 218, .04); }
.minimap .room.is-here { fill: rgba(216, 194, 156, .32); }
.minimap .m-terrace { stroke: rgba(237, 230, 218, .35); stroke-width: .7; stroke-dasharray: 2 3; fill: none; }
.minimap .m-glass { stroke: var(--lime); stroke-width: 1.2; fill: none; }
.minimap .m-wall { stroke: rgba(237, 230, 218, .6); stroke-width: .8; fill: none; }
.minimap .here__dot { fill: var(--champ); }
.roomnav { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: calc(40px + env(safe-area-inset-bottom)); height: 76px; }
.roomnav__line { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--hair); }
.roomnav__node { position: absolute; top: -6px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--champ); box-shadow: 0 0 0 7px var(--champ-halo);
                 left: 0; transition: left .5s var(--travel); }
.roomnav__list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.roomnav__list a { display: block; text-align: center; font: 400 16px/1 'Manrope'; letter-spacing: .03em; text-decoration: none; color: var(--lime-3); padding: 12px 6px 30px; transition: color .3s; }
.roomnav__list a:hover { color: var(--lime-2); }
.roomnav__list a[aria-current="page"], .roomnav__list a.is-target { color: var(--lime); }
.roomnav__count { position: absolute; right: 0; top: 60px; font: 500 11px/1 'Manrope'; letter-spacing: .16em; color: var(--lime-3); }
.roomnav .short { display: none; }

/* the plan glide: the floor drawn over the room, the node travels, the next room opens from its shape */
.glide { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .3s var(--settle); }
.glide.is-on { opacity: 1; }
.glide svg { width: 100%; height: 100%; }
.glide .wall { fill: none; stroke: rgba(237, 230, 218, .78); stroke-width: 1.4; }
.glide .glass { fill: none; stroke: var(--lime); stroke-width: 2.2; }
.glide .dest { fill: rgba(216, 194, 156, .22); stroke: var(--champ); stroke-width: 1.4; }
.glide .lbl { font: 500 13px 'Manrope'; letter-spacing: .24em; fill: var(--champ); }
.veil { position: fixed; inset: 0; z-index: 29; background: var(--night); opacity: 0; pointer-events: none; transition: opacity .3s var(--settle); }
.veil.is-on { opacity: .45; }
.veil.is-full { opacity: 1; transition-duration: .55s; }

/* 04 plan: an architectural sheet */
.view--plan { background: radial-gradient(110% 80% at 62% 44%, #151922, var(--night) 72%); display: grid; grid-template-columns: minmax(280px, 28%) 1fr;
              grid-template-rows: auto 1fr auto; padding: calc(var(--top) + 96px) var(--gutter) calc(32px + env(safe-area-inset-bottom)); gap: 22px 56px; }
.plan__head { display: grid; gap: 14px; align-content: start; }
.plan__wrap { grid-row: 1 / 4; grid-column: 2; position: relative; min-height: 0; touch-action: none; }
.plan__wrap.is-zoomed { cursor: grab; }
.plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.plan__zoom { position: absolute; right: 0; bottom: 0; display: flex; gap: 8px; }
.plan__svg .room { fill: rgba(237, 230, 218, .025); stroke: none; cursor: pointer; transition: fill .35s var(--settle); outline: none; }
.plan__svg .room.gallery { fill: rgba(237, 230, 218, .045); cursor: default; }
.plan__svg .room.is-here { fill: rgba(216, 194, 156, .09); }
.plan__svg .room:hover, .plan__svg .room.is-hover, .plan__svg .room:focus-visible { fill: rgba(216, 194, 156, .16); }
.plan__svg .room.is-selected { fill: rgba(216, 194, 156, .3); }
.plan__svg .room:focus-visible { stroke: var(--champ); stroke-width: 1.5; }
.plan__svg .paving { opacity: .55; pointer-events: none; }
.plan__svg .pave-line { stroke: rgba(237, 230, 218, .1); stroke-width: .8; fill: none; }
.plan__svg .wall { stroke: rgba(237, 230, 218, .9); fill: none; stroke-linecap: square; stroke-linejoin: miter; pointer-events: none; }
.plan__svg .wall--core { stroke: rgba(237, 230, 218, .82); }
.plan__svg .glass { stroke: var(--lime); stroke-width: 3.4; fill: none; pointer-events: none; }
.plan__svg .glass-core { stroke: #12151c; stroke-width: 1.2; fill: none; pointer-events: none; }
.plan__svg .balustrade { stroke: rgba(237, 230, 218, .55); stroke-width: 1; fill: none; pointer-events: none; }
.plan__svg .cut { stroke: #141821; fill: none; pointer-events: none; }
.plan__svg .jamb { stroke: var(--champ); stroke-width: 1.4; pointer-events: none; }
.plan__svg .door-track { stroke: var(--champ-2); stroke-width: 1; stroke-dasharray: 3 3; fill: none; pointer-events: none; }
.plan__svg .lift { fill: rgba(237, 230, 218, .06); stroke: rgba(237, 230, 218, .5); stroke-width: 1; pointer-events: none; }
.plan__svg .lab text { pointer-events: none; paint-order: stroke; stroke: rgba(11, 13, 18, .85); stroke-width: 4px; stroke-linejoin: round; }
.plan__svg .lab__name { font: 500 12px 'Manrope'; letter-spacing: .2em; fill: var(--lime); }
.plan__svg .lab__area { font: 400 11px 'Manrope'; letter-spacing: .04em; fill: var(--lime-3); }
.plan__svg .lab--small .lab__name { font-size: 10px; fill: var(--lime-2); }
.plan__svg .lab__tag { font: 500 9px 'Manrope'; letter-spacing: .2em; fill: var(--lime-3); paint-order: stroke; stroke: rgba(11, 13, 18, .85); stroke-width: 4px; pointer-events: none; }
.plan__svg .here__ring { fill: none; stroke: var(--champ-2); animation: here 2.4s var(--settle) infinite; transform-box: fill-box; transform-origin: center; }
.plan__svg .here__dot { fill: var(--champ); }
@keyframes here { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.plan__svg .scalebar .sb-a { fill: var(--lime-2); } .plan__svg .scalebar .sb-b { fill: none; stroke: var(--lime-3); stroke-width: .8; }
.plan__svg .scalebar text, .plan__svg .bayline { font: 500 10px 'Manrope'; letter-spacing: .16em; fill: var(--lime-3); }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; align-self: end; }
.plan__list a, .plan__static { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-top: 1px solid rgba(237, 230, 218, .14);
                               font: 400 16px/1 'Manrope'; text-decoration: none; color: var(--lime-2); transition: color .3s, padding .4s var(--settle); }
.plan__list a::before { content: ''; width: 0; height: 1px; background: var(--champ); align-self: center; transition: width .4s var(--settle); margin-right: -24px; }
.plan__list a:hover, .plan__list a:focus-visible, .plan__list a.is-hover, .plan__list a.is-target { color: var(--lime); }
.plan__list a:hover::before, .plan__list a.is-hover::before, .plan__list a.is-target::before { width: 18px; margin-right: 0; }
.plan__list a.is-here span::after { content: ' · you are here'; color: var(--champ); font-size: 12px; letter-spacing: .04em; }
.plan__list a > span { margin-right: auto; }
.plan__list em { font-style: normal; color: var(--lime-3); font-size: 14px; }
.plan__static { color: var(--lime-3); }
.plan__foot { grid-column: 1; display: grid; gap: 10px; align-content: start; }
.plan__foot .cta { justify-self: start; }

/* 05 about: MOTERA's own identity */
.view--about { background: var(--stone); color: var(--graphite); overflow-y: auto; }
.about { max-width: 1120px; margin: 0 auto; padding: calc(var(--top) + 120px) var(--gutter) 80px; display: grid; gap: 34px; }
.about__logo { width: 200px; height: auto; }
.about__kicker { margin: 0; font: 400 12px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.about__title { margin: 0; font: 400 clamp(44px, 6vw, 92px)/1.02 'Instrument Serif', serif; letter-spacing: -.01em; max-width: 14ch; }
.about__title i { font-style: italic; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; font: 400 17px/1.6 'Archivo', sans-serif; color: #3A3834; }
.about__cols p { margin: 0 0 14px; max-width: 52ch; }
.about__h { font: 400 12px/1 'JetBrains Mono', ui-monospace, monospace !important; letter-spacing: .08em; text-transform: uppercase; color: var(--muted) !important; margin-top: 8px !important; }
.about__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.mpill { display: inline-flex; align-items: center; gap: 16px; height: 60px; padding: 0 30px 0 20px; border-radius: 30px; background: var(--graphite); color: var(--stone);
         font: 500 17px/1 'Archivo', sans-serif; text-decoration: none; }
.mpill i { font: italic 400 21px/1 'Instrument Serif', serif; }
.mpill__c { width: 22px; height: 22px; border-radius: 50%; background: var(--stone); position: relative; }
.mpill__c::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--raspberry); }
.about__back { font: 400 15px/1 'Archivo'; color: var(--graphite); padding: 12px 0; }

/* menu: an opaque sheet, the sections set as an index, the floor's rooms beside it */
.menu { position: fixed; inset: 0; z-index: 60; }
.menu__panel { position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 10%, #171b24, var(--night) 60%); overflow-y: auto;
               display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto 1fr; gap: 0 clamp(32px, 6vw, 120px);
               padding: calc(var(--top) + env(safe-area-inset-top)) var(--gutter) calc(36px + env(safe-area-inset-bottom));
               clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--travel); }
.menu.is-open .menu__panel { clip-path: inset(0 0 0 0); }
.menu__top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.menu__mark { font: 300 15px/1 'Manrope'; letter-spacing: .62em; padding: 12px 0; }
.menu__x { position: relative; width: 16px; height: 16px; }
.menu__x::before, .menu__x::after { content: ''; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: currentColor; transform: rotate(45deg); }
.menu__x::after { transform: rotate(-45deg); }
.menu__main { align-self: center; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { border-top: 1px solid rgba(237, 230, 218, .1); }
.menu__list li:last-child { border-bottom: 1px solid rgba(237, 230, 218, .1); }
.menu__list a { position: relative; display: grid; grid-template-columns: 56px 1fr auto; align-items: baseline; padding: clamp(12px, 2.2vh, 22px) 0; text-decoration: none; color: var(--lime-2); transition: color .35s; }
.menu__n { font: 500 11px/1 'Manrope'; letter-spacing: .16em; color: var(--champ); }
.menu__t { font: 300 clamp(34px, 4.6vw, 64px)/1.04 'Newsreader', serif; letter-spacing: -.02em; transition: transform .5s var(--settle); }
.menu__s { font: 400 13px/1 'Manrope'; letter-spacing: .04em; color: var(--lime-3); text-align: right; }
.menu__list a::after { content: ''; position: absolute; left: 56px; bottom: -1px; height: 1px; width: 0; background: var(--champ); transition: width .6s var(--settle); }
.menu__list a:hover, .menu__list a:focus-visible { color: var(--lime); }
.menu__list a:hover .menu__t, .menu__list a:focus-visible .menu__t { transform: translateX(10px); }
.menu__list a:hover::after, .menu__list a:focus-visible::after { width: calc(100% - 56px); }
.menu__list a[aria-current="page"] { color: var(--lime); }
.menu__list a[aria-current="page"] .menu__t { font-style: italic; }
.menu__list a[aria-current="page"]::after { width: calc(100% - 56px); }
.menu__list a[aria-current="page"] .menu__n::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--champ); margin: 0 8px 1px -13px; vertical-align: middle; }
.menu__side { align-self: center; display: grid; gap: 16px; align-content: center; padding-top: 24px; }
.menu__rooms { list-style: none; margin: 0 0 18px; padding: 0; display: grid; }
.menu__rooms a { display: block; padding: 11px 0; border-top: 1px solid rgba(237, 230, 218, .1); font: 400 18px/1.2 'Manrope'; color: var(--lime-2); text-decoration: none; transition: color .3s, padding .4s var(--settle); }
.menu__rooms a:hover, .menu__rooms a:focus-visible { color: var(--lime); padding-left: 8px; }
.menu__rooms a[aria-current="page"] { color: var(--champ); }
.menu__floor { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.menu__floor-n { min-width: 2.2ch; text-align: center; font: 300 40px/1 'Newsreader'; font-variant-numeric: tabular-nums; }
.menu__go { margin-left: 8px; }
.menu__foot { margin-top: 18px; max-width: 40ch; }
.menu__list li, .menu__side > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--settle), transform .7s var(--settle); }
.menu.is-open .menu__list li, .menu.is-open .menu__side > * { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) { transition-delay: .18s; } .menu.is-open .menu__list li:nth-child(2) { transition-delay: .23s; }
.menu.is-open .menu__list li:nth-child(3) { transition-delay: .28s; } .menu.is-open .menu__list li:nth-child(4) { transition-delay: .33s; }
.menu.is-open .menu__list li:nth-child(5) { transition-delay: .38s; } .menu.is-open .menu__side > * { transition-delay: .36s; }

/* mobile: portrait first */
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  .scrim--arrival { background: linear-gradient(180deg, rgba(var(--scrim), .66), rgba(var(--scrim), .2) 34%, rgba(var(--scrim), 0) 50%),
                    linear-gradient(0deg, rgba(var(--scrim), .55), rgba(var(--scrim), 0) 28%); }
  .arrival__copy { top: calc(var(--top) + 84px); transform: none; max-width: none; right: var(--gutter); gap: 22px; }
  .arrival__copy .cta { position: fixed; left: var(--gutter); bottom: calc(64px + env(safe-area-inset-bottom)); }
  .concept-link { right: auto; left: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom)); }
  .scrim--tower { background: linear-gradient(0deg, rgba(var(--scrim), .9), rgba(var(--scrim), .55) 30%, rgba(var(--scrim), 0) 50%); }
  .rail { width: 84px; right: 2px; }
  .rail__step { right: auto; left: auto; display: none; }
  .hint { right: 90px; top: calc(var(--top) + 60px); max-width: 150px; font-size: 12px; }
  .floorcard { right: var(--gutter); width: auto; gap: 8px; bottom: calc(26px + env(safe-area-inset-bottom)); }
  .floorcard__num { font-size: 64px; }
  .floorcard__title { font-size: 24px; }
  .floorcard .sub { font-size: 14px; }
  .floorcard .fine { font-size: 12px; }
  .floorcard .cta { margin-top: 0; padding: 14px 0; }
  .room__copy { top: calc(var(--top) + 64px); right: var(--gutter); gap: 8px; }
  .room__copy .title--room { font-size: 34px; }
  .room__copy .sub { font-size: 14px; }
  .minimap { display: none; }
  .floorstep { bottom: calc(124px + env(safe-area-inset-bottom)); }
  .view-ctrl { bottom: calc(124px + env(safe-area-inset-bottom)); }
  .view-ctrl [data-pan] { display: none; }
  .roomnav { bottom: calc(26px + env(safe-area-inset-bottom)); }
  .roomnav__list a { font-size: 14px; padding-left: 2px; padding-right: 2px; }
  .view--plan { grid-template-columns: 1fr; grid-template-rows: auto minmax(300px, 1fr) auto auto; padding-top: calc(var(--top) + 64px); gap: 14px; }
  .plan__head .title { font-size: 32px; }
  .plan__head .sub { display: none; }
  .plan__wrap { grid-row: 2; grid-column: 1; }
  .plan__list { grid-row: 3; }
  .plan__foot { grid-row: 4; }
  .plan__list a, .plan__static { padding: 11px 0; font-size: 15px; }
  .about__cols { grid-template-columns: 1fr; gap: 8px; }
  .menu__panel { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: start; }
  .menu__main { align-self: start; margin-top: 18px; }
  .menu__list a { grid-template-columns: 40px 1fr auto; }
  .menu__list a::after { left: 40px; }
  .menu__t { font-size: 32px; }
  .menu__side { align-self: start; padding-top: 26px; gap: 12px; }
  .menu__rooms { grid-template-columns: 1fr 1fr; column-gap: 18px; margin-bottom: 8px; }
  .menu__rooms a { font-size: 16px; }
}
@media (max-width: 600px) {
  .roomnav .long:has(+ .short) { display: none; }
  .roomnav .short { display: inline; }
  .plan__svg .lab--small, .plan__svg .lab__tag { display: none; }
}
@media (max-width: 380px) {
  .roomnav__list a { font-size: 13px; letter-spacing: 0; }
  .floorcard__num { font-size: 54px; }
  .menu__t { font-size: 28px; }
  .menu__s { display: none; }
}
@media (max-height: 700px) and (max-aspect-ratio: 9/10) {
  .floorcard .sub, .floorcard__note { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .stage--drift .stage__img { transition: none !important; transform: none !important; }
  .tower__plate { transition: none !important; }
  .view, .room__copy, .plate--lit, .menu__list li, .menu__side > * { transition-duration: .2s !important; transition-delay: 0s !important; }
  .menu__panel { transition: none !important; }
  .roomnav__node { transition: none; }
}
.rail:focus-visible { outline: none; }
.rail:focus-visible .rail__halo { stroke: var(--champ); stroke-width: 2; }
/* the plate's foot fades into the ground the floor card stands on */
.tower__plate { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 90px), transparent); }
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  .scrim--tower { background: linear-gradient(0deg, rgba(var(--scrim), .94), rgba(var(--scrim), .6) 30%, rgba(var(--scrim), 0) 48%),
                  linear-gradient(180deg, rgba(var(--scrim), .6), rgba(var(--scrim), 0) 14%); }
  .hint { display: none; }
}
/* phones: the plan sheet scrolls; the drawing takes most of the screen and turns to fit it */
@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  .view--plan { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .view--plan > * + * { margin-top: 16px; }
  .plan__wrap { height: 62vh; min-height: 380px; }
  .plan__foot { padding-bottom: 12px; }
}
/* the tower hint sits in the empty sky, not on the building */
.hint { left: var(--gutter); right: auto; top: calc(var(--top) + 76px); text-align: left; max-width: 260px; }
@media (max-aspect-ratio: 9/10), (max-width: 760px) { .plan__zoom { top: 0; bottom: auto; } }
