/* ============================================================
   BELWARP / BETA
   ============================================================ */

:root {
  --black: #050505;
  --white: #f4f4f0;
  --grey: #8b8b86;

  --page-pad: clamp(1rem, 3vw, 3rem);
}

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

html {
  background: var(--black);
  color: var(--white);
}

body {
  margin: 0;

  color: var(--white);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.35;

  overflow-x: hidden;

  /*
   * Global BELWARP texture.
   *
   * Keeping this deliberately simple for now because this is
   * the version we know actually renders correctly.
   */
  background-color: var(--black);
  background-image:
    url("./assets/belwarp-tessellation.png");

  background-size:
    500px auto;

  background-repeat:
    repeat;

  background-position:
    center top;

  background-attachment:
    fixed;
}

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

a {
  color: inherit;

  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
  text-decoration: none;
}

a:hover {
  text-decoration-style: double;
}

a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}


/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* ============================================================
   LANDING / BILLBOARD
   ============================================================ */

.hero {
  position: relative;

  height: 180vh;

  background: transparent;
}

.hero__title {
  position: sticky;

  top: 0;

  width: 100vw;
  height: 100vh;

  overflow: hidden;
}

.hero__word {
  display: block;

  width: 100%;
  height: 100%;

  overflow: visible;

  transform-origin: center center;

  animation:
    hero-squash linear both;

  animation-timeline:
    scroll(root);

  animation-range:
    0 90vh;
}

.hero__word text {
  fill: var(--white);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 240px;
  font-weight: 900;

  letter-spacing: -8px;
}

@keyframes hero-squash {
  from {
    transform:
      scaleX(1)
      scaleY(1);
  }

  to {
    transform:
      scaleX(0.55)
      scaleY(0.20);
  }
}

.hero__meta {
  position: absolute;

  left: var(--page-pad);
  bottom: var(--page-pad);

  display: flex;

  gap: 1rem;

  font-size: clamp(0.7rem, 0.9vw, 0.9rem);
  font-weight: 700;

  letter-spacing: 0.12em;

  z-index: 2;
}

.scroll-cue {
  position: absolute;

  right: var(--page-pad);
  bottom: var(--page-pad);

  font-size: clamp(2rem, 4vw, 5rem);

  z-index: 2;
}


/* ============================================================
   BRAND MARK
   ============================================================ */

.brand-chapter {
  min-height: 100vh;

  display: grid;

  place-items: center;

  overflow: hidden;

  background: transparent;
}

.brand-chapter__mark {
  width: min(75vmin, 900px);
  height: auto;
}

.dotmark--02 {
  position: absolute;

  width: 80vmin;

  right: -25vmin;
  top: 30vh;

  opacity: 0.25;

  z-index: 0;

  pointer-events: none;
}


/* ============================================================
   GENERIC EVENT
   ============================================================ */

.event {
  position: relative;

  min-height: 100vh;

  padding: var(--page-pad);

  background: transparent;
}

.event__header {
  min-height: 80vh;

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  padding-bottom: 8vh;
}

.event__status {
  margin:
    0 0 1rem;

  color: var(--grey);

  font-size: clamp(0.75rem, 1vw, 1rem);
  font-weight: 700;

  letter-spacing: 0.14em;
}

.event__title {
  margin: 0;

  font-size: clamp(4rem, 14vw, 14rem);
  font-weight: 900;

  line-height: 0.75;

  letter-spacing: -0.065em;

  white-space: nowrap;
}

.event__details {
  margin-top: clamp(2rem, 5vw, 5rem);

  display: flex;
  flex-wrap: wrap;

  gap:
    0.5rem 2rem;

  font-weight: 700;

  letter-spacing: 0.06em;
}

.event__lineup {
  margin:
    15vh 0;

  font-size: clamp(2.5rem, 8vw, 9rem);
  font-weight: 900;
  color: var(--white);
  mix-blend-mode: exclusion;

  line-height: 0.9;

  letter-spacing: -0.045em;
}

.event__lineup p {
  margin: 0;
}

.event__lineup-more {
  margin-top: 2rem;

  color: var(--grey);

  font-size: 0.25em;

  letter-spacing: 0.08em;
}

.event__action {
  margin:
    10vh 0;

  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;

  line-height: 0.9;
}


/* ============================================================
   CURRENT EVENT
   ============================================================ */

.event--current {
  min-height: 220vh;
}


/* ============================================================
   MAILING LIST
   ============================================================ */

.mailing-list {
  padding:
    12vh var(--page-pad);

  text-align: center;
}

