/* IPANA editorial walkthrough — designed to sit inside the premium homepage. */
.ipw-section {
  --ipw-ink: #0b0a08;
  --ipw-deep: #15120e;
  --ipw-pearl: #f2eee6;
  --ipw-muted: #d3cdc3;
  --ipw-gold: #c9a45c;
  --ipw-gold-light: #e2c88e;
  --ipw-hair: rgba(242, 238, 230, .18);
  position: relative;
  isolation: isolate;
  color: var(--ipw-pearl);
  background: var(--ipw-ink);
  font-family: var(--sans, "Geist", sans-serif);
}

.ipw-section *,
.ipw-section *::before,
.ipw-section *::after { box-sizing: border-box; }

.ipw-track {
  position: relative;
  min-height: 500vh;
  min-height: 500svh;
}

.ipw-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: #15120e;
  isolation: isolate;
}

.ipw-sticky::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, .43), transparent 70%),
    linear-gradient(0deg, rgba(11, 10, 8, .9) 0%, rgba(11, 10, 8, .46) 28%, transparent 70%);
}

.ipw-sticky > [data-ipw-poster-image],
.ipw-sticky > [data-ipw-video],
.ipw-sticky > [data-ipw-still] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ipw-sticky > [data-ipw-poster-image] {
  z-index: 0;
}

.ipw-sticky > [data-ipw-video] {
  z-index: 1;
  background: transparent;
  object-fit: cover;
  opacity: 0;
  transition: opacity .15s ease;
}
.ipw-section.is-ipw-video-ready [data-ipw-video] { opacity: 1; }

.ipw-sticky > [data-ipw-still] {
  display: none;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}

.ipw-sticky > [data-ipw-still="rooftop"] { object-position: center 42%; }
.ipw-sticky > [data-ipw-still="kitchen"] { object-position: center 50%; }
.ipw-sticky > [data-ipw-still="bedroom"] { object-position: center 45%; }

.ipw-beat {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 8vw, 116px);
  bottom: calc(clamp(98px, 13vh, 150px) + var(--consent-bar-height, 0px));
  width: min(720px, calc(100% - 48px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1), visibility .45s;
  pointer-events: none;
}

