/* 904 Dale Court SE — listing site for J Group Realty
   Palette is taken from the house: slate-gray lap siding, white trim, the
   fieldstone base and the red front door. J Group's teal marks anything
   you can select. Type: Young Serif for display (the weight of a craftsman
   signboard), Hanken Grotesk for reading, IBM Plex Mono for measurements. */

:root {
  --slate-950: #161D22;
  --slate: #27323A;
  --slate-800: #313E47;
  --slate-700: #3E4C56;
  --ink: #1D262C;
  --siding: #5E6E79;
  --siding-2: #A7B3BA;
  --trim: #F2F4F3;
  --paper: #FFFFFF;
  --board: #E6EAE9;
  --rule: #D5DCDD;
  --rule-dark: rgba(167, 179, 186, .22);
  --stone: #B7AC9B;
  --door: #8E2F26;
  --door-deep: #72241D;
  --teal: #157A72;
  --teal-hi: #1FA398;
  --mint: #7FD1C9;
  --sun: #E9B949;
  --on-dark: #EEF2F1;
  --on-dark-2: rgba(238, 242, 241, .76);
  --on-dark-3: rgba(238, 242, 241, .54);
  --danger: #A33B2B;

  --f-display: "Young Serif", Georgia, serif;
  --f-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --header-h: 84px;
  --section-y: clamp(80px, 10vw, 152px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 10px;
  --r-lg: 18px;

  --z-bar: 40;
  --z-header: 50;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--trim);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.hero :focus-visible, .plan :focus-visible, .contact :focus-visible, .footer :focus-visible,
.drawer :focus-visible, .lightbox :focus-visible, .love__card--sun :focus-visible { outline-color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }
.mono { font-family: var(--f-mono); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mint); color: var(--slate); padding: 10px 16px; font-weight: 600; border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

/* status switch */
[data-status="sold"] .when-active,
[data-status="active"] .when-sold { display: none !important; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow--dark { color: var(--mint); }
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.prose p {
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.05em; }
.prose .lead { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.55; }
.fine { font-size: 13px; line-height: 1.6; color: var(--siding); max-width: 80ch; }
.fine a { color: var(--teal); }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600;
  color: var(--teal); text-decoration: none; background: none; border: 0; padding: 4px 0;
  box-shadow: inset 0 -1px 0 currentColor;
}
.link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translateX(3px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 17px; height: 17px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--door { background: var(--door); color: #fff; }
.btn--door:hover { background: var(--door-deep); }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .24); }
.btn--line { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.btn--line:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 50%;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--board); }
.icon-btn--dark { border-color: var(--rule-dark); color: var(--on-dark); }
.icon-btn--dark:hover { background: rgba(238, 242, 241, .1); }

