/* =====================================================================
   EnthusiastenWerk — global styles
   Mobile-first. Breakpoints: ~600px (tablet), ~1024px (desktop).

   Fonts are self-hosted in css/fonts.css (Barlow, Oswald, Space Mono).
   ===================================================================== */

/* ------------------------------- Tokens ------------------------------ */
:root {
  --bg:            #0C0C0D;
  --bg-panel:      #131211;
  --bg-card:       #17150F;
  --bg-media:      #0F0E0D;

  --text:          #F5F1E8;
  --text-muted:    #B7B2A7;
  --text-dim:      #9E998F;
  --text-faint:    #6E6A62;

  --gold:          #F4C020;
  --gold-hover:    #FFD24A;
  --gold-soft:     rgba(244, 192, 32, 0.09);
  --gold-border:   rgba(244, 192, 32, 0.28);

  --line:          rgba(255, 255, 255, 0.06);
  --line-strong:   rgba(255, 255, 255, 0.10);

  --font-body:     'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:  'Oswald', sans-serif;
  --font-mono:     'Space Mono', ui-monospace, monospace;

  --nav-h:         64px;
  --maxw:          1200px;
}

/* ------------------------------- Reset ------------------------------- */
* { 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-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* Ambient ember background canvas — sits behind all content */
#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Scroll-reveal (applied by JS; no-op without JS so content stays visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

a { color: var(--gold); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-hover); }

::selection { background: var(--gold); color: var(--bg); }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--text);
}
h1 { font-size: clamp(44px, 9vw, 92px); line-height: 0.92; }
h2 { font-size: clamp(32px, 4.6vw, 52px); }

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

