/* V8 — One continuous visit, held inside the stable viewport. */
.hero-track {
  height: calc(100vh + var(--journey-distance, 5200px));
  height: calc(100svh + var(--journey-distance, 5200px));
  min-height: 0;
}
.hero-sticky {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
}
#mf2-resonance {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: clip;
}
#mf2-resonance .mf2-stage {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  overflow: clip;
  isolation: isolate;
}
#mf2-resonance .mf2-space {
  -webkit-clip-path: inset(15% 9% 12% 56% round 220px 220px 0 0);
  clip-path: inset(15% 9% 12% 56% round 220px 220px 0 0);
  overflow: clip;
}
#mf2-resonance .mf2-canvas,
#mf2-resonance .mf2-fallback,
#mf2-resonance .mf2-fallback-pair {
  transform: none;
  animation: none;
  transition: none;
}
#mf2-resonance .mf2-header {
  height: 154px;
  padding: 0;
}
#mf2-resonance .mf2-brand {
  top: max(18px, env(safe-area-inset-top));
  width: clamp(200px, 19vw, 250px);
}
#mf2-resonance .hero-links {
  max-height: calc(100svh - 230px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mf2-resonance .mf2-intro {
  top: 32%;
  left: 8%;
  right: 43%;
}
#mf2-resonance .mf2-intro h1 {
  font-size: clamp(58px, 6.8vw, 108px);
  margin: 22px 0;
}
#mf2-resonance .mf2-intro > p {
  font-size: 14px;
  line-height: 1.8;
  color: #f7f2e8c9;
}
#mf2-resonance .mf2-kicker {
  font-size: 10px;
  letter-spacing: 1.8px;
}
#mf2-resonance .mf2-scene-copy {
  left: 8%;
  right: auto;
  bottom: 55px;
  max-width: min(670px, calc(100% - 330px));
  text-shadow: 0 2px 24px #04141766;
}
#mf2-resonance .mf2-scene-copy h2 {
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 1.01;
  margin: 16px 0;
  text-wrap: balance;
}
#mf2-resonance .mf2-scene-copy p {
  font-size: 13px;
  max-width: 470px;
  color: #f7f2e8d9;
}
#mf2-resonance .mf2-tools {
  left: auto;
  right: 4%;
  bottom: 48px;
  width: auto;
  gap: 0;
}
#mf2-resonance .mf2-reveal {
  font-size: 11px;
  gap: 10px;
}
#mf2-resonance .mf2-reveal-mark {
  width: 32px;
  height: 32px;
  font-size: 19px;
}
#mf2-resonance .mf2-note {
  top: 150px;
  right: 4%;
  max-height: calc(100% - 240px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mf2-resonance .mf2-journey {
  position: relative;
  z-index: 12;
  flex: 0 0 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 320px) minmax(0, 1fr);
  align-items: center;
  column-gap: 5%;
  padding: 22px 4% max(22px, env(safe-area-inset-bottom));
  border-top: 1px solid #f7f2e829;
  background: #13262a;
}
#mf2-resonance .mf2-journey-status {
  display: flex;
  align-items: center;
  gap: 23px;
  min-width: 0;
}
#mf2-resonance #journey-number {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--mf2-gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#mf2-resonance .journey-labels {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#mf2-resonance #journey-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
#mf2-resonance #journey-place {
  font-size: 10px;
  line-height: 1.5;
  color: #f7f2e899;
}
#mf2-resonance .journey-progress {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#mf2-resonance .journey-segments {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
#mf2-resonance .journey-segments > span {
  display: block;
  height: 2px;
  overflow: hidden;
  background: #f7f2e82e;
}
#mf2-resonance .journey-segments i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--mf2-gold);
  transform: scaleX(var(--step-progress, 0));
  transform-origin: left;
}
#mf2-resonance .journey-segments > :is(.is-active, [aria-current="step"]) {
  background: #f7f2e857;
}
#mf2-resonance .journey-instruction {
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .35px;
  color: #f7f2e8b8;
}
#mf2-resonance #hero-skip {
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 2px;
  background: #a77258;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
