:root {
  --purple: #451777;
  --purple-dark: #2b0c53;
  --purple-light: #61218f;
  --green: #a3ff70;
  --green-bright: #c7ffaa;
  --pink: #e00087;
  --white: #fff;
  --muted: #ded0eb;
  --ticker-height: 42px;
}

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

html {
  color-scheme: dark;
  background: var(--purple);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--purple);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.stage {
  --pointer-x: 50%;
  --pointer-y: 45%;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: calc(100svh - var(--ticker-height));
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgb(117 54 164 / 34%) 0 8%, transparent 32%),
    radial-gradient(ellipse at 50% 43%, var(--purple-light) 0, var(--purple) 57%, var(--purple-dark) 115%);
}

.stage::before,
.stage::after {
  position: absolute;
  z-index: -2;
  width: 56vw;
  height: 140%;
  content: "";
  pointer-events: none;
  opacity: .42;
  filter: blur(6px);
  animation: lightSweep 10s ease-in-out infinite;
}

.stage::before {
  top: -20%;
  left: -26%;
  background: linear-gradient(112deg, transparent 44%, rgb(203 169 255 / 62%) 49%, rgb(163 255 112 / 28%) 52%, transparent 58%);
}

.stage::after {
  right: -26%;
  bottom: -20%;
  background: linear-gradient(292deg, transparent 44%, rgb(203 169 255 / 62%) 49%, rgb(163 255 112 / 28%) 52%, transparent 58%);
  animation-delay: -5s;
}

.river,
.reference-corners {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.river {
  opacity: .48;
}

.river svg {
  display: block;
  width: 100%;
  height: 100%;
}

.river use,
.river path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.river-halo {
  stroke: #a45cff;
  stroke-width: 115;
  opacity: .13;
  filter: blur(22px);
}

.river-bed {
  stroke: #b994dd;
  stroke-width: 68;
  opacity: .2;
}

.river-bank {
  stroke: #d6bdf0;
  stroke-width: 2;
  opacity: .32;
}

.river-segments {
  stroke: #d6bdf0;
  stroke-width: 12;
  stroke-dasharray: 3 20 3 20 35 120;
  opacity: .18;
  animation: riverCurrent 34s linear infinite;
}

.corner {
  position: absolute;
  display: block;
  width: clamp(180px, 29vw, 480px);
  height: auto;
  object-fit: contain;
  transform-origin: 100% 0;
  animation: cornerFloat 13s ease-in-out infinite;
}

.corner-top {
  top: -12px;
  right: -12px;
}

.corner-bottom {
  bottom: -12px;
  left: -12px;
  width: clamp(145px, 23vw, 380px);
  transform-origin: 0 100%;
  animation-delay: -6.5s;
}

.content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 590px);
  padding: 22px 0 26px;
  text-align: center;
}

.brand {
  display: block;
  width: clamp(182px, 18vw, 225px);
  max-height: 146px;
  margin: 0 auto 13px;
  object-fit: contain;
}

.eyebrow,
h1,
.sub,
.event-days,
.event-year,
.venue,
.num,
.cta,
.ticker-group {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  padding: 5px 13px 4px;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: skew(-8deg);
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: .96;
  letter-spacing: .035em;
  text-transform: uppercase;
}

h1 span {
  display: block;
  color: var(--green);
}

.sub {
  margin: 0 0 19px;
  color: var(--green);
  font-size: clamp(23px, 3vw, 35px);
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.date {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2px;
  margin: 0 18px;
  padding: 14px 16px 12px;
  justify-items: center;
  color: var(--purple);
}

.date::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  content: "";
  transform: skew(-5deg);
}

.event-days {
  font-size: clamp(32px, 4.5vw, 51px);
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.event-year {
  font-size: 28px;
  line-height: 1;
}

.venue {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 21px;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.venue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
}

.venue-full {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 12px;
}

.count-label,
.realization {
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.count-label {
  margin: 22px 0 8px;
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto;
}

.unit {
  padding: 10px 3px 11px;
  border-bottom: 2px solid var(--green);
}

.num {
  display: block;
  color: var(--green);
  font-size: clamp(44px, 6vw, 76px);
  font-variant-numeric: tabular-nums;
  line-height: .95;
}

.unit small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 24px;
  padding: 13px 27px 11px;
  border: 0;
  background: transparent;
  color: var(--purple-dark);
  cursor: default;
  font-size: 24px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.cta::before,
.cta::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--green);
  content: "";
  transform: skew(-5deg);
}

.cta::after {
  z-index: -2;
  background: var(--pink);
  transform: translate(7px, 7px) skew(-5deg);
}

.cta svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.note {
  margin: 19px 0 9px;
  color: var(--muted);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 13px;
}

.realization {
  margin: 0;
}

.realization img {
  display: block;
  width: 105px;
  max-height: 57px;
  margin: 5px auto 0;
  object-fit: contain;
}

