/* Cinematic homepage: video remains full-bleed, with hints and navigation over it. */
html:has(.home),
body.information-page:has(.home) {
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
}
body.information-page:has(.home) {
  display: block;
  background: #000;
}
body.information-page:has(.home) main {
  overflow: visible;
  margin: 0;
  padding: 0;
}
body.information-page .page-inner:has(.home) {
  display: block;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
}
.home {
  width: 100%;
  background: #000;
  color: #fff;
}
.on-scroll-scene {
  position: relative;
  width: 100%;
  height: 400vh;
  height: 400svh;
  background: #000;
}
.on-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
#on-scroll-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}
.on-scroll-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.12) 0%, transparent 34%, rgba(0,0,0,.21) 58%, rgba(0,0,0,.83) 100%);
}
.on-scroll-copy {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 5vw, 90px);
  bottom: clamp(120px, 15svh, 190px);
  max-width: min(850px, calc(100% - 44px));
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
  pointer-events: none;
  opacity: var(--home-copy-opacity, 1);
  transform: translateY(calc((1 - var(--home-copy-opacity, 1)) * -12px));
}
.on-scroll-copy span {
  display: block;
  font-size: clamp(10px, .9vw, 12px);
  font-weight: 600;
  letter-spacing: .24em;
}
.on-scroll-copy h1 {
  margin: 13px 0 12px;
  color: #fff;
  font-size: clamp(34px, 6vw, 90px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.055em;
}
.on-scroll-copy p {
  margin: 0;
  color: rgba(255,255,255,.91);
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.55;
}
/* Visible instruction: native mouse wheel / touch scroll scrubs the movie. */
.on-scroll-guide {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(28px, 5svh, 60px);
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 16px;
  color: #fff;
  background: rgba(9,11,13,.74);
  box-shadow: 0 14px 38px rgba(0,0,0,.23);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0; /* Hidden unless the scroll controller is running. */
  transform: translate(-50%, 8px);
  pointer-events: none;
}
.on-scroll-scene.is-enhanced .on-scroll-guide {
  opacity: var(--home-guide-opacity, 1);
  transform: translate(-50%, calc((1 - var(--home-guide-opacity, 1)) * 8px));
}
.on-scroll-mouse {
  display: grid;
  place-items: start center;
  width: 25px;
  height: 37px;
  padding-top: 8px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 14px;
}
.on-scroll-mouse span {
  display: block;
  width: 3px;
  height: 9px;
  border-radius: 3px;
  background: rgba(255,255,255,.95);
  animation: on-scroll-wheel 1.45s ease-in-out infinite;
}
@keyframes on-scroll-wheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  65% { transform: translateY(8px); opacity: .3; }
}
.on-scroll-guide-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.on-scroll-guide-text strong {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .13em;
}
.on-scroll-guide-text small {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,.77);
}
.on-scroll-guide-down {
  font-size: 22px;
  line-height: 1;
  color: rgba(255,255,255,.7);
}
/* Intro and four destinations appear on the final frame, in the SAME viewport. */
.home-final-panel {
  position: absolute;
  z-index: 3;
  bottom: max(30px, env(safe-area-inset-bottom) + 21px);
  left: 50%;
  width: min(1250px, calc(100% - clamp(32px, 8vw, 140px)));
  transform: translateX(-50%);
}
.home-final-intro {
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.home-final-intro > span {
  display: block;
  font-size: 11px;
  letter-spacing: .19em;
  font-weight: 750;
  color: rgba(255,255,255,.72);
}
.home-final-intro h2 {
  margin: 5px 0 6px;
  color: #fff;
  font-size: clamp(23px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.home-final-intro p {
  margin: 0;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.45;
  color: rgba(255,255,255,.84);
}
.home-collections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.home-collections a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 83px;
  padding: 15px 15px 15px 18px;
  background: rgba(7,8,10,.87);
  border: 1px solid rgba(255,255,255,.31);
  border-radius: 12px;
  color: #f5f5f5;
  text-decoration: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.home-collections a:hover,
.home-collections a:focus-visible {
  color: #fff;
  background: rgba(29,30,33,.96);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-3px);
}
.home-collections a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.home-collections-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.home-collections-copy strong {
  font-size: clamp(13px, 1.08vw, 16px);
  font-weight: 670;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.home-collections-copy small {
  display: block;
  color: rgba(255,255,255,.66);
  font-size: clamp(11px, .87vw, 13px);
  line-height: 1.33;
  font-weight: 400;
}
.home-collections-open {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 100%;
  color: rgba(255,255,255,.95);
  font-size: 25px;
  line-height: 1;
  padding-bottom: 3px;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.home-collections a:hover .home-collections-open,
.home-collections a:focus-visible .home-collections-open {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  transform: translateX(2px);
}
.on-scroll-scene.is-enhanced:not(.is-final) .home-final-panel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .36s ease, transform .36s ease, visibility 0s linear .36s;
}
.on-scroll-scene.is-enhanced.is-final .home-final-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;
}
.on-scroll-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,.14);
  pointer-events: none;
}
#on-scroll-progress-fill {
  width: 0;
  height: 100%;
  background: rgba(255,255,255,.82);
}
@media (max-width: 850px) {
  .home-final-panel { width: calc(100% - 32px); }
  .home-collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-collections a { min-height: 72px; padding: 11px 12px; }
  .home-final-intro { margin-bottom: 12px; }
  .on-scroll-copy { bottom: clamp(145px, 22svh, 230px); }
}
@media (max-width: 430px) {
  .on-scroll-copy h1 { font-size: clamp(32px, 9vw, 48px); }
  .on-scroll-copy span { letter-spacing: .15em; }
  .on-scroll-copy p { font-size: 13px; }
  .on-scroll-guide { gap: 10px; padding: 10px 12px; bottom: max(22px, env(safe-area-inset-bottom) + 16px); }
  .on-scroll-guide-text strong { font-size: 11px; }
  .on-scroll-guide-text small { font-size: 11px; }
  .on-scroll-guide-down { font-size: 19px; }
  .home-final-panel { bottom: max(17px, env(safe-area-inset-bottom) + 12px); }
  .home-final-intro h2 { font-size: 25px; }
  .home-final-intro p { font-size: 12px; }
  .home-collections a { gap: 6px; min-height: 82px; padding: 10px; border-radius: 10px; }
  .home-collections-copy strong { font-size: 12px; }
  .home-collections-copy small { font-size: 10.5px; line-height: 1.25; }
  .home-collections-open { width: 21px; height: 21px; flex-basis: 21px; font-size: 20px; }
}
@media (max-height: 520px) {
  .home-final-panel { bottom: 12px; }
  .home-final-intro { margin-bottom: 7px; }
  .home-final-intro h2 { font-size: 20px; margin: 3px 0; }
  .home-final-intro p { font-size: 11px; }
  .home-collections a { min-height: 55px; padding: 8px 11px; }
  .on-scroll-guide { bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .on-scroll-mouse span { animation: none; }
  .home-collections a, .home-collections-open,
  .on-scroll-scene.is-enhanced .home-final-panel { transition: none; }
}

/* =========================================
   LEADFLOW ON — HOMEPAGE VISUAL UPDATE V3
   Only visual changes. Video logic untouched.
   ========================================= */

/* Main headline */
.on-scroll-copy {
  left: clamp(24px, 5vw, 96px);
  bottom: clamp(145px, 17svh, 210px);
  max-width: min(920px, calc(100% - 48px));
}

.on-scroll-copy h1 {
  font-size: clamp(42px, 6.7vw, 104px);
}

.on-scroll-copy p {
  font-size: clamp(14px, 1.3vw, 18px);
}

/* Scroll instruction */
.on-scroll-guide {
  bottom: clamp(34px, 6svh, 72px);
  gap: 18px;
  padding: 16px 22px;
  border-radius: 18px;
  border-color: rgba(255,255,255,.35);
  background: rgba(5,5,5,.82);
}

.on-scroll-mouse {
  width: 29px;
  height: 42px;
  padding-top: 9px;
}

.on-scroll-guide-text strong {
  font-size: 14px;
}

.on-scroll-guide-text small {
  font-size: 14px;
}

.on-scroll-guide-down {
  font-size: 25px;
}

/* Final video navigation */
.home-final-panel {
  width: min(1340px, calc(100% - 7vw));
}

.home-final-intro {
  margin-bottom: 22px;
}

.home-final-intro > span {
  font-size: 12px;
}

.home-final-intro h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.home-final-intro p {
  font-size: clamp(14px, 1.2vw, 17px);
}

.home-collections {
  gap: 14px;
}

.home-collections a {
  min-height: 102px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(5,5,5,.88);
}

.home-collections-copy strong {
  font-size: clamp(15px, 1.2vw, 18px);
}

.home-collections-copy small {
  font-size: clamp(12px, .95vw, 14px);
}

.home-collections-open {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

/* Larger black footer — homepage only */
body:has(.home) .site-footer {
  min-height: 76px;
  padding: 12px clamp(20px, 3vw, 44px);
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.14);
  gap: 20px;
}

body:has(.home) .footer-brand {
  font-size: 15px;
  letter-spacing: .09em;
}

body:has(.home) .footer-slots {
  gap: clamp(18px, 2.3vw, 34px);
}

body:has(.home) .footer-slots a,
body:has(.home) .footer-note summary {
  font-size: 14px;
  line-height: 1.5;
}

/* Desktop footer row */
@media (min-width: 851px) {
  body:has(.home):not(.information-page) {
    grid-template-rows: 72px minmax(0, 1fr) 76px;
  }
}

/* Tablets */
@media (max-width: 850px) {
  .home-final-panel {
    width: calc(100% - 28px);
  }

  .home-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .home-collections a {
    min-height: 88px;
    padding: 14px;
  }

  body:has(.home) .site-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 12px;
  }

  body:has(.home) .footer-slots {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Phones */
@media (max-width: 430px) {
  .on-scroll-copy h1 {
    font-size: clamp(35px, 9vw, 48px);
  }

  .on-scroll-guide {
    gap: 10px;
    padding: 12px 14px;
  }

  .on-scroll-guide-text strong {
    font-size: 12px;
  }

  .on-scroll-guide-text small {
    font-size: 12px;
  }

  .home-final-panel {
    width: calc(100% - 24px);
    bottom: max(16px, env(safe-area-inset-bottom) + 12px);
  }

  .home-final-intro h2 {
    font-size: 26px;
  }

  .home-collections a {
    min-height: 88px;
    padding: 12px;
  }

  .home-collections-copy strong {
    font-size: 13px;
  }

  .home-collections-copy small {
    font-size: 11px;
  }

  .home-collections-open {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 21px;
  }

  body:has(.home) .footer-brand {
    width: 100%;
    font-size: 13px;
  }

  body:has(.home) .footer-slots a,
  body:has(.home) .footer-note summary {
    font-size: 12px;
  }
}

/* Short screens */
@media (max-height: 520px) {
  .home-final-intro h2 {
    font-size: 20px;
  }

  .home-collections a {
    min-height: 55px;
    padding: 8px 11px;
  }
}

/* ON — mobile video framing */
@media (max-width: 650px) and (orientation: portrait) {
  #on-scroll-video {
    object-fit: cover;
    object-position: 22% center;
  }
}
