/* Section 5 — The big statement, scrubbed by scroll, over a turning deck */

.statement {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding-block: clamp(88px, 12vh, 164px);
  overflow: hidden;
  text-align: center;
}

.statement__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.statement__phrase {
  max-width: 830px;
  color: var(--ink);
  font-size: clamp(1.7rem, 2.78vw, 2.5rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.statement__phrase .accent-green {
  color: var(--green);
}

.statement__chip {
  display: inline-grid;
  place-items: center;
  width: 1.08em;
  height: 1.08em;
  margin-inline: 0.14em;
  border-radius: 0.34em;
  color: #fff;
  vertical-align: -0.16em;
  box-shadow: 0 8px 16px -10px rgba(24, 24, 27, 0.65);
}

.statement__chip svg {
  width: 0.62em;
  height: 0.62em;
}

.statement__chip--blue {
  background: var(--electric);
}

.statement__chip--orange {
  background: var(--orange);
}

.statement__deck-wrap {
  position: relative;
  width: min(100%, 610px);
  height: clamp(210px, 23vw, 290px);
  margin-top: clamp(30px, 4.6vh, 54px);
}

.statement__deck {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.statement__card {
  --card-w: clamp(156px, 17.2vw, 248px);
  --dx: 0px;
  --dy: 0px;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--z, 1);
  width: var(--card-w);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r, 0deg));
}

.statement__card:nth-child(1) {
  --z: 10;
  --r: -2deg;
  --dy: -4px;
}

.statement__card:nth-child(2) {
  --z: 9;
  --r: -7deg;
  --dx: clamp(-66px, -4.6vw, -34px);
  --dy: 8px;
}

.statement__card:nth-child(3) {
  --z: 8;
  --r: 6deg;
  --dx: clamp(34px, 4.6vw, 66px);
  --dy: 12px;
}

.statement__card:nth-child(4) {
  --z: 7;
  --r: -9deg;
  --dx: clamp(-120px, -8.2vw, -56px);
  --dy: 24px;
}

.statement__card:nth-child(5) {
  --z: 6;
  --r: 8deg;
  --dx: clamp(56px, 8.2vw, 120px);
  --dy: 30px;
}

.statement__card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: clamp(13px, 1.3vw, 18px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  background: var(--card-bg, var(--lemon));
  color: var(--card-ink, var(--ink));
  text-align: left;
  box-shadow:
    0 2px 6px rgba(24, 24, 27, 0.08),
    0 30px 52px -32px rgba(24, 24, 27, 0.6);
  transform-origin: 50% 50%;
}

.statement__card-body::after {
  content: "";
  position: absolute;
  top: -46%;
  right: -32%;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.statement__card-body--lemon {
  --card-bg: var(--lemon);
  --card-ink: var(--ink);
}

.statement__card-body--blue {
  --card-bg: var(--electric);
  --card-ink: #fff;
}

.statement__card-body--orange {
  --card-bg: var(--orange);
  --card-ink: #1b0a03;
}

.statement__card-body--paper {
  --card-bg: var(--paper-raised);
  --card-ink: var(--ink);
  border-color: rgba(24, 24, 27, 0.08);
}

.statement__card-body--black {
  --card-bg: var(--black);
  --card-ink: #fafafa;
  border-color: rgba(255, 255, 255, 0.16);
}

.statement__card-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}

.statement__card-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.statement__card-title {
  position: relative;
  z-index: 1;
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.statement__card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.15;
  opacity: 0.72;
}

.statement__card-arrow {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: currentColor;
}

.statement__card-arrow svg {
  width: 8px;
  height: 8px;
  color: var(--lemon);
}

.statement__bubble {
  z-index: 30;
}

.statement__bubble--gold {
  top: -8px;
  left: 5%;
}

.statement__bubble--prequel {
  top: 6px;
  right: 5%;
}

.statement__icons {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: clamp(22px, 3.6vh, 36px);
}

.statement__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-raised);
  color: var(--ink-soft);
  box-shadow: 0 2px 5px rgba(24, 24, 27, 0.04), 0 14px 26px -20px rgba(24, 24, 27, 0.4);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease, color var(--dur-2) ease;
}

.statement__icon svg {
  width: 15px;
  height: 15px;
}

.statement__icon:hover {
  border-color: var(--faint);
  color: var(--ink);
  transform: translateY(-2px);
}

@media (max-width: 700px) {
  .statement {
    min-height: 0;
    padding-block: 96px;
  }

  .statement__phrase {
    font-size: clamp(1.5rem, 6.4vw, 1.9rem);
    max-width: 24ch;
  }

  .statement__phrase br {
    display: none;
  }

  .statement__deck-wrap {
    height: 214px;
    margin-top: 34px;
  }

  .statement__card {
    --card-w: clamp(148px, 41vw, 180px);
  }

  .statement__card:nth-child(2) {
    --dx: -40px;
    --dy: 7px;
  }

  .statement__card:nth-child(3) {
    --dx: 40px;
    --dy: 10px;
  }

  .statement__card:nth-child(4) {
    --dx: -68px;
    --dy: 20px;
  }

  .statement__card:nth-child(5) {
    --dx: 68px;
    --dy: 25px;
  }

  .statement__card-title {
    font-size: 15px;
  }

  .statement__card-kicker {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .statement__bubble--gold {
    left: 0;
  }

  .statement__bubble--prequel {
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .statement__deck {
    transform: none !important;
  }

  .statement__card-body {
    transform: none !important;
  }
}
