/* ==========================================================================
   Interplay Fan Page — css/style.css
   Visual identity: post-nuclear phosphor glow / wasteland terminal
   Josefin Sans 700 + Inter
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;600;700&family=Inter:wght@400;500&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #12051a;
  --bg-card:       #1c0a2e;
  --bg-alt:        #1a0828;
  --bg-light:      #f5f0ff;
  --text:          #ddd8f0;
  --text-muted:    #7a6a9a;
  --text-on-light: #16053a;
  --accent:        #00d4aa;
  --accent-dim:    rgba(0, 212, 170, 0.15);
  --accent-glow:   0 0 12px rgba(0, 212, 170, 0.45);
  --border:        #2a0852;
  --font-display:  'Josefin Sans', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --nav-height:     64px;
  --container-max:  1200px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover,
a:focus {
  color: #4fffdf;
  text-shadow: 0 0 8px rgba(0, 212, 170, 0.6);
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.9rem); }
h4 { font-size: clamp(1rem, 2vw, 1.3rem); }
h5 { font-size: 0.95rem; letter-spacing: 0.1em; }

p {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: 1.2rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Typewriter animation
   -------------------------------------------------------------------------- */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  box-shadow: var(--accent-glow);
  animation: blink-cursor 0.65s step-end infinite;
}

[data-typewriter] {
  min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  background: rgba(18, 5, 26, 0.96);
  backdrop-filter: blur(8px);
}

#site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  position: relative;
  transition: color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--accent);
  text-shadow: none;
}

.nav-links a:hover::after,
.nav-links a:focus::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  box-shadow: var(--accent-glow);
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  filter: sepia(0.6) hue-rotate(180deg) saturate(0.8) brightness(0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 960px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  text-shadow: var(--accent-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 12vw, 9rem);
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  color: var(--accent);
  text-shadow: var(--accent-glow);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: var(--accent-glow);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  line-height: 1.85;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--accent);
  text-shadow: var(--accent-glow);
  letter-spacing: 0.05em;
}

.hero-stat .label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Screenshot strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: flex;
  gap: 0;
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 0 30px rgba(0,212,170,0.15);
}

.screenshot-strip img,
.screenshot-strip .placeholder {
  flex: 1 1 0;
  height: 160px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.7) brightness(0.8);
  transition: filter 0.3s;
}

.screenshot-strip img:hover { filter: saturate(1) brightness(1); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-primary:hover {
  background: var(--accent);
  color: #000;
  box-shadow: var(--accent-glow);
  text-shadow: none;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text-muted);
  background: transparent;
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
  text-shadow: none;
}

/* --------------------------------------------------------------------------
   Main content offset
   -------------------------------------------------------------------------- */
#main-content {
  padding-top: var(--nav-height);
}

#hero + #main-content,
#hero ~ #main-content {
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   Site sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 5rem 0;
}

.site-section.alt-bg {
  background: var(--bg-light);
  color: var(--text-on-light);
}

.site-section.alt-bg p,
.site-section.alt-bg h2,
.site-section.alt-bg h3,
.site-section.alt-bg h4 {
  color: var(--text-on-light);
}

.site-section.alt-bg a {
  color: #008a70;
}

.site-section.alt-bg .section-label,
.site-section.alt-bg .section-subtitle {
  color: #006a55;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: var(--accent-glow);
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-body);
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   History chapter
   -------------------------------------------------------------------------- */
