/* The Sample Project web app — Emotion layout (lab 15 skin, 2026-10-23).
   Grammar taken from emotion-agency.com's rebuild (exp/13 + 15): split headings (italic serif word, condensed caps block),
   mono pill labels, numbered "(001)" dial lists with a gliding ↪, spec rows, light content bands between dark ones, the
   footer CTA and the "[ next page ]" reveal ring. Navy ground, one royal-blue accent, ice-blue edge.
   Type: Emotion Serif / PP Neue Montreal / IBM Plex Mono (../css/emotion-type.css). No blur, no blend modes (measured lag
   fix); heavy 3D lives in iframes created on open, destroyed on leave. */
:root {
  --bg: #040915; --bg2: #0a1226; --card: rgba(10, 18, 38, .9); --paper: #EEF3FF; --paper2: rgba(238, 243, 255, .68);
  --paper3: rgba(238, 243, 255, .44); --line: rgba(238, 243, 255, .12); --c: #2E6BFF; --ice: #9FD3FF;
  --light: #EEF3FF; --light2: #DDE7FB; --ink: #0B1F4D; --ink2: rgba(11, 31, 77, .66); --lline: rgba(11, 31, 77, .14);
  --grad: linear-gradient(90deg, #1E48B8, #2E6BFF 55%, #6FB4FF);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "PP Neue Montreal", system-ui, sans-serif; --serif: "Emotion Serif", Georgia, serif;
  --mono: "IBM Plex Mono", Consolas, monospace; --topH: 76px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--paper); font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(110% 70% at 85% -10%, #0d1d4a 0%, var(--bg) 58%) fixed, var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper3); }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3.4vw, 48px); }
.sub { color: var(--paper2); line-height: 1.55; max-width: 52ch; margin: 18px 0 26px; font-size: clamp(1rem, 1.25vw, 1.12rem); }
.note { margin: 12px 0 0; text-transform: none; letter-spacing: .02em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------- Emotion headings: italic word, caps block indented */
.kh { margin: 18px 0 0; font-family: var(--serif); font-weight: 300; line-height: .84; letter-spacing: -.01em;
  font-size: clamp(2.6rem, 7.2vw, 6.6rem); font-variation-settings: "wdth" 75, "HGHT" 100; }
.kh__i { display: block; font-style: italic; text-transform: none; color: var(--ice); }
.kh__c { display: block; padding-left: clamp(18%, 22vw, 34%); text-transform: uppercase; }
.kh--right .kh__c { padding-left: 0; }
.kh--right { text-align: right; }
.kh--hero { font-size: clamp(3.4rem, 10.4vw, 10rem); margin: 0; }
.kh--hero .kh__c { padding-left: clamp(14%, 24vw, 30%); max-width: 15ch; box-sizing: content-box; }
h1.kh .kh__i, h2.kh .kh__i { font-size: .92em; }

/* pills: Emotion's blue mono labels */
.pill { display: inline-flex; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 99px; background: var(--c); color: #fff; }

/* buttons: pill with a gradient stroke; primary = filled gradient; ↳ glyph like Emotion's "Let's talk" */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-size: 15px; letter-spacing: -.01em;
  padding: 12px 18px 12px 20px; border-radius: 99px; color: var(--paper); cursor: pointer; isolation: isolate;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box, linear-gradient(90deg, #233F7F, #2861E7 8%, #EFF4FF 34%, #EFF4FF 60%, #94A3B8 86%, #2861E7) border-box;
  border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.btn i { font-style: normal; opacity: .8; }
.btn:hover, .btn:focus-visible { box-shadow: 0 10px 30px -14px var(--c); }
.btn--p { background: var(--grad) padding-box, linear-gradient(90deg, #9FD3FF, #EFF4FF 40%, #2861E7) border-box; color: #fff; box-shadow: 0 12px 36px -16px var(--c); }
.btn--off { opacity: .55; cursor: default; }
.btn--small { padding: 9px 14px; }
button.btn { font: inherit; font-family: var(--sans); font-size: 15px; }
.light .btn { color: var(--ink); background: linear-gradient(var(--light), var(--light)) padding-box, linear-gradient(90deg, #2861E7, #B9CCF2 40%, #2861E7) border-box; }

/* spec rows (Emotion's PRJCT list): mono key, value */
.spec { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec dt { margin: 0; } .spec dd { margin: 0; text-transform: uppercase; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.spec .big { font-family: var(--serif); font-weight: 300; font-size: 2.1rem; letter-spacing: 0; color: var(--ice); text-transform: none; }

/* ---------------------------------------------------------------- header (Emotion: transparent over the hero, solid once moving) */
.top { position: fixed; inset: 0 0 auto 0; height: var(--topH); z-index: 20; display: flex; align-items: center; gap: 26px;
  padding: 0 clamp(16px, 3.4vw, 48px); background: linear-gradient(180deg, rgba(4, 9, 21, .78), rgba(4, 9, 21, 0));
  transition: background .5s var(--ease), border-color .5s var(--ease); border-bottom: 1px solid transparent; }
body.scrolled .top, body[data-route="3d"] .top, body[data-route="walk"] .top { background: rgba(4, 9, 21, .94); border-color: var(--line); }
.brand { display: grid; line-height: 1; gap: 4px; }
.brand b { font-family: var(--serif); font-weight: 300; font-size: 25px; letter-spacing: -.01em; }
.brand b i { color: var(--ice); }
.brand .mono { font-size: 9.5px; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; color: var(--paper);
  position: relative; display: inline-block; text-align: center; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--paper);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); }
.nav a.on { color: var(--ice); } .nav a.on::after { background: var(--ice); }
.chip { padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 10px; color: var(--paper2); }
.talk { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; padding: 9px 16px; border-radius: 99px; color: #fff; white-space: nowrap;
  background: var(--grad) padding-box, linear-gradient(90deg, #9FD3FF, #EFF4FF 40%, #2861E7) border-box; border: 1px solid transparent; }
.talk i { font-style: normal; }

/* phones: Emotion's floating pill + full-screen numbered menu */
.pillnav { display: none; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 30; width: min(92vw, 360px); height: 58px;
  border-radius: 99px; align-items: center; justify-content: space-between; padding: 0 8px 0 18px;
  background: linear-gradient(90deg, rgba(20, 44, 120, .96), rgba(11, 31, 77, .96)); border: 1px solid rgba(159, 211, 255, .35);
  box-shadow: 0 18px 40px -18px #000; }
.pillnav__menu { all: unset; cursor: pointer; width: 30px; height: 30px; position: relative; }
.pillnav__menu i { position: absolute; left: 4px; right: 4px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.pillnav__menu i:first-child { top: 11px; } .pillnav__menu i:last-child { top: 18px; }
body.menu-open .pillnav__menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .pillnav__menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.pillnav__brand { font-family: var(--serif); font-weight: 300; font-size: 21px; } .pillnav__brand i { color: var(--ice); }
.pillnav__orb { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #9FD3FF 30%, #2E6BFF 62%, #0B1F4D);
  box-shadow: 0 0 22px rgba(46, 107, 255, .7); animation: orb 6s ease-in-out infinite; }
@keyframes orb { 50% { filter: hue-rotate(-18deg) brightness(1.15); } }
.menu { position: fixed; inset: 0; z-index: 25; background: var(--bg); padding: 90px 22px 110px; display: flex; flex-direction: column; justify-content: center;
  clip-path: circle(0 at 50% calc(100% - 46px)); transition: clip-path .7s var(--ease); pointer-events: none; }
body.menu-open .menu { clip-path: circle(150% at 50% calc(100% - 46px)); pointer-events: auto; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font-family: var(--serif); font-weight: 300; font-size: 2.6rem;
  text-transform: uppercase; line-height: 1; border-bottom: 1px solid var(--line); font-variation-settings: "wdth" 75; }
.menu__list a.on { color: var(--ice); }
.menu__foot { margin-top: 26px; }

/* ---------------------------------------------------------------- page in */
.view { min-height: 60vh; outline: none; }
.view.in > * { animation: rise .9s var(--ease) both; }
.view.in > *:nth-child(2) { animation-delay: .08s; } .view.in > *:nth-child(3) { animation-delay: .16s; } .view.in > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.band { padding: clamp(70px, 12vh, 140px) 0; }
.band.wrap { padding-left: clamp(16px, 3.4vw, 48px); padding-right: clamp(16px, 3.4vw, 48px); }
.pagehead { padding-top: calc(var(--topH) + clamp(40px, 9vh, 100px)); padding-bottom: clamp(40px, 7vh, 80px); }
.headrow { display: grid; gap: 6px; }

/* light content band (Emotion's pale sections) */
.light { background: var(--light); color: var(--ink); }
.light .mono { color: var(--ink2); }
.light .sub { color: var(--ink2); }
.light .kh__i { color: var(--c); }
.light .lines { border-color: var(--lline); } .light .lines li { border-color: var(--lline); color: var(--ink2); }
.light .lines b { color: var(--ink); } .light .lines .sum b { color: var(--c); }

/* ---------------------------------------------------------------- overview hero (Emotion's hero layout) */
.khero { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; }
.khero__media { position: absolute; inset: 0; overflow: hidden; }
.khero__img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
.khero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(4, 9, 21, .78) 26%, rgba(4, 9, 21, .2) 55%, rgba(4, 9, 21, .45) 100%),
    linear-gradient(90deg, rgba(4, 9, 21, .6), rgba(4, 9, 21, 0) 55%); }
.khero__grid { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
  padding-top: calc(var(--topH) + 30px); padding-bottom: clamp(60px, 10vh, 110px); }
.khero__eyebrow { grid-column: 1 / span 4; color: #fff; line-height: 1.5; max-width: 34ch; word-spacing: .4em; margin: 0 0 26px; }
.khero .kh--hero { grid-column: 1 / -1; color: #fff; }
.khero__side { grid-column: 9 / -1; margin-top: 30px; }
.khero__side .lede { color: var(--paper2); line-height: 1.55; margin: 0 0 20px; }
.khero__side .spec { margin-bottom: 22px; }
.khero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%); color: var(--paper2); }
.khero__scroll i { font-style: normal; display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.rv { animation: clipIn 1.6s var(--ease) both; }
@keyframes clipIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------------------------------------------------------------- dial list (Emotion's "what we do") */
.dialsec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.dial { list-style: none; margin: 0; padding: 0; position: relative; border-top: 1px solid var(--lline); }
.dial li a { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; row-gap: 4px; padding: 22px 0 22px 0; border-bottom: 1px solid var(--lline);
  transition: padding .5s var(--ease), opacity .4s var(--ease); }
.dial__n { grid-row: span 2; padding-top: 10px; }
.dial b { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .9; text-transform: uppercase;
  font-variation-settings: "wdth" 75; transition: color .4s var(--ease); }
.dial__p { color: var(--ink2); max-width: 46ch; line-height: 1.5; }
.dial__arrow { display: none; }
.dial:hover li a { opacity: .45; } .dial li.on a { opacity: 1; padding-left: 46px; } .dial li.on b { color: var(--c); }
.dial__glide { position: absolute; left: 0; top: 0; font-style: normal; font-family: var(--serif); font-size: 40px; color: var(--c); opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- plan ↔ furnished (shatter) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.split--top { align-items: start; }
.seg { display: inline-flex; border-radius: 99px; padding: 3px; border: 1px solid var(--line); }
.seg button { all: unset; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 9px 15px; border-radius: 99px; color: var(--paper2); }
.seg button[aria-pressed="true"] { background: var(--c); color: #fff; }
.p2d { position: relative; aspect-ratio: 16 / 10; background: var(--light); border-radius: 22px; overflow: hidden; }
.p2d > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3%; transition: opacity .6s var(--ease) .25s; }
.p2d.is-3d > img { opacity: 0; transition-delay: 0s; }
.cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); pointer-events: none; }
.cells i { background: url(../assets/renders/dollhouse.jpg) var(--bx) var(--by) / 800% 500% no-repeat; opacity: 0;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(.4);
  transition: transform .55s cubic-bezier(.5, 0, .75, 0) calc(var(--d) * .4), opacity .3s calc(var(--d) * .4 + .2s); }
.p2d.is-3d .cells i { opacity: 1; transform: none; transition: transform 1s var(--ease) var(--d), opacity .35s var(--d); }

/* ---------------------------------------------------------------- room rail + mirror floor */
.ribbon { --cw: clamp(260px, 28vw, 420px); position: relative; margin-top: 40px; height: calc(var(--cw) * .625 * 1.42 + 40px);
  perspective: 1300px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.ribbon:active { cursor: grabbing; }
.ribbon__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.rc { position: absolute; left: 0; top: 0; width: var(--cw); will-change: transform; -webkit-user-drag: none; }
.rc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; border: 1px solid rgba(159, 211, 255, .25); pointer-events: none; }
.rc .rc__refl { transform: scaleY(-1); margin-top: 6px; opacity: .3; border-color: transparent;
  -webkit-mask: linear-gradient(0deg, #000 0%, transparent 42%); mask: linear-gradient(0deg, #000 0%, transparent 42%); }
.rc span { position: absolute; left: 12px; right: 12px; top: calc(var(--cw) * .625 - 50px); display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 14px; border-radius: 99px; background: rgba(4, 9, 21, .82); }
.rc b { font-family: var(--serif); font-weight: 300; font-size: 1.3rem; text-transform: uppercase; }
.ribbon__floor { position: absolute; left: -10%; right: -10%; bottom: -30%; height: 90%; transform-origin: 50% 100%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(46, 107, 255, .16) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(46, 107, 255, .1) 0 1px, transparent 1px 60px);
  -webkit-mask: linear-gradient(0deg, #000, transparent 80%); mask: linear-gradient(0deg, #000, transparent 80%); }
.ribbon::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--cw) * .625 + 3px); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--c) 30%, var(--ice) 50%, var(--c) 70%, transparent); opacity: .6; box-shadow: 0 0 14px var(--c); }
.ribbon__nav { position: absolute; right: 0; bottom: 6px; display: flex; gap: 8px; z-index: 2; }

/* ---------------------------------------------------------------- rooms: Emotion project rows (media + PRJCT spec) */
.prj { display: grid; gap: clamp(50px, 9vh, 110px); padding-bottom: clamp(60px, 10vh, 120px); }
.prj__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.prj__row:nth-child(even) { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.prj__row:nth-child(even) .prj__media { order: 2; }
.prj__media { display: block; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 10; }
.prj__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; transition: transform 1.4s var(--ease); }
.prj__row:hover .prj__media img { transform: scale(1.04); }
.prj__info { display: grid; gap: 14px; align-content: end; }
.prj__name { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .86; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.prj__row:hover .prj__name { color: var(--ice); }
.prj__info .btn { justify-self: start; }

/* ---------------------------------------------------------------- a room: photo and live 3D side by side, same camera */
.room { padding: calc(var(--topH) + 30px) 0 60px; }
.room__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr); gap: 24px; align-items: end; padding-bottom: 26px; }
.room__head .kh { font-size: clamp(2.4rem, 6vw, 5.4rem); }
.room__head .kh__c { padding-left: 18%; }
.back { display: inline-block; }
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 clamp(10px, 2vw, 24px); }
.twin figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg2); border: 1px solid var(--line); }
.twin img, .twin iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.twin figcaption { position: absolute; left: 12px; bottom: 10px; padding: 5px 9px; border-radius: 99px; background: rgba(4, 9, 21, .8); color: var(--paper); z-index: 2; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; transition: opacity .6s; }
.ready .loading { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- receipts */
.lines { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--line); }
.lines li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--paper2); }
.lines li i { font-style: normal; margin-right: 10px; }
.lines b { font-family: var(--mono); font-weight: 500; color: var(--paper); }
.lines .sum b { color: var(--ice); font-size: 1.2rem; } .lines .sum span { color: var(--paper); }
.lines--2 { columns: 2; column-gap: 48px; }
.lines--2 li { break-inside: avoid; }

/* full-height 3D / walk */
.full { position: relative; height: 100vh; padding-top: var(--topH); }
.full iframe { position: absolute; inset: var(--topH) 0 0 0; width: 100%; height: calc(100% - var(--topH)); border: 0; }

/* prices: EMI card */
.card { padding: 26px; border-radius: 22px; display: grid; gap: 18px; justify-items: start; }
.card > * { width: 100%; } .card > .pill { width: auto; }
.fld { display: grid; gap: 8px; }
.fld span { display: flex; justify-content: space-between; color: var(--paper2); }
.fld b { font-family: var(--mono); color: var(--paper); font-weight: 500; }
input[type=range] { width: 100%; accent-color: #2E6BFF; }
.emi { display: grid; gap: 4px; padding-top: 14px; border-top: 1px dashed var(--line); }
.emi b { font-family: var(--serif); font-weight: 300; font-size: 3.2rem; letter-spacing: 0; color: var(--ice); }

/* interiors: pinned chapters, one screen of scroll per step */
.chap { position: relative; height: 380vh; }
.chap__pin { position: sticky; top: var(--topH); height: calc(100vh - var(--topH)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) 3px;
  gap: clamp(20px, 3vw, 44px); align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.steps button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 64px 1fr; column-gap: 10px; padding: 18px 0;
  border-bottom: 1px solid var(--line); transition: opacity .5s var(--ease), padding .5s var(--ease); opacity: .4; }
.steps li.on button { opacity: 1; padding-left: 14px; }
.steps button:focus-visible { outline: 2px solid var(--c); }
.steps .mono { grid-row: span 2; color: var(--ice); padding-top: 8px; }
.steps b { font-family: var(--serif); font-weight: 300; font-size: 2rem; line-height: 1; text-transform: uppercase; font-variation-settings: "wdth" 75; }
.steps i { font-style: normal; color: var(--paper2); font-size: .95rem; }
.chap__vis { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; padding: 10px; }
.chap__vis figure { position: absolute; inset: 10px; margin: 0; opacity: 0; transform: scale(.97); pointer-events: none;
  transition: opacity .7s var(--ease), transform .9s var(--ease); }
.chap__vis figure.on { opacity: 1; transform: none; pointer-events: auto; }
.chap__vis figure > img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.chap__vis .chap__plan { background: var(--light); border-radius: 14px; } .chap__plan img { object-fit: contain; padding: 3%; }
.chap__pdf img { position: absolute; width: 74% !important; height: auto !important; border-radius: 6px; box-shadow: 0 30px 60px -30px #000; }
.chap__pdf img:first-child { left: 2%; top: 2%; z-index: 2; } .chap__pdf img:last-child { right: 2%; bottom: 2%; transform: rotate(2.5deg); }
.chap__vis .note { position: absolute; left: 0; bottom: -30px; }
.chap__bar { align-self: stretch; margin: 12vh 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.chap__bar i { display: block; height: 100%; background: var(--grad); transform: scaleY(0); transform-origin: top; }

/* iris glass: an iridescent edge that turns toward the pointer (navy/ice) */
.iris { --a: 0deg; --mx: 50%; --my: 0%; border: 1px solid transparent;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(46, 107, 255, .1), transparent 62%) padding-box,
    linear-gradient(var(--card), var(--card)) padding-box,
    conic-gradient(from var(--a), rgba(46, 107, 255, .9), rgba(159, 211, 255, .7), rgba(46, 107, 255, .12), rgba(30, 72, 184, .7), rgba(46, 107, 255, .9)) border-box; }
.compare { --k: .5; position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; cursor: ew-resize; touch-action: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.compare .after { clip-path: inset(0 0 0 calc(var(--k) * 100%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: calc(var(--k) * 100%); width: 2px; background: var(--ice); box-shadow: 0 0 16px var(--c); }
.compare .tag { position: absolute; top: 12px; padding: 5px 9px; border-radius: 99px; background: rgba(4, 9, 21, .8); color: var(--paper); }
.compare .l { left: 12px; } .compare .r { right: 12px; }

/* visit */
.limits { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--line); }
.limits li { display: grid; grid-template-columns: 70px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--paper2); font-size: .97rem; line-height: 1.5; }
.pdfprev { margin: 0; position: relative; aspect-ratio: 842 / 650; margin-top: calc(var(--topH) + 40px); }
.pdfprev img { position: absolute; width: 86%; border-radius: 8px; box-shadow: 0 30px 60px -30px #000; }
.pdfprev img:first-child { left: 0; top: 0; z-index: 2; } .pdfprev img:last-child { right: 0; bottom: 0; transform: rotate(2.5deg); }
body[data-route="visit"] .view > .band { padding-top: calc(var(--topH) + 60px); }

/* ---------------------------------------------------------------- footer (Emotion: CTA left, data right) + next-page ring */
.kfoot { position: relative; background: var(--light); color: var(--ink); border-radius: 28px 28px 0 0; margin-top: 40px; overflow: hidden; }
body[data-route="3d"] .kfoot, body[data-route="walk"] .kfoot { display: none; }
.kfoot .mono { color: var(--ink2); }
.kfoot__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); padding-top: clamp(60px, 10vh, 120px); padding-bottom: 50px; }
.kfoot__title { margin: 22px 0 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 8.5vw, 8.4rem); line-height: .84; text-transform: uppercase;
  font-variation-settings: "wdth" 75, "HGHT" 100; }
.kfoot__title > span { display: block; }
.kfoot__title > span:first-child { font-style: italic; text-transform: none; color: var(--c); }
.kfoot__l2 { padding-left: 22%; } .kfoot__l3 { padding-left: 4%; } .kfoot__l3 i { font-style: normal; color: var(--c); } .kfoot__l4 { padding-left: 46%; }
.kfoot__text { max-width: 44ch; line-height: 1.6; margin: 26px 0 22px; text-transform: none; letter-spacing: .01em; font-size: 12px; }
.kfoot .btn--p { color: #fff; }
.kfoot__data { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; align-content: end; }
.kfoot__data ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.kfoot__data li { display: flex; gap: 10px; align-items: baseline; }
.kfoot__data p { margin: 10px 0 0; line-height: 1.4; }
.kfoot__data a { display: inline-block; border-bottom: 1px solid var(--lline); }
.kfoot__data a:hover { color: var(--c); border-color: var(--c); }
.kfoot__label { display: block; }
.kfoot__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 26px; border-top: 1px solid var(--lline);
  text-transform: none; letter-spacing: .01em; line-height: 1.6; font-size: 11px; }
.kfoot__bottom span:last-child { max-width: 70ch; text-align: right; }
.nextp { height: 92vh; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); color: var(--paper); text-align: center; }
.nextp__top { display: flex; gap: clamp(20px, 8vw, 120px); color: var(--paper2); }
.nextp__ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.nextp__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.nextp__ring circle { fill: none; stroke: var(--line); stroke-width: 1.5; }
.nextp__ring circle.p { stroke: var(--ice); stroke-width: 2; stroke-linecap: round; }
.nextp__ring .mono { color: var(--paper); font-size: 10px; }
.nextp__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 10vw, 9rem); text-transform: uppercase; line-height: .9;
  font-variation-settings: "wdth" 75; transition: color .5s var(--ease), letter-spacing .8s var(--ease); }
.nextp.is-full .nextp__title { color: var(--ice); letter-spacing: .02em; }

/* ---------------------------------------------------------------- hashed-stagger mask reveal, receipts cascade, digit roll */
.rvl .w { display: inline-block; white-space: nowrap; }
.rvl .ch { display: inline-block; clip-path: inset(-40% -30% -2% -30%); }
.rvl .ch > span { display: inline-block; transform: translateY(108%); transition: transform .95s var(--ease); }
.rvl.go .ch > span { transform: none; }
.lines.cas li { opacity: 0; transform: translateY(10px); }
.lines.cas.go li { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 38ms); }
#emi span { display: inline-block; }
#emi .up { animation: rollUp .42s var(--ease); } #emi .dn { animation: rollDn .42s var(--ease); }
@keyframes rollUp { from { transform: translateY(55%); opacity: 0; } } @keyframes rollDn { from { transform: translateY(-55%); opacity: 0; } }

/* sparks, black-hole wipe, boot (Emotion-style loader: wordmark + bar) */
.sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.wipe { position: fixed; inset: 0; z-index: 50; pointer-events: none; --x: 50%; --y: 50%; --c1: 0px; --h: 0px;
  clip-path: circle(var(--c1) at var(--x) var(--y));
  background: radial-gradient(circle at var(--x) var(--y), transparent var(--h), rgba(159, 211, 255, .95) calc(var(--h) + 1.5px),
    rgba(46, 107, 255, .3) calc(var(--h) + 5px), #020611 calc(var(--h) + 70px)); }
.wipe[hidden] { display: none; }
.boot { position: fixed; inset: 0; z-index: 60; --r: 0px; display: grid; place-items: center; align-content: center; gap: 14px;
  background: var(--light); color: var(--ink);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  animation: bootOff 0s 5s forwards; }
.boot__brand { font-family: var(--serif); font-weight: 300; font-size: 40px; } .boot__brand i { color: var(--c); }
.boot .mono { color: var(--ink2); }
.boot__bar { width: 160px; height: 2px; background: linear-gradient(90deg, var(--c) 0 40%, var(--lline) 40%) 0 0 / 200% 100%; animation: bootBar 1s linear infinite; }
@keyframes bootBar { to { background-position: -200% 0; } }
@keyframes bootOff { to { visibility: hidden; } }

/* ---------------------------------------------------------------- phones */
@media (max-width: 980px) {
  :root { --topH: 62px; }
  .nav, .chip, .talk { display: none; }
  .top { justify-content: center; }
  .pillnav { display: flex; }
  .split, .twin, .dialsec__grid, .kfoot__grid, .room__head { grid-template-columns: 1fr; }
  .khero__grid { grid-template-columns: 1fr; }
  .khero__eyebrow, .khero__side { grid-column: 1; }
  .kh__c, .kh--hero .kh__c { padding-left: 12%; }
  .prj__row, .prj__row:nth-child(even) { grid-template-columns: 1fr; } .prj__row:nth-child(even) .prj__media { order: 0; }
  .lines--2 { columns: 1; }
  .chap { height: 340vh; }
  .chap__pin { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 14px; }
  .chap__vis { order: -1; padding: 6px; } .chap__vis figure { inset: 6px; }
  .chap__bar { display: none; }
  .steps button { padding: 10px 0; } .steps b { font-size: 1.4rem; } .steps i { display: none; } .steps li.on i { display: block; }
  .ribbon { --cw: 74vw; }
  .kfoot__bottom { flex-direction: column; } .kfoot__bottom span:last-child { text-align: left; }
  .kfoot { padding-bottom: 90px; }
  .nextp { height: 80vh; }
  .pdfprev { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .view.in > *, .rv, #emi span, .pillnav__orb, .khero__scroll i { animation: none; } .cells i { transition: none; }
  .rvl .ch > span, .lines.cas li { transform: none; opacity: 1; transition: none; }
}
