/* ═══════════════════════════════════════════════════════════════
   GRANDFLEET™ — Shared Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:       #C9950C;
  --gold-dim:   #A87800;
  --gold-dark:  #7A5500;
  --black:      #21252b;
  --surface:    #f6f7f8;
  --surface2:   #282c34;
  --surface3:   #f0e4c8;
  --border:     #e8d8be;
  --text:       #21252b;
  --text-dim:   #5c5f6e;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Inter', 'Outfit', sans-serif;
  --radius:     2px;
  --transition: 0.3s ease;
}

/* ── Dark-page theme (games, team, detail pages) ────────────────── */
body.dark-page {
  --gold:       #C9950C;
  --gold-dim:   #A87800;
  --gold-dark:  #7A5500;
  --surface:    #21252b;
  --surface2:   #282c34;
  --surface3:   #2d3139;
  --border:     #383d47;
  --text:       #f6f7f8;
  --text-dim:   #9da1ad;
  background: #1a1d22;
  color: #f6f7f8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--surface2);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #21252b; color: #f6f7f8; }

/* ─── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface3); }
::-webkit-scrollbar-thumb { background: #282c34; border-radius: 3px; }

/* ─── UTILITIES ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.gold-text {
  background: linear-gradient(135deg, #8B6200 0%, #C9950C 30%, #F5D485 60%, #C9950C 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-dim   { color: var(--text-dim); }

.section-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: #21252b;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.dark-page .section-label {
  background: linear-gradient(135deg, #C9950C 0%, #F5D485 50%, #C9950C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, #21252b, transparent);
  margin-bottom: 24px;
}
.dark-page .gold-line { background: linear-gradient(90deg, var(--gold), transparent); }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.07em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  border: 2px solid transparent;
}
.btn-gold {
  background: #C9950C;
  color: #1a1000;
  border-color: #C9950C;
}
.btn-gold:hover {
  background: #A87800;
  color: #fff;
  border-color: #A87800;
}
.btn-outline {
  background: transparent;
  color: #21252b;
  border-color: #21252b;
}
.btn-outline:hover {
  background: #21252b;
  color: #f6f7f8;
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: #21252b;
  color: #21252b;
}
.dark-page .btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold); }
/* Button overrides on dark-themed pages */
.dark-page .btn-gold  {
  background: #C9950C;
  color: #1a1000; border-color: #C9950C;
}
.dark-page .btn-gold:hover  { background: #A87800; color: #fff; border-color: #A87800; box-shadow: 0 0 20px rgba(201,149,12,0.35); }
.dark-page .btn-outline { color: #C9950C; border-color: #C9950C; }
.dark-page .btn-outline:hover { background: linear-gradient(135deg, #8B6200 0%, #C9950C 35%, #F5D485 65%, #C9950C 100%); color: #1a1000; border-color: transparent; box-shadow: 0 0 20px rgba(201,149,12,0.35); }
.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-lg { padding: 16px 40px; font-size: 1rem; }

/* ─── BADGES & TAGS ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius);
}
.badge-gold   { color: #21252b; border: 1px solid rgba(33,37,43,0.25); background: rgba(33,37,43,0.06); }
.dark-page .badge-gold { color: var(--gold); border: 1px solid rgba(212,175,55,0.4); background: rgba(212,175,55,0.1); }
.badge-orange { color: #ff6b35;       border: 1px solid rgba(255,107,53,0.35); background: rgba(255,107,53,0.07); }
.dark-page .badge-orange { color: #ff8c42; border: 1px solid rgba(255,140,66,0.4); background: rgba(255,140,66,0.1); }
.badge-gray   { color: var(--text-dim); border: 1px solid var(--border);       background: var(--surface2); }
.dark-page .badge-gray { color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.tag:hover { border-color: #21252b; color: #21252b; }
.dark-page .tag:hover { border-color: var(--gold-dark); color: var(--gold); }

/* ─── FADE-UP ANIMATION ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ─── NAVIGATION ─────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 0;
  background: rgba(0,0,0,0.95);
  transition: background 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #8B6200 0%, #C9950C 30%, #F5D485 60%, #C9950C 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.85; }
.site-logo {
  height: 20px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
  background: none; border: none;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  transition: all var(--transition);
  display: block;
}

/* ─── BREADCRUMB ─────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 28px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s; text-decoration: none; }
.breadcrumb a:hover { color: #21252b; }
.breadcrumb .sep { color: var(--border); margin: 0 4px; }
.breadcrumb .current { color: #21252b; }
.dark-page .breadcrumb a { color: rgba(255, 255, 255, 0.6); }
.dark-page .breadcrumb a:hover { color: var(--gold); text-decoration: none; }
.dark-page .breadcrumb .current { color: var(--gold); }
.dark-page .breadcrumb .sep { color: rgba(255, 255, 255, 0.2); }

/* ─── SECTION HEADERS ────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 12px;
}
.section-head p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 550px;
  margin: 0 auto;
}

/* ─── GAME / PROJECT CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(33,37,43,0.5), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.card:hover { transform: translateY(-6px); border-color: #282c34; box-shadow: 0 24px 60px rgba(0,0,0,0.15); }
.card:hover::before { transform: scaleX(1); }
.card-pad { padding: 36px; }

/* ─── GAME ICON — SVG colour ─────────────────────────────────────── */
.game-icon svg { color: #000; }

/* ─── STAR RATINGS ───────────────────────────────────────────────── */
.game-rating { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #21252b; font-weight: 600; margin-bottom: 20px; }
.stars { display: inline-flex; gap: 2px; }
.star-svg {
  width: 14px; height: 14px;
  fill: #21252b;
  flex-shrink: 0;
}

/* ─── FORM STATUS ────────────────────────────────────────────────── */
.form-status {
  padding: 12px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.form-status--success {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  color: #4ade80;
}
.form-status--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ─── UIVERSE-INSPIRED: card shimmer on hover ────────────────────── */
.game-card::after,
.indev-card::after,
.team-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 175, 55, 0.03) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.game-card:hover::after,
.indev-card:hover::after { opacity: 1; }

/* ─── UIVERSE-INSPIRED: btn-gold animated border glow ───────────── */
.btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-gold::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  pointer-events: none;
}
.btn-gold:hover::after { width: 300px; height: 300px; }

/* ─── SKILL TAG tooltip ──────────────────────────────────────────── */
.skill-tag {
  position: relative;
  cursor: default;
}

/* ─── CLASSIFIED BADGE pulse dot ────────────────────────────────── */
.classified-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #21252b;
  border-radius: 50%;
  margin-right: 6px;
  animation: pulse 2s ease infinite;
}

/* ─── INDEV TAG icon alignment ───────────────────────────────────── */
.indev-tag {
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── GAME ICON ──────────────────────────────────────────────────── */
.game-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #282c34 0%, #21252b 100%);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(33,37,43,0.15);
}
.game-icon-lg {
  width: 120px; height: 120px;
  border-radius: 28px;
  font-size: 3rem;
  box-shadow: 0 12px 40px rgba(33,37,43,0.18);
}

/* ─── PROGRESS BAR ───────────────────────────────────────────────── */
.progress-wrap { margin-top: 24px; }
.progress-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.progress-label span { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.progress-label .pct { color: #21252b; font-weight: 700; }
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #282c34, #21252b);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── STATS BAR ──────────────────────────────────────────────────── */
.stats-band { background: #21252b; overflow: hidden; }
.stats-inner { display: flex; align-items: stretch; }
.stat-item {
  flex: 1; padding: 40px 20px; text-align: center;
  position: relative; transition: background var(--transition);
}
.stat-item:hover { background: rgba(255,255,255,0.05); }
.stat-item + .stat-item::before {
  content: ''; position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px; background: rgba(255,255,255,0.1);
}
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #C9950C 0%, #F5D485 50%, #C9950C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; display: block;
}
.stat-desc {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 6px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
footer {
  background: #0d0d0d;
  border-top: 1px solid #222;
  padding: 60px 0 36px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 48px;
}
.footer-site-logo {
  height: 110px;
  width: auto;
  margin-bottom: 16px;
  display: block;
}
.footer-brand .tagline {
  font-size: 0.85rem; color: #888; letter-spacing: 0.05em;
}
.footer-nav { display: flex; gap: 60px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #C9950C 0%, #F5D485 50%, #C9950C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  display: inline-block;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: #888; transition: color 0.3s; }
.footer-col ul li a:hover { color: #D4AF37; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: #666; }
.footer-bottom .made span { color: #D4AF37; }

/* ─── PAGE HERO (detail pages) ───────────────────────────────────── */
.page-hero {
  min-height: 55vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  padding: 120px 0 60px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.page-hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-hero-bg .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, transparent 30%, rgba(0,0,0,0.9) 100%);
}
.page-hero-bg .accent-glow {
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero h1 .sub-title {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  background: linear-gradient(135deg, #8B6200 0%, #C9950C 30%, #F5D485 60%, #C9950C 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  margin-top: 8px;
}
.page-hero-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 580px;
  line-height: 1.85;
  margin-bottom: 36px;
}
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── FEATURE GRID ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-item:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.feature-icon {
  font-size: 1.8rem; margin-bottom: 16px;
  display: block;
}
.feature-item h4 {
  font-family: var(--font-head);
  font-size: 1.1rem; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 8px;
}
.feature-item p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.75; }

/* ─── SERVICES SHOWCASE (Diamonds overlapping cards) ─────────────── */
.services-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
  max-width: 900px;
  margin: 0 auto;
}

.service-row {
  display: flex;
  align-items: stretch;
  position: relative;
  min-height: 200px;
}

/* Service Card (the wide background) */
.service-card {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.service-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(212, 175, 55, 0.05);
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-dim);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Dark page overrides for service cards */
.dark-page .service-card {
  background: rgba(20, 26, 46, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.dark-page .service-card:hover { border-color: rgba(212, 175, 55, 0.3); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.05); }
.dark-page .service-card h3 { color: #fff; }
.dark-page .service-card p { color: rgba(255, 255, 255, 0.75); }

.service-card.text-right { padding-left: 180px; }
.service-card.text-left  { padding-right: 180px; }

/* The rotated diamond container */
.service-diamond {
  position: absolute;
  top: 50%;
  width: 140px;
  height: 140px;
  background: #111; /* Dark solid base to visually cut into the card */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transform: translateY(-50%) rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  z-index: 2;
}

/* Center the icon back upright and size it */
.diamond-inner {
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.diamond-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG Icon Styling & Animations (Replacing Emojis) */
.service-icon-svg {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4));
  transition: transform 0.4s ease;
}

.service-row:hover .service-icon-svg {
  transform: scale(1.1);
}

/* Gentle floating animation for the Gamepad */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.icon-gamepad {
  animation: floatIcon 3s ease-in-out infinite;
}

/* Hue shifting animation for the Palette */
@keyframes hueShift {
  0%, 100% { filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.4)) hue-rotate(45deg); }
}
.icon-palette {
  animation: hueShift 4s ease-in-out infinite;
}

/* Continuous slow spin for the Gear */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.icon-gear {
  animation: spinSlow 8s linear infinite;
  transform-origin: center;
}

.service-row:hover .service-diamond {
  border-color: var(--gold);
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Positioning the diamonds on the edges */
.left-aligned { left: -40px; }
.right-aligned { right: -40px; }

/* Responsive break: stack them */
@media (max-width: 900px) {
  .service-row {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .service-diamond {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: rotate(45deg);
    margin-bottom: -70px; /* Pull the card up under it */
  }
  .service-card, .service-row.reverse .service-card {
    padding: 80px 30px 40px;
    text-align: center;
  }
}

/* ─── MEDIA PARTNERS (Infinite Marquee) ────────────────────────────── */
.media-partners {
  background: var(--surface2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* Fading edges for the marquee */
.media-partners::before,
.media-partners::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.media-partners::before {
  left: 0;
  background: linear-gradient(to right, var(--surface2) 0%, transparent 100%);
}
.media-partners::after {
  right: 0;
  background: linear-gradient(to left, var(--surface2) 0%, transparent 100%);
}
.dark-page .media-partners::before { background: linear-gradient(to right, #000 0%, transparent 100%); }
.dark-page .media-partners::after  { background: linear-gradient(to left, #000 0%, transparent 100%); }

.marquee-track {
  display: flex;
  gap: 80px;
  min-width: 200%;
  animation: scrollMarquee 30s linear infinite;
  padding: 0 40px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  opacity: 0.4;
  transition: all 0.3s ease;
  user-select: none;
}

.partner-logo:hover {
  opacity: 1;
  color: var(--gold);
  transform: scale(1.05);
}

.partner-logo svg {
  height: 36px;
  width: auto;
  fill: currentColor;
}

/* ─── TECH STACK ─────────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.tech-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  transition: border-color var(--transition);
}
.tech-item:hover { border-color: var(--gold-dark); }
.tech-item .t-icon { font-size: 1.5rem; }
.tech-item .t-name { font-size: 0.85rem; font-weight: 600; color: var(--text); letter-spacing: 0.05em; }
.tech-item .t-role { font-size: 0.72rem; color: var(--text-dim); }

/* ─── SCREENSHOT GRID ────────────────────────────────────────────── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.screenshot-placeholder {
  background: var(--surface2);
  border: 1px solid var(--border);
  aspect-ratio: 9/16;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}
.screenshot-placeholder:hover { border-color: var(--gold-dark); }
.screenshot-placeholder .ph-icon { font-size: 2.5rem; opacity: 0.4; }

.screenshot-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 16px;
}
.screenshot-placeholder-wide { aspect-ratio: 16/9; }

/* ─── INFO TABLE ─────────────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 1px solid var(--border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 14px 0; font-size: 0.9rem; vertical-align: top; }
.info-table td:first-child {
  color: #21252b; font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  width: 160px; padding-right: 20px;
}
.info-table td:last-child { color: var(--text-dim); }

/* ─── RELATED GAMES ──────────────────────────────────────────────── */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.related-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover { border-color: var(--gold-dark); transform: translateY(-3px); }
.related-card .r-icon { font-size: 1.8rem; }
.related-card .r-title { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); letter-spacing: 0.04em; }
.related-card .r-desc  { font-size: 0.85rem; color: var(--text-dim); line-height: 1.7; }

/* ─── CTA SECTION ────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text); letter-spacing: 0.03em; margin-bottom: 16px;
}
.cta-section p {
  font-size: 1rem; color: var(--text-dim); margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── DIVIDER ────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }
.divider-gold { border-top-color: rgba(33,37,43,0.15); }
.dark-page .divider-gold { border-top-color: rgba(248,177,51,0.2); }


/* ════════════════════════════════════════════════════════════════
   INDEX PAGE — HOMEPAGE SPECIFIC STYLES
   ════════════════════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 120px;
  background: #000;
}
#particle-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-noise {
  position: absolute; 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='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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 50%, rgba(0,0,0,0.92) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 0%,   rgba(0,0,0,0.65) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.65) 0%, transparent 55%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
  margin-left: 100px;
  text-align: left;
}
.hero-content::before {
  content: '';
  position: absolute;
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(201,149,12,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201,149,12,0.45);
  padding: 6px 16px;
  border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  background: linear-gradient(135deg, #8B6200 0%, #C9950C 30%, #F5D485 60%, #C9950C 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease 0.2s both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.4s both;
}
.hero-title .line2 {
  background: linear-gradient(135deg, #8B6200 0%, #C9950C 25%, #F5D485 55%, #C9950C 80%, #8B6200 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.6s both;
}
.hero-ctas {
  display: flex; gap: 16px; flex-wrap: wrap;
  justify-content: flex-start;
  animation: fadeInUp 1s ease 0.8s both;
}
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  animation: fadeIn 1s ease 1.2s both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ─── HERO TYPEWRITER CARDS ─────────────────────────────────────── */
.hero-spec-label {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(201,149,12,0.75);
  font-weight: 600;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease 0.35s both;
}
.hero-type-card {
  border-left: 3px solid var(--gold);
  border-top: 1px solid rgba(201,149,12,0.22);
  border-right: 1px solid rgba(201,149,12,0.1);
  border-bottom: 1px solid rgba(201,149,12,0.1);
  border-radius: 0 12px 12px 0;
  padding: 22px 30px;
  max-width: 620px;
  min-height: 82px;
  display: flex;
  align-items: center;
  background: rgba(201,149,12,0.03);
  box-shadow: -2px 0 28px rgba(201,149,12,0.14), inset 0 0 50px rgba(201,149,12,0.02);
  margin-bottom: 10px;
  animation: fadeInUp 1s ease 0.5s both;
}
#heroTypewriter {
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-cursor {
  display: inline-block;
  color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 300;
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 3px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-desc-card {
  border-left: 3px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  border-radius: 0 12px 12px 0;
  padding: 20px 30px;
  max-width: 620px;
  min-height: 100px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.015);
  margin-bottom: 48px;
  animation: fadeInUp 1s ease 0.6s both;
}
#heroDescWriter {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(246,247,248,0.5);
  font-weight: 300;
}
.hero-desc-cursor {
  display: inline-block;
  color: rgba(246,247,248,0.25);
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 1px;
}

/* ─── ABOUT ──────────────────────────────────────────────────────── */
#about { padding: 80px 0; background: var(--surface); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1; letter-spacing: 0.02em;
  margin-bottom: 24px; color: var(--text);
}
.about-text p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.9; margin-bottom: 20px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.stat-chip {
  border: 1px solid var(--border);
  padding: 16px 20px;
  background: var(--surface2);
  transition: border-color var(--transition);
}
.stat-chip:hover { border-color: #21252b; }
.stat-chip .label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #21252b; margin-bottom: 4px;
}
.stat-chip .value { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); }
.about-visual {
  position: relative; height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.geo-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px; opacity: 0.35;
}
.geo-cell { background: var(--border); transition: background var(--transition); }
.geo-cell:nth-child(3n+1) { background: rgba(212,175,55,0.15); }
.geo-cell:nth-child(7n+3) { background: rgba(212,175,55,0.08); }
.geo-hex {
  position: relative; z-index: 1;
  width: 160px; height: 184px;
  background: linear-gradient(135deg, #282c34, #21252b);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  animation: hexRotate 8s linear infinite;
}
.geo-hex-inner {
  width: 120px; height: 138px;
  background: var(--surface);
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem; letter-spacing: 0.05em; color: #21252b;
}

/* ─── GAMES SECTION (INDEX) ─────────────────────────────────────── */
#games { padding: 24px 0; background: var(--surface2); overflow: hidden; }
#games .container { max-width: 1400px; }
#hero .container { margin-left: 0; }

/* Header: label + title left, dots + arrows right */
.ig-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}
.ig-header .section-label { margin-bottom: 4px; color: var(--gold); }
.ig-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  letter-spacing: 0.03em; color: #f6f7f8; line-height: 1.05;
  margin: 0;
}
.ig-header-right { display: flex; align-items: center; gap: 16px; }
.ig-dots { display: flex; gap: 8px; align-items: center; }
.ig-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.2); cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.ig-dot.active { background: var(--gold); transform: scale(1.35); }
.ig-arrows { display: flex; gap: 8px; }

/* Carousel */
.ig-carousel-wrapper { overflow: hidden; }
.ig-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Single slide: left (trailer) + right (portrait thumbnail) */
.ig-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 2fr 1fr;
  border: 1px solid var(--border);
  height: 650px;
  overflow: hidden;
}

/* Left panel */
.ig-slide-left {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  height: 100%;
}

/* Game title badge — top left corner */
.ig-game-title {
  position: absolute; top: 24px; left: 24px; z-index: 3;
  font-family: var(--font-head);
  font-size: 1.1rem; letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 8px 20px;
  backdrop-filter: blur(4px);
  background: rgba(0,0,0,0.3);
}

/* Trailer placeholder / embed */
.ig-trailer {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.12);
  font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
  position: relative;
}
.ig-trailer iframe, .ig-trailer video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: none;
}

/* Hover info: slides up from bottom of left panel */
.ig-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 80px 28px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.55) 55%, transparent 100%);
  transform: translateY(0);
  opacity: 1;
  z-index: 4;
}
.ig-info-genre {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: linear-gradient(135deg, #C9950C 0%, #F5D485 50%, #C9950C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.ig-info-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem; line-height: 1.65;
  margin-bottom: 18px;
}
.ig-info-ctas { display: flex; gap: 8px; }
.ig-info-ctas .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.ig-info-ctas .btn-outline:hover {
  background: #fff;
  color: #21252b;
  border-color: #fff;
}

/* Right panel: portrait thumbnail */
.ig-slide-right {
  border-left: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  height: 100%;
}
.ig-slide-right img,
.ig-thumb-bg {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.ig-thumb-bg {
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.1);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Footer row */
.ig-footer { margin-top: 10px; display: flex; justify-content: flex-end; }

/* Prev/Next buttons (shared with games.html carousels) */
.carousel-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  padding: 0;
}
.carousel-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.5); color: #fff; }

/* Game card — tall portrait style (games.html full grid) */
.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.game-card:hover { transform: translateY(-6px); border-color: #282c34; box-shadow: 0 24px 60px rgba(0,0,0,0.12); }

/* Cover image area */
.game-cover {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.game-cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.game-cover-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(212,175,55,0.25);
}
.game-cover-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: #ff6b35; border: 1px solid rgba(255,107,53,0.5);
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

/* Card body (padded content below cover — games.html) */
.game-card-body {
  padding: 24px 28px 28px;
  flex: 1;
  display: flex; flex-direction: column;
}
.game-card-body .game-ctas { margin-top: auto; padding-top: 20px; }
.game-genre {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: var(--radius); margin-bottom: 16px;
}
.game-title {
  font-family: var(--font-head); font-size: 1.8rem;
  letter-spacing: 0.04em; color: var(--text); margin-bottom: 12px; line-height: 1.1;
}
.game-desc { font-size: 0.95rem; color: var(--text-dim); line-height: 1.8; margin-bottom: 20px; }
.game-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0; }
.meta-tag {
  font-size: 0.75rem; font-weight: 500; color: var(--text-dim);
  background: var(--surface2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--radius);
}
.game-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }



/* ─── TEAM ───────────────────────────────────────────────────────── */
#team { padding: 80px 0; background: var(--black); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dark);
  padding: 28px 22px; position: relative; overflow: hidden;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.team-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(33,37,43,0.5), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: #282c34; border-top-color: #21252b; box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.team-card:hover::after { transform: scaleX(1); }
.team-num { font-family: var(--font-head); font-size: 0.75rem; color: var(--gold-dark); letter-spacing: 0.12em; margin-bottom: 14px; }
.team-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #282c34, #21252b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.3rem; color: #f6f7f8;
  margin: 0 auto 18px; flex-shrink: 0;
}
.team-header { margin-bottom: 0; }
.team-info { flex: 1; }
.team-name { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.04em; color: var(--text); line-height: 1.15; margin-bottom: 8px; }
.team-role {
  font-size: 0.68rem; font-weight: 700; color: #282c34;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4;
}
.team-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }

/* ─── DEVELOPMENT TEAM ───────────────────────────────────────────── */
#dev-team { padding: 80px 0; background: var(--surface2); }
.dev-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.dev-role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.dev-role-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #282c34, #21252b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.dev-role-card:hover { transform: translateY(-6px); border-color: #282c34; box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.dev-role-card:hover::after { transform: scaleX(1); }
.dev-role-icon {
  width: 52px; height: 52px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #21252b;
  margin-bottom: 20px;
}
.dev-role-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
}
.dev-role-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0;
}
.dev-talent-note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
  line-height: 1.8;
}
.dev-talent-note strong { color: #21252b; font-weight: 600; }

/* ─── SERVICES ───────────────────────────────────────────────────── */
#services { padding: 80px 0; background: var(--black); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #282c34, #21252b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: #282c34; box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #21252b;
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 12px;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin-bottom: 20px;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.service-list li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-dark);
}
.services-cta {
  margin-top: 64px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.services-cta p { font-size: 1.1rem; color: var(--text-dim); }

/* ─── CONTACT ────────────────────────────────────────────────────── */
#contact { padding: 80px 0; background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-left h2 {
  font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.02em; color: var(--text); line-height: 1; margin-bottom: 20px;
}
.contact-left p { font-size: 1rem; color: var(--text-dim); line-height: 1.85; margin-bottom: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: #21252b;
  border: 1px solid #383d47; transition: all var(--transition); font-size: 0.9rem;
  color: #f6f7f8;
}
.contact-link:hover { border-color: var(--gold); background: #2d3139; color: #f6f7f8; transform: translateX(4px); }
.contact-link:hover .icon { border-color: var(--gold); color: var(--gold); }
.contact-link .icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0; transition: all var(--transition);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #21252b;
}
.form-group input,
.form-group textarea {
  background: #21252b; border: 1px solid #383d47;
  color: #f6f7f8; font-family: var(--font-body); font-size: 0.95rem;
  padding: 14px 18px; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none; border-radius: 0;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #21252b;
  box-shadow: 0 0 0 3px rgba(33,37,43,0.08);
}
.form-group textarea { min-height: 140px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: -8px; }
.send-btn { align-self: flex-start; padding: 14px 36px; }