/* --------------------------- Shared helpers -------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); }

.section-head { margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head.section-head-center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

/* Inline "— Our Journey" style link */
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.inline-link-line {
  width: 40px; height: 1px;
  background: var(--gold);
  position: relative;
}
.inline-link-line::before {
  content: ""; position: absolute; left: -5px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid var(--gold); transform: translateY(-50%);
}
.inline-link:hover .inline-link-line { background: var(--gold-hover); }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn .arrow { width: 18px; height: 18px; }
.btn-solid { background: var(--gold); color: var(--bg); }
.btn-solid:hover { background: var(--gold-hover); color: var(--bg); transform: translateX(2px); }
.btn-ghost { background: transparent; border-color: rgba(245,241,232,.24); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-sm .arrow { width: 16px; height: 16px; }
/* Leading brand/store icon inside a button (Steam, Google Play, …) */
.btn-ico { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm .btn-ico { width: 16px; height: 16px; }
/* Discord (brand blurple) */
.btn-discord { background: #5865F2; color: #fff; border-color: #5865F2; }
.btn-discord:hover { background: #6B75F6; color: #fff; border-color: #6B75F6; transform: translateX(2px); }

/* ---------------------------- Navigation ----------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 24px;
  background: rgba(12, 12, 13, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold); border-radius: 6px;
  overflow: hidden;
}
.brand-icon { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.nav-links {
  display: none;
  flex-direction: column; gap: 2px;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 12px 24px 20px;
  background: #0C0C0D;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.9);
}
.nav-links.open { display: flex; }
.nav-links > a {
  padding: 12px 4px;
  color: var(--text-muted);
  font-size: 14px; letter-spacing: 0.02em;
}
.nav-links > a:hover { color: var(--text); }

/* -------------------------------- Hero ------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -20%; left: -10%;
  width: 620px; height: 620px; max-width: 90vw;
  background: radial-gradient(circle, rgba(244,192,32,.16) 0%, rgba(244,192,32,0) 62%);
  filter: blur(12px);
  animation: ewGlow 9s ease-in-out infinite;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; animation: ewRise .8s ease both; }
.hero-copy .lead { max-width: 480px; }

/* Hero "out now on Steam" strip */
.hero-featured { position: relative; z-index: 1; margin-top: 44px; display: flex; flex-direction: column; gap: 16px; }
.hero-featured-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
.hero-featured-list { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-game {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.hero-game { transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease; }
.hero-game:hover { border-color: var(--gold-border); transform: translateY(-2px); color: var(--text); box-shadow: 0 18px 44px -24px rgba(244, 192, 32, 0.32); }
.hero-game-thumb { width: 112px; height: 63px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-media); }
.hero-game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-game-info { display: flex; flex-direction: column; gap: 4px; }
.hero-game-name {
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
}
.hero-game-meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold);
}

/* Hero logo art */
.hero-art {
  border: 1px solid rgba(244, 192, 32, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  transition: transform .25s ease;
  will-change: transform;
}

/* Team / crew portraits */
.crew-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.member { display: flex; flex-direction: column; }
.member-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-media);
  border: 1px solid var(--line-strong);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member figcaption { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.member h3 {
  font-family: var(--font-body); font-weight: 600; font-size: 20px; color: var(--text);
}
.member-role {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold);
}
.member p { font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.member { transition: transform .2s ease; }
.member-photo { transition: border-color .2s ease, box-shadow .3s ease; }
.member:hover { transform: translateY(-3px); }
.member:hover .member-photo { border-color: var(--gold-border); box-shadow: 0 20px 50px -26px rgba(244, 192, 32, 0.32); }

/* ------------------------------- Studio ------------------------------ */
.studio { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.studio-grid { position: relative; z-index: 1; }

/* Slow-rotating decorative cog */
.deco-gear {
  position: absolute; right: -72px; bottom: -72px;
  width: 300px; height: 300px; z-index: 0;
  color: rgba(244, 192, 32, 0.05);
  pointer-events: none;
}
.deco-gear svg { width: 100%; height: 100%; transform-origin: 50% 50%; animation: gearSpin 48s linear infinite; }
@keyframes gearSpin { to { transform: rotate(360deg); } }
.studio-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.studio-intro { display: flex; flex-direction: column; gap: 18px; }
.studio-intro h2 { line-height: 1.02; }
.studio-body { display: flex; flex-direction: column; gap: 32px; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 24px; }
.pillar {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 20px; border-top: 1px solid var(--gold-border);
}
.pillar-title {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold);
}
.pillar-text { font-size: 15px; line-height: 1.55; color: var(--text-dim); }

/* Core-strengths chips */
.studio-tags {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.studio-tag {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--gold); background: var(--gold-soft);
  border: 1px solid var(--gold-border); border-radius: 999px;
  padding: 7px 14px; white-space: nowrap;
}

/* ------------------------------- Belief ------------------------------ */
.belief { background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.belief-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.belief-intro { display: flex; flex-direction: column; gap: 16px; }
.belief-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.belief-point { display: flex; flex-direction: column; gap: 14px; }
.belief-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-border); color: var(--gold);
}
.belief-icon svg { width: 22px; height: 22px; }
.belief-point p { font-size: 15px; line-height: 1.55; color: var(--text-muted); max-width: 240px; }

/* ------------------------------ Journey ------------------------------ */
.journey { border-bottom: 1px solid var(--line); }
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
}
.milestone {
  position: relative;
  text-align: center;
  padding-top: 26px;
}
.milestone-dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold-border);
}
.milestone.is-active .milestone-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); }
.milestone h3 { font-family: var(--font-body); font-weight: 600; font-size: 19px; color: var(--text); margin-bottom: 6px; }
.milestone p { font-size: 14px; color: var(--text-dim); }

/* -------------------------------- Games ------------------------------ */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-head h2 { line-height: 1; }
.section-count {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
  padding-bottom: 6px; white-space: nowrap;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.game-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease;
}
/* Cursor-following gold highlight (--mx/--my set in main.js) */
.game-card::before {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(244, 192, 32, 0.18), transparent 60%);
}
.game-card:hover::before { opacity: 1; }
.game-card:hover {
  border-color: rgba(244, 192, 32, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -28px rgba(244, 192, 32, 0.38), 0 10px 34px -14px rgba(0, 0, 0, 0.65);
}

.game-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-media);
  overflow: hidden;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Stretched link: clicking the cover opens the game's detail page.
   Sits above the art/scrim but below the trailer button (z-index 4). */
