/* 4400 Slide Mountain Cir — v3, cinematic.
   Dark throughout. Display type: Instrument Serif (Google Fonts, OFL) with a serif fallback; text: Inter Tight.
   Motion lives in app/: one spring system (app/engine.js), mirrored here as --spring and --dur-* for the few CSS
   transitions. Layers, back to front: the 3D canvas, the hand-drawn line, page content, labels, the nav, the cursor. */

:root {
  --bg: #07080b;
  --bg-2: #0d0f14;
  --ink: #f3efe8;
  --ink-2: #d9d2c6;
  --muted: #a39b8f;
  --faint: #6f695f;
  --line: rgba(243, 239, 232, 0.12);
  --accent: #ffc483;
  --accent-2: #a9c8ff;
  --glass: rgba(16, 18, 24, 0.46);
  --glass-strong: rgba(14, 16, 21, 0.72);
  --rim: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --gutter: 16px;
  --max: 1240px;
  --vh: 1vh;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  /* The site's spring (critically damped) as a curve, and its settle times. */
  --spring: cubic-bezier(0.3, 0.5, 0.1, 1);
  --dur-press: 120ms;
  --dur-ui: 430ms;
  --dur-move: 610ms;
}
@media (min-width: 734px) { :root { --gutter: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 44px; } }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--text);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
html.fine, html.fine a, html.fine button { cursor: none; }
html.fine input, html.fine iframe { cursor: auto; }
/* the photo viewer and the tour overlay sit above the custom cursor (z-index 90), so over them the real cursor comes back */
html.fine .explore, html.fine .lb { cursor: auto; }
html.fine .explore button, html.fine .lb button { cursor: pointer; }