/* ─── INDEX-PAGE KEYFRAMES ───────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes hexRotate {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(5deg) scale(1.02); }
  75%  { transform: rotate(-5deg) scale(0.98); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


/* ─── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; inset: 0; top: 70px;
    background: rgba(0,0,0,0.98);
    flex-direction: column; justify-content: center;
    gap: 40px; font-size: 1.1rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-nav { flex-wrap: wrap; gap: 40px; }
  .stats-inner { flex-wrap: wrap; }
  .stat-item { flex-basis: 50%; }
  .stat-item:nth-child(3)::before { display: none; }
  .page-hero { min-height: auto; padding: 100px 0 48px; }

  /* Index-specific mobile overrides */
  .hero-title { font-size: clamp(4rem, 18vw, 7rem); }
  #hero .container { margin-left: 0; }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 0.65rem; padding: 5px 12px; }
  .hero-spec-label { margin-bottom: 8px; }
  .hero-type-card {
    max-width: 100%;
    padding: 18px 20px;
    min-height: 72px;
    border-radius: 0 10px 10px 0;
  }
  .hero-desc-card {
    max-width: 100%;
    padding: 16px 20px;
    min-height: 88px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 36px;
  }
  #heroTypewriter { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  .hero-cursor    { font-size: clamp(1.3rem, 5.5vw, 1.9rem); }
  #heroDescWriter { font-size: 0.88rem; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { height: 250px; }
  .ig-header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .ig-slide { grid-template-columns: 1fr; min-height: auto; }
  .ig-slide-right { aspect-ratio: 9/16; max-height: 300px; border-left: none; border-top: 1px solid var(--border); }
  .ig-trailer { min-height: 240px; }
  .ig-game-title { font-size: clamp(1.4rem, 6vw, 2rem); }
  .ig-info-desc { font-size: 0.88rem; }
  .team-grid { grid-template-columns: 1fr; }
  .dev-roles-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 480px) {
  .page-hero-ctas, .cta-btns { flex-direction: column; align-items: flex-start; }
  .cta-section .cta-btns { align-items: center; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-type-card { padding: 16px 16px; }
  .hero-desc-card { padding: 14px 16px; min-height: 96px; }
  #heroTypewriter { font-size: 1.35rem; }
  .hero-cursor    { font-size: 1.35rem; }
  .stat-item { flex-basis: 100%; }
  .stat-item::before { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   GAMES SECTION — Full-bleed video, floating thumbnail
   ═══════════════════════════════════════════════════════════════ */

/* ── Remove every border/outline/shadow from old carousel elements ── */
#games .ig-slide,
#games .ig-header,
#games .ig-carousel-wrapper,
#games .ig-track,
#games .carousel-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
#games iframe { border: 0 !important; }

/* ── Section shell ── */
#games {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 620px;
}

/* ── Video background iframes ── */
.ig-video-bg {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: 177.78vh; height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  border: 0;
  transition: opacity 0.9s ease;
}

/* ── Dim overlay ── */
.ig-dim {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.54);
  z-index: 1;
  pointer-events: none;
}

/* ── Thumbnail panels on section ── */
.ig-thumb-panel {
  position: absolute;
  top: 50%; right: 4%;
  transform: translateY(-50%);
  width: 26%;
  aspect-ratio: 9 / 16;
  z-index: 3;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: opacity 0.9s ease;
}
.ig-thumb-panel img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Content wrapper ── */
.ig-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-height: 620px;
}