.motion-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  z-index: 8;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 34%);
  border-radius: 6px;
  background: rgb(45 11 84 / 66%);
  color: var(--white);
  cursor: pointer;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 11px;
}

.ticker {
  position: relative;
  z-index: 10;
  display: flex;
  height: var(--ticker-height);
  align-items: center;
  overflow: hidden;
  background: var(--green);
  color: var(--purple);
}

.ticker-window {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ticker-group svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: currentcolor;
}

.ticker-pause {
  display: grid;
  width: 48px;
  height: 100%;
  flex: none;
  padding: 0;
  border: 0;
  border-left: 1px solid rgb(69 23 119 / 25%);
  background: var(--green);
  color: var(--purple);
  cursor: pointer;
  font-weight: 800;
  place-items: center;
}

.a11y {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 30;
  color: var(--purple);
  font-family: Arial, sans-serif;
  text-align: left;
}

.a11y button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--purple);
  border-radius: 8px;
  background: var(--white);
  color: var(--purple);
  cursor: pointer;
  font: 600 14px Arial, sans-serif;
}

.a11y button:focus-visible {
  outline-color: var(--purple);
}

.a11y-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.a11y-panel {
  width: 260px;
  max-width: calc(100vw - 32px);
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 8px 30px rgb(0 0 0 / 36%);
  color: var(--purple);
}

.a11y-panel[hidden] {
  display: none;
}

.a11y-panel h2 {
  margin: 0 0 10px;
  font: 700 18px Arial, sans-serif;
}

.a11y-panel button {
  display: block;
  width: 100%;
  margin: 5px 0;
  text-align: left;
}

.a11y-panel button[aria-pressed="true"] {
  background: var(--purple);
  color: var(--white);
}

.motion-paused::before,
.motion-paused::after,
.motion-paused .corner,
.motion-paused .river-segments,
.a11y-stop *,
.a11y-stop *::before,
.a11y-stop *::after {
  animation-play-state: paused !important;
}

.a11y-contrast .stage {
  background: #000 !important;
}

.a11y-contrast .stage::before,
.a11y-contrast .stage::after,
.a11y-contrast .river,
.a11y-contrast .reference-corners {
  visibility: hidden;
}

.a11y-contrast .content,
.a11y-contrast .note,
.a11y-contrast .count-label,
.a11y-contrast .unit small,
.a11y-contrast .realization {
  color: #fff !important;
}

.a11y-contrast .date,
.a11y-contrast .cta,
.a11y-contrast .ticker {
  color: #000 !important;
}

.a11y-large .content {
  width: min(100% - 32px, 740px);
  padding-top: 72px;
}

.a11y-large h1 {
  font-size: clamp(54px, 7vw, 84px);
}

.a11y-large .sub,
.a11y-large .venue {
  font-size: 26px;
}

.a11y-large .event-days {
  font-size: clamp(38px, 5vw, 56px);
}

.a11y-large .num {
  font-size: clamp(48px, 6vw, 80px);
}

.a11y-large .note,
.a11y-large .venue-full,
.a11y-large .count-label,
.a11y-large .unit small,
.a11y-large .realization {
  font-size: 16px;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes lightSweep {

  0%,
  100% {
    transform: translateX(-18%) rotate(-3deg);
    opacity: .18;
  }

  50% {
    transform: translateX(18%) rotate(3deg);
    opacity: .58;
  }
}

@keyframes riverCurrent {
  to {
    stroke-dashoffset: -1396;
  }
}

@keyframes cornerFloat {

  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }

  50% {
    transform: scale(1.045);
    filter: brightness(1.13);
  }
}