.game-cover-link { position: absolute; inset: 0; z-index: 3; }
.game-cover .badge,
.game-title { pointer-events: none; }
/* Placeholder gradients per game type (until real key art is added) */
.game-cover--play { background: radial-gradient(120% 120% at 20% 0%, #2a2410 0%, #14120c 70%); }
.game-cover--jam  { background: radial-gradient(120% 120% at 80% 0%, #33161a 0%, #14100f 70%); }
.game-cover--dev  { background: radial-gradient(120% 120% at 50% 0%, #201f1d 0%, #131211 70%); }

.game-title {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.2vw, 32px);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0,0,0,.7);
}
/* Scrim so the overlaid title stays readable over art */
.game-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%);
}

.game-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; }
.game-body p { font-size: 15px; line-height: 1.55; color: var(--text-dim); }
/* Description text is a stretched-free link to the detail page — uses otherwise
   dead space in the card body. Subtle brighten on hover signals it's clickable. */
.game-desc-link { text-decoration: none; color: inherit; display: block; }
.game-desc-link p { transition: color .18s ease; }
.game-desc-link:hover p { color: var(--text); }
.game-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--gold);
}
.game-link .arrow { width: 17px; height: 17px; transition: transform .18s ease; }
.game-link:hover .arrow { transform: translateX(3px); }

/* Subsections within Our Games (Released / In Development) */
.games-subhead {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-mono); text-transform: uppercase;
  font-size: 13px; letter-spacing: 0.18em; color: var(--gold);
  margin: 46px 0 22px;
}
.games-subhead:first-of-type { margin-top: 34px; }
.games-subhead::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Featured spotlight + secondary "also from the studio" games */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 26px;
  align-items: start; /* cards size to their content — no empty stretch space */
}
.game-card--featured { border-color: rgba(244, 192, 32, 0.26); }
.game-card--featured .game-cover { aspect-ratio: 16 / 9; }
.game-card--featured .game-body { gap: 16px; padding: 24px 26px 26px; }
/* One clear full-width primary button + a subtle "read the story" text link,
   stacked. Cleaner than two mismatched button boxes side by side. */
.game-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 8px; }
.game-actions .btn { width: 100%; justify-content: center; }
.game-actions .game-link { align-self: flex-start; }

/* Publisher / funding credits on a game card (Headup, MFG Baden-Württemberg).
   Monochrome white logos sit directly on the card — no boxes. */
.game-credits {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line);
}
.game-credits-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-faint);
}
.game-credits-logos { display: flex; align-items: center; gap: 22px; }
.game-credit-logo {
  width: auto; opacity: 0.95;
  transition: opacity .2s ease;
}
.game-credit-headup { height: 22px; }
.game-credit-mfg { height: 32px; }
.game-credits-sep { width: 1px; height: 30px; background: var(--line-strong); flex-shrink: 0; }
.game-card:hover .game-credit-logo { opacity: 1; }

/* Trailer play button on the cover */
.trailer-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(12, 12, 13, 0.55); border: 1.5px solid rgba(245, 241, 232, 0.6);
  color: #F5F1E8; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.trailer-play svg { width: 24px; height: 24px; margin-left: 3px; }
.trailer-play:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); transform: translate(-50%, -50%) scale(1.08); }