#mf2-resonance #hero-skip:focus-visible {
  outline-color: var(--mf2-cream);
}
#mf2-resonance #hero-skip svg {
  flex: 0 0 auto;
  transition: transform .25s;
}
#mf2-resonance #hero-skip:hover svg {
  transform: translateX(4px);
}
.hero-arrival-veil {
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: var(--cream, #f4efe6);
  opacity: 0;
  pointer-events: auto;
  touch-action: none;
}
/* The arrival heading receives focus for navigation, without a control outline. */
#showroom .editorial-intro > h2[tabindex="-1"]:focus {
  outline: none;
}

@media (max-width: 1000px) and (min-width: 701px) {
  #mf2-resonance .mf2-intro { left: 6%; right: 42%; }
  #mf2-resonance .mf2-intro h1 { font-size: clamp(53px, 7vw, 68px); }
  #mf2-resonance .mf2-intro .mf2-kicker { max-width: 260px; }
  #mf2-resonance .mf2-scene-copy { left: 6%; max-width: calc(100% - 260px); }
  #mf2-resonance .mf2-scene-copy h2 { font-size: 45px; }
  #mf2-resonance .mf2-journey { grid-template-columns: 1fr 180px 1fr; column-gap: 22px; }
  #mf2-resonance .mf2-journey-status { gap: 15px; }
  #mf2-resonance #journey-name { font-size: 12px; }
  #mf2-resonance #hero-skip { gap: 10px; font-size: 12px; padding-inline: 16px; }
}

@media (max-width: 700px), (max-height: 540px) and (pointer: coarse) {
  #tour-reveal-toggle { display: none !important; }
  #mf2-resonance .mf2-header { height: 112px; }
  #mf2-resonance .mf2-brand { top: max(14px, env(safe-area-inset-top)); width: clamp(145px, 44vw, 176px); }
  #mf2-resonance .header-menu-toggle { top: max(24px, env(safe-area-inset-top)); left: 20px; }
  #mf2-resonance .mf2-language { top: max(24px, env(safe-area-inset-top)); right: 16px; }
  #mf2-resonance .hero-links { top: 104px; max-height: calc(100svh - 255px); }
  #mf2-resonance .mf2-space {
    -webkit-clip-path: inset(23% 17% 19% 17% round 220px 220px 0 0);
    clip-path: inset(23% 17% 19% 17% round 220px 220px 0 0);
  }
  #mf2-resonance .mf2-light-edge { display: none; }
  #mf2-resonance .mf2-exterior-shade { background: #071b218c; }
  #mf2-resonance .mf2-scrim {
    background: linear-gradient(180deg, #06121688, transparent 22%, #06121624 46%, #061216ab 100%);
  }
  #mf2-resonance .mf2-grain { opacity: .02; }
  #mf2-resonance .mf2-intro {
    left: 24px;
    right: 24px;
    top: 38%;
    text-align: center;
  }
  #mf2-resonance .mf2-intro .mf2-kicker {
    max-width: none;
    font-size: 8px;
    line-height: 1.6;
    letter-spacing: 1.35px;
  }
  #mf2-resonance .mf2-intro h1 {
    font-size: clamp(43px, 12.8vw, 66px);
    line-height: .99;
    letter-spacing: -1.1px;
    margin: 18px 0;
    text-shadow: 0 2px 22px #04141780;
  }
  #mf2-resonance .mf2-intro > p { font-size: 12px; line-height: 1.6; }
  #mf2-resonance .mf2-scene-copy {
    left: 24px;
    right: 24px;
    bottom: 34px;
    max-width: none;
    text-align: left;
  }
  #mf2-resonance .mf2-scene-copy .mf2-kicker { font-size: 8px; letter-spacing: 1.3px; }
  #mf2-resonance .mf2-scene-copy h2 {
    font-size: clamp(37px, 10.5vw, 54px);
    line-height: 1.03;
    letter-spacing: -.8px;
    margin: 13px 0;
    max-width: 440px;
  }
  #mf2-resonance .mf2-scene-copy p { max-width: 350px; font-size: 12px; line-height: 1.7; }
  #mf2-resonance .mf2-tools,
  #mf2-resonance .mf2-hotspots,
  #mf2-resonance .mf2-note { display: none !important; }
  #mf2-resonance.mf2-revealing .mf2-scene-copy { opacity: 1; }
  #mf2-resonance .mf2-journey {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    padding: 17px 24px max(15px, env(safe-area-inset-bottom));
  }
  #mf2-resonance .mf2-journey-status { grid-column: 1 / -1; gap: 18px; }
  #mf2-resonance #journey-number { font-size: 9px; }
  #mf2-resonance .journey-labels { flex-direction: row; align-items: baseline; column-gap: 10px; row-gap: 3px; flex-wrap: wrap; }
  #mf2-resonance #journey-name { font-size: 13px; }
  #mf2-resonance #journey-place { font-size: 10px; }
  #mf2-resonance .journey-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
  #mf2-resonance .journey-segments { gap: 4px; }
  #mf2-resonance .journey-instruction { text-align: right; font-size: 9px; letter-spacing: 0; }
  #mf2-resonance #hero-skip { grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; width: 100%; font-size: 12px; gap: 9px; min-height: 46px; padding: 12px 16px; }
  #mf2-resonance #hero-skip svg { width: 17px; height: 17px; }
}

