/* Villa Montana: tokens, base type and shared components.
   Tokens are the design brief's final values (docs/rebuild/design-brief.md,
   "Tokens"). Radius 0 everywhere; 50% only on pins, dots and place bullets.
   Phone and tablet overrides live in responsive.css. */

@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic-400-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-300-400-latin.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }

:root {
  --linen: #F3EFE7;
  --paper: #FBF9F3;
  --ink: #211D15;
  --taupe: #5F5748;
  --taupe-2: #6B6252;
  --blue: #3B5878;
  --night: #262C35;
  --blue-on-night: #B7C6D8;
  --cream: #F8F5EE;
  --hair: #E0D8C8;
  --hair-hover: #B9A681;
  --field: #D8CFBC;
  --row: #E4DCCB;
  --row-selected: #F1EADA;
  --error: #A4452F;
  --scrim: rgba(33, 29, 21, .55);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lift: 0 22px 50px -30px rgba(38, 44, 53, .45);
  --nav-h: 104px;
  --pad: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--linen); color: var(--ink); font: 300 14.5px/1.8 var(--sans); }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--ink); text-wrap: balance; letter-spacing: 0; }
h1 { font-size: 56px; line-height: 1.08; }
h2 { font-size: 44px; line-height: 1.15; }
h3 { font-size: 31px; line-height: 1.1; }
h4 { font-size: 22px; line-height: 1.15; }
p { margin: 0 0 1em; color: var(--taupe); max-width: 64ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.home p { font-size: 15px; line-height: 1.85; }
.small, small { font-size: 13.5px; line-height: 1.7; font-weight: 400; color: var(--taupe-2); }
.fine { font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--taupe-2); }
.num, .price { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-night :focus-visible, .nav :focus-visible, .menu :focus-visible, .footer :focus-visible, .band :focus-visible { outline-color: var(--blue-on-night); }

.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--night); color: var(--cream); padding: 12px 18px; font: 400 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: top .2s ease; }
.skip:focus { top: 16px; }

/* ---------- layout ---------- */
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 var(--pad); }
.wrap--home { max-width: 1320px; padding: 0 40px; }
.section { padding: 100px 0 96px; }
.section--tight { padding: 56px 0 64px; }
.section--paper { background: var(--paper); }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }
main { display: block; }
main:not(.home) { padding-top: var(--nav-h); }

