/*
 * M7 presentation modes.
 * `client` preserves the client's artwork -> name -> motto reading order.
 * `creative` uses the same approved scene and interaction as a full-bleed stage.
 */

html[data-edition="client"] .scene-stage {
  padding: clamp(3.7rem, 6vh, 4.4rem) 1rem clamp(2.2rem, 4vh, 3rem);
}

html[data-edition="client"] .scene-shell {
  width: min(110rem, calc(100vw - 2rem), 136svh);
}

html[data-edition="client"] .brand-lockup {
  min-height: 5.6rem;
  padding-top: clamp(0.7rem, 1.7vh, 1.05rem);
}

html[data-edition="client"] h1 {
  font-size: clamp(1.65rem, 3.25vw, 3.25rem);
}

html[data-edition="client"] .motto {
  margin-top: clamp(0.45rem, 1.1vh, 0.75rem);
  font-size: clamp(0.95rem, 1.55vw, 1.25rem);
}

html[data-edition="creative"] body {
  background: #050504;
}

html[data-edition="creative"] .site-header {
  z-index: 30;
  background: linear-gradient(180deg, rgba(4, 4, 3, 0.76), transparent);
}

html[data-edition="creative"] .scene-stage {
  display: block;
  min-height: 100svh;
  padding: 0;
}

html[data-edition="creative"] .scene-shell {
  position: relative;
  width: 100%;
  height: 100svh;
  isolation: isolate;
}

html[data-edition="creative"] .scene-frame {
  width: 100%;
  height: 100%;
  border: 0;
  aspect-ratio: auto;
  box-shadow: none;
}

html[data-edition="creative"] .scene-image {
  object-fit: cover;
}

html[data-edition="creative"] .scene-vignette {
  background:
    linear-gradient(180deg, rgba(3, 3, 3, 0.16), transparent 31%, rgba(3, 3, 3, 0.12) 52%, rgba(3, 3, 3, 0.88) 100%),
    radial-gradient(ellipse at center, transparent 38%, rgba(3, 3, 3, 0.58) 112%);
}

html[data-edition="creative"] .brand-lockup {
  position: absolute;
  z-index: 12;
  right: clamp(1rem, 5vw, 6rem);
  bottom: clamp(3.9rem, 8vh, 6.4rem);
  left: clamp(1rem, 5vw, 6rem);
  min-height: 0;
  padding: 0;
  pointer-events: none;
  text-shadow:
    0 0.12rem 0.16rem rgba(0, 0, 0, 0.95),
    0 0 2rem rgba(0, 0, 0, 0.78);
}

html[data-edition="creative"] h1 {
  max-width: none;
  color: #f5efe4;
  font-size: clamp(2.1rem, 4.9vw, 5rem);
  letter-spacing: clamp(0.12em, 0.72vw, 0.2em);
  line-height: 1;
}

html[data-edition="creative"] .motto {
  margin-top: clamp(0.7rem, 1.8vh, 1.15rem);
  color: #f2dca5;
  font-size: clamp(1rem, 1.55vw, 1.45rem);
  text-shadow:
    0 1px 2px #000,
    0 0 1.4rem rgba(0, 0, 0, 0.95),
    0 0 2.8rem rgba(186, 131, 50, 0.2);
}

html[data-edition="creative"] .corner-teaser {
  max-width: 13rem;
  font-size: clamp(0.58rem, 0.74vw, 0.75rem);
  color: rgba(238, 216, 166, 0.82);
}

html[data-edition="creative"] .corner-teaser:is(:hover, :focus-visible) {
  color: #fff;
  opacity: 1;
}

html[data-edition="creative"] .corner-teaser--top-left {
  top: clamp(5.2rem, 10vh, 7.5rem);
  left: clamp(1.25rem, 3vw, 3.5rem);
}

html[data-edition="creative"] .corner-teaser--top-right {
  top: clamp(5.2rem, 10vh, 7.5rem);
  right: clamp(1.25rem, 3vw, 3.5rem);
}

html[data-edition="creative"] .corner-teaser--bottom-left {
  bottom: clamp(2.8rem, 5vh, 4.2rem);
  left: clamp(1.25rem, 3vw, 3.5rem);
}

