:root {
  --aqua: #00dfe6;
  --aqua-soft: #72fbff;
  --aqua-pale: #d7ffff;
  --mud: #6b3518;
  --mud-dark: #2c150b;
  --mud-gloss: #a85b2c;
  --ink: #090909;
  --charcoal: #17130f;
  --cream: #fff8e8;
  --white: #ffffff;
  --lime: #b9ff2d;
  --shadow: 0 28px 84px rgba(44, 21, 11, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 16%, rgba(107, 53, 24, 0.23), transparent 24%),
    radial-gradient(circle at 84% 22%, rgba(0, 223, 230, 0.3), transparent 30%),
    linear-gradient(135deg, #00cbd2 0%, #79fbff 48%, #fff8e8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg, rgba(44, 21, 11, 0.08) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 18px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(215, 255, 255, 0.86);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--aqua);
  box-shadow: 5px 5px 0 var(--mud);
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 8px;
  height: 8px;
  background: var(--charcoal);
  transform: skewX(-28deg);
}

.brand-mark::before {
  top: 11px;
}

.brand-mark::after {
  top: 23px;
}

.brand-mark span {
  position: absolute;
  width: 18px;
  height: 18px;
  right: -4px;
  top: -3px;
  border-radius: 50%;
  background: var(--mud-gloss);
  box-shadow: -8px 18px 0 var(--mud), -28px 31px 0 var(--mud-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.nav button,
.sludge-button {
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav button:hover,
.sludge-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  background: var(--lime);
}

.hero {
  --slosh-x: 0px;
  --slosh-y: 0px;
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  padding: clamp(34px, 6vw, 84px) clamp(18px, 5vw, 72px) clamp(34px, 5vw, 66px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px clamp(8px, 2vw, 24px);
  z-index: -2;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.48), transparent 34%),
    repeating-linear-gradient(90deg, rgba(44, 21, 11, 0.12) 0 10px, transparent 10px 24px),
    var(--aqua);
  box-shadow: 16px 16px 0 rgba(44, 21, 11, 0.32);
}

.hero::after {
  content: "";
  position: absolute;
  left: -12vw;
  right: -12vw;
  bottom: -80px;
  z-index: -1;
  height: 210px;
  background:
    radial-gradient(circle at 10% 20%, var(--mud-gloss) 0 18px, transparent 19px),
    radial-gradient(circle at 35% 65%, var(--mud-dark) 0 28px, transparent 29px),
    radial-gradient(circle at 70% 38%, var(--mud) 0 24px, transparent 25px),
    linear-gradient(180deg, var(--mud-gloss), var(--mud-dark));
  filter: saturate(1.2);
  transform: rotate(-2deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 13px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--aqua-soft);
  font-size: 0.84rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 5px 5px 0 var(--mud);
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 10.8vw, 9.4rem);
  line-height: 0.84;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow:
    4px 4px 0 var(--ink),
    8px 8px 0 var(--mud),
    13px 13px 0 var(--aqua-soft);
}

.ticker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.ticker-chip {
  display: inline-flex;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--mud-dark);
  color: var(--aqua-soft);
  font-weight: 950;
  box-shadow: 6px 6px 0 var(--mud-gloss);
}

.small-note {
  max-width: 300px;
  color: rgba(9, 9, 9, 0.74);
  font-weight: 800;
  line-height: 1.38;
}

.description-card {
  max-width: 680px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.92), rgba(215, 255, 255, 0.78)),
    var(--cream);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 12px 12px 0 rgba(9, 9, 9, 0.9), var(--shadow);
}

.description-card p {
  margin: 0;
  color: #211208;
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.52;
  font-weight: 830;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--aqua-soft);
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--mud);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.social-links a:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--mud);
  background: var(--mud-dark);
}

.sludge-button.primary {
  background: var(--mud);
  color: var(--cream);
}

.art-stage {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}

.spill-plate {
  position: absolute;
  width: min(84vw, 650px);
  height: min(78vw, 590px);
  border: 4px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, var(--mud-gloss) 0 22px, transparent 23px),
    radial-gradient(circle at 76% 22%, var(--mud) 0 30px, transparent 31px),
    radial-gradient(circle at 58% 78%, var(--mud-dark) 0 26px, transparent 27px),
    var(--aqua-soft);
  clip-path: polygon(7% 4%, 96% 12%, 86% 94%, 0 82%);
  transform: translate(var(--slosh-x), var(--slosh-y)) rotate(2deg);
  box-shadow: var(--shadow);
  transition: transform 180ms ease;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  width: min(86vw, 520px);
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  padding: 10px;
  box-shadow: -16px 16px 0 var(--mud), 16px -16px 0 var(--aqua-soft);
  transform: rotate(-1.5deg);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: cover;
}

