@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fredoka:wght@500;600;700&display=swap');

:root {
  --ink: #0c0714;
  --acid: #efff35;
  --pink: #ff2cb8;
  --cyan: #42f5f2;
  --paper: #fff8ef;
  --line: 2px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--acid);
  font-family: 'DM Mono', monospace;
  cursor: crosshair;
}
a, button { color: inherit; font: inherit; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--cyan); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 16px; background: white; border: var(--line); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.noise { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .09; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
#spores { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.cursor-glow { position: fixed; z-index: 1; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,44,184,.55), transparent 66%); transform: translate(-50%, -50%); filter: blur(10px); }

.topbar { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 20px clamp(18px, 3vw, 48px); }
.mini-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.04em; }
.mini-logo img { border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.sound-toggle { display: flex; align-items: center; gap: 10px; border: var(--line); border-radius: 999px; padding: 10px 14px; background: var(--paper); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.sound-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); transition: .2s; }
.sound-toggle[aria-pressed="true"] .sound-dot { background: var(--cyan); box-shadow: 0 0 0 5px rgba(66,245,242,.3); }

.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(300px, .74fr) minmax(540px, 1.26fr); align-items: center; gap: clamp(24px, 4vw, 68px); padding: 110px clamp(18px, 4vw, 64px) 56px; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(circle at 77% 27%, var(--cyan), transparent 20%), radial-gradient(circle at 12% 84%, var(--pink), transparent 24%), linear-gradient(135deg, var(--acid), #fffb00 52%, #adff47); }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(12,7,20,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(12,7,20,.12) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 92%); }
.hero-copy { position: relative; z-index: 3; }
.eyebrow, .micro { text-transform: uppercase; font-size: .75rem; font-weight: 500; letter-spacing: .08em; }
.eyebrow span { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: 8px; border: var(--line); border-radius: 50%; background: var(--pink); color: white; }
h1 { margin: 12px 0 -8px; font: 700 clamp(4.8rem, 10vw, 10.5rem)/.82 'Fredoka', sans-serif; letter-spacing: -.085em; text-transform: lowercase; transform: rotate(-3deg); text-shadow: 5px 5px 0 var(--paper), 9px 9px 0 var(--pink); }
.ticker { display: inline-block; margin: 14px 0 10px; padding: 4px 12px 7px; border: var(--line); background: var(--cyan); font: 600 clamp(1.4rem, 3vw, 2.4rem)/1 'Fredoka', sans-serif; transform: rotate(2deg); box-shadow: 5px 5px 0 var(--ink); }
.intro { max-width: 540px; margin: 20px 0 28px; font: 600 clamp(1.1rem, 2vw, 1.55rem)/1.28 'Fredoka', sans-serif; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; justify-content: space-between; align-items: center; gap: 22px; min-width: 116px; padding: 14px 16px; border: var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-weight: 500; box-shadow: 5px 5px 0 var(--ink); transition: color .18s, background .18s, box-shadow .18s; }
.pill:hover { color: white; background: var(--pink); box-shadow: 2px 2px 0 var(--ink); }
.pill span { font-size: 1.25em; }

.portal-wrap { position: relative; z-index: 2; perspective: 1000px; }
.portal-card { position: relative; margin: 0; overflow: hidden; border: 4px solid var(--ink); border-radius: 44% 56% 47% 53% / 54% 41% 59% 46%; background: #170c27; box-shadow: 16px 20px 0 var(--ink), 28px 34px 0 var(--pink); transform-style: preserve-3d; transition: transform .15s ease-out; animation: blob 10s ease-in-out infinite; }
.portal-card img { display: block; width: 100%; height: auto; min-height: 330px; object-fit: cover; transform: scale(1.04); filter: saturate(1.1) contrast(1.04); }
.portal-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.34) 49%, transparent 62%); transform: translateX(-120%); animation: sheen 6s ease-in-out infinite; }
.portal-ring { position: absolute; inset: -26px; border: 3px dashed var(--ink); border-radius: 48% 52% 58% 42%; animation: spin 18s linear infinite; }
.drag-note { position: absolute; right: 4%; bottom: -54px; margin: 0; padding: 7px 12px; border: var(--line); background: var(--paper); transform: rotate(-2deg); font-size: .75rem; }
.orbit { position: absolute; z-index: 4; display: grid; place-items: center; border: var(--line); border-radius: 50%; background: var(--paper); font: 700 1.8rem 'Fredoka'; box-shadow: 5px 5px 0 var(--ink); animation: float 4s ease-in-out infinite; }
.orbit-a { top: 17%; left: 43%; width: 74px; height: 74px; background: var(--cyan); }
.orbit-b { right: 3%; bottom: 14%; width: 92px; height: 92px; background: var(--pink); color: white; animation-delay: -2s; }