.tag {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; background: #fff; color: var(--door);
}
.tag--live { background: var(--mint); color: var(--slate); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- header: a floating trim-white bar, so the full-color logo always reads ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
  pointer-events: none;
}
.site-header__bar {
  pointer-events: auto;
  max-width: calc(var(--max) + 40px); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  min-height: 60px; padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 999px;
  box-shadow: 0 10px 30px -12px rgba(22, 29, 34, .35), 0 0 0 1px rgba(22, 29, 34, .05);
  transition: box-shadow .35s var(--ease), background-color .35s var(--ease);
}
.site-header.is-solid .site-header__bar { background: rgba(255, 255, 255, .96); }
.brand { flex: none; display: block; }
.brand img { height: 34px; width: auto; }
.primary-nav { display: flex; gap: 4px; margin: 0 auto; }
.primary-nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--siding);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.primary-nav a:hover { color: var(--ink); background: var(--trim); }
.primary-nav a[aria-current="true"] { color: var(--ink); background: var(--board); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 0; }
.header-phone { font-family: var(--f-mono); font-size: 14px; text-decoration: none; color: var(--siding); }
.header-phone:hover { color: var(--ink); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--trim); border: 0; border-radius: 999px; color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.menu-btn .icon { width: 20px; height: 20px; }
@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1060px) {
  .primary-nav { display: none; }
  .primary-nav + .header-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .site-header { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .site-header .btn { display: none; }
  .brand img { height: 28px; }
  .site-header__bar { min-height: 54px; padding-left: 16px; }
}

/* ---------- drawer (menu) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(22, 29, 34, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; width: min(760px, 100vw);
  background: var(--slate); color: var(--on-dark);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[open] { animation: drawerIn .45s var(--ease-out); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer__inner { padding: 22px clamp(20px, 5vw, 56px) 48px; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.drawer__logo { height: 38px; width: auto; background: #fff; padding: 6px 12px; border-radius: 999px; box-sizing: content-box; }
.drawer .icon-btn { color: var(--on-dark); border-color: var(--rule-dark); }
.drawer .icon-btn:hover { background: rgba(238, 242, 241, .1); }
.drawer .eyebrow { color: var(--mint); }
.drawer__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.drawer__list a { display: block; padding: 7px 0; text-decoration: none; color: var(--on-dark-2); font-size: 16px; }
.drawer__list a:hover { color: var(--on-dark); }
.drawer__list--big a { font-family: var(--f-display); font-size: clamp(24px, 3vw, 32px); color: var(--on-dark); line-height: 1.25; padding: 5px 0; }
.drawer__list--big a:hover { color: var(--mint); }
.drawer__contact { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule-dark); display: grid; gap: 10px; font-size: 15px; color: var(--on-dark-2); }
.drawer__contact a { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--on-dark); }
@media (max-width: 620px) { .drawer__cols { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; background: var(--slate-950); color: #fff; }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 660px; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
  transform-origin: 38% 55%;
  transform: scale(calc(1.02 + var(--hp, 0) * .12));
  will-change: transform;
}
.js .hero__img { animation: heroSettle 3s var(--ease-out) both; }
@keyframes heroSettle { from { scale: 1.08; filter: brightness(.6) saturate(.8); } to { scale: 1; filter: none; } }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(22, 29, 34, .9) 0%, rgba(22, 29, 34, .55) 30%, rgba(22, 29, 34, 0) 58%),
    linear-gradient(90deg, rgba(22, 29, 34, .45) 0%, rgba(22, 29, 34, 0) 55%);
  opacity: calc(1 + var(--hp, 0) * .6);
}
.hero__placeholder {
  position: absolute; top: calc(96px + env(safe-area-inset-top, 0px)); right: var(--gutter);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); padding: 6px 12px; border: 1px dashed rgba(255, 255, 255, .5); border-radius: 999px; background: rgba(22, 29, 34, .45);
}
[data-flythrough]:not([data-flythrough="pending"]) .hero__placeholder { display: none; }
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(64px, 10vh, 112px);
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  opacity: calc(1 - var(--hp, 0) * 1.7);
  transform: translateY(calc(var(--hp, 0) * -48px));
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(22, 29, 34, .5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(50px, 9vw, 148px);
  line-height: .92; letter-spacing: -.035em;
  text-shadow: 0 2px 40px rgba(22, 29, 34, .35);
}
.hero__place { font-size: clamp(18px, 1.8vw, 24px); color: rgba(255, 255, 255, .82); margin-top: 16px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero__facts li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 14px; color: rgba(255, 255, 255, .86);
}
.hero__facts b { font-family: var(--f-mono); font-weight: 500; font-size: 15px; color: #fff; }
.hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: 32px; }
.hero__status { display: flex; align-items: center; gap: 14px; }
.hero__price { font-family: var(--f-display); font-size: clamp(30px, 3.2vw, 44px); line-height: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__rail {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  height: 2px; background: rgba(255, 255, 255, .16); opacity: 0; transition: opacity .6s; border-radius: 2px;
}
.hero__rail span { display: block; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: 0 50%; }
.hero__cue {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .7);
  writing-mode: vertical-rl;
  opacity: calc(1 - var(--hp, 0) * 3);
}
.hero__cue i { display: block; width: 1px; height: 64px; background: linear-gradient(var(--mint), rgba(127, 209, 201, 0)); }
.js .rise { animation: rise 1s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (max-width: 560px) { .hide-sm { display: none; } .plan__stage { margin: 0 -10px; } }
@media (max-width: 760px) {
  .hero__cue { display: none; }
  .hero__img { object-position: 40% 40%; }
  .hero__facts li { padding: 7px 12px; font-size: 13px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__placeholder { top: auto; bottom: calc(var(--hero-copy-h, 0px) + 8px); display: none; }
}

/* ---------- facts bar ---------- */
.factsbar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.factsbar__list {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--siding);
}
.factsbar__list li { display: flex; align-items: center; }
.factsbar__list li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--stone); margin: 0 clamp(12px, 1.8vw, 26px); }
.factsbar__list strong { color: var(--door); font-weight: 500; }
@media (max-width: 700px) {
  .factsbar__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 12px; }
  .factsbar__list li + li::before { display: none; }
}