/* Page head: h1 left, intro right (reference rhythm) */
.page-head { padding: 64px 0 34px; }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 560px); gap: 48px 72px; align-items: end; }
.page-head .lede { font-size: 15px; line-height: 1.85; }
.page-head .count { min-height: 1.6em; font: 400 13.5px/1.6 var(--sans); color: var(--blue); margin: 0 0 14px; font-variant-numeric: tabular-nums; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 15px 30px; border: 1px solid var(--night); background: var(--night); color: var(--cream); font: 400 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition-property: background-color, color, border-color, transform; transition-duration: .45s, .45s, .45s, .15s; transition-timing-function: ease; }
.btn:hover { background: #343C48; border-color: #343C48; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--night); }
.btn--line:hover { background: var(--night); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243, 239, 231, .65); }
.btn--ghost:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--night); border-color: var(--cream); }
.btn--cream:hover { background: transparent; color: var(--cream); }
.btn--block { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btns { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.link { color: var(--blue); font-weight: 400; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: rgba(59, 88, 120, .45); transition: text-decoration-color .3s ease, color .3s ease; }
.link:hover { text-decoration-color: currentColor; }
.on-night .link, .footer .link { color: var(--blue-on-night); text-decoration-color: rgba(183, 198, 216, .5); }
.textbtn { background: none; border: 0; padding: 0; color: var(--blue); font: 400 13.5px/1.6 var(--sans); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(59, 88, 120, .45); }
.textbtn:hover { text-decoration-color: currentColor; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); color: var(--cream); background: rgba(38, 44, 53, .96); border-bottom: 1px solid rgba(248, 245, 238, .08); transition: background-color .45s ease, border-color .45s ease; }
.home .nav, html:not(.nav-scrolled) body.is-home .nav { background: transparent; border-color: transparent; }
html.nav-scrolled body.is-home .nav { background: rgba(38, 44, 53, .96); border-color: rgba(248, 245, 238, .08); }
.nav__in { max-width: 1520px; margin: 0 auto; padding: 0 44px; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.nav__menu { justify-self: start; display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit; font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.nav__bars { width: 26px; display: grid; gap: 6px; }
.nav__bars span { display: block; height: 1px; background: currentColor; width: 20px; transition: width .3s ease; }
.nav__bars span:last-child { width: 13px; }
.nav__menu:hover .nav__bars span { width: 26px; }
.nav__logo { display: block; }
.nav__logo img { height: 74px; width: auto; }
.nav__right { justify-self: end; display: flex; align-items: center; gap: 26px; }
.nav__right a:not(.btn) { color: inherit; text-decoration: none; font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: 12px 0; transition: color .3s ease; }
.nav__right a:not(.btn):hover { color: var(--blue-on-night); }
.nav__right .nav__phone { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.nav .btn { min-height: 40px; padding: 11px 20px; font-size: 10.5px; }
body:not(.is-home) .nav .btn, html.nav-scrolled .nav .btn { background: var(--cream); color: var(--night); border-color: var(--cream); }
body:not(.is-home) .nav .btn:hover, html.nav-scrolled .nav .btn:hover { background: transparent; color: var(--cream); }

/* full-screen menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--linen); display: grid; grid-template-rows: var(--nav-h) 1fr; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; overflow-y: auto; }
html.nav-open .menu { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.menu__top { max-width: 1520px; width: 100%; margin: 0 auto; padding: 0 44px; display: flex; align-items: center; justify-content: space-between; }
.menu__close { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; background: none; border: 0; color: inherit; font: 400 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.menu__close svg { width: 18px; height: 18px; }
.menu__body { max-width: 1320px; width: 100%; margin: 0 auto; padding: 24px 40px 64px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(243, 239, 231, .14); }
.menu__list a { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(243, 239, 231, .14); color: var(--linen); text-decoration: none; font: 400 34px/1.15 var(--serif); transition: color .35s ease, border-color .35s ease; }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: var(--blue-on-night); border-color: rgba(183, 198, 216, .5); }
.menu__aside { display: grid; gap: 28px; padding-top: 8px; }
.menu__aside .menu__h { font: 400 13.5px/1.4 var(--sans); color: #B6BBC0; margin-bottom: 8px; }
.menu__aside p, .menu__aside a:not(.btn) { color: #D8D2C4; font-size: 14.5px; }
.menu__aside a:not(.btn) { text-decoration: none; }
.menu__aside a:not(.btn):hover { color: var(--blue-on-night); }
.menu__aside .btns .btn { min-width: 0; }

/* ---------- hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--night); color: var(--cream); }
.hero__slides, .hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slides img { opacity: 0; animation: heroFade 24s ease-in-out infinite; }
.hero__slides img:nth-child(1) { opacity: 1; animation-delay: -2s; }
.hero__slides img:nth-child(2) { animation-delay: 6s; }
.hero__slides img:nth-child(3) { animation-delay: 14s; }
.hero__slides { animation: heroSettle 2.4s var(--ease) both; }
@keyframes heroFade { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; } }
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 17, 14, .48) 0%, rgba(18, 17, 14, .12) 30%, rgba(18, 17, 14, .10) 55%, rgba(18, 17, 14, .66) 100%), rgba(18, 17, 14, .14); pointer-events: none; }
/* Headline bottom left, button bottom right, as Aria's hero bar (round 4, gate findings 1 to 3). */
.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 1520px; margin: 0 auto; padding: 0 44px 52px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero h1 { color: var(--cream); font-size: clamp(42px, 4.6vw, 66px); line-height: 1.06; text-shadow: 0 2px 30px rgba(18, 17, 14, .45); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.06em; }
.hero h1 .line > span { display: block; animation: lineUp 1.2s var(--ease) .5s both; }
.hero h1 .line + .line > span { font-style: italic; animation-delay: .62s; }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }
.hero__bar .btn { flex: none; animation: fadeUp 1.2s var(--ease) .95s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero__cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: var(--cream); animation: fadeUp 1.4s var(--ease) 2s both; }
.hero__cue svg { width: 14px; animation: nudge 2.8s ease-in-out 2.8s infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(6px); } }

/* offer card: a popup pinned to the bottom-right corner (as on Aria); it may
   cover the hero's "Explore availability" until it is dismissed */
.stats { position: relative; }
.offer { position: fixed; right: 28px; bottom: 28px; z-index: 45; width: 380px; max-width: calc(100vw - 40px); background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--lift); padding: 24px 26px 22px; }
.offer h2 { font-size: 24px; line-height: 1.2; padding-right: 32px; margin-bottom: 8px; }
.offer p { font-size: 13.5px; line-height: 1.7; }
.offer__x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; color: var(--taupe); }
.offer__x:hover { color: var(--ink); }
.offer__x svg { width: 14px; }

