/* ============ Tokens ============ */
:root {
  --ink: #0b0b0a;
  --ink-2: #141412;
  --ink-3: #1d1c1a;
  --ivory: #f4efe6;
  --paper: #faf8f3;
  --stone: #8f8a80;
  --stone-2: #c9c3b8;
  --line: rgba(20, 20, 18, .12);
  --line-d: rgba(244, 239, 230, .16);
  --gold: #c8b28a;
  --gold-2: #a8916a;
  --serif: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .18, 1);
  --pad: clamp(20px, 5vw, 80px);
  --r: 2px;
  --glass: rgba(14, 14, 12, .52);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.tour-mode { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
em { font-style: italic; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ivory); padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(96px, 14vw, 200px) 0; }

.eyebrow { font: 500 11px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--stone); margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.display { font: 400 clamp(48px, 9vw, 148px)/.95 var(--serif); letter-spacing: -.025em; }
.display--sm { font-size: clamp(40px, 6.4vw, 104px); }
.display em, .h2 em { color: var(--gold-2); }
.h2 { font: 400 clamp(36px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.02em; }

/* ============ Buttons ============ */
.btn { --bg: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 30px; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 999px; background: var(--bg); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease); will-change: transform; }
.btn--light { --bg: var(--ivory); color: var(--ink); }
.btn--light:hover { --bg: #fff; }
.btn--ghost { border-color: rgba(244, 239, 230, .4); color: var(--ivory); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ivory); background: rgba(244, 239, 230, .08); }
.btn--dark { --bg: var(--ink); color: var(--ivory); }
.btn--dark:hover { --bg: #2a2925; }
.btn--block { width: 100%; }
.link-arrow { font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 10px; padding: 12px 0; }
.link-arrow span { transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s; }
.round:hover { background: var(--ink); color: var(--ivory); }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line-d); color: var(--ivory); }

/* ============ Loader ============ */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--ivory); display: grid; place-items: center; transition: opacity 1.1s var(--ease), visibility 1.1s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner { position: relative; display: grid; place-items: center; text-align: center; }
.loader__ring { width: 180px; height: 180px; transform: rotate(-90deg); }
.loader__track, .loader__bar { fill: none; stroke-width: 1; }
.loader__track { stroke: var(--line-d); }
.loader__bar { stroke: var(--gold); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .5s var(--ease); }
.loader__brand { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%); margin: 0; font: 400 26px/1 var(--serif); letter-spacing: .04em; white-space: nowrap; }
.loader__label { margin: 28px 0 0; font: 500 10px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--stone); }