/* ---------- overview ---------- */
.overview__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.overview .h2 { max-width: 20ch; margin-bottom: 40px; }
.glance { position: sticky; top: 100px; background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: 0 1px 0 var(--rule), 0 20px 50px -30px rgba(22, 29, 34, .3); }
.glance__head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.glance__head .eyebrow { margin-bottom: 8px; color: var(--door); }
.glance__big { font-family: var(--f-display); font-size: 46px; line-height: 1; letter-spacing: -.02em; }
.glance__note { margin-top: 10px; font-size: 14.5px; color: var(--siding); }
.glance__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--board); font-size: 15px; }
.glance__list dt { color: var(--siding); }
.glance__list dd { text-align: right; font-weight: 500; }
.glance__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.glance__actions .btn { flex: 1 1 auto; }
.calc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.calc label { display: grid; gap: 6px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--siding); }
.calc input, .calc select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: var(--trim); border-radius: var(--r); font-family: var(--f-sans); font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.calc__suffix { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--siding); }
.calc__out { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.calc__out output { font-family: var(--f-display); font-size: 36px; font-variant-numeric: tabular-nums; }
.calc__out span { font-size: 13.5px; color: var(--siding); }
.calc__note { margin-top: 8px; font-size: 12.5px; color: var(--siding); }
@media (max-width: 960px) {
  .overview__grid { grid-template-columns: 1fr; }
  .glance { position: static; }
}

/* ---------- why we love it ---------- */
.love { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 4.5vw, 64px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; }
.section-head__lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: var(--siding); max-width: 46ch; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }
.love .h2 { max-width: 18ch; }
.love__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.love__card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 28px; box-shadow: 0 1px 0 var(--rule); }
.love__img { display: block; padding: 0; border: 0; background: var(--board); aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 26px; }
.love__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.love__img:hover img { transform: scale(1.04); }
.love__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.2; letter-spacing: -.01em; padding: 0 28px; }
.love__text { margin-top: 12px; padding: 0 28px; font-size: 16px; line-height: 1.65; color: var(--siding); }
/* the solar card: a typographic panel instead of a photo that can't show the roof */
.love__card--sun { background: var(--slate); color: var(--on-dark); position: relative; justify-content: flex-end; padding-top: 28px; }
.love__card--sun .love__text { color: var(--on-dark-2); }
.sun { position: absolute; inset: 0 0 auto 0; padding: 22px 22px 0; }
.sun__art { width: 100%; height: auto; overflow: visible; }
.sun__arc { fill: none; stroke: rgba(233, 185, 73, .5); stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.sun__disc { fill: var(--sun); filter: drop-shadow(0 0 14px rgba(233, 185, 73, .75)); }
.js .sun__disc { cx: 0; cy: 0; offset-path: path("M20 180A140 140 0 0 1 300 180"); offset-rotate: 0deg; offset-distance: 12%; transition: offset-distance 2.6s var(--ease-out); }
.js .love__card--sun.is-lit .sun__disc { offset-distance: 50%; }
.sun__cell { fill: rgba(127, 209, 201, .1); stroke: rgba(127, 209, 201, .35); stroke-width: .8; transition: fill .5s var(--ease), stroke .5s var(--ease); transition-delay: var(--sd, 0s); }
.love__card--sun.is-lit .sun__cell { fill: rgba(127, 209, 201, .5); stroke: var(--mint); }
.love__num { font-family: var(--f-display); font-size: clamp(96px, 11vw, 168px); line-height: .8; letter-spacing: -.05em; color: var(--sun); padding: 0 24px; margin: 120px 0 18px; font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 1000px) {
  .love__grid { grid-template-columns: 1fr 1fr; }
  .love__card--sun { grid-column: 1 / -1; min-height: 420px; }
}
@media (max-width: 640px) {
  .love__grid { grid-template-columns: 1fr; }
  .love__card--sun { min-height: 440px; }
}

/* ---------- floor plan (signature) ---------- */
.plan { background: var(--slate); color: var(--on-dark); position: relative; overflow: hidden; }
.plan::before {
  /* blueprint grid, the paper the plans sit on */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(167, 179, 186, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 179, 186, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 85%);
}
.plan .wrap { position: relative; }
.plan__head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 44px); }
.plan__hint { font-size: 16px; color: var(--on-dark-2); max-width: 34ch; justify-self: end; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 860px) { .plan__head { grid-template-columns: 1fr; } .plan__hint { justify-self: start; } }

