/* =========================================================
   Entertainment Forge Studio — static site styles
   ========================================================= */

:root {
  --bg:            #0d0d10;
  --bg-elev:       #16161b;
  --bg-elev-2:     #1e1e25;
  --text:          #f4f3f1;
  --text-muted:    #a3a2ab;
  --accent:        #e8672e;
  --accent-hover:  #ff7d40;
  --border:        rgba(255, 255, 255, 0.09);
  --header-h:      72px;
  --maxw:          1180px;
  --radius:        14px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --font:          "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 8px 24px -8px rgba(232, 103, 46, 0.6);
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  box-shadow: none;
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 13, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img { width: 30px; height: 30px; }
.brand span { color: var(--text); }
.brand .brand-accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.social a {
  color: var(--text-muted);
  display: inline-flex;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}
.social a:hover { color: var(--text); transform: translateY(-2px); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(13, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 16px clamp(20px, 5vw, 48px);
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .social {
    gap: 24px;
    padding: 22px clamp(20px, 5vw, 48px) 4px;
  }
  .social svg { width: 24px; height: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(13,13,16,0.92) 0%, rgba(13,13,16,0.55) 45%, rgba(13,13,16,0.35) 100%),
    linear-gradient(180deg, rgba(13,13,16,0.45) 0%, rgba(13,13,16,0.62) 55%, var(--bg) 100%),
    url("../assets/bg-map.webp") center / cover no-repeat;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 720px; }
.hero .eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Section shell ---------- */
.section { padding: clamp(64px, 12vw, 130px) 0; }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(40px, 7vw, 72px);
}
.section-head .eyebrow {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

/* ---------- Games ---------- */
.games { display: flex; flex-direction: column; gap: clamp(56px, 10vw, 120px); }

.game {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}
.game:nth-child(even) .game-media { order: 2; }

.game-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  aspect-ratio: 16 / 9;
}
.game-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.game-media:hover img { transform: scale(1.04); }

.game-body .kicker {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.game-body h3 { margin-bottom: 16px; }
.game-body p { color: var(--text-muted); margin-bottom: 26px; max-width: 46ch; }

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

@media (max-width: 820px) {
  .game { grid-template-columns: 1fr; gap: 24px; }
  .game:nth-child(even) .game-media { order: 0; }
}

/* ---------- Generic page (about / contact) ---------- */
.page {
  padding: calc(var(--header-h) + clamp(60px, 12vw, 130px)) 0 clamp(64px, 12vw, 130px);
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(13,13,16,0.86) 0%, rgba(13,13,16,0.94) 60%, var(--bg) 100%),
    url("../assets/bg-map.webp") center top / cover no-repeat;
}
.page .container { position: relative; z-index: 1; }
.prose { max-width: 680px; }
.prose h1 { margin-bottom: 28px; }
.prose p { font-size: 1.18rem; color: var(--text-muted); }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-hover); }

.contact-card {
  margin-top: 36px;
  padding: 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}
.contact-card .label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-card a {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact-card a:hover { color: var(--accent); }

.credits { margin-top: 40px; display: grid; gap: 14px; }
.credits .credit {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 1rem;
}
.credits .credit strong { color: var(--text); font-weight: 600; min-width: 150px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: clamp(48px, 8vw, 80px) 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 34ch; }
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col a { color: var(--text); font-size: 0.98rem; }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--text-muted); }
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

.footer-bottom {
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll (only when JS is active) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}
