/* ==========================================================================
   Tidefall Interactive — main stylesheet
   Palette: deep navy base, sea-foam accent, warm coral calls-to-action.
   ========================================================================== */

:root {
  --bg: #0a1622;
  --bg-alt: #10212f;
  --bg-card: #132a3b;
  --bg-card-hover: #173246;
  --line: rgba(160, 210, 230, 0.12);

  --text: #e8f1f5;
  --text-muted: #9db3c2;
  --text-dim: #6f8798;

  --accent: #3fd0c9;       /* sea-foam */
  --accent-soft: rgba(63, 208, 201, 0.14);
  --coral: #ff7a59;        /* CTA */
  --coral-hover: #ff9273;
  --gold: #f5c76b;         /* theatre highlight */

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --header-h: 72px;
  --max-w: 1200px;
}

/* ---------- Reset / 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;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: var(--bg); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 820px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, #0f3b4a, #13324a 60%, #2a2440);
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  padding: 0.55rem 1rem;
}
.announce a { color: var(--accent); font-weight: 600; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 34, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.97rem;
  position: relative;
  padding: 0.25rem 0;
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav ul { flex-direction: column; gap: 0.25rem; }
  .nav a:not(.btn) { display: block; padding: 0.7rem 0; font-size: 1.1rem; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary { background: var(--coral); color: #1a0d08; }
.btn--primary:hover { background: var(--coral-hover); }

.btn--ghost { border-color: rgba(232, 241, 245, 0.28); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--steam { background: #1b2838; color: #fff; border-color: #2a475e; }
.btn--steam:hover { background: #2a475e; }

.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #6d78f5; }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.92rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.2rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }

/* Wave divider between sections */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  color: var(--bg-alt);
  margin-bottom: -1px;
}
.wave--flip { transform: rotate(180deg); margin-top: -1px; margin-bottom: 0; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent);
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live { background: rgba(126, 220, 120, 0.14); color: #8fe58a; }
.badge--dev  { background: rgba(245, 199, 107, 0.15); color: var(--gold); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 70% 60% at 75% 40%, rgba(63, 208, 201, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(255, 122, 89, 0.10), transparent 70%),
    linear-gradient(180deg, #0a1622 0%, #0b1b2a 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 34rem; margin-bottom: 2rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--text-dim); }
.hero-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual img { width: min(100%, 400px); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5)); }

.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  z-index: 1;
  pointer-events: none;
}
.hero-waves svg { position: absolute; bottom: 0; width: 200%; height: 100%; }
.hero-waves .w1 { color: rgba(63, 208, 201, 0.08); animation: drift 22s linear infinite; }
.hero-waves .w2 { color: rgba(63, 208, 201, 0.05); animation: drift 34s linear infinite reverse; }
.hero-waves .w3 { color: var(--bg); }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


@media (max-width: 900px) {
  .hero { min-height: auto; padding: 4rem 0 7rem; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(60%, 240px); }
}

/* ---------- Game cards ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(63, 208, 201, 0.35);
  text-decoration: none;
}
.game-card__media {
  position: relative;
  aspect-ratio: 616 / 353;
  overflow: hidden;
  background: #0d1d2a;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.game-card:hover .game-card__media img { transform: scale(1.04); }
.game-card__media .badge {
  position: absolute;
  top: 1rem; left: 1rem;
  backdrop-filter: blur(8px);
  background: rgba(10, 22, 34, 0.75);
}
.game-card__body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.game-card__body h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.game-card__body p { color: var(--text-muted); font-size: 0.98rem; flex: 1; }
.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.game-card__cta {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.game-card__cta svg { width: 16px; height: 16px; transition: transform 0.2s; }
.game-card:hover .game-card__cta svg { transform: translateX(4px); }

/* Placeholder art for University Tower (no key art yet) */
.ut-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(63, 208, 201, 0.25), transparent 60%),
    linear-gradient(160deg, #102a3d, #0b1826);
}
.ut-art img { height: 82%; width: auto; }
.ut-art__label {
  position: absolute;
  right: 1.2rem;
  bottom: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 241, 245, 0.5);
}

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin: 2rem 0;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--text);
  line-height: 1.1;
}
.stat span { font-size: 0.88rem; color: var(--text-dim); }

