* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--jds-blueberry);
}

body {
  /* Matches the Converge story geometry: the column stops drifting inward
     past 1960px so the headline keeps the artwork beside it instead of a
     widening slab of empty navy. */
  --mayhem-gutter: clamp(24px, calc((100vw - 1440px) / 2), 260px);
  --mayhem-rail: max(24px, calc((100vw - 1440px) / 2));
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--jds-blueberry);
  color: var(--jds-milk);
}

a {
  color: inherit;
}

.mayhem-skip {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 20;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--jds-milk);
  border-radius: var(--radius-sm);
  color: var(--jds-blueberry);
  font-weight: 800;
  text-decoration: none;
  transform: translate(-50%, -150%);
  transition: transform 150ms ease;
}

.mayhem-skip:focus {
  transform: translate(-50%, 0);
}

.mayhem-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--mayhem-rail) 20px var(--mayhem-gutter);
}

.mayhem-mark,
.mayhem-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 2px 16px color-mix(in srgb, var(--jds-blueberry) 80%, transparent);
}

.mayhem-mark {
  font-size: 24px;
}

.mayhem-mark span,
.mayhem-story h1 span {
  color: var(--jds-amber-300);
}

.mayhem-back {
  gap: 8px;
  font-size: 14px;
}

.mayhem-skip:focus-visible,
.mayhem-mark:focus-visible,
.mayhem-back:focus-visible,
.mayhem-play:focus-visible {
  outline: 3px solid var(--jds-amber-300);
  outline-offset: 4px;
}

.mayhem-world {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
}

.mayhem-world::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Anchored to the story column in pixels. A percentage scrim widened with
     the viewport while the text stayed put, which painted the workshop out
     on large displays. */
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--jds-blueberry) 44%, transparent) 0,
      color-mix(in srgb, var(--jds-blueberry) 72%, transparent)
        calc(var(--mayhem-gutter) * .7),
      color-mix(in srgb, var(--jds-blueberry) 78%, transparent)
        calc(var(--mayhem-gutter) + 340px),
      color-mix(in srgb, var(--jds-blueberry) 32%, transparent)
        min(calc(var(--mayhem-gutter) + 630px), 62%),
      transparent min(calc(var(--mayhem-gutter) + 880px), 84%)
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--jds-blueberry) 42%, transparent),
      transparent 38%
    );
  content: "";
  pointer-events: none;
}

.mayhem-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
}

.mayhem-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mayhem-story {
  width: min(570px, calc(100vw - 48px));
  margin-left: var(--mayhem-gutter);
  padding: 102px 0 54px;
}

.mayhem-kicker {
  color: var(--jds-amber-200);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.mayhem-kicker span {
  margin: 0 5px;
}

.mayhem-story h1 {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--jds-white);
  font-size: clamp(52px, 5.4vw, 82px);
  line-height: .88;
  text-transform: none;
  text-shadow: 0 4px 28px color-mix(in srgb, var(--jds-blueberry) 88%, transparent);
}

.mayhem-copy {
  max-width: 500px;
  margin-top: 28px;
}

.mayhem-copy p {
  color: color-mix(in srgb, var(--jds-milk) 92%, transparent);
  font-size: clamp(15.5px, 1.15vw, 17px);
  line-height: 1.5;
  letter-spacing: -.025em;
  text-shadow: 0 2px 16px color-mix(in srgb, var(--jds-blueberry) 88%, transparent);
}

.mayhem-copy p + p {
  margin-top: 13px;
}

.mayhem-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.mayhem-play {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 18px;
  background: var(--jds-amber-300);
  border: 1px solid color-mix(in srgb, var(--jds-white) 36%, transparent);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--jds-blueberry) 45%, transparent);
  color: var(--jds-blueberry);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease;
}

.mayhem-play:hover {
  background: var(--jds-amber-200);
  transform: translateY(-2px);
}

.mayhem-actions > p {
  max-width: 210px;
  color: color-mix(in srgb, var(--jds-milk) 70%, transparent);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Short laptop viewports: keep the play button and its control note on the
   first screen instead of pushing them past the bottom edge. */
@media (min-width: 821px) and (max-height: 820px) {
  .mayhem-story {
    padding: 76px 0 32px;
  }

  .mayhem-story h1 {
    font-size: clamp(44px, 4.4vw, 64px);
  }

  .mayhem-copy {
    margin-top: 20px;
  }

  .mayhem-copy p {
    font-size: clamp(15px, 1vw, 16px);
  }

  .mayhem-copy p + p {
    margin-top: 10px;
  }

  .mayhem-actions {
    margin-top: 20px;
  }
}

@media (max-width: 1000px) and (min-width: 821px) {
  .mayhem-story {
    width: min(510px, calc(100vw - 48px));
  }

  .mayhem-story h1 {
    font-size: clamp(48px, 6.3vw, 66px);
  }

  .mayhem-copy {
    max-width: 440px;
  }
}

@media (max-width: 820px) {
  .mayhem-nav {
    position: absolute;
    padding: 12px 16px;
  }

  .mayhem-world {
    display: block;
    min-height: 100svh;
    overflow: visible;
    background: var(--jds-blueberry);
  }

  .mayhem-world::after {
    display: none;
  }

  .mayhem-art {
    position: relative;
    z-index: 0;
    width: 100%;
  }

  .mayhem-art img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .mayhem-story {
    width: 100%;
    margin: 0;
    padding: 30px 20px 52px;
  }

  .mayhem-story h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .mayhem-copy {
    max-width: 620px;
  }

  .mayhem-copy p {
    font-size: 16px;
    text-shadow: none;
  }

  .mayhem-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .mayhem-actions > p {
    max-width: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mayhem-skip,
  .mayhem-play {
    transition: none;
  }

  .mayhem-play:hover {
    transform: none;
  }
}
