/* ═══════════════════════════════════════════════════════════
   BAG CHASING DAD — Ascended Trash Aesthetic
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #0e0814;
  --deep-purple: #1a1028;
  --alley-purple: #2a1845;
  --purple-glow: #7c3aed;
  --lean: #9333ea;
  --lean-bright: #a855f7;
  --lean-glow: #c084fc;
  --hat-green: #22c55e;
  --dumpster-green: #166534;
  --money-green: #4d7c3a;
  --cash-beige: #d4c4a0;
  --gold: #ffd166;
  --diamond: #dbeafe;
  --silver: #94a3b8;
  --sunset: #ff7b3a;
  --sunset-gold: #ffb347;
  --rizzmas-red: #d42426;
  --cloud: rgba(219, 234, 254, 0.06);
  --text: #ede8df;
  --text-muted: rgba(237, 232, 223, 0.58);
  --accent: var(--hat-green);
  --font-display: 'Anton', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-luxury: 'Cinzel', serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-glow) var(--void);
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(147, 51, 234, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(255, 123, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(77, 124, 58, 0.06) 0%, transparent 60%),
    var(--void);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--lean);
  color: white;
}

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

/* ─── Global overlays ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.5s steps(1) infinite;
}

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

.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

/* ─── Floating decorations ─── */
.floating-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.deco.lean-cup {
  position: absolute;
  width: 30px;
  height: 40px;
  background: white;
  border-radius: 4px 4px 8px 8px;
  opacity: 0.06;
}

.deco.lean-cup::before {
  content: '';
  position: absolute;
  inset: 6px 4px 4px;
  background: var(--lean);
  border-radius: 2px;
  animation: leanPulse 3s ease-in-out infinite;
}

.deco.lean-cup--1 { top: 20%; right: 8%; animation: floatDeco 8s ease-in-out infinite; }
.deco.lean-cup--2 { bottom: 30%; left: 5%; animation: floatDeco 10s ease-in-out infinite reverse; }

@keyframes leanPulse {
  0%, 100% { box-shadow: 0 0 10px var(--lean); }
  50% { box-shadow: 0 0 25px var(--lean-bright); }
}

@keyframes floatDeco {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.halo-ring {
  top: 15%;
  left: 50%;
  width: 120px;
  height: 30px;
  border: 2px solid rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: haloFloat 6s ease-in-out infinite;
}

@keyframes haloFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.1; }
  50% { transform: translateX(-50%) translateY(-10px); opacity: 0.2; }
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(14, 8, 20, 0.92) 0%, transparent 100%);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.nav-logo-mark {
  color: var(--hat-green);
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--hat-green);
  transition: width 0.3s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-sqs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-sqs:hover {
  border-color: var(--lean-bright);
  box-shadow: 0 0 20px rgba(155, 77, 202, 0.3);
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 8rem 4rem 4rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-content {
  animation: heroFade 0.9s ease both;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cloud {
  position: absolute;
  background: var(--cloud);
  border-radius: 50%;
  filter: blur(40px);
  animation: cloudDrift linear infinite;
}

.cloud--1 { width: 400px; height: 200px; top: 10%; left: -10%; animation-duration: 40s; }
.cloud--2 { width: 300px; height: 150px; top: 40%; right: -5%; animation-duration: 35s; animation-delay: -10s; }
.cloud--3 { width: 500px; height: 250px; bottom: 10%; left: 20%; animation-duration: 50s; animation-delay: -20s; }

@keyframes cloudDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(100px); }
}

.stairway {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 200px;
  height: 300px;
  background: linear-gradient(180deg, transparent 0%, rgba(200, 200, 220, 0.03) 100%);
  clip-path: polygon(30% 100%, 70% 100%, 100% 0%, 0% 0%);
  opacity: 0.5;
}

.hero-diamonds {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,215,0,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(200,220,255,0.4) 0%, transparent 100%);
  animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
}

.badge--green {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--hat-green);
}

