@import url('scale.css');

/* ── Honeypot ──────────────────────────────────────────────────────────────── */
.hp-field { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }

/* ── Content protection ───────────────────────────────────────────────────── */
img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
body { -webkit-user-select: none; user-select: none; opacity: 0; transition: opacity 0.3s ease; }
body.page-ready { opacity: 1; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }

/* ── Form consent notice ───────────────────────────────────────────────────── */
.form-consent { font-size: 10px; color: var(--muted); margin-top: 8px; line-height: 1.5; opacity: .7; }

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:    #0d0b08;
  --dark2:   #161210;
  --dark3:   #1e1a14;
  --amber:   #c87941;
  --amber2:  #e8a855;
  --text:    #e8dcc8;
  --text2:   #9a8870;
  --text3:   #5a4e3a;
  --border:  rgba(200, 121, 65, 0.15);
  --nav-h:   68px;
}

html { scroll-behavior: smooth; }

/* ── Custom scrollbar ──────────────────────────────────────────────────────── */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(200,121,65,0.35) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(200,121,65,0.3);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: rgba(200,121,65,0.6); }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 300;
}

.chars-header .section-label {
  justify-content: center;
}
.chars-header .section-label::before {
  display: none;
}

a { color: inherit; text-decoration: none; }

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* ── Scroll reveal ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Shared section helpers ───────────────────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-main {
  display: inline-block;
  padding: 14px 36px;
  background: var(--amber);
  color: var(--dark);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.2s;
}
.btn-main:hover { background: var(--amber2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  padding: 13px 32px;
  border: 1px solid rgba(200, 121, 65, 0.4);
  color: var(--text2);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.btn-ghost--dim {
  border-color: rgba(200, 121, 65, 0.2);
  color: var(--text3);
}
.btn-ghost--dim:hover { border-color: rgba(200, 121, 65, 0.5); color: var(--text2); }

.btn-ghost--support {
  background: linear-gradient(135deg, rgba(200,121,65,0.15), rgba(200,121,65,0.05));
  border-color: rgba(200, 121, 65, 0.7);
  color: var(--amber);
  cursor: pointer;
}
.btn-ghost--support:hover {
  background: linear-gradient(135deg, rgba(200,121,65,0.28), rgba(200,121,65,0.12));
  border-color: var(--amber);
  color: #f0c890;
  transform: translateY(-2px);
}
button.btn-ghost { background: none; outline: none; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  transition: background 0.4s;
}
#navbar.scrolled {
  background: rgba(13, 11, 8, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
#navbar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,11,8,0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
#navbar.scrolled::after { display: none; }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img { height: 34px; object-fit: contain; }
.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--amber2); }
.nav-links a.nav-services {
  color: var(--amber);
  padding: 8px 20px;
  border: 1px solid rgba(200,121,65,0.35);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
}
.nav-links a.nav-services:hover { background: rgba(200,121,65,0.12); color: var(--amber2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: calc(100vh / var(--screen-zoom, 1));
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 90px;
  overflow: hidden;
}

/* ── Hero intro sequence ────────────────────────────────────────────────────
   Phase 0 (0–0s):   black screen, only title logo visible
   Phase 1 (0→1.4s): title fades/rises in
   Phase 2 (1.2s):   background image fades in
   Phase 3 (2.0s):   nav, subtitle, buttons, scroll fade in
   Uses .hero-ready class added by JS after first paint.
   If JS disabled or prefers-reduced-motion: everything visible immediately.
──────────────────────────────────────────────────────────────────────────── */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: sepia(0.2) contrast(1.1) brightness(0.65);
  transform: scale(1.05);
  transition: transform 8s ease, opacity 1.4s ease;
}
#hero:hover .hero-bg img { transform: scale(1); }

/* Phase 0: bg hidden until ready */
#hero:not(.hero-ready) .hero-bg img { opacity: 0; }
#hero.hero-ready .hero-bg img { opacity: 1; transition-delay: 0.6s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,11,8,0.3) 0%,
    rgba(13,11,8,0.1) 40%,
    rgba(13,11,8,0.7) 75%,
    rgba(13,11,8,0.95) 100%
  );
  z-index: 1;
}