/* ============ Nav ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--pad); color: var(--ivory); transition: background .5s var(--ease), padding .5s var(--ease), color .5s, transform .6s var(--ease); }
.nav.is-scrolled { background: rgba(250, 248, 243, .86); backdrop-filter: blur(14px); color: var(--ink); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
body.tour-mode .nav { transform: translateY(-100%); }
.nav__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 20px/1 var(--serif); letter-spacing: .04em; }
.nav__logo svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.nav__links { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav__links a { position: relative; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 48px; height: 48px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span:first-child { top: 20px; } .nav__burger span:last-child { top: 28px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ Hero / Viewer ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--ink); color: var(--ivory); overflow: hidden; }
.viewer { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; }
.viewer.is-dragging { cursor: grabbing; }
.viewer canvas { display: block; width: 100%; height: 100%; }
.viewer__shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 20% 70%, rgba(8, 8, 7, .62), transparent 60%), linear-gradient(to bottom, rgba(8,8,7,.45), transparent 22%, transparent 70%, rgba(8,8,7,.6)); transition: opacity 1s var(--ease); }
.viewer__fallback { position: absolute; inset: 0; }
.viewer__fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.viewer__fallback p { position: absolute; bottom: 140px; left: var(--pad); }
body.tour-mode .viewer__shade { opacity: .25; }

.hero__copy { position: absolute; left: var(--pad); bottom: clamp(150px, 22vh, 230px); max-width: 760px; z-index: 5; pointer-events: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__copy > * { pointer-events: auto; }
.hero__copy .eyebrow { color: var(--stone-2); }
body.tour-mode .hero__copy { opacity: 0; transform: translateY(20px); pointer-events: none; }
body.tour-mode .hero__copy > * { pointer-events: none; }
.hero__title { font: 400 clamp(54px, 10.5vw, 176px)/.9 var(--serif); letter-spacing: -.035em; text-transform: uppercase; margin-bottom: 28px; }
.hero__title em { text-transform: none; font-style: italic; color: var(--gold); letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero__title .line > span { transform: none; }
.hero__lede { font-size: clamp(15px, 1.3vw, 18px); color: var(--stone-2); max-width: 420px; margin: 0 0 34px; font-weight: 300; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.reveal-hero { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.is-ready .reveal-hero { opacity: 1; transform: none; }
.is-ready .hero__lede.reveal-hero { transition-delay: .65s; }
.is-ready .hero__cta.reveal-hero { transition-delay: .8s; }

.scene-label { position: absolute; top: 96px; left: var(--pad); z-index: 5; display: flex; align-items: baseline; gap: 14px; opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
body.tour-mode .scene-label { opacity: 1; transform: none; top: 28px; }
.scene-label__num { font: 500 11px/1 var(--sans); letter-spacing: .24em; color: var(--gold); }
.scene-label__name { font: 400 clamp(22px, 2.4vw, 34px)/1 var(--serif); }
.scene-label.swap .scene-label__name { animation: swap .8s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

.hint { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 12px; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--stone-2); white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.hint i { font-style: normal; color: var(--gold); margin: 0 6px; }
.hint__icon { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.hint__icon ellipse { animation: spin360 4s linear infinite; transform-origin: center; }
.hint__icon text { fill: var(--ivory); stroke: none; font: 600 8px var(--sans); letter-spacing: .05em; }
@keyframes spin360 { 0% { transform: scaleX(1); } 50% { transform: scaleX(.35); } 100% { transform: scaleX(1); } }
.hint.is-gone { opacity: 0; }

/* Controls */
.controls { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; padding: 6px; border-radius: 999px; gap: 2px; }
.ctl { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; position: relative; }
.ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ctl:hover { background: rgba(244, 239, 230, .1); }
.ctl.is-on, .ctl[aria-pressed="true"], .ctl[aria-expanded="true"] { color: var(--gold); }
.ctl .snd-off { display: block; } .ctl .snd-wave { display: none; }
.ctl[aria-pressed="true"] .snd-off { display: none; } .ctl[aria-pressed="true"] .snd-wave { display: block; }
.ctl[data-act="rotate"].is-on svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ctl[hidden] { display: none; }
@media (hover: hover) {
  .ctl::after { content: attr(title); position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: .3s var(--ease); color: var(--ivory); }
  .ctl:hover::after { opacity: .9; transform: translate(0, -50%); }
}

.panel { position: absolute; right: calc(var(--pad) + 72px); top: 50%; transform: translateY(-50%); z-index: 7; width: min(360px, calc(100vw - 32px)); padding: 30px; border-radius: 6px; animation: pop .5s var(--ease); }
.panel[hidden] { display: none; }
.panel__title { font: 400 30px/1.1 var(--serif); margin-bottom: 12px; }
.panel p { color: var(--stone-2); font-size: 14px; }
.panel__meta { display: flex; gap: 32px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-d); }
.panel__meta dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.panel__meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 18px; }
.panel__close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; font-size: 22px; font-weight: 300; border-radius: 50%; }
.panel__close:hover { background: rgba(244,239,230,.1); }
@keyframes pop { from { opacity: 0; transform: translateY(calc(-50% + 12px)); } }

