/* ============================================================
   HOODCAT — v4, layered parallax art direction
   One accent. Deep blacks. The cat is the hero.
   ============================================================ */

:root {
  --bg: #18181b;
  --surface: #202024;
  --line: #2e2e33;
  --accent: #f08a2e;
  --paper: #efeae0;
  --ink: #1a1a1d;
  --text: #ecebe7;
  --muted: #9b9994;
  --font-display: "Bungee", cursive;
  --font-body: "Space Grotesk", sans-serif;
  --font-marker: "Permanent Marker", cursive;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* fine film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- type ---------- */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}

.center { text-align: center; }

.marker { font-family: var(--font-marker); color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(240, 138, 46, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(240, 138, 46, 0.35);
}

.btn-ghost {
  background: rgba(24, 24, 27, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text);
  border: 1px solid rgba(236, 235, 231, 0.25);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-big { font-size: 1.05rem; padding: 1.1rem 2.6rem; }

.btn-nav {
  background: var(--accent);
  color: var(--ink);
  font-size: 0.85rem;
  padding: 0.55rem 1.3rem;
}

.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(240, 138, 46, 0.3); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(24, 24, 27, 0.75), rgba(24, 24, 27, 0));
  transition: background 0.3s ease;
}

.nav.scrolled {
  background: rgba(24, 24, 27, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 46, 51, 0.6);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--text);
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

/* ============ HERO — the layered scene ============ */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
}

/* layer 0 — the alley */
.hero-bg {
  position: absolute;
  inset: -10% 0;
  background:
    linear-gradient(to bottom, rgba(24, 24, 27, 0.55), rgba(24, 24, 27, 0.35) 45%, rgba(24, 24, 27, 0.85) 100%),
    url("assets/bg-hero.webp") center / cover no-repeat;
  will-change: transform;
  transform: translate3d(0, var(--py, 0px), 0);
  z-index: 0;
}

/* layer 1 — the giant word, behind the cat */
.hero-word {
  position: absolute;
  top: clamp(9vh, 14vh, 18vh);
  left: 50%;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4.2rem, 17vw, 15.5rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--accent);
  text-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  will-change: transform;
  transform: translateX(calc(-50% + var(--mx, 0px))) translateY(var(--py, 0px));
}

.hero-word span {
  display: inline-block;
  animation: letter-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 65ms + 150ms);
}

@keyframes letter-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: translateY(0); }
}

/* layer 2 — the cat cutout */
.hero-cat {
  position: absolute;
  bottom: -3%;
  left: 50%;
  z-index: 2;
  width: min(68vh, 84vw);
  height: auto;
  transform: translateX(calc(-50% + var(--mx, 0px))) translateY(var(--py, 0px));
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.65));
  will-change: transform;
  animation: cat-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s backwards;
}

@keyframes cat-in {
  from { opacity: 0; transform: translateX(-50%) translateY(4%) scale(0.97); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* layer 3 — drifting dust */
.hero-dust { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

.hero-dust i {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 138, 46, 0.5);
  filter: blur(1px);
  animation: dust-rise linear infinite;
}

.hero-dust i:nth-child(1)  { left: 8%;  animation-duration: 13s; animation-delay: 0s; }
.hero-dust i:nth-child(2)  { left: 18%; animation-duration: 17s; animation-delay: 3s; width: 3px; height: 3px; }
.hero-dust i:nth-child(3)  { left: 28%; animation-duration: 15s; animation-delay: 7s; }
.hero-dust i:nth-child(4)  { left: 38%; animation-duration: 19s; animation-delay: 1s; width: 5px; height: 5px; }
.hero-dust i:nth-child(5)  { left: 50%; animation-duration: 14s; animation-delay: 5s; width: 3px; height: 3px; }
.hero-dust i:nth-child(6)  { left: 60%; animation-duration: 18s; animation-delay: 9s; }
.hero-dust i:nth-child(7)  { left: 70%; animation-duration: 13.5s; animation-delay: 2s; }
.hero-dust i:nth-child(8)  { left: 80%; animation-duration: 16s; animation-delay: 6s; width: 5px; height: 5px; }
.hero-dust i:nth-child(9)  { left: 88%; animation-duration: 20s; animation-delay: 4s; width: 3px; height: 3px; }
.hero-dust i:nth-child(10) { left: 95%; animation-duration: 15s; animation-delay: 8s; }

@keyframes dust-rise {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 0.7; }
  92% { opacity: 0.15; }
  100% { transform: translateY(-105vh); opacity: 0; }
}

/* layer 4 — ground fog for content readability */
.hero-fog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, rgba(24, 24, 27, 0.97) 12%, rgba(24, 24, 27, 0.66) 48%, transparent 100%);
}

