/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f0ede8;
  --muted: rgba(255,255,255,0.45);
  --border: rgba(255,255,255,0.12);
  --accent: #c8a96e; /* warm gold */
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   NAV — minimal, pinned, transparent
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3.5rem;
  transition: background 0.5s, padding 0.4s;
}
nav.solid {
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.2rem 3.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Logo slot in nav (small, top-left) */
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
/*
  NAV LOGO — HOW TO REPLACE
  Change src="" to your logo file, e.g. src="logo-white.png"
  The text fallback shows automatically when no image is provided.
*/
.nav-logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}
.nav-logo .logo-fallback {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.18em;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--white); }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-cta {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.65rem 1.5rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ── Mobile nav toggle (hamburger) ── */
.nav-toggle {
  display: none;                /* shown only at <=600px breakpoint */
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  padding: 0;
  position: relative;
  z-index: 101;                 /* above the .mobile-menu overlay */
}
.nav-toggle span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 1.5px;
  background: var(--white);
  transition: top 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
/* X shape when expanded */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 99;                  /* below .nav-toggle (101) and #nav (100) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
.mobile-menu-links li { margin: 1.75rem 0; }
.mobile-menu-links a {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: inline-block;
}
.mobile-menu-links a:hover { color: var(--accent); }

/* Lock body scroll while the menu is open */
body.menu-open { overflow: hidden; }

/* ─────────────────────────────────────────
   HERO — full-viewport video
───────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  ══════════════════════════════════════════════════════
  VIDEO — HOW TO REPLACE WITH YOUR OWN VIDEO
  ══════════════════════════════════════════════════════
  1. Put your video file next to this HTML file.
  2. Update the <source> tags inside #hero-video:
       <source src="YOUR-VIDEO.mp4"  type="video/mp4">
       <source src="YOUR-VIDEO.webm" type="video/webm">
  3. Optionally add a poster="YOUR-THUMBNAIL.jpg" to the
     <video> tag for faster perceived loading.
  4. That's it — the video autoplays, loops, and fills the screen.

  Tips:
    • Compress your video to under ~15 MB for fast loading.
      Use HandBrake or: ffmpeg -i input.mp4 -crf 28 -preset slow output.mp4
    • Best resolution: 1920×1080
    • The dark overlay opacity is adjustable in .hero-overlay below.
  ══════════════════════════════════════════════════════
*/
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Adjust rgba alpha to make the video brighter or darker */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.38) 0%,
    rgba(0,0,0,0.18) 45%,
    rgba(0,0,0,0.60) 100%
  );
  z-index: 1;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
}

/* ── Hero center — logo is the sole focal point ── */
.hero-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
  animation: heroFadeIn 2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/*
  ══════════════════════════════════════════════════════
  HERO LOGO — HOW TO REPLACE
  ══════════════════════════════════════════════════════
  Option A (recommended): Image file
    Set src="your-logo.png" on the <img> tag below.
    Use a PNG or SVG with a transparent background.
    Recommended width: at least 600px.

  Option B: Text fallback
    If src is empty or the file is missing, the styled
    text "Digital Tinkerers" is shown automatically.
    You can edit that text inside #hero-logo-fallback.
  ══════════════════════════════════════════════════════
*/
.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo-wrap img {
  max-width: min(2800px, 95vw);
  max-height: 90vh;
  width: 95vw;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 50px rgba(0,0,0,0.55));
}
.hero-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 13vw, 10rem);
  letter-spacing: 0.1em;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 2px 70px rgba(0,0,0,0.6);
  user-select: none;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  animation: scrollHintFade 2.5s 1.8s ease both;
  transition: opacity 0.5s;
}
@keyframes scrollHintFade {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.scroll-hint span {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-arrow {
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.45), transparent);
  animation: arrowPulse 2.2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50%       { opacity: 1;    transform: scaleY(1.18); }
}

/* ─────────────────────────────────────────
   SHARED SECTION STYLES
───────────────────────────────────────── */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 3.5rem;
}

.section-eyebrow {
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }
.reveal-d6 { transition-delay: 0.48s; }