.hero-moon {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 160px;
  height: 160px;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease;
  animation: moonFloat 6s ease-in-out infinite;
}
#hero.hero-ready .hero-moon { opacity: 0.55; transition-delay: 1.2s; }
.hero-moon img { width: 100%; height: 100%; object-fit: contain; }

@keyframes moonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* Title: fades in first, alone */
.hero-game-title {
  width: clamp(280px, 45vw, 520px);
  object-fit: contain;
  filter: drop-shadow(0 4px 40px rgba(200,121,65,0.3));
  opacity: 0;
  animation: heroTitleIn 1.2s cubic-bezier(.22,.8,.36,1) 0.2s forwards;
}
@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Subtitle, btns, free-link: hidden until hero-ready */
.hero-subtitle,
.hero-btns,
.hero-free-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
#hero.hero-ready .hero-subtitle { opacity: 1; transform: none; transition-delay: 0.15s; }
#hero.hero-ready .hero-btns     { opacity: 1; transform: none; transition-delay: 0.35s; }
#hero.hero-ready .hero-free-link{ opacity: 1; transform: none; transition-delay: 0.55s; }

.hero-subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--text2);
  letter-spacing: 0.12em;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 1s ease;
}
#hero.hero-ready .hero-scroll { opacity: 0.5; transition-delay: 0.7s; }

/* Nav: hidden initially, fades in with hero-ready */
#site-nav {
  opacity: 0;
  transition: opacity 0.8s ease;
}
body.hero-ready #site-nav { opacity: 1; transition-delay: 0.4s; }

/* Fallback: no JS or reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-game-title { animation: none; opacity: 1; }
  .hero-subtitle, .hero-btns, .hero-free-link, .hero-scroll,
  .hero-moon, .hero-bg img, #site-nav { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.hero-scroll span {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text2);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── ABOUT ────────────────────────────────────────────────────────────────── */
#about {
  padding: 120px 48px;
}
.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 18px;
}
.about-text em { color: var(--amber2); font-style: italic; }
.ref-game-btn {
  background: none; border: none; padding: 0; margin: 0;
  cursor: pointer; font-family: inherit; font-size: inherit;
  color: inherit; display: inline;
  border-bottom: 1px solid rgba(200,121,65,.3);
  transition: border-color .15s;
}
.ref-game-btn:hover { border-color: var(--amber); }
.ref-game-btn em { color: var(--amber2); font-style: italic; }
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.tag {
  padding: 6px 16px;
  border: 1px solid var(--text3);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text3);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--amber); color: var(--amber); }

/* Tag tooltip — wrapper handles tooltip so clip-path on .tag doesn't clip it */
.tag-wrap { position: relative; display: inline-block; }
.tag-wrap::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a1710;
  border: 1px solid rgba(200,180,140,.18);
  color: #ede8e0;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: .03em;
  font-weight: 400;
  white-space: nowrap;
  padding: 6px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s, transform .18s;
  z-index: 100;
}
.tag-wrap:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.about-image { position: relative; }
.about-image img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  filter: sepia(0.15) contrast(1.05);
}
.about-image::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(200,121,65,0.08);
  pointer-events: none;
}

/* ── TRAILER ──────────────────────────────────────────────────────────────── */
#trailer {
  padding: 80px 48px;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trailer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.trailer-inner .section-label { justify-content: center; }
.trailer-inner .section-label::before { display: none; }
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  margin-top: 40px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.trailer-coming-soon {
  margin-top: 40px;
  padding: 52px 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--dark3);
}
.trailer-cs-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.35em;
  color: var(--amber);
  opacity: 0.7;
}
.trailer-coming-soon p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--text2);
  line-height: 1.6;
}

