:root {
  --blue-950: #001b58;
  --blue-900: #032b7e;
  --blue-700: #075bd0;
  --sky: #63d2ff;
  --orange: #ff7518;
  --orange-dark: #dc4300;
  --yellow: #ffd64a;
  --cream: #fff4d0;
  --ink: #080a0f;
  --white: #ffffff;
  --black-line: clamp(3px, 0.32vw, 7px);
  --page-pad: clamp(22px, 3.1vw, 60px);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Arial Black", sans-serif;
  color: var(--white);
  background: var(--blue-950);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--blue-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--blue-950);
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--cream);
  outline-offset: 5px;
}

.stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100svh;
  min-height: 720px;
  overflow: hidden;
  background: var(--blue-700);
}

.backdrop,
.ink-wash,
.cursor-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: -5;
  inset: -2.5%;
  background: url("assets/chart-world.jpg") center / cover no-repeat;
  animation: backdrop-breathe 16s ease-in-out infinite alternate;
}

.ink-wash {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(1, 22, 75, 0.92) 0%, rgba(1, 35, 104, 0.77) 42%, rgba(0, 25, 78, 0.04) 72%),
    linear-gradient(0deg, rgba(0, 16, 52, 0.86) 0%, transparent 30%);
}

.ink-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor-glow {
  z-index: -3;
  background: radial-gradient(350px circle at var(--pointer-x, 70%) var(--pointer-y, 45%), rgba(99, 210, 255, 0.25), transparent 74%);
  transition: opacity 300ms ease;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 104px;
  padding: 24px var(--page-pad) 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
  transform: rotate(-1deg);
}

.brand__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink);
}

.brand__mark img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  transform: translateY(7px);
}

.brand__copy {
  display: grid;
  gap: 2px;
}