/* ─────────────────────────────────────────
   GAME SECTION
───────────────────────────────────────── */
#game {
  padding: 9rem 0;
  background: #0a0a0a;
  border-top: 1px solid var(--border);
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.game-visual {
  aspect-ratio: 16/10;
  background: transparent;
  position: relative;
  overflow: visible;
}

/* Replace this block with <img> or <video> of your game */
.game-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a0a0a 50%, #0d1a0d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.placeholder-icon { font-size: 2.8rem; opacity: 0.18; }
.placeholder-label {
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.game-scanline {
  position: absolute;
  top: -35%;
  left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.022), transparent);
  animation: scanline 4.5s linear infinite;
  pointer-events: none;
}
@keyframes scanline {
  from { top: -35%; }
  to   { top: 100%; }
}
.game-corner {
  position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(255,255,255,0.18);
  border-style: solid;
}
.gc-tl { top:0; left:0;   border-width:1px 0 0 1px; }
.gc-tr { top:0; right:0;  border-width:1px 1px 0 0; }
.gc-bl { bottom:0; left:0;  border-width:0 0 1px 1px; }
.gc-br { bottom:0; right:0; border-width:0 1px 1px 0; }

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}
.tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.34rem 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.tag:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

.game-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.62);
  margin-bottom: 1.5rem;
}
.game-text strong { color: var(--white); font-weight: 400; }

.btn-outline {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.38);
  padding: 1rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }

#contact-form-toggle,
.contact-form .btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
#contact-form-toggle:hover,
.contact-form .btn-outline:hover {
  background: #d0d0d0;
  border-color: #d0d0d0;
}

/* ─────────────────────────────────────────
   STUDIO SECTION
───────────────────────────────────────── */
#studio {
  padding: 9rem 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}
.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: start;
}
.studio-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.62);
}
.studio-body p { margin-bottom: 1.5rem; }
.studio-body strong { color: var(--white); font-weight: 400; }

/* ─────────────────────────────────────────
   VALUES STRIP
───────────────────────────────────────── */
#values {
  padding: 7rem 0;
  background: #080808;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.value-item {
  padding: 3.5rem 3rem;
  border-right: 1px solid var(--border);
  transition: background 0.3s;
  text-align: center;
}
.value-item:last-child { border-right: none; }
.value-item:hover { background: rgba(255,255,255,0.02); }

.value-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}
.value-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 1rem;
}
.value-icon {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  display: block;
  margin: 0 auto 1.25rem;
}

/* ── Value widgets (anime.js) ─────────────── */
.value-widget {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(200,169,110,0.06), transparent 70%),
    #050505;
}
.value-widget svg { width: 100%; height: 100%; display: block; }

/* Loyalty — cursor follower */
.widget-loyalty { cursor: crosshair; }
.widget-loyalty .loyal-ring {
  fill: none;
  stroke: rgba(255,255,255,0.15);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.widget-loyalty .loyal-tick {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.widget-loyalty .loyal-dot  { fill: var(--accent); }
.widget-loyalty .loyal-core { fill: var(--accent); }

/* Transparency — radar rings */
.widget-transparency .tr-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
}
.widget-transparency .tr-core { fill: var(--accent); }

/* Honesty — mirrored symmetry */
.widget-honesty .mirror-axis {
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.widget-honesty .mirror-dot { fill: var(--accent); }
.widget-honesty .mirror-shape {
  transform-box: fill-box;
  transform-origin: center;
}

.value-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
}

/* ─────────────────────────────────────────
   TEAM SECTION
───────────────────────────────────────── */
#team {
  padding: 9rem 0;
  background: #050505;
  border-top: 1px solid var(--border);
}
.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 5rem;
}
.team-intro-right {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.55);
}