@media (max-width: 360px) {
  #mf2-resonance .mf2-brand { width: 143px; }
  #mf2-resonance .header-menu-toggle { left: 16px; }
  #mf2-resonance .mf2-language { right: 12px; }
  #mf2-resonance .mf2-intro { left: 18px; right: 18px; }
  #mf2-resonance .mf2-intro .mf2-kicker { font-size: 7px; letter-spacing: 1px; }
  #mf2-resonance .mf2-journey { padding-left: 20px; padding-right: 20px; column-gap: 13px; }
  #mf2-resonance .mf2-journey-status { gap: 14px; }
  #mf2-resonance .journey-instruction { font-size: 8px; }
}

/* Short screens retain the complete experience without forcing a taller viewport. */
@media (max-height: 540px) {
  #mf2-resonance .mf2-header { height: 82px; }
  #mf2-resonance .mf2-brand { top: max(8px, env(safe-area-inset-top)); width: 132px; }
  #mf2-resonance .header-menu-toggle { top: 14px; }
  #mf2-resonance .mf2-language { top: 16px; }
  #mf2-resonance .hero-links { top: 72px; max-height: calc(100svh - 170px); padding: 10px 22px; }
  #mf2-resonance .hero-links a { padding: 12px 0; font-size: 10px; }
  #mf2-resonance .mf2-intro { top: 32%; }
  #mf2-resonance .mf2-intro .mf2-kicker { font-size: 8px; letter-spacing: 1.1px; }
  #mf2-resonance .mf2-intro h1 { font-size: clamp(36px, 10svh, 52px); line-height: .98; margin: 13px 0; }
  #mf2-resonance .mf2-intro > p { font-size: 11px; }
  #mf2-resonance .mf2-scene-copy { bottom: 24px; max-width: min(570px, calc(100% - 250px)); }
  #mf2-resonance .mf2-scene-copy .mf2-kicker { font-size: 8px; }
  #mf2-resonance .mf2-scene-copy h2 { font-size: 35px; margin: 9px 0; }
  #mf2-resonance .mf2-scene-copy p { font-size: 11px; line-height: 1.6; }
  #mf2-resonance .mf2-tools { bottom: 22px; }
  #mf2-resonance .mf2-note { top: 82px; max-height: calc(100% - 145px); padding: 20px; }
  #mf2-resonance .mf2-note h3 { font-size: 25px; }
  #mf2-resonance .mf2-note p { font-size: 11px; }
  #mf2-resonance .mf2-journey { padding-top: 11px; padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  #mf2-resonance .journey-progress { gap: 9px; }
}
@media (max-height: 540px) and (max-width: 700px) {
  #mf2-resonance .mf2-intro { top: 31%; }
  #mf2-resonance .mf2-intro h1 { font-size: 36px; margin: 10px 0; }
  #mf2-resonance .mf2-intro .mf2-kicker { font-size: 7px; }
  #mf2-resonance .mf2-scene-copy { max-width: none; bottom: 20px; }
  #mf2-resonance .mf2-scene-copy h2 { font-size: 32px; max-width: 460px; }
  #mf2-resonance .mf2-scene-copy p { max-width: 430px; }
  #mf2-resonance .mf2-journey { row-gap: 5px; padding-top: 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  #mf2-resonance .mf2-journey-status { gap: 14px; }
  #mf2-resonance #journey-name { font-size: 11px; }
  #mf2-resonance #journey-place { font-size: 9px; }
  #mf2-resonance .journey-progress { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  #mf2-resonance .mf2-space { will-change: auto; }
  #mf2-resonance #hero-skip svg { transition: none; }
  #mf2-resonance #hero-skip:hover svg { transform: none; }
}