/* layer 5 — the content */
.hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 620px;
  text-align: center;
  animation: content-in 0.9s ease 0.9s backwards;
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tagline {
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-tagline .marker { display: block; font-size: 1.05em; margin-top: 0.15rem; }

.ca-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(32, 32, 36, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(46, 46, 51, 0.9);
  border-radius: 12px;
  padding: 0.7rem 0.7rem 0.7rem 1.05rem;
  margin: 0 auto 1.2rem;
  max-width: 560px;
  text-align: left;
}

.ca-box code {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-all;
  flex: 1;
}

.btn-copy {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-copy:hover { border-color: var(--accent); color: var(--accent); }

.btn-copy.copied { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 22px;
  height: 34px;
  border: 2px solid rgba(236, 235, 231, 0.35);
  border-radius: 12px;
}

.scroll-hint span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: hint-drop 1.8s ease-in-out infinite;
}

@keyframes hint-drop {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  z-index: 5;
  overflow-x: hidden;
  overflow-x: clip;
  background: #141416;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  padding: 0.8rem 0;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-track span:nth-child(even) { color: var(--line); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections & parallax layers ---------- */

.section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 12vh, 8rem) clamp(1rem, 4vw, 3rem);
}

.parallax-bg {
  position: absolute;
  left: 0;
  top: -18%;
  width: 100%;
  height: 136%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}

.section-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(24, 24, 27, 0.62) 25%, rgba(24, 24, 27, 0.68) 75%, var(--bg) 100%);
}

.veil-dark {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(20, 20, 23, 0.78) 20%, rgba(20, 20, 23, 0.82) 80%, var(--bg) 100%);
}

.veil-footer {
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(24, 24, 27, 0.25) 30%, rgba(18, 18, 21, 0.85) 78%, rgba(18, 18, 21, 0.97) 100%);
}

.section > *:not(.parallax-bg):not(.section-veil):not(.float-wrap):not(.stars) { position: relative; z-index: 2; }

