/* 9932 Clearfield Avenue — listing site
   Palette is taken from the twilight photograph: dusk sky, slate siding,
   white trim, and the warm light in the windows. Brass carries the team's
   gold logo onto light backgrounds. */

:root {
  --dusk-950: #0A1220;
  --dusk: #101B2D;
  --dusk-800: #16243A;
  --dusk-700: #22324C;
  --ink: #132033;
  --slate: #4A5A6C;
  --siding: #8E9DAD;
  --siding-2: #B9C4CE;
  --trim: #F3F4F1;
  --paper: #FAFAF8;
  --board: #E7EAEA;
  --rule: #D3D9DD;
  --rule-dark: rgba(185, 196, 206, .2);
  --brass: #8A6733;
  --brass-deep: #6E5127;
  --lamp: #EDB866;
  --lamp-hi: #F5CB86;
  --pool: #7FD3DC;
  --on-dark: #F2F0EA;
  --on-dark-2: rgba(242, 240, 234, .74);
  --on-dark-3: rgba(242, 240, 234, .52);
  --danger: #A33B2B;

  --f-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --f-serif: "Libre Caslon Text", Georgia, serif;
  --f-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --header-h: 76px;
  --section-y: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 2px;

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

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
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 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.hero :focus-visible, .levels :focus-visible, .favs :focus-visible, .contact :focus-visible,
.footer :focus-visible, .site-header :focus-visible, .drawer :focus-visible, .lightbox :focus-visible { outline-color: var(--lamp); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nb { white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lamp); color: var(--dusk); padding: 10px 16px; font-weight: 500; }
.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-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 18px;
}
.eyebrow--dark { color: var(--lamp); }
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.deck {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--slate);
  max-width: 34ch;
  margin-top: 22px;
  text-wrap: pretty;
}
.prose p, .prose-p {
  font-family: var(--f-serif);
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink);
  max-width: 62ch;
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.1em; }
.prose .lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; }
.prose a { color: var(--brass); text-underline-offset: 3px; }
.fine { font-size: 13px; line-height: 1.6; color: var(--slate); max-width: 80ch; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-sans); font-size: 14px; font-weight: 500; letter-spacing: .06em;
  color: var(--brass); text-decoration: none; background: none; border: 0; padding: 4px 0;
  border-bottom: 1px solid currentColor;
}
.link .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover .icon { transform: translate(2px, -1px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font-family: var(--f-sans); font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r); 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(.98); }
.btn .icon { width: 16px; height: 16px; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 11.5px; }
.btn--block { width: 100%; }
.btn--lamp { background: var(--lamp); color: var(--dusk); }
.btn--lamp:hover { background: var(--lamp-hi); }
.btn--brass { background: var(--brass); color: var(--paper); }
.btn--brass:hover { background: var(--brass-deep); }
.btn--ghost-dark { border-color: rgba(242, 240, 234, .5); color: var(--on-dark); }
.btn--ghost-dark:hover { background: rgba(242, 240, 234, .1); border-color: var(--on-dark); }
.btn--ghost { border-color: rgba(19, 32, 51, .28); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(19, 32, 51, .04); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

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

.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px;
  font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border-radius: var(--r);
}
.tag--lamp { background: var(--lamp); color: var(--dusk); }

