/* ============================================
   TRENCHMAXXER V2 — Premium movement experience
   ============================================ */

:root {
  --black: #030303;
  --charcoal: #0a0a0a;
  --surface: #111;
  --border: #222;
  --text: #f0f0f0;
  --muted: #777;
  --dim: #444;
  --accent: #c8ff00;
  --accent-glow: rgba(200, 255, 0, 0.4);
  --red: #ff2d2d;
  --green: #00e676;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.accent { color: var(--accent); }

/* Overlays */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 10000; opacity: 0.035;
  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");
}

.vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

/* Sound toggle */
.sound-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10,10,10,0.85); border: 1px solid var(--border);
  color: var(--muted); display: flex; align-items: center; justify-content: center;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.sound-toggle svg { width: 18px; height: 18px; }
.sound-toggle .icon-on { display: none; }
.sound-toggle.active { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow); }
.sound-toggle.active .icon-off { display: none; }
.sound-toggle.active .icon-on { display: block; }

body.is-loading { overflow: hidden; }
body.is-loading main,
body.is-loading .header,
body.is-loading .sound-toggle { visibility: hidden; }

/* ========== LOADER ========== */
.loader {
  position: fixed; inset: 0; z-index: 20000;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.loader-inner { text-align: center; padding: 2rem; }
.loader-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 0.35em;
  color: var(--text);
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-bar {
  width: min(280px, 70vw); height: 2px;
  background: var(--border); margin: 2rem auto 0; overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 0;
  background: var(--accent); box-shadow: 0 0 12px var(--accent-glow);
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; color: var(--accent); }
}

