/* ==========================================================================
   Page sections, in page order
   ========================================================================== */

/* Tier accent colours (text-safe versions of the Crate metals) */
[data-t="copper"],   [data-track="copper"],   [data-tier-card="copper"],   .lab[data-tier="copper"]   { --t: #ee8a52; }
[data-t="bronze"],   [data-track="bronze"],   [data-tier-card="bronze"],   .lab[data-tier="bronze"]   { --t: #d9a35e; }
[data-t="silver"],   [data-track="silver"],   [data-tier-card="silver"],   .lab[data-tier="silver"]   { --t: #dde5ef; }
[data-t="gold"],     [data-track="gold"],     [data-tier-card="gold"],     .lab[data-tier="gold"]     { --t: #ffc21a; }
[data-t="platinum"], [data-track="platinum"], [data-tier-card="platinum"], .lab[data-tier="platinum"] { --t: #eef2ff; }

.accent-red {
  color: var(--cape-500);
}

/* Shared night-sky pieces ------------------------------------------------ */

.stars {
  position: absolute;
  inset: -4%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  opacity: var(--o, 0.6);
  animation: twinkle var(--tw, 4s) ease-in-out infinite;
  animation-delay: var(--dl, 0s);
}

.star--big {
  background: var(--volt-200);
  box-shadow: 0 0 8px 1px rgba(255, 226, 122, 0.8);
}

@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.6); }
  50% { opacity: 0.15; }
}

.halftone {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 244, 224, 0.1) 1.2px, transparent 1.7px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(60% 55% at 72% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 72% 45%, #000 10%, transparent 75%);
}

.skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 20vh, 200px);
  z-index: -1;
  pointer-events: none;
}

.skyline svg {
  width: 100%;
  height: 100%;
}

.skyline .bld-far { fill: #0f1f52; }
.skyline .bld-near { fill: var(--night-950); }
.skyline .win { fill: var(--volt-300); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(55% 55% at 76% 40%, rgba(59, 67, 130, 0.8), transparent 72%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 45%, var(--night-700) 80%, #1c2f6c 100%);
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__haze {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(224, 35, 46, 0.12));
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "title visual"
    "body visual";
  grid-template-rows: 1fr 1fr;
  column-gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding-block: clamp(0.75rem, 2.5vh, 2rem) clamp(1.5rem, 4vh, 3rem);
}

.hero__title {
  grid-area: title;
  align-self: end;
}

.hero__body {
  grid-area: body;
  align-self: start;
  padding-top: clamp(1rem, 2.6vh, 1.75rem);
}

.hero__h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(0.8rem, 2vh, 1.4rem);
  font-size: clamp(3.4rem, min(8vw, 12vh), 8.4rem);
  font-style: italic;
  line-height: 0.84;
}

.hero__ticker {
  display: inline-block;
  margin-bottom: 0.16em;
  padding: 0.1em 0.24em 0.02em 0.2em;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--volt-300), var(--volt-500));
  color: var(--ink);
  font-size: 0.5em;
  line-height: 0.95;
  box-shadow: var(--pop);
  transform: rotate(-3deg);
}

.hero__word {
  display: block;
  color: var(--cream-50);
  text-shadow:
    0.035em 0.035em 0 var(--cape-500),
    0.07em 0.07em 0 var(--ink);
}

.hero__word--2 {
  color: var(--volt-400);
  padding-left: 0.28em;
}

.hero__lede {
  max-width: 35rem;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 244, 224, 0.86);
}

.hero__lede strong {
  color: var(--cream-50);
}

.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: clamp(1rem, 2.4vh, 1.5rem);
}

.formula__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.75rem 0.38rem 0.55rem;
  border: 2px solid rgba(255, 244, 224, 0.22);
  border-radius: 999px;
  background: rgba(8, 21, 54, 0.6);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.formula__item svg {
  width: 20px;
  height: 20px;
  color: var(--volt-400);
}

.formula__item--result {
  border-color: var(--ink);
  background: var(--cape-500);
  box-shadow: var(--pop-sm);
}

.formula__item--result svg {
  color: var(--cream-50);
}

.formula__op {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--volt-400);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: clamp(1.2rem, 3vh, 2rem);
}

.hero__note {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 244, 224, 0.6);
}

/* Visual ---------------------------------------------------------------- */

.hero__visual {
  grid-area: visual;
  position: relative;
  justify-self: center;
  width: min(100%, 72vh, 740px);
  aspect-ratio: 1;
  perspective: 1000px;
}

.hero__glow {
  position: absolute;
  left: 20%;
  top: 2%;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 210, 63, 0.45), rgba(234, 163, 95, 0.18) 38%, transparent 68%);
  pointer-events: none;
}