/* splits */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 72px; align-items: center; }
.split--flip > :first-child { order: 2; }
.split h2 { margin-bottom: 22px; }
.split .btns, .split .link-row { margin-top: 26px; }
.photo { position: relative; overflow: hidden; background: var(--hair); }
.photo img { width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); outline-offset: -1px; }
.ratio-54 { aspect-ratio: 5 / 4; }
.ratio-43 { aspect-ratio: 4 / 3; }
.campus-teaser { position: relative; display: block; }
/* one real link over a decorative drawing (gate finding 5) */
.btn--map { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(251, 249, 243, .94); color: var(--night); border-color: rgba(38, 44, 53, .18); box-shadow: 0 18px 40px -22px rgba(24, 20, 14, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--map:hover { background: var(--night); color: var(--cream); border-color: var(--night); }
.btn--map:active { transform: translate(-50%, -50%) scale(.97); }
.btn--map:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; box-shadow: 0 0 0 6px rgba(251, 249, 243, .9), 0 18px 40px -22px rgba(24, 20, 14, .6); }
.campus-live { color: var(--blue); font-variant-numeric: tabular-nums; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.shadowed { box-shadow: 0 34px 80px -50px rgba(24, 20, 14, .55); }

/* wide photo with floating panel */
.feature { position: relative; min-height: 660px; display: flex; align-items: center; }
.feature > .photo { position: absolute; inset: 0; }
.feature__panel { position: relative; z-index: 2; margin-left: max(40px, calc((100vw - 1320px) / 2 + 40px)); width: min(560px, calc(100% - 80px)); background: var(--paper); padding: 48px 46px 44px; box-shadow: var(--lift); }
.feature__panel h2 { margin-bottom: 18px; }

/* ruled distance list */
.ruled { list-style: none; margin: 26px 0 0; padding: 0; border-top: 1px solid var(--row); }
.ruled li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--row); font: 400 14px/1.5 var(--sans); color: var(--ink); }
.ruled li span:last-child { color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.collage .photo:first-child { grid-row: span 2; }
.collage--pair .photo:first-child { grid-row: auto; }

/* closing band */
.band { background: var(--night); color: var(--cream); text-align: center; padding: 96px 0 100px; }
.band h2 { color: var(--cream); margin-bottom: 30px; }
.band .btns { justify-content: center; }
.band p { color: #C3C7CB; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #D8D2C4; padding: 80px 0 34px; border-top: 1px solid rgba(248, 245, 238, .08); font-size: 13.5px; }
.band + .footer { border-top-color: rgba(248, 245, 238, .1); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 48px; }
.footer__logo img { width: 150px; height: auto; margin-bottom: 22px; }
.footer p { color: #C3C7CB; font-size: 13.5px; line-height: 1.75; }
.footer h2 { font: 400 13.5px/1.4 var(--sans); color: #B6BBC0; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer a { color: #E4DFD3; text-decoration: none; transition: color .3s ease; }
.footer ul a { display: inline-block; padding: 4px 0; }
.footer a:hover { color: var(--blue-on-night); }
.footer__contact a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(228, 223, 211, .35); }
.footer__notice { margin-top: 56px; padding: 26px 0; border-top: 1px solid rgba(248, 245, 238, .12); border-bottom: 1px solid rgba(248, 245, 238, .12); display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.footer__icons { display: flex; gap: 14px; align-items: center; color: #D8D2C4; }
.footer__icons svg { width: 34px; height: 34px; }
.footer__notice p { margin: 0; max-width: 96ch; font-size: 12.5px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-top: 22px; font-size: 12px; color: #B6BBC0; }
.footer__legal p { margin: 0; font-size: 12px; color: #B6BBC0; max-width: none; }
.footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { padding: 4px 0; }
.footer__kiara { max-width: 340px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(228, 223, 211, .2); }
.footer__contact .footer__kiara a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: #C3C7CB; font: 400 12px/1 var(--sans); letter-spacing: .04em; transition: opacity .25s ease; }
.footer__kiara a:hover { opacity: .8; }
.footer__kiara img { height: 20px; width: auto; display: block; }
.footer__kiara img.wm { height: 17px; filter: brightness(0) invert(.86); }

/* ---------- chips, filters ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 16px; background: transparent; border: 1px solid #CFC5B2; color: var(--taupe); font: 400 13px/1.2 var(--sans); white-space: nowrap; transition-property: background-color, color, border-color; transition-duration: .3s; }
.chip:hover { border-color: var(--night); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--night); border-color: var(--night); color: var(--cream); }
.chip .n { font-variant-numeric: tabular-nums; opacity: .8; }
.filterbar { background: var(--paper); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.filterbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.fgroup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; min-width: 0; }
.fgroup legend, .fgroup > .flabel { float: left; font: 400 13px/38px var(--sans); color: var(--taupe-2); margin-right: 4px; padding: 0; }
.select { position: relative; }
.select select { appearance: none; min-height: 38px; padding: 8px 38px 8px 14px; border: 1px solid #CFC5B2; background: var(--paper); border-radius: 0; font: 400 13px/1.2 var(--sans); color: var(--ink); }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--taupe); border-bottom: 1px solid var(--taupe); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.result-count { margin-left: auto; font: 400 13.5px/1.4 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- plan cards ---------- */
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.band-head h2 { font-size: 36px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plans + .band-head { margin-top: 64px; }
.plan-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--hair); transition-property: transform, box-shadow, border-color; transition-duration: .4s; transition-timing-function: ease; }
.plan-card:hover, .plan-card:focus-within { transform: translateY(-3px); box-shadow: var(--lift); border-color: var(--hair-hover); }
.plan-card__img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--hair); overflow: hidden; }
.plan-card__img img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; transition: opacity .85s var(--ease); }
.plan-card__img img + img { opacity: 0; }
.plan-card__img.is-2d img:first-child { opacity: 0; }
.plan-card__img.is-2d img + img { opacity: 1; }
.plan-card__toggle { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: flex; border: 1px solid var(--hair); background: #fff; }
.plan-card__toggle button { min-width: 44px; min-height: 32px; border: 0; background: transparent; font: 400 11px/1 var(--sans); letter-spacing: .1em; color: var(--taupe); }
.plan-card__toggle button[aria-pressed="true"] { background: var(--night); color: var(--cream); }
.badge360 { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 5px 9px; background: var(--night); color: var(--cream); font: 400 11px/1 var(--sans); letter-spacing: .08em; }
.plan-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-card__body h3 a, .plan-card__body h3 button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; text-align: left; }
.plan-card__body h3 button::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.plan-card .spec { font: 400 13.5px/1.6 var(--sans); color: var(--taupe-2); margin: 0; }
.plan-card .from { font: 400 17px/1.3 var(--sans); color: var(--blue); font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.plan-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 13px/1.4 var(--sans); color: var(--taupe-2); }
.plan-card__foot a { position: relative; z-index: 2; }
.plan-card--cta { justify-content: space-between; padding: 0; }
.plan-card--cta .photo { aspect-ratio: 1 / 1; border-bottom: 1px solid var(--hair); }
.plan-card--cta .plan-card__body p { font-size: 14.5px; color: var(--taupe); }

/* ---------- unit rows (bedroom pages, results) ---------- */
.units { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.unit-row { border-bottom: 1px solid var(--row); }
.unit-row > button { width: 100%; display: grid; grid-template-columns: 64px 80px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; text-align: left; padding: 14px 14px 14px 12px; background: transparent; border: 0; transition: background-color .25s ease; }
.unit-row > button:hover, .unit-row.is-hover > button { background: #F6F1E6; }
.unit-row.is-selected > button { background: var(--row-selected); box-shadow: inset 3px 0 0 var(--blue); }
.unit-row img { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--hair); }
.unit-row .no { font: 400 22px/1.1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.unit-row .meta { display: grid; gap: 2px; min-width: 0; }
.unit-row .meta b { font-weight: 400; color: var(--ink); font-size: 14.5px; }
.unit-row .meta span { font: 400 13px/1.5 var(--sans); color: var(--taupe-2); }
.unit-row .rent { text-align: right; display: grid; gap: 2px; }
.unit-row .rent b { font: 400 17px/1.2 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.unit-row .rent span { font: 400 13px/1.4 var(--sans); color: var(--taupe-2); }
.units--wide .unit-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.units--wide .unit-row > button { grid-template-columns: 64px 80px minmax(0, 1fr) minmax(0, 1fr) auto; }
.units--wide .unit-row .no-m { display: none; }
.unit-row__acts { display: flex; gap: 8px; padding: 0 12px 0 10px; }
.btn--sm { min-height: 40px; padding: 10px 16px; font-size: 10.5px; }
.empty { padding: 26px 0; border-bottom: 1px solid var(--row); color: var(--taupe); }

/* status lines */
.status { font: 400 12px/1.6 var(--sans); color: var(--taupe-2); margin: 14px 0 0; }
.status.is-saved { color: var(--ink); }
.notice { background: #EDE5D4; border-left: 3px solid var(--blue); padding: 14px 18px; color: var(--ink); font-size: 14px; }
.notice a { color: var(--blue); }

/* fees details */
.fees { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.fees summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 0; cursor: pointer; font: 400 22px/1.2 var(--serif); }
.fees summary::-webkit-details-marker { display: none; }
.fees summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--taupe); transition: transform .3s ease; }
.fees[open] summary::after { transform: rotate(45deg); }
.fees dl { margin: 0 0 14px; display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; font-size: 14px; }
.fees dt { color: var(--taupe-2); font-weight: 400; }
.fees dd { margin: 0; color: var(--ink); }
.fees p { font-size: 13px; }

/* ---------- dialogs (unit card, plan card, tour, Matterport) ---------- */
dialog { padding: 0; border: 0; color: var(--ink); max-width: none; max-height: none; }
dialog::backdrop { background: var(--scrim); }
/* Cards open below the fixed nav (round 2 finding 6): top edge at nav height + 16 px. */
.dlg { background: var(--paper); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - var(--nav-h) - 32px); margin: calc(var(--nav-h) + 16px) 16px auto auto; overflow: auto; overscroll-behavior: contain; box-shadow: var(--lift); }
.dlg[open] { animation: dlgIn .35s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.dlg--center { margin: calc(var(--nav-h) + 16px) auto auto; width: min(760px, calc(100vw - 32px)); }
.dlg--center[open] { animation-name: dlgUp; }
@keyframes dlgUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.dlg__head { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 24px 26px 18px; background: var(--paper); border-bottom: 1px solid var(--hair); }
.dlg__head h2 { font-size: 31px; line-height: 1.1; }
.dlg__head .sub { margin: 6px 0 0; font: 400 15px/1.4 var(--sans); color: var(--blue); font-variant-numeric: tabular-nums; }
.dlg__head .kicker { margin: 0 0 4px; font: 400 13.5px/1.4 var(--sans); color: var(--taupe-2); }
.x { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; display: grid; place-items: center; background: none; border: 0; color: var(--taupe); transition: color .2s ease; }
.x:hover { color: var(--ink); }
.x svg { width: 16px; height: 16px; }
.dlg__body { padding: 20px 26px 26px; display: grid; gap: 22px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--hair); }
.facts > div { padding: 10px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 2px; }
.facts > div:nth-child(odd) { padding-right: 14px; }
.facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--hair); }
.facts > div.wide { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
.facts dt { font: 400 12.5px/1.4 var(--sans); color: var(--taupe-2); }
.facts dd { margin: 0; font: 400 15px/1.4 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.planview { position: relative; background: #fff; border: 1px solid var(--hair); aspect-ratio: 1 / 1; }
/* unit card on desktop: facts in four columns and a 16:9 plan well, so the
   virtual tour poster shows above the action bar at 900 px tall */
@media (min-width: 761px) {
  .facts--unit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dlg .facts--unit > div:nth-child(n) { padding: 10px 10px; border-left: 1px solid var(--hair); }
  .dlg .facts--unit > div:nth-child(4n+1) { padding-left: 0; border-left: 0; }
  .dlg .facts--unit > div.wide { grid-column: span 2; }
  .planview--short { aspect-ratio: 16 / 9; }
}
.planview img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; transition: opacity .85s var(--ease); }
.planview img.is-off { opacity: 0; }
.planview .seg { position: absolute; left: 10px; top: 10px; z-index: 2; }
.planview .open-full { position: absolute; right: 8px; bottom: 8px; z-index: 2; min-height: 36px; padding: 6px 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); font: 400 12px/1 var(--sans); color: var(--taupe); }
.seg { display: inline-flex; border: 1px solid var(--field); background: #fff; }
.seg button { min-width: 48px; min-height: 36px; padding: 0 12px; border: 0; background: transparent; font: 400 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--night); color: var(--cream); }
.tourposter { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--night); color: var(--cream); text-align: left; overflow: hidden; }
.tourposter img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .82; transition: opacity .4s ease, transform .8s var(--ease); }
.tourposter:hover img { opacity: .95; transform: scale(1.02); }
.tourposter::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(18, 17, 14, .78)); pointer-events: none; }
.tourposter span { z-index: 1; position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.tourposter b { font: 400 22px/1.15 var(--serif); }
.tourposter small { color: var(--cream); font-size: 12.5px; }
.tourposter .play { z-index: 1; position: absolute; left: 50%; top: 42%; width: 58px; height: 58px; margin: -29px 0 0 -29px; display: grid; place-items: center; border: 1px solid rgba(248, 245, 238, .8); border-radius: 50%; background: rgba(38, 44, 53, .35); }
.tourposter .play svg { width: 16px; margin-left: 3px; }
.dlg__actions { position: sticky; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 26px 18px; background: var(--paper); border-top: 1px solid var(--hair); }
.dlg__actions .btn { padding-left: 12px; padding-right: 12px; }
.dlg__actions .help { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; }
.dlg__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.dlg__list .unit-row > button { grid-template-columns: 70px minmax(0, 1fr) auto; padding-left: 8px; }

/* Matterport */
.mp { background: var(--night); color: var(--cream); width: 100vw; height: 100dvh; margin: 0; max-width: 100vw; max-height: 100dvh; display: none; grid-template-rows: auto 1fr auto; }
.mp[open] { display: grid; }
.mp__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px 12px 28px; border-bottom: 1px solid rgba(248, 245, 238, .12); }
.mp__bar h2 { color: var(--cream); font-size: 26px; }
.mp__bar .btns { gap: 10px; }
.mp__bar .x { color: var(--cream); margin: 0; }
.mp__frame { position: relative; background: #000; }
.mp__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mp__help { margin: 0; padding: 12px 28px; color: #C3C7CB; font-size: 13px; max-width: none; }
.mp__help a { color: var(--blue-on-night); }

/* tour scheduler */
.ts { width: min(680px, calc(100vw - 32px)); background: var(--linen); margin: auto; max-height: calc(100dvh - 32px); overflow: hidden; display: none; }
.ts[open] { display: flex; flex-direction: column; animation: dlgUp .35s var(--ease); }
.ts__scroll { overflow: auto; overscroll-behavior: contain; padding: 40px 48px 0; flex: 1; }
.ts__step { font: 400 13px/1.4 var(--sans); color: var(--taupe-2); margin: 0 0 6px; }
.ts h2 { font-size: 36px; line-height: 1.1; margin-bottom: 10px; }
.ts .x { position: absolute; right: 14px; top: 14px; margin: 0; }
.ts__filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 14px; }
.ts__filters .result-count { font-size: 13px; }
.ts__homes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--field); max-height: 300px; overflow: auto; }
.ts__home { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; width: 100%; padding: 13px 14px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--row); transition: background-color .25s; }
.ts__home:hover { background: #F6F1E6; }
.ts__home[aria-pressed="true"] { background: var(--row-selected); box-shadow: inset 3px 0 0 var(--blue); }
.ts__home b { font: 400 22px/1.15 var(--serif); color: var(--ink); }
.ts__home .r { font: 400 15px/1.4 var(--sans); color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ts__home span { font: 400 13px/1.5 var(--sans); color: var(--taupe-2); }
.ts__bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 48px 18px; border-top: 1px solid var(--field); background: var(--linen); box-shadow: 0 -14px 24px -18px rgba(33, 29, 21, .35); }
.ts__bar p { margin: 0; font-size: 13.5px; color: var(--ink); }
.ts__chosen { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; border-top: 1px solid var(--field); border-bottom: 1px solid var(--field); margin: 18px 0 20px; }
.ts__chosen h3 { font-size: 24px; }
.ts__week { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font: 400 14px/1.4 var(--sans); }
.ts__week button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--field); }
.ts__week button[disabled] { opacity: .35; cursor: default; }
.ts__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ts__days button { min-height: 58px; display: grid; gap: 2px; place-content: center; border: 1px solid var(--field); background: var(--paper); font: 400 12px/1.2 var(--sans); color: var(--taupe); font-variant-numeric: tabular-nums; }
.ts__days button b { font: 400 18px/1 var(--serif); color: var(--ink); }
.ts__days button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--cream); }
.ts__days button[aria-pressed="true"] b { color: var(--cream); }
.ts__days button[disabled] { opacity: .35; cursor: default; background: transparent; }
.ts__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 14px 0 22px; }
.ts__slots button { min-height: 44px; border: 1px solid var(--field); background: var(--paper); font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s, border-color .25s; }
.ts__slots button:hover { border-color: var(--blue); }
.ts__slots button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.ts__panel { animation: tsIn .5s cubic-bezier(.65, 0, .35, 1); }
@keyframes tsIn { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
.ts__consent { grid-column: 1 / -1; margin: 0; }
.ts__done { padding: 8px 0 40px; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label, .field .flabel { font: 400 13px/1.4 var(--sans); color: var(--taupe); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 0; background: var(--paper); font: 400 15px/1.4 var(--sans); color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--taupe) 50%), linear-gradient(135deg, var(--taupe) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BFB39C; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .err { font: 400 12.5px/1.4 var(--sans); color: var(--error); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--taupe); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--night); }
.form .btn { justify-self: start; }
.form-msg { grid-column: 1 / -1; margin: 0; }
.form-msg.is-ok { background: #E6ECE4; border-left: 3px solid #4C6B4A; padding: 14px 18px; color: var(--ink); }
.form-msg.is-err { background: #F3E3DC; border-left: 3px solid var(--error); padding: 14px 18px; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* lightbox */
.lb { background: rgba(20, 22, 26, .96); width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; color: var(--cream); display: none; grid-template-rows: auto 1fr auto; }
.lb[open] { display: grid; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 10px 24px; font-size: 13px; color: #C3C7CB; }
.lb__bar .x { color: var(--cream); margin: 0; }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 72px; }
.lb__stage img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; background: #fff0; }
.lb__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; display: grid; place-items: center; border: 1px solid rgba(248, 245, 238, .4); background: rgba(38, 44, 53, .5); color: var(--cream); }
.lb__nav:hover { background: var(--cream); color: var(--night); }
.lb__nav svg { width: 14px; }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
.lb__cap { margin: 0 auto; padding: 14px 24px 20px; color: #D8D2C4; font-size: 14px; text-align: center; max-width: 80ch; }

/* ---------- gallery ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery::after { content: ""; flex-grow: 999; }
.gtile { position: relative; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 150px); padding: 0; border: 0; background: var(--hair); overflow: hidden; }
.gtile img { width: 100%; aspect-ratio: var(--r); object-fit: cover; transition: transform 1.2s var(--ease), opacity .4s ease; }
.gtile:hover img { transform: scale(1.03); }
.gtile figcaption, .gtile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(18, 17, 14, .7)); color: var(--cream); font: 400 13px/1.4 var(--sans); text-align: left; opacity: 0; transition: opacity .35s ease; }
.gtile:hover .cap, .gtile:focus-visible .cap { opacity: 1; }
.tours { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- amenities ---------- */
.alist { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--row); }
.alist li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--row); font: 400 15px/1.5 var(--sans); color: var(--ink); }
.alist .ai { flex: none; width: 22px; height: 22px; color: var(--blue); }
.alist--two { columns: 2; column-gap: 40px; border-top: 0; }
.alist--two li { break-inside: avoid; }
.alist--two li:first-child, .alist--two li { border-top: 0; }
.photo-band { position: relative; min-height: 520px; display: flex; align-items: flex-end; color: var(--cream); }
.photo-band > .photo { position: absolute; inset: 0; }
.photo-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 17, 14, .72) 0%, rgba(18, 17, 14, .45) 50%, rgba(18, 17, 14, .1) 100%), linear-gradient(180deg, rgba(18, 17, 14, 0) 40%, rgba(18, 17, 14, .45)); }
.photo-band__text { position: relative; z-index: 2; width: 100%; padding-bottom: 72px; }
.photo-band__text > * { max-width: 620px; }
.photo-band h2 { color: var(--cream); margin-bottom: 16px; }
.photo-band p { color: #ECE7DC; font-size: 15px; }

/* ---------- neighborhood: see neighborhood.css (loaded on /neighborhood only) ---------- */

/* ---------- prose pages ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 31px; margin: 40px 0 12px; }
.prose ul { padding-left: 1.1em; color: var(--taupe); }
.prose li { margin: 4px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 24px; font-size: 13.5px; }
.prose th, .prose td { overflow-wrap: anywhere; } /* long host names wrap instead of widening the page at 375 (round 4 finding 7) */
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--row); vertical-align: top; }
.prose th { font-weight: 400; color: var(--taupe-2); }
.prose td { color: var(--ink); }
.linklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.linklist li { border-bottom: 1px solid var(--row); }
.linklist a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; text-decoration: none; color: var(--ink); font: 400 22px/1.2 var(--serif); transition: color .3s ease; }
.linklist a:hover { color: var(--blue); }
.linklist a span { font: 400 13.5px/1.6 var(--sans); color: var(--taupe-2); text-align: right; }
.details { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.details li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--row); font-size: 15px; }
.details li > span:first-child { color: var(--taupe-2); font-size: 13.5px; padding-top: 2px; }
.details a { color: var(--ink); text-decoration-color: var(--hair-hover); text-underline-offset: 4px; }
.details a:hover { color: var(--blue); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--row); }
.team li { padding: 16px 0; border-bottom: 1px solid var(--row); display: flex; justify-content: space-between; gap: 18px; }
.team b { font: 400 22px/1.2 var(--serif); }
.team span { color: var(--taupe-2); font-size: 13.5px; }