.badge--purple {
  background: rgba(147, 51, 234, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  color: var(--lean-glow);
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.9;
  margin-bottom: 1rem;
}

.title-line {
  display: block;
  font-size: clamp(3.5rem, 8vw, 7rem);
  letter-spacing: 0.02em;
  position: relative;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.3);
}

.title-line--1 {
  animation: titleFill 0.9s ease 0.15s forwards;
}

.title-line--2 {
  color: var(--hat-green);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.35);
  animation: titleSlide 0.7s ease 0.3s both;
}

@keyframes titleFill {
  to {
    color: var(--text);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 60px rgba(255,255,255,0.1);
  }
}

@keyframes titleSlide {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-alias {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.alias-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  opacity: 0.7;
}

.alias-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero-tagline {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-tagline a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.hero-tagline a:hover {
  color: var(--hat-green);
  border-color: var(--hat-green);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-meta {
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.25rem 1.5rem;
}

.meta-list {
  margin: 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-row dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta-row dd {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.meta-row dd a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s, border-color 0.2s;
}

.meta-row dd a:hover {
  color: var(--hat-green);
  border-color: var(--hat-green);
}

.about {
  padding: 5rem 4rem;
  position: relative;
  z-index: 2;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-main {
  min-width: 0;
}

.mascot-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  perspective: 800px;
  pointer-events: none;
}

.mascot-orbit {
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.2);
  animation: mascotOrbit 18s linear infinite;
}

.mascot-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22) 0%, rgba(255, 123, 58, 0.08) 45%, transparent 70%);
  animation: mascotGlow 4s ease-in-out infinite alternate;
}

.mascot-img {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: mascotFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
}

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

@keyframes mascotGlow {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes mascotOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-img,
  .mascot-glow,
  .mascot-orbit {
    animation: none;
  }
}

.about-content {
  max-width: 720px;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content a {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.2s, border-color 0.2s;
}

.about-content a:hover {
  color: var(--hat-green);
  border-color: var(--hat-green);
}

.about-content strong {
  color: var(--text);
  font-weight: 600;
}

.profile {
  padding: 4rem 4rem 6rem;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1.5rem;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before { transform: translateX(100%); }

.btn--primary {
  background: var(--hat-green);
  color: var(--void);
  font-weight: 700;
}

.btn--primary:hover {
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.btn--secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}

.btn--secondary:hover {
  border-color: var(--lean-glow);
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.25);
  transform: translateY(-2px);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.hero-scroll a:hover { color: var(--hat-green); }

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--lean), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero visual — live terminal */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: heroVisualIn 0.8s ease 0.2s both;
}

.hero-terminal {
  width: 100%;
  max-width: 340px;
  border: 1px solid rgba(147, 51, 234, 0.25);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 40px rgba(147, 51, 234, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.hero-terminal-dot:nth-child(1) { background: #ff5f57; }
.hero-terminal-dot:nth-child(2) { background: #febc2e; }
.hero-terminal-dot:nth-child(3) { background: #28c840; }

.hero-terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--lean-glow);
  opacity: 0.8;
}

.hero-terminal-body {
  padding: 1.25rem 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.9;
  position: relative;
}

.hero-terminal-body p { margin: 0; }

.t-dim { color: rgba(148, 163, 184, 0.7); }

.t-out { color: var(--text); }

#heroFormCycle {
  color: var(--lean-glow);
  transition: color 0.4s;
}

#heroRizzCount {
  color: var(--hat-green);
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--lean-glow);
  margin-top: 4px;
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Stats bar ─── */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(90deg, transparent, rgba(42, 24, 69, 0.6), transparent);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 2;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--hat-green);
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.25);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ─── Section headers ─── */
.section-header {
  margin-bottom: 4rem;
}

.section-header--left { text-align: left; }
.section-header--center { text-align: center; }