/* ── CHARACTERS ───────────────────────────────────────────────────────────── */
#characters {
  position: relative;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  overflow: hidden;
  min-height: 680px;
}

.chars-header {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 20;
  pointer-events: none;
}
.chars-header .section-label { justify-content: center; }
.chars-header .section-label::before { display: none; }

.chars-slider {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
}

.char-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}
.char-slide.active { opacity: 1; pointer-events: auto; }

.char-bg-glow {
  position: absolute;
  inset: 0;
}

.char-trees {
  position: absolute;
  bottom: -60px;
  right: -20px;
  width: 44%;
  height: auto;
  max-height: 95%;
  pointer-events: none;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0.85;
  z-index: 1;
}
.char-trees--flip {
  right: auto;
  left: -20px;
  transform: scaleX(-1);
  object-position: bottom left;
}

.char-left {
  position: absolute;
  left: 0; bottom: 0;
  width: 38%;
  display: flex;
  align-items: flex-end;
  padding-left: 60px;
  z-index: 2;
}
.char-left img {
  height: 580px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 50px rgba(200,121,65,0.2));
  transform: translateX(-50px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1), opacity 0.5s;
}
.char-slide.active .char-left img { transform: translateX(0); opacity: 1; }

/* Laura (slide-0) on right — flip to face left (center) */
#slide-0 .char-right img { transform: scaleX(-1) translateX(-50px); }
#slide-0.active .char-right img { transform: scaleX(-1) translateX(0); }

/* Sheriff/Ron (slide-3) on left — flip to face right (center) */
#slide-3 .char-left img { transform: scaleX(-1) translateX(50px); }
#slide-3.active .char-left img { transform: scaleX(-1) translateX(0); }

.char-right {
  position: absolute;
  right: 0; bottom: 0;
  width: 38%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  z-index: 2;
  padding-right: 60px;
}
.char-right img {
  height: 580px;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 50px rgba(100,120,200,0.15));
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s, opacity 0.5s 0.1s;
}
.char-slide.active .char-right img { transform: translateX(0); opacity: 1; }

.char-center {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  min-width: 300px;
}
.char-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
}
.char-slide.active .char-name { opacity: 1; transform: none; }

.char-role {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  opacity: 0;
  transition: opacity 0.5s 0.3s;
}
.char-slide.active .char-role { opacity: 1; }

.char-desc {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
  max-width: 280px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.5s 0.35s;
}
.char-slide.active .char-desc { opacity: 1; }

.chars-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 30;
}
.char-arrow {
  width: 40px; height: 40px;
  border: 1px solid rgba(200,121,65,0.3);
  background: transparent;
  color: var(--amber);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
  transition: background 0.2s, border-color 0.2s;
  font-size: 16px;
}
.char-arrow:hover { background: rgba(200,121,65,0.15); border-color: var(--amber); }
.char-dots { display: flex; gap: 8px; }
.char-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none; padding: 0;
}
.char-dot.active { background: var(--amber); transform: scale(1.5); }