.mailing-list__inner {
  width: min(100%, 700px);
  margin: 0 auto;
}

.mailing-list h2 {
  margin: 0 0 1rem;

  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 900;

  line-height: 0.9;
  letter-spacing: -0.04em;
}

.mailing-list p {
  margin: 0 0 2.5rem;
  color: var(--grey);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.4;
}

.mailing-form {
  display: flex;
  gap: 0.75rem;
}

.mailing-form input[type="email"],
.mailing-form button {
  padding: 1.25rem 1.5rem;

  border: 2px solid var(--white);

  font: inherit;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.mailing-form input[type="email"] {
  min-width: 0;
  flex: 1;

  color: var(--white);
  background: var(--black);
}

.mailing-form button {
  padding-inline: 2rem;
  color: var(--black);
  background: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.mailing-form button:hover,
.mailing-form button:focus-visible {
  color: var(--white);
  background: var(--black);
}

.mailing-form__honeypot {
  position: absolute;
  left: -5000px;
}

.mailing-list__form {
  display: flex;
  gap: 1rem;
  width: min(100%, 760px);
  margin: 0 auto;
}

.mailing-list__input,
.mailing-list__button {
  min-height: 64px;
  padding: 1rem 1.4rem;
  border: 2px solid var(--white);
  font: inherit;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

.mailing-list__input {
  flex: 1;
  min-width: 0;
  color: var(--white);
  background: var(--black);
}

.mailing-list__button {
  padding-inline: 2rem;
  color: var(--black);
  background: var(--white);
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}


/* ============================================================
   PHOTO CREDIT
   ============================================================ */

.photo-credit {
  margin: 1.5rem var(--page-pad) 0;
  color: var(--white);
  /*font-size: 0.8rem;*/
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}


/* ============================================================
   TIMELINE / PAST MARKER
   ============================================================ */

.timeline-marker,
.past-marker {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 2rem;

  font-size: clamp(3rem, 12vw, 12rem);
  font-weight: 900;

  line-height: 0.8;

  letter-spacing: -0.05em;

  background: transparent;
}


/* ============================================================
   SCROLL CHAPTERS
   ============================================================ */

.chapter {
  position: relative;

  min-height: 100vh;

  overflow: hidden;

  background: transparent;
}


/* ------------------------------------------------------------
   FULL-SCREEN MEDIA
   ------------------------------------------------------------ */

.chapter__media {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 0;
}

.chapter__shade {
  position: absolute;

  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.12),
      rgba(0, 0, 0, 0.58)
    );

  pointer-events: none;
}

.chapter__shade--light {
  background:
    rgba(0, 0, 0, 0.25);
}

.chapter__shade--heavy {
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.72)
    );
}


/* ------------------------------------------------------------
   CHAPTER TEXT
   ------------------------------------------------------------ */

.chapter__content {
  position: relative;

  min-height: 100vh;

  padding: var(--page-pad);

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  z-index: 2;
}

.chapter__content--bottom {
  justify-content: flex-end;
}

.chapter__title {
  margin: 0;

  font-size: clamp(4rem, 14vw, 14rem);
  font-weight: 900;

  line-height: 0.72;

  letter-spacing: -0.07em;

  color: var(--white);

  white-space: nowrap;

  /*
   * Keeps the giant title sitting right down against
   * the lower edge.
   */
  transform:
    translateY(0.08em);
}

.chapter__statement {
  margin: 0;

  max-width: 8ch;

  font-size: clamp(4rem, 13vw, 14rem);
  font-weight: 900;

  line-height: 0.76;

  letter-spacing: -0.06em;

  color: var(--white);
}


/* ============================================================
   LINEUP CHAPTER
   ============================================================ */

.chapter--lineup {
  min-height: 110vh;

  display: flex;

  align-items: center;

  padding: var(--page-pad);
}

.chapter--lineup .event__lineup {
  margin: 0;
}


/* ============================================================
   BELWARP.01
   ============================================================ */

.event--01 {
  padding: 0;

  overflow: visible;
}

.event--past {
  padding-top: 20vh;
}

.event__lineup--01 {
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  justify-content: center;
}


/* ============================================================
   BELWARP.01 MOSAIC
   ============================================================ */

.chapter--grid {
  min-height: 100vh;
}

.media-grid {
  position: absolute;

  inset: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1.4fr)
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  grid-template-rows:
    55vh
    45vh;

  z-index: 0;
}

.media-grid__cell {
  position: relative;
  overflow: hidden;
}

