:root {
  color-scheme: dark;
  --black: #050505;
  --ink: #0c0c0c;
  --paper: #f4f4f0;
  --soft: #b8b8b3;
  --line: rgba(255, 255, 255, 0.22);
  --mouse-x: 58%;
  --mouse-y: 42%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  background: #000;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-shell {
  position: relative;
  isolation: isolate;
  width: min(100vw, 1920px);
  height: min(100dvh, 1080px);
  min-height: 680px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr) 66px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0.08) 100%),
    url("assets/hero-background.jpg") center / cover no-repeat,
    var(--black);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.06);
}

.ambient-light {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 32rem at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.12), transparent 68%);
  transition: background 180ms ease-out;
}

.print-grain {
  position: absolute;
  z-index: 8;
  inset: -40%;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: screen;
  background: url("assets/print-texture.jpg") center / 720px 720px repeat;
  animation: grainShift 8s steps(2, end) infinite;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.18;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255, 255, 255, 0.018) 4px);
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(24px, 3.2vw, 64px);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: #000;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

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

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.14em;
}

.brand-copy small {
  color: var(--soft);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.nav-link--solid {
  background: var(--paper);
  color: var(--black);
}

.nav-link--solid:hover {
  color: var(--black);
  background: #fff;
}

.hero {
  position: relative;
  z-index: 3;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.95fr);
  align-items: stretch;
  padding: clamp(26px, 3.5vh, 44px) clamp(24px, 3.2vw, 64px) 18px;
}

.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-right: clamp(20px, 3vw, 60px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(12px, 2vh, 22px);
  color: #d4d4cf;
  font-size: clamp(0.7rem, 0.7vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.22em;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.09);
  animation: dotPulse 2.2s ease-in-out infinite;
}

.hero-title {
  margin: 0;
  display: grid;
  max-width: 920px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5.2rem, 8.15vw, 9.6rem);
  font-weight: 900;
  line-height: 0.75;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero-title span {
  position: relative;
  display: block;
  white-space: nowrap;
}

.title-outline {
  color: transparent;
  -webkit-text-stroke: clamp(2px, 0.25vw, 5px) var(--paper);
  text-shadow: 10px 10px 0 rgba(255, 255, 255, 0.08);
}

.title-outline::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  transform: translate(14px, 14px);
}

.title-solid {
  color: var(--paper);
  text-shadow: 14px 14px 0 rgba(255, 255, 255, 0.08);
}

.hero-tagline {
  margin: clamp(20px, 3vh, 34px) 0 0;
  color: #c9c9c4;
  font-size: clamp(0.95rem, 1vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.hero-tagline strong {
  color: #fff;
  font-weight: 900;
}

.hero-actions {
  margin-top: clamp(18px, 2.4vh, 28px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.ca-button {
  position: relative;
  min-height: 58px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  overflow: hidden;
  border: 2px solid var(--paper);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.72);
  color: var(--paper);
  box-shadow: 8px 8px 0 var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.ca-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  transform: translateX(-104%);
  transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.ca-button:hover,
.ca-button.is-copied {
  color: var(--black);
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0 var(--paper);
}

.ca-button:hover::before,
.ca-button.is-copied::before {
  transform: translateX(0);
}

.ca-status {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.copy-icon {
  display: grid;
  place-items: center;
}

.copy-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-hint {
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lore-card {
  width: min(100%, 720px);
  margin-top: clamp(28px, 5vh, 58px);
  padding: 18px 20px 19px;
  border-top: 1px solid rgba(255, 255, 255, 0.54);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  backdrop-filter: blur(7px);
}

.lore-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.lore-rule {
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.3);
}

.lore-card p {
  max-width: 68ch;
  margin: 12px 0 0;
  color: #d0d0ca;
  font-size: clamp(0.87rem, 0.85vw, 1.04rem);
  line-height: 1.55;
}

.character-zone {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.character-zone::before {
  content: "";
  position: absolute;
  width: min(40vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.035) 44%, transparent 68%);
  filter: blur(2px);
  animation: haloPulse 4s ease-in-out infinite;
}

.character-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: min(39vw, 700px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbitSpin 28s linear infinite;
}

.orbit-two {
  width: min(34vw, 620px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.14);
  animation: orbitSpin 20s linear infinite reverse;
}

.character-button {
  position: relative;
  z-index: 2;
  width: min(36vw, 655px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: characterFloat 5.5s ease-in-out infinite;
}

.character-halo {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.14), transparent 66%);
  filter: blur(18px);
}

.character-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  filter: contrast(1.08) drop-shadow(0 28px 30px rgba(0, 0, 0, 0.72));
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(26px);
  transition: transform 160ms ease-out, filter 220ms ease;
  will-change: transform;
}

.character-button:hover .character-image {
  filter: contrast(1.16) brightness(1.05) drop-shadow(0 34px 42px rgba(255, 255, 255, 0.14));
}

.character-button.is-popping {
  animation: characterPop 560ms cubic-bezier(.2,.9,.28,1);
}

.stamp {
  position: absolute;
  z-index: 4;
  min-width: 142px;
  padding: 10px 13px;
  display: grid;
  gap: 3px;
  border: 2px solid var(--paper);
  background: #050505;
  box-shadow: 6px 6px 0 rgba(255, 255, 255, 0.16);
  transform: rotate(-4deg);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.stamp span {
  font-size: 0.68rem;
}

.stamp small {
  color: var(--soft);
  font-size: 0.63rem;
}

.stamp--top {
  top: 10%;
  right: 0;
  animation: stampDrift 5s ease-in-out infinite;
}

.stamp--bottom {
  bottom: 8%;
  left: 1%;
  transform: rotate(5deg);
  animation: stampDrift 5.8s ease-in-out infinite reverse;
}

.micro-copy {
  position: absolute;
  right: 0;
  bottom: 27%;
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  writing-mode: vertical-rl;
}

.ticker {
  position: relative;
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-top: 2px solid var(--paper);
  background: var(--paper);
  color: var(--black);
}

.ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding-left: 28px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: tickerMove 24s linear infinite;
}

.ticker-track i {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-style: normal;
}

.copy-toast {
  position: absolute;
  z-index: 30;
  right: 28px;
  bottom: 94px;
  padding: 15px 18px;
  border: 2px solid #000;
  background: var(--paper);
  color: var(--black);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.26);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0;
  transform: translateY(18px) rotate(2deg);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0) rotate(-2deg);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealIn 750ms cubic-bezier(.16,1,.3,1) forwards;
}

.reveal--one { animation-delay: 100ms; }
.reveal--two { animation-delay: 180ms; }
.reveal--three { animation-delay: 290ms; }
.reveal--four { animation-delay: 390ms; }
.reveal--five { animation-delay: 510ms; }
.reveal--character { animation-delay: 320ms; }

@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes characterFloat {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-18px) rotate(0.8deg); }
}