.brand__copy strong {
  font-size: clamp(1.25rem, 1.5vw, 1.75rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  -webkit-text-stroke: 1px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
}

.brand__copy small {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--sky);
}

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 4px solid var(--ink);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.social-link:hover {
  transform: translate(3px, 3px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.social-link--x {
  background: var(--cream);
  transform: rotate(-1deg);
}

.social-link--pump {
  background: var(--yellow);
  transform: rotate(1deg);
}

.social-link__icon {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.social-link__dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
  height: calc(100% - 164px);
  padding: clamp(14px, 2vh, 26px) var(--page-pad) 76px;
}

.hero__copy {
  position: relative;
  z-index: 4;
  display: flex;
  max-width: 920px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: clamp(0px, 2vh, 24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(14px, 2vh, 24px);
  padding: 9px 15px 8px;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.76rem, 0.8vw, 0.95rem);
  font-weight: 1000;
  letter-spacing: 0.15em;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-1.5deg);
}

.eyebrow__spark {
  color: var(--orange);
  font-size: 1.25em;
  animation: sparkle-turn 2.4s steps(2, end) infinite;
}

.hero__title {
  display: grid;
  margin: 0;
  color: var(--cream);
  font-size: clamp(6.1rem, 10.8vw, 12.9rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.68;
  text-transform: uppercase;
  -webkit-text-stroke: var(--black-line) var(--ink);
  paint-order: stroke fill;
  filter: drop-shadow(11px 12px 0 var(--ink));
}

.hero__title span {
  display: block;
}

.hero__title-pop {
  margin-left: clamp(26px, 5vw, 94px);
  color: var(--orange);
  transform: rotate(-2.4deg);
}

.hero__line {
  margin: clamp(26px, 3vh, 42px) 0 0;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.12rem, 1.45vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  text-shadow: 2px 2px 0 var(--blue-950);
}

.hero__line strong {
  color: var(--yellow);
  font-weight: 1000;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: clamp(18px, 2.6vh, 30px);
}

.ca-button {
  position: relative;
  display: grid;
  grid-template-columns: auto auto auto;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 5px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1deg);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ca-button:hover {
  background: var(--cream);
  transform: translate(4px, 4px) rotate(-1deg) scale(1.02);
  box-shadow: 4px 4px 0 var(--ink);
}

.ca-button:active,
.ca-button.is-copied {
  transform: translate(7px, 7px) rotate(0deg);
  box-shadow: 1px 1px 0 var(--ink);
}

.ca-button__label {
  padding-right: 12px;
  border-right: 3px solid var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.ca-button__value {
  max-width: min(28vw, 360px);
  overflow: hidden;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-button__copy {
  padding-left: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.copy-hint {
  max-width: 110px;
  color: var(--sky);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.lore-card {
  display: grid;
  grid-template-columns: auto 1fr;
  max-width: 710px;
  gap: 18px;
  margin-top: clamp(26px, 4vh, 48px);
  padding: clamp(14px, 1.4vw, 22px);
  border: 5px solid var(--ink);
  background: rgba(255, 244, 208, 0.96);
  color: var(--ink);
  box-shadow: 9px 10px 0 var(--ink);
  transform: rotate(-0.8deg);
}

.lore-card__stamp {
  align-self: start;
  padding: 8px 9px 6px;
  border: 3px solid var(--ink);
  background: var(--orange);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-5deg);
}

.lore-card h2 {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  letter-spacing: 0.035em;
}

.lore-card p {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.83rem, 0.83vw, 1rem);
  font-weight: 700;
  line-height: 1.34;
}

.hero__visual {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.character {
  position: absolute;
  right: clamp(-80px, -3vw, -25px);
  bottom: -76px;
  width: min(47vw, 810px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 55% 90%;
  animation: stunk-float 4.8s ease-in-out infinite;
}

.character img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(14px 18px 0 rgba(5, 8, 12, 0.88));
  transition: filter 250ms ease;
  will-change: transform;
}

.character__shadow {
  position: absolute;
  z-index: 0;
  right: 4%;
  bottom: 2%;
  left: 8%;
  height: 11%;
  border-radius: 50%;
  background: rgba(0, 10, 35, 0.62);
  filter: blur(16px);
  transform: scaleX(0.92);
  animation: shadow-pulse 4.8s ease-in-out infinite;
}

.character:hover img {
  filter: drop-shadow(18px 22px 0 rgba(5, 8, 12, 0.9)) saturate(1.08);
}

.character.is-stunked {
  animation: ego-pop 620ms cubic-bezier(0.22, 1.8, 0.5, 1);
}

.character__click {
  position: absolute;
  z-index: 4;
  right: 8%;
  bottom: 16%;
  padding: 8px 11px 7px;
  border: 3px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(0.7rem, 0.75vw, 0.9rem);
  letter-spacing: 0.08em;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-4deg);
  transition: opacity 180ms ease, transform 180ms ease;
}

.character:hover .character__click,
.character:focus-visible .character__click {
  transform: rotate(2deg) scale(1.08);
}

.speech {
  position: absolute;
  z-index: 8;
  top: 5%;
  left: -4%;
  min-width: 200px;
  padding: 16px 20px 13px;
  border: 5px solid var(--ink);
  border-radius: 48% 52% 45% 55%;
  background: var(--cream);
  color: var(--ink);
  font-size: clamp(1.05rem, 1.25vw, 1.5rem);
  letter-spacing: 0.035em;
  line-height: 0.94;
  text-align: center;
  box-shadow: 7px 8px 0 var(--ink);
  transform: rotate(-4deg);
  transition: transform 220ms cubic-bezier(0.2, 1.7, 0.4, 1);
}

.speech::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: -24px;
  width: 30px;
  height: 28px;
  border-right: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  background: var(--cream);
  transform: skew(28deg) rotate(30deg);
}

.speech.is-talking {
  transform: rotate(2deg) scale(1.08);
}

.sticker {
  position: absolute;
  z-index: 7;
  display: grid;
  place-items: center;
  border: 5px solid var(--ink);
  color: var(--ink);
  text-align: center;
  box-shadow: 7px 8px 0 var(--ink);
  animation: sticker-bob 3.7s ease-in-out infinite;
}

.sticker span,
.sticker b {
  display: block;
  line-height: 0.82;
}

.sticker--sure {
  top: 37%;
  right: -2%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: var(--yellow);
  transform: rotate(8deg);
}

.sticker--sure b {
  font-size: 1.8rem;
}

.sticker--sure span {
  font-size: 1.12rem;
}

.sticker--zero {
  right: 2%;
  bottom: 8%;
  width: 108px;
  padding: 13px 8px 10px;
  background: var(--orange);
  transform: rotate(-7deg);
  animation-delay: -1.5s;
}

.sticker--zero span {
  font-size: 1rem;
}

.sticker--zero b {
  font-size: 1.35rem;
}

.pop {
  position: absolute;
  z-index: 3;
  color: var(--cream);
  font-size: clamp(2rem, 3.5vw, 4.5rem);
  -webkit-text-stroke: 3px var(--ink);
  filter: drop-shadow(4px 4px 0 var(--ink));
  animation: sparkle-pop 2.2s steps(2, end) infinite;
}

.pop--one {
  top: 6%;
  right: 9%;
}

.pop--two {
  top: 27%;
  left: 8%;
  animation-delay: -0.8s;
}

.pop--three {
  right: 9%;
  bottom: 29%;
  animation-delay: -1.5s;
}

.ticker {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  height: 60px;
  overflow: hidden;
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-0.2deg) scale(1.01);
}

.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 28px;
  font-size: clamp(1rem, 1.4vw, 1.55rem);
  letter-spacing: 0.06em;
  white-space: nowrap;
  animation: ticker-roll 24s linear infinite;
}

.ticker__track i {
  color: var(--orange);
  font-style: normal;
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 90px;
  padding: 15px 19px 12px;
  border: 4px solid var(--ink);
  background: var(--orange);
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.06em;
  box-shadow: 6px 6px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 28px) rotate(-2deg);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 1.5, 0.5, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) rotate(1deg);
}