.hero__ring {
  position: absolute;
  left: 9%;
  top: -7%;
  width: 98%;
  overflow: visible;
  pointer-events: none;
}

.hero__ring-ticks,
.hero__ring-line,
.hero__ring-text {
  transform-box: view-box;
  transform-origin: 200px 200px;
}

.hero__ring-ticks {
  fill: none;
  stroke: rgba(255, 244, 224, 0.28);
  stroke-width: 7;
  stroke-dasharray: 1.5 9;
  animation: spin 90s linear infinite reverse;
}

.hero__ring-line {
  fill: none;
  stroke: rgba(255, 210, 63, 0.3);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.hero__ring-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12.5px;
  fill: rgba(255, 244, 224, 0.62);
  animation: spin 70s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out);
}

.hero__inu {
  position: absolute;
  left: 16%;
  top: 0;
  width: 84%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 46%;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Super Inu artwork dissolving into the night sky (hero + final CTA) */
.hero__inu img,
.final__art img {
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0, #000 5%),
    radial-gradient(54% 62% at 50% 40%, #000 64%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0, #000 5%),
    radial-gradient(54% 62% at 50% 40%, #000 64%, transparent 100%);
  mask-composite: intersect;
}

.hero__inu img {
  width: 100%;
  height: 100%;
  transition: transform 0.35s var(--ease-spring);
}

.hero__inu:active img,
.hero__inu.is-booped img {
  transform: scale(0.97) translateY(4px);
}

.hero__inu:focus-visible {
  outline-offset: -12px;
}

.hero__beams {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
}

.beam-group {
  opacity: 0;
}

.hero__visual.is-scanning .beam-group {
  animation: beam 1.8s ease-in-out;
}

@keyframes beam {
  0% { opacity: 0; }
  14%, 80% { opacity: 0.9; }
  86% { opacity: 0.4; }
  100% { opacity: 0; }
}

.hero__crate {
  position: absolute;
  left: 0;
  top: 55%;
  width: 40%;
  z-index: 2;
  filter: drop-shadow(0 18px 24px rgba(5, 11, 34, 0.55));
}

.scan-tag {
  position: absolute;
  left: 3%;
  top: 51%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.6rem;
  border: 2px solid var(--volt-400);
  border-radius: 8px;
  background: rgba(5, 11, 34, 0.85);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 0.9vw, 0.74rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-100);
  white-space: nowrap;
  transform: rotate(-3deg);
}

.scan-tag b {
  color: var(--volt-400);
}

.scan-tag__dot,
.scan-report__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cape-400);
  box-shadow: 0 0 0 3px rgba(255, 59, 69, 0.25);
  animation: blink 1.4s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

.hero__boop {
  position: absolute;
  top: 4%;
  right: -2%;
  z-index: 4;
  max-width: 220px;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease-spring);
  pointer-events: none;
}

.hero__boop.is-visible {
  opacity: 1;
  transform: none;
}

.hero__boop:empty {
  display: none;
}

.hero .marquee {
  margin-bottom: 18px;
}

/* Hero: laptop heights -------------------------------------------------- */

@media (min-width: 901px) and (max-height: 760px) {
  .hero__lede {
    font-size: 1rem;
  }

  .formula {
    margin-top: 0.8rem;
  }

  .formula__item {
    font-size: 0.95rem;
    padding-block: 0.28rem;
  }

  .hero__ctas {
    margin-top: 1rem;
  }

  .hero__note {
    margin-top: 0.6rem;
  }

  .hero .marquee__item {
    padding-block: 0.4rem;
  }
}

/* Hero: tablet and mobile ----------------------------------------------- */

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "title"
      "visual"
      "body";
    justify-items: center;
    text-align: center;
    padding-top: 1.5rem;
    row-gap: 0.5rem;
  }

  .hero__title,
  .hero__body {
    align-self: auto;
  }

  .hero__h1 {
    align-items: center;
    font-size: clamp(3.3rem, 14vw, 5.6rem);
  }

  .hero__word--2 {
    padding-left: 0;
  }

  .hero__visual {
    width: min(100%, 42vh, 500px);
    margin-block: 0.25rem 0;
  }

  /* On narrow screens the CTA comes straight after the art so it stays
     in the first screen; the longer explanation follows it. */
  .hero__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
  }

  .hero__ctas { order: 1; margin-top: 0.5rem; }
  .hero__note { order: 2; }
  .formula { order: 3; }
  .hero__lede { order: 4; margin: 1.25rem auto 0; }

  .formula,
  .hero__ctas {
    justify-content: center;
  }

  .hero__boop {
    right: 2%;
  }
}

