/* ==========================================================================
   Pinehaven Studio
   Colours and fonts live in the :root block below. Change them there and
   the whole site follows.
   ========================================================================== */

:root {
  --bg: #08130e;
  --bg-2: #0d1b15;
  --surface: #12231b;
  --surface-2: #183026;
  --line: rgba(214, 233, 220, 0.1);
  --line-strong: rgba(214, 233, 220, 0.2);
  --text: #eef2ea;
  --muted: #a3b5a9;
  --accent: #f2b155;
  --accent-2: #ffd59a;
  --pine: #5b9a74;
  --danger: #ef7d57;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 76px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration-color: rgba(242, 177, 85, 0.5); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #1a1206; }

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

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: #1a1206; padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 760px); }

.muted { color: var(--muted); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.empty { color: var(--muted); text-align: center; padding: 4rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- Buttons & links ----------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: #1d1406; font-weight: 600; font-size: 0.98rem;
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  box-shadow: 0 10px 30px -12px rgba(242, 177, 85, 0.6);
}
.btn:hover { color: #1d1406; background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(242, 177, 85, 0.7); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: var(--line-strong); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: var(--text); box-shadow: none; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

.text-link { color: var(--accent); font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(3px); }
.back-link { margin-bottom: 1.5rem; font-size: 0.95rem; }
.back-link:hover span { transform: translateX(-3px); }

/* ---------- Header -------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.page-home):not(.page-error) .site-header {
  background: rgba(8, 19, 14, 0.82); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.logo-mark { color: var(--text); transition: transform 0.5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-8deg); }

.site-nav { display: flex; align-items: center; gap: 0.4rem; }
.site-nav a:not(.btn) {
  padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-weight: 500; font-size: 0.97rem; transition: color 0.2s, background 0.2s;
}
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.site-nav .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04); cursor: pointer; position: relative;
}
.nav-toggle__bar {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 17px; }
.nav-toggle__bar:nth-child(2) { top: 25px; }
.nav-open .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; z-index: 2; }
  /* The header's backdrop-filter makes it the containing block of this fixed
     overlay, so `inset: 0` alone would only cover the header. Size it to the
     viewport explicitly (the header sits at the top-left of the screen). */
  .site-nav {
    position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; gap: 0.5rem;
    background: rgba(8, 19, 14, 0.97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .site-nav a:not(.btn) { font-family: var(--font-display); font-size: 2rem; color: var(--text); }
  .site-nav .btn { margin: 1.5rem 0 0; }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
}

/* ---------- Hero ---------------------------------------------------------- */

.hero {
  position: relative; min-height: max(640px, 100svh); display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.scene [data-depth] { will-change: transform; }
.stars circle { animation: twinkle 4s ease-in-out infinite alternate; }
.stars circle:nth-child(3n) { animation-delay: -1.3s; animation-duration: 5s; }
.stars circle:nth-child(4n) { animation-delay: -2.6s; animation-duration: 3s; }
@keyframes twinkle { to { opacity: 0.15; } }

.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 19, 14, 0.75) 0%, rgba(8, 19, 14, 0.25) 55%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero__content { padding-top: var(--header-h); padding-bottom: 6rem; }
.hero__title { font-size: clamp(3rem, 8vw, 6.4rem); max-width: 12ch; font-weight: 500; }
.hero__title em { font-style: italic; color: var(--accent-2); font-weight: 400; }
.hero__text { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #c9d6cc; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: 0.1s; }
.hero__content > *:nth-child(3) { animation-delay: 0.2s; }
.hero__content > *:nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll { 50% { transform: translateY(10px); opacity: 0.3; } }

.hero--error { min-height: 100svh; }

/* ---------- Sections ------------------------------------------------------ */

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section--tight { padding-top: 1rem; }
.section--tinted { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__head { margin-bottom: 3rem; max-width: 720px; }
.section__head h2 { margin: 0; }
.section__head--split { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; flex-wrap: wrap; }

.page-hero { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); position: relative; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 80% 0%, rgba(91, 154, 116, 0.16), transparent 70%),
              radial-gradient(ellipse 40% 60% at 10% 10%, rgba(242, 177, 85, 0.07), transparent 70%);
}
.page-hero h1 { max-width: 18ch; }
.page-hero--article h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: none; }

/* ---------- Featured game ------------------------------------------------- */

.featured__grid {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.featured__media {
  display: block; border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.featured__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 120px -40px var(--card-accent);
}
.featured__media img { transition: transform 1.2s var(--ease); }
.featured__media:hover img { transform: scale(1.04); }
.featured__title { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 0.8rem; }
.featured__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; color: var(--muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

/* ---------- Badges & tags ------------------------------------------------- */

.badge {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.75rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(8, 19, 14, 0.75); border: 1px solid var(--line-strong); color: var(--text);
  backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.badge--released::before { background: #7bd88f; box-shadow: 0 0 10px #7bd88f; }
.badge--prototype::before { background: #8fb7ff; box-shadow: 0 0 10px #8fb7ff; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: 0.8rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); color: var(--muted); border: 1px solid var(--line); }

/* ---------- Game cards ---------------------------------------------------- */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; }
.card-grid--large { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }

.game-card {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.game-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--card-accent) 50%, transparent); box-shadow: var(--shadow); }
.game-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.game-card__link:hover { color: inherit; }
.game-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.06); }
.game-card__media .badge { position: absolute; left: 1rem; top: 1rem; }
.game-card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.game-card__title { font-size: 1.55rem; margin: 0; }
.game-card__tagline { color: var(--muted); font-size: 0.98rem; flex: 1; }

/* ---------- Pillars ------------------------------------------------------- */

.pillars__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.pillars__grid--four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.pillar {
  padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 60%);
}
.pillar__num { display: block; font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; margin-bottom: 2.4rem; }
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Posts --------------------------------------------------------- */

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
}
.post-card:hover { border-color: rgba(242, 177, 85, 0.4); transform: translateY(-4px); background: var(--surface-2); }
.post-card__link { display: flex; flex-direction: column; height: 100%; padding: 1.8rem; text-decoration: none; color: inherit; }
.post-card__link:hover { color: inherit; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.88rem; margin-bottom: 1rem; }
.post-card__tag { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; }
.post-card__title { font-size: 1.45rem; }
.post-card__summary { color: var(--muted); flex: 1; }

/* ---------- CTA ----------------------------------------------------------- */

.cta__box {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(242, 177, 85, 0.18), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(91, 154, 116, 0.22), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.cta__box h2 { margin-bottom: 0.4rem; }
.cta__box .lead { margin: 0; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }

.pill-links { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pill-links a {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong);
  text-decoration: none; font-weight: 500; font-size: 0.93rem; transition: border-color 0.2s, background 0.2s;
}
.pill-links a:hover { border-color: var(--accent); background: rgba(242, 177, 85, 0.1); color: var(--text); }
.pill-links--small a { padding: 0.3rem 0.8rem; font-size: 0.85rem; }

/* ---------- Game page ----------------------------------------------------- */

.game-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 3.5rem) 0 4rem; isolation: isolate; border-bottom: 1px solid var(--line); }
.game-hero__bg {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none;
  object-fit: cover; filter: blur(40px) saturate(1.2); opacity: 0.4; z-index: -2;
}
.game-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bg) 0%, rgba(8, 19, 14, 0.6) 60%, rgba(8, 19, 14, 0.85) 100%); }
.game-hero__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.game-hero__text .badge { margin-bottom: 1rem; }
.game-hero__text .back-link { display: flex; width: fit-content; }
.game-hero__text h1 { font-size: clamp(3rem, 7vw, 5.2rem); }
.game-hero__cover { border-radius: var(--radius); box-shadow: var(--shadow), 0 0 0 1px var(--line), 0 0 80px -20px var(--card-accent); }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 5rem); padding-block: 4rem 6rem; align-items: start; }
.game-facts { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.game-facts, .facts-card { padding: 1.8rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.facts-card h2 { font-size: 1.4rem; }
.game-facts dl, .facts-card dl { margin: 0 0 1.4rem; display: grid; gap: 1rem; }
.facts-card dl { margin: 0; }
.game-facts dt, .facts-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.game-facts dd, .facts-card dd { margin: 0.15rem 0 0; font-weight: 500; overflow-wrap: anywhere; }

.feature-list { list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.8rem; }
.feature-list li {
  padding: 1rem 1.2rem 1rem 2.8rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); position: relative;
}
.feature-list li::before {
  content: ""; position: absolute; left: 1.15rem; top: 1.45rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--card-accent, var(--accent)); box-shadow: 0 0 12px var(--card-accent, var(--accent));
}

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { margin-top: 3rem; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.gallery__grid img { border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.4s var(--ease); }
.gallery__grid a:hover img { transform: scale(1.03); }

/* ---------- Prose (Markdown content) -------------------------------------- */

.prose { font-size: 1.08rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.4rem 0 0.8rem; }
.prose h3 { margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: #d3ddd5; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--accent); }
.prose img { border-radius: var(--radius-sm); margin: 2rem 0; }
.prose blockquote {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.5rem; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem;
}
.prose blockquote p { color: var(--text); }
.prose code { background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 6px; font-size: 0.9em; }
.prose pre { background: var(--surface); padding: 1.2rem; border-radius: var(--radius-sm); overflow-x: auto; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; }

.article .container--narrow { padding-bottom: 5rem; }
.article__cover { border-radius: var(--radius); margin-bottom: 3rem; box-shadow: var(--shadow); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.2rem 1.4rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.2s; }
.post-nav__link:hover { border-color: var(--accent); color: var(--text); }
.post-nav__link .muted { font-size: 0.85rem; }
.post-nav__link--next { text-align: right; grid-column: 2; }

/* ---------- About / press / contact -------------------------------------- */

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-layout .facts-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.team-card { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.team-card h3 { margin: 1.2rem 0 0.1rem; }
.team-card__role { color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.team-card p:not(.team-card__role) { color: var(--muted); font-size: 0.97rem; }
.team-card__avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.team-card__avatar--initials {
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
  background: linear-gradient(135deg, var(--pine), #23503a); color: var(--text); border: 2px solid var(--line-strong);
}

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.asset-card { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); text-decoration: none !important; font-size: 0.92rem; }
.asset-card img { margin: 0 !important; aspect-ratio: 2 / 1; object-fit: contain; width: 100%; border-radius: 6px; background: var(--bg); padding: 0.8rem; }
.asset-card--light img { background: #f4efe4; }
.asset-card:hover { border-color: var(--accent); }

.press-games { display: grid; gap: 0.8rem; }
.press-game { display: grid; grid-template-columns: 160px 1fr; gap: 1.2rem; align-items: center; padding: 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none !important; }
.press-game:hover { border-color: var(--accent); color: inherit; }
.press-game img { margin: 0 !important; border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; }
.press-game div { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; }
.press-game .muted { font-size: 0.92rem; color: var(--muted) !important; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.contact-card { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card p { color: var(--muted); flex: 1; }
.contact-card a:not(.contact-card__email) { color: var(--accent); }
.contact-card__email { font-weight: 600; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; font-size: 1.05rem; }
.contact-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.contact-extra h2 { font-size: 1.5rem; }

/* ---------- Footer -------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); background: #060f0b; padding-top: 4.5rem; font-size: 0.95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; padding-bottom: 3.5rem; }
.site-footer__brand p { color: var(--muted); max-width: 32ch; margin-top: 1rem; }
.site-footer__brand p.muted { margin-top: 0; font-size: 0.9rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom .text-link span { transition: transform 0.25s var(--ease); }
.site-footer__bottom .text-link:hover span { transform: translateY(-3px); }

/* ---------- Scroll reveal (only when JavaScript is available) ------------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------------------------------------------------- */

@media (max-width: 1000px) {
  .featured__grid, .game-hero__grid, .cta__box { grid-template-columns: 1fr; }
  .game-layout, .about-layout { grid-template-columns: 1fr; }
  .game-facts, .about-layout .facts-card { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .card-grid, .card-grid--large, .post-grid { grid-template-columns: 1fr; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 5%, rgba(8, 19, 14, 0.55) 60%, rgba(8, 19, 14, 0.3) 100%); }
  .press-game { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { grid-column: auto; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
