@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #030504;
  --panel: #071009;
  --ink: #f4fff3;
  --muted: #a4b5a4;
  --green: #4dff35;
  --green-2: #b9ff76;
  --line: rgba(97,255,71,.24);
  --shadow: 0 0 30px rgba(77,255,53,.3);
  font-family: "Space Mono", monospace;
  color: var(--ink);
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--bg); }

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(45,153,34,.16), transparent 34rem),
    linear-gradient(90deg, transparent 49.9%, rgba(77,255,53,.05) 50%, transparent 50.1%),
    #030504;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  box-shadow: inset 0 0 100px rgba(0,0,0,.9);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 49;
  opacity: .065;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77,255,53,.12), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: .35rem;
  height: 100vh;
  background: rgba(255,255,255,.05);
  z-index: 80;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--green-2), var(--green));
  box-shadow: 0 0 20px var(--green);
}

.topbar {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  height: 5.5rem;
  padding: 0 3vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(180deg, rgba(3,5,4,.92), rgba(3,5,4,.54), transparent);
  backdrop-filter: blur(8px);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; font-family: "Archivo Black", sans-serif; font-size: .82rem; line-height: .85; letter-spacing: -.02em; }
.brand small { color: var(--green); font: 700 .55rem/1 "Space Mono", monospace; letter-spacing: .12em; }

