:root {
  --ink: #171815;
  --paper: #eee6d1;
  --kraft: #b9834b;
  --acid: #c7ff58;
  --glass: #91b99f;
  --line: rgba(238, 230, 209, 0.28);
  --mouse-x: 50vw;
  --mouse-y: 50vh;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 77% 49%, rgba(145, 185, 159, 0.22), transparent 31%),
    radial-gradient(circle at 15% 10%, rgba(185, 131, 75, 0.12), transparent 29%),
    #171815;
}

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

a {
  color: inherit;
}

.site-shell {
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 24, 21, 0.98) 0%, rgba(23, 24, 21, 0.86) 42%, rgba(23, 24, 21, 0.4) 100%),
    linear-gradient(135deg, rgba(199, 255, 88, 0.045), transparent 40%),
    url("assets/background.webp") center / cover no-repeat;
}

.site-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(238, 230, 209, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(238, 230, 209, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.site-shell::after {
  content: "ANON // PONS // 00";
  position: absolute;
  z-index: -1;
  right: -1.5vw;
  bottom: 3.8vh;
  color: rgba(238, 230, 209, 0.035);
  font-size: clamp(6rem, 15vw, 18rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.7;
  white-space: nowrap;
  transform: rotate(-4deg);
}

.page-noise {
  position: fixed;
  z-index: 100;
  inset: -50%;
  pointer-events: none;
  opacity: 0.06;
  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='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  animation: noise-shift 0.19s steps(2) infinite;
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  left: var(--mouse-x);
  top: var(--mouse-y);
  width: 28rem;
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(199, 255, 88, 0.075);
  filter: blur(75px);
  transform: translate(-50%, -50%);
}

.topbar {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: clamp(76px, 9.2vh, 100px);
  margin-inline: clamp(24px, 3vw, 64px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-copy {
  display: grid;
  line-height: 0.85;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 6px;
  color: rgba(238, 230, 209, 0.57);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.25em;
}

.case-stamp {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 230, 209, 0.48);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.18em;
}

.case-stamp strong {
  color: var(--paper);
  font-size: 12px;
}

.actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.5vw, 28px);
}

.text-link {
  position: relative;
  padding-block: 10px;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ca-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 15px;
  color: var(--ink);
  border: 0;
  border-radius: 2px;
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--kraft);
  font: 950 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.ca-label {
  opacity: 0.62;
}

.copy-icon {
  font-size: 15px;
}

.ca-button:hover,
.ca-button:focus-visible {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--kraft);
}

.ca-button.is-copied {
  color: var(--paper);
  background: var(--kraft);
  box-shadow: 4px 4px 0 var(--acid);
}

.copy-status {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  color: var(--acid);
  font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.12em;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(520px, 0.97fr);
  height: calc(100svh - clamp(76px, 9.2vh, 100px) - clamp(38px, 5.2vh, 58px));
  min-height: 610px;
  padding: clamp(42px, 6vh, 72px) clamp(24px, 3vw, 64px) clamp(30px, 4vh, 46px);
}

.hero-copy {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(20px, 3vh, 34px);
  color: var(--acid);
  font: 800 clamp(9px, 0.65vw, 12px)/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.15em;
}

.live-dot {
  width: 7px;
  aspect-ratio: 1;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(199, 255, 88, 0.7);
  animation: live-pulse 1.8s ease-out infinite;
}

.hero-title {
  position: relative;
  margin: 0;
  font-size: clamp(4.8rem, 9.15vw, 11rem);
  font-weight: 950;
  letter-spacing: -0.078em;
  line-height: 0.69;
  text-transform: uppercase;
}

.title-line {
  display: block;
}

.title-pons {
  position: relative;
  width: max-content;
  color: var(--paper);
  text-shadow: 7px 7px 0 rgba(185, 131, 75, 0.48);
}

.title-pons::before,
.title-pons::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.title-pons::before {
  color: var(--acid);
  transform: translate(-4px, 1px);
  clip-path: inset(18% 0 58% 0);
}

.title-pons::after {
  color: var(--kraft);
  transform: translate(5px, -2px);
  clip-path: inset(62% 0 14% 0);
}

.hero-title:hover .title-pons::before,
.hero-title:hover .title-pons::after {
  animation: title-glitch 560ms steps(2) both;
}

.title-anonymous {
  position: relative;
  z-index: 3;
  margin-top: 0.2em;
  color: var(--acid);
  font-size: 0.54em;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.title-anonymous::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18px;
  bottom: -8px;
  left: -14px;
  height: 0.93em;
  border: 1px solid rgba(199, 255, 88, 0.42);
  transform: rotate(-1.3deg);
}

.hero-dek {
  max-width: 550px;
  margin: clamp(28px, 4vh, 44px) 0 0;
  color: rgba(238, 230, 209, 0.76);
  font-size: clamp(1rem, 1.12vw, 1.34rem);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.lore-card {
  position: relative;
  width: min(660px, 93%);
  margin-top: auto;
  padding: clamp(15px, 1.5vw, 24px);
  color: var(--ink);
  background: rgba(238, 230, 209, 0.96);
  box-shadow: 11px 11px 0 rgba(185, 131, 75, 0.72);
  transform: rotate(-0.35deg);
}

.lore-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 38%;
  width: 92px;
  height: 23px;
  background: rgba(185, 131, 75, 0.8);
  mix-blend-mode: multiply;
  transform: rotate(1.8deg);
}

.lore-heading,
.lore-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font: 900 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.15em;
}