/* Trailer lightbox */
.trailer-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.trailer-modal.open { display: flex; }
.trailer-frame {
  position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9;
  background: #000; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.9);
}
.trailer-frame video,
.trailer-frame iframe { width: 100%; height: 100%; display: block; border: 0; background: #000; }
.trailer-close {
  position: absolute; top: 16px; right: 20px; z-index: 1001;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.trailer-close:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
/* Fallback link shown while a YouTube trailer is open (embed may be blocked) */
.trailer-fallback {
  position: absolute; top: 22px; left: 24px; z-index: 1001;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}
.trailer-fallback:hover { color: var(--gold); }

.more-games { margin-top: 52px; }
.more-label {
  display: block; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-faint);
}
.game-grid--mini {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 26px;
  max-width: 760px;
  align-items: start;
}

/* Badges */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 100px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
  /* Dark glass backing keeps badges legible over both bright and dark art */
  background: rgba(12, 12, 13, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid transparent;
}
.badge-steam { color: var(--gold); border-color: rgba(244,192,32,.5); }
.badge-play  { color: #8FE6A6; border-color: rgba(72,180,97,.55); }
.badge-jam   { color: #F3899A; border-color: rgba(233,86,110,.55); }
.badge-dev   { color: #C8C3B8; border-color: rgba(245,241,232,.3); }
.badge-pub   { color: #E7E2D6; border-color: rgba(245,241,232,.32); }
.badge-hire  { color: #86CFE0; border-color: rgba(120,190,215,.5); }

/* --------------------- Collaborations marquee ------------------------ */
.collab.section { padding: 72px 0; }

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 4px 0;
  /* Fade the left/right edges so cards slide in and out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: collabScroll 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: contents; }

/* left → right: content travels from -50% back to 0, looping seamlessly */
@keyframes collabScroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.collab-card { flex: 0 0 auto; width: 236px; margin-right: 18px; }
.collab-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-media);
  border: 1px solid var(--line-strong);
}
.collab-cover img { width: 100%; height: 100%; object-fit: cover; }
.collab-cover.is-placeholder {
  background: radial-gradient(120% 120% at 50% 0%, #201f1d 0%, #131211 70%);
}
.collab-badge {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 9px; border-radius: 100px;
  background: rgba(12, 12, 13, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(245, 241, 232, 0.28);
  color: #E7E2D6;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
}
.collab-title {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; color: var(--text);
}
.collab-role { margin-top: 5px; font-size: 12px; color: var(--text-dim); }

/* No auto-scroll for users who prefer reduced motion — let them swipe instead */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* --------------------------- Work With Us ---------------------------- */
.hire { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg-panel); }
.hire-glow {
  position: absolute; top: -30%; right: -10%;
  width: 640px; height: 640px; max-width: 90vw;
  background: radial-gradient(circle, rgba(244,192,32,.12) 0%, rgba(244,192,32,0) 62%);
  filter: blur(12px);
  animation: ewGlow 11s ease-in-out infinite;
  pointer-events: none;
}
.hire .container { position: relative; z-index: 1; }
.hire-lead { max-width: 660px; margin: 0 auto 48px; text-align: center; }

.hire-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 48px;
}
.hire-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .3s ease;
}
.hire-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px rgba(244, 192, 32, 0.34);
}
.hire-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold-border);
  color: var(--gold);
}
.hire-icon svg { width: 24px; height: 24px; }
.hire-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--text);
}
.hire-card p { font-size: 15px; line-height: 1.6; color: var(--text-dim); }

.hire-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hire-cta-note {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-faint);
}