/* ── STUDIO ───────────────────────────────────────────────────────────────── */
#studio {
  padding: 100px 48px;
  text-align: center;
}
.studio-inner { max-width: 700px; margin: 0 auto; }
.studio-text {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.85;
  color: var(--text2);
  margin-bottom: 16px;
}
.studio-text strong { color: var(--amber2); font-weight: 500; }
.studio-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ── SERVICES CTA ─────────────────────────────────────────────────────────── */
#services-cta {
  padding: 80px 48px;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--amber);
  margin-bottom: 20px;
}
.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 20px;
}
.cta-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 36px;
}

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  padding: 48px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-logo { width: 36px; height: 36px; object-fit: contain; opacity: 0.7; }
.footer-studio {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
}
.footer-name {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text2);
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--amber); }
.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.1em;
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .nav-inner { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(13,11,8,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 20px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-services { clip-path: none; width: fit-content; }
  .nav-lang-mobile-item { display: flex; align-items: center; gap: 2px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,0.07); }
  /* Hide floating corner bar on mobile — switcher is in the dropdown */
  .nav-lang-bar { display: none; }

  #hero {
    justify-content: center;
    padding-bottom: 0;
    padding-top: 0;
  }
  #hero .hero-bg img {
    object-position: 80% 40%;
    transform: scale(1.15);
    filter: sepia(0.15) contrast(1.05) brightness(0.75);
    transition: object-position 0.1s ease-out;
  }
  #hero .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(13,11,8,0.15) 0%,
      rgba(13,11,8,0.05) 30%,
      rgba(13,11,8,0.55) 70%,
      rgba(13,11,8,0.9) 100%
    );
  }
  .hero-content { padding: 0 24px 60px; }
  .hero-scroll { bottom: 20px; }
  .hero-moon { width: 110px; height: 110px; right: 5%; top: 10%; opacity: 0.75; }
  .hero-btns { flex-direction: column; align-items: center; }

  #about { padding: 72px 24px; }
  #trailer { padding: 60px 24px; }
  #studio { padding: 72px 24px; }
  #services-cta { padding: 60px 24px; }
  footer { padding: 40px 24px; }

  .char-trees { display: none; }
  .chars-slider, #characters { min-height: 520px; }
  .char-left, .char-right { width: 42%; }
  .char-left { padding-left: 12px; }
  .char-right { padding-right: 12px; }
  .char-left img, .char-right img { height: 380px; }

  .studio-links { gap: 10px; }
  .footer-links { gap: 18px; }
}

@media (max-width: 480px) {
  .hero-game-title { width: 90vw; }

  #characters, .chars-slider { min-height: 600px; }

  /* Text block above the image */
  .char-center {
    top: 115px;
    bottom: auto;
    left: 16px;
    right: 16px;
    transform: none;
    min-width: 0;
    text-align: center;
  }
  .char-desc { max-width: none; }

  /* Character image centered at bottom */
  .char-left, .char-right {
    width: 100%;
    left: 0; right: 0;
    padding: 0;
    justify-content: center;
  }
  .char-left img, .char-right img { height: 280px; }
}

/* ── Funding Progress section ─────────────────────────────────────────────── */
#funding {
  padding: 40px 48px;
  background: #0a0908;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.funding-inner { max-width: 700px; margin: 0 auto; }
