:root {
  --paper: #f3efe7;
  --paper-2: #e9e3d8;
  --ink: #1b1c1a;
  --ink-2: #4b4a44;
  --rule: #cfc8bc;
  --accent: #8a3a2b;
  --dark: #1d1e1b;
  --on-dark: #ede7dc;
  --on-dark-2: #b9b2a6;
  --rule-dark: #6e6d65;
  --accent-on-dark: #e3a58f;
  --sans: "Montserrat", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  --section: clamp(64px, 10vw, 144px);
  --header: 60px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tour :focus-visible, .lightbox :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-on-dark); }
h1, h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3vw, 4rem); line-height: 1.06; max-width: 16ch; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.375rem); line-height: 1.15; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 0.75rem; }
p { margin: 0 0 1em; max-width: 62ch; }
figure { margin: 0; }
figcaption { font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent; border-bottom: 1px solid transparent; color: #fff;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.site-header.solid, .site-header.menu-open, .no-hero .site-header {
  background: color-mix(in srgb, var(--paper) 94%, transparent); border-bottom-color: var(--rule); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header); }
.mark { color: inherit; text-decoration: none; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.875rem; margin-right: auto; }
.mark span { opacity: .7; font-weight: 500; margin-left: 4px; }
.menu { display: flex; gap: 28px; }
.menu a { color: inherit; text-decoration: none; font-size: 0.875rem; font-weight: 500; position: relative; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.menu a:hover::after { transform: scaleX(1); }
.header-phone { color: inherit; font-weight: 600; font-size: 0.9375rem; text-decoration: none; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }

@media (max-width: 859px) {
  .header-phone { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
    font: inherit; font-weight: 600; color: inherit; background: none; border: 0; cursor: pointer;
  }
  .menu {
    position: absolute; left: 0; right: 0; top: var(--header);
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .menu a { padding: 12px 0; border-top: 1px solid var(--rule); font-size: 1rem; color: var(--ink); }
  .menu a::after { display: none; }
  .menu a:first-child { border-top: 0; }
  .js .menu:not(.open) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px;
  padding: 0 26px; font: 600 0.9375rem/1 var(--sans); text-decoration: none; border: 1px solid var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #33342f; }
.btn-line { color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }

.price { display: flex; align-items: baseline; gap: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.price span { font-size: 0.875rem; color: var(--ink-2); }
.price strong { font-weight: 600; font-size: 1.75rem; color: var(--accent); letter-spacing: -0.02em; }

/* Hero: full-bleed photo with text over it */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--dark);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header) + 48px) 0 clamp(56px, 9vh, 96px);
}
.hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,12,.78) 0%, rgba(14,14,12,.5) 38%, rgba(14,14,12,.12) 70%, rgba(14,14,12,.05) 100%),
    linear-gradient(0deg, rgba(14,14,12,.55) 0%, rgba(14,14,12,0) 40%),
    linear-gradient(180deg, rgba(14,14,12,.45) 0%, rgba(14,14,12,0) 22%);
}
.hero-media figcaption {
  position: absolute; z-index: 1; right: var(--gutter); bottom: 14px; margin: 0;
  font-size: 0.75rem; color: rgba(255,255,255,.72); text-align: right; max-width: 70ch;
}
.hero-inner { display: grid; gap: 32px; align-items: end; }
.hero-content { max-width: 640px; }
.hero .kicker { display: flex; align-items: center; gap: 14px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 22px; }
.hero .kicker::before { content: ""; width: 40px; height: 1px; background: var(--accent-on-dark); }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,.86); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); max-width: 44ch; margin: 22px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-price { margin: 0; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.hero-price span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hero-price strong { font-weight: 500; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); letter-spacing: -0.02em; }
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-price { text-align: right; padding-bottom: 6px; }
}
@media (max-width: 759px) {
  .hero { padding-bottom: 72px; }
  .hero-media img { object-position: 64% 50%; }
  .hero-media::after { background: linear-gradient(0deg, rgba(14,14,12,.88) 0%, rgba(14,14,12,.6) 45%, rgba(14,14,12,.2) 75%, rgba(14,14,12,.45) 100%); }
  .hero-media figcaption { left: var(--gutter); right: var(--gutter); text-align: left; bottom: 12px; }
}