/* ---------- 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 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top, 0);
  color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-solid {
  background: rgba(16, 27, 45, .94);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--rule-dark);
  --header-h: 64px;
}
.brand { flex: none; display: block; }
.brand img { height: 30px; width: auto; }
.site-header.is-solid .brand img { height: 26px; }
.primary-nav { display: flex; gap: clamp(18px, 2.2vw, 34px); margin: 0 auto; }
.primary-nav a {
  position: relative; padding: 8px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--on-dark-2); transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--lamp);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.primary-nav a:hover, .primary-nav a[aria-current="true"] { color: var(--on-dark); }
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.primary-nav + .header-actions { margin-left: 0; }
.header-phone { font-size: 14px; letter-spacing: .06em; text-decoration: none; color: var(--on-dark-2); }
.header-phone:hover { color: var(--on-dark); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  background: none; border: 0; color: var(--on-dark);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.menu-btn .icon { width: 22px; height: 22px; }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 980px) {
  .primary-nav { display: none; }
  .site-header .btn { display: none; }
  .primary-nav + .header-actions { margin-left: auto; }
}

/* ---------- drawer (menu) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 18, 32, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; width: min(760px, 100vw);
  background: var(--dusk); 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: 24px clamp(24px, 5vw, 56px) 48px; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 44px; }
.drawer__logo { height: 28px; width: auto; }
.drawer__cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; }
.drawer__list li + li { margin-top: 2px; }
.drawer__list a { display: block; padding: 7px 0; text-decoration: none; color: var(--on-dark-2); font-size: 15px; }
.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(--lamp); }
.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: 640px; background: var(--dusk); color: var(--on-dark); }
.hero__stage { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 44% 55%;
  transform-origin: 42% 60%;
  transform: scale(calc(1.02 + var(--hp, 0) * .1));
  will-change: transform;
}
.js .hero__img { animation: heroSettle 3.2s var(--ease-out) both; }
@keyframes heroSettle { from { scale: 1.09; filter: brightness(.7); } to { scale: 1; filter: none; } }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, .62) 0%, rgba(10, 18, 32, 0) 20%),
    linear-gradient(0deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .5) 34%, rgba(10, 18, 32, 0) 62%),
    linear-gradient(90deg, rgba(10, 18, 32, .5) 0%, rgba(10, 18, 32, 0) 58%);
  opacity: calc(1 + var(--hp, 0) * .6);
}
.hero__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) clamp(76px, 11vh, 124px);
  max-width: calc(1180px + 2 * var(--gutter));
  opacity: calc(1 - var(--hp, 0) * 1.7);
  transform: translateY(calc(var(--hp, 0) * -48px));
}
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 8.4vw, 132px);
  line-height: .94; letter-spacing: -.018em;
  max-width: 11.5ch;
  text-shadow: 0 2px 30px rgba(10, 18, 32, .35);
}
.hero__place {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(20px, 2.1vw, 30px); color: var(--on-dark-2);
  margin-top: 14px;
}
.hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 28px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark);
}
.hero__facts li:not(:last-child)::after { content: "/"; margin: 0 16px; color: var(--on-dark-3); }
.hero__status { margin-top: 26px; }
.hero__status p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero__price { font-family: var(--f-display); font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.hero__was { font-size: 13px; letter-spacing: .08em; color: var(--on-dark-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__rail {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  height: 1px; background: rgba(242, 240, 234, .16); opacity: 0; transition: opacity .6s;
}
.hero__rail span { display: block; height: 100%; background: var(--lamp); transform: scaleX(0); transform-origin: 0 50%; }
.hero__cue {
  position: absolute; right: var(--gutter); bottom: clamp(76px, 11vh, 124px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; color: var(--on-dark-2);
  writing-mode: vertical-rl;
  opacity: calc(1 - var(--hp, 0) * 3);
}
.hero__cue i { display: block; width: 1px; height: 56px; background: linear-gradient(var(--lamp), rgba(237, 184, 102, 0)); }
.js .rise { animation: rise 1.1s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@media (max-width: 760px) {
  .hero__cue { display: none; }
  .hero__img { object-position: 36% 50%; }
  .hero__facts li:not(:last-child)::after { margin: 0 10px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* ---------- 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: 22px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  font-size: 12.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--slate);
}
.factsbar__list li { display: flex; align-items: center; }
.factsbar__list li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--siding-2); margin: 0 clamp(14px, 2vw, 28px); }
.factsbar__list strong { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) {
  .factsbar__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
  .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: 18ch; margin-bottom: 44px; }
.glance { position: sticky; top: calc(var(--header-h) + 24px); background: var(--paper); border: 1px solid var(--rule); padding: 32px; }
.glance__sold { padding-bottom: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.glance__sold .eyebrow { margin-bottom: 10px; }
.glance__big { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.glance__note { margin-top: 12px; font-size: 14.5px; color: var(--slate); }
.glance__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--board); font-size: 14.5px; }
.glance__list dt { color: var(--slate); }
.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: 28px; padding-top: 24px; 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-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.calc input, .calc select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: #fff; border-radius: var(--r); 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(--slate); }
.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: 34px; font-variant-numeric: tabular-nums; }
.calc__out span { font-size: 13.5px; color: var(--slate); }
.calc__note { margin-top: 8px; font-size: 12.5px; color: var(--slate); }
@media (max-width: 960px) {
  .overview__grid { grid-template-columns: 1fr; }
  .glance { position: static; }
}

/* ---------- levels: the section drawing ---------- */
.levels { background: var(--dusk); color: var(--on-dark); }
.levels__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.levels__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.levels__hint { font-size: 15px; color: var(--on-dark-2); max-width: 36ch; justify-self: end; }
.hint-touch { display: none; }
@media (hover: none) { .hint-hover { display: none; } .hint-touch { display: inline; } }
@media (max-width: 860px) { .levels__head { grid-template-columns: 1fr; } .levels__hint { justify-self: start; } }
.levels__figure { margin: 0 calc(var(--gutter) * -.4); }
.levels__caption { margin-top: 10px; text-align: right; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-3); }