/* Hotspots */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hs { position: absolute; left: 0; top: 0; pointer-events: auto; width: 48px; height: 48px; margin: -24px 0 0 -24px; display: grid; place-items: center; will-change: transform; }
.hs__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 5px rgba(244, 239, 230, .22), 0 0 24px rgba(200, 178, 138, .8); transition: transform .4s var(--ease), background .3s; }
.hs::before, .hs::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, .7); animation: pulse 2.6s var(--ease) infinite; }
.hs::after { animation-delay: 1.3s; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hs__label { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, 6px); white-space: nowrap; font: 500 10px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(10px); border: 1px solid var(--line-d); opacity: 0; transition: .35s var(--ease); pointer-events: none; }
.hs:hover .hs__dot, .hs:focus-visible .hs__dot, .hs.is-active .hs__dot { transform: scale(1.35); background: var(--gold); }
.hs:hover .hs__label, .hs:focus-visible .hs__label, .hs.is-active .hs__label { opacity: 1; transform: translate(-50%, -2px); }

.hs-card { position: absolute; z-index: 8; left: 0; top: 0; width: 300px; border-radius: 6px; overflow: hidden; animation: fadeUp .45s var(--ease); }
.hs-card[hidden] { display: none; }
.hs-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.hs-card__body { padding: 20px 22px 14px; }
.hs-card h3 { font: 400 26px/1.1 var(--serif); margin-bottom: 8px; }
.hs-card p { margin: 0 0 6px; font-size: 13.5px; color: var(--stone-2); }
.hs-card .eyebrow { margin-bottom: 10px; }
.hs-card .panel__close { background: rgba(11,11,10,.5); color: var(--ivory); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* Tour bar */
.tourbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 0 var(--pad) 26px; }
.tourbar__list { flex: 1; min-width: 0; display: flex; gap: clamp(18px, 2.4vw, 40px); overflow-x: auto; scrollbar-width: none; justify-content: safe center; border-top: 1px solid var(--line-d); padding-top: 18px; }
.tourbar__list::-webkit-scrollbar { display: none; }
.tourbar__list button { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(244, 239, 230, .5); white-space: nowrap; transition: color .4s; }
.tourbar__list button b { font-weight: 500; color: var(--gold); opacity: .6; }
.tourbar__list button:hover { color: var(--ivory); }
.tourbar__list button[aria-current="true"] { color: var(--ivory); }
.tourbar__list button[aria-current="true"] b { opacity: 1; }
.tourbar__list button::before { content: ''; position: absolute; top: -19px; left: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tourbar__list button[aria-current="true"]::before { transform: scaleX(1); }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Intro ============ */
.intro .display { max-width: 12ch; margin-bottom: clamp(48px, 7vw, 96px); }
.intro__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 120px); max-width: 1100px; margin-left: auto; color: #45423c; }
.intro__lede { font: 400 clamp(20px, 1.8vw, 26px)/1.5 var(--serif); color: var(--ink); margin: 0; }
.stats { margin-top: clamp(72px, 10vw, 140px); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 34px 20px 0 0; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); padding-left: 20px; }
.stats li:first-child { padding-left: 0; } .stats li:last-child { border-right: 0; }
.stats strong { font: 400 clamp(40px, 4.6vw, 76px)/1 var(--serif); letter-spacing: -.03em; font-weight: 400; }
.stats strong.word { font-style: italic; color: var(--gold-2); }
.stats span { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }

/* ============ Features ============ */
.features { background: var(--ink); color: var(--ivory); }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }
.feature:nth-child(even) { margin-top: 90px; }
.feature__img { overflow: hidden; aspect-ratio: 3/4; margin-bottom: 26px; background: var(--ink-3); }
.feature__img img { width: 100%; height: 118%; object-fit: cover; transition: transform 1.4s var(--ease), filter 1s; filter: saturate(.85); }
.feature:hover .feature__img img { filter: saturate(1); }
.feature__num { font-size: 11px; letter-spacing: .24em; color: var(--gold); }
.feature h3 { font: 400 clamp(26px, 2.4vw, 36px)/1.1 var(--serif); margin: 10px 0 12px; }
.feature p { color: var(--stone-2); font-size: 15px; margin: 0; max-width: 30ch; }

