:root { --header-height: 74px; --film-black: #13191e; --film-white: #fff8f1 }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding-inline: var(--gutter);
  color: var(--film-white);
  background: #141a21f2;
  border-bottom: 1px solid #ffffff17;
  backdrop-filter: blur(16px);
}
.site-header[data-overlay="true"] { background: #10182672; backdrop-filter: none }
.brand { justify-self: start; padding-block: 4px }
.brand img, .footer-brand img { width: 96px; height: auto }
.main-nav { display: flex; align-items: center; gap: clamp(19px, 3.2vw, 56px) }
.main-nav a, .main-nav summary, .header-visit, .menu-toggle { font-size: .875rem; font-weight: 750 }
.main-nav > a, .main-nav summary { display: flex; align-items: center; gap: 7px; min-height: 42px }
.main-nav a:hover, .main-nav a[aria-current], .main-nav summary:hover, .nav-dropdown[open] summary, .nav-dropdown[data-current] summary { color: #ff9b83 }
.main-nav > a, .main-nav summary { position: relative }
.main-nav > a[aria-current]::after, .nav-dropdown[data-current] summary::after { content: ''; position: absolute; inset: auto 0 2px; height: 1px; background: currentColor }
.nav-dropdown { position: relative }
.nav-dropdown summary { cursor: pointer; list-style: none }
.nav-dropdown summary::-webkit-details-marker { display: none }
.nav-dropdown summary span { display: inline-block }
.nav-dropdown[open] summary span { transform: rotate(180deg) }
.nav-panel {
  position: absolute;
  left: -16px;
  top: 100%;
  min-width: 205px;
  padding: 8px;
  background: #222a32;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  box-shadow: 0 18px 38px #0007;
}
.nav-panel a { display: block; padding: 9px 12px; border-radius: 7px }
.nav-panel a:hover { background: #ffffff12 }
.header-visit { justify-self: end; display: flex; gap: 10px; align-items: center; min-height: 42px; padding: 8px 15px; color: var(--film-white); border: 1px solid #fff7ef55; background: #121a2394; border-radius: 7px }
.header-visit:hover { border-color: #ff9b83; color: #ff9b83; background: #20242c }
.pin-icon { display: inline-block; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) }
.menu-toggle { display: none }
.site-header :focus-visible, .journey :focus-visible, .salons :focus-visible, .directory :focus-visible { outline-color: #ffb29e }

.journey {
  --stage-height: 100svh;
  position: relative;
  height: calc(var(--stage-height) + 175svh);
  background: var(--film-black);
  color: var(--film-white);
  scroll-margin-top: calc(var(--header-height) * -1);
}
.journey-stage { position: sticky; top: 0; height: var(--stage-height); min-height: 355px; isolation: isolate; overflow: hidden }
.photo-stage, .tour-shot, #tour-depth, #tour-film, .journey-stage::after { position: absolute; inset: 0; width: 100%; height: 100% }
.photo-stage { z-index: -2; background: var(--film-black) }
.tour-shot { display: block; opacity: 0; overflow: hidden }
.tour-shot:first-child { opacity: 1 }
.tour-shot img, #tour-film { object-fit: cover }
.tour-shot img {
  width: 100%;
  height: 100%;
  object-position: center;
  transform: perspective(1000px) translate3d(var(--shot-x, 0), var(--shot-y, 0), 0)
    rotateY(var(--shot-yaw, 0deg)) scale(var(--shot-zoom, 1));
}
#tour-depth, #tour-film { display: block; opacity: 0; pointer-events: none }
#tour-film { object-position: 54% center }
.journey-stage::after {
  content: '';
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #110c09d9 0%, #110c098f 33%, #110c091a 66%, #110c090e 100%),
    linear-gradient(0deg, #110c09f2 0%, #110c0990 17%, transparent 54%),
    linear-gradient(180deg, #110c093f, transparent 35%);
}
.stage-content {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(52px, 12vh, 135px);
  right: var(--gutter);
  pointer-events: none;
}
.stage-content a { pointer-events: auto }
.scene-copy { transform: translateY(var(--copy-offset, 0)); opacity: var(--copy-opacity, 1) }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(12px, 2vh, 21px); color: #fff4e9 }
.hero-eyebrow::before { content: ''; height: 2px; width: 30px; background: var(--lov) }
.stage-content h1, .stage-content h2 {
  font-size: clamp(4.1rem, min(8vw, 15vh), 8rem);
  line-height: .79;
  font-weight: 700;
  letter-spacing: -.083em;
  margin-left: -.055em;
}
.stage-content h1 em, .stage-content h2 em { color: #ff886d }
.hero-description { max-width: 380px; font-size: clamp(1rem, 1.36vw, 1.24rem); color: #fff4e9; margin: clamp(15px, 2.7vh, 33px) 0 16px; line-height: 1.4 }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px }
.stage-content .button { min-height: 47px; padding-inline: 17px }
.stage-content .button-primary { color: #21140e; background: var(--lov); border-color: var(--lov) }
.stage-content .button-primary:hover { background: #ffac95 }
.stage-content .button-glass { color: var(--film-white); border-color: #fff7ef8c; background: #1c14108c }
.stage-content .button-glass:hover { background: #1c1410 }

.motion-toggle { position: absolute; top: calc(var(--header-height) + 12px); right: var(--gutter); z-index: 2; padding: 8px 12px; border: 1px solid #fff6ec58; background: #141a21e5; border-radius: 7px; font-size: .78rem; font-weight: 700 }
.motion-toggle:hover { border-color: #ff9b83 }
.scene-floor-links { position: absolute; z-index: 3; top: 44%; right: var(--gutter); transform: translateY(-30%); display: grid; gap: 4px; padding: 6px; background: #1a222bea; border: 1px solid #fff7ef33; color: var(--film-white); border-radius: 11px }
.scene-floor-links a { display: grid; place-items: center; min-width: 40px; min-height: 41px; border-radius: 7px; font-weight: 800; font-size: .82rem }
.scene-floor-links a:hover, .scene-floor-links a:focus-visible { background: var(--lov); color: var(--ink) }
.story-marks { position: absolute; inset: 0; pointer-events: none }
.story-marks span { position: absolute; height: 1px; width: 1px }
#fachada { top: 19% }
#interior { top: 36% }
#mirador { top: 54% }


@media (min-width: 751px) {
  .journey-stage[data-chapter="0"]::after {
    background:
      linear-gradient(90deg, #080e18ba, #080f1960 38%, transparent 68%),
      linear-gradient(0deg, #080d16f2, #080d1666 16%, transparent 42%);
  }
  .scene-copy[data-scene-copy="0"] { max-width: 50vw }
  .scene-copy[data-scene-copy="0"] h1 {
    font-size: clamp(3.9rem, min(7.25vw, 15.5vh), 8.4rem);
    line-height: .87;
    letter-spacing: -.071em;
  }
  .scene-copy[data-scene-copy="0"] .hero-description {
    max-width: 31rem;
    font-size: clamp(.96rem, 1.2vw, 1.19rem);
    text-wrap: pretty;
  }
}

@media (min-width: 751px) and (max-aspect-ratio: 1/1) {
  .journey-stage[data-chapter="0"]::after {
    background: linear-gradient(0deg, #101622f7, #101622cc 25%, #10162257 52%, transparent 73%);
  }
}

@media (max-width: 750px) {
  :root { --header-height: 58px; --gutter: 19px }
  .site-header { display: flex; justify-content: space-between }
  .brand img { width: 83px }
  .header-visit { display: none }
  .menu-toggle { display: flex; align-items: center; gap: 8px; border: 1px solid #fff6ed65; border-radius: 7px; padding: 7px 11px; background: #18212bcc }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; padding: 9px var(--gutter) 16px; background: #19212a; border-bottom: 1px solid #ffffff32; max-height: calc(100dvh - var(--header-height)); overflow-y: auto }
  .main-nav[data-open="true"] { display: grid; gap: 3px }
  .main-nav > a, .main-nav summary { min-height: 41px; border-bottom: 1px solid #ffffff27 }
  .nav-panel { position: static; border: 0; box-shadow: none; min-width: 0; background: #ffffff11 }
  .journey { height: calc(var(--stage-height) + 157svh) }
  .journey-stage::after { background: linear-gradient(0deg, #130c08 0%, #130c08df 19%, #130c08a3 38%, #130c0822 67%, #130c082b 100%) }
  .stage-content { bottom: max(44px, calc(env(safe-area-inset-bottom) + 32px)) }
  .stage-content h1, .stage-content h2 { font-size: clamp(3rem, 13.7vw, 6.25rem) }
  .hero-eyebrow { margin-bottom: 11px; font-size: .67rem }
  .hero-description { font-size: .96rem; margin: 13px 0 13px }
  .stage-content .button { padding-inline: 12px; min-height: 42px; font-size: .79rem }
  .scene-floor-links { top: 23%; transform: none; right: 15px }
  .scene-floor-links a { min-width: 36px; min-height: 34px }
}
@media (max-height: 650px) {
  .stage-content h1, .stage-content h2 { font-size: clamp(2.65rem, 12.6vh, 6.15rem) }
  .stage-content { bottom: 38px }
  .hero-eyebrow { margin-bottom: 8px }
  .hero-description { margin: 11px 0 }
}

@media (max-height: 550px) {
  .scene-floor-links { top: calc(var(--header-height) + 10px); transform: none }
  .scene-floor-links a { min-height: 28px }
}