.levels { display: inline-flex; gap: 6px; padding: 6px; background: var(--slate-950); border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; }
.levels button {
  display: grid; gap: 0; text-align: left; min-height: 52px; padding: 7px 20px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark-2);
  transition: background-color .25s var(--ease), color .25s var(--ease); white-space: nowrap;
}
.levels__n { font-weight: 600; font-size: 15px; line-height: 1.3; }
.levels__m { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--on-dark-3); }
.levels button:hover { color: var(--on-dark); }
.levels button[aria-selected="true"] { background: var(--mint); color: var(--slate); }
.levels button[aria-selected="true"] .levels__m { color: rgba(39, 50, 58, .7); }
@media (max-width: 560px) { .levels { display: flex; } .levels button { flex: 1; padding: 7px 12px; } .levels__m { display: none; } }

.plan__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.plan__stage { min-width: 0; }
.plan__sheet { position: relative; aspect-ratio: 1600 / 1131; }
/* the supplied plans are black on white; inverted and screened they draw in white on slate */
.plan__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  filter: invert(1) brightness(.92); mix-blend-mode: screen; opacity: 0;
  transition: opacity .45s var(--ease), transform .6s var(--ease-out); transform: scale(.985);
}
.plan__img.is-on { opacity: .9; transform: none; }
.plan__spots { position: absolute; inset: 0; }
.spot {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px;
  border: 1px solid rgba(127, 209, 201, .55); border-radius: 999px; background: rgba(22, 29, 34, .82);
  color: var(--on-dark); font-size: 13px; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease-out), opacity .3s var(--ease);
  animation: spotIn .5s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 50ms + .15s);
}
@keyframes spotIn { from { opacity: 0; transform: scale(.7); } }
.spot i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); flex: none; }
.spot i::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--mint); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; animation-delay: calc(var(--i, 0) * .3s); }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.8); opacity: 0; } }
.spot__n { font-family: var(--f-mono); font-weight: 500; font-size: 11px; color: var(--mint); }
.spot:hover, .spot[aria-pressed="true"] { background: var(--mint); color: var(--slate); border-color: var(--mint); transform: scale(1.06); z-index: 2; }
.spot:hover .spot__n, .spot[aria-pressed="true"] .spot__n { color: var(--slate); }
.spot:hover i, .spot[aria-pressed="true"] i { background: var(--slate); }
.spot--quiet { border-style: dashed; }
.plan__spots.has-active .spot:not([aria-pressed="true"]) { opacity: .55; }
.plan__note { margin-top: 12px; font-size: 12.5px; color: var(--on-dark-3); }
@media (max-width: 700px) {
  .spot { min-height: 30px; padding: 0 8px 0 6px; font-size: 11.5px; gap: 5px; }
  .spot__n { display: none; }
  .spot i { width: 8px; height: 8px; }
}
@media (max-width: 480px) {
  .spot span:not(.spot__n) { display: none; }
  .spot { width: 30px; height: 30px; padding: 0; justify-content: center; }
}