.contract { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 32px; padding: clamp(72px, 10vw, 150px) clamp(18px, 6vw, 90px); color: var(--paper); background: var(--ink); overflow: hidden; }
.contract::before { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -320px; border-radius: 50%; border: 90px solid var(--pink); box-shadow: 0 0 0 70px var(--cyan), 0 0 0 140px var(--acid); opacity: .8; }
.contract h2 { position: relative; margin: 10px 0 0; font: 700 clamp(3.2rem, 8vw, 8rem)/.8 'Fredoka'; letter-spacing: -.07em; }
.copy-card { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 0; padding: clamp(20px, 3vw, 36px); border: 3px solid var(--paper); background: transparent; color: var(--paper); text-align: left; cursor: pointer; box-shadow: 12px 12px 0 var(--pink); transition: .2s; }
.copy-card:hover { background: var(--acid); color: var(--ink); box-shadow: 5px 5px 0 var(--cyan); }
.ca-value { overflow: hidden; text-overflow: ellipsis; font: 600 clamp(1.8rem, 5vw, 4.5rem) 'Fredoka'; }
.copy-label { flex: none; border: 1px solid currentColor; border-radius: 999px; padding: 10px 14px; text-transform: uppercase; }

.ticker-band { position: relative; z-index: 3; overflow: hidden; padding: 18px 0; border-block: 3px solid var(--ink); background: var(--pink); color: white; transform: rotate(-1deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; font: 700 clamp(1.4rem, 3vw, 2.4rem) 'Fredoka'; white-space: nowrap; animation: marquee 18s linear infinite; }
footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding: 44px clamp(18px, 4vw, 64px) 30px; background: var(--acid); font-size: .78rem; text-transform: uppercase; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; padding: 14px 20px; border: var(--line); border-radius: 999px; background: var(--cyan); box-shadow: 6px 6px 0 var(--ink); font-weight: 700; transform: translate(-50%, 160%); transition: transform .3s cubic-bezier(.2,.8,.2,1.2); }
.toast.show { transform: translate(-50%, 0); }

@keyframes blob { 0%,100% { border-radius: 44% 56% 47% 53% / 54% 41% 59% 46%; } 50% { border-radius: 56% 44% 55% 45% / 42% 55% 45% 58%; } }
@keyframes sheen { 0%, 70%, 100% { transform: translateX(-120%); } 85% { transform: translateX(120%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-18px) rotate(8deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 106px; }
  .hero-copy { text-align: center; }
  .eyebrow { display: none; }
  h1 { font-size: clamp(5.2rem, 22vw, 9rem); }
  .intro { margin-inline: auto; }
  .actions { justify-content: center; }
  .portal-wrap { width: min(94%, 740px); margin: 22px auto 30px; }
  .portal-card img { min-height: 240px; }
  .orbit-a { left: 6%; top: 42%; }
  .contract { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar { padding: 14px; }
  .sound-label { display: none; }
  .sound-toggle { padding: 12px; }
  .hero { min-height: auto; padding: 94px 14px 72px; gap: 30px; }
  h1 { font-size: clamp(4.5rem, 25vw, 7rem); text-shadow: 3px 3px 0 var(--paper), 6px 6px 0 var(--pink); }
  .ticker { font-size: 1.45rem; }
  .intro { font-size: 1.05rem; }
  .actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pill { min-width: 0; gap: 6px; padding: 12px; }
  .portal-card { border-width: 3px; box-shadow: 8px 10px 0 var(--ink), 14px 17px 0 var(--pink); }
  .portal-card img { min-height: 180px; }
  .portal-ring { inset: -14px; }
  .drag-note, .orbit { display: none; }
  .contract { padding: 72px 16px; }
  .contract h2 { font-size: 3.45rem; }
  .copy-card { padding: 18px; box-shadow: 7px 7px 0 var(--pink); }
  footer { flex-direction: column; }
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .cursor-glow, #spores { display: none; }
}