/* Header — dark sticky */
.header-dark {
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-dark.scrolled {
  background: rgba(3, 3, 3, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-links { display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  transition: color 0.25s, text-shadow 0.25s;
  padding: 0.35rem 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }

.nav-join {
  background: var(--accent) !important; color: var(--black) !important;
  padding: 0.55rem 1rem !important; border-radius: 2px;
  text-shadow: none !important;
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform 0.3s, box-shadow 0.3s !important;
}
.nav-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow) !important;
}

/* Global hover utilities */
.hover-glow:hover {
  box-shadow: 0 0 50px var(--accent-glow), 0 0 80px rgba(200, 255, 0, 0.2) !important;
}

.card-lift .chapter-inner {
  transition: transform 0.45s var(--ease-out);
}
.card-lift:hover .chapter-inner {
  transform: translateY(-6px);
}

.img-zoom { overflow: hidden; }
.img-zoom img {
  transition: transform 0.8s var(--ease-out);
}
.img-zoom:hover img,
.chapter-visual:hover img { transform: scale(1.06); }

.graffiti-tag {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
}
.graffiti-tag:hover {
  transform: rotate(var(--rot, -2deg)) translateY(-4px) scale(1.02);
  border-color: rgba(200, 255, 0, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.btn:hover,
.btn-wall:hover {
  box-shadow: 0 0 50px var(--accent-glow);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 1rem 2.2rem; border-radius: 2px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-wall {
  background: transparent; color: var(--accent); border: 1px solid var(--accent);
  padding: 0.85rem 1.5rem; min-height: 48px;
}
.btn-wall:hover { background: var(--accent); color: var(--black); }

.btn-hero {
  background: var(--accent); color: var(--black);
  box-shadow: 0 0 40px var(--accent-glow);
  min-height: 52px; min-width: 200px;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 0 60px var(--accent-glow); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; padding: 0 clamp(1rem, 4vw, 3rem);
  max-width: 1400px; margin: 0 auto;
}

.logo {
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.14em;
  flex-shrink: 0;
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s;
}

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform 0.3s; }

.label {
  display: block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ========== CINEMATIC HERO ========== */
.hero-cinema {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: flex-end; overflow: hidden;
}

.hero-layers { position: absolute; inset: 0; }

.hero-skyline {
  background:
    linear-gradient(180deg, rgba(3,3,3,0.5) 0%, rgba(3,3,3,0.92) 65%, var(--black) 100%),
    url('https://images.unsplash.com/photo-1477959856237-f9bfd813cbe1?w=1920&q=80') center 25%/cover no-repeat;
  filter: brightness(0.45) saturate(0.7);
}

.hero-window-rain {
  position: absolute; top: 0; right: 0; width: 45%; height: 55%; z-index: 1;
  background: linear-gradient(135deg, rgba(80,120,180,0.08) 0%, transparent 60%);
  border-left: 1px solid rgba(255,255,255,0.03);
  opacity: 0.6;
}
.hero-window-rain::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    105deg,
    transparent 0px, transparent 3px,
    rgba(180,200,220,0.03) 3px, rgba(180,200,220,0.03) 4px
  );
  animation: windowRain 0.8s linear infinite;
}
@keyframes windowRain {
  from { transform: translateY(-10px); }
  to { transform: translateY(10px); }
}

.hero-dark-room {
  background:
    radial-gradient(ellipse 60% 50% at 72% 55%, rgba(0,230,118,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 68% 50%, rgba(255,45,45,0.05) 0%, transparent 45%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-chart-glow {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(circle at 78% 45%, rgba(0,230,118,0.12) 0%, transparent 25%),
    radial-gradient(circle at 82% 48%, rgba(255,45,45,0.1) 0%, transparent 20%);
  animation: chartPulse 3s ease-in-out infinite;
}
@keyframes chartPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-apartment-glow {
  background: radial-gradient(ellipse 40% 30% at 75% 60%, rgba(200,255,0,0.03) 0%, transparent 60%);
  z-index: 1;
}

.hero-rain {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.35; z-index: 2;
}

.hero-desk-scene {
  position: absolute; bottom: 15%; right: 8%; width: 280px; height: 180px; z-index: 3;
  opacity: 0.7;
}

.monitor {
  position: absolute; width: 110px; height: 70px;
  background: #0d0d0d; border: 1px solid #333; border-radius: 2px; padding: 4px;
}
.monitor-1 { top: 0; left: 0; }
.monitor-2 { top: 20px; right: 0; }

.chart-svg { width: 100%; height: 100%; }
.candle-path { fill: none; stroke-width: 2; stroke-linecap: round; }
.candle-path.green { stroke: var(--green); filter: drop-shadow(0 0 4px var(--green)); }
.candle-path.red { stroke: var(--red); filter: drop-shadow(0 0 4px var(--red)); }

.flicker { animation: monitorFlicker 4s infinite; }
@keyframes monitorFlicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
  52% { opacity: 0.75; }
  54% { opacity: 1; }
  89% { opacity: 0.88; }
}

.desk-prop {
  position: absolute; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.05em;
}
.alarm {
  bottom: -35px; left: 10px; width: 48px; height: 48px;
  background: #0d0d0d; border: 2px solid #333; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--red); font-family: monospace;
  box-shadow: 0 0 20px rgba(255,45,45,0.4);
  animation: alarmPulse 2s ease-in-out infinite;
}
.alarm-time { font-size: 0.55rem; font-weight: 700; line-height: 1; }
.alarm-label { font-size: 0.35rem; opacity: 0.7; }
@keyframes alarmPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(255,45,45,0.3); }
  50% { box-shadow: 0 0 25px rgba(255,45,45,0.6); }
}
.wallet {
  bottom: -25px; left: 70px; width: 28px; height: 18px;
  background: #222; border: 1px solid #555; border-radius: 2px;
}
.wallet::after {
  content: 'EMPTY'; position: absolute; bottom: -12px; left: -8px;
  font-size: 0.4rem; color: var(--dim); letter-spacing: 0.1em;
}
.can {
  bottom: -28px; right: 30px; width: 16px; height: 28px;
  background: linear-gradient(180deg, #333, #111); border: 1px solid #555;
  border-radius: 2px; color: var(--accent); writing-mode: vertical-rl;
  display: flex; align-items: center; justify-content: center; font-size: 0.35rem;
}

.hero-character-wrap {
  position: absolute; bottom: 0; right: 0; width: min(65vw, 780px); z-index: 4;
  line-height: 0;
}
.hero-character-img {
  width: 100%; height: auto; max-height: 92vh; object-fit: contain; object-position: bottom right;
  -webkit-mask-image: linear-gradient(to left, black 70%, transparent 100%);
  mask-image: linear-gradient(to left, black 70%, transparent 100%);
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.9));
}

.smoke {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(180,180,180,0.3); filter: blur(4px);
  animation: smokeRise 3s ease-out infinite;
}
.smoke-1 { bottom: 55%; right: 22%; animation-delay: 0s; }
.smoke-2 { bottom: 58%; right: 20%; animation-delay: 0.8s; width: 6px; height: 6px; }
.smoke-3 { bottom: 52%; right: 24%; animation-delay: 1.6s; width: 10px; height: 10px; }
.smoke-4 { bottom: 56%; right: 21%; animation-delay: 2.4s; width: 7px; height: 7px; }

@keyframes smokeRise {
  0% { opacity: 0; transform: translateY(0) scale(0.5); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-60px) scale(2) translateX(10px); }
}