.room { background: var(--slate-950); border-radius: var(--r-lg); padding: 26px; min-height: 100%; }
.room__level { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 10px; }
.room__lede { font-size: 16px; line-height: 1.7; color: var(--on-dark-2); }
.room__name { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -.015em; }
.room__dims { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(127, 209, 201, .12); color: var(--mint); font-size: 14px; }
.room__dims[hidden] { display: none; }
.room__dims .icon { width: 16px; height: 16px; }
.room__text { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--on-dark-2); }
.room__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.room__strip button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--slate-800); }
.room__strip button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.room__strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.room__strip button:hover img { transform: scale(1.05); }
.room__empty { grid-column: 1 / -1; font-size: 14px; color: var(--on-dark-3); padding: 14px; border: 1px dashed var(--rule-dark); border-radius: 8px; }
.room__back { margin-top: 20px; color: var(--mint); }
.room__back .icon { width: 15px; height: 15px; }
.room__list { margin-top: 22px; border-top: 1px solid var(--rule-dark); }
.room__list button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--rule-dark); background: none; text-align: left;
  font-size: 15.5px; color: var(--on-dark); transition: color .2s var(--ease), padding .25s var(--ease);
}
.room__list button span { font-family: var(--f-mono); font-size: 12.5px; color: var(--on-dark-3); }
.room__list button:hover, .room__list button[aria-pressed="true"] { color: var(--mint); padding-left: 8px; }
.room__detail + .room__list { display: none; }
.room__detail[hidden] + .room__list { display: block; }
.room__detail:not([hidden]) { animation: rise .5s var(--ease-out); }
@media (max-width: 960px) { .plan__grid { grid-template-columns: 1fr; } }

/* ---------- tours ---------- */
.tours__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 1.6vw, 24px); }
.tour figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 600; }
.tour__frame { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--slate); }
.tour__frame > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tour__frame:hover > img { transform: scale(1.03); }
.tour__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--slate); }
.tour__play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  border: 0; color: #fff; background: linear-gradient(180deg, rgba(22, 29, 34, .05), rgba(22, 29, 34, .55));
}
.tour__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .94); color: var(--door); box-shadow: 0 16px 40px -12px rgba(22, 29, 34, .6); transition: transform .3s var(--ease-out); }
.tour__icon .icon { width: 30px; height: 30px; }
#tour-video .tour__icon .icon { fill: currentColor; stroke: none; margin-left: 4px; }
.tour__play:hover .tour__icon { transform: scale(1.07); }
.tour__label { font-weight: 600; font-size: 16px; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .tours__grid { grid-template-columns: 1fr; } .tour__icon { width: 68px; height: 68px; } }

/* ---------- gallery ---------- */
.gallery { background: var(--paper); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent;
  font-size: 14px; font-weight: 500; color: var(--siding);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip span { font-family: var(--f-mono); font-size: 12px; opacity: .75; margin-left: 4px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
.tile { position: relative; display: block; padding: 0; border: 0; background: var(--board); overflow: hidden; border-radius: var(--r); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.gallery__grid .tile { aspect-ratio: 4 / 3; animation: tileIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 28ms); }
.gallery__grid .tile--big { grid-column: span 2; grid-row: span 2; }
@keyframes tileIn { from { opacity: 0; transform: translateY(10px); } }
.tile__room {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; background: rgba(22, 29, 34, .74); color: #fff;
  font-size: 12px; font-weight: 600; border-radius: 999px;
  opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.tile:hover .tile__room, .tile:focus-visible .tile__room { opacity: 1; transform: none; }
@media (hover: none) { .tile__room { opacity: 1; transform: none; } }
.gallery__more { margin-top: 32px; text-align: center; }
@media (max-width: 900px) { .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
@media (max-width: 480px) { .tile__room { display: none; } }

/* ---------- neighborhood ---------- */
.walkband { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 56px); }
.walk { padding: 20px 20px 8px 0; }
.walk + .walk { padding-left: 20px; border-left: 1px solid var(--rule); }
.walk__min { font-family: var(--f-display); font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em; }
.walk__min small { font-family: var(--f-mono); font-size: 14px; letter-spacing: 0; color: var(--siding); margin-left: 6px; }
.walk__to { margin-top: 10px; font-size: 15.5px; font-weight: 500; }
.walk__how { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-family: var(--f-mono); font-size: 12px; color: var(--siding); }
.walk__how .icon { width: 14px; height: 14px; }
@media (max-width: 860px) {
  .walkband { grid-template-columns: 1fr 1fr; }
  .walk:nth-child(3) { padding-left: 0; border-left: 0; }
  .walk:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

.hood__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.map { height: clamp(380px, 46vw, 600px); background: var(--board); border-radius: var(--r-lg); overflow: hidden; }
.map__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; }
.places .tabs { display: flex; gap: 4px; padding: 4px; background: var(--board); border-radius: 999px; margin-bottom: 10px; }
.tabs button {
  flex: 1; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: none;
  font-size: 14px; font-weight: 600; color: var(--siding); transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 29, 34, .12); }
.dist li + li { border-top: 1px solid var(--board); }
.dist__row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 4px 16px; align-items: center;
  padding: 11px 10px; margin: 0 -10px; border: 0; background: none; text-align: left; border-radius: var(--r);
  transition: background-color .2s var(--ease);
}
button.dist__row:hover, .dist__row.is-active { background: var(--paper); }
.dist__name { font-size: 15.5px; line-height: 1.3; }
.dist__note { display: block; font-size: 13px; color: var(--siding); margin-top: 2px; }
.dist__mi { grid-row: 1 / 3; grid-column: 2; text-align: right; font-family: var(--f-mono); font-size: 14px; }
.dist__bar { grid-column: 1; height: 5px; background: var(--board); border-radius: 4px; overflow: hidden; }
.dist__bar i { display: block; height: 100%; width: var(--w); min-width: 3px; background: var(--siding-2); border-radius: 4px; transition: background-color .2s var(--ease); }
button.dist__row:hover .dist__bar i, .dist__row.is-active .dist__bar i { background: var(--teal-hi); }
.dist__pin { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-hi); margin-right: 8px; vertical-align: 1px; }
.places .fine { margin: 14px 0 20px; }
@media (max-width: 960px) { .hood__grid { grid-template-columns: 1fr; } }