.section-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--lean-bright);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.section-title em {
  font-family: var(--font-luxury);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.section-desc {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
}

.section-header--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Runtime ─── */
.runtime {
  padding: 6rem 4rem 8rem;
  position: relative;
  z-index: 2;
}

.runtime-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.code-block--featured {
  border-color: rgba(147, 51, 234, 0.25);
  box-shadow: 0 0 40px rgba(147, 51, 234, 0.08);
}

.code-status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--lean-glow);
  letter-spacing: 0.05em;
}

.form-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.5rem 0.5rem 2.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.form-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
  color: inherit;
  transition: all 0.25s;
}

.form-link .str { pointer-events: none; }

.form-link:hover {
  background: rgba(147, 51, 234, 0.12);
  border-color: rgba(168, 85, 247, 0.25);
}

.form-link.is-active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

.code-content--tail {
  padding-top: 0;
  margin-top: -0.5rem;
}

.form-viewer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-viewer-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  max-height: 280px;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.4s, background 0.4s;
}

.form-viewer-screen[data-theme="heaven"] {
  border-color: rgba(191, 219, 254, 0.15);
  background: radial-gradient(ellipse at center, rgba(191, 219, 254, 0.08) 0%, rgba(14, 8, 20, 0.55) 100%);
}

.form-viewer-screen[data-theme="alley"] {
  border-color: rgba(147, 51, 234, 0.2);
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.12) 0%, rgba(14, 8, 20, 0.55) 100%);
}

.form-viewer-screen[data-theme="money"] {
  border-color: rgba(77, 124, 58, 0.2);
  background: radial-gradient(ellipse at center, rgba(212, 196, 160, 0.08) 0%, rgba(14, 8, 20, 0.55) 100%);
}

.form-viewer-screen[data-theme="rizzmas"] {
  border-color: rgba(255, 123, 58, 0.2);
  background: radial-gradient(ellipse at center, rgba(255, 123, 58, 0.1) 0%, rgba(14, 8, 20, 0.55) 100%);
}

.form-viewer-img-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(14, 8, 20, 0.65);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.form-viewer-img {
  max-width: 100%;
  max-height: 210px;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, filter 0.35s ease;
  filter:
    drop-shadow(0 0 10px rgba(14, 8, 20, 1))
    drop-shadow(0 0 22px rgba(14, 8, 20, 0.95))
    drop-shadow(0 0 36px rgba(14, 8, 20, 0.85));
}

.form-viewer-screen[data-theme="heaven"] .form-viewer-img.is-active {
  filter:
    drop-shadow(0 0 10px rgba(14, 8, 20, 1))
    drop-shadow(0 0 22px rgba(14, 8, 20, 0.95))
    drop-shadow(0 0 28px rgba(191, 219, 254, 0.12));
}

.form-viewer-screen[data-theme="alley"] .form-viewer-img.is-active {
  filter:
    drop-shadow(0 0 10px rgba(14, 8, 20, 1))
    drop-shadow(0 0 22px rgba(14, 8, 20, 0.95))
    drop-shadow(0 0 28px rgba(147, 51, 234, 0.18));
}

.form-viewer-screen[data-theme="money"] .form-viewer-img.is-active {
  filter:
    drop-shadow(0 0 10px rgba(14, 8, 20, 1))
    drop-shadow(0 0 22px rgba(14, 8, 20, 0.95))
    drop-shadow(0 0 28px rgba(212, 196, 160, 0.1));
}

.form-viewer-screen[data-theme="rizzmas"] .form-viewer-img.is-active {
  filter:
    drop-shadow(0 0 10px rgba(14, 8, 20, 1))
    drop-shadow(0 0 22px rgba(14, 8, 20, 0.95))
    drop-shadow(0 0 28px rgba(255, 123, 58, 0.15));
}

.form-viewer-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.form-viewer-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}

.form-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.form-thumb {
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  aspect-ratio: 4/3;
}

.form-thumb-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 5px;
  background: rgba(14, 8, 20, 0.55);
}

.form-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(14, 8, 20, 1))
    drop-shadow(0 0 14px rgba(14, 8, 20, 0.9));
}