.mess-badge {
  position: absolute;
  right: -18px;
  bottom: 32px;
  z-index: 4;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 8px 8px 0 var(--mud);
  transform: rotate(9deg);
}

.banner-section {
  padding: 18px clamp(14px, 4vw, 46px) 44px;
  background: linear-gradient(180deg, rgba(44, 21, 11, 0.16), rgba(44, 21, 11, 0.28));
}

.banner-frame {
  position: relative;
  border: 5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--aqua);
  box-shadow: var(--shadow);
}

.banner-frame img {
  width: 100%;
  min-height: 300px;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.banner-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: min(640px, calc(100% - 36px));
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.92);
  padding: 14px 16px;
  font-weight: 850;
  line-height: 1.42;
  box-shadow: 7px 7px 0 var(--mud);
}

.ticker-tape {
  overflow: hidden;
  border-block: 4px solid var(--ink);
  background: var(--mud-dark);
  color: var(--cream);
}

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

.ticker-track span {
  padding: 14px 24px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-track span:nth-child(odd) {
  color: var(--aqua-soft);
}

.content-band {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.lab-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--mud-dark);
  font-size: 0.98rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-list {
  display: grid;
  gap: 14px;
}

.lab-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  align-items: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.92);
  padding: 16px;
  box-shadow: 8px 8px 0 rgba(9, 9, 9, 0.9);
}

.lab-number {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--aqua);
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 950;
  box-shadow: 5px 5px 0 var(--mud);
}

.lab-card h3 {
  margin: 0 0 6px;
  font-size: 1.16rem;
  text-transform: uppercase;
}

.lab-card p {
  margin: 0;
  color: rgba(9, 9, 9, 0.72);
  font-weight: 740;
  line-height: 1.46;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 46px;
}

.token-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  padding: 18px;
  box-shadow: 8px 8px 0 rgba(9, 9, 9, 0.9);
}

.token-card:nth-child(2) {
  background: var(--mud-dark);
  color: var(--aqua-soft);
  box-shadow: 8px 8px 0 var(--mud);
}

.token-card span {
  font-weight: 900;
  text-transform: uppercase;
}

.token-card strong {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.finale {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 0 clamp(18px, 5vw, 72px) clamp(28px, 6vw, 58px);
  border: 5px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(112deg, rgba(9, 9, 9, 0.86), rgba(107, 53, 24, 0.62), rgba(0, 223, 230, 0.3)),
    url("./assets/bip-banner.png") center / cover;
  color: var(--cream);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.finale h2 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.finale p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 248, 232, 0.86);
  font-weight: 760;
  line-height: 1.5;
}

.finale-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.footer {
  padding: 22px clamp(18px, 5vw, 72px) 34px;
  color: rgba(9, 9, 9, 0.72);
  font-weight: 820;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 1020px) {
  .hero,
  .lab-grid,
  .finale {
    grid-template-columns: 1fr;
  }

  .art-stage {
    min-height: 470px;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a,
  .nav button,
  .sludge-button {
    padding: 9px 10px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 19vw, 5.8rem);
    text-shadow:
      3px 3px 0 var(--ink),
      6px 6px 0 var(--mud),
      9px 9px 0 var(--aqua-soft);
  }

  .finale-actions {
    justify-content: flex-start;
  }

  .art-stage {
    min-height: 390px;
  }

  .portrait-frame {
    width: min(86vw, 390px);
    box-shadow: -9px 9px 0 var(--mud), 9px -9px 0 var(--aqua-soft);
  }

  .mess-badge {
    width: 106px;
    height: 106px;
    right: -4px;
    bottom: 12px;
    font-size: 0.78rem;
  }

  .banner-caption {
    position: static;
    max-width: none;
    border-radius: 0;
    border-width: 4px 0 0;
    box-shadow: none;
  }

  .lab-card {
    grid-template-columns: 1fr;
  }
}