.sx { display: block; width: 100%; height: auto; overflow: visible;
  --sx-line: rgba(214, 222, 229, .78);
  --sx-tex: rgba(185, 196, 206, .16);
  --sx-glass: #1B2B45;
  --sx-bg: var(--dusk);
}
.sx-sky { pointer-events: none; }
.sx-tex { stroke: var(--sx-tex); stroke-width: 1; fill: none; }
.sx-tex--earth { stroke: rgba(185, 196, 206, .1); }
.sx-void { fill: var(--sx-bg); }
.sx-ln { fill: none; stroke: var(--sx-line); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.sx-ln--ground { stroke-width: 1.6; }
.sx-ln--roof { stroke-width: 2; }
.sx-ln--cut { stroke-width: 2.2; }
.sx-ln--thin { stroke-width: .9; opacity: .8; }
.sx-wall { stroke: var(--sx-line); }
.sx-dash, .sx-tree { fill: none; stroke: rgba(185, 196, 206, .32); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 5; }
.sx-tree { stroke: rgba(185, 196, 206, .26); stroke-dasharray: 2 6; }
.sx-win { fill: var(--sx-glass); stroke: var(--sx-line); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .7s var(--ease), opacity .45s var(--ease); }
.sx-lamp { fill: rgba(185, 196, 206, .22); transition: fill .35s var(--ease); pointer-events: none; }
.sx-water { fill: rgba(127, 211, 220, .12); transition: fill .8s var(--ease), opacity .45s var(--ease); }
.sx-poollight { fill: rgba(127, 211, 220, .3); transition: fill .6s var(--ease); }
.sx-lbl {
  font-family: var(--f-sans); font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  fill: rgba(242, 240, 234, .78); text-anchor: middle; paint-order: stroke; stroke: var(--sx-bg); stroke-width: 7px; stroke-linejoin: round;
  transition: fill .3s var(--ease);
}
.sx-lbl--quiet { fill: rgba(185, 196, 206, .6); font-size: 11px; }
.sx-lbl--dim { fill: rgba(185, 196, 206, .7); font-size: 11px; letter-spacing: .16em; }
.sx-hit { cursor: pointer; }
.sx-hit path, .sx-hit rect { fill: transparent; stroke: none; }
.sx-hit:focus { outline: none; }
.sx-hit:focus-visible path, .sx-hit:focus-visible rect { stroke: var(--lamp); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }

/* lights: everything stays dark; pointing at a zone (data-focus) turns its lights on.
   Key plans set data-focus to their own zone, so they show it lit. */
.sx[data-focus="upper"] .z-upper .sx-win,
.sx[data-focus="main"] .z-main .sx-win,
.sx[data-focus="lower"] .z-lower .sx-win,
.sx[data-focus="office"] .z-office .sx-win,
.sx[data-focus="outside"] .z-office .sx-win,
.sx[data-focus="porch"] .z-porch .sx-win,
.sx[data-focus="outside"] .z-porch .sx-win { fill: var(--lamp); filter: url(#sx-glow); transition-duration: .3s; }
.sx-screen { stroke: none; }
.sx[data-focus="porch"] .sx-screen, .sx[data-focus="outside"] .sx-screen { fill-opacity: .62; }
.sx[data-focus="lower"] .z-lower .sx-lamp { fill: var(--lamp); filter: url(#sx-glow); }
.sx[data-focus="pool"] .sx-water, .sx[data-focus="outside"] .sx-water { fill: rgba(127, 211, 220, .5); }
.sx[data-focus="pool"] .sx-poollight, .sx[data-focus="outside"] .sx-poollight { fill: var(--pool); filter: url(#sx-glow); }
.sx[data-focus="upper"] .sx-lbl.z-upper, .sx[data-focus="main"] .sx-lbl.z-main, .sx[data-focus="lower"] .sx-lbl.z-lower,
.sx[data-focus="porch"] .sx-lbl.z-porch, .sx[data-focus="pool"] .sx-lbl.z-pool, .sx[data-focus="office"] .sx-lbl.z-office { fill: var(--lamp); }

/* draw-in: .sx-draw elements get pathLength=1 from site.js */
.js .sx.is-armed .sx-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sx.is-armed .sx-dash, .js .sx.is-armed .sx-tree, .js .sx.is-armed .sx-labels, .js .sx.is-armed [fill^="url(#sx-"] { opacity: 0; }
.js .sx.is-drawn .sx-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease-out); transition-delay: var(--dd, 0s); }
.js .sx.is-drawn .sx-dash, .js .sx.is-drawn .sx-tree, .js .sx.is-drawn .sx-labels, .js .sx.is-drawn [fill^="url(#sx-"] { opacity: 1; transition: opacity 1.2s var(--ease) .9s; }

@media (max-width: 700px) {
  .sx .sx-labels { display: none; }
  .levels__figure { margin: 0 -8px; }
}

/* zone list */
.zones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-top: clamp(32px, 4vw, 52px); border-top: 1px solid var(--rule-dark); }
.zone {
  display: grid; align-content: start; gap: 6px; height: 100%; padding: 22px 18px 24px 0; margin-right: 18px;
  text-decoration: none; color: var(--on-dark);
  border-top: 2px solid transparent; margin-top: -1px;
  transition: border-color .3s var(--ease);
}
.zone__name { font-family: var(--f-display); font-size: 23px; line-height: 1.15; }
.zone__meta { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--lamp); }
.zone__text { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-2); }
.zone:hover, .zone.is-active { border-top-color: var(--lamp); }
@media (max-width: 1100px) { .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .zones { grid-template-columns: 1fr 1fr; }
  .zone { padding: 16px 12px 18px 0; margin-right: 12px; }
  .zone__name { font-size: 20px; }
  .zone__text { display: none; }
}

/* ---------- chapters ---------- */
.chapter { padding: var(--section-y) 0 0; }
.chapter:last-of-type { padding-bottom: var(--section-y); }
.chapter + .chapter .chapter__head { border-top: 1px solid var(--rule); padding-top: clamp(40px, 5vw, 64px); }
.chapter__head { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.chapter__titles .eyebrow { margin-bottom: 14px; }
.keyplan { order: 2; background: var(--dusk); padding: 14px 12px 8px; border-radius: var(--r); }
.keyplan::after { content: "Key plan"; display: block; margin-top: 6px; font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-3); }
.keyplan svg { display: block; width: 100%; height: auto; }
.keyplan .sx-labels, .keyplan .sx-hits, .keyplan .sx-sky { display: none; }
.chapter__lead { display: block; width: 100%; padding: 0; border: 0; background: var(--board); overflow: hidden; aspect-ratio: 16 / 8.2; }
.chapter__lead img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.chapter__lead:hover img { transform: scale(1.02); }
.chapter__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(240px, 3.4fr); gap: clamp(40px, 7vw, 120px); padding: clamp(40px, 5vw, 72px) 0; }
.rooms { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.rooms__list { border-top: 1px solid var(--rule); }
.rooms__list button {
  width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left;
  font-size: 15.5px; color: var(--ink); transition: color .2s var(--ease), padding .25s var(--ease);
}
.rooms__list button span { font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }
.rooms__list button:hover { color: var(--brass); padding-left: 6px; }
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; padding: 0; border: 0; background: var(--board); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out), opacity .4s; }
.tile:hover img { transform: scale(1.035); }
.mosaic .tile--a { grid-column: span 7; grid-row: span 2; }
.mosaic .tile--b, .mosaic .tile--c { grid-column: span 5; aspect-ratio: 3 / 2; }
.mosaic .tile--d, .mosaic .tile--e, .mosaic .tile--f { grid-column: span 4; aspect-ratio: 3 / 2; }
.chapter__more { margin-top: 28px; }
@media (max-width: 900px) {
  .chapter__head { grid-template-columns: 1fr; }
  .keyplan { order: 0; width: 200px; }
  .chapter__body { grid-template-columns: 1fr; }
  .rooms { position: static; }
  .chapter__lead { aspect-ratio: 4 / 3; }
  .mosaic { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mosaic .tile { grid-column: span 1 !important; grid-row: auto !important; aspect-ratio: 1; }
  .mosaic .tile--a { grid-column: span 2 !important; aspect-ratio: 3 / 2; }
  .mosaic .tile--f { display: none; }
}

/* ---------- hotsheet ---------- */
.hotsheet { background: var(--board); }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.section-head__lede { font-family: var(--f-serif); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--slate); max-width: 44ch; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }
.years { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.year { position: relative; padding: 26px 20px 8px 0; }
.year::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--brass); }
.year--empty::before { background: var(--board); border: 1px solid var(--siding); }
.year__n { display: block; font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 54px); line-height: 1; margin-bottom: 18px; font-variant-numeric: lining-nums; }
.year--empty .year__n { color: var(--siding); }
.year li li { font-size: 15.5px; line-height: 1.4; padding: 6px 0; border-bottom: 1px solid rgba(19, 32, 51, .1); }
.knowns { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(40px, 5vw, 64px) 0 24px; }
.knowns li { padding: 12px 18px; background: var(--paper); border: 1px solid var(--rule); font-size: 15px; }
.knowns strong { font-weight: 600; }
@media (max-width: 900px) {
  .years { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--ink); padding-left: 24px; }
  .year { padding: 0 0 28px; }
  .year::before { top: 12px; left: -29px; }
  .year--empty { display: none; }
  .year__n { margin-bottom: 10px; }
}

