/* ==========================================================
   PERCHANG — Fun Edition  |  css/style.css
   Palette drawn from Perchang World game screenshots.
   Primary: #FF4701 (brand orange)
   Game tones: sky #4DCFEE · yellow #FFD233 · lime #7CE03A
               purple #1E0B58 · navy #090E24
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --orange:       #FF4701;
  --orange-deep:  #CC3800;
  --orange-glow:  rgba(255,71,1,.45);

  /* Game palette */
  --sky:    #4DCFEE;
  --yellow: #FFD233;
  --lime:   #7CE03A;
  --purple: #1E0B58;
  --navy:   #090E24;

  /* Neutrals */
  --ink:       #0A0C18;
  --ink-dim:   #484B62;
  --ink-faint: #8B8FA8;
  --bg:        #F0F5FF;
  --bg-raised: #E4EEFF;
  --surface:   #FFFFFF;
  --line:      rgba(10,12,24,.10);

  /* Typography */
  --f-display: 'Titillium Web', 'Arial Black', sans-serif;
  --f-body:    'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter:    clamp(20px, 5vw, 64px);
  --radius:    20px;
  --radius-lg: 32px;
  --ease:      cubic-bezier(.16,.84,.32,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.04;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(3rem, 9vw, 7.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
p  { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #fff; padding: .6em 1em;
  z-index: 999; font-weight: 700; font-family: var(--f-display);
}
.skip-link:focus { left: var(--gutter); top: 8px; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-flex; align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .4em 1.1em;
  border-radius: 100px;
  margin-bottom: 1.1em;
}
.eyebrow--orange  { background: var(--orange);  color: #fff; }
.eyebrow--sky     { background: var(--sky);     color: var(--navy); }
.eyebrow--yellow  { background: var(--yellow);  color: var(--navy); }
.eyebrow--lime    { background: var(--lime);    color: var(--navy); }
.eyebrow--outline { background: transparent; border: 2px solid rgba(255,255,255,.45); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .9em 2.1em;
  border-radius: 100px;
  border: 2.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn--primary {
  background: var(--orange); color: #fff;
  box-shadow: 0 6px 24px var(--orange-glow);
}
.btn--primary:hover { background: var(--orange-deep); box-shadow: 0 10px 32px var(--orange-glow); }
.btn--ghost {
  border-color: rgba(255,255,255,.55); color: #fff; background: transparent;
}
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn--ghost-dark {
  border-color: var(--ink); color: var(--ink); background: transparent;
}
.btn--ghost-dark:hover { background: var(--ink); color: #fff; }
.btn--sky {
  background: var(--sky); color: var(--navy);
  box-shadow: 0 6px 20px rgba(77,207,238,.4);
}
.btn--sky:hover { filter: brightness(1.08); }
.btn--sm { padding: .6em 1.5em; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ==========================================================
   NAV
   ========================================================== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem var(--gutter);
  transition: background .35s var(--ease), padding .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
/* Gradient scrim so brand/links stay legible over hero */
.site-nav::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,14,36,.7) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}
.site-nav.is-scrolled {
  background: rgba(9,14,36,.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: .85rem var(--gutter);
  border-color: rgba(255,255,255,.1);
}
.site-nav.is-scrolled::before { display: none; }

.brand {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange) !important;
  line-height: 1;
  z-index: 210;
  flex-shrink: 0;
}

.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color .2s;
  position: relative; padding: .2rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--orange);
  transition: right .25s var(--ease);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { right: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  cursor: pointer; position: relative; z-index: 210;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff;
  transition: transform .25s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 2.2rem;
    background: var(--navy);
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    z-index: 205;
  }
  .nav-links a { font-size: 1.35rem; }
  .nav-links.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform .4s var(--ease);
  }
  .nav-toggle { display: block; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Diagonal bottom cut */
.hero::after {
  content: "";
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 5;
  height: 80px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}

.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../assets/images/KeyArt.webp');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.06);
  transition: transform 12s ease-out;
}
.hero.loaded .hero__bg { transform: scale(1); }

.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(150deg,
    rgba(9,14,36,.4)  0%,
    rgba(9,14,36,.6)  50%,
    rgba(9,14,36,.92) 100%
  );
}

.hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  padding: 0 var(--gutter);
  width: calc(100% - var(--gutter) * 2);
  max-width: 1080px;
}
.hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3rem, 13vw, 10rem);
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #fff;
  line-height: .9;
  text-shadow: 0 4px 48px rgba(255,71,1,.55);
  margin-bottom: .12em;
}
.hero__lede {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin: .5em auto 2.2rem;
  line-height: 1.5;
}
.hero__content .btn-row { justify-content: center; }

