:root {
  --bg: #000;
  --panel: #0f0c06;
  --gold: #ffc61a;
  --gold-hi: #ffe98a;
  --gold-deep: #c97700;
  --cream: #fff3cf;
  --text: #f6efe0;
  --muted: #a89a78;
  --up: #3dff7a;
  --down: #ff5a4d;
  --line: rgba(255, 198, 26, 0.09);

  --display: "Bowlby One", Impact, "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

.gold {
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  width: max-content;
  padding: 9px 0;
  animation: marquee 45s linear infinite;
}

.tick {
  padding: 0 22px;
  letter-spacing: 0.06em;
}

.tick i {
  font-style: normal;
  margin-left: 6px;
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.flat {
  color: var(--gold);
}

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

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  max-width: 1200px;
  min-height: calc(100svh - 40px);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.hero__logo {
  order: 2;
  position: relative;
}

/* lets a long CA truncate instead of stretching the column */
.hero__copy {
  min-width: 0;
}

.hero__logo::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle, rgba(255, 198, 26, 0.28) 0%, rgba(255, 198, 26, 0) 65%);
  pointer-events: none;
}

.hero__logo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
  animation: float 6s ease-in-out infinite;
}

.hero__name {
  position: relative;
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.3vw, 2.6rem);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes float {
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.lede {
  margin-top: 22px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--cream);
}

/* ---------- Buttons ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta--center {
  justify-content: center;
  margin-top: 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #000;
  border: 3px solid var(--gold);
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--gold-deep);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold-deep);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--gold-deep);
}

.btn:focus-visible,
.ca:focus-visible,
.coin__ca:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, #f0a500);
  color: #000;
  padding-inline: 28px;
}

.btn small {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--gold);
  color: #000;
}

.btn--primary small {
  background: #000;
  color: var(--gold);
}

.btn.is-picked {
  background: var(--gold);
  color: #000;
}

/* ---------- CA ---------- */
.ca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin-top: 22px;
  padding: 10px 14px;
  background: rgba(255, 198, 26, 0.06);
  border: 2px dashed rgba(255, 198, 26, 0.55);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ca:hover {
  background: rgba(255, 198, 26, 0.14);
}

.ca__label {
  flex: none;
  color: var(--gold);
  font-weight: 700;
}

.ca__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca__copy {
  flex: none;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.ca.is-soon .ca__copy {
  display: none;
}

/* ---------- Sections ---------- */
main {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%;
  border-top: 2px solid var(--gold);
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.8rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 18px 28px;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow: 7px 7px 0 var(--gold-deep);
  transform: rotate(-1.5deg);
  color: var(--muted);
}

.step:nth-of-type(2) {
  transform: rotate(1.2deg);
}

.step:nth-of-type(3) {
  transform: rotate(-0.8deg);
}

.step__icon {
  font-size: 3.4rem;
  line-height: 1.1;
}

.step strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--gold);
}

.step__arrow {
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--gold);
}

/* ---------- Coins ---------- */
.coins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.coin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 14px 22px;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--gold-deep);
  overflow: hidden;
  transition: transform 0.15s ease;
}