/* ---------- favorite things ---------- */
.favs { background: var(--dusk); color: var(--on-dark); }
.favs__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.favs .h2 { margin-bottom: 32px; }
.favs__list { border-top: 1px solid var(--rule-dark); }
.favs__list button {
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule-dark);
  padding: 13px 0; min-height: 48px; color: var(--on-dark-2);
  font-family: var(--f-display); font-size: clamp(21px, 2vw, 28px); line-height: 1.2;
  display: flex; align-items: center; gap: 14px; transition: color .25s var(--ease), padding .3s var(--ease);
}
.favs__list button::before { content: ""; width: 0; height: 1px; background: var(--lamp); transition: width .35s var(--ease-out); }
.favs__list button:hover, .favs__list button[aria-pressed="true"] { color: var(--on-dark); }
.favs__list button[aria-pressed="true"]::before { width: 28px; }
.favs__frame { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--dusk-800); aspect-ratio: 4 / 3; overflow: hidden; }
.favs__thumb { display: none; }
.favs__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.4s var(--ease-out); }
.favs__img.is-on { opacity: 1; transform: none; }
.favs__cap { margin-top: 14px; font-size: 14px; color: var(--on-dark-3); }
@media (max-width: 860px) {
  .favs__grid { grid-template-columns: 1fr; }
  .favs__figure { display: none; }
  .favs__list button { gap: 16px; padding: 10px 0; font-size: 21px; color: var(--on-dark); }
  .favs__list button::before { display: none; }
  .favs__thumb { display: block; flex: none; width: 76px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); background: var(--dusk-800); }
}