/* Facts */
.facts { border-block: 1px solid var(--rule); }
.facts-row { display: grid; grid-template-columns: 1fr 1fr; margin-block: 0; }
.facts-row > div { padding: 22px 0 20px; }
.facts-row > div:nth-child(odd) { padding-right: 16px; }
.facts-row > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
.facts-row > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
.facts dt { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.facts dd.fig { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 6px 0 4px; }
@media (min-width: 860px) {
  .facts-row { grid-template-columns: repeat(4, 1fr); }
  .facts-row > div { padding: 30px 24px 28px; border-top: 0 !important; border-left: 1px solid var(--rule); }
  .facts-row > div:first-child { padding-left: 0; border-left: 0; }
}

/* Object */
.object { padding-block: var(--section); }
.object-grid { display: grid; gap: 32px; }
.object-text h2 { margin-bottom: 24px; }
.object-photo img { width: 100%; height: auto; }
.status-grid { display: grid; gap: 16px; margin-top: clamp(56px, 8vw, 112px); }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.45; }
.status-list li:last-child { border-bottom: 1px solid var(--rule); }
@media (min-width: 960px) {
  .object-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .object-text { padding-top: 8px; }
  .status-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .status-grid h3 { margin: 0; padding-top: 11px; }
}

/* Tour */
.tour { background: var(--dark); color: var(--on-dark); padding-block: var(--section); }
.tour a { color: var(--accent-on-dark); }
.tour-head { display: grid; gap: 16px; margin-bottom: 40px; }
.tour-head p { color: var(--on-dark-2); }
@media (min-width: 960px) { .tour-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; } .tour-head p { margin: 0; } }

