/* =========================================================================
   EMOJIVERSE COIN — home page composition
   ========================================================================= */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 9vh, 7rem));
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__copy > * + * {
  margin-top: 1.6rem;
}

.hero__title {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
}

.hero__title span {
  display: block;
}

.hero__lede {
  max-width: 48ch;
}

.hero .metrics {
  margin-top: 2.6rem;
}

/* Load-in choreography */
.js .hero__stage > * {
  animation: rise 1s var(--ease) both;
}

.js .hero__stage > *:nth-child(1) { animation-delay: .05s; }
.js .hero__stage > *:nth-child(2) { animation-delay: .14s; }
.js .hero__stage > *:nth-child(3) { animation-delay: .23s; }
.js .hero__stage > *:nth-child(4) { animation-delay: .32s; }
.js .hero__stage > *:nth-child(5) { animation-delay: .41s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Coin instrument ---------- */
.instrument {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  padding-block: clamp(2.6rem, 6vw, 3.6rem);
  display: grid;
  place-items: center;
}

/* Typographic centrepiece, in place of the coin artwork */
.instrument__ticker {
  position: relative;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--gold-bright);
  text-shadow: 0 0 48px rgba(216, 166, 63, .28);
}

.instrument__label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.instrument__label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--line-strong);
}

.instrument__label--tl {
  top: 0;
  left: 0;
}

.instrument__label--br {
  bottom: 0;
  right: 0;
  flex-direction: row-reverse;
}

.instrument__label--br::before {
  background: var(--gold);
}

/* Specimen strip beneath the coin */
.specimen {
  display: flex;
  justify-content: center;
  gap: clamp(.7rem, 2vw, 1.4rem);
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.specimen li {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  opacity: .55;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.specimen li:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ---------- Two-column editorial split ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split--offset > :last-child {
  margin-top: clamp(0rem, 3vw, 2.5rem);
}

/* ---------- Origin timeline ---------- */
.timeline {
  display: grid;
  gap: 0;
  margin-top: 2.2rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: .95rem;
}

.timeline li:first-child {
  border-top: 1px solid var(--line);
}

.timeline .glyph {
  font-size: 1.4rem;
}

/* ---------- Principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.principles li {
  display: grid;
  gap: .8rem;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  background: var(--ink-900);
  transition: background-color .3s var(--ease);
}

.principles li:hover {
  background: var(--ink-800);
}

.principles__no {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.principles p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 34ch;
}

/* ---------- Reaction set ---------- */
.reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.reaction {
  position: relative;
  display: grid;
  gap: .55rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--ink-900);
  overflow: hidden;
  transition: background-color .35s var(--ease);
}

.reaction:hover {
  background: var(--ink-800);
}

.reaction__no {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .16em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.reaction .glyph {
  font-size: clamp(2rem, 4vw, 2.5rem);
  transition: transform .4s var(--ease);
}

.reaction:hover .glyph {
  transform: translateY(-3px) scale(1.05);
}

.reaction h3 {
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.reaction p {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--text-3);
}

.reaction::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.reaction:hover::after {
  transform: scaleX(1);
}

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

.phase {
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.phase--active {
  border-top-color: var(--gold);
}

.phase__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.phase--active .phase__meta {
  color: var(--gold);
}

.phase h3 {
  margin: 1rem 0 .7rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.phase p {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--text-3);
}

/* ---------- Call to action ---------- */
.cta {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding: clamp(2.2rem, 5vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(ellipse 70% 120% at 12% 0%, rgba(216, 166, 63, .1), transparent 62%),
    linear-gradient(160deg, rgba(233, 238, 246, .045), rgba(233, 238, 246, .01));
}

.cta__title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  max-width: 22ch;
}

.cta__body {
  max-width: 52ch;
}

.cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .instrument {
    width: min(100%, 340px);
  }

  .split,
  .principles,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .split--offset > :last-child {
    margin-top: 0;
  }

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

  .roadmap {
    gap: 0;
  }

  .phase {
    padding-bottom: 1.6rem;
  }
}

@media (max-width: 520px) {
  .reactions {
    grid-template-columns: 1fr;
  }

  .instrument__label {
    display: none;
  }
}