/* ---------- explorer (availability) ---------- */
.ex { padding: 22px 0 10px; }
.ex__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.ex__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(320px, 4fr); gap: 24px; align-items: start; }
.ex__stage { position: relative; height: 640px; background: #EEE9DF; border: 1px solid var(--hair); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ex__stage.is-grab { cursor: grab; }
.ex__stage.is-dragging { cursor: grabbing; }
.ex__stage.is-pointing { cursor: pointer; }
.ex__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex__overlay, .ex__plan { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ex__plan { background: #EEE9DF; }
.ex__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ex.is-ready .ex__poster { display: none; }
.ex__controls { position: absolute; left: 14px; bottom: 14px; z-index: 4; display: flex; gap: 6px; flex-wrap: wrap; }
.ex__controls button, .ex__compass { width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--field); color: var(--ink); transition: background-color .25s, color .25s; }
.ex__controls button:hover { background: var(--night); color: var(--cream); border-color: var(--night); }
.ex__controls button:active { transform: scale(.96); }
.ex__controls button svg { width: 16px; height: 16px; }
.ex__controls .wide { width: auto; padding: 0 14px; font: 400 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.ex__compass { position: absolute; right: 14px; top: 14px; z-index: 4; pointer-events: none; font: 400 11px/1 var(--sans); }
.ex__compass span { display: block; transition: transform .4s var(--ease); }
.ex__hint { position: absolute; right: 14px; bottom: 18px; z-index: 4; margin: 0; font: 400 12px/1.4 var(--sans); color: var(--taupe-2); background: rgba(251, 249, 243, .85); padding: 4px 8px; pointer-events: none; }
.ex__hint-m { display: none; }
.ex__stage.is-2d [data-ex-rotate] { display: none; }
.ex__unit { fill: transparent; stroke: none; pointer-events: none; outline: none; }
.ex__unit:focus-visible { fill: rgba(38, 44, 53, .28); stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; }
.ex__btag text { font: 400 11px/1 var(--sans); fill: var(--ink); }
.ex__btag rect { fill: rgba(251, 249, 243, .9); stroke: var(--hair-hover); }
.ex__amen text { font: italic 400 14px/1 var(--serif); fill: var(--night); paint-order: stroke; stroke: rgba(251, 249, 243, .9); stroke-width: 4px; }
.ex__plan .u { fill: #F3EFE7; stroke: #8F8473; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s ease-out; }
.ex__plan .u.is-avail { fill: rgba(59, 88, 120, .85); cursor: pointer; }
.ex__plan .u.is-filtered { fill: rgba(59, 88, 120, .28); }
.ex__plan .u.is-sel { fill: var(--night); }
.ex__plan .cell { cursor: pointer; outline: none; }
.ex__plan .cell .hit { fill: transparent; }
.ex__plan .cell:hover .u, .ex__plan .cell:focus-visible .u { fill: var(--night); }
/* font-size and halo width are set per render in viewBox units (explorer.js render2D) so numbers stay 11 to 12 px on screen */
.ex__plan .ul { font-family: var(--sans); font-weight: 400; fill: var(--taupe-2); stroke: none; text-anchor: middle; dominant-baseline: central; pointer-events: none; font-variant-numeric: tabular-nums; }
.ex__plan .ul.is-avail { fill: #fff; font-weight: 500; stroke: rgb(59, 88, 120); paint-order: stroke; stroke-linejoin: round; }
.ex__tip { position: absolute; z-index: 5; pointer-events: none; background: var(--night); color: var(--cream); padding: 8px 10px; font: 400 12.5px/1.45 var(--sans); white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s ease; }
.ex__tip.is-on { opacity: 1; }
.ex__list { background: var(--paper); border: 1px solid var(--hair); display: flex; flex-direction: column; height: 640px; }
.ex__listhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.ex__listhead .result-count { margin: 0; }
.ex__listhead .select select { min-height: 36px; }
.ex__results { position: relative; overflow: auto; flex: 1; border-top: 0; } /* contains the rows' .sr-only spans (round 4 finding 4) */
.ex__results .unit-row > button { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 14px; }
.ex__results .unit-row img { width: 56px; height: 56px; }
/* floor ladder on the map, top-left: top floor at the top, like the buildings;
   "All" (3D only) sits apart above the three floors */
.ex__ladder { position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.ex__rungs { display: flex; flex-direction: column; border: 1px solid var(--field); background: var(--paper); }
.ex__rung { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; background: var(--paper); border: 0; color: var(--ink); font: 400 15px/1 var(--sans); font-variant-numeric: tabular-nums; transition: background-color .25s, color .25s; }
.ex__rungs .ex__rung + .ex__rung { border-top: 1px solid var(--field); }
.ex__rung.is-all { border: 1px solid var(--field); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ex__rung:hover { background: #ECE6DA; }
.ex__rung[aria-pressed="true"] { background: var(--night); color: var(--cream); }
.ex__rung.is-all[aria-pressed="true"] { border-color: var(--night); }
.ex__rung:focus-visible { outline-offset: -4px; position: relative; z-index: 1; }
.ex__rung[aria-pressed="true"]:focus-visible { outline-color: var(--cream); }
.ex__rung[hidden] { display: none; }
.ex__active { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ex__active button { display: inline-flex; gap: 8px; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--night); background: var(--night); color: var(--cream); font: 400 12.5px/1 var(--sans); }
.ex__filtersbtn { display: none; }
.ex__sheethead, .ex__sheetfoot { display: none; }
.ex__notes { display: grid; gap: 2px; margin-top: 12px; }
.ex__notes p { margin: 0; }

/* reveal (claimed by scroll-reveal.js only; content is visible without JS) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.15s var(--ease), transform 1.15s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* loading cover (home): shown only while html.is-loading */
.cover { position: fixed; inset: 0; z-index: 9000; background: var(--night); display: none; place-items: center; transition: opacity .7s ease; }
html.is-loading .cover { display: grid; }
.cover img { width: min(300px, 56vw); animation: pulse 2.4s ease-in-out infinite; }
.cover.is-out { opacity: 0; pointer-events: none; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__slides img:not(:first-child) { display: none; }
  .reveal { opacity: 1; transform: none; }
}