/* ── Top header bar ── */
.ig-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 52px 64px 32px;
}
.ig-topbar .section-label {
  font-size: 1rem;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}
.ig-topbar h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
.ig-topbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}

/* ── Dot indicators ── */
.ig-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background 0.35s, transform 0.35s;
  border: none; outline: none; box-shadow: none;
}
.ig-dot.active { background: var(--gold); transform: scale(1.25); }

/* ── Arrow buttons — no border ── */
.ig-arrow-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.42);
  border: none; outline: none; box-shadow: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s;
}
.ig-arrow-btn:hover { background: rgba(201,149,12,0.55); }

/* ── Slide track ── */
.ig-slides-outer { flex: 1; overflow: hidden; }
.ig-track {
  display: flex;
  height: 100%;
  transition: transform 0.62s cubic-bezier(0.4,0,0.2,1);
}
.ig-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 420px;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ── Game title badge — no background box ── */
.ig-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  align-self: flex-start;
}
.ig-title-badge img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.ig-title-badge span {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Bottom info block ── */
.ig-info-block { max-width: 48%; margin-bottom: 0; }
.ig-genre {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.ig-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.8;
  margin: 0 0 24px;
}
.ig-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── "More Games" footer ── */
.ig-footer-bar { padding: 28px 64px 44px; }

/* ── Prefers-reduced-motion: hide iframes, show poster ── */
@media (prefers-reduced-motion: reduce) {
  .ig-video-bg { display: none !important; }
  #igPoster     { display: block !important; }
  .ig-thumb-panel,
  .ig-title-badge,
  .ig-info-block { animation: none !important; transition: none !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ig-topbar { padding: 40px 28px 24px; }
  .ig-slide  { padding: 0 28px; min-height: 360px; }
  .ig-footer-bar { padding: 20px 28px 36px; }
  .ig-thumb-panel { width: 36%; }
  .ig-thumb-vignette { right: 36%; }
  .ig-info-block { max-width: 56%; }
}
@media (max-width: 600px) {
  #games { min-height: 0; }
  .ig-thumb-panel {
    /* Stack: thumbnail below content, full width strip */
    position: static;
    width: 100%;
    height: 220px;
    order: 99;
  }
  .ig-thumb-vignette { display: none; }
  .ig-dim { background: rgba(0,0,0,0.62); }
  .ig-content { min-height: 0; }
  .ig-slide { padding: 0 20px; }
  .ig-info-block { max-width: 100%; }
  .ig-topbar { padding: 32px 20px 24px; }
  .ig-footer-bar { padding: 16px 20px 28px; }
}