/* ------------------------------- Contact ----------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-intro .lead { max-width: 420px; }
.contact-direct { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.contact-direct-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-faint);
}
.contact-direct a { font-size: 17px; }
.contact-direct address { font-style: normal; font-size: 16px; line-height: 1.5; color: var(--text-muted); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold-border); }
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E998F' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.field select option { color: #111; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-msg { font-size: 14px; color: var(--gold); min-height: 18px; margin: 0; }
.contact-msg.is-error { color: #E8896B; }

/* -------------------------- CTA + Footer ----------------------------- */
.site-footer { position: relative; border-top: 1px solid var(--line); overflow: hidden; }
.footer-glow {
  position: absolute; bottom: -40%; left: -10%;
  width: 700px; height: 500px; max-width: 90vw;
  background: radial-gradient(circle, rgba(244,192,32,.12) 0%, rgba(244,192,32,0) 64%);
  pointer-events: none;
  animation: ctaDrift 14s ease-in-out infinite;
}
@keyframes ctaDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .7; }
  50%      { transform: translate(70px, -34px) scale(1.18); opacity: 1; }
}
/* Shimmering gradient on the CTA accent word */
.footer-cta .accent {
  background: linear-gradient(90deg, #F4C020, #FFD24A, #FF9A2E, #FFD24A, #F4C020);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #F4C020;
  animation: ctaShine 7s linear infinite;
}
@keyframes ctaShine { to { background-position: 250% 0; } }
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding: 72px 24px 56px;
}
.footer-cta { display: flex; flex-direction: column; gap: 18px; }
.footer-cta h2 { line-height: 1.05; }
.footer-cta .lead { max-width: 360px; }
.footer-cta .btn { align-self: flex-start; margin-top: 4px; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono); font-weight: 400; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint);
  margin-bottom: 4px;
}
.footer-col > a { color: var(--text-muted); font-size: 15px; }
.footer-col > a:hover { color: var(--gold); }
.social { display: inline-flex; align-items: center; gap: 10px; }
.social svg { width: 18px; height: 18px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom .container { padding: 0 24px; }
.footer-bottom span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-faint); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-bottom a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-faint); }
.footer-bottom a:hover { color: var(--gold); }

/* ------------------------------ Impressum ---------------------------- */
.impressum { border-top: 1px solid var(--line); }
.impressum .eyebrow { margin-bottom: 30px; }
.impressum-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
.impressum-block h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--text); margin-bottom: 12px;
}
.impressum-suffix { color: var(--text-muted); font-weight: 400; font-size: 0.7em; }
.impressum-block h4 {
  font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-faint); margin: 18px 0 6px;
}
.impressum-block p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.impressum-block a { color: var(--gold); }

/* ----------------------------- Animations ---------------------------- */
@keyframes ewGlow { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .8; transform: scale(1.06); } }
@keyframes ewRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   TABLET  (>= 600px)
   ===================================================================== */
@media (min-width: 600px) {
  .container { padding: 0 40px; }
  .site-nav { padding: 0 40px; }
  .section { padding: 100px 0; }

  .crew-grid    { grid-template-columns: repeat(3, 1fr); }
  .pillars      { grid-template-columns: repeat(3, 1fr); }
  .hire-grid    { grid-template-columns: repeat(3, 1fr); }
  .belief-points{ grid-template-columns: repeat(3, 1fr); }
  .timeline     { grid-template-columns: repeat(3, 1fr); }
  .game-grid    { grid-template-columns: repeat(2, 1fr); }
  .field-row    { grid-template-columns: 1fr 1fr; }
  .impressum-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; }

  .footer-grid  { grid-template-columns: 1fr 1fr; padding: 88px 40px 56px; }
  .footer-cta   { grid-column: 1 / -1; }
  .footer-bottom .container { padding: 0 40px; }

  .lead { font-size: 18px; }

  /* Horizontal timeline connector */
  .timeline::before {
    content: ""; position: absolute; top: 6px; left: 16%; right: 16%; height: 1px;
    background: var(--gold-border);
  }
}

/* =====================================================================
   DESKTOP  (>= 1024px)
   ===================================================================== */
@media (min-width: 1024px) {
  .section { padding: 120px 0; }

  .nav-toggle { display: none; }
  .nav-links {
    display: flex; flex-direction: row; align-items: center; gap: 38px;
    position: static; padding: 0; background: none; border: none;
  }
  .nav-links > a { padding: 0; font-size: 15px; }

  .hero-grid   { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .studio-grid { grid-template-columns: 0.85fr 1.15fr; gap: 70px; }
  .contact-grid{ grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .belief-grid { grid-template-columns: 0.9fr 1.4fr; gap: 64px; }
  .game-grid   { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .footer-cta  { grid-column: auto; }
}