.city-lights {
  position: absolute; top: 15%; right: 10%; display: flex; gap: 12px; z-index: 1;
}
.city-lights span {
  width: 3px; height: 3px; border-radius: 50%; background: var(--accent);
  opacity: 0.3; animation: blink 2s infinite;
}
.city-lights span:nth-child(odd) { animation-delay: 0.5s; }
.city-lights span:nth-child(3n) { animation-delay: 1.2s; background: #fff; }
@keyframes blink {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; box-shadow: 0 0 6px var(--accent); }
}

.hero-copy {
  position: relative; z-index: 10;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3rem, 8vh, 6rem);
  max-width: 720px;
}

.hero-tag {
  font-size: 0.65rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 0.92; letter-spacing: 0.02em; margin-bottom: 2rem;
}
.hero-headline .line { display: block; overflow: hidden; }

.hero-sub p {
  font-size: clamp(0.95rem, 2vw, 1.15rem); color: var(--muted);
  margin-bottom: 0.35rem; letter-spacing: 0.02em;
}
.hero-sub-final { color: var(--text) !important; font-weight: 500; margin-top: 0.75rem !important; }

.hero-scroll-hint {
  position: absolute; bottom: 2rem; right: clamp(1.5rem, 4vw, 3rem);
  z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.scroll-indicator {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ========== JOURNEY TIMELINE ========== */
.journey { position: relative; padding: 8rem 0 4rem; }

.journey-intro {
  text-align: center; max-width: 560px; margin: 0 auto 6rem;
  padding: 0 1.5rem;
}
.journey-intro h2 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1; margin-bottom: 1rem;
}
.journey-intro p { color: var(--muted); }

.chapters { position: relative; }

.chapter {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 4rem clamp(1.5rem, 5vw, 4rem); overflow: hidden;
}

.chapter-bg {
  position: absolute; inset: 0; z-index: 0;
  transition: opacity 0.6s;
}
.chapter-dream .chapter-bg { background: linear-gradient(135deg, #0a0a0a 0%, #111 100%); }
.chapter-rug .chapter-bg { background: linear-gradient(135deg, #0f0505 0%, #0a0a0a 100%); }
.chapter-lesson .chapter-bg { background: linear-gradient(135deg, #0a0a0f 0%, #0a0a0a 100%); }
.chapter-grind .chapter-bg { background: linear-gradient(135deg, #0f0f0a 0%, #0a0a0a 100%); }
.chapter-movement .chapter-bg { background: linear-gradient(135deg, #0a0f0a 0%, #050505 100%); }

.chapter-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.chapter-inner.reverse { direction: rtl; }
.chapter-inner.reverse > * { direction: ltr; }

.chapter-visual {
  position: relative; border-radius: 2px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4/3;
}
.chapter-visual img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) brightness(0.85);
  transition: transform 0.9s var(--ease-out);
}

/* ========== QUOTE ========== */
.quote-section {
  padding: clamp(5rem, 12vh, 8rem) 1.5rem;
  text-align: center;
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quote-block {
  max-width: 800px; margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.15; letter-spacing: 0.02em;
}
.quote-block p { margin-bottom: 0.25rem; }

/* ========== FINAL CTA ========== */
.final-cta {
  padding: clamp(5rem, 14vh, 10rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,255,0,0.04) 0%, transparent 60%),
    var(--black);
  border-top: 1px solid var(--border);
}
.final-cta-inner { max-width: 680px; margin: 0 auto; }
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95; margin-bottom: 1.5rem;
}
.final-cta p {
  color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.75; margin-bottom: 2.5rem;
}
.btn-collective { font-size: 0.85rem; padding: 1.15rem 2.5rem; }

.chapter-num {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: rgba(200,255,0,0.15); pointer-events: none;
}

.chapter-label {
  display: block; font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.chapter-copy h3 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1; margin-bottom: 1.5rem;
}
.chapter-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1rem; }
.chapter-quote {
  margin-top: 1.5rem; padding-left: 1rem; border-left: 2px solid var(--accent);
  color: var(--text); font-weight: 500; font-style: italic;
}
.chapter-quote.accent { color: var(--accent); font-style: normal; font-weight: 700; }

.rug-list { margin: 1rem 0; }
.rug-list li {
  padding: 0.5rem 0; color: var(--red); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.85rem;
}
.rug-list li::before { content: '✕ '; color: var(--accent); }

/* ========== MONTAGE ========== */
.montage {
  padding: 6rem 0; background: var(--charcoal);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.montage-header {
  text-align: center; padding: 0 1.5rem; margin-bottom: 3rem;
}
.montage-header h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem);
}
.montage-track {
  display: flex; gap: 1rem; padding: 0 1.5rem;
  width: max-content;
}

.montage-panel {
  flex-shrink: 0; width: 280px; height: 380px; border-radius: 2px;
  background: var(--surface) var(--img) center/cover no-repeat;
  border: 1px solid var(--border); position: relative; overflow: hidden;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.4s, transform 0.4s var(--ease-out);
}
.montage-panel:hover { filter: grayscale(0%); transform: scale(1.02); }
.montage-panel span {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  font-family: var(--font-display); font-size: 1.25rem; letter-spacing: 0.08em;
}

/* Duplicate panels for infinite scroll */
.montage-track::after {
  content: ''; display: none;
}

/* ========== MANIFESTO ========== */
.manifesto {
  position: relative; min-height: 100vh;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
}

.manifesto-pin { width: 100%; padding: 4rem clamp(1.5rem, 6vw, 4rem); }

.manifesto-lines { max-width: 900px; margin: 0 auto; }

.manifesto-line {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  line-height: 1.1; letter-spacing: 0.02em;
  color: var(--muted); opacity: 0.15;
  transform: translateY(40px);
  transition: none;
  margin-bottom: 0.15em;
}
.manifesto-line.active {
  color: var(--text); opacity: 1;
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
}
.manifesto-line.finale.active {
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-glow);
}

/* ========== COMMUNITY WALL ========== */
.wall-section {
  padding: 8rem clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, var(--black) 0%, #0d0c0a 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='%23111111'/%3E%3Cpath d='M0 30h60M30 0v60' stroke='%231a1a1a'/%3E%3C/svg%3E");
}

.wall-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.wall-header h2 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1; margin-bottom: 0.75rem;
}
.wall-header p { color: var(--muted); }

.wall-form {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  max-width: 700px; margin: 0 auto 4rem;
}
.wall-form input {
  flex: 1 1 180px; padding: 0.9rem 1rem;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 2px; color: var(--text); font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.3s;
}
.wall-form input:focus { outline: none; border-color: var(--accent); }
.wall-form input::placeholder { color: var(--dim); }

.wall-graffiti {
  display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center;
  max-width: 1100px; margin: 0 auto; min-height: 200px;
}

.graffiti-tag {
  padding: 1rem 1.25rem; max-width: 280px;
  background: rgba(20,20,20,0.8); border: 1px solid var(--border);
  transform: rotate(var(--rot, -2deg));
  font-size: 0.9rem; line-height: 1.5;
  animation: tagAppear 0.6s var(--ease-out) both;
  position: relative;
}
.graffiti-tag::before {
  content: '"'; position: absolute; top: -0.5rem; left: 0.5rem;
  font-family: var(--font-display); font-size: 2rem; color: var(--accent); opacity: 0.4;
}
.graffiti-tag .tag-meta {
  display: block; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.graffiti-tag .tag-msg { color: var(--text); font-weight: 500; }

@keyframes tagAppear {
  from { opacity: 0; transform: rotate(var(--rot, -2deg)) scale(0.9) translateY(20px); }
  to { opacity: 1; transform: rotate(var(--rot, -2deg)) scale(1) translateY(0); }
}

/* ========== ENDING ========== */
.ending {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; text-align: center;
}

.ending-bg {
  position: absolute; inset: 0; z-index: 0;
}
.ending-scene {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35) contrast(1.1);
}
.ending-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,3,3,0.7) 0%, rgba(3,3,3,0.95) 100%);
}

.ending-silhouettes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 80%, rgba(200,255,0,0.08) 0%, transparent 60%),
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 18px,
      rgba(200,255,0,0.03) 18px, rgba(200,255,0,0.03) 20px);
  mask-image: linear-gradient(180deg, transparent 30%, black 70%);
}
.ending-silhouettes::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200'%3E%3Cg fill='%23c8ff00' opacity='0.06'%3E%3Cellipse cx='100' cy='180' rx='20' ry='50'/%3E%3Cellipse cx='180' cy='170' rx='18' ry='45'/%3E%3Cellipse cx='260' cy='175' rx='22' ry='48'/%3E%3Cellipse cx='340' cy='168' rx='19' ry='52'/%3E%3Cellipse cx='420' cy='172' rx='21' ry='46'/%3E%3Cellipse cx='500' cy='165' rx='20' ry='50'/%3E%3Cellipse cx='580' cy='178' rx='18' ry='44'/%3E%3Cellipse cx='660' cy='170' rx='22' ry='49'/%3E%3Cellipse cx='740' cy='175' rx='19' ry='47'/%3E%3Cellipse cx='820' cy='168' rx='21' ry='51'/%3E%3Cellipse cx='900' cy='172' rx='20' ry='45'/%3E%3Cellipse cx='980' cy='177' rx='18' ry='48'/%3E%3Cellipse cx='1060' cy='170' rx='22' ry='50'/%3E%3Cellipse cx='1140' cy='175' rx='19' ry='46'/%3E%3C/g%3E%3C/svg%3E") bottom center/contain repeat-x;
}