/*
  ══════════════════════════════════════════════════════
  TEAM MEMBERS — HOW TO REPLACE EACH CARD
  ══════════════════════════════════════════════════════
  For each .member card:
    1. Replace the <div class="member-photo-placeholder"> block with:
         <img src="name.jpg" alt="Full Name" class="member-photo">
    2. Update .member-name → person's full name
    3. Update .member-role → their title (e.g. "Creative Director")
    4. Update .member-bio  → a sentence or two about them

  The .member-photo class handles sizing and the hover zoom.
  ══════════════════════════════════════════════════════
*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
}
.member {
  background: #050505;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.3s;
}
.member:hover { background: #0e0e0e; }

.member-photo-wrap {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #111;
  position: relative;
}
.member-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.member-photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d1520, #150d20);
}
.member:nth-child(2) .member-photo-placeholder::before { background: linear-gradient(160deg, #1a0d10, #0d1a18); }
.member:nth-child(3) .member-photo-placeholder::before { background: linear-gradient(160deg, #121a0d, #0d1220); }
.member:nth-child(4) .member-photo-placeholder::before { background: linear-gradient(160deg, #1a150d, #0d1520); }
.member:nth-child(5) .member-photo-placeholder::before { background: linear-gradient(160deg, #0d1a15, #1a0d15); }
.member:nth-child(6) .member-photo-placeholder::before { background: linear-gradient(160deg, #151a0d, #0d1520); }

.member-photo-placeholder .placeholder-icon {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  opacity: 0.18;
}
.member-photo-placeholder .placeholder-label {
  position: relative;
  z-index: 1;
  font-size: 0.56rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}

/* Real photo — use this class on <img> elements */
.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.65s cubic-bezier(0.16,1,0.3,1);
  filter: grayscale(15%);
}
.member:hover .member-photo { transform: scale(1.04); filter: grayscale(0%); }

.member-info {
  padding: 1.8rem 2rem 2.2rem;
  border-top: 1px solid var(--border);
}
.member-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.member-role {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.member-bio {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.42);
}