/* leaflet overrides */
.leaflet-container { font-family: var(--f-sans); background: var(--board); }
.leaflet-control-attribution { font-size: 10px; }
.pin { background: none; border: 0; }
.pin span { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--teal-hi); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(22, 29, 34, .35); transition: transform .2s var(--ease); }
.pin.is-active span { transform: scale(1.45); background: var(--ink); }
.pin--school span { background: var(--siding); }
.pin--home span { width: 34px; height: 34px; background: var(--door); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(142, 47, 38, .18), 0 4px 12px rgba(22, 29, 34, .4); display: grid; place-items: center; }
.pin--home span::after { content: ""; width: 12px; height: 10px; background: #fff; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.leaflet-tooltip.tip { font-family: var(--f-sans); font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 0; box-shadow: 0 4px 16px rgba(22, 29, 34, .2); color: var(--ink); }
.leaflet-tooltip.tip strong { font-weight: 600; }
.route { stroke: var(--door); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; fill: none; }

/* ---------- agent ---------- */
.agent { background: var(--board); }
.agent__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.agent__photo { position: relative; max-width: 460px; }
.agent__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--r-lg) var(--r-lg); }
.agent__photo::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 36%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); z-index: -1; }
.agent__grid .agent__photo { isolation: isolate; }
.agent__role { margin-top: 12px; font-size: 16px; color: var(--siding); }
.agent__quote { margin-top: 28px; padding-left: 20px; border-left: 3px solid var(--door); }
.agent__quote p { font-family: var(--f-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.35; letter-spacing: -.01em; max-width: 30ch; }
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 36px 0 30px; border-top: 1px solid var(--rule); }
.creds > div { padding: 16px 16px 0 0; }
.creds > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.creds dt { font-family: var(--f-display); font-size: clamp(30px, 3vw, 42px); line-height: 1.05; letter-spacing: -.02em; }
.creds dd { margin-top: 6px; font-size: 14px; color: var(--siding); }
.agent__links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
@media (max-width: 900px) { .agent__grid { grid-template-columns: 1fr; } .agent__photo { max-width: 300px; } }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } .creds > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } .creds > div { padding-bottom: 14px; } }

/* ---------- contact ---------- */
.contact { background: var(--slate); color: var(--on-dark); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact .h2 { max-width: 14ch; }
.contact__lede { margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--on-dark-2); max-width: 44ch; }
.contacts { margin-top: 36px; border-top: 1px solid var(--rule-dark); }
.contacts li { padding: 20px 0; border-bottom: 1px solid var(--rule-dark); }
.contacts__name { font-family: var(--f-display); font-size: 24px; margin-bottom: 8px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.contacts__actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: var(--on-dark); font-size: 15.5px; }
.contacts__actions a .icon { color: var(--mint); }
.contacts__actions a:hover { color: var(--mint); }
.contacts__meta { margin-top: 4px; font-family: var(--f-mono); font-size: 12.5px; color: var(--on-dark-3); }