.coin:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.coin__num {
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.coin__disc {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin-bottom: 16px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: radial-gradient(circle at 32% 28%, #5a4200, #140f02 70%);
  box-shadow: 0 0 28px rgba(255, 198, 26, 0.3);
  overflow: hidden;
  transition: transform 0.6s ease;
}

.coin:hover .coin__disc {
  transform: rotateY(360deg);
}

.coin__disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a.coin__disc {
  text-decoration: none;
}

a.coin__disc:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.coins__note {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.coin__disc span {
  font-family: var(--display);
  font-size: 3.2rem;
  color: var(--gold);
}

.coin__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.15;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.coin__ticker {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}

.coin__ca {
  margin-top: 12px;
  padding: 4px 10px;
  background: none;
  border: 2px dashed rgba(255, 198, 26, 0.55);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.coin__ca:disabled {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  cursor: default;
}

.coin__stamp {
  position: absolute;
  top: 104px;
  left: 50%;
  padding: 2px 10px;
  border: 3px solid var(--down);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--down);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-12deg);
  pointer-events: none;
}

/* ---------- Fact sheet ---------- */
.sheet {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 34px 96px;
  background: var(--cream);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(0, 0, 0, 0.05) 31px 32px);
  border-radius: 6px;
  box-shadow: 10px 10px 0 var(--gold-deep);
  color: #14110a;
  font-family: var(--mono);
  text-align: left;
  transform: rotate(-1.4deg);
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 3px solid #14110a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 2px dotted rgba(0, 0, 0, 0.3);
}

.row dt {
  font-size: 0.9rem;
}

.row dd {
  font-weight: 700;
  font-size: 1.05rem;
  text-align: right;
}

.stamp {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 6px 12px;
  border: 4px solid #d22a1e;
  border-radius: 8px;
  color: #d22a1e;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-11deg);
  opacity: 0.82;
}

/* ---------- Bell curve ---------- */
.curve {
  --bell-h: clamp(120px, 24vw, 210px);
  max-width: 820px;
  margin: 0 auto;
}

.curve__stage {
  position: relative;
}

.curve__bell {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--bell-h);
}

.curve__cast,
.curve__axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
}

.curve__cast {
  position: relative;
}

.char {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.char img {
  display: block;
  width: clamp(92px, 19vw, 158px);
  height: auto;
}

.char .char__coin {
  width: clamp(84px, 17vw, 138px);
  margin-bottom: 8px;
  border: 4px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 198, 26, 0.3);
}

/* the midwit floats above the peak, the two coins sit on the tails */
.char--mid {
  padding-bottom: calc(var(--bell-h) + 4px);
}

.bubble {
  position: relative;
  justify-self: center;
  max-width: 190px;
  margin-bottom: 18px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: 14px;
  color: #14110a;
  font-weight: 700;
  font-size: clamp(0.78rem, 1.9vw, 1rem);
  line-height: 1.25;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.bubble--mid {
  background: #fff;
  font-weight: 500;
}

.curve__axis {
  padding-top: 12px;
  border-top: 3px solid var(--gold);
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--gold);
}

/* ---------- Quiz ---------- */
.quiz {
  max-width: 720px;
  margin: 0 auto;
  padding: 34px 26px 38px;
  background: var(--panel);
  border: 3px solid var(--gold);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--gold-deep);
}

.quiz__q {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 500;
  color: var(--cream);
}

.quiz__answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.quiz__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
}

.quiz__result[hidden] {
  display: none;
}

.quiz__iq {
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.quiz__iq b {
  font-weight: 400;
}

.quiz__verdict {
  margin-top: 10px;
  font-family: var(--mono);
  color: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  padding: 72px 24px 48px;
  border-top: 2px solid var(--gold);
  text-align: center;
}

.disclaimer {
  max-width: 680px;
  margin: 44px auto 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.copyright {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #6f6650;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  background: var(--gold);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--gold-deep);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding: 16px 20px 56px;
    text-align: center;
  }

  .hero__logo {
    order: 0;
    width: min(340px, 78vw);
    margin: 0 auto;
  }

  .hero__name {
    margin-bottom: 18px;
    font-size: clamp(1.2rem, 6vw, 1.9rem);
  }

  .cta {
    justify-content: center;
  }

  .section {
    padding: 72px 20px;
  }

  h2 {
    margin-bottom: 36px;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
    gap: 10px;
  }

  .step__arrow {
    transform: rotate(90deg);
  }

  .coins {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* keeps a long word like INTELLIGENCE on one line in the narrow cards */
  .coin__name {
    font-size: clamp(0.75rem, 3.7vw, 1.15rem);
  }

  .sheet {
    padding: 24px 20px 92px;
  }
}

@media (max-width: 420px) {
  .btn {
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .btn--primary {
    padding-inline: 26px;
  }

  .coin__disc {
    width: 88px;
    height: 88px;
  }

  .coin__stamp {
    top: 86px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker__track,
  .hero__logo img {
    animation: none;
  }

  .btn,
  .coin,
  .coin__disc {
    transition: none;
  }
}