/* ============ Rooms ============ */
.rooms { background: var(--ivory); overflow: hidden; }
.rooms .section-head { margin-bottom: 56px; }
.rooms__arrows { display: flex; gap: 10px; }
.rooms__track { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 12px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.rooms__track::-webkit-scrollbar { display: none; }
.room { flex: 0 0 clamp(280px, 30vw, 460px); scroll-snap-align: start; }
.room button { display: block; width: 100%; text-align: left; }
.room__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink-3); }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.room__media::after { content: ''; position: absolute; inset: 0; background: rgba(11, 11, 10, .45); opacity: 0; transition: opacity .6s var(--ease); }
.room__badge { position: absolute; z-index: 2; top: 18px; right: 18px; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--ivory); }
.room__badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.room__badge text { fill: currentColor; stroke: none; font: 600 7px var(--sans); }
.room__cta { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0; color: var(--ivory); font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; padding: 18px 28px; border: 1px solid rgba(244,239,230,.6); border-radius: 999px; transition: .6s var(--ease); }
.room button:hover .room__media img, .room button:focus-visible .room__media img { transform: scale(1.06); }
.room button:hover .room__media::after, .room button:focus-visible .room__media::after { opacity: 1; }
.room button:hover .room__cta, .room button:focus-visible .room__cta { opacity: 1; transform: translate(-50%, -50%); }
.room button:hover .room__badge ellipse { animation: spin360 1.6s linear infinite; transform-origin: center; }
.room__meta { display: flex; justify-content: space-between; align-items: baseline; padding-top: 20px; gap: 16px; }
.room h3 { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--serif); }
.room p { margin: 4px 0 0; font-size: 13px; color: var(--stone); }
.room__num { font-size: 11px; letter-spacing: .24em; color: var(--gold-2); }