@keyframes characterPop {
  0% { transform: scale(1) rotate(0); }
  38% { transform: scale(1.08) rotate(-3deg); }
  68% { transform: scale(0.98) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

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

@keyframes haloPulse {
  0%, 100% { opacity: 0.66; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes stampDrift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes grainShift {
  0% { transform: translate3d(-2%, -1%, 0); }
  25% { transform: translate3d(2%, 1%, 0); }
  50% { transform: translate3d(-1%, 2%, 0); }
  75% { transform: translate3d(1%, -2%, 0); }
  100% { transform: translate3d(-2%, -1%, 0); }
}

@media (max-width: 1180px) {
  .site-shell {
    grid-template-rows: 82px minmax(0, 1fr) 58px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
  }

  .hero-title {
    font-size: clamp(4.3rem, 8.6vw, 7rem);
  }

  .lore-card {
    margin-top: 28px;
  }

  .character-button {
    width: min(40vw, 560px);
  }

  .orbit-one { width: min(43vw, 610px); }
  .orbit-two { width: min(38vw, 540px); }
}

@media (max-width: 840px) {
  body {
    display: block;
    overflow: auto;
  }

  .site-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    max-height: none;
    grid-template-rows: auto auto 58px;
  }

  .site-header {
    padding: 16px 20px;
  }

  .brand-copy small,
  .nav-link span:first-child {
    display: none;
  }

  .nav-link {
    width: 44px;
    padding: 0;
    font-size: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 44px 20px 52px;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-title {
    font-size: clamp(4.4rem, 20vw, 7.8rem);
    line-height: 0.78;
  }

  .character-zone {
    min-height: 430px;
  }

  .character-button {
    width: min(82vw, 500px);
  }

  .orbit-one { width: min(92vw, 560px); }
  .orbit-two { width: min(78vw, 480px); }

  .stamp--top { right: 2%; }
  .stamp--bottom { left: 0; bottom: 4%; }
  .micro-copy { right: 1%; }
}

@media (max-height: 760px) and (min-width: 841px) {
  .site-shell {
    min-height: 620px;
    grid-template-rows: 76px minmax(0, 1fr) 54px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .hero-title { font-size: clamp(4.4rem, 7.6vw, 7rem); }
  .hero-tagline { margin-top: 16px; }
  .hero-actions { margin-top: 14px; }
  .lore-card { margin-top: 20px; padding-top: 13px; padding-bottom: 13px; }
  .lore-card p { margin-top: 8px; line-height: 1.4; }
  .character-button { width: min(33vw, 505px); }
  .orbit-one { width: min(36vw, 560px); }
  .orbit-two { width: min(31vw, 490px); }
}

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