.media-grid__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.media-grid__cell:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1;
}

.media-grid__cell:nth-child(2) {
  grid-column: 3;
  grid-row: 1 / 3;
}

.media-grid__cell:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.media-grid__cell:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.chapter--grid::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.08);

  z-index: 1;

  pointer-events: none;
}

.chapter__overlay-text {
  position: absolute;

  left: var(--page-pad);
  top: 50%;

  transform: translateY(-50%);

  max-width: none;

  font-size: clamp(3rem, 7vw, 8rem);
  font-weight: 900;

  line-height: 0.78;
  letter-spacing: -0.06em;

  color: var(--white);
  mix-blend-mode: exclusion;

  white-space: nowrap;

  z-index: 2;
}


/* ============================================================
   PORTRAIT WRAP REEL
   ============================================================ */

/*
 * Important:
 *
 * The Reel is 9:16.
 *
 * Instead of cropping it into a 16:9 viewport, we render it
 * at 100% page width and allow its natural aspect ratio to
 * make this chapter several screens tall.
 *
 * You literally scroll through the video.
 */

.chapter--video {
  position: relative;

  min-height: 0;

  overflow: visible;
}

.chapter--video .chapter__media {
  position: relative;

  inset: auto;

  display: block;

  width: 100%;
  height: auto;

  object-fit: initial;

  z-index: 0;

  /*
   * Explicitly excluded from parallax.
   */
  animation: none;
  transform: none;
}

.chapter__video-copy {
  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;
}

.chapter--video .chapter__statement {
  position: sticky;

  top: 8vh;

  margin: 0;

  padding: var(--page-pad);

  max-width: 8ch;

  font-size: clamp(4rem, 13vw, 14rem);
  font-weight: 900;

  line-height: 0.76;

  letter-spacing: -0.06em;

  color: var(--white);
}

.chapter--video video {
  filter:
    contrast(1.08)
    saturate(1.05);
}


/* ============================================================
   POSTER
   ============================================================ */

.chapter--poster {
  min-height: 120vh;

  display: flex;

  align-items: center;
  justify-content: center;

  padding:
    12vh var(--page-pad);
}

.poster {
  width: min(72vw, 900px);

  margin: 0;
}

.poster img {
  width: 100%;

  transform:
    rotate(-2deg);

  box-shadow:
    0 2rem 6rem rgba(0, 0, 0, 0.5);
}


/* ============================================================
   QUOTE
   ============================================================ */

.chapter--quote {
  min-height: 120vh;

  display: flex;

  align-items: center;

  padding: var(--page-pad);
}

.quote {
  margin: 0;
}

.quote p {
  max-width: 10ch;

  margin: 0;

  font-size: clamp(4rem, 13vw, 14rem);
  font-weight: 900;

  line-height: 0.76;

  letter-spacing: -0.06em;
}


/* ============================================================
   EPILOGUE
   ============================================================ */

.chapter--epilogue {
  min-height: 130vh;

  padding: var(--page-pad);
}

.event__epilogue {
  min-height: 130vh;

  display: flex;
  flex-direction: column;

  justify-content: center;

  margin: 0;

  font-size: clamp(3rem, 9vw, 10rem);
  font-weight: 900;

  line-height: 0.85;

  letter-spacing: -0.05em;
}

.event__epilogue p {
  margin: 0;
}


/* ============================================================
   BELWARP.02
   ============================================================ */

.chapter--02-hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.chapter--02-hero .chapter__media {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chapter--02-lineup {
  min-height: 120vh;
}

.chapter--02-lineup .event__lineup {
  margin: 0;

  font-size: clamp(3rem, 10vw, 11rem);

  line-height: 0.82;
}

.chapter--02-hero .chapter__media,
.chapter--02-lineup .chapter__media {
  filter:
    contrast(1.15)
    saturate(0.9);
}

.chapter--02-poster .poster {
  width: min(68vw, 850px);
}


/* ============================================================
   COLOPHON / END OF BOOK
   ============================================================ */

.colophon {
  min-height: 120vh;

  padding:
    var(--page-pad);

  padding-bottom:
    10vh;

  display: flex;
  flex-direction: column;

  justify-content: flex-end;

  text-transform: uppercase;

  letter-spacing: 0.04em;

  background: transparent;
}

.colophon h2 {
  margin:
    0 0 4rem;

  font-size: clamp(5rem, 18vw, 20rem);
  font-weight: 900;

  transform: translateX(-0.12em);
  line-height: 0.72;
  letter-spacing: -0.065em;
}

.colophon > p {
  max-width: 40ch;

  margin:
    0 0 1.5rem;

  font-size: clamp(1.5rem, 3vw, 3rem);
}

.colophon__links {
  margin-top: 10vh;

  display: flex;
  flex-wrap: wrap;

  gap:
    1rem 3rem;

  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
}

.epilogue__brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /*gap: 0.1em;*/
}