.form-card { background: var(--paper); color: var(--ink); padding: clamp(22px, 4vw, 44px); border-radius: var(--r-lg); }
.form-card :focus-visible { outline-color: var(--teal); }
.label { display: block; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--siding); margin-bottom: 8px; }
.label__hint { font-family: var(--f-sans); letter-spacing: 0; text-transform: none; font-weight: 400; margin-left: 6px; font-size: 13px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg { margin-bottom: 24px; }
.seg__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg__opts label { position: relative; }
.seg__opts input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opts span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 999px;
  font-size: 14.5px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.seg__opts input:checked + span { background: var(--slate); color: #fff; border-color: var(--slate); }
.seg__opts input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.seg__opts--small span { min-height: 40px; font-size: 13.5px; }
.days-field { margin-bottom: 24px; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.day {
  display: grid; justify-items: center; gap: 2px; padding: 10px 4px; min-height: 62px; border: 1px solid var(--rule); background: var(--trim); border-radius: var(--r);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--siding);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.day b { font-family: var(--f-display); font-weight: 400; font-size: 23px; letter-spacing: 0; color: var(--ink); line-height: 1; }
.day[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--mint); }
.day[aria-pressed="true"] b { color: #fff; }
[data-topic]:not([data-topic="showing"]) .when-topic-showing { display: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 20px; }
.field--wide { grid-column: 1 / -1; }
.field input:not([type="radio"]), .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--trim); border-radius: var(--r);
  font-size: 16px; color: var(--ink); transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--teal); background: #fff; outline: none; }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field__err { min-height: 22px; font-size: 13px; color: var(--danger); padding-top: 4px; }
.field--inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.field--inline .label { width: 100%; }
.field--inline label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; }
.field--inline input { width: 18px; height: 18px; accent-color: var(--slate); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--siding); text-align: center; }
.form-done { text-align: center; padding: 40px 8px; }
.form-done:focus { outline: none; }
.form-done__icon { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: var(--mint); color: var(--slate); stroke-width: 2.4; margin: 0 auto 18px; }
.form-done__title { font-family: var(--f-display); font-size: 32px; margin-bottom: 12px; }
.form-done__text { font-size: 17px; line-height: 1.65; color: var(--siding); max-width: 40ch; margin: 0 auto 22px; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .day b { font-size: 19px; } }

/* ---------- footer ---------- */
.footer { background: var(--slate-950); color: var(--on-dark-2); padding: clamp(64px, 8vw, 104px) 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand img { width: 120px; height: auto; margin-bottom: 20px; background: #fff; padding: 14px; border-radius: var(--r-lg); box-sizing: content-box; }
.footer__brand p { max-width: 38ch; line-height: 1.65; }
.footer .eyebrow { color: var(--mint); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); }
.footer__col li + li { margin-top: 8px; }
.footer__contact { line-height: 1.9; }
.socials { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-dark); border-radius: 50%; color: var(--on-dark-2); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--mint); border-color: var(--mint); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: 13px; color: var(--on-dark-3); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- mobile action bar ---------- */
.actionbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: var(--z-bar);
  display: none; grid-template-columns: auto auto 1fr; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(22, 29, 34, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px -12px rgba(22, 29, 34, .6);
  transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.actionbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; color: var(--on-dark); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.actionbar a .icon { color: var(--mint); }
.actionbar .actionbar__main { background: var(--door); color: #fff; }
.actionbar.is-on { transform: none; }
@media (max-width: 760px) { .actionbar { display: grid; } .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; margin: 0; background: var(--slate-950); color: var(--on-dark);
  display: none; grid-template-rows: auto minmax(0, 1fr) auto auto; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; animation: lbIn .35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox::backdrop { background: rgba(22, 29, 34, .92); }
.lb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(12px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 32px) 12px; }
.lb__meta { display: flex; align-items: baseline; gap: 16px; font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.lb__room { color: var(--mint); font-weight: 500; }
.lb__count { color: var(--on-dark-3); }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); touch-action: pan-y; user-select: none; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .25s var(--ease); }
.lb__stage img.is-loading { opacity: .25; }
.lb__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--rule-dark); background: rgba(39, 50, 58, .7); color: var(--on-dark); display: grid; place-items: center;
}
.lb__nav:hover { background: rgba(238, 242, 241, .14); }
.lb__nav .icon { width: 22px; height: 22px; }
.lb__nav--prev { left: clamp(8px, 2vw, 28px); }
.lb__nav--next { right: clamp(8px, 2vw, 28px); }
.lb__cap { text-align: center; padding: 14px 20px 10px; font-size: 16px; color: var(--on-dark-2); }
.lb__strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px clamp(16px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom, 0px)); scrollbar-width: thin; scrollbar-color: var(--slate-700) transparent; }
.lb__strip button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--slate-800); opacity: .45; outline-offset: -2px; transition: opacity .2s var(--ease); }
.lb__strip button img { width: 100%; height: 100%; object-fit: cover; }
.lb__strip button:hover { opacity: .85; }
.lb__strip button[aria-current="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--mint); }
@media (max-width: 700px) { .lb__nav { display: none; } .lb__strip button { width: 64px; } }

/* ---------- share sheet ---------- */
.sheet {
  width: min(560px, calc(100vw - 32px)); margin: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-lg);
  padding: 24px clamp(20px, 4vw, 32px) 28px; box-shadow: 0 40px 80px -30px rgba(22, 29, 34, .5);
}
.sheet[open] { animation: sheetIn .35s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sheet__title { font-family: var(--f-display); font-size: 28px; }
.share__body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: start; }
.share__qr { aspect-ratio: 1; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 10px; display: grid; place-items: center; }
.share__qr svg, .print-back__qr svg { width: 100%; height: auto; }
.share__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share__opt {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border: 1px solid var(--rule); background: #fff; border-radius: var(--r);
  font-size: 14.5px; text-decoration: none; color: var(--ink); transition: border-color .2s var(--ease);
}
.share__opt:hover { border-color: var(--ink); }
.share__opt .icon { color: var(--teal); }
.share__hint { margin-top: 16px; font-size: 13px; color: var(--siding); }
@media (max-width: 520px) { .share__body { grid-template-columns: 1fr; } .share__qr { width: 150px; } }