/* ---------- video ---------- */
.video__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 8vw, 140px); align-items: center; }
.video__text .h2 { margin-bottom: 28px; }
.video__text p + p { margin-top: 18px; }
.phone { width: min(360px, 82vw); aspect-ratio: 9 / 18.5; padding: 12px; background: var(--dusk); border-radius: 46px; box-shadow: 0 40px 80px -30px rgba(16, 27, 45, .45); }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: var(--dusk-800); }
.phone__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.phone__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.phone__play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  background: linear-gradient(180deg, rgba(16, 27, 45, .1), rgba(16, 27, 45, .55)); border: 0; color: var(--on-dark);
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
}
.phone__playicon { width: 76px; height: 76px; border-radius: 50%; background: var(--lamp); color: var(--dusk); display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.phone__playicon .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.phone__play:hover .phone__playicon { transform: scale(1.06); }
.phone__note { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-3); pointer-events: none; }
@media (max-width: 760px) { .video__grid { grid-template-columns: 1fr; justify-items: center; } .video__text { justify-self: stretch; } }

/* ---------- gallery ---------- */
.gallery { background: var(--paper); }
.gallery__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; }
.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: 13px; font-weight: 500; letter-spacing: .04em; color: var(--slate);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip span { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery__grid .tile { aspect-ratio: 3 / 2; animation: tileIn .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes tileIn { from { opacity: 0; transform: translateY(10px); } }
.tile__room {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; background: rgba(16, 27, 45, .72); color: var(--on-dark);
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border-radius: var(--r);
  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 ---------- */
.schools { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 40px; align-items: start; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: clamp(32px, 4vw, 56px); }
.schools__label { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
.schools__label span { display: block; margin-top: 6px; letter-spacing: .06em; text-transform: none; font-size: 14px; color: var(--slate); font-weight: 400; }
.schools__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.schools__list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-decoration: none; padding: 4px 0; }
.schools__kind { grid-column: 1; font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); }
.schools__name { grid-column: 1; font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 26px); line-height: 1.2; }
.schools__list .icon { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--brass); transition: transform .2s var(--ease); }
.schools__list a:hover .schools__name { color: var(--brass); }
.schools__list a:hover .icon { transform: translate(2px, -2px); }
@media (max-width: 860px) { .schools { grid-template-columns: 1fr; } .schools__list { grid-template-columns: 1fr; } }