.funding-label {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted2, #6b6055); margin-bottom: 16px;
}
.funding-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.funding-raised { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.funding-raised-num {
  font-family: 'Playfair Display', serif; font-size: 36px; color: var(--amber, #c87941);
  line-height: 1;
}
.funding-raised-goal {
  font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted2, #6b6055);
}
.funding-ms-title {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted2, #6b6055);
  letter-spacing: .06em;
}
.funding-ms-title strong { color: var(--text, #ede8e0); font-weight: 400; }
.funding-expand-btn {
  background: none; border: 1px solid rgba(255,255,255,.1); color: var(--muted2, #6b6055);
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; padding: 8px 16px; cursor: pointer; transition: border-color .15s, color .15s;
  white-space: nowrap; align-self: center;
}
.funding-expand-btn:hover { border-color: var(--amber, #c87941); color: var(--amber, #c87941); }
.funding-bar-wrap { margin-bottom: 0; }
.funding-bar {
  height: 4px; background: rgba(255,255,255,.06); position: relative; overflow: visible;
}
.funding-bar-fill {
  height: 100%; background: var(--amber, #c87941);
  transition: width 1s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.funding-bar-pct {
  position: absolute; right: 0; top: -22px;
  font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .1em;
  color: var(--amber, #c87941); transform: translateX(50%);
}
/* Milestones expanded */
.funding-milestones {
  max-height: 0; overflow: hidden;
  margin-top: 0; padding-top: 0;
  border-top: 1px solid rgba(255,255,255,.05);
  transition: max-height .5s cubic-bezier(.4,0,.2,1), margin-top .4s, padding-top .4s;
}
.funding-milestones.open {
  max-height: 3000px; margin-top: 28px; padding-top: 24px;
}
.funding-ms {
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  opacity: 1; transition: opacity .3s, filter .3s;
}
.funding-ms:last-child { border-bottom: none; }
.funding-ms.locked {
  opacity: .28; filter: grayscale(.5);
  pointer-events: none;
}
.funding-ms-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.funding-ms-icon {
  font-size: 12px; color: var(--muted2, #6b6055); width: 16px; flex-shrink: 0;
}
.funding-ms.done .funding-ms-icon { color: #7ac87a; }
.funding-ms.active .funding-ms-icon { color: var(--amber, #c87941); }
.funding-ms.locked .funding-ms-icon { color: var(--muted2, #4a4038); font-size: 10px; }
.funding-ms-name {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text, #ede8e0); flex: 1;
}
.funding-ms-goal-num {
  font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted2, #6b6055);
}
.funding-ms-desc {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--muted2, #6b6055);
  line-height: 1.7; margin: 0 0 10px 26px;
}
.funding-ms-bar {
  height: 2px; background: rgba(255,255,255,.05); margin-left: 26px;
}
/* CTA */
.funding-cta { margin-top: 36px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.funding-btn {
  display: inline-block; padding: 13px 28px; background: var(--amber, #c87941);
  color: #0d0c0a; font-family: 'DM Mono', monospace; font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background .15s;
}
.funding-btn:hover { background: #d98a52; }
.funding-cta-sub {
  font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .1em;
  color: var(--muted2, #6b6055);
}
@media (max-width: 768px) {
  #funding { padding: 60px 24px; }
  .funding-raised-num { font-size: 28px; }
}

/* ── Join Team section ────────────────────────────────────────────────────── */
#join-team {
  padding: 80px 48px;
  text-align: center;
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.join-inner { max-width: 700px; margin: 0 auto; }
.join-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 28px;
}
.join-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.join-role {
  padding: 8px 20px;
  border: 1px solid rgba(200,121,65,0.3);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--amber);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}
.join-role--filled {
  border-color: rgba(255,255,255,0.08);
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.45;
}

/* ── Nav mentor link ──────────────────────────────────────────────────────── */
.nav-mentor {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid rgba(200,121,65,0.25);
  color: var(--text2) !important;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-mentor:hover { background: rgba(200,121,65,0.08); border-color: rgba(200,121,65,0.5); color: var(--amber2) !important; }
.nav-mentor--active {
  background: rgba(200,121,65,0.1);
  border-color: rgba(200,121,65,0.5);
  color: var(--amber) !important;
}

@media (max-width: 768px) {
  .nav-mentor { clip-path: none; width: fit-content; }
}

/* ── Nav join link ────────────────────────────────────────────────────────── */
.nav-join {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border: 1px solid rgba(200,121,65,0.3);
  color: var(--amber2) !important;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: background 0.2s, border-color 0.2s;
}
.nav-join:hover { background: rgba(200,121,65,0.1); border-color: var(--amber); }
.nav-join--active {
  background: rgba(200,121,65,0.12);
  border-color: var(--amber);
}

@media (max-width: 768px) {
  #join-team { padding: 60px 24px; }
  .nav-join { clip-path: none; width: fit-content; }
}

/* ── Language switcher bar ───────────────────────────────────────────────── */
.nav-lang-bar {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(12,10,8,0.75);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 8px;
  backdrop-filter: blur(6px);
}
.nav-lang-btn {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.15s;
}
.nav-lang-btn:hover { color: var(--text); }
.nav-lang-btn--active { color: var(--orange); }
.nav-lang-sep { font-size: 9px; color: rgba(255,255,255,0.15); }
/* Mobile-only lang item — hidden on desktop */
.nav-lang-mobile-item {
  display: none;
}
/* Mobile user+lang item inside hamburger — hidden on desktop */
.nav-mobile-user-item {
  display: none !important;
}
@media (max-width: 768px) {
  .nav-mobile-user-item { display: flex !important; }
}