@media (max-width: 520px) {
  .hero__ctas .btn {
    width: 100%;
  }

  .formula__item {
    font-size: 0.95rem;
  }

  .formula__op {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   YOUR CRATE (vault)
   ========================================================================== */

.vault {
  overflow: hidden;
  background:
    radial-gradient(45% 50% at 25% 45%, rgba(33, 96, 216, 0.28), transparent 70%),
    linear-gradient(180deg, var(--night-950) 0%, var(--night-900) 45%, var(--night-800) 100%);
}

/* HQ floor grid */
.vault::before {
  content: "";
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -10%;
  height: 60%;
  background-image:
    linear-gradient(rgba(63, 124, 240, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 124, 240, 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
  mask-image: linear-gradient(180deg, transparent, #000 60%);
  pointer-events: none;
}

.vault__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.vault__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: 2rem 1rem;
}

.pad {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 92%;
  aspect-ratio: 3.2;
  transform: translateX(-50%);
}

.pad__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255, 210, 63, 0.45);
  border-radius: 50%;
  animation: pad-pulse 3.6s ease-out infinite;
}

.pad__ring--2 { animation-delay: 1.2s; }
.pad__ring--3 { animation-delay: 2.4s; }

@keyframes pad-pulse {
  0% { transform: scale(0.45); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scale(1.1); opacity: 0; }
}

.vault__crate {
  position: relative;
  width: min(100%, 460px);
  cursor: pointer;
}

.vault__peek {
  position: absolute;
  top: 0;
  right: 2%;
  width: clamp(84px, 11vw, 130px);
  aspect-ratio: 1;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--night-700);
  overflow: hidden;
  box-shadow: var(--pop);
  animation: peek 5s ease-in-out infinite;
}

.vault__peek img {
  position: absolute;
  width: 190%;
  max-width: none;
  left: -45%;
  top: -8%;
}

@keyframes peek {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}

.vault__bubble {
  position: absolute;
  top: 9%;
  right: calc(2% + clamp(84px, 11vw, 130px) + 18px);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  white-space: nowrap;
}

.vault__bubble::after {
  left: auto;
  right: -11px;
  transform: translateY(-50%) rotate(-45deg);
}

.scan-report {
  margin-top: 2rem;
  padding: clamp(1.2rem, 2.4vw, 1.75rem);
  border: 2px solid rgba(255, 244, 224, 0.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(5, 11, 34, 0.7);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.scan-report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid rgba(255, 244, 224, 0.1);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt-400);
}

.scan-report__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cape-400);
}

.scan-report__rows {
  margin-block: 0.4rem 1.4rem;
}

.scan-report__rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
  border-bottom: 1px dashed rgba(255, 244, 224, 0.14);
}

.scan-report dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.62);
}

.scan-report dd {
  font-weight: 700;
  text-align: right;
}

.rules {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.rule {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border: 2px solid rgba(255, 244, 224, 0.12);
  border-radius: var(--radius);
  background: rgba(8, 21, 54, 0.75);
}

.rule svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--volt-400);
  color: var(--ink);
}

.rule p {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.3;
}

.rule b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  text-transform: uppercase;
}

.rule span {
  color: var(--volt-300);
  font-weight: 600;
}

.rule span::before {
  content: "→ ";
}

.rule--warn svg {
  background: var(--cape-500);
  color: var(--cream-50);
}

.rule--warn span {
  color: #ff8d93;
}

@media (max-width: 1000px) {
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .vault__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault__stage {
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .vault__bubble {
    top: 2%;
    font-size: 0.9rem;
  }

  .scan-report dt {
    font-size: 0.72rem;
  }

  .redacted { width: 5.5rem; }
  .redacted--long { width: 7rem; }
  .redacted--xl { width: 8rem; }
}

/* ==========================================================================
   PAPER sections (comic page)
   ========================================================================== */

.paper {
  color: var(--ink);
  background-color: var(--cream-100);
  background-image: radial-gradient(rgba(6, 11, 34, 0.075) 1.2px, transparent 1.7px);
  background-size: 16px 16px;
}

.paper .edge {
  color: var(--cream-100);
}

.paper .eyebrow {
  color: var(--cape-600);
}

.paper .h2 .accent {
  color: var(--cape-500);
}

.paper .lead {
  color: #2a3150;
}

/* ==========================================================================
   HOW IT CHARGES
   ========================================================================== */

.factors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(0.5rem, 1.4vw, 1.1rem);
}

.factor {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem 1.3rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--cream-50);
  box-shadow: var(--pop);
}

.factor__num {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0.5;
}

.factor__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--volt-400);
  box-shadow: var(--pop-sm);
}

.factor__icon svg {
  width: 30px;
  height: 30px;
}

.factor h3 {
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  font-style: italic;
}

.factor p {
  margin-top: 0.55rem;
  color: #2a3150;
}