html[data-edition="creative"] .corner-teaser--bottom-right {
  right: clamp(1.25rem, 3vw, 3.5rem);
  bottom: clamp(2.8rem, 5vh, 4.2rem);
}

html[data-edition="creative"] .scene-phase {
  top: clamp(5.2rem, 10vh, 7.5rem);
}

html[data-edition="creative"] .journey-cue {
  z-index: 14;
}

html[data-edition="creative"] .scroll-hint {
  z-index: 14;
}

@media (max-height: 820px) and (min-width: 701px) {
  html[data-edition="client"] .scene-stage {
    padding-top: 3.35rem;
    padding-bottom: 1.8rem;
  }

  html[data-edition="client"] .scene-shell {
    width: min(110rem, calc(100vw - 2rem), 136svh);
  }

  html[data-edition="client"] .brand-lockup {
    min-height: 4.8rem;
    padding-top: 0.55rem;
  }

  html[data-edition="client"] .motto {
    margin-top: 0.32rem;
  }
}

/* A tall viewport cannot crop a 16:9 composition without losing the Omega.
 * On portrait screens the creative cut becomes an intentional panorama with
 * the lockup immediately below while the surrounding atmosphere fills the view.
 */
@media (max-aspect-ratio: 4 / 5) {
  html[data-edition="creative"] .scene-stage {
    display: grid;
    min-height: 100svh;
    align-items: start;
    padding: clamp(6rem, 15svh, 9rem) 0 4rem;
  }

  html[data-edition="creative"] .scene-shell {
    width: 100%;
    height: auto;
  }

  html[data-edition="creative"] .scene-frame {
    position: relative;
    width: 100%;
    height: auto;
    border-block: 1px solid rgba(220, 196, 148, 0.26);
    aspect-ratio: 16 / 9;
  }

  html[data-edition="creative"] .scene-image {
    object-fit: cover;
  }

  html[data-edition="creative"] .scene-vignette {
    background:
      linear-gradient(180deg, rgba(3, 3, 3, 0.08), transparent 48%, rgba(3, 3, 3, 0.4)),
      radial-gradient(ellipse at center, transparent 42%, rgba(3, 3, 3, 0.5) 112%);
  }

  html[data-edition="creative"] .brand-lockup {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 8.5rem;
    padding: clamp(1.15rem, 3vh, 1.8rem) 0.85rem 0;
  }

  html[data-edition="creative"] h1 {
    max-width: 18ch;
    font-size: clamp(1.6rem, 7.8vw, 3.2rem);
    line-height: 1.04;
  }

  html[data-edition="creative"] .motto {
    margin-top: 0.75rem;
    font-size: clamp(0.86rem, 3.8vw, 1.2rem);
  }

  html[data-edition="creative"] .corner-teaser {
    max-width: 7rem;
    font-size: clamp(0.44rem, 1.9vw, 0.6rem);
    letter-spacing: 0.12em;
    line-height: 1.35;
  }

  html[data-edition="creative"] .corner-teaser--top-left,
  html[data-edition="creative"] .corner-teaser--top-right {
    top: 0.55rem;
  }

  html[data-edition="creative"] .corner-teaser--top-left,
  html[data-edition="creative"] .corner-teaser--bottom-left {
    left: 0.55rem;
  }

  html[data-edition="creative"] .corner-teaser--top-right,
  html[data-edition="creative"] .corner-teaser--bottom-right {
    right: 0.55rem;
  }

  html[data-edition="creative"] .corner-teaser--bottom-left,
  html[data-edition="creative"] .corner-teaser--bottom-right {
    bottom: 0.55rem;
  }

  html[data-edition="creative"] .scene-phase {
    top: 0.55rem;
  }
}

@media (max-width: 700px) {
  html[data-edition="client"] .scene-stage {
    padding-inline: 0.5rem;
  }

  html[data-edition="client"] .scene-shell {
    width: min(100%, 136svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-edition="creative"] .scene-shell {
    height: 100svh;
  }

  @media (max-aspect-ratio: 4 / 5) {
    html[data-edition="creative"] .scene-shell {
      height: auto;
    }
  }
}