/* ---------------------------------------------------------------- type */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.3rem, min(8vw, 14vh), 9.6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.display em, .headline em { font-style: italic; }
.headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede { font-size: clamp(1rem, 1.25vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.render-note { font-size: 0.75rem; line-height: 1.45; letter-spacing: 0.02em; color: var(--muted); margin-top: 14px; }

/* ---------------------------------------------------------------- pills (buttons) */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--dur-press) var(--spring), background-color var(--dur-ui) var(--spring), opacity var(--dur-press) var(--spring);
}
.pill.big { height: 52px; padding: 0 24px; font-size: 0.875rem; }
.pill-solid { background: var(--ink); color: #0b0b0d; }
.pill-ghost { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rim); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.pill:active { transform: scale(0.96); opacity: 0.9; }
.pill-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-dots { display: inline-flex; gap: 3px; } .pill-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.round { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform var(--dur-press) var(--spring), opacity var(--dur-ui) var(--spring); }
.round:active { transform: scale(0.94); }
.round[disabled] { opacity: 0.3; pointer-events: none; }

/* ---------------------------------------------------------------- fixed layers */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; background: #05060a; outline: none; }
html.no-gl #gl { display: none; }
.fallback-hero { display: none; }
html.no-gl .fallback-hero { display: block; position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; z-index: 0; filter: brightness(0.62); }
.doodle { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.doodle path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.doodle-under { stroke: rgba(255, 196, 131, 0.07); stroke-width: 1.3; }
.doodle-ink { stroke: url(#doodleGrad); stroke-width: 3.1; filter: drop-shadow(0 0 6px rgba(255, 170, 110, 0.35)); }
.doodle-head { fill: #ffe2b8; filter: drop-shadow(0 0 8px rgba(255, 190, 120, 0.9)); }
@media (max-width: 733px) { .doodle-ink { stroke-width: 2.2; } }
.labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.lab {
  position: absolute; left: 0; top: 0; visibility: hidden; opacity: 0;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  will-change: transform, opacity;
}
.lab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 196, 131, 0.18), 0 0 14px rgba(255, 196, 131, 0.8); flex: none; }
/* no backdrop blur on labels: a dozen blurs over the moving 3D image cost more than the scene itself */
.lab-t { display: flex; flex-direction: column; padding: 6px 11px 7px; border-radius: 12px; background: rgba(10, 11, 15, 0.78); box-shadow: inset 0 0 0 1px var(--rim), 0 4px 14px rgba(0, 0, 0, 0.35); }
.lab-t b { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; }
.lab-t i { font-style: normal; font-size: 0.7rem; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (max-width: 733px) { .lab-t { padding: 4px 8px 5px; } .lab-t b { font-size: 0.7rem; } .lab-t i { font-size: 0.64rem; } }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; z-index: 40; top: calc(14px + env(safe-area-inset-top)); left: 0; right: 0;
  padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; pointer-events: none;
}
.nav > * { pointer-events: auto; }
.wordmark { font-family: var(--display); font-size: 1.5rem; line-height: 1; letter-spacing: -0.01em; }
.wordmark em { font-style: italic; color: var(--ink-2); }
.wordmark { line-height: 1.35; }
.wm-by { display: block; }
@media (max-width: 733px) { .wm-circle { display: none; } .wm-by { font-size: 0.72rem; line-height: 1.25; margin-top: 2px; } html.fine .hint { top: calc(124px + env(safe-area-inset-top)); } }
.nav-right { display: flex; align-items: center; gap: 8px; }
.hint { display: none; position: fixed; z-index: 40; left: var(--gutter); top: calc(96px + env(safe-area-inset-top)); margin: 0; pointer-events: none;
  font-size: 0.75rem; letter-spacing: 0.04em; color: rgba(217, 210, 198, 0.85); text-shadow: 0 0 2px rgba(5, 6, 9, 0.9), 0 0 8px rgba(5, 6, 9, 0.6); }
html.fine .hint { display: block; }
.tod { display: none; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tod:not([hidden]) { display: flex; }
.tod button { height: 36px; padding: 0 12px; border-radius: 999px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color var(--dur-ui) var(--spring), background-color var(--dur-ui) var(--spring); }
.tod button[aria-checked="true"] { color: #0b0b0d; background: var(--ink); }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound-bars i { width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
#soundBtn[aria-pressed="true"] .sound-bars i { animation: bars 0.9s var(--spring) infinite alternate; }
#soundBtn[aria-pressed="true"] .sound-bars i:nth-child(2) { animation-delay: 0.2s; }
#soundBtn[aria-pressed="true"] .sound-bars i:nth-child(3) { animation-delay: 0.4s; }
@keyframes bars { to { height: 12px; } }
@media (max-width: 733px) { .nav .pill-solid { display: none; } .wordmark { font-size: 1.25rem; } .sound-label, .menu-label { display: none; } .tod button { padding: 0 9px; } }
@media (max-width: 400px) { .nav-right { gap: 6px; } .tod button { padding: 0 6px; } .wordmark { font-size: 1.125rem; } }
.menu {
  position: fixed; z-index: 45; top: calc(64px + env(safe-area-inset-top)); right: var(--gutter);
  width: min(300px, calc(100vw - 2 * var(--gutter))); padding: 10px; border-radius: 22px;
  display: flex; flex-direction: column; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--rim), 0 24px 60px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  transform-origin: calc(100% - 30px) -10px;
}
.menu[hidden] { display: none; }
.menu a { padding: 12px 14px; border-radius: 14px; font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.menu a:active { background: rgba(255, 255, 255, 0.08); }

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 30; pointer-events: none;
  display: grid; grid-template-rows: auto 1fr auto; padding: calc(22px + env(safe-area-inset-top)) var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.loader-word { font-family: var(--display); font-size: 1.5rem; opacity: 0.85; }
.loader-what { align-self: end; justify-self: end; width: 19em; text-align: left; white-space: nowrap; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.loader-count { position: absolute; left: var(--gutter); bottom: calc(10px + env(safe-area-inset-bottom)); font-family: var(--display); font-size: clamp(5rem, 17vw, 13rem); line-height: 0.82; letter-spacing: -0.03em; }
.odo { display: inline-flex; }
html:not(.fonts) .loader-count { visibility: hidden; }
.odo-d { display: inline-block; width: 0.56em; height: 0.82em; overflow: hidden; text-align: center; }   /* fixed width: no shift when the font arrives */
.odo-d > span { display: block; }
.odo-d > span > span { display: block; height: 0.82em; line-height: 0.82; }
.loader-bar { position: absolute; right: var(--gutter); bottom: calc(30px + env(safe-area-inset-bottom)); width: min(220px, 40vw); height: 1px; background: rgba(255, 255, 255, 0.18); }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.gl) .loader, html.ready .loader { visibility: hidden; }
@media (max-width: 733px) { .loader-what { justify-self: start; margin-bottom: 16vh; } .loader-bar { width: 40vw; } }

/* ---------------------------------------------------------------- the story (pinned) */
.story { position: relative; z-index: 2; height: calc(var(--story-screens, 23.75) * 100 * var(--vh)); }
.story-pin { position: sticky; top: 0; height: calc(100 * var(--vh)); overflow: hidden; pointer-events: none; }
.story-pin > * { pointer-events: auto; }
/* a soft shade behind the caption column, so copy stays readable over the bright parts of the home */
/* (deeper in daylight: --shade eases with the sun, 0 at dusk, 1 at noon) */
@property --shade { syntax: '<number>'; inherits: true; initial-value: 0; }
.story-pin { --shade: 0; transition: --shade 1.8s var(--spring); }
html[data-daylight="dawn"] .story-pin { --shade: 0.45; }
html[data-daylight="noon"] .story-pin { --shade: 1; }
.story-pin::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 6, 9, calc(0.62 + 0.24 * var(--shade))) 0%, rgba(5, 6, 9, calc(0.38 + 0.3 * var(--shade))) 26%, rgba(5, 6, 9, calc(0.18 * var(--shade))) 48%, rgba(5, 6, 9, 0) calc(48% + 14% * var(--shade))); }
@media (max-width: 733px) { .story-pin::before { background: linear-gradient(0deg, rgba(5, 6, 9, calc(0.7 + 0.18 * var(--shade))) 0%, rgba(5, 6, 9, calc(0.3 + 0.3 * var(--shade))) 34%, rgba(5, 6, 9, calc(0.12 * var(--shade))) 55%, rgba(5, 6, 9, 0) calc(55% + 12% * var(--shade))); } }
.cap {
  position: absolute; left: var(--gutter); bottom: calc(9 * var(--vh)); width: min(560px, 42vw);
  opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.cap .headline { margin-top: 2px; }
.cap .lede { margin-top: 18px; max-width: 34em; }
.cap-hero { width: min(980px, calc(100% - 2 * var(--gutter))); bottom: calc(7 * var(--vh)); }
.cap-hero .display { margin: 6px 0 24px; }
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ln > span { display: block; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stats dd, .stats dd > [data-count] { position: relative; }
.stats .count-live { position: absolute; left: 0; top: 0; white-space: nowrap; }   /* over the real (hidden) number, out of the flow */
.stats dd { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.05; font-variant-numeric: lining-nums tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.rooms { list-style: none; margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; max-width: 30em; }
.rooms li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.875rem; }
.rooms li span:last-child { color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.cap-floor .headline { font-size: clamp(1.9rem, 3.4vw, 3.1rem); }
.story-note { position: absolute; right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--muted); max-width: 22em; text-align: right; opacity: 0.85; }
.cue { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); transform-origin: 50% 0; animation: cue 1.8s var(--spring) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* the stop rail */
/* every label is always shown (the current stop brighter, a soft dark glow keeps them readable over the bright parts of the
   home); the dark backing panel fades in only while the pointer is on the rail (or a button has keyboard focus) */
.srail { position: absolute; right: calc(var(--gutter) - 6px); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 2px; padding: 10px 6px; border-radius: 20px; background: rgba(8, 9, 12, 0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0); transition: background-color var(--dur-ui) var(--spring), box-shadow var(--dur-ui) var(--spring); }
.srail:hover, .srail:has(:focus-visible) { background: rgba(8, 9, 12, 0.58); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.srail button { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; padding: 0 6px 0 12px; border-radius: 999px; }
.srail button i { width: 6px; height: 6px; border-radius: 50%; background: rgba(243, 239, 232, 0.35); transition: transform var(--dur-ui) var(--spring), background-color var(--dur-ui) var(--spring); }
.srail button span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; opacity: 0.9; text-shadow: 0 0 2px rgba(5, 6, 9, 0.95), 0 0 6px rgba(5, 6, 9, 0.9), 0 0 14px rgba(5, 6, 9, 0.8); transition: opacity var(--dur-ui) var(--spring); }
.srail button[aria-current="step"] i { background: var(--accent); transform: scale(1.6); }
.srail button[aria-current="step"] span, .srail:hover button span, .srail button:focus-visible span { opacity: 1; }
.srail .rail-gap { height: 8px; }
@media (max-height: 700px) { .srail button { height: 22px; } }
@media (max-width: 899px) { .srail { display: none; } }

/* the walk-through card */
.route-hud {
  position: absolute; left: var(--gutter); bottom: calc(8 * var(--vh)); width: min(430px, calc(100% - 2 * var(--gutter)));
  padding: 20px 22px 22px; border-radius: var(--radius); background: rgba(10, 11, 15, 0.5);
  box-shadow: inset 0 0 0 1px var(--rim); -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%);
  opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.route-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.route-head .eyebrow { margin-bottom: 0; }
.route-count { color: var(--muted); margin-left: 6px; }
.route-map { width: 92px; height: 92px; flex: none; margin: -6px -6px -24px 0; overflow: visible; }
.route-map .rm-wall { stroke: rgba(243, 239, 232, 0.28); stroke-width: 0.6; fill: none; stroke-linecap: round; }
.route-map .rm-path { stroke: rgba(255, 196, 131, 0.18); stroke-width: 1.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-map .rm-ink { stroke: var(--accent); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-map .rm-me { fill: #fff; filter: drop-shadow(0 0 3px rgba(255, 200, 140, 0.9)); }
.route-floor { margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.route-name { margin-top: 4px; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; }
.route-size { margin-top: 10px; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.route-note { margin-top: 6px; color: var(--ink-2); font-size: 0.9rem; min-height: 1.4em; }

@media (max-width: 733px) {
  .cap, .cap-hero { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(6 * var(--vh)); }
  .cap-floor, .cap[data-cap="lift"], .cap[data-cap="stack"], .cap-whole {
    padding: 18px 18px 20px; border-radius: var(--radius); background: rgba(10, 11, 15, 0.56);
    box-shadow: inset 0 0 0 1px var(--rim); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .cap .lede { font-size: 0.95rem; margin-top: 12px; }
  .cap[data-cap="stack"] .lede { display: none; }
  .rooms { grid-template-columns: 1fr; margin-top: 14px; }
  .rooms li { padding: 5px 0; font-size: 0.8rem; }
  .rooms li:nth-child(n+6) { display: none; }
  .route-hud { bottom: calc(5 * var(--vh)); padding: 16px 18px 18px; }
  .route-map { width: 74px; height: 74px; }
  .story-note { display: none; }
  .cue { display: none; }
  .actions .pill.big { height: 48px; padding: 0 18px; font-size: 0.78rem; }
}

/* ---------------------------------------------------------------- content sections */
section { position: relative; }
.photos, .film, .details, .plans, .location, .contact { z-index: 2; }
.section-head { padding-bottom: clamp(28px, 4vw, 48px); }
.section-head .lede { max-width: 36em; margin-top: 16px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.photos { padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 130px); }
.film, .details, .plans, .location { padding: clamp(72px, 10vw, 140px) 0; }
.details, .location { padding-left: var(--gutter); padding-right: var(--gutter); }
.contact { padding: clamp(96px, 14vw, 200px) 0 clamp(72px, 10vw, 130px); min-height: calc(100 * var(--vh)); display: flex; align-items: flex-end; }
.contact .wrap { width: 100%; }

/* photos: a two-column grid of folded-back cards (bowed top edge, a slight backward tilt on desktop) */
.gallery { --stagger: 0px; display: grid; grid-template-columns: 1fr; row-gap: 44px; }
.card { position: relative; margin: 0; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.card-photo { transform-origin: 50% 100%; transition: transform var(--dur-move) var(--spring); }
.card img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-2); clip-path: url(#bow); -webkit-user-drag: none; user-select: none; }
.card figcaption { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: end; padding: 14px 2px 14px; border-bottom: 1px solid rgba(243, 239, 232, 0.28); }
.card-title { grid-column: 1; font-family: var(--display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.card-sub { grid-column: 1; margin-top: 4px; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--muted); }
.card-arrow { grid-column: 2; grid-row: 2; margin-bottom: 3px; color: var(--ink-2); transition: transform var(--dur-ui) var(--spring); }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 6px; }
.card.lifted img { visibility: hidden; }
@media (min-width: 734px) {
  .gallery { --stagger: clamp(48px, 8vw, 120px); grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 40px); row-gap: clamp(40px, 5vw, 72px); padding-bottom: var(--stagger); }
  .card:nth-child(even) { translate: 0 var(--stagger); }
}
@media (min-width: 734px) and (hover: hover) {
  .card-photo { transform: perspective(1400px) rotateX(6deg); }
  .card:hover .card-photo, .card:focus-visible .card-photo { transform: perspective(1400px) rotateX(2deg); }
  .card:hover .card-arrow, .card:focus-visible .card-arrow { transform: translate(2px, 2px); }
}
@media (prefers-reduced-motion: reduce) { .card-photo, .card-arrow { transition: none; } }

/* film */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; isolation: isolate; }
.stage .film-poster, .stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.stage-start { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.stage.playing .stage-start { opacity: 0; pointer-events: none; transition: opacity var(--dur-ui) var(--spring); }
.stage::after { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent, rgba(0, 0, 0, 0.35)); pointer-events: none; transition: opacity var(--dur-ui) var(--spring); }
.stage.playing::after { opacity: 0; }

/* details */
[data-reveal] { --p: 1; }
html.motion [data-reveal]:not(.shown) { --p: 0; }
[data-reveal] > * { opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 18px)); }
.ledger, .fig, .room-row { position: relative; }
.ledger::before, .fig::before, .room-row::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.ledger::before { background: var(--ink); }
.ledger { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 20px 0 28px; }
.ledger-price { font-family: var(--display); font-size: clamp(3rem, 9vw, 7rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.ledger-status { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (min-width: 734px) { .figures { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .figures { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.fig { padding: 18px 0 26px; }
.fig dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fig .num { display: block; margin-top: 12px; font-family: var(--display); font-size: clamp(3.4rem, 9vw, 5.4rem); line-height: 0.9; font-variant-numeric: lining-nums; }
.fig .unit { display: block; margin-top: 10px; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
.rooms-ed { margin-top: clamp(36px, 6vw, 72px); }
.room-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; padding: 22px 0 26px; }
.room-row h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; }
.room-row .size { font-size: clamp(1rem, 1.7vw, 1.3rem); color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.room-row .desc { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 38em; text-wrap: pretty; }
@media (min-width: 900px) {
  .room-row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.5fr); }
  .room-row .size { text-align: left; }
  .room-row .desc { grid-column: auto; }
}
.details > .render-note { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* floor plans (dark) */
.segmented { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; margin-bottom: 24px; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--muted); transition: color 200ms var(--spring); }
.segmented button[aria-selected="true"] { color: #0b0b0d; }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 100px; border-radius: 999px; background: var(--ink); transform-origin: 0 50%; will-change: transform; }
.plan-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .plan-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 36px; align-items: start; } }
.plan-stage { position: relative; width: 100%; max-width: 820px; aspect-ratio: 25.54 / 26.9; border-radius: var(--radius); overflow: hidden; background: #111318; box-shadow: inset 0 0 0 1px var(--line); container-type: inline-size; }
.plan-stage > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-stage > svg:not(.on) { pointer-events: none; }
.plan-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.875rem; }
.plan .r-in { fill: #1c1e24; }
.plan .r-out { fill: #2a2620; }
.plan .r-garage { fill: #191a1e; }
.plan .r-stair { fill: #26272c; }
.plan .r-solid { fill: var(--ink-2); }
.plan .w { fill: none; stroke: var(--ink); stroke-linecap: square; }
.plan .rail { fill: none; stroke: #8b8478; stroke-width: 0.045; stroke-dasharray: 0.14 0.08; }
.plan .door, .plan .win-gap { fill: none; stroke: #1c1e24; stroke-linecap: butt; }
.plan .win { fill: none; stroke: var(--ink); stroke-width: 0.035; }
.plan .hi { fill: var(--accent); opacity: 0; transition: opacity var(--dur-ui) var(--spring); }
.plan .hi.on { opacity: 0.18; }
.plan .hi.sel { opacity: 0.3; }
.plan .pin { cursor: pointer; }
.plan .dot { fill: var(--accent); transform-box: fill-box; transform-origin: center; transition: transform var(--dur-ui) var(--spring); }
.plan .pin.on .dot, .plan .pin.sel .dot { transform: scale(1.5); }
.plan .lbl { font: 600 0.42px/1 var(--text); letter-spacing: -0.01px; text-anchor: middle; fill: var(--ink); paint-order: stroke; stroke: #111318; stroke-width: 0.11px; stroke-linejoin: round; }
.plan .north path { fill: var(--muted); }
.plan .north text { font: 600 0.42px/1 var(--text); text-anchor: middle; fill: var(--muted); }
@container (max-width: 560px) {
  .plan .lbl { font-size: 0.78px; stroke-width: 0.18px; opacity: 0; transition: opacity var(--dur-ui) var(--spring); }
  .plan .pin.sel .lbl { opacity: 1; }
  .plan .dot { r: 0.26px; }
}
.plan-cap { min-height: 3.6em; margin-bottom: 14px; }
.plan-cap > span { display: block; }
.plan-cap-name { font-family: var(--display); font-size: 2rem; line-height: 1.05; }
.plan-cap-size { margin-top: 6px; font-size: 0.9rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.plan-rooms { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.plan-rooms button { padding: 9px 14px; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--rim); font-size: 0.82rem; font-weight: 500; transition: transform var(--dur-press) var(--spring); }
.plan-rooms button:active { transform: scale(0.96); }
.plan-rooms button[aria-pressed="true"] { background: var(--ink); color: #0b0b0d; box-shadow: none; }
@media (min-width: 900px) {
  .plan-rooms { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .plan-rooms button { width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; background: none; box-shadow: none; color: var(--muted); }
  .plan-rooms button:hover, .plan-rooms button.on { color: var(--ink); }
  .plan-rooms button[aria-pressed="true"] { background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rim); }
}

/* location and contact */
.loc-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 3fr 2fr; } }
.map, .loc-photo { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 18px; object-fit: cover; background: var(--bg-2); }
.map { filter: grayscale(0.35) brightness(0.9) contrast(1.05); }
@media (min-width: 900px) { .map, .loc-photo { aspect-ratio: auto; height: 480px; } }
.agent { display: flex; align-items: center; gap: 24px; }
.avatar { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.agent .lede { margin-top: 6px; }
.agent .agent-meta { margin-top: 4px; font-size: 0.9rem; opacity: 0.7; }
.agent .agent-reach { opacity: 0.85; }
.agent .agent-reach a { text-decoration: underline; text-decoration-color: rgba(217, 210, 198, 0.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.agent .agent-reach a:hover { text-decoration-color: currentColor; }
@media (max-width: 733px) { .agent .agent-reach span { display: none; } .agent .agent-reach a { display: block; width: fit-content; padding: 2px 0; } }
.contact .headline { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.foot { position: relative; z-index: 2; padding: 30px var(--gutter) calc(40px + env(safe-area-inset-bottom)); }
.foot p { font-size: 0.75rem; line-height: 1.5; color: var(--muted); max-width: 62em; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------------------------------------------------------------- cursor (fine pointers only; app/cursor.js) */
.cursor, .halo, .lens { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
html.fine .cursor, html.fine .halo, html.fine .lens { display: block; }
.c-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference; }
.c-ring { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(243, 239, 232, 0.55); display: grid; place-items: center; will-change: transform, width, height; }
.c-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0; white-space: nowrap; }
.halo {
  width: 10px; height: 10px; border-radius: 999px; opacity: 0;
  background: rgba(255, 220, 180, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 170, 0.55), 0 0 26px rgba(255, 190, 120, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: brightness(1.25) saturate(140%); backdrop-filter: brightness(1.25) saturate(140%);
  will-change: transform, width, height, opacity;
}
.lens {
  width: 10px; height: 10px; border-radius: 50%; opacity: 0;
  box-shadow: inset 0 0 0 1.5px rgba(169, 200, 255, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.25), 0 0 40px rgba(169, 200, 255, 0.35), inset 0 0 30px rgba(169, 200, 255, 0.25);
  will-change: transform, width, height, opacity;
}
.ripple { position: fixed; z-index: 90; left: 0; top: 0; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1px solid rgba(255, 214, 170, 0.8); pointer-events: none; animation: ripple 700ms var(--spring) forwards; }
@keyframes ripple { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* ---------------------------------------------------------------- photo viewer */
.lb { position: fixed; inset: 0; z-index: 100; touch-action: none; }
.lb[hidden] { display: none; }
.lb-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.94); opacity: 0; }
.lb-img { position: fixed; left: 0; top: 0; transform-origin: 0 0; will-change: transform, clip-path; user-select: none; -webkit-user-select: none; }
.lb-cap { position: fixed; left: 0; right: 0; bottom: calc(86px + env(safe-area-inset-bottom)); text-align: center; color: var(--ink-2); font-size: 0.875rem; opacity: 0; }
.lb-bar { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 12px; opacity: 0; }
html.locked { overflow: hidden; }

/* ---------------------------------------------------------------- explore freely */
.explore { position: fixed; inset: 0; z-index: 110; background: #0a0b0e; }
.explore[hidden] { display: none; }
.explore-frame, .explore-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.explore-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; translate: -50% 0; }

/* ---------------------------------------------------------------- intro hold, no WebGL, reduced motion */
html.intro .cap-hero [data-intro], html.intro .cap-hero .ln > span { opacity: 0; visibility: hidden; }
html.intro .nav, html.intro .srail, html.intro .story-note, html.intro .cue, html.intro .hint { opacity: 0; visibility: hidden; }
html.no-gl .story { height: auto; }
html.no-gl .story-pin { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 56px; padding: 120px 0 80px; pointer-events: auto; }
html.no-gl .cap, html.no-gl .route-hud { position: relative; left: auto; bottom: auto; width: auto; margin: 0 var(--gutter); opacity: 1; visibility: visible; max-width: 760px; }
html.no-gl .cap-hero { min-height: calc(80 * var(--vh)); display: flex; flex-direction: column; justify-content: flex-end; }
html.no-gl .route-hud, html.no-gl .srail, html.no-gl .cue, html.no-gl .labels, html.no-gl .doodle-head { display: none; }
html.no-gl .story-note { position: relative; right: auto; bottom: auto; text-align: left; margin: 0 var(--gutter); }
html.reduce .cue i { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pill:active, .round:active { transform: none; }
  .ripple { animation-duration: 1ms; }
}
@media (prefers-reduced-transparency: reduce) {
  .pill-ghost, .round, .menu, .route-hud, .lab-t, .tod, .segmented { -webkit-backdrop-filter: none; backdrop-filter: none; background: #15171c; }
}