/* ============ Contact ============ */
.contact { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; }
.contact__bg { position: absolute; inset: -10% 0; opacity: .32; }
.contact__bg img { width: 100%; height: 120%; object-fit: cover; }
.contact::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11,11,10,.92) 30%, rgba(11,11,10,.55)); }
.contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.contact__grid > div > p:not(.eyebrow) { color: var(--stone-2); max-width: 40ch; margin: 30px 0 38px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.form { padding: clamp(28px, 3vw, 44px); border-radius: 6px; display: grid; gap: 8px; }
.field { position: relative; padding-top: 18px; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-d); color: var(--ivory); font: 400 16px/1.4 var(--sans); padding: 12px 0; resize: vertical; border-radius: 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field label { position: absolute; left: 0; top: 30px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); pointer-events: none; transition: .3s var(--ease); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 4px; font-size: 10px; color: var(--gold); }
.field small { display: block; min-height: 18px; font-size: 12px; color: #e3a58f; }
.field.invalid input, .field.invalid textarea { border-color: #e3a58f; }
.form .btn { margin-top: 16px; }
.form__status { margin: 6px 0 0; font-size: 13px; color: var(--gold); min-height: 20px; }
.form.is-sent .field, .form.is-sent .btn { opacity: .35; pointer-events: none; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: var(--ivory); padding: 80px 0 36px; border-top: 1px solid var(--line-d); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto; gap: 40px; align-items: start; }
.footer nav ul { display: grid; gap: 12px; }
.footer nav a, .footer__contact a { text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-2); transition: color .3s; }
.footer nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: grid; gap: 12px; font-size: 13px; color: var(--stone); }
.footer__contact a { text-transform: none; letter-spacing: .02em; font-size: 14px; }
.social { display: flex; gap: 8px; }
.social a { width: 46px; height: 46px; border: 1px solid var(--line-d); border-radius: 50%; display: grid; place-items: center; transition: .3s; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.footer__legal { margin-top: 72px; padding-top: 26px; border-top: 1px solid var(--line-d); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }

/* ============ Cursor ============ */
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; display: none; }
.cursor span { display: block; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold); transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border .35s; }
.cursor.is-hover span { width: 48px; height: 48px; margin: -24px 0 0 -24px; background: rgba(200, 178, 138, .12); border: 1px solid var(--gold); }
.cursor.is-drag span { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: transparent; border: 1px solid rgba(244,239,230,.6); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(even) { margin-top: 0; }
  .feature:nth-child(2n) { transform: translateY(60px); }
  .features .wrap { padding-bottom: 60px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats li:nth-child(3) { border-right: 0; }
  .stats li:nth-child(4) { padding-left: 0; }
  .stats li:nth-child(n+4) { margin-top: 32px; border-top: 1px solid var(--line); }
  .plan__grid, .loc__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .nav { padding: 16px 16px; }
  .nav__burger { display: block; z-index: 2; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 28px; gap: 6px; background: var(--ink); color: var(--ivory); clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); }
  .nav__links a { font: 400 44px/1.25 var(--serif); letter-spacing: 0; text-transform: none; }
  .nav.is-open .nav__links { clip-path: inset(0); }
  .nav.is-open { color: var(--ivory); background: transparent; border: 0; }
  .wrap { padding: 0 16px; }

  .hero__copy { left: 16px; right: 16px; bottom: 150px; }
  .hero__title { font-size: clamp(50px, 15vw, 76px); margin-bottom: 18px; }
  .hero__lede { margin-bottom: 26px; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 54px; padding: 0 20px; }
  .hint { bottom: 118px; font-size: 9px; letter-spacing: .22em; }
  body:not(.tour-mode) .hint { display: none; }

  /* Controls become a bottom bar with large targets */
  .controls { top: auto; bottom: 84px; right: 12px; left: 12px; transform: none; flex-direction: row; justify-content: space-between; border-radius: 999px; padding: 4px; opacity: 0; pointer-events: none; transition: opacity .5s; }
  body.tour-mode .controls { opacity: 1; pointer-events: auto; }
  .ctl { width: 48px; height: 48px; }
  .ctl[data-act="zoomin"], .ctl[data-act="zoomout"] { display: none; }
  .tourbar { padding: 0 0 max(16px, env(safe-area-inset-bottom)); }
  .tourbar__list { justify-content: flex-start; padding: 16px 16px 0; scroll-snap-type: x mandatory; gap: 8px; border-top: 0; }
  .tourbar__list button { scroll-snap-align: start; padding: 14px 18px; min-height: 48px; border-radius: 999px; background: rgba(14,14,12,.5); backdrop-filter: blur(12px); border: 1px solid var(--line-d); }
  .tourbar__list button[aria-current="true"] { background: var(--ivory); color: var(--ink); }
  .tourbar__list button[aria-current="true"] b { color: var(--gold-2); }
  .tourbar__list button::before { display: none; }
  body:not(.tour-mode) .tourbar { opacity: 0; pointer-events: none; }
  .tourbar { transition: opacity .5s; }
  .scene-label { top: 20px !important; left: 16px; }

  /* Hotspot card → bottom sheet */
  .hs-card { position: fixed; left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; border-radius: 18px 18px 0 0; animation: sheet .5s var(--ease); display: grid; grid-template-columns: 120px 1fr; padding-bottom: env(safe-area-inset-bottom); z-index: 20; }
  .hs-card[hidden] { display: none; }
  .hs-card img { height: 100%; aspect-ratio: auto; }
  .hs-card__body { padding: 18px 18px 12px; }
  .hs-card h3 { font-size: 22px; }
  .hs-card .link-arrow { min-height: 48px; }
  @keyframes sheet { from { transform: translateY(100%); } }
  .hs { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .hs__label { opacity: 1; transform: translate(-50%, -2px); }

  .panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; transform: none; width: auto; border-radius: 18px 18px 0 0; animation: sheet .5s var(--ease); z-index: 20; padding-bottom: calc(30px + env(safe-area-inset-bottom)); max-height: 80vh; overflow: auto; }

  .intro__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 24px 12px 24px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); margin: 0 !important; border-top: 0 !important; }
  .stats li:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .stats li:nth-child(even) { padding-left: 16px !important; }
  .stats li:last-child { grid-column: 1 / -1; border-right: 0; }
  .features__grid { grid-template-columns: 1fr; gap: 56px; }
  .feature:nth-child(2n) { transform: none; }
  .feature__img { aspect-ratio: 4/3; }
  .rooms__arrows { display: none; }
  .rooms__track { padding: 0 16px 8px; scroll-padding: 0 16px; }
  .room { flex-basis: 78vw; }
  .room__cta { opacity: 1; transform: translate(-50%, -50%); background: rgba(11,11,10,.35); backdrop-filter: blur(6px); top: auto; bottom: 18px; transform: translateX(-50%); }
  .footer__grid { grid-template-columns: 1fr; }
  .contact::before { background: rgba(11,11,10,.85); }
}