.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: 1px solid var(--rule); }
.map__links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 16px; }
.places .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.tabs button {
  position: relative; min-height: 46px; padding: 0 16px 0 0; margin-right: 16px; border: 0; background: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
}
.tabs button::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.dist li + li { border-top: 1px solid var(--board); }
.dist__row {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 16px; align-items: center;
  padding: 11px 8px; margin: 0 -8px; 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(--slate); margin-top: 2px; }
.dist__mi { grid-row: 1 / 3; grid-column: 2; text-align: right; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.dist__bar { grid-column: 1; height: 6px; background: var(--board); border-radius: 0 4px 4px 0; overflow: hidden; }
.dist__bar i { display: block; height: 100%; width: var(--w); min-width: 3px; background: var(--siding); border-radius: 0 4px 4px 0; transition: background-color .2s var(--ease); }
button.dist__row:hover .dist__bar i, .dist__row.is-active .dist__bar i { background: var(--brass); }
.dist__pin { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 2px; }
.places .fine { margin: 16px 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(--brass); border: 2px solid var(--paper); box-shadow: 0 1px 4px rgba(16, 27, 45, .35); transition: transform .2s var(--ease); }
.pin.is-active span { transform: scale(1.45); background: var(--ink); }
.pin--school span { background: var(--slate); }
.pin--home span { width: 30px; height: 30px; background: var(--dusk); border: 0; box-shadow: 0 0 0 6px rgba(237, 184, 102, .35), 0 4px 12px rgba(16, 27, 45, .4); display: grid; place-items: center; }
.pin--home span::after { content: ""; width: 10px; height: 10px; background: var(--lamp); }
.leaflet-tooltip.tip { font-family: var(--f-sans); font-size: 13px; padding: 6px 10px; border-radius: var(--r); border: 0; box-shadow: 0 4px 16px rgba(16, 27, 45, .2); color: var(--ink); }
.leaflet-tooltip.tip strong { font-weight: 600; }
.route { stroke: var(--brass); stroke-width: 2; stroke-dasharray: 5 6; fill: none; }

/* ---------- team ---------- */
.team { background: var(--board); }
.team__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.team__photo img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.team__text .h2 { margin-bottom: 28px; }
.creds { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--rule); }
.creds > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.creds dt { font-family: var(--f-display); font-size: 26px; line-height: 1.1; }
.creds dd { font-size: 15px; color: var(--slate); }
.creds cite { font-style: italic; font-family: var(--f-serif); }
.team__links { display: flex; flex-wrap: wrap; gap: 14px 32px; }
@media (max-width: 900px) { .team__grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { background: var(--dusk); 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: 24px; font-family: var(--f-serif); font-size: 18px; line-height: 1.65; color: var(--on-dark-2); max-width: 44ch; }
.agents { margin-top: 40px; border-top: 1px solid var(--rule-dark); }
.agent { padding: 20px 0; border-bottom: 1px solid var(--rule-dark); }
.agent__name { font-family: var(--f-display); font-size: 24px; margin-bottom: 8px; }
.agent__actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.agent__actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; text-decoration: none; color: var(--on-dark); font-size: 15px; }
.agent__actions a .icon { color: var(--lamp); }
.agent__actions a:hover { color: var(--lamp); }
.agent__addr { margin-top: 6px; font-size: 14px; color: var(--on-dark-3); }