/* ---------- Community / CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: calc(var(--radius) * 1.5);
  padding: clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 122, 89, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 80% at 0% 100%, rgba(63, 208, 201, 0.18), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-inline { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.form-inline input[type="email"] { flex: 1 1 220px; }

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(5, 14, 22, 0.6);
  border: 1px solid rgba(160, 210, 230, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-inline input[type="email"] { border-radius: 999px; padding-left: 1.3rem; }
textarea { min-height: 160px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db3c2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-hint { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.7rem; }
.hidden-field { display: none; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(ellipse 60% 70% at 85% 0%, rgba(63, 208, 201, 0.13), transparent 70%),
    linear-gradient(180deg, #0b1b2a, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-hero .lead { max-width: 40rem; margin: 0; }

/* ---------- Game detail hero ---------- */
.game-hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 4rem;
  overflow: hidden;
}
.game-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.game-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.game-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 22, 34, 0.85) 30%, rgba(10, 22, 34, 0.25) 70%, rgba(10, 22, 34, 0.5) 100%),
    linear-gradient(90deg, rgba(10, 22, 34, 0.85) 0%, transparent 60%);
}
.game-hero .container { position: relative; z-index: 1; }
.game-hero h1 { max-width: 16ch; }
.game-hero .lead { max-width: 38rem; color: #c9d8e1; margin-bottom: 2rem; }
.game-hero .badge { margin-bottom: 1.25rem; }

.game-hero--ut {
  min-height: 70vh;
  background:
    radial-gradient(ellipse 50% 60% at 78% 50%, rgba(63, 208, 201, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1b2a, var(--bg));
}
.game-hero--ut .container { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 3rem; }
.game-hero--ut .ut-figure { width: min(100%, 340px); margin-left: auto; }
@media (max-width: 860px) {
  .game-hero--ut .container { grid-template-columns: 1fr; }
  .game-hero--ut .ut-figure { display: none; }
}

/* Fact sheet list */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.facts div { background: var(--bg-card); padding: 1.2rem 1.4rem; }
.facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}
.facts dd { margin: 0; font-weight: 600; font-family: var(--font-head); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}
.feature:hover { border-color: rgba(63, 208, 201, 0.35); transform: translateY(-3px); }
.feature__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.feature p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* Screenshot gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: #0d1d2a;
  aspect-ratio: 16 / 9;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, opacity 0.3s; }
.gallery button:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(3, 8, 13, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.18); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 1.25rem; right: 1.25rem; }
.lightbox .lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* Trailer tile */
.trailer {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.trailer:hover img { transform: scale(1.03); }
.trailer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 22, 34, 0.7), transparent 60%);
}
.trailer__play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
}
.trailer__play span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--coral);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(255, 122, 89, 0.45);
  transition: transform 0.25s;
}
.trailer:hover .trailer__play span { transform: scale(1.08); }
.trailer__play svg { width: 30px; height: 30px; color: #1a0d08; margin-left: 4px; }
.trailer__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

/* Steam widget */
.steam-widget {
  width: 100%;
  max-width: 646px;
  height: 190px;
  border: 0;
  border-radius: var(--radius-sm);
}

/* ---------- About ---------- */
.team-card {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.avatar {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #2a8fb8);
}
.team-card h3 { margin-bottom: 0.15rem; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6rem; }
.team-card p:last-child { margin: 0; color: var(--text-muted); }
@media (max-width: 520px) { .team-card { flex-direction: column; text-align: center; } }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

/* ---------- Press ---------- */
.press-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}
.press-nav {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.press-nav ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.press-nav li a { display: block; padding: 0.4rem 0; color: var(--text-muted); }
.press-nav li a:hover { color: var(--text); text-decoration: none; }
.press-block { margin-bottom: 4rem; scroll-margin-top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 900px) {
  .press-grid { grid-template-columns: 1fr; }
  .press-nav { position: static; }
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.download {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.download:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.download__thumb {
  aspect-ratio: 16 / 10;
  background: #0d1d2a;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.download__thumb img { width: 100%; height: 100%; object-fit: cover; }
.download__thumb--contain img { object-fit: contain; padding: 1.25rem; }
.download__info { padding: 0.8rem 1rem; font-size: 0.88rem; }
.download__info strong { display: block; font-family: var(--font-head); }
.download__info span { color: var(--text-dim); }

.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; color: var(--text-muted); }
.prose li strong { color: var(--text); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.contact-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
.contact-card h3 svg { width: 20px; height: 20px; color: var(--accent); }
.contact-card p { color: var(--text-muted); font-size: 0.97rem; }
.contact-card p:last-child { margin-bottom: 0; }

/* ---------- News / devlog ---------- */
.post-list { display: grid; gap: 1.25rem; }
.post-card {
  display: block;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.post-card time { font-size: 0.85rem; color: var(--text-dim); }
.post-card h3 { margin: 0.35rem 0 0.5rem; }
.post-card p { margin: 0; color: var(--text-muted); }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed rgba(160, 210, 230, 0.22);
  border-radius: var(--radius);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--accent); }
.empty-state p { color: var(--text-muted); max-width: 30rem; margin: 0 auto 1.75rem; }

.article { max-width: 720px; margin: 0 auto; }
.article h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.article img { border-radius: var(--radius-sm); margin: 2rem 0; }
.article p, .article li { color: #c9d8e1; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
  background: #07111a;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid li a { color: var(--text-muted); }
.footer-grid li a:hover { color: var(--text); }
.footer-about p { color: var(--text-dim); max-width: 22rem; margin-top: 1rem; }
.socials { display: flex; gap: 0.6rem; margin-top: 1.25rem; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}
.socials a:hover { background: var(--accent); color: var(--bg); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.85rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* No JS → show everything */
.no-js .reveal { opacity: 1; transform: none; }

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