/* ---------- print: the brochure ---------- */
.print-only { display: none; }
@media print {
  @page { size: letter; margin: 12mm; }
  html { scroll-behavior: auto; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .drawer, .hero__cue, .hero__rail, .hero__cta, .hero__placeholder, .factsbar, .glance__actions, .calc,
  .plan__hint, .levels, .room__back, .tours, .gallery, .map-wrap, .places .tabs, .actionbar, .lightbox, .sheet,
  .contact .form-card, .agent__links, .footer__col, .socials, .skip, noscript, .walkband, .spot i::after { display: none !important; }
  .js .reveal, .js .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  .section { padding: 8mm 0 !important; }
  .hero { height: auto; min-height: 0; break-after: page; background: #fff; color: #000; }
  .hero__stage { position: relative; height: auto; min-height: 0; overflow: visible; }
  .hero__img { position: relative; inset: auto; height: 150mm; transform: none !important; animation: none !important; }
  .hero__scrim { display: none; }
  .hero__copy { position: relative; padding: 8mm 0 0; opacity: 1 !important; transform: none !important; color: #000; }
  .hero__title { font-size: 40pt; text-shadow: none; }
  .hero__place, .hero__eyebrow { color: #333; }
  .hero__facts li { background: none; border-color: #999; color: #000; }
  .hero__facts b { color: #000; }
  .tag { border: 1px solid #000; }
  .plan, .contact, .footer, .love__card--sun, .room { background: #fff !important; color: #000 !important; }
  .plan::before { display: none; }
  .plan { break-before: page; }
  .plan__img { filter: none; mix-blend-mode: normal; }
  .plan__spots, .room__strip, .room__list { display: none; }
  .room__lede, .love__card--sun .love__text, .contact__lede, .contacts__actions a, .contacts__meta { color: #000 !important; }
  .sun { display: none; }
  .love__num { margin-top: 0; }
  .agent__photo { display: none; }
  .print-only { display: block; }
  .print-back { break-before: page; text-align: center; padding-top: 30mm; font-size: 12pt; line-height: 1.8; }
  .print-back__title { font-family: var(--f-display); font-size: 24pt; margin-bottom: 10mm; }
  .print-back__qr { width: 50mm; margin: 0 auto 10mm; }
  a { text-decoration: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__img { transform: none !important; }
  .hero__copy { opacity: 1 !important; transform: none !important; }
}