.hero__scroll {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.55);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1.5px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* ==========================================================
   TICKER
   ========================================================== */
.ticker {
  background: var(--orange);
  padding: .95rem 0;
  overflow: hidden;
  user-select: none;
  position: relative; z-index: 2;
  /* Angled top edge (sits just below hero diagonal cut) */
}
.ticker__track {
  display: flex; width: max-content;
  white-space: nowrap;
  animation: tickerScroll 30s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex; align-items: center;
  padding: 0 2.2rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  gap: 1.4rem;
}
.ticker__item::after {
  content: "⬡";
  opacity: .45;
  font-size: .75em;
}
.ticker__item:last-child::after { display: none; }

/* ==========================================================
   STUDIO / ABOUT
   ========================================================== */
.studio {
  background: var(--navy);
  color: #fff;
  padding: 7rem var(--gutter);
  position: relative;
  overflow: hidden;
}
/* Star-field speckle */
.studio::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8%  18%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px   1px   at 78% 22%, rgba(255,255,255,.22), transparent),
    radial-gradient(2px   2px   at 45% 68%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px   1px   at 92% 55%, rgba(255,255,255,.22), transparent),
    radial-gradient(1.5px 1.5px at 25% 85%, rgba(255,255,255,.2),  transparent),
    radial-gradient(1px   1px   at 62% 12%, rgba(255,255,255,.25), transparent),
    radial-gradient(2px   2px   at 15% 50%, rgba(255,255,255,.14), transparent),
    radial-gradient(1px   1px   at 88% 78%, rgba(255,255,255,.2),  transparent);
}
.studio__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}
.studio__text h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 15ch;
}
.studio__text p {
  color: rgba(255,255,255,.68);
  font-size: 1.12rem;
  max-width: 42ch;
  margin-bottom: 2.2rem;
}

/* Zone icon grid */
.studio__icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.zone-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
  box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.07);
  animation: floatBob 3.2s ease-in-out infinite;
  cursor: default;
}
.zone-icon:nth-child(1) { animation-delay:  0s; }
.zone-icon:nth-child(2) { animation-delay: .4s; }
.zone-icon:nth-child(3) { animation-delay: .8s; }
.zone-icon:nth-child(4) { animation-delay: 1.2s; }
.zone-icon:nth-child(5) { animation-delay: .2s; }
.zone-icon:nth-child(6) { animation-delay: .6s; }
.zone-icon:nth-child(7) { animation-delay: 1.0s; }
.zone-icon:nth-child(8) { animation-delay: 1.4s; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .studio__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .studio__icons { max-width: 360px; }
}

/* ==========================================================
   GAMES GRID
   ========================================================== */
.games {
  padding: 7rem 0 6rem;
  background: var(--bg);
}
.games__head {
  max-width: var(--container);
  margin: 0 auto 3.5rem;
  padding: 0 var(--gutter);
}
.games__head h2 { max-width: 14ch; }
.games__head p { color: var(--ink-dim); font-size: 1.05rem; max-width: 48ch; }

.games-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.game-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 460px;
  display: flex; align-items: flex-end;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 28px 64px rgba(0,0,0,.28); }

.game-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.game-card:hover .game-card__bg { transform: scale(1.04); }

.game-card__overlay {
  position: absolute; inset: 0;
  background: var(--card-overlay, linear-gradient(160deg, rgba(9,14,36,.85), rgba(9,14,36,.5)));
  transition: opacity .3s;
}
.game-card:hover .game-card__overlay { opacity: .9; }

.game-card__content {
  position: relative; z-index: 2;
  padding: 2rem 2.4rem;
  width: 100%;
}
.game-card__content h3 {
  color: #fff;
  margin-bottom: 1.2rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

/* Badge cluster — top-right of featured card */
.card-badges {
  position: absolute; top: 1.8rem; right: 1.8rem;
  display: flex; gap: .6rem; z-index: 3;
}
.card-badge {
  width: 52px; height: 52px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.55);
  transition: transform .25s var(--ease);
}
.card-badge:hover { transform: scale(1.15) rotate(-8deg); }
.card-badge img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 680px) {
  .game-card { min-height: 300px; }
}