.ending-content {
  position: relative; z-index: 2; padding: 4rem 1.5rem; max-width: 700px;
}

.ending-face {
  width: 120px; margin: 0 auto 2rem; border-radius: 2px;
  border: 1px solid var(--border);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

.ending-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem); line-height: 0.95;
  margin-bottom: 1.5rem;
}

.ending-sub p {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--muted); margin-bottom: 0.4rem;
}
.ending-sub p:last-child { color: var(--text); font-weight: 500; }

.btn-ending { margin-top: 2.5rem; }

.ending-social {
  display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem;
}
.ending-social a {
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim); transition: color 0.3s;
}
.ending-social a:hover { color: var(--accent); }

.site-footer {
  padding: 1.5rem; text-align: center;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--dim); border-top: 1px solid var(--border);
}
.skull { color: var(--accent); margin-right: 0.5rem; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.nav-join) { font-size: 0.58rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 56px; }

  .chapter-inner,
  .chapter-inner.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .chapter { min-height: auto; padding: 3rem 1.25rem; }
  .chapter-visual {
    order: -1; max-height: 280px; aspect-ratio: 16/10;
  }
  .chapter-copy h3 { font-size: clamp(2rem, 8vw, 2.75rem); }
  .chapter-copy p { font-size: 1rem; }

  .hero-bg::after,
  .hero-bg::after { display: none; }
  .hero-character-wrap {
    width: 100%; max-width: 420px; margin: 0 auto; left: 0; right: 0;
    opacity: 0.4; position: absolute;
  }
  .hero-copy {
    text-align: center; max-width: 100%;
    padding-bottom: 2rem;
    margin: 0 auto;
  }
  .hero-headline { font-size: clamp(2.75rem, 12vw, 4rem); }
  .hero-sub p { font-size: 1rem; }
  .btn-hero { width: 100%; max-width: 320px; }
  .hero-desk-scene { display: none; }
  .hero-window-rain { width: 100%; height: 40%; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; gap: 0; padding: 0;
    background: rgba(3,3,3,0.98); border-bottom: 1px solid var(--border);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a {
    display: block; padding: 1.15rem 1.5rem; font-size: 0.85rem;
    min-height: 48px;
  }
  .nav-join {
    margin: 1rem 1.5rem !important; text-align: center;
    display: block !important;
  }

  .hero-scroll-hint { display: none; }
  .sound-toggle { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }

  .journey { padding: 4rem 0 2rem; }
  .journey-intro { margin-bottom: 3rem; }

  .quote-block { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  .wall-form { flex-direction: column; }
  .wall-form input,
  .wall-form .btn { width: 100%; min-height: 48px; font-size: 1rem; }
  .graffiti-tag { max-width: 100%; width: 100%; }

  .manifesto-line { font-size: clamp(2rem, 10vw, 3.5rem); }

  .montage-panel { width: 220px; height: 300px; }

  .final-cta h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .ending-headline { font-size: clamp(2.25rem, 10vw, 4rem); }
  .ending-face { width: 100px; }

  .loader-text { letter-spacing: 0.2em; font-size: 1.25rem; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.5rem; }
  .chapter-num { font-size: 2.5rem; }
  .logo { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .montage-track { animation: none; }
}