@media (max-width: 600px) {
  :root {
    --ticker-height: 40px;
  }

  .stage {
    min-height: calc(100svh - var(--ticker-height));
    background:
      radial-gradient(circle at 50% 38%, rgb(117 54 164 / 26%) 0 10%, transparent 38%),
      radial-gradient(ellipse at 50% 43%, var(--purple-light) 0, var(--purple) 66%, var(--purple-dark) 120%);
  }

  .stage::before,
  .stage::after {
    width: 84vw;
    opacity: .3;
  }

  .river {
    opacity: .33;
  }

  .corner-top {
    top: -5px;
    right: -5px;
    width: clamp(105px, 32vw, 145px);
    opacity: .86;
  }

  .corner-bottom {
    bottom: -5px;
    left: -5px;
    width: clamp(96px, 29vw, 128px);
    opacity: .86;
  }

  .content {
    width: min(100% - 40px, 350px);
    padding: 32px 0 38px;
  }

  .brand {
    width: 168px;
    max-height: 104px;
    margin-bottom: 10px;
  }

  .eyebrow {
    padding: 3px 12px 2px;
    font-size: 13px;
    line-height: 18px;
  }

  h1 {
    margin: 13px 0 5px;
    font-size: clamp(40px, 12.3vw, 48px);
    line-height: 1;
    letter-spacing: .01em;
  }

  .sub {
    margin-bottom: 18px;
    font-size: 22px;
    letter-spacing: .02em;
  }

  .date {
    width: min(100%, 320px);
    margin: 0 auto;
    padding: 10px 8px;
  }

  .event-days {
    font-size: 33px;
    line-height: 1.05;
  }

  .event-year {
    font-size: 24px;
  }

  .venue {
    margin-top: 3px;
    font-size: 18px;
  }

  .venue-full {
    font-size: 10px;
    line-height: 14px;
  }

  .count-label {
    margin: 20px 0 7px;
    font-size: 10px;
    line-height: 15px;
  }

  .clock {
    width: min(100%, 328px);
    gap: 8px;
  }

  .unit {
    padding: 7px 0 8px;
  }

  .num {
    font-size: clamp(39px, 12vw, 47px);
    line-height: 1.05;
  }

  .unit small {
    margin-top: 3px;
    font-size: 9px;
    line-height: 14px;
    letter-spacing: 0;
  }

  .cta {
    min-height: 48px;
    margin-top: 20px;
    padding: 11px 18px 9px;
    font-size: 21px;
    line-height: 25px;
    white-space: nowrap;
  }

  .cta svg {
    width: 20px;
    height: 20px;
  }

  .note {
    margin: 18px 0 10px;
    font-size: 11px;
    line-height: 16px;
  }

  .realization {
    font-size: 9px;
    line-height: 14px;
  }

  .realization img {
    width: 84px;
    max-height: 42px;
    margin-top: 3px;
  }

  .motion-toggle {
    right: 5px;
    bottom: 5px;
    min-height: 30px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .ticker-group {
    font-size: 14px;
  }

  .a11y {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }

  .a11y-trigger {
    width: 44px;
    padding: 6px !important;
    justify-content: center;
  }

  .a11y-trigger span {
    display: none;
  }

  .a11y-panel {
    width: 245px;
  }

  .a11y-large .content {
    width: min(100% - 32px, 420px);
    padding-top: 70px;
  }

  .a11y-large .clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a11y-large .cta {
    font-size: 22px;
    white-space: normal;
  }
}

@media (max-width: 370px) {
  .content {
    width: min(100% - 28px, 340px);
  }

  .brand {
    width: 148px;
  }

  h1 {
    font-size: 40px;
  }

  .sub {
    font-size: 20px;
  }

  .event-days {
    font-size: 30px;
  }

  .venue {
    font-size: 16px;
  }

  .num {
    font-size: 38px;
  }

  .cta {
    font-size: 19px;
  }
}

@media (max-height: 1000px) and (min-width: 601px) {
  .content {
    padding-block: 15px 20px;
  }

  .brand {
    width: 200px;
    max-height: 128px;
    margin-bottom: 8px;
  }

  .eyebrow {
    font-size: 14px;
  }

  h1 {
    margin-block: 12px 6px;
    font-size: clamp(44px, 5.2vw, 68px);
  }

  .sub {
    margin-bottom: 15px;
    font-size: clamp(22px, 2.7vw, 31px);
  }

  .date {
    padding-block: 11px 9px;
  }

  .event-days {
    font-size: clamp(30px, 4vw, 45px);
  }

  .event-year {
    font-size: 25px;
  }

  .venue {
    font-size: 19px;
  }

  .count-label {
    margin-top: 17px;
  }

  .unit {
    padding-block: 8px 9px;
  }

  .num {
    font-size: clamp(42px, 5.2vw, 66px);
  }

  .cta {
    min-height: 48px;
    margin-top: 19px;
    padding-block: 11px 9px;
    font-size: 22px;
  }

  .note {
    margin-block: 15px 7px;
  }

  .realization img {
    width: 92px;
    max-height: 47px;
    margin-top: 3px;
  }
}

@media (max-height: 820px) and (min-width: 601px) {
  .content {
    padding-block: 14px 20px;
  }

  .brand {
    width: 180px;
    max-height: 112px;
    margin-bottom: 8px;
  }

  .eyebrow {
    font-size: 13px;
  }

  h1 {
    margin-block: 10px 5px;
    font-size: 52px;
  }

  .sub {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .date {
    padding-block: 9px 8px;
  }

  .event-days {
    font-size: 36px;
  }

  .event-year {
    font-size: 22px;
  }

  .venue {
    font-size: 18px;
  }

  .count-label {
    margin-top: 14px;
  }

  .unit {
    padding-block: 6px 7px;
  }

  .num {
    font-size: 48px;
  }

  .cta {
    min-height: 44px;
    margin-top: 16px;
    padding-block: 9px 7px;
    font-size: 21px;
  }

  .note {
    margin-block: 14px 6px;
  }

  .realization img {
    width: 82px;
    max-height: 42px;
    margin-top: 2px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .ticker-track {
    animation: none;
  }
}