.factor__viz {
  margin-top: auto;
  padding-top: 1.3rem;
}

.factor__viz--bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
}

.factor__viz--bars i {
  flex: 1;
  height: 100%;
  border: 2px solid var(--ink);
  border-radius: 6px 6px 3px 3px;
  background: var(--suit-500);
  transform-origin: bottom;
  transform: scaleY(0.12);
  transition: transform 0.8s var(--ease-spring);
}

.factor.is-in .factor__viz--bars i:nth-child(1) { transform: scaleY(0.25); transition-delay: 0.2s; }
.factor.is-in .factor__viz--bars i:nth-child(2) { transform: scaleY(0.42); transition-delay: 0.3s; }
.factor.is-in .factor__viz--bars i:nth-child(3) { transform: scaleY(0.6); transition-delay: 0.4s; }
.factor.is-in .factor__viz--bars i:nth-child(4) { transform: scaleY(0.8); transition-delay: 0.5s; }
.factor.is-in .factor__viz--bars i:nth-child(5) { transform: scaleY(1); transition-delay: 0.6s; background: var(--volt-400); }

.factor__viz--time {
  position: relative;
  height: 22px;
  margin-top: auto;
  margin-bottom: 21px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(6, 11, 34, 0.18) 18px 20px),
    #fff;
  overflow: hidden;
}

.factor__viz--time i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--suit-500), var(--volt-400));
  animation: time-fill 4.5s ease-in-out infinite;
}

@keyframes time-fill {
  0% { width: 4%; }
  85%, 100% { width: 100%; }
}

.factor__viz--tiers {
  display: flex;
  gap: 6px;
}

.factor__viz--tiers i {
  flex: 1;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 6px;
}

.factor__viz--tiers i:nth-child(1) { background: #d9743e; }
.factor__viz--tiers i:nth-child(2) { background: #b8843f; }
.factor__viz--tiers i:nth-child(3) { background: #c2ccd8; }
.factor__viz--tiers i:nth-child(4) { background: #ffc21a; }
.factor__viz--tiers i:nth-child(5) { background: linear-gradient(135deg, #fff, #dde6ff 45%, #b6c4f2); }

.factor--result {
  background: linear-gradient(180deg, var(--suit-500), var(--suit-700));
  color: var(--cream-50);
}

.factor--result p {
  color: rgba(255, 244, 224, 0.88);
}

.factor--result .factor__icon {
  background: var(--cape-500);
  color: var(--cream-50);
}

.factor__op {
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--cape-500);
  color: var(--cream-50);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.1rem;
  line-height: 1;
  box-shadow: var(--pop-sm);
}

.drain-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
  padding: 0.95rem 1.2rem;
  border: 2px dashed var(--cape-500);
  border-radius: var(--radius);
  background: rgba(224, 35, 46, 0.06);
}

.drain-note svg {
  flex: none;
  width: 28px;
  height: 28px;
  color: var(--cape-500);
}

@media (max-width: 900px) {
  .factors {
    grid-template-columns: minmax(0, 1fr);
  }

  .factor__op {
    justify-self: center;
    line-height: 0.8;
  }
}

/* Crate Lab ------------------------------------------------------------- */

.lab {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(33, 96, 216, 0.35), transparent 70%),
    linear-gradient(180deg, var(--night-800), var(--night-900));
  color: var(--cream-100);
  box-shadow: var(--pop-lg);
  overflow: hidden;
}

.lab__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.lab__title {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-style: italic;
  color: var(--volt-400);
}

.lab__sub {
  margin-top: 0.35rem;
  color: rgba(255, 244, 224, 0.75);
}

.lab .tag--ghost {
  color: var(--volt-300);
}

.lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.85fr);
  grid-template-areas: "controls viz readout";
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  margin-top: 1.5rem;
}

.lab__controls { grid-area: controls; }
.lab__viz { grid-area: viz; }
.lab__readout { grid-area: readout; }

.control + .control {
  margin-top: 1.6rem;
}

.control__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.control label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.control label svg {
  width: 20px;
  height: 20px;
  color: var(--volt-400);
}

.control output {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--volt-400);
  white-space: nowrap;
}

.control__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.5);
}

/* Range input */
.range {
  --p: 30%;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range:focus-visible {
  outline: none;
}

.range::-webkit-slider-runnable-track {
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--volt-600), var(--volt-400) var(--p), #0a1438 var(--p));
  box-shadow: inset 0 0 0 1px rgba(255, 244, 224, 0.12);
}

.range::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  margin-top: -10px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 42%, var(--volt-300) 0 4px, transparent 5px), var(--cape-500);
  box-shadow: 2px 2px 0 var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.15s ease;
}