.epilogue__dotmark {
  width: 0.9em;
  height: 0.9em;
  object-fit: contain;
  flex: 0 0 auto;
}

.chapter--reel {
  position: relative;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.reel-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.reel-video {
  position: static;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  margin: 0;
  padding: 0;
  transform: none;
  animation: none;
}

.reel-copy {
  color: var(--white);
  mix-blend-mode: exclusion;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.reel-copy p {
  position: sticky;
  top: 8vh;

  margin: 0;
  padding: var(--page-pad);

  max-width: 8ch;

  font-size: clamp(4rem, 13vw, 14rem);
  font-weight: 900;
  line-height: .76;
  letter-spacing: -.06em;

  color: var(--white);
}
/* ============================================================
   LIGHT PARALLAX
   ============================================================ */

/*
 * Still full-screen chapter images get a tiny amount of
 * movement.
 *
 * The portrait Reel deliberately does NOT.
 */

@supports (animation-timeline: view()) {

  .chapter--hero .chapter__media {
    animation:
      media-drift linear both;

    animation-timeline:
      view();

    animation-range:
      entry 0%
      exit 100%;
  }

  @keyframes media-drift {
    from {
      transform:
        scale(1.08)
        translateY(4vh);
    }

    to {
      transform:
        scale(1.08)
        translateY(-4vh);
    }
  }


  .poster {
    animation:
      poster-drift linear both;

    animation-timeline:
      view();

    animation-range:
      entry 0%
      exit 100%;
  }

  @keyframes poster-drift {
    from {
      transform:
        translateY(8vh)
        rotate(-1deg);
    }

    to {
      transform:
        translateY(-8vh)
        rotate(1deg);
    }
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

  .hero__meta {
    flex-direction: column;
    gap: 0.2rem;
  }

  .event__header {
    min-height: 70vh;
  }

  .chapter__title {
    font-size: clamp(3rem, 13vw, 7rem);
  }

  .media-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 100vw 100vw;
  }

  .chapter--grid {
    min-height: auto;
    height: 200vw;
  }

  .media-grid__cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .media-grid__cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .media-grid__cell:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .media-grid__cell:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .media-grid__cell:nth-child(4) img {
    object-position: 20% 50%;
    transform: scale(1.05) translateY(-10%);
  }

  .chapter__overlay-text {
    font-size: clamp(2.2rem, 10vw, 5rem);

    color: var(--white);
    mix-blend-mode: exclusion;

    white-space: normal;
    max-width: calc(100% - 2 * var(--page-pad));
  }

  .poster {
    width: 90vw;
  }

  .chapter--02-lineup .event__lineup {
    font-size: clamp(2rem, 10vw, 4rem);
    letter-spacing: -0.05em;
  }

  .reel-copy p {
    max-width: none;
    font-size: 13vw;
  }

  .colophon h2 {
    font-size: 17vw;
  }

  .colophon p {
    font-size: 5.8vw;
  }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  .hero__word,
  .chapter__media,
  .poster {
    animation: none !important;
    transform: none !important;
  }

  /*
   * Decorative autoplay video is removed for users requesting
   * reduced motion; use its poster frame instead.
   */

  .chapter--video video {
    display: none;
  }

  .chapter--video {
    min-height: 100vh;

    background:
      url("./assets/bwp01/wrap-reel-poster.jpg")
      center / contain
      no-repeat;
  }

}

.big-quote {
  position: relative;
  margin: 0;
  padding: 15vh var(--page-pad);

  min-height: 100vh;

  display: flex;
  align-items: center;
}

.big-quote p {
  position: relative;
  z-index: 1;

  margin: 0;

  max-width: 10ch;

  font-size: clamp(4rem, 12vw, 13rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.055em;
}

.big-quote__mark {
  position: absolute;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15rem, 40vw, 45rem);
  font-weight: 900;
  line-height: 1;

  opacity: 0.2;

  pointer-events: none;
  user-select: none;
}

.big-quote__mark--open {
  top: -0.05em;
  left: 0;
}

.big-quote__mark--close {
  right: 0;
  bottom: -0.35em;
}
