:root {
  --ink: #06091d;
  --navy: #07103a;
  --blue: #1f64ff;
  --ice: #9ed4ff;
  --white: #f5f4ef;
  --silver: #bdc8d4;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; background: var(--ink) }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button, a { font: inherit }
button { color: inherit }
a { color: inherit }

.grain {
  position: fixed;
  inset: -80px;
  z-index: 99;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: grain .24s steps(2) infinite;
}

.topbar {
  position: fixed;
  z-index: 80;
  top: 14px;
  left: 18px;
  right: 18px;
  min-height: 62px;
  display: flex;
  align-items: stretch;
  border: 3px solid #a9c9e6;
  border-radius: 14px;
  background: rgba(5, 9, 31, .88);
  box-shadow: 0 10px 0 #02040f, 0 0 38px rgba(45, 109, 255, .24);
  backdrop-filter: blur(12px);
}
.brand {
  min-width: 205px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px;
  text-decoration: none;
}
.brand span { font: 900 21px/.9 Arial Black, Arial, sans-serif; letter-spacing: -.04em }
.brand b { margin-top: 4px; color: var(--ice); font: 900 12px/1 Arial, sans-serif; letter-spacing: .18em }
.topbar nav { display: flex; margin-left: auto }
.topbar nav a, .topbar nav button {
  display: grid;
  place-items: center;
  min-width: 125px;
  padding: 0 15px;
  border: 0;
  border-left: 2px solid #506b91;
  color: var(--white);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  font: 900 11px/1 Arial, sans-serif;
  letter-spacing: .05em;
}
.topbar nav a:hover, .topbar nav button:hover { color: var(--ink); background: var(--ice) }

.hero {
  position: relative;
  min-height: 950px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 77% 44%, rgba(82, 125, 255, .22), transparent 24%),
    radial-gradient(circle at 18% 20%, rgba(15, 41, 130, .7), transparent 42%),
    linear-gradient(120deg, #030513, var(--navy) 58%, #02040e);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: -12%;
  right: -12%;
  bottom: -190px;
  height: 470px;
  opacity: .42;
  background-image:
    linear-gradient(rgba(121, 173, 255, .45) 2px, transparent 2px),
    linear-gradient(90deg, rgba(121, 173, 255, .45) 2px, transparent 2px);
  background-size: 82px 82px;
  transform: perspective(360px) rotateX(58deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, black 38%);
}
.beam { position: absolute; z-index: -1; top: -60px; width: 290px; height: 780px; opacity: .18; filter: blur(10px); clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%) }
.beam-a { left: 8%; background: linear-gradient(var(--blue), transparent); transform: rotate(-14deg) }
.beam-b { right: 11%; background: linear-gradient(#b5d8ff, transparent); transform: rotate(13deg) }
.spark-field i { position: absolute; width: 5px; height: 5px; background: white; box-shadow: 0 0 14px 4px #9fd5ff; animation: twinkle 1.2s steps(2) infinite }
.spark-field i::before, .spark-field i::after { content: ""; position: absolute; left: 50%; top: 50%; background: white; transform: translate(-50%, -50%) }
.spark-field i::before { width: 33px; height: 1px }
.spark-field i::after { width: 1px; height: 33px }
.spark-field i:nth-child(1) { left: 45%; top: 14% }
.spark-field i:nth-child(2) { left: 90%; top: 25%; animation-delay: .3s }
.spark-field i:nth-child(3) { left: 54%; top: 66%; animation-delay: .7s }
.spark-field i:nth-child(4) { left: 8%; top: 72%; animation-delay: .1s }
.spark-field i:nth-child(5) { left: 36%; top: 39%; animation-delay: .5s }
.spark-field i:nth-child(6) { left: 84%; top: 80%; animation-delay: .9s }

.hero-copy {
  position: absolute;
  z-index: 20;
  top: 170px;
  left: 6%;
  width: 49%;
}
.eyebrow, .section-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 2px solid var(--ice);
  color: var(--ice);
  background: #05091f;
  font: 900 10px/1 Arial, sans-serif;
  letter-spacing: .15em;
}
.hero h1 { margin: 0; font: 900 clamp(115px, 13vw, 210px)/.68 Arial Black, Arial, sans-serif; letter-spacing: -.09em; text-shadow: 10px 10px 0 #01020a }
.hero h1 span, .hero h1 strong { display: block }
.hero h1 strong { color: var(--silver); -webkit-text-stroke: 3px #f5f7ff; text-shadow: 8px 8px 0 #060919, 0 0 28px rgba(141, 198, 255, .4) }
.ticker { width: max-content; margin: 36px 0 28px; padding: 11px 21px; border: 4px solid var(--ice); border-radius: 12px; color: var(--ice); background: #05091f; box-shadow: 8px 8px 0 #01020a; font: 900 44px/.9 Arial Black, Arial, sans-serif; letter-spacing: .06em; transform: rotate(-2deg) }
.hero-actions { display: flex; gap: 10px; margin-top: 34px }
.hero-actions a, .hero-actions button, .final-actions a, .final-actions button {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 14px 23px;
  border: 4px solid var(--white);
  color: var(--white);
  background: #081241;
  box-shadow: 7px 7px 0 #00030d;
  text-decoration: none;
  cursor: pointer;
  font: 900 14px/1 Arial Black, Arial, sans-serif;
}
.hero-actions .primary { color: var(--ink); background: var(--ice) }
.hero-actions a:hover, .hero-actions button:hover, .final-actions a:hover, .final-actions button:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #00030d }

.swing-rig {
  position: absolute;
  z-index: 12;
  top: -6px;
  right: 1.5%;
  width: min(52vw, 760px);
  height: 910px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 50% 0;
  animation: swing 4.2s ease-in-out infinite alternate;
}
.swing-rig img { position: absolute; top: 90px; left: 50%; width: 92%; max-height: 800px; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(20px 28px 16px rgba(0, 0, 0, .68)) }
.ceiling-hook { position: absolute; z-index: 3; top: 0; left: calc(50% - 20px); width: 40px; height: 31px; border: 7px solid #aab5c1; border-top: 0; border-radius: 0 0 19px 19px; box-shadow: 3px 3px 0 #02040d }
.chain { position: absolute; z-index: 2; top: 27px; left: calc(50% - 7px); width: 14px; height: 88px; background: repeating-linear-gradient(to bottom, #d9e2e8 0 7px, #46515e 8px 14px); box-shadow: 3px 0 0 #02040d }
.swing-rig.wild { animation: wild-swing 1.25s cubic-bezier(.2,.7,.1,1) }
.swing-label { position: absolute; z-index: 30; right: 8%; bottom: 48px; margin: 0; color: var(--ice); font: 900 11px/1 Arial, sans-serif; letter-spacing: .15em; transform: rotate(2deg) }

.origin { position: relative; min-height: 900px; overflow: hidden; padding: 150px 7% 120px; background: linear-gradient(128deg, #f2f3f0 0 59%, #b7c7d6 59%); color: #080d25 }
.origin::before { content: "$BALLS"; position: absolute; right: -55px; top: 20px; color: rgba(7, 16, 58, .08); font: 900 210px/.8 Arial Black, Arial, sans-serif; transform: rotate(90deg); transform-origin: center }
.origin-copy { position: relative; z-index: 3; width: min(760px, 65%) }
.origin .section-tag { color: #07103a; background: var(--ice); border-color: #07103a }
.origin h2, .post-stage h2, .finale h2 { margin: 0; font: 900 clamp(75px, 9vw, 145px)/.78 Arial Black, Arial, sans-serif; letter-spacing: -.07em }
.origin h2 em, .finale h2 em { color: #2155d8; font-style: normal }
.origin-copy > p { max-width: 720px; margin: 34px 0 0; font: 700 clamp(18px, 2vw, 27px)/1.15 Arial, sans-serif }
.origin-copy > p + p { margin-top: 20px }
.origin-copy strong { color: #184bc7 }
.post-jump { display: inline-block; margin-top: 38px; padding-bottom: 5px; border-bottom: 4px solid #0a1232; text-decoration: none; font: 900 13px/1 Arial, sans-serif; letter-spacing: .1em }
.post-stage { position: relative; min-height: 1050px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 6%; align-items: center; padding: 120px 7%; overflow: hidden; background: radial-gradient(circle at 76% 44%, #10276d, transparent 33%), linear-gradient(115deg, #02040e, #07103a 60%, #030617) }
.post-stage::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(#9ed4ff 1px, transparent 1px), linear-gradient(90deg, #9ed4ff 1px, transparent 1px); background-size: 46px 46px }
.post-heading, .post-embed-shell { position: relative; z-index: 4 }
.post-heading h2 { color: var(--white); font-size: clamp(68px, 7.8vw, 124px) }
.post-heading > p:last-child { max-width: 520px; margin-top: 30px; color: #bcd0e8; font: 700 clamp(18px, 2vw, 25px)/1.16 Arial, sans-serif }
.post-embed-shell { width: min(100%, 590px); min-height: 650px; display: grid; place-items: center; justify-self: center; padding: 18px; border: 6px solid #9ed4ff; border-radius: 28px; background: #05091c; box-shadow: 20px 22px 0 #00020c; transform: rotate(1deg) }
.twitter-tweet { width: 100%; margin: 0; padding: 22px; border: 1px solid #52637b; border-radius: 18px; color: #eef5ff; background: #0a0f1c; font: 700 21px/1.3 Arial, sans-serif }
.twitter-tweet p { margin: 0 0 16px }
.twitter-tweet img { display: block; width: 100%; max-height: 520px; object-fit: cover; object-position: center; border-radius: 12px }
.twitter-tweet a { display: inline-block; margin-top: 14px; color: #77b9ff; font-size: 14px }
.twitter-tweet-rendered { margin-inline: auto !important }

.finale { position: relative; min-height: 760px; display: grid; place-content: center; padding: 110px 5% 150px; overflow: hidden; text-align: center; background: radial-gradient(circle, #173d9c, #07103a 45%, #01030b 78%) }
.finale::before { content: ""; position: absolute; inset: -20%; opacity: .22; background: conic-gradient(from 0deg at 50% 0%, transparent 0 10deg, #9ed4ff 11deg 13deg, transparent 14deg 35deg, #427dff 36deg 39deg, transparent 40deg 100%); animation: rotate-lights 18s linear infinite }
.finale > * { position: relative; z-index: 2 }
.finale h2 { font-size: clamp(75px, 10vw, 160px); text-shadow: 8px 8px 0 #01020b }
.finale h2 em { color: var(--ice) }
.final-actions { display: flex; justify-content: center; gap: 9px; margin-top: 45px }
.final-actions a, .final-actions button { min-width: 150px }

.toast { position: fixed; z-index: 120; left: 50%; bottom: -110px; padding: 14px 22px; border: 4px solid #07103a; color: #07103a; background: var(--ice); box-shadow: 7px 8px 0 #000; transform: translateX(-50%); transition: bottom .22s; font: 900 13px/1 Arial, sans-serif }
.toast.show { bottom: 26px }

@keyframes grain { 0% { transform: translate(0) } 25% { transform: translate(2%, -1%) } 50% { transform: translate(-1%, 2%) } 75% { transform: translate(1%, 1%) } 100% { transform: translate(-2%, -1%) } }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.55) } }
@keyframes swing { from { transform: rotate(-4.2deg) } to { transform: rotate(4.2deg) } }
@keyframes wild-swing { 0% { transform: rotate(0) } 23% { transform: rotate(-13deg) } 55% { transform: rotate(12deg) } 76% { transform: rotate(-7deg) } 100% { transform: rotate(0) } }
@keyframes rotate-lights { to { transform: rotate(360deg) } }

@media (max-width: 980px) {
  .topbar nav a, .topbar nav button { min-width: 92px; padding-inline: 9px; font-size: 9px }
  .hero-copy { left: 4%; width: 55% }
  .swing-rig { right: -8%; width: 60vw }
  .hero h1 { font-size: 15vw }
  .origin-copy { width: 68% }
  .post-stage { grid-template-columns: 1fr; gap: 65px }
  .post-heading { text-align: center }
  .post-heading > p:last-child { margin-inline: auto }
}

@media (max-width: 680px) {
  .topbar { top: auto; left: 0; right: 0; bottom: 0; min-height: 60px; border-width: 3px 0 0; border-radius: 0 }
  .brand { display: none }
  .topbar nav { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr) }
  .topbar nav a, .topbar nav button { min-width: 0; padding: 4px; border-left: 0; border-right: 1px solid #506b91; font-size: 8px }
  .hero { min-height: 1160px }
  .hero-copy { top: 95px; left: 14px; right: 14px; width: auto }
  .hero h1 { font-size: 26vw }
  .ticker { margin-top: 25px; font-size: 34px }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr }
  .hero-actions a, .hero-actions button { min-height: 52px; padding: 10px 7px; font-size: 11px }
  .swing-rig { top: 500px; left: 50%; right: auto; width: 640px; max-width: 138vw; height: 620px; transform: translateX(-50%); transform-origin: 50% 0; animation-name: mobile-swing }
  .swing-rig img { top: 65px; max-height: 550px }
  .ceiling-hook { top: 0 }.chain { height: 64px }
  .swing-label { right: 16px; bottom: 28px }
  .origin { min-height: 1050px; padding: 90px 18px 120px; background: linear-gradient(160deg, #f2f3f0 0 72%, #b7c7d6 72%) }
  .origin-copy { width: 100% }
  .origin h2, .post-stage h2, .finale h2 { font-size: 20vw }
  .origin-copy > p { font-size: 18px }
  .post-stage { min-height: 1220px; padding: 90px 14px 110px }
  .post-embed-shell { min-height: 0; padding: 8px; border-width: 4px; border-radius: 19px; transform: none }
  .twitter-tweet { padding: 12px; font-size: 17px }
  .finale { min-height: 900px; padding: 100px 14px 150px }
  .final-actions { display: grid; grid-template-columns: 1fr 1fr }
  .final-actions a, .final-actions button { min-width: 0; padding-inline: 7px; font-size: 10px }
  .toast.show { bottom: 78px }
}

@keyframes mobile-swing { from { transform: translateX(-50%) rotate(-3.5deg) } to { transform: translateX(-50%) rotate(3.5deg) } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important }
}