.range:active::-webkit-slider-thumb {
  transform: scale(1.12) rotate(-6deg);
}

.range:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--cream-50);
  outline-offset: 2px;
}

.range::-moz-range-track {
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #0a1438;
}

.range::-moz-range-progress {
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--volt-600), var(--volt-400));
}

.range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: var(--cape-500);
  box-shadow: 2px 2px 0 var(--ink);
}

.range:focus-visible::-moz-range-thumb {
  outline: 3px solid var(--cream-50);
  outline-offset: 2px;
}

.lab__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.lab__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lab__crate {
  width: min(100%, 330px);
}

.lab.is-drained .lab__crate {
  animation: drain-flash 0.9s ease;
}

@keyframes drain-flash {
  0%, 100% { filter: none; }
  30% { filter: drop-shadow(0 0 22px rgba(255, 59, 69, 0.9)) saturate(0.6); }
}

.lab__speaker {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  margin-top: 0.4rem;
}

.inu-cam {
  --ring: var(--t, var(--volt-400));
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
  border: 4px solid var(--ring);
  border-radius: 50%;
  background: var(--night-700);
  overflow: hidden;
  box-shadow:
    0 0 0 3px var(--ink),
    4px 4px 0 3px var(--ink);
  transition: border-color 0.5s ease;
}

.inu-cam.is-bounce {
  animation: cam-bounce 0.5s var(--ease-spring);
}

@keyframes cam-bounce {
  30% { transform: scale(1.12) rotate(-6deg); }
}

.inu-cam__inner {
  position: absolute;
  width: 190%;
  left: -45%;
  top: -6%;
  aspect-ratio: 1;
}

.inu-cam__inner img {
  width: 100%;
  max-width: none;
}

.inu-cam__eye {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--volt-300) 35%, rgba(255, 194, 26, 0) 70%);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  transition:
    opacity 0.4s ease,
    transform 0.5s var(--ease-spring);
}

.inu-cam__eye--l { left: 41%; top: 23.2%; }
.inu-cam__eye--r { left: 56.4%; top: 22.6%; }

.inu-cam.is-super .inu-cam__eye {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: eye-pulse 1.6s ease-in-out infinite;
}

@keyframes eye-pulse {
  50% { filter: brightness(1.3); transform: translate(-50%, -50%) scale(1.25); }
}

.lab__bubble {
  flex: 1;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.lab.is-drained .lab__bubble {
  background: #ffe1e3;
}

.readout__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.6);
}

.readout__tier {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--t, var(--cream-50));
  text-shadow: 3px 3px 0 var(--ink);
  transition: color 0.5s ease;
}

.readout__tier.is-pop {
  animation: bubble-pop 0.45s var(--ease-spring);
}

.readout__rank {
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--volt-300);
}

.tier-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 1.3rem;
}

.tier-track li {
  position: relative;
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.45);
}

.tier-track li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #0a1438;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.tier-track li.is-on {
  color: var(--cream-100);
}

.tier-track li.is-on::before {
  background: var(--t);
}

.tier-track li.is-current::before {
  box-shadow: 0 0 0 2px var(--cream-50), 0 0 14px var(--t);
}

.power-bar {
  height: 10px;
  margin-top: 1.2rem;
  border-radius: 999px;
  background: #0a1438;
  overflow: hidden;
}

.power-bar span {
  display: block;
  height: 100%;
  width: calc(var(--fill, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--volt-600), var(--volt-300));
  transition: width 0.6s var(--ease-out);
}

.lab__note {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 244, 224, 0.18);
  font-size: 0.9rem;
  color: rgba(255, 244, 224, 0.62);
}

@media (max-width: 1100px) {
  .lab__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "viz viz"
      "controls readout";
  }
}

@media (max-width: 700px) {
  .lab__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "viz"
      "readout"
      "controls";
    gap: 1.25rem;
  }

  .lab__crate {
    width: min(66%, 240px);
  }

  .readout__tier {
    font-size: 2.6rem;
  }

  .tier-track {
    margin-top: 0.8rem;
  }

  .tier-track li {
    font-size: 0.52rem;
  }
}

/* ==========================================================================
   TIERS
   ========================================================================== */

.tiers {
  overflow: hidden;
  background: linear-gradient(180deg, var(--suit-600) 0%, var(--suit-700) 70%, #0a2668 100%);
}

.tiers .edge {
  color: var(--suit-600);
}

.speedlines {
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(from 0deg at 85% 110%, rgba(255, 255, 255, 0.06) 0 1.5deg, transparent 1.5deg 6deg);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 50%);
  mask-image: linear-gradient(180deg, transparent, #000 50%);
  pointer-events: none;
}

.tiers .container {
  position: relative;
}

.ladder {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.6rem, 1.3vw, 1.1rem);
}