.history-chapter {
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.history-chapter:last-child {
  border-bottom: none;
}

.history-chapter h3 {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  margin-bottom: 1.5rem;
}

.history-chapter .chapter-year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.chapter-img {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.chapter-img img {
  width: 100%;
  max-width: 480px;
}

.chapter-img figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   Asymmetric grid (history.html and flagship.html)
   -------------------------------------------------------------------------- */
.asymmetric-layout {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 4rem;
  align-items: start;
}

.asymmetric-layout .main-col { }

.asymmetric-layout .side-col {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

@media (max-width: 768px) {
  .asymmetric-layout {
    grid-template-columns: 1fr;
  }

  .asymmetric-layout .side-col {
    position: static;
  }
}

/* --------------------------------------------------------------------------
   Trivia aside
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  box-shadow: -3px 0 15px rgba(0, 212, 170, 0.15);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 2px 2px 0;
}

aside.trivia .trivia-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

aside.trivia p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.7;
}

aside.trivia p strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Dev quote / blockquote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  position: relative;
  padding: 1.5rem 2rem 1.5rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 2px solid var(--accent);
  background: var(--bg-card);
  box-shadow: var(--accent-glow);
}

blockquote.dev-quote::before {
  content: '\201C';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.6;
}

blockquote.dev-quote p,
blockquote.dev-quote > * {
  font-style: italic;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

blockquote.dev-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Glow callout
   -------------------------------------------------------------------------- */
.glow-callout {
  border: 1px solid var(--accent);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.2), inset 0 0 20px rgba(0, 212, 170, 0.05);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.glow-callout h3 {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Games table / catalogue
   -------------------------------------------------------------------------- */
.games-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.games-table th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.games-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(42,8,82,0.5);
  color: var(--text);
  vertical-align: middle;
}

.games-table tr:hover td {
  background: var(--bg-card);
}

.games-table .game-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--border);
}

/* In-table art placeholder - styled chip with title abbreviation. */
.games-table .game-thumb-placeholder {
  width: 64px;
  height: 48px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(20, 20, 30, 0.6));
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.games-table .badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dev {
  background: rgba(0, 212, 170, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 170, 0.3);
}

.badge-pub {
  background: rgba(122, 106, 154, 0.15);
  color: var(--text-muted);
  border: 1px solid rgba(122, 106, 154, 0.3);
}

/* --------------------------------------------------------------------------
   Platform filters
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.25);
}

/* --------------------------------------------------------------------------
   Gallery grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.gallery-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.25);
}

.gallery-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.8);
  transition: filter 0.3s;
}

.gallery-card:hover img {
  filter: saturate(1) brightness(1);
}

.gallery-card-label {
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   People / bio cards
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.bio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.2);
}

.bio-avatar {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: var(--accent-glow);
  margin-bottom: 1rem;
  filter: grayscale(0.3);
}

.bio-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--bg-alt);
  border: 2px solid var(--accent);
  box-shadow: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.bio-name {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  margin-bottom: 0.25rem;
}

.bio-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.bio-card p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Videos grid
   -------------------------------------------------------------------------- */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-embed-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lite YouTube facade - clickable poster that defers iframe load until play. */
.video-embed-wrap.lite-youtube {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent);
  transform: scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}

.video-card:hover {
  border-color: var(--accent);
}

.video-card-label {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.video-card-label h4 {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.video-card-label p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Link cards grid
   -------------------------------------------------------------------------- */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.link-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 212, 170, 0.2);
  color: var(--text);
  text-shadow: none;
}

.link-icon {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.link-card-content h3 {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.link-card-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Resources list
   -------------------------------------------------------------------------- */
.resources-list {
  list-style: none;
  padding: 0;
}

.resources-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.resources-list li:last-child {
  border-bottom: none;
}

.resources-list .resource-icon {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--accent-glow);
  min-width: 1.5rem;
}

.resources-list a {
  font-weight: 500;
}

.resources-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.05em;
  width: 100%;
  min-height: 160px;
}

/* --------------------------------------------------------------------------
   Flagship section styles
   -------------------------------------------------------------------------- */
.flagship-intro {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text);
  line-height: 1.9;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: -8px 0 20px rgba(0, 212, 170, 0.1);
}

.flagship-screenshots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.flagship-screenshots figure {
  border: 1px solid var(--border);
  overflow: hidden;
}

.flagship-screenshots img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.8);
  transition: filter 0.3s;
}

.flagship-screenshots figure:hover img {
  filter: saturate(1) brightness(1);
}

.flagship-screenshots figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .flagship-screenshots { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Side panel (used in asymmetric layouts)
   -------------------------------------------------------------------------- */
.side-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.side-panel h4 {
  color: var(--accent);
  text-shadow: var(--accent-glow);
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.side-panel ul {
  list-style: none;
  padding: 0;
}

.side-panel ul li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(42,8,82,0.4);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.side-panel ul li:last-child { border-bottom: none; }

.side-panel ul li strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

.site-footer p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Cite links
   -------------------------------------------------------------------------- */
.cite a {
  font-size: 0.72rem;
  vertical-align: super;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .typewriter-cursor {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .videos-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .flagship-screenshots { grid-template-columns: 1fr; }
  .screenshot-strip { flex-direction: column; }
  .screenshot-strip img,
  .screenshot-strip .placeholder { height: 120px; }
}