.form-thumb:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.form-thumb.is-active {
  border-color: var(--hat-green);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.2);
}

/* ─── Lore / Timeline ─── */
.lore {
  padding: 8rem 4rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.lore-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  letter-spacing: 0.1em;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--lean), var(--hat-green), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 3rem 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item[data-side="left"] {
  margin-left: 0;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item[data-side="right"] {
  margin-left: 50%;
  text-align: left;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--void);
  border: 2px solid var(--hat-green);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.35);
}

.timeline-item[data-side="left"] .timeline-dot { right: -7px; }
.timeline-item[data-side="right"] .timeline-dot { left: -7px; }

.timeline-era {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--lean-bright);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.timeline-content a {
  color: var(--hat-green);
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
  transition: border-color 0.3s;
}

.timeline-content a:hover {
  border-color: var(--hat-green);
}

/* ─── Manifesto ─── */
.manifesto {
  padding: 8rem 4rem;
  position: relative;
  z-index: 2;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.manifesto-quote {
  margin-top: 2rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
}

.manifesto-quote p {
  font-family: var(--font-luxury);
  font-size: 1.3rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--silver);
  margin-bottom: 1rem;
}

.manifesto-quote cite {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: normal;
}

.manifesto-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.m-card {
  background: rgba(26, 15, 46, 0.5);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.m-card:hover {
  box-shadow: 0 10px 40px rgba(155, 77, 202, 0.15);
  border-color: rgba(155, 77, 202, 0.2);
}

.m-card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.m-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.m-card p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Code block */
.code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
  max-width: 700px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot--r { background: #ff5f57; }
.code-dot--y { background: #febc2e; }
.code-dot--g { background: #28c840; }

.code-filename {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.code-content {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-content code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.kw { color: var(--lean-bright); }
.cm { color: var(--text-muted); font-style: italic; }
.var { color: var(--hat-green); }
.prop { color: #7dd3fc; }
.str { color: var(--sunset-gold); }
.fn { color: #f472b6; }

/* ─── Connect ─── */
.connect {
  padding: 8rem 4rem;
  position: relative;
  z-index: 2;
  text-align: center;
}

.connect-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(45, 27, 78, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.connect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background: rgba(26, 15, 46, 0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.connect-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s;
}

.connect-card--github .connect-card-glow { background: radial-gradient(circle at center, rgba(34, 197, 94, 0.12), transparent); }
.connect-card--x .connect-card-glow { background: radial-gradient(circle at center, rgba(255,255,255,0.1), transparent); }
.connect-card--sqs .connect-card-glow { background: radial-gradient(circle at center, rgba(155, 77, 202, 0.2), transparent); }

.connect-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
}

.connect-card:hover .connect-card-glow { opacity: 1; }

.connect-icon { position: relative; z-index: 1; }
.connect-icon--text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}

.connect-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.connect-handle {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}

.connect-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.connect-card:hover .connect-arrow {
  opacity: 1;
  transform: translateX(0);
}

.connect-footer-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.connect-motto {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--hat-green) !important;
}

/* ─── Footer ─── */
.footer {
  padding: 2rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

.footer-sep { opacity: 0.3; }

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 2rem 3rem;
    text-align: center;
  }

  .hero-content { order: 1; }
  .hero-meta { max-width: 400px; margin: 0 auto; }

  .hero-eyebrow, .hero-actions { justify-content: center; align-items: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-alias { justify-content: center; }

  .connect-grid { grid-template-columns: 1fr; }

  body { cursor: auto; }
  .cursor-glow { display: none; }
}

@media (max-width: 768px) {
  .nav { padding: 1rem; }
  .nav-links { display: none; }
  .about, .profile, .connect { padding: 4rem 1.5rem; }
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .mascot-stage { min-height: 320px; order: -1; }
  .mascot-img { width: min(320px, 85vw); }
  .hero { padding: 6rem 1.5rem 3rem; }
  .meta-row { grid-template-columns: 1fr; gap: 0.25rem; }
}