/* ==========================================================
   PERCHANG WORLD FEATURE SECTION
   ========================================================== */
.feature {
  background: var(--purple);
  padding: 7rem 0 0;
  position: relative;
  overflow: hidden;
}
/* Angled top divider */
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 70px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
  z-index: 2;
}
/* Angled bottom divider (into orange stats section) */
.feature::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 70px;
  background: var(--orange);
  clip-path: polygon(0 100%, 100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

/* Subtle nebula glow */
.feature__nebula {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(77,207,238,.15), transparent),
    radial-gradient(ellipse 50% 60% at 80% 40%, rgba(255,71,1,.12), transparent);
}

.feature__inner {
  position: relative; z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
  margin-bottom: 4rem;
}
.feature__logo {
  max-width: min(480px, 78vw);
  margin: 0 auto 1.8rem;
  filter: drop-shadow(0 8px 40px rgba(255,71,1,.45));
}
.feature__keyart {
  width: 100%;
  max-width: min(860px, 90vw);
  margin: 0 auto 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,71,1,.2);
}
.feature__desc {
  color: rgba(255,255,255,.72);
  font-size: 1.12rem;
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.feature__inner .btn-row { justify-content: center; }

/* Screenshots horizontal scroll strip */
.screenshots-strip {
  position: relative; z-index: 3;
  display: flex; gap: 1rem;
  overflow-x: auto; overflow-y: hidden;
  padding: 0 var(--gutter) 5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,71,1,.7) rgba(255,255,255,.1);
}
.screenshots-strip::-webkit-scrollbar { height: 4px; }
.screenshots-strip::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.screenshots-strip::-webkit-scrollbar-thumb { background: rgba(255,71,1,.6); border-radius: 2px; }

.screenshot-item {
  flex: 0 0 auto;
  width: clamp(240px, 32vw, 400px);
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.screenshot-item:hover { transform: scale(1.03); box-shadow: 0 18px 48px rgba(0,0,0,.55); }
.screenshot-item img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   STATS STRIP
   ========================================================== */
.stats-section {
  background: var(--orange);
  padding: 5.5rem var(--gutter);
  position: relative;
  overflow: hidden;
}
/* Diagonal top already handled by feature::after */
/* Subtle hatch pattern */
.stats-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.05) 0px, rgba(255,255,255,.05) 1px,
    transparent 1px, transparent 12px
  );
}
.stats-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat { }
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.stat__label {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-top: .5rem;
}
@media (max-width: 560px) {
  .stats-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  padding: 7rem var(--gutter);
  background: var(--bg);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(255,71,1,.07), transparent);
}
.cta-section .container { position: relative; }
.cta-section h2 { max-width: 12ch; margin: 0 auto .5em; }
.cta-section > .container > p {
  color: var(--ink-dim); font-size: 1.1rem; max-width: 38ch; margin: 0 auto 2.5rem;
}
.cta-section .btn-row { justify-content: center; }

/* Achievement badge row — decorative */
.ach-row {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 3.5rem;
}
.ach-badge {
  width: 66px; height: 66px;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ach-badge:hover { transform: translateY(-5px) rotate(-7deg); box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.ach-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 5rem var(--gutter) 2.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { display: block; font-size: 1.6rem; margin-bottom: .9rem; }
.footer-brand > p { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 26ch; }
.footer-col h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer-col a { color: rgba(255,255,255,.6); font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }

.social-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.2rem; }
.social-row a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.6);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.social-row a:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(255,71,1,.1);
  transform: translateY(-2px);
}
.social-row svg { width: 16px; height: 16px; }