.form-card { background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 48px); border-radius: var(--r); }
.form-card :focus-visible { outline-color: var(--brass); }
.label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; }
.label__hint { letter-spacing: .04em; text-transform: none; font-weight: 400; margin-left: 6px; }
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: 14px; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.seg__opts input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg__opts input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.seg__opts--small span { min-height: 40px; font-size: 13px; }
.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: 60px; border: 1px solid var(--rule); background: #fff; border-radius: var(--r);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
  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: 22px; letter-spacing: 0; color: var(--ink); line-height: 1; }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--siding-2); }
.day[aria-pressed="true"] b { color: var(--paper); }
[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: 48px; padding: 12px 14px; border: 1px solid var(--rule); background: #fff; border-radius: var(--r);
  font-size: 16px; color: var(--ink); transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--ink); 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(--ink); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--slate); text-align: center; }
.form-done { text-align: center; padding: 40px 8px; }
.form-done:focus { outline: none; }
.form-done__icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--ink); color: var(--lamp); 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-family: var(--f-serif); font-size: 17px; line-height: 1.65; color: var(--slate); 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; } .days { grid-template-columns: repeat(5, minmax(0, 1fr)); } .day b { font-size: 19px; } }

/* ---------- footer ---------- */
.footer { background: var(--dusk-950); color: var(--on-dark-2); padding: clamp(64px, 8vw, 112px) 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 { height: 34px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 42ch; line-height: 1.65; }
.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: 24px; }
.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(--lamp); border-color: var(--lamp); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; margin-top: 64px; 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: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: none; grid-template-columns: auto auto 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(16, 27, 45, .96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule-dark);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.actionbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1px solid var(--rule-dark); border-radius: var(--r); color: var(--on-dark); text-decoration: none; font-size: 14px; }
.actionbar .actionbar__main { background: var(--lamp); color: var(--dusk); border-color: var(--lamp); font-weight: 500; }
.actionbar.is-on { transform: none; }
@media (max-width: 760px) { .actionbar { display: grid; } .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- coming soon card ---------- */
.soon {
  position: fixed; left: 24px; bottom: 24px; z-index: var(--z-toast); width: min(380px, calc(100vw - 48px));
  background: var(--paper); color: var(--ink); padding: 28px 26px 18px; border-radius: var(--r);
  box-shadow: 0 30px 60px -20px rgba(10, 18, 32, .45), 0 0 0 1px rgba(19, 32, 51, .06);
  animation: soonIn .6s var(--ease-out);
}
@keyframes soonIn { from { opacity: 0; transform: translateY(20px); } }
.soon .eyebrow { margin-bottom: 10px; }
.soon__close { position: absolute; top: 10px; right: 10px; color: var(--slate); border-color: var(--rule); }
.soon__close:hover { background: var(--board); }
.soon__title { font-family: var(--f-display); font-size: 25px; line-height: 1.15; margin-right: 36px; }
.soon__text { margin-top: 8px; font-size: 14.5px; color: var(--slate); }
.soon__form { display: flex; gap: 8px; margin-top: 16px; }
.soon__form input { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); font-size: 16px; }
.soon__later { font-size: 13px; color: var(--slate); border-bottom-color: transparent; }
@media (max-width: 760px) { .soon { display: none; } }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; margin: 0; background: var(--dusk-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(10, 18, 32, .9); }
.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-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.lb__room { color: var(--lamp); font-weight: 500; }
.lb__count { color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.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; transition: opacity .25s var(--ease), transform .35s var(--ease-out); }
.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(16, 27, 45, .6); color: var(--on-dark); display: grid; place-items: center;
}
.lb__nav:hover { background: rgba(242, 240, 234, .12); }
.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-family: var(--f-serif); font-style: italic; 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(--dusk-700) transparent; }
.lb__strip button { flex: none; width: 84px; aspect-ratio: 3 / 2; padding: 0; border: 0; background: var(--dusk-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(--lamp); }
.lb__strip button[aria-current="true"] img { opacity: .9; }
@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);
  padding: 24px clamp(20px, 4vw, 32px) 28px; box-shadow: 0 40px 80px -30px rgba(10, 18, 32, .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; }
