/* "Walk through Peacock": the real video of the apartment, played by scrolling.
   Behaviour (pin + scrub) is in scripts/components/walkthrough.js. Without JS (or with reduced motion) it plays on its own. */

/* Phone only for now (a landscape version is coming for tablet and desktop). */
.wlk { display: none; position: relative; background: #11160f; color: #fff; }
@media (max-width: 767px) { .wlk { display: block; } }
.wlk-stage { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 3rem; min-height: 100vh; padding: 5rem 2rem; max-width: 90rem; margin: 0 auto; }
.wlk-copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: 24rem; }
.wlk-eyebrow { display: flex; align-items: center; gap: .5rem; font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.wlk-dot { width: 7px; height: 7px; background: #fff; }
.wlk-title { margin: 0; font-family: var(--_font-family---secondary-font, "Inter Tight", sans-serif); font-size: clamp(36px, 4.6vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.wlk-text { margin: 0; font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.wlk-hint { margin-top: .5rem; font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* the phone-shaped frame (the video is portrait) */
.wlk-frame { position: relative; height: min(82vh, 52rem); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.wlk-video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* progress line down the right side */
.wlk-side { justify-self: start; display: flex; align-items: center; gap: .9rem; height: min(82vh, 52rem); }
.wlk-track { position: relative; width: 2px; height: 100%; background: rgba(255, 255, 255, .22); }
.wlk-fill { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #fff; transform-origin: top; transform: scaleY(0); }
.wlk-time { font-family: var(--_font-family---primary-font, Rubik, sans-serif); font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .6); writing-mode: vertical-rl; }

@media (max-width: 991px) {
  .wlk-stage { grid-template-columns: 1fr; justify-items: center; gap: 1.5rem; padding: 4rem 1.25rem 3rem; text-align: center; }
  .wlk-copy { align-items: center; max-width: 30rem; }
  .wlk-frame { height: min(64vh, 36rem); }
  .wlk-side { display: none; }
  .wlk-text { display: none; }
}

/* Phone: the video fills the whole screen, the words sit on top of it */
@media (max-width: 767px) {
  .wlk-stage { display: block; min-height: 100vh; min-height: 100svh; height: 100svh; padding: 0; max-width: none; overflow: hidden; }
  .wlk-frame { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .wlk-video { object-fit: cover; }
  .wlk-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 12, 9, .72) 0%, rgba(8, 12, 9, 0) 34%, rgba(8, 12, 9, 0) 70%, rgba(8, 12, 9, .6) 100%); }
  .wlk-copy { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: max(4.5rem, env(safe-area-inset-top)) 1.25rem 0; max-width: none; align-items: center; text-align: center; gap: .7rem; }
  .wlk-title { color: #fff !important; font-size: clamp(30px, 9vw, 44px); text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
  .wlk-hint { position: absolute; z-index: 2; left: 0; right: 0; bottom: max(1.6rem, env(safe-area-inset-bottom)); margin: 0; text-align: center; color: rgba(255, 255, 255, .85); }
  .wlk-copy .wlk-hint { position: fixed; position: absolute; top: calc(100svh - 3.6rem); }
  /* the progress line becomes a thin bar along the bottom edge */
  .wlk-side { display: flex; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; gap: 0; }
  .wlk-track { width: 100%; height: 100%; }
  .wlk-time { display: none; }
}