.tier-card {
  position: relative;
  margin-bottom: calc(var(--i) * clamp(14px, 2.4vw, 34px));
  padding: 0.9rem 1rem 1.2rem;
  border: 3px solid var(--ink);
  border-top: 8px solid var(--t);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(5, 11, 34, 0.25), rgba(5, 11, 34, 0.65));
  box-shadow: var(--pop);
  transition:
    transform 0.3s var(--ease-spring),
    box-shadow 0.3s ease;
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 8px 10px 0 var(--ink);
}

.tier-card[data-tier-card="platinum"] {
  background:
    radial-gradient(90% 60% at 50% 20%, rgba(255, 226, 122, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(5, 11, 34, 0.3), rgba(5, 11, 34, 0.7));
  box-shadow:
    var(--pop),
    0 0 50px rgba(255, 226, 122, 0.3);
}

.tier-card__crate {
  width: 118%;
  margin: -1.2rem -9% -0.4rem;
}

.tier-card__lvl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.6);
}

.tier-card__name {
  margin-top: 0.15rem;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-style: italic;
  color: var(--t);
  text-shadow: 2px 2px 0 var(--ink);
}

.tier-card__rank {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 210, 63, 0.14);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--volt-300);
}

.tier-card__desc {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 244, 224, 0.85);
}

@media (max-width: 1080px) {
  .ladder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .tier-card {
    margin-bottom: 0;
  }

  .tier-card__crate {
    max-width: 220px;
  }
}

@media (max-width: 720px) {
  .ladder {
    display: flex;
    gap: 1rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter) 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .ladder::-webkit-scrollbar {
    display: none;
  }

  .tier-card {
    flex: 0 0 min(76%, 300px);
    scroll-snap-align: start;
  }

  /* Cards start off-screen sideways, so skip the scroll reveal here. */
  .js .tier-card.reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   WHY
   ========================================================================== */

.why {
  background: linear-gradient(180deg, var(--cape-600) 0%, #8d0c16 100%);
}

.why .edge {
  color: var(--cape-600);
}

.why .eyebrow,
.why .h2 .accent {
  color: var(--volt-400);
}

.why .h2 .accent {
  text-shadow: 3px 3px 0 var(--ink);
}

.why .lead {
  color: rgba(255, 244, 224, 0.9);
}

.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.panel {
  position: relative;
  max-width: 480px;
  width: 100%;
  justify-self: center;
  border: 4px solid var(--ink);
  border-radius: 6px;
  background: var(--night-800);
  box-shadow: var(--pop-lg);
  transform: rotate(-2.5deg);
}

.panel__caption {
  position: absolute;
  top: -18px;
  left: -14px;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  border: 3px solid var(--ink);
  background: var(--volt-400);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: 1.1rem;
  text-transform: uppercase;
  box-shadow: var(--pop-sm);
  transform: rotate(-2deg);
}

.panel__art {
  position: relative;
  overflow: hidden;
}

.panel__art img {
  width: 100%;
}

.panel__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(6, 11, 34, 0.35) 1px, transparent 1.4px);
  background-size: 6px 6px;
  -webkit-mask-image: linear-gradient(180deg, transparent 55%, #000);
  mask-image: linear-gradient(180deg, transparent 55%, #000);
  pointer-events: none;
}

.panel__burst {
  position: absolute;
  right: 5%;
  bottom: 6%;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1;
  background: var(--volt-400);
  clip-path: polygon(50% 0, 61% 22%, 85% 8%, 80% 34%, 100% 45%, 80% 58%, 92% 84%, 64% 78%, 50% 100%, 38% 78%, 10% 88%, 20% 60%, 0 46%, 21% 35%, 14% 9%, 39% 22%);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: var(--cape-600);
  transform: rotate(8deg);
  animation: burst 2.4s ease-in-out infinite;
}

@keyframes burst {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(4deg) scale(1.08); }
}

.panel__bubble {
  position: absolute;
  top: 16%;
  right: -12%;
  max-width: 200px;
  transform: rotate(2.5deg);
}

.why__points {
  display: grid;
  gap: 1.3rem;
  margin-top: 2.2rem;
}

.why__points li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--volt-400);
  color: var(--ink);
  box-shadow: var(--pop-sm);
}

.why__icon svg {
  width: 26px;
  height: 26px;
}

.why__points h3 {
  font-size: 1.7rem;
  font-style: italic;
}

.why__points p {
  margin-top: 0.3rem;
  color: rgba(255, 244, 224, 0.88);
}

@media (max-width: 900px) {
  .why__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel {
    max-width: 400px;
  }

  .panel__bubble {
    right: -4%;
  }
}

/* ==========================================================================
   AI TO SI
   ========================================================================== */