.lore-grid, .cards, .phases, .polaroids, .steps,
.section .eyebrow, .section h2, .section .center {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* lore */

.lore-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.lore-text p { color: var(--muted); max-width: 46ch; }

.lore-text p strong { color: var(--text); }

.quote { font-size: 1.4rem; margin-top: 1.4rem; transform: rotate(-1.5deg); display: inline-block; }

.lore-img {
  background: var(--paper);
  padding: 0.8rem;
  border-radius: 3px;
  transform: rotate(-1.2deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.lore-img img { border-radius: 2px; }

.lore-img figcaption {
  color: var(--ink);
  text-align: center;
  padding-top: 0.7rem;
  font-size: 1rem;
}

/* catonomics */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover { border-color: rgba(240, 138, 46, 0.5); transform: translateY(-4px); }

.card p.card-figure {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.9rem;
}

.card h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.card p { font-size: 0.95rem; color: var(--muted); }

/* roadmap */

.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.phase {
  background: rgba(32, 32, 36, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.phase:hover { border-color: rgba(240, 138, 46, 0.5); transform: translateY(-4px); }

.phase-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.phase.done .phase-tag { color: var(--accent); }

.phase h3 {
  font-family: var(--font-marker);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.phase p { font-size: 0.95rem; color: var(--muted); }

/* gallery */

.polaroids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.4rem);
  margin-top: 3rem;
}

.polaroid {
  position: relative;
  background: var(--paper);
  padding: 0.85rem 0.85rem 0.95rem;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(var(--tilt, -1.6deg));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.polaroid:nth-child(2n) { --tilt: 1.4deg; }
.polaroid:nth-child(3n) { --tilt: -0.8deg; }

.polaroid::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: 84px;
  height: 24px;
  background: rgba(240, 138, 46, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.polaroid:nth-child(2n)::before { transform: translateX(-50%) rotate(-2deg); background: rgba(239, 234, 224, 0.5); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.polaroid img { border-radius: 1px; }

.polaroid figcaption {
  color: var(--ink);
  text-align: center;
  font-size: 1rem;
  padding-top: 0.7rem;
  line-height: 1.35;
}

/* how to buy */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem auto 3.5rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step:hover { border-color: rgba(240, 138, 46, 0.5); transform: translateY(-4px); }

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }

.step p { font-size: 0.95rem; color: var(--muted); }

/* footer */

.footer {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(92vh, 820px);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 4.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
}

.footer > *:not(.parallax-bg):not(.section-veil):not(.stars) { position: relative; z-index: 2; }

.footer-tag {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: auto;
  transform: rotate(-2deg);
  display: inline-block;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.8);
}

.footer-bottom { width: 100%; }

.socials {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-bottom: 1.6rem;
}

.socials a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.socials a:hover { color: var(--accent); }

.disclaimer {
  max-width: 560px;
  margin: 0 auto 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.copyright { font-size: 0.78rem; color: rgba(155, 153, 148, 0.65); }

/* ---------- reveal on scroll (staggered) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: calc(var(--n, 0) * 90ms);
}

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

/* directional entrances */
.reveal.from-left { transform: translateX(-44px); }
.reveal.from-right { transform: translateX(44px); }
.reveal.from-left.visible, .reveal.from-right.visible { transform: translateX(0); }

/* polaroids get thrown onto the board */
.polaroid.reveal {
  transform: translateY(46px) rotate(calc(var(--tilt, -1.6deg) * 4)) scale(0.9);
  transition-duration: 0.7s;
}
.polaroid.reveal.visible { transform: translateY(0) rotate(var(--tilt, -1.6deg)) scale(1); }
.polaroid.reveal.visible:hover {
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.04);
}

.lore-img.reveal { transform: translateX(48px) rotate(1.5deg); }
.lore-img.reveal.visible {
  transform: rotate(-1.2deg) translateY(var(--fy, 0px));
}
.lore-img.reveal.visible:hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
}

/* ---------- card & step spotlight ---------- */

.card, .step { position: relative; overflow: hidden; }

.card::after, .step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgba(240, 138, 46, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::after, .step:hover::after { opacity: 1; }

/* ---------- floating astronaut (roadmap) ---------- */

.float-wrap {
  position: absolute;
  top: 6%;
  right: 5%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.float-cat {
  width: clamp(110px, 15vw, 220px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
  animation: astro-bob 7s ease-in-out infinite alternate;
}

@keyframes astro-bob {
  from { transform: translateY(0) rotate(-7deg); }
  to { transform: translateY(-26px) rotate(9deg); }
}

/* ---------- neon flicker (how to buy) ---------- */

.neon {
  color: var(--text);
  text-shadow:
    0 0 10px rgba(240, 138, 46, 0.55),
    0 0 38px rgba(240, 138, 46, 0.3);
  animation: neon-flicker 5s linear infinite;
}

@keyframes neon-flicker {
  0%, 56%, 60%, 100% { opacity: 1; }
  57% { opacity: 0.55; }
  58% { opacity: 0.9; }
  59% { opacity: 0.5; }
  82% { opacity: 1; }
  83% { opacity: 0.7; }
  84% { opacity: 1; }
}

/* ---------- twinkling stars (footer) ---------- */

.stars { position: absolute; inset: 0 0 45% 0; z-index: 2; pointer-events: none; }

.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  animation: twinkle ease-in-out infinite;
}

.stars i:nth-child(1) { top: 18%; left: 12%; animation-duration: 3.2s; }
.stars i:nth-child(2) { top: 9%;  left: 28%; animation-duration: 4.1s; animation-delay: 1s; }
.stars i:nth-child(3) { top: 24%; left: 41%; animation-duration: 2.8s; animation-delay: 0.4s; }
.stars i:nth-child(4) { top: 7%;  left: 57%; animation-duration: 3.7s; animation-delay: 1.6s; }
.stars i:nth-child(5) { top: 20%; left: 68%; animation-duration: 4.4s; animation-delay: 0.8s; }
.stars i:nth-child(6) { top: 11%; left: 79%; animation-duration: 3s;   animation-delay: 2s; }
.stars i:nth-child(7) { top: 27%; left: 88%; animation-duration: 3.9s; animation-delay: 1.2s; }
.stars i:nth-child(8) { top: 14%; left: 5%;  animation-duration: 4.6s; animation-delay: 2.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .cards, .phases, .steps { grid-template-columns: repeat(2, 1fr); }
  .polaroids { grid-template-columns: repeat(2, 1fr); }
  .lore-grid { grid-template-columns: 1fr; }
  .hero-word { top: 16vh; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }

  .section { padding-top: 4rem; padding-bottom: 4rem; }

  .cards, .phases, .steps, .polaroids { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .polaroid, .phase, .card, .step { max-width: 420px; margin-left: auto; margin-right: auto; width: 100%; }

  .hero { padding-bottom: 3.2rem; }
  .hero-word { top: 13vh; font-size: 19vw; }
  .hero-cat { width: min(60vh, 112vw); bottom: 27vh; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; padding: 1rem 1.6rem; }

  .ca-box code { font-size: 0.74rem; }

  .scroll-hint { display: none; }

  .footer { min-height: min(88vh, 700px); padding-top: 3.5rem; }
  .socials { gap: 1.4rem; flex-wrap: wrap; }
}

/* ---------- reduced motion ---------- */

@media (max-width: 560px) {
  .float-wrap { top: 2%; right: 2%; }
  .float-cat { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .hero-word span, .hero-cat, .hero-content { animation: none; }
  .hero-dust, .scroll-hint, .stars { display: none; }
  .float-cat { animation: none; }
  .neon { animation: none; }
  .parallax-bg { top: 0; height: 100%; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .wanted, .polaroid, .card, .phase, .step, .btn, .btn-copy { transition: none; }
}