.entrance {
  opacity: 0;
  animation: arrive 650ms cubic-bezier(0.2, 1, 0.35, 1) forwards;
}

.entrance--one { animation-delay: 80ms; }
.entrance--two { animation-delay: 180ms; }
.entrance--three { animation-delay: 260ms; }
.entrance--four { animation-delay: 390ms; }
.entrance--five { animation-delay: 470ms; }
.entrance--six { animation-delay: 560ms; }
.entrance--character { animation-delay: 330ms; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(22px) rotate(-0.8deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes backdrop-breathe {
  from { transform: scale(1.025) translate3d(-0.35%, -0.2%, 0); }
  to { transform: scale(1.055) translate3d(0.45%, 0.3%, 0); }
}

@keyframes stunk-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-0.6deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(0.8deg); }
}

@keyframes shadow-pulse {
  0%, 100% { opacity: 0.72; transform: scaleX(0.9); }
  50% { opacity: 0.48; transform: scaleX(0.78); }
}

@keyframes ego-pop {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-4deg) scale(1.04, 0.97); }
  55% { transform: rotate(3deg) scale(0.98, 1.04); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes sticker-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes sparkle-turn {
  0%, 49% { transform: rotate(0deg) scale(1); }
  50%, 100% { transform: rotate(45deg) scale(1.18); }
}

@keyframes sparkle-pop {
  0%, 49% { opacity: 0.5; transform: rotate(0deg) scale(0.85); }
  50%, 100% { opacity: 1; transform: rotate(30deg) scale(1.1); }
}

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

@media (max-width: 1180px) {
  .stage {
    height: auto;
    min-height: 100svh;
    overflow-y: auto;
  }

  .hero {
    grid-template-columns: 1fr 0.82fr;
    min-height: calc(100svh - 104px);
    height: auto;
    padding-bottom: 105px;
  }

  .hero__title {
    font-size: clamp(5.5rem, 11.5vw, 9.2rem);
  }

  .lore-card {
    max-width: 610px;
  }

  .character {
    right: -12vw;
    width: 58vw;
  }

  .sticker--sure {
    right: -2vw;
  }
}

@media (max-width: 860px) {
  .stage {
    min-height: 100svh;
  }

  .site-header {
    height: auto;
    align-items: flex-start;
    padding-bottom: 8px;
  }

  .brand__copy small {
    display: none;
  }

  .social-link {
    min-height: 46px;
    padding: 9px 12px;
    font-size: 0.82rem;
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 92px;
  }

  .hero__copy {
    max-width: none;
    padding-bottom: 0;
  }

  .hero__title {
    font-size: clamp(5.2rem, 21vw, 10rem);
  }

  .hero__line {
    font-size: 1.1rem;
  }

  .lore-card {
    width: min(100%, 680px);
  }

  .hero__visual {
    min-height: 590px;
  }

  .character {
    right: -8vw;
    bottom: -86px;
    width: min(94vw, 680px);
  }

  .speech {
    top: 8%;
    left: 2%;
  }

  .sticker--sure {
    top: 34%;
    right: 1%;
  }

  .sticker--zero {
    right: 4%;
  }
}

@media (max-width: 560px) {
  :root {
    --page-pad: 18px;
  }

  .site-header {
    gap: 10px;
    padding-top: 15px;
  }

  .brand__mark {
    width: 48px;
    height: 48px;
    box-shadow: 4px 4px 0 var(--ink);
  }

  .brand__mark img {
    width: 56px;
    height: 56px;
  }

  .brand__copy strong {
    font-size: 1.05rem;
  }

  .socials {
    gap: 7px;
  }

  .social-link {
    min-width: 46px;
    padding: 8px 10px;
  }

  .social-link span:last-child {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .hero__title {
    font-size: clamp(4.45rem, 23vw, 7rem);
  }

  .hero__title-pop {
    margin-left: 18px;
  }

  .hero__actions {
    flex-wrap: wrap;
    gap: 14px;
  }

  .ca-button {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .ca-button__value {
    max-width: none;
  }

  .copy-hint {
    max-width: none;
    padding-left: 8px;
  }

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

  .lore-card__stamp {
    width: max-content;
  }

  .lore-card p {
    font-size: 0.9rem;
  }

  .hero__visual {
    min-height: 500px;
  }

  .speech {
    top: 3%;
    min-width: 160px;
    padding: 13px 15px 11px;
    font-size: 0.92rem;
  }

  .character {
    right: -24vw;
    width: 118vw;
  }

  .character__click {
    right: 23%;
  }

  .sticker--sure {
    top: 29%;
    right: 0;
    width: 88px;
    height: 88px;
  }

  .sticker--sure b {
    font-size: 1.35rem;
  }

  .sticker--zero,
  .pop--three {
    display: none;
  }

  .ticker {
    position: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