.aisi__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.aisi__letters {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 2rem 0 3.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(9rem, 25vw, 23rem);
  line-height: 0.8;
  user-select: none;
  cursor: pointer;
  isolation: isolate;
}

.aisi__slot {
  position: relative;
  display: inline-block;
}

.aisi__a {
  display: inline-block;
  color: rgba(6, 11, 34, 0.3);
  transition:
    transform 0.5s var(--ease-out) 0.45s,
    opacity 0.4s ease 0.45s;
}

.aisi__s {
  position: absolute;
  left: 50%;
  bottom: 0;
  color: var(--volt-400);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 var(--cape-500), 0.09em 0.09em 0 var(--ink);
  opacity: 0;
  transform: translateX(-50%) translateY(-60%) scale(1.6) rotate(-12deg);
  transition:
    transform 0.55s var(--ease-spring) 0.75s,
    opacity 0.2s ease 0.75s;
}

.aisi__i {
  color: var(--suit-500);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 var(--cape-500), 0.09em 0.09em 0 var(--ink);
}

.aisi__strike {
  position: absolute;
  left: -8%;
  top: 30%;
  width: 116%;
  height: 40%;
  overflow: visible;
  pointer-events: none;
}

.aisi__strike path {
  fill: none;
  stroke: var(--cape-500);
  stroke-width: 16;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 0.4s ease 0.1s;
}

.aisi__pow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  aspect-ratio: 1;
  z-index: -1;
  background: var(--volt-300);
  clip-path: polygon(50% 0, 60% 30%, 90% 12%, 75% 42%, 100% 55%, 70% 62%, 82% 95%, 52% 72%, 30% 100%, 30% 68%, 0 70%, 22% 48%, 4% 22%, 36% 30%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2) rotate(-20deg);
  transition:
    transform 0.5s var(--ease-spring) 0.8s,
    opacity 0.2s ease 0.8s;
}

.aisi__hint {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(6, 11, 34, 0.5);
  white-space: nowrap;
}

.aisi__letters.is-upgraded .aisi__strike path {
  stroke-dashoffset: 0;
}

.aisi__letters.is-upgraded .aisi__a {
  opacity: 0;
  transform: translateY(30%) rotate(14deg);
}

.aisi__letters.is-upgraded .aisi__s {
  opacity: 1;
  transform: translateX(-50%);
}

.aisi__letters.is-upgraded .aisi__pow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

.aisi__letters.is-upgraded .aisi__strike {
  opacity: 0;
  transition: opacity 0.3s ease 0.9s;
}

.versus {
  width: 100%;
  margin-top: 2rem;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  border-spacing: 0;
  background: var(--cream-50);
  box-shadow: var(--pop);
  overflow: hidden;
}

.versus th,
.versus td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(6, 11, 34, 0.1);
}

.versus tbody tr:last-child th,
.versus tbody tr:last-child td {
  border-bottom: 0;
}

.versus thead th {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  border-bottom: 3px solid var(--ink);
}

.versus thead th:nth-child(2) {
  color: rgba(6, 11, 34, 0.45);
  text-decoration: line-through;
  text-decoration-color: var(--cape-500);
  text-decoration-thickness: 4px;
}

.versus thead th:nth-child(3) {
  background: var(--volt-400);
}

.versus tbody th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(6, 11, 34, 0.6);
}

.versus td:nth-child(2) {
  color: rgba(6, 11, 34, 0.55);
}

.versus td:nth-child(3) {
  font-weight: 700;
  background: rgba(255, 210, 63, 0.18);
}

.aisi__fine {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: rgba(6, 11, 34, 0.62);
}

@media (max-width: 900px) {
  .aisi__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .aisi__letters {
    font-size: clamp(8rem, 38vw, 13rem);
  }
}

@media (max-width: 520px) {
  .versus th,
  .versus td {
    padding: 0.6rem 0.6rem;
    font-size: 0.92rem;
  }

  .versus tbody th {
    font-size: 0.64rem;
  }
}

/* ==========================================================================
   HOW IT WORKS (comic strip)
   ========================================================================== */

.strip {
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(59, 67, 130, 0.55), transparent 70%),
    var(--night-900);
}

.strip .edge {
  color: var(--night-900);
}

.comic {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
}

.comic__panel {
  position: relative;
  padding: 0.8rem 0.8rem 1.2rem;
  border: 3px solid var(--ink);
  border-radius: 6px;
  background: var(--cream-50);
  color: var(--ink);
  box-shadow: var(--pop);
}

.comic__panel:nth-child(odd) { rotate: -1deg; }
.comic__panel:nth-child(even) { rotate: 1.2deg; }