.tour-ui { display: grid; gap: 24px; grid-template-areas: "floors" "stage" "info"; outline: none; }
.floors { grid-area: floors; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.floors-note { display: none; }
.floor {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  min-height: 56px; padding: 8px 12px; text-align: left;
  font: inherit; color: var(--on-dark); background: transparent; border: 1px solid var(--rule-dark); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.floor:hover { border-color: var(--on-dark-2); }
.floor[aria-pressed="true"] { border-color: var(--accent-on-dark); box-shadow: inset 3px 0 0 var(--accent-on-dark); }
.floor-name { font-weight: 600; }
.floor-meta { font-size: 0.8125rem; color: var(--on-dark-2); }
.floor[aria-pressed="true"] .floor-name { color: var(--accent-on-dark); }

.stage { grid-area: stage; min-width: 0; }
/* Fixed frame: portrait, landscape and 9:16 stills all fit without layout shift. */
.stage-frame {
  display: block; width: 100%; aspect-ratio: 1 / 1; max-height: 80svh; padding: 0; border: 0; cursor: zoom-in;
  background: #141412;
}
.stage-frame { overflow: hidden; }
.stage-frame img { width: 100%; height: 100%; object-fit: contain; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.stage-frame img.loading { opacity: 0; transform: scale(1.015); }
.thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.thumb {
  flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border: 1px solid var(--rule-dark);
  background: #141412; cursor: pointer; opacity: .6; transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--accent-on-dark); box-shadow: inset 0 -3px 0 var(--accent-on-dark); }

.scene-info { grid-area: info; }
.scene-count { font-size: 0.875rem; color: var(--on-dark-2); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.scene-info h3 { font-weight: 500; letter-spacing: -0.02em; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; margin-bottom: 12px; }
.scene-info p { color: var(--on-dark-2); }
#scene-desc { color: var(--on-dark); }
.scene-note { border-left: 2px solid var(--accent-on-dark); padding-left: 14px; color: var(--on-dark) !important; font-size: 0.9375rem; }
.scene-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0 12px; }
.step {
  min-height: 52px; padding: 10px 14px; font: inherit; font-size: 0.9375rem; text-align: left; line-height: 1.3;
  color: var(--on-dark); background: transparent; border: 1px solid var(--rule-dark); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.step:hover:not(:disabled) { border-color: var(--on-dark-2); }
.step:disabled { opacity: .35; cursor: default; }
#next-scene { text-align: right; }

@media (min-width: 760px) and (max-width: 1099px) {
  .tour-ui { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "floors floors" "stage info"; gap: 32px; }
}
@media (min-width: 1100px) {
  .tour-ui { grid-template-columns: 200px minmax(0, 1.55fr) minmax(0, 1fr); grid-template-areas: "floors stage info"; gap: 48px; align-items: start; }
  /* Schematic section: roof outline + three stacked levels */
  .floors { grid-template-columns: 1fr; gap: 0; position: relative; padding-top: 52px; }
  .floors::before {
    content: ""; position: absolute; top: 0; left: -10px; right: -10px; height: 53px;
    background: var(--rule-dark); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  .floors::after {
    content: ""; position: absolute; top: 1px; left: -8px; right: -8px; height: 51px;
    background: var(--dark); clip-path: polygon(50% 1.5px, calc(100% - 1.5px) 100%, 1.5px 100%);
  }
  .floor { min-height: 88px; margin-top: -1px; padding: 14px 18px; }
  .floor[data-floor="lower"] { border-bottom-width: 3px; }
  .floors-note { display: block; order: 4; margin: 12px 0 0; font-size: 0.8125rem; color: var(--on-dark-2); }
}

/* Photos */
.photos { padding-block: var(--section); }
.photos-head { display: grid; gap: 16px; margin-bottom: 48px; }
@media (min-width: 960px) { .photos-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; } .photos-head p { margin: 0; } }
.group-title { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding-top: 14px; border-top: 1px solid var(--rule); margin: 56px 0 6px; }
.photos-head + .group-title { margin-top: 0; }
.group-note { font-size: 0.9375rem; color: var(--ink); margin-bottom: 20px; }
.rows { display: grid; gap: 16px; }
.row { display: flex; flex-direction: column; gap: 16px; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; height: auto; transition: transform .9s var(--ease); }
.shot button:hover img { transform: scale(1.035); }
@media (max-width: 639px) {
  .shot[style*="--r:0."] img { aspect-ratio: 4 / 5; object-fit: cover; }
}
@media (min-width: 640px) {
  .row { flex-direction: row; }
  .shot { flex: var(--r) 1 0; min-width: 0; }
}

/* Films */
.films { padding-bottom: 0; }
.film-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; max-width: 1080px; }
.film { margin: 0; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--paper-2); }
.film-alt:not([hidden]) { display: block; margin-top: 4px; }
@media (max-width: 759px) {
  .film-row { grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .film { scroll-snap-align: start; }
}

/* Place */
.place { padding-block: 0 var(--section); }
.place-grid { border-top: 1px solid var(--rule); padding-top: clamp(48px, 7vw, 96px); }
.place-text h2 { margin-bottom: 24px; }
.place-text h3 { margin-top: 40px; }
.uses { margin: 0 0 1em; padding-left: 1.1em; }
.uses li { margin-bottom: 4px; }
.caveat { font-size: 0.9375rem; color: var(--ink-2); }
@media (min-width: 960px) {
  .place-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; }
  .place-text > * { grid-column: 2; }
  .place-text h2 { grid-column: 1; grid-row: 1 / span 3; }
}

/* Contact */
.contact { background: var(--paper-2); padding-block: var(--section); }
.contact-grid { display: grid; gap: 40px; }
.contact h2 { margin-bottom: 20px; }
.contact-card { display: grid; gap: 16px; align-content: start; }
.price-lg strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.625rem); }
.mail { font-size: 1.125rem; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; } }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); font-size: 0.8125rem; padding-block: 28px; }
.footer-row { display: grid; gap: 8px; }
.footer-row p { margin: 0; max-width: none; }
.site-footer a { color: var(--on-dark); display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 960px) { .footer-row { grid-template-columns: auto 1fr auto; gap: 32px; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .callbar {
    position: fixed; z-index: 15; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
    font-weight: 500; font-variant-numeric: tabular-nums;
  }
  .callbar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--ink); color: var(--paper); text-decoration: none; }
}

/* Lightbox */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 16px var(--gutter);
  border: 0; background: rgba(18, 18, 16, .96); color: var(--on-dark);
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.lightbox::backdrop { background: rgba(18, 18, 16, .7); }
.lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { color: var(--on-dark); text-align: center; font-size: 0.9375rem; margin-inline: auto; max-width: 70ch; }
.lb-controls { display: flex; align-items: center; justify-content: center; gap: 12px; font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.lb-controls button {
  min-width: 48px; min-height: 48px; padding: 0 14px; font: inherit; color: var(--on-dark);
  background: transparent; border: 1px solid var(--rule-dark); cursor: pointer;
}
.lb-controls button:hover { border-color: var(--on-dark-2); }
.lb-close { margin-left: 16px; }

/* Motion: hero entrance + reveal on scroll (only with JS and without reduced-motion) */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-zoom 2.6s var(--ease) both; }
  .hero-content > *, .hero-price { animation: rise 1.1s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * .12s); }
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].in { opacity: 1; transform: none; }
}
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
