html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.universe-page .site-header nav a,
body:has(.looks-hero) header nav a {
  font-size: 0.68rem;
  text-shadow: 0 1px 9px #000;
}

.look > button {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: radial-gradient(circle at 50% 30%, #8e3c9e, #21102b 58%, #090613);
  isolation: isolate;
}

.look > button::before {
  content: '✦';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffd9fa;
  font-size: 2.5rem;
  text-shadow: 0 0 24px #ff56d9;
  animation: gallery-gem-pulse 1.4s ease-in-out infinite;
}

.look > button img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.35s ease;
}

.look > button img.is-loaded {
  opacity: 1;
}

.band-card.future {
  border-color: #e9c98766;
  background: radial-gradient(circle at 50% 28%, #c15dc86b, transparent 32%), linear-gradient(145deg, #32163a, #0a0710);
}

.band-card.future::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid #f5d58d33;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: linear-gradient(135deg, #ffffff44, transparent 35% 65%, #ff70dc22);
}

.band-placeholder {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.9;
  text-shadow: 0 0 22px #ff70dc;
}

.band-placeholder span {
  color: #ff8ee6;
  font-size: 2.2rem;
}

.band-placeholder b {
  color: #f6dca2;
  font: 400 3.4rem/1 Italiana, serif;
  letter-spacing: 0.08em;
}