.lore-heading {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(23, 24, 21, 0.32);
}

.lore-card p {
  margin: 12px 0;
  font-size: clamp(0.76rem, 0.75vw, 0.93rem);
  font-weight: 620;
  line-height: 1.43;
}

.lore-footer {
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(23, 24, 21, 0.32);
}

.lore-footer span {
  color: rgba(23, 24, 21, 0.68);
  font-size: 8px;
  text-align: right;
}

.character-zone {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  min-width: 0;
  perspective: 1100px;
}

.character-aura {
  position: absolute;
  inset: 14% 6% 7% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 255, 88, 0.2), rgba(145, 185, 159, 0.08) 43%, transparent 69%);
  filter: blur(16px);
  animation: aura 4.5s ease-in-out infinite;
}

.character-wrap {
  position: absolute;
  z-index: 4;
  inset: 0 -2% 1% -8%;
  display: grid;
  place-items: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
}

.character {
  position: relative;
  z-index: 3;
  display: block;
  width: min(89%, 760px);
  height: auto;
  border: clamp(5px, 0.42vw, 8px) solid rgba(238, 230, 209, 0.96);
  outline: 1px solid rgba(23, 24, 21, 0.72);
  background: #fff;
  box-shadow: 18px 22px 0 rgba(185, 131, 75, 0.52), 0 34px 50px rgba(0, 0, 0, 0.34);
  user-select: none;
  animation: pons-float 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.character-shadow {
  position: absolute;
  z-index: 1;
  bottom: 5%;
  left: 38%;
  width: 45%;
  height: 7%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.52);
  filter: blur(15px);
  animation: shadow-breathe 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px dashed rgba(238, 230, 209, 0.27);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  top: 12%;
  right: -9%;
  width: 88%;
  aspect-ratio: 1;
  animation: orbit-spin 30s linear infinite;
}

.orbit-one span {
  position: absolute;
  top: 7%;
  left: 16%;
  color: rgba(238, 230, 209, 0.56);
  font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.16em;
}

.orbit-two {
  top: 22%;
  right: 2%;
  width: 66%;
  aspect-ratio: 1;
  border-color: rgba(199, 255, 88, 0.29);
  animation: orbit-spin 17s linear infinite reverse;
}

.spec-tag {
  position: absolute;
  z-index: 7;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--kraft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  transform: rotate(-3deg);
}