.footer-bottom {
  max-width: var(--container);
  margin: 2rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: .78rem; color: rgba(255,255,255,.32);
}
.footer-bottom a { color: rgba(255,255,255,.32); transition: color .2s; }
.footer-bottom a:hover { color: var(--orange); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================
   INNER PAGE STYLES
   ========================================================== */

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 9rem var(--gutter) 5rem;
  position: relative;
  overflow: hidden;
}
/* Angled bottom cut into the next section */
.page-hero::after {
  content: "";
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
}
/* Decorative coloured glow — set --hero-glow per page */
.page-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: var(--hero-glow, radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255,71,1,.18), transparent));
}
/* Star speckle (reuse from studio) */
.page-hero .stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 25%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px   1px   at 70% 18%, rgba(255,255,255,.22), transparent),
    radial-gradient(2px   2px   at 40% 72%, rgba(255,255,255,.18), transparent),
    radial-gradient(1px   1px   at 88% 60%, rgba(255,255,255,.20), transparent),
    radial-gradient(1.5px 1.5px at 28% 88%, rgba(255,255,255,.18), transparent);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lede {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(255,255,255,.68);
  max-width: 50ch;
  margin-top: .3em;
}

/* ---------- Generic section ---------- */
.section {
  padding: 6rem var(--gutter);
}
.section--raised { background: var(--bg-raised); }
.section--dark    { background: var(--navy); color: #fff; }
.section--orange  { background: var(--orange); color: #fff; }

.section-head { margin-bottom: 3.5rem; }
.section-head h2 { max-width: 16ch; }
.section-head p  { color: var(--ink-dim); font-size: 1.05rem; max-width: 52ch; }
.section--dark .section-head p { color: rgba(255,255,255,.65); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

hr.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Team grid ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; max-width: 380px; } }

.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(10,12,24,.08);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.12); }
.team-card__photo {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-raised);
}
.team-card__body { padding: 1.4rem 1.6rem 1.6rem; }
.team-card .role {
  display: inline-flex; align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .45em;
}
.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: .1em;
}
.team-card .handle {
  font-size: .78rem;
  color: var(--ink-faint);
  display: block;
  margin-bottom: .8em;
}
.team-card p { font-size: .9rem; color: var(--ink-dim); max-width: none; margin: 0; }

/* Alternate accent colour on is-blue cards */
.team-card.is-blue .role { color: var(--sky); }

/* ---------- Values / feature cards ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1rem;
}
@media (max-width: 780px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.value-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--orange));
}
.value-card:nth-child(2) { --card-accent: var(--sky); }
.value-card:nth-child(3) { --card-accent: var(--lime); }
.value-card h3 { font-size: 1.25rem; margin-bottom: .5em; }
.value-card p  { font-size: .95rem; color: var(--ink-dim); max-width: none; }

/* ---------- Jobs ---------- */
.jobs-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--line);
  max-width: 520px;
  margin: 0 auto;
}
.jobs-empty h3 { font-size: 1.6rem; }
.jobs-empty p  { color: var(--ink-dim); max-width: 38ch; margin: .5em auto 1.8rem; }

/* ---------- Game bars (Games page) ---------- */
.game-bar {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.game-bar__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease);
}
.game-bar:hover .game-bar__bg { transform: scale(1.03); }
.game-bar__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(9,14,36,.96) 0%,
    rgba(9,14,36,.55) 40%,
    rgba(9,14,36,.15) 100%
  );
}
.game-bar__content {
  position: relative; z-index: 2;
  padding: 4rem var(--gutter);
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}
.game-bar__content h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.8rem);
  max-width: 16ch;
  margin-bottom: 1.2rem;
}
.game-bar__platforms {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 1.4rem;
}
.game-bar__platforms a {
  display: inline-flex; align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.35);
  padding: .55em 1.3em;
  border-radius: 100px;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.game-bar__platforms a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,71,1,.08);
  transform: translateY(-2px);
}

/* ---------- Contact ---------- */

.contact-block { margin-bottom: 2.5rem; }
.contact-block h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .7rem;
}
.contact-email {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--orange);
  transition: color .2s;
}
.contact-email:hover { color: var(--orange-deep); }
.contact-block p { color: var(--ink-dim); max-width: 38ch; margin: 0; }

.contact-form-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 2.4rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.07);
}
.form-note {
  font-size: .78rem;
  color: var(--ink-faint);
  margin-top: 1rem;
}

/* Shared footer social-row reference (inline on contact page) */
.contact-social .social-row a {
  border-color: var(--line);
  color: var(--ink-dim);
}
.contact-social .social-row a:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(255,71,1,.06);
}