.band-placeholder small {
  color: #f6e6f4;
  font: 600 0.48rem/1.3 'DM Sans', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.band-card:has(> img[src*='bongo']) {
  background: radial-gradient(circle at 50% 34%, #76445f, #160e18 72%);
}

.band-card > img[src*='bongo'] {
  object-fit: contain;
  padding: 8px;
  filter: brightness(1.1) saturate(1.08) contrast(1.02);
}

@keyframes gallery-gem-pulse {
  50% { opacity: 0.38; transform: scale(0.86); }
}

@media (prefers-reduced-motion: reduce) {
  .look > button::before { animation: none; }
}

@media (max-width: 640px) {
  .universe-page .site-header nav a,
  body:has(.looks-hero) header nav a {
    font-size: 0.78rem;
  }
}

.looks-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #e9c98770;
  border-radius: 50%;
  background: radial-gradient(circle, #7a2e7266, #130b18);
  box-shadow: 0 0 22px #ff5bd326;
  cursor: pointer;
}

.looks-menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: #f7dfaa;
  transition: transform .25s ease;
}

@media (max-width: 1024px) {
  body:has(.looks-hero) header {
    position: relative;
    z-index: 50;
    height: 82px;
    padding-inline: 5vw;
  }

  .looks-menu-toggle {
    display: block;
    flex: 0 0 auto;
  }

  body:has(.looks-hero) header nav {
    position: absolute;
    z-index: 60;
    top: 82px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 12px 5vw 18px;
    border-bottom: 1px solid #e9c98766;
    background: #0a0610f7;
    box-shadow: 0 18px 40px #0009;
    backdrop-filter: blur(14px);
  }

  body:has(.looks-hero) header.menu-open nav { display: flex; }

  body:has(.looks-hero) header nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ffffff12;
  }

  body:has(.looks-hero) .looks-hero {
    padding: 64px 6vw 52px;
  }

  body:has(.looks-hero) .looks-hero h1 {
    margin: 20px 0;
    font-size: clamp(3rem, 14vw, 4rem);
    line-height: .88;
  }

  body:has(.looks-hero) .looks-hero span {
    display: block;
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  body:has(.looks-hero) .filters {
    padding: 25px 5vw 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  body:has(.looks-hero) .filters::-webkit-scrollbar { display: none; }
  body:has(.looks-hero) .filters button { min-height: 44px; flex: 0 0 auto; }
  body:has(.looks-hero) .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 5vw 72px; gap: 20px; }

  .universe-page .button,
  .universe-page .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  body:has(.looks-hero) .looks-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1101px) {
  body:has(.looks-hero) header {
    position: sticky;
    z-index: 50;
    top: 0;
    height: 92px;
    padding-inline: clamp(34px, 3.5vw, 72px);
    box-shadow: 0 12px 35px #0005;
  }
  body:has(.looks-hero) header nav { gap: clamp(12px, 1.25vw, 24px); }
  body:has(.looks-hero) header nav a { position: relative; padding-block: 12px; font-size: .72rem; }
  body:has(.looks-hero) header nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff8ee6, #e9c987, transparent);
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  body:has(.looks-hero) header nav a:hover::after,
  body:has(.looks-hero) header nav a:focus-visible::after,
  body:has(.looks-hero) header nav a[aria-current='page']::after { transform: scaleX(1); }
  body:has(.looks-hero) .looks-hero { min-height: 510px; padding: 105px max(8vw, calc((100vw - 1500px) / 2)) 82px; }
  body:has(.looks-hero) .filters,
  body:has(.looks-hero) .looks-grid { width: min(100%, 1600px); margin-inline: auto; }
  body:has(.looks-hero) .filters button { min-height: 42px; padding-inline: 20px; transition: transform .2s ease, background .2s ease, color .2s ease; }
  body:has(.looks-hero) .filters button:hover,
  body:has(.looks-hero) .filters button:focus-visible { transform: translateY(-2px); }
  body:has(.looks-hero) .looks-grid { gap: 28px; }
  .look {
    overflow: hidden;
    border: 1px solid #d6c8d3;
    border-radius: 4px 22px 4px 22px;
    box-shadow: 0 18px 45px #35243d18;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  }
  .look:hover { transform: translateY(-7px); border-color: #a978a4; box-shadow: 0 28px 65px #35243d2b; }
  .look > button img { transition: opacity .45s ease, transform .5s ease; }
  .look:hover > button img { transform: scale(1.025); }
  .look div { min-height: 178px; padding: 24px 25px 26px; }
  .look p { font-size: 1rem; }
}

/* Ultra-cinematic finish shared by the four home chapters and character worlds. */
.home-chapter,
.profile-hero,
.universe-hero,
.zayden-hero {
  background-color: var(--cinema-black, #030108);
}

.chapter-shade {
  background:
    radial-gradient(circle at 72% 34%, #ff7ee11e 0, transparent 28%),
    radial-gradient(circle at 48% 9%, #a47cff16 0, transparent 34%),
    linear-gradient(90deg, #08030de8 0%, #14091dbf 38%, #09040c3e 72%, #050209b5 100%),
    linear-gradient(0deg, #050208e8 0%, transparent 45%);
}

.zayden-chapter .chapter-shade {
  background:
    radial-gradient(circle at 69% 35%, #70eaff1c 0, transparent 30%),
    linear-gradient(90deg, #02060de8 0%, #07162bbe 40%, #02060d26 72%, #01040ab0 100%),
    linear-gradient(0deg, #01050ce8 0%, transparent 45%);
}

.max-bebo-chapter .chapter-shade {
  background:
    radial-gradient(circle at 68% 31%, #ff69d51f 0, transparent 31%),
    radial-gradient(circle at 77% 55%, #5cdfff1c 0, transparent 28%),
    linear-gradient(90deg, #08020de8 0%, #27103bb0 42%, #07030a25 75%, #050208a8 100%),
    linear-gradient(0deg, #050208e3 0%, transparent 43%);
}

.chapter-copy,
.character-chapter-copy,
.profile-copy,
.universe-hero-copy,
.zayden-hero-copy {
  text-shadow: 0 2px 18px #000d;
}

.chapter-copy .eyebrow,
.character-chapter-copy .eyebrow,
.profile-copy .eyebrow,
.universe-hero-copy .eyebrow,
.zayden-hero-copy .eyebrow {
  text-shadow: 0 0 18px currentColor;
}

.button.primary,
.platform-link,
.chapter-controls button.is-active {
  box-shadow:
    inset 0 1px 0 #fff7,
    inset 0 -1px 0 #39052e8c,
    0 10px 30px #0007,
    0 0 22px color-mix(in srgb, var(--cinema-pink, #ff6fda) 32%, transparent);
}

.look > button,
.gallery-card,
.photo-strip img,
.zayden-photo-grid img,
.crew-card,
.band-card {
  border-color: color-mix(in srgb, var(--cinema-gold, #f1d394) 54%, transparent);
  box-shadow:
    inset 0 0 0 1px #fff2,
    0 18px 48px #0008,
    0 0 24px color-mix(in srgb, var(--cinema-pink, #ff6fda) 13%, transparent);
}

@supports selector(.look > button::after) {
  .look > button::after,
  .gallery-card::after {
    content: '';
    position: absolute;
    z-index: 3;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(118deg, transparent 0 43%, #ffffff12 48%, transparent 53%),
      radial-gradient(circle at 18% 12%, #fff3 0 1px, transparent 2px),
      radial-gradient(circle at 82% 23%, #ffe5fb4f 0 1px, transparent 2px);
    mix-blend-mode: screen;
  }
}

@media (max-width: 760px) {
  .chapter-shade {
    background:
      linear-gradient(0deg, #050208d9 0%, #08030d4a 38%, transparent 66%),
      linear-gradient(90deg, #08030d61, transparent 24%, transparent 76%, #08030d55);
  }

  .chapter-copy,
  .character-chapter-copy,
  .profile-copy,
  .universe-hero-copy,
  .zayden-hero-copy {
    text-shadow: 0 2px 14px #000f;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-background,
  img[data-cinematic-image] {
    will-change: auto;
  }
}

/* Let the browser defer below-the-fold sections without changing their layout. */
.universe-page .content-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* Shared responsive safeguards for galleries, profiles and secondary pages. */
@media (pointer: coarse) {
  .universe-page a.button,
  .universe-page button,
  body:has(.looks-hero) button,
  body:has(.looks-hero) header a {
    min-height: 44px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .universe-page .site-header,
  body:has(.looks-hero) header {
    height: 64px;
  }

  .universe-page main { padding-top: 64px; }
  .universe-page .site-header nav,
  body:has(.looks-hero) header nav { top: 64px; inset-block-start: 64px; max-height: calc(100svh - 64px); overflow-y: auto; }

  .universe-hero { min-height: 540px; }
  .universe-hero-copy { margin-left: 6vw; width: min(560px, 58vw); }
  .universe-hero h1 { font-size: clamp(3.2rem, 7vw, 5rem); }
  .content-section { padding-block: 56px; }

  .profile-hero { grid-template-columns: minmax(300px, .86fr) minmax(0, 1.14fr); min-height: 560px; padding-top: 64px; }
  .profile-art { min-height: 500px; }
  .profile-copy { padding: 60px 6vw; }
  .profile-copy h1 { font-size: clamp(3.2rem, 6vw, 5rem); }
  .profile-facts { margin-block: 16px; }

  body:has(.looks-hero) .looks-hero { min-height: 330px; padding: 54px 6vw 42px; }
  body:has(.looks-hero) .looks-hero h1 { font-size: clamp(3rem, 8vw, 4.8rem); }
  body:has(.looks-hero) .looks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1920px) {
  .universe-page .site-header,
  body:has(.looks-hero) header { padding-inline: max(4vw, calc((100vw - 1900px) / 2)); }
  .content-section { padding-inline: max(7vw, calc((100vw - 1760px) / 2)); }
  body:has(.looks-hero) .looks-hero { padding-inline: max(8vw, calc((100vw - 1760px) / 2)); }
  body:has(.looks-hero) .filters,
  body:has(.looks-hero) .looks-grid { max-width: 1760px; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Version 74: one responsive rhythm from phone through 4K. */
html {
  scroll-padding-top: 92px;
  scrollbar-gutter: stable;
}

body {
  min-width: 0;
}

.lobby-intro p,
.compact-directory b,
.character-chapter-copy p,
.profile-copy p,
.section-intro p { overflow-wrap: anywhere; }

.chapter-direction { white-space: nowrap; }

img,
video,
iframe {
  max-width: 100%;
}

.site-header .logo,
.site-header nav a,
.menu-toggle,
.button,
.text-link,
.chapter-navigation button {
  -webkit-tap-highlight-color: transparent;
}

.site-header nav a:focus-visible,
.logo:focus-visible,
.button:focus-visible,
.text-link:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.home-chapter,
.content-section,
.profile-hero,
.universe-hero {
  scroll-margin-top: 92px;
}

.chapter-background,
.profile-art img,
.universe-hero > img,
.gallery-card > img,
.crew-card > img,
.band-card > img {
  image-rendering: auto;
}

@media (pointer: coarse) {
  .site-header nav a,
  .couture-strip button,
  .character-mini-gallery button,
  .photo-strip img[data-lightbox],
  .gallery-card a,
  .text-link {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 78px; }

  .four-page-home .site-header,
  .universe-page .site-header {
    padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  }

  .four-page-home .logo-copy b,
  .universe-page .logo-copy b { font-size: 1rem; }
  .four-page-home .logo-copy small,
  .universe-page .logo-copy small { font-size: .46rem; letter-spacing: .32em; }

  .four-page-home .site-header nav,
  .universe-page .site-header nav {
    max-height: calc(100dvh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .home-chapter {
    scroll-margin-top: 78px;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .lobby-intro,
  .compact-directory,
  .character-chapter-copy,
  .chica-title-block {
    width: 100%;
    max-width: 100%;
  }

  .lobby-intro > .hero-world-copy,
  .character-chapter-copy > p:not(.eyebrow):not(.character-role),
  .chica-title-block > p:not(.eyebrow) {
    font-size: .9rem;
    line-height: 1.55;
  }

  .compact-room-grid a,
  .character-chapter-copy .button,
  .universe-connect button {
    min-height: 44px;
  }

  .chapter-navigation {
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 16px);
    overflow: hidden;
    box-shadow: 0 16px 44px #000d, 0 0 28px #ff6fe22a;
  }

  .chapter-dots {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: space-evenly;
  }

  .chapter-dots button {
    flex: 0 1 50px;
    padding-inline: 2px;
  }

  .gallery-selector,
  .character-mini-gallery,
  .youtube-thumbnails {
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .gallery-selector button,
  .character-mini-gallery button,
  .youtube-thumbnails button { scroll-snap-align: start; }

  .content-section { padding: 68px 5vw; }
  .section-intro { margin-bottom: 34px; }
  .section-intro h2 { font-size: clamp(2.85rem, 14vw, 3.6rem); }
  .section-intro p { font-size: 1rem; line-height: 1.65; }

  .profile-hero { min-height: 0; }
  .profile-art { min-height: min(128vw, 560px); max-height: 72svh; }
  .profile-copy { padding: 56px 6vw 68px; }
  .profile-copy h1 { font-size: clamp(3.4rem, 16vw, 4.4rem); }
  .profile-copy p { font-size: 1rem; line-height: 1.68; }

  .photo-strip { gap: 18px; }
  .photo-strip img { max-height: calc(100dvh - 112px); object-fit: contain; }
}

@media (max-height: 520px) and (orientation: landscape) {
  html { scroll-padding-top: 64px; }
  .home-chapter { scroll-margin-top: 64px; padding-bottom: 82px; }
  .chapter-navigation { max-width: calc(100vw - 20px); }
  .content-section { padding-block: 48px; }
}

@media (min-width: 641px) and (max-width: 1100px) {
  html { scroll-padding-top: 78px; }
  .home-chapter,
  .content-section,
  .profile-hero,
  .universe-hero { scroll-margin-top: 78px; }
  .site-header nav a { font-size: .8rem; }
  .content-section { padding-inline: 6vw; }
  .chapter-navigation { max-width: calc(100vw - 32px); }
}

@media (min-width: 1101px) {
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .text-link { display: inline-flex; min-height: 40px; align-items: center; }
  .home-chapter { padding-inline: max(0px, calc((100vw - 2100px) / 2)); }
}

/* Keep the cinematic hero composition in the first viewport when a video follows it. */
@media (min-width: 1025px) {
  .home-chapter > .chapter-background,
  .home-chapter > .chapter-shade { height: 100svh; }
  #four-page-hero,
  #zayden-home-image,
  #four-page-max-image { height: 100svh !important; }
  .lobby-intro,
  .compact-directory,
  .character-chapter-copy { top: 50svh; }
  .character-mini-gallery,
  .max-bebo-mini-gallery { top: calc(100svh - 185px); bottom: auto; }
  .chapter-youtube-section:not([hidden]) { margin-top: calc(100svh + 26px); }
  .chica-chapter .chapter-youtube-section:not([hidden]) { margin-top: 35px; }
}

@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape) {
  .home-chapter > .chapter-background,
  .home-chapter > .chapter-shade { height: 100svh; }
  #four-page-hero,
  #zayden-home-image,
  #four-page-max-image { height: 100svh !important; }
  .lobby-intro,
  .compact-directory,
  .character-chapter-copy { top: 50svh; }
  .character-mini-gallery,
  .max-bebo-mini-gallery { top: calc(100svh - 170px); bottom: auto; }
  .chapter-youtube-section:not([hidden]) { margin-top: calc(100svh + 20px); }
  .chica-chapter .chapter-youtube-section:not([hidden]) { margin-top: 28px; }
}

@media (min-width: 1920px) {
  html { font-size: clamp(16px, .9vw, 20px); }
  .home-chapter { min-height: max(900px, 100svh); }
  .chapter-navigation { max-width: 1120px; }
  .content-section > *,
  .brand-band > *,
  .sub-footer > * { max-width: 1760px; margin-inline: auto; }
  .profile-hero { max-width: 2200px; margin-inline: auto; }
}