.bag-mark {
  position: relative;
  display: inline-block;
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
  border: 1px solid #d7a865;
  clip-path: polygon(8% 15%, 88% 0, 100% 82%, 16% 100%);
  background: linear-gradient(145deg, #d6aa68, #7a4d28);
  box-shadow: 0 0 16px rgba(77,255,53,.22);
}
.bag-mark i { position: absolute; top: .72rem; width: .34rem; height: .34rem; border-radius: 50%; background: #030504; }
.bag-mark i:first-child { left: .42rem; }
.bag-mark i:nth-child(2) { right: .42rem; }
.bag-mark b { position: absolute; left: 50%; top: 1.18rem; width: .24rem; height: .18rem; transform: translateX(-50%); border-radius: 50%; background: #ffa6a6; }

.topbar nav { display: flex; gap: 2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.topbar nav a { color: #d6e3d6; transition: color .2s; }
.topbar nav a:hover { color: var(--green); }
.top-actions { justify-self: end; display: flex; gap: .5rem; }

.button {
  min-height: 2.9rem;
  padding: .8rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  border: 1px solid var(--line);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow); }
.button.solid { color: #020602; background: var(--green); border-color: var(--green); }
.button.solid:hover { background: var(--green-2); }
.button.ghost { background: rgba(0,0,0,.38); }
.button.glass { background: rgba(5,12,7,.64); backdrop-filter: blur(10px); }
.button.big { min-height: 3.7rem; padding: 1rem 1.5rem; font-size: .8rem; }

.hero { position: relative; min-height: min(68vw, 100vh); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { width: 100%; height: auto; object-fit: contain; filter: saturate(1.08) contrast(1.06); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.88) 0, rgba(0,0,0,.56) 38%, transparent 62%), linear-gradient(0deg, var(--bg) 0, transparent 24%); }
.hero-copy { position: absolute; z-index: 2; left: 6vw; top: 50%; width: min(44rem, 48vw); transform: translateY(-38%); }
.eyebrow { display: flex; align-items: center; gap: .8rem; margin: 0 0 1rem; color: var(--green-2); font-size: .67rem; font-weight: 700; letter-spacing: .16em; }
.eyebrow span { width: 2.5rem; height: 1px; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1, h2, h3 { margin: 0; font-family: "Archivo Black", sans-serif; text-transform: uppercase; letter-spacing: -.065em; line-height: .86; }
h1 { max-width: 10ch; font-size: clamp(3.3rem, 8.5vw, 9rem); text-shadow: 0 0 35px rgba(77,255,53,.2); }
.hero-thesis { max-width: 46rem; margin: 1.4rem 0 1.8rem; color: #d8e4d8; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.vertical-label { position: absolute; right: 1rem; top: 50%; writing-mode: vertical-rl; transform: translateY(-50%); font-size: .6rem; letter-spacing: .25em; color: rgba(255,255,255,.42); }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--green); color: #020502; }
.ticker div { display: flex; width: max-content; animation: ticker 26s linear infinite; }
.ticker span, .ticker i { padding: .75rem 1rem; font: 700 .72rem/1 "Space Mono", monospace; letter-spacing: .13em; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { position: relative; max-width: 1500px; margin: 0 auto; padding: clamp(6rem, 12vw, 12rem) 6vw; }
.section-number { position: absolute; top: 3rem; left: 6vw; font-size: .65rem; color: var(--green); letter-spacing: .16em; }
.origin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(18rem, 1fr); gap: clamp(3rem, 9vw, 10rem); }
.origin h2, .worlds-intro h2, .chart h2 { font-size: clamp(3rem, 7vw, 7rem); }
.story { padding-top: 2.6rem; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.9; }
.story .lead { color: var(--ink); font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.45; }
.story strong { color: var(--green); }

.copy-ticker { width: 100%; margin-top: 2rem; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.copy-ticker span { color: var(--green); font-weight: 700; }
.copy-ticker em { font-size: .6rem; color: var(--muted); font-style: normal; letter-spacing: .15em; }
.copy-ticker:hover { border-color: var(--green); box-shadow: inset 0 0 30px rgba(77,255,53,.08); }

.worlds { position: relative; padding-bottom: 8rem; }
.worlds::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 22rem; bottom: 4rem; width: 2px; background: linear-gradient(transparent, var(--green), transparent); box-shadow: 0 0 24px var(--green); }
.worlds-intro { min-height: 40rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.world { position: relative; min-height: 86vh; margin: 0 auto 9rem; display: grid; align-items: center; max-width: 1600px; }
.world-frame { position: relative; margin: 0; width: min(78vw, 1250px); border: 1px solid rgba(77,255,53,.3); background: #020402; box-shadow: 0 0 80px rgba(32,132,24,.12); overflow: hidden; }
.world-frame::before { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255,255,255,.08); pointer-events: none; }
.world-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(77,255,53,.08)); pointer-events: none; }
.world-frame img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter 1.2s; }
.world:hover img { transform: scale(1.025); filter: saturate(1.12); }
.world-left .world-frame { margin-left: 3vw; clip-path: polygon(0 5%, 95% 0, 100% 92%, 4% 100%); }
.world-right .world-frame { margin-left: auto; margin-right: 3vw; clip-path: polygon(5% 0, 100% 6%, 96% 100%, 0 92%); }
.world-copy { position: absolute; z-index: 3; max-width: 31rem; padding: 2rem; background: rgba(2,5,3,.83); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.world-left .world-copy { right: 5vw; bottom: 5vh; }
.world-right .world-copy { left: 5vw; bottom: 5vh; }
.world-copy span { display: block; margin-bottom: .8rem; color: var(--green); font-size: .66rem; letter-spacing: .18em; }
.world-copy h3 { font-size: clamp(2.2rem, 4.8vw, 5rem); }
.world-copy p { margin: 1rem 0 0; color: var(--muted); line-height: 1.7; }

.chart { padding-top: 9rem; }
.chart-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.chart-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.terminal { border: 1px solid rgba(77,255,53,.38); background: #020402; box-shadow: 0 0 70px rgba(77,255,53,.1); }
.terminal-bar { min-height: 3.5rem; padding: .8rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .1em; }
.terminal-bar > span:last-child { justify-self: end; color: var(--muted); }
.terminal-dots { display: flex; gap: .4rem; }
.terminal-dots i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.terminal-dots i:nth-child(2) { opacity: .5; }
.terminal-dots i:nth-child(3) { opacity: .2; }
.terminal iframe { display: block; width: 100%; height: min(72vh, 720px); min-height: 560px; border: 0; background: #050805; }

.finale { position: relative; min-height: 110vh; margin-top: 8rem; display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--line); }
.finale::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, rgba(0,0,0,.35) 57%, #020402 88%); }
.finale > img { width: min(95vw, 1100px); height: auto; aspect-ratio: 1; object-fit: contain; filter: saturate(1.08) contrast(1.06); }
.finale-copy { position: absolute; z-index: 2; left: 8vw; top: 50%; transform: translateY(-50%); }
.finale-copy h2 { font-size: clamp(3.4rem, 9vw, 9rem); }
.finale-actions { display: flex; gap: .7rem; margin-top: 2rem; flex-wrap: wrap; }

footer { min-height: 10rem; padding: 2rem 3vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .65rem; letter-spacing: .1em; }
footer p:last-child { justify-self: end; }

.reveal { opacity: 0; transform: translateY(3rem); transition: opacity .8s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; height: 4.6rem; }
  .topbar nav { display: none; }
  .top-actions .ghost { display: none; }
  .hero { min-height: 46rem; align-items: start; padding-top: 4.5rem; }
  .hero-art { margin-top: 0; width: 100%; min-height: 0; height: auto; object-fit: contain; }
  .hero-copy { left: 5vw; right: 5vw; top: auto; bottom: 4rem; width: auto; transform: none; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 8%, rgba(0,0,0,.7) 50%, transparent 88%); }
  .origin { grid-template-columns: 1fr; }
  .story { padding-top: 0; }
  .world { min-height: auto; margin-bottom: 7rem; padding: 0 4vw; }
  .world-frame, .world-left .world-frame, .world-right .world-frame { width: 100%; margin: 0; }
  .world-copy, .world-left .world-copy, .world-right .world-copy { position: relative; left: auto; right: auto; bottom: auto; width: 88%; margin: -2rem auto 0; }
  .worlds::before { display: none; }
  .chart-head { align-items: start; flex-direction: column; }
  .terminal iframe { min-height: 480px; }
  .finale { min-height: 75rem; align-items: start; padding-top: 3rem; }
  .finale-copy { left: 5vw; top: auto; bottom: 5rem; transform: none; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer p:last-child { justify-self: center; }
}

@media (max-width: 620px) {
  .cursor-glow { display: none; }
  .brand span:last-child { display: none; }
  .topbar { padding: 0 1rem; }
  .button { min-height: 2.7rem; padding: .7rem .8rem; }
  .hero { min-height: 43rem; }
  .hero-art { min-height: 0; width: 100%; height: auto; object-fit: contain; }
  .hero-copy { bottom: 2.5rem; }
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-thesis { font-size: .92rem; }
  .vertical-label { display: none; }
  .section { padding-left: 1.2rem; padding-right: 1.2rem; }
  .section-number { left: 1.2rem; }
  .origin h2, .worlds-intro h2, .chart h2 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .worlds-intro { min-height: 31rem; }
  .world { padding: 0 .75rem; }
  .world-frame { clip-path: none !important; }
  .world-copy { width: calc(100% - 1rem); padding: 1.2rem; }
  .world-copy h3 { font-size: 2.4rem; }
  .terminal-bar { grid-template-columns: 1fr auto; }
  .terminal-bar > span:last-child { display: none; }
  .terminal iframe { min-height: 420px; }
  .finale { min-height: 55rem; }
  .finale > img { width: min(94vw, 800px); max-width: 100%; }
  .finale-copy h2 { font-size: clamp(3rem, 15vw, 5.5rem); }
}

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