.comic__num {
  position: absolute;
  top: -18px;
  left: -14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--cape-500);
  clip-path: polygon(50% 0, 63% 25%, 92% 16%, 80% 43%, 100% 60%, 72% 68%, 72% 98%, 50% 80%, 26% 98%, 26% 68%, 0 60%, 20% 43%, 8% 16%, 37% 25%);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.45rem;
  color: var(--cream-50);
}

.comic__art {
  display: grid;
  place-items: center;
  height: clamp(130px, 13vw, 170px);
  margin-bottom: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background:
    radial-gradient(rgba(255, 244, 224, 0.12) 1px, transparent 1.4px) 0 0 / 8px 8px,
    radial-gradient(70% 70% at 50% 40%, var(--night-600), var(--night-800));
  overflow: hidden;
}

.comic__art [data-crate] {
  width: 78%;
  max-width: 170px;
}

.comic__panel--final .comic__art [data-crate] {
  width: 68%;
  margin-top: 22%;
}

.comic__panel--final .comic__art {
  background:
    radial-gradient(rgba(6, 11, 34, 0.12) 1px, transparent 1.4px) 0 0 / 8px 8px,
    radial-gradient(70% 70% at 50% 40%, var(--volt-300), var(--volt-600));
}

.comic__art--icon svg {
  width: 84px;
  height: 84px;
  color: var(--volt-400);
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.comic__art--tiers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding-bottom: 18%;
}

.comic__art--tiers i {
  width: 14%;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 2px 2px;
  background: var(--t);
}

.comic__art--tiers i:nth-child(1) { height: 20%; }
.comic__art--tiers i:nth-child(2) { height: 34%; }
.comic__art--tiers i:nth-child(3) { height: 48%; }
.comic__art--tiers i:nth-child(4) { height: 62%; }
.comic__art--tiers i:nth-child(5) { height: 76%; box-shadow: 0 0 16px rgba(255, 244, 224, 0.7); }

.comic__panel h3 {
  font-size: 1.55rem;
  font-style: italic;
}

.comic__panel p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #2a3150;
}

@media (max-width: 1080px) {
  .comic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .comic {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.4rem;
  }

  .comic__panel {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 0.9rem;
    align-items: start;
  }

  .comic__art {
    grid-row: 1 / span 2;
    height: 112px;
    margin-bottom: 0;
  }

  .comic__panel h3 {
    font-size: 1.4rem;
    margin-top: 0.2rem;
  }

  .comic__art--icon svg {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4rem, 9vw, 7rem) clamp(7rem, 16vw, 12rem);
  background:
    radial-gradient(55% 60% at 30% 55%, rgba(59, 67, 130, 0.85), transparent 72%),
    linear-gradient(180deg, var(--night-900), var(--night-800) 60%, var(--night-700));
}

.final .stars {
  z-index: -2;
}

.skyline--final {
  height: clamp(80px, 14vw, 170px);
}

.final__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.final__art {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  aspect-ratio: 1;
}

.final__glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.5), rgba(234, 163, 95, 0.15) 45%, transparent 70%);
  animation: glow-breathe 4s ease-in-out infinite;
}

@keyframes glow-breathe {
  50% { transform: scale(1.08); opacity: 0.8; }
}

.final__art img {
  position: relative;
  width: 88%;
}

.final__crate {
  position: absolute;
  right: -4%;
  bottom: -2%;
  width: 50%;
  filter: drop-shadow(0 18px 24px rgba(5, 11, 34, 0.6));
}

.final__title {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-style: italic;
  line-height: 0.86;
  text-shadow:
    0.035em 0.035em 0 var(--cape-500),
    0.07em 0.07em 0 var(--ink);
}

.final__title .accent {
  color: var(--volt-400);
  display: block;
}

.final__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .final__grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .final__art {
    width: min(86%, 420px);
  }

  .final__copy .lead {
    margin-inline: auto;
  }

  .final__ctas {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .final__ctas .btn {
    width: 100%;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--night-950);
  border-top: 3px solid var(--ink);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.footer__tag {
  margin-top: 0.8rem;
  color: rgba(255, 244, 224, 0.6);
}

.footer__label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 244, 224, 0.55);
}

.ca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 2px solid rgba(255, 244, 224, 0.16);
  border-radius: 12px;
  background: rgba(255, 244, 224, 0.04);
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ca:hover {
  border-color: var(--volt-400);
  background: rgba(255, 210, 63, 0.06);
}

.ca code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.ca svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--volt-400);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 1rem;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 244, 224, 0.8);
}

.footer__links a:hover {
  color: var(--volt-400);
}

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

.footer__legal {
  display: grid;
  gap: 0.7rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 244, 224, 0.1);
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 244, 224, 0.5);
}

@media (max-width: 760px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