body:not(.tour-mode) .ctl[data-act="exit"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-hero, .hero__title .line > span { opacity: 1; transform: none; }
}

/* Legibility over bright panoramas */
.tourbar::before { content: ''; position: absolute; inset: -60px 0 0; background: linear-gradient(to top, rgba(8,8,7,.7), transparent); pointer-events: none; z-index: -1; }
.scene-label, .tourbar__list button, .hint { text-shadow: 0 1px 14px rgba(0,0,0,.55); }
body.tour-mode .viewer__shade { opacity: .45; }
@media (max-height: 620px) and (min-width: 768px) { .ctl { width: 38px; height: 38px; } .hero__title { font-size: clamp(48px, 8vw, 120px); } }

/* CSS 3D fallback renderer */
.css-stage { position: absolute; inset: 0; overflow: hidden; }
.css-cube { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.css-face { position: absolute; width: 1024px; height: 1024px; left: -512px; top: -512px; background-size: 100% 100%; backface-visibility: hidden; }

/* Keep the 3D panorama inside the hero — some browsers (Firefox) don't clip
   preserve-3d content with overflow:hidden alone */
.hero, .viewer, .css-stage { overflow: hidden; clip-path: inset(0); contain: paint; }
.hero { isolation: isolate; }
main > section:not(.hero) { position: relative; z-index: 1; }
.intro { background: var(--paper); }

/* Multi-project */
.tourbar { display: flex; align-items: flex-end; gap: 24px; }
.proj-pill { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; max-width: 260px; }
.proj-pill span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-pill[aria-expanded="true"] { color: var(--gold); }
.scene-label { flex-direction: column; align-items: flex-start; gap: 8px; }
.scene-label__proj { font: 500 10.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--stone-2); }
.scene-label__row { display: flex; align-items: baseline; gap: 14px; }
.panel--projects { right: auto; left: var(--pad); top: auto; bottom: 96px; transform: none; width: min(420px, calc(100vw - 32px)); max-height: calc(100% - 200px); overflow: auto; animation: fadeUp .45s var(--ease); }
.proj-list { display: grid; gap: 4px; }
.proj-list button { width: 100%; display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 6px; text-align: left; transition: background .3s; }
.proj-list button:hover, .proj-list button[aria-current="true"] { background: rgba(244,239,230,.08); }
.proj-list button[aria-current="true"] b { color: var(--gold); }
.proj-list img { width: 84px; height: 54px; object-fit: cover; border-radius: 3px; flex: none; }
.proj-list b { display: block; font: 400 18px/1.2 var(--serif); }
.proj-list small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
@media (max-width: 767px) {
  .tourbar { flex-direction: column; align-items: stretch; gap: 0; }
  .proj-pill { align-self: flex-start; margin: 0 16px; max-width: calc(100vw - 32px); }
  .panel--projects { left: 0; bottom: 0; max-height: 75vh; }
}

/* Hero headline: size by width AND height so it never runs into the nav */
.hero__copy { max-width: none; right: calc(var(--pad) + 80px); bottom: clamp(140px, 20vh, 210px); }
.hero__title { font-size: min(9vw, 13.5vh, 150px); }
.hero__title .line > span { white-space: nowrap; }
.hero__lede { max-width: 460px; }
@media (max-width: 767px) { .hero__copy { right: 16px; } .hero__title { font-size: min(14.5vw, 11vh); } }
/* Hero lede on one line (wraps only on narrow phones) */
.hero__lede { max-width: none; white-space: nowrap; }
@media (max-width: 767px) { .hero__lede { white-space: normal; } }

/* Tour mode: the viewer becomes a fixed full-screen layer, so it never depends on
   the page's scroll position (a half-finished smooth scroll used to leave it cut off). */
body.tour-mode .hero { position: fixed; inset: 0; z-index: 150; height: 100vh; height: 100dvh; min-height: 0; }