.sheet .icon-btn { color: var(--ink); border-color: var(--rule); }
.sheet .icon-btn:hover { background: var(--board); }
.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); 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(--brass); }
.share__hint { margin-top: 16px; font-size: 13px; color: var(--slate); }
@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, .factsbar, .glance__actions, .calc, .levels__hint,
  .chapter__more, .rooms, .video, .gallery, .map-wrap, .places .tabs, .actionbar, .soon, .lightbox, .sheet,
  .contact .form-card, .team__links, .footer__col, .socials, .skip, .zones, .favs__figure, noscript { display: none !important; }
  .js .reveal, .js .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
  .section, .chapter { padding: 10mm 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__was { color: #333; }
  .tag--lamp { border: 1px solid #000; background: none; color: #000; }
  .levels, .favs, .contact, .footer { background: #fff !important; color: #000 !important; }
  .levels .sx { --sx-bg: #fff; --sx-line: #222; --sx-tex: rgba(0, 0, 0, .12); --sx-glass: #fff; }
  .sx-lbl { fill: #222 !important; stroke: #fff; }
  .eyebrow--dark { color: var(--brass); }
  .favs__list button { color: #000; font-size: 14pt; padding: 4px 0; }
  .chapter { break-before: page; }
  .chapter__lead { aspect-ratio: 16 / 8; }
  .keyplan { display: none; }
  .mosaic .tile--d, .mosaic .tile--e, .mosaic .tile--f { display: none; }
  .team__photo { display: none; }
  .contact__lede, .agent__addr, .agent__actions a, .footer { color: #000 !important; }
  .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; transition-duration: .01ms !important; }
  .hero__img { transform: none !important; }
  .hero__copy { opacity: 1 !important; transform: none !important; }
}