/* ─────────────────────────────────────────
   CONTACT / CTA SECTION
───────────────────────────────────────── */
#contact {
  padding: 9rem 0;
  background: var(--black);
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.contact-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin: 0 auto 3.5rem;
  max-width: 480px;
}
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.social-links-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  transition: color 0.2s;
}
.social-link svg {
  width: 1.4rem;
  height: 1.4rem;
}
.social-link:hover { color: var(--white); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
footer .social-links-row {
  gap: 2.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.social-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.social-group-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.social-group-icons {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 1160px;
}
.footer-socials-divider {
  width: 1px;
  height: 62px;
  background: var(--border);
  margin: 0 0.5rem;
  align-self: center;
}
@media (max-width: 600px) {
  .footer-socials-divider { display: none; }
  footer .social-links-row { gap: 1.75rem; }
  .social-group-icons { gap: 1.25rem; }
}

/* Footer logo — same replacement rules as nav/hero logos */
.footer-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.footer-logo img {
  height: 22px;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.5;
  transition: opacity 0.25s;
}
.footer-logo:hover img { opacity: 0.9; }
.footer-logo .logo-fallback {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.32);
  transition: color 0.25s;
}
.footer-logo:hover .logo-fallback { color: rgba(255,255,255,0.65); }

.footer-copy {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.footer-nav a {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.65); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1000px) {
  nav { padding: 1.5rem 2rem; }
  nav.solid { padding: 1rem 2rem; }
  .section-inner { padding: 0 2rem; }
  .game-layout, .studio-layout, .team-intro { grid-template-columns: 1fr; gap: 3rem; }
  .game-visual { max-width: 520px; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { border-right: none; border-bottom: 1px solid var(--border); }
  .value-item:last-child { border-bottom: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-logo-text { font-size: clamp(3.5rem, 18vw, 5.5rem); }
}

/* ── Contact Form ── */
#contact-form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.16,1,0.3,1);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
#contact-form-wrap.open { grid-template-rows: 1fr; }
.contact-form {
  overflow: hidden;
  padding: 0 0.1px; /* prevents margin collapse clipping */
}
#contact-form-wrap.open .contact-form { padding-top: 2.5rem; }

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.cf-field label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.cf-field input,
.cf-field textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  outline: none;
  resize: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.cf-field input:focus,
.cf-field textarea:focus { border-color: var(--accent); }
.contact-form .btn-outline { margin-top: 0.5rem; }
@media (max-width: 600px) { .cf-row { grid-template-columns: 1fr; } }

/* ── GIF Lightbox ── */
.gif-thumb { transition: opacity 0.2s; }
.gif-thumb:hover { opacity: 0.75; }

#gif-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
#gif-lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lb-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.5rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  user-select: none;
  flex-shrink: 0;
}
.lb-arrow:hover { opacity: 1; }

.lb-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 1;
}
.lb-close:hover { opacity: 1; }

.lb-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}
.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s;
}
.lb-dot.active { background: #fff; }


/* for SPLITTEXT*/ 
#text-split .text-xl {
  font-size: 1.5rem;
  color: currentColor;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

/* ─────────────────────────────────────────
   v1.3 ADDITIONS: Steam CTA, trailer, JF socials, 7-member team
───────────────────────────────────────── */

/* Primary CTA — solid, hovers to gold accent (used for Wishlist on Steam) */
.btn-primary {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--white);
  padding: 1rem 2.2rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

/* Trailer subsection — full-viewport-width cinema band, sits below "A New Universe" */
.trailer-subsection {
  margin-top: 5rem;
  /* Break out of section-inner to full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 6rem 3.5rem 5rem;
  background: #000;
  box-sizing: border-box;
}
.trailer-heading {
  text-align: center;
  margin-bottom: 3rem;
}
.trailer-subsection .trailer-block {
  max-width: 960px;
  margin: 0 auto 2.5rem;
}
.trailer-cta {
  display: flex;
  justify-content: center;
}
@media (max-width: 700px) {
  .trailer-subsection { padding: 4rem 1.5rem 3.5rem; }
}

/* Trailer block — 16:9 poster with click-to-play video, now blending into cinema band */
.trailer-block {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.trailer-block video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.trailer-poster {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}
.trailer-poster.hidden {
  opacity: 0;
  pointer-events: none;
}
.trailer-play-btn {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, background 0.25s;
}
.trailer-block:hover .trailer-play-btn {
  transform: scale(1.08);
  background: var(--white);
}
.trailer-play-btn::before {
  content: '';
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #000;
  margin-left: 6px;
}
.trailer-label {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.55);
  z-index: 2;
}

/* JF socials in Game section (compact, icon-only) */
.game-socials {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.game-socials-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.9rem;
}
.game-socials-row {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.game-socials-row a {
  color: rgba(255,255,255,0.42);
  transition: color 0.2s;
  display: block;
  line-height: 0;
}
.game-socials-row a:hover { color: var(--accent); }
.game-socials-row svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Team grid: 4×2 desktop layout, 2×4 tablet, 1×8 mobile. No lonely-card handling needed. */
/* Widen the team section past the standard 1160px so all names (including 'Guido Heinzenknecht') fit on one line */
#team .section-inner {
  max-width: 1360px;
  padding: 0 2rem;
}
/* Tighten card side padding a touch to gain more room for long names */
#team .member-info {
  padding: 1.8rem 1.5rem 2.2rem;
}
/* Slightly tighter letter-spacing on names — still on-brand, saves horizontal space */
#team .member-name {
  letter-spacing: 0.06em;
}

@media (max-width: 1000px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  #team .section-inner { max-width: none; padding: 0 2rem; }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Recruit card — 8th slot inviting applications */
.member-recruit .member-photo-wrap {
  background: rgba(200, 169, 110, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-recruit-icon {
  width: 42%;
  aspect-ratio: 1;
  color: rgba(200, 169, 110, 0.75);
  transition: color 0.3s, transform 0.5s ease-out;
}
.member-recruit:hover .member-recruit-icon {
  color: var(--accent);
  transform: rotate(45deg);
}
.member-recruit .member-name {
  color: var(--accent);
}
.member-recruit .member-role {
  color: rgba(200, 169, 110, 0.55);
  font-style: italic;
}
.member-recruit-cta {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(200, 169, 110, 0.5);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
  text-decoration: none;
}
.member-recruit-cta:hover {
  color: var(--white);
  border-color: var(--white);
}

/* One more reveal delay for the 8th team card */
.reveal-d7 { transition-delay: 0.56s; }