.spec-tag span {
  font-size: 7px;
  letter-spacing: 0.18em;
  opacity: 0.64;
}

.spec-tag strong {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.tag-one {
  top: 21%;
  left: 1%;
}

.tag-two {
  right: 0;
  bottom: 16%;
  transform: rotate(2.6deg);
}

.character-caption {
  position: absolute;
  z-index: 6;
  right: 4%;
  bottom: 2%;
  margin: 0;
  color: rgba(238, 230, 209, 0.62);
  font: 750 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.13em;
}

.ticker {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(38px, 5.2vh, 58px);
  overflow: hidden;
  color: var(--ink);
  background: var(--acid);
  border-top: 2px solid var(--paper);
  transform: rotate(-0.15deg) scale(1.005);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: clamp(25px, 2.6vw, 52px);
  width: max-content;
  height: 100%;
  padding-left: 2vw;
  animation: ticker-slide 26s linear infinite;
  will-change: transform;
}

.ticker span {
  font-size: clamp(0.72rem, 0.84vw, 1rem);
  font-weight: 950;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.ticker i {
  font-size: 16px;
  font-style: normal;
}

.reveal {
  opacity: 0;
  animation: reveal-in 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.spark {
  position: fixed;
  z-index: 150;
  width: 5px;
  aspect-ratio: 1;
  pointer-events: none;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--acid);
  animation: spark-pop 550ms ease-out forwards;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(22px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes pons-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-22px) rotate(1.2deg); }
}

@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 0.48; }
  50% { transform: scaleX(0.76); opacity: 0.28; }
}

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

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

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

@keyframes noise-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(2%, -3%, 0); }
  50% { transform: translate3d(-4%, 2%, 0); }
  75% { transform: translate3d(3%, 4%, 0); }
  100% { transform: translate3d(-2%, -4%, 0); }
}

@keyframes title-glitch {
  0%, 100% { opacity: 0; }
  15%, 32%, 58%, 76% { opacity: 0.84; }
  22%, 46%, 68%, 90% { opacity: 0; }
}

@keyframes live-pulse {
  65%, 100% { box-shadow: 0 0 0 8px rgba(199, 255, 88, 0); }
}

@keyframes spark-pop {
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

@media (min-width: 1680px) and (min-height: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(680px, 0.95fr);
  }

  .character-wrap {
    inset: -4% -5% -2% -8%;
  }

  .lore-card {
    width: 690px;
  }
}

@media (max-width: 1180px) {
  .case-stamp {
    display: none;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  }

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

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

@media (max-width: 840px), (max-height: 640px) and (orientation: landscape) {
  body {
    overflow-y: auto;
  }

  .site-shell {
    min-height: 100svh;
    overflow: hidden;
  }

  .topbar {
    margin-inline: 20px;
  }

  .text-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100svh - 76px);
    padding: 42px 20px 92px;
  }

  .hero-copy {
    min-height: 660px;
  }

  .hero-title {
    font-size: clamp(4.4rem, 19vw, 8rem);
  }

  .hero-dek {
    max-width: 65%;
  }

  .lore-card {
    width: min(580px, 94%);
    margin-top: 400px;
  }

  .character-zone {
    position: absolute;
    top: 150px;
    right: -13%;
    width: 77%;
    height: 600px;
  }

  .tag-one,
  .tag-two,
  .character-caption {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-copy {
    display: none;
  }

  .hero-copy {
    min-height: 720px;
  }

  .hero-title {
    font-size: clamp(3.7rem, 20vw, 6rem);
  }

  .hero-dek {
    max-width: 80%;
    font-size: 0.92rem;
  }

  .character-zone {
    top: 230px;
    right: -25%;
    width: 100%;
    height: 500px;
  }

  .lore-card {
    margin-top: 390px;
    width: 100%;
  }

  .lore-heading,
  .lore-footer {
    font-size: 7px;
  }

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

@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;
  }

  .cursor-glow,
  .page-noise {
    display: none;
  }
}