.ipw-beat.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ipw-beat :is(h2, h3) {
  margin: 0;
  color: var(--ipw-pearl);
  font: 400 clamp(42px, 7.4vw, 96px)/.98 var(--serif, "Instrument Serif", Georgia, serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.ipw-beat :is(em, [data-ipw-price]) {
  color: var(--ipw-gold-light);
  font-style: italic;
}

.ipw-beat p {
  max-width: 42ch;
  margin: 16px 0 0;
  color: rgba(242, 238, 230, .88);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.7;
}

.ipw-orbit {
  position: absolute;
  z-index: 5;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.ipw-section.is-ipw-orbit-active .ipw-orbit { pointer-events: auto; opacity: 1; }
.ipw-orbit:focus { outline: none; }
.ipw-orbit:focus-visible {
  outline: 2px solid var(--ipw-gold-light);
  outline-offset: -8px;
}

.ipw-orbit-hint {
  position: absolute;
  z-index: 6;
  right: clamp(20px, 5vw, 72px);
  bottom: calc(32px + var(--consent-bar-height, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(242, 238, 230, .78);
  font: 500 9px/1.4 var(--sans, "Geist", sans-serif);
  letter-spacing: .19em;
  text-transform: uppercase;
  pointer-events: none;
}

.ipw-orbit-hint::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--ipw-gold);
}

.ipw-end-card {
  position: absolute;
  z-index: 7;
  right: clamp(24px, 8vw, 116px);
  bottom: calc(clamp(82px, 12vh, 136px) + var(--consent-bar-height, 0px));
  width: min(390px, 39vw);
  padding: 25px 28px 28px;
  border: 1px solid var(--ipw-hair);
  background: rgba(11, 10, 8, .76);
  color: var(--ipw-pearl);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .5s cubic-bezier(.16, 1, .3, 1), visibility .45s;
}

.ipw-end-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ipw-end-card [data-ipw-price] {
  display: block;
  margin-bottom: 20px;
  color: var(--ipw-gold-light);
  font: 400 clamp(28px, 3vw, 40px)/1.1 var(--serif, "Instrument Serif", Georgia, serif);
}

.ipw-end-card a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin: 8px 18px 0 0;
  color: var(--ipw-pearl);
  font: 500 9px/1.35 var(--sans, "Geist", sans-serif);
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ipw-gold);
}

.ipw-end-card a:hover { color: var(--ipw-gold-light); }

.ipw-caption {
  position: absolute;
  z-index: 8;
  left: clamp(24px, 8vw, 116px);
  bottom: calc(32px + var(--consent-bar-height, 0px));
  max-width: 50%;
  color: rgba(242, 238, 230, .68);
  font: 500 9px/1.45 var(--sans, "Geist", sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ipw-play {
  display: none;
  position: absolute;
  z-index: 9;
  top: clamp(18px, 3vw, 42px);
  right: clamp(18px, 4vw, 58px);
  min-width: 44px;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(242, 238, 230, .45);
  background: rgba(11, 10, 8, .54);
  color: var(--ipw-pearl);
  font: 500 9px/1.3 var(--sans, "Geist", sans-serif);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.ipw-play:hover,
.ipw-play:focus-visible {
  border-color: var(--ipw-gold-light);
  color: var(--ipw-gold-light);
}

.ipw-section :is(a, button):focus-visible {
  outline: 2px solid var(--ipw-gold-light);
  outline-offset: 4px;
}

.ipw-section [hidden] { display: none !important; }

@media (max-width: 700px) {
  .ipw-track { min-height: 500vh; min-height: 500svh; }
  .ipw-sticky { min-height: 0; }
  .ipw-sticky::before {
    background:
      linear-gradient(0deg, rgba(11, 10, 8, .94) 0%, rgba(11, 10, 8, .62) 30%, transparent 72%),
      linear-gradient(180deg, rgba(11, 10, 8, .35), transparent 30%);
  }
  .ipw-sticky > [data-ipw-poster-image],
  .ipw-sticky > [data-ipw-video],
  .ipw-sticky > [data-ipw-still] {
    object-position: 54% center;
  }
  .ipw-beat {
    left: 22px;
    bottom: calc(clamp(112px, 16vh, 168px) + var(--consent-bar-height, 0px));
    width: calc(100% - 44px);
  }
  .ipw-beat :is(h2, h3) { max-width: 10ch; font-size: clamp(43px, 13vw, 68px); }
  .ipw-beat p { max-width: 34ch; font-size: 13px; }
  .ipw-end-card {
    right: 20px;
    bottom: calc(clamp(100px, 14vh, 148px) + var(--consent-bar-height, 0px));
    width: min(360px, calc(100% - 40px));
    padding: 20px;
  }
  .ipw-end-card [data-ipw-price] { margin-bottom: 8px; }
  .ipw-caption { left: 22px; bottom: calc(24px + var(--consent-bar-height, 0px)); max-width: 47%; font-size: 8px; }
  .ipw-orbit-hint { right: 20px; bottom: calc(24px + var(--consent-bar-height, 0px)); font-size: 8px; }
  .ipw-play { top: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .ipw-track { min-height: auto; }
  .ipw-sticky {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 1px;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
  }
  .ipw-sticky > [data-ipw-poster-image] {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .ipw-sticky > [data-ipw-video],
  .ipw-orbit,
  .ipw-orbit-hint { display: none; }
  .ipw-sticky > [data-ipw-still] {
    position: relative;
    inset: auto;
    display: block;
    grid-row: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    opacity: 1;
  }
  .ipw-sticky > [data-ipw-still="rooftop"] { grid-column: 1; }
  .ipw-sticky > [data-ipw-still="kitchen"] { grid-column: 2; }
  .ipw-sticky > [data-ipw-still="bedroom"] { grid-column: 3; }
  .ipw-beat,
  .ipw-end-card {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: auto;
    max-width: 760px;
    margin: 0;
    padding: 20px 24px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .ipw-beat { background: var(--ipw-ink); }
  .ipw-end-card { background: var(--ipw-deep); }
  .ipw-caption {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    max-width: none;
    padding: 14px 24px;
  }
  .ipw-play { position: relative; inset: auto; grid-column: 1 / -1; justify-self: start; margin: 16px 24px; display: block; }
  .ipw-section.is-ipw-playing .ipw-sticky > [data-ipw-video] {
    position: relative;
    inset: auto;
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
  .ipw-section.is-ipw-playing.is-ipw-video-ready .ipw-sticky > [data-ipw-poster-image],
  .ipw-section.is-ipw-playing .ipw-sticky > [data-ipw-still],
  .ipw-section.is-ipw-playing .ipw-beat,
  .ipw-section.is-ipw-playing .ipw-end-card { display: none; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 700px) {
  .ipw-sticky { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
