/* ============================================================
   game.css — GAME DESIGN PAGE STYLES
   Loaded by game-design.html on top of style.css.

   TYPE SCALE (recruiter-readable):
   - Body / prose:      1rem   (16px)
   - List items:        0.95rem
   - Labels / mono UI:  0.75rem
   - Tiny meta:         0.7rem
   - Card titles:       clamp(1.25rem, 2.8vw, 1.8rem)
   - Section titles:    clamp(2.4rem, 5vw, 4rem)

   Sections:
     1.  Accent colour overrides
     2.  Identity strip
     3.  Projects section header + scan strip
     4.  Project dividers
     5.  Project card (accordion)
     6.  Card header, meta, role pills, engine stack
     7.  Card body + section labels
     8.  Goals / Learning Outcomes grid
     9.  Process prose
    10.  Evidence box
    11.  Contributions + doc links
    12.  Media gallery
    13.  Also Shipped footnote
    14.  Philosophy section
    15.  Callout banner
    16.  Leadership section
    17.  itch.io section & game cards
    18.  Lightbox
    19.  Responsive overrides
   ============================================================ */


/* ============================================================
   1. ACCENT COLOUR OVERRIDE
   ============================================================ */
:root {
  --accent:      #00d4ff;
  --accent-glow: rgba(0,212,255,0.3);
  --accent-dim:  rgba(0,212,255,0.08);
  --accent2:     #ff4d6d;
  --purple:      #a855f7;
  --green:       #22c55e;
}


/* ============================================================
   2. IDENTITY STRIP
   ============================================================ */
.identity-strip {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  margin-top: 60px;
  position: sticky;
  top: 60px;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.identity-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.identity-strip__name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--text);
  line-height: 1;
  margin: 0;
}
.identity-strip__role {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.62 */
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}
.identity-strip__stats {
  display: flex;
  gap: 2rem;
}
.identity-strip__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}
.identity-strip__stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1;
}
.identity-strip__stat span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.identity-strip__back {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.identity-strip__back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.live-indicator {
  color: var(--green);
  font-size: 1rem;
}


/* ============================================================
   3. PROJECTS SECTION HEADER + SCAN STRIP
   ============================================================ */
.projects-section {
  padding-top: 3.5rem;
}
.projects-section__header {
  margin-bottom: 1rem;
}
.projects-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--text);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}
.projects-section__subtitle {
  color: var(--muted);
  max-width: 580px;
  font-size: 1.05rem;              /* was 1rem / 0.95rem */
  line-height: 1.75;
}

/* Quick-scan stat strip */
.scan-strip {
  display: flex;
  align-items: stretch;
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}
.scan-strip__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  gap: 0.35rem;
  flex: 1;
  min-width: 130px;
  text-align: center;
}
.scan-strip__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.scan-strip__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;               /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.4;
}
.scan-strip__divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  align-self: stretch;
}


/* ============================================================
   4. PROJECT DIVIDERS
   ============================================================ */
.project-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 4rem 0 2rem;
}
.project-divider__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.68rem */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.project-divider__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Keywords Studios — compact inline note, not a full card */
.keywords-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  background: var(--surface);
  padding: 0.85rem 1.5rem;
  flex-wrap: nowrap;           /* keep single row */
}
.keywords-note__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;                /* allow text to shrink/truncate if needed */
}
.keywords-note__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}
.keywords-note__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.keywords-note__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.keywords-note__badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.25rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .keywords-note { flex-wrap: wrap; }
  .keywords-note__left { flex-wrap: wrap; }
  .keywords-note__desc { white-space: normal; }
}


/* ============================================================
   5. PROJECT CARD
   ============================================================ */
.project-card {
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 1.2rem;
  transition: border-color 0.25s;
}
.project-card:hover,
.project-card.open {
  border-color: var(--accent);
}
.project-card.open {
  box-shadow: 0 0 40px rgba(0,212,255,0.06);
}
.project-card.featured {
  border-color: rgba(0,212,255,0.35);
}
.project-card.featured::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}


/* ============================================================
   6. CARD HEADER, META, ROLE PILLS, ENGINE STACK
   ============================================================ */
.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 2rem;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
}
.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.project-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.65rem */
  color: var(--accent);
  letter-spacing: 0.1em;
}
.project-card__num--live {
  color: var(--green);
}
.project-card__type {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.62rem */
  color: var(--muted);
  letter-spacing: 0.06em;
}
.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);   /* was clamp(1.1, 2.5, 1.6) */
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.project-card__subtitle {
  font-size: 1rem;                 /* was 0.88rem */
  color: var(--muted);
  max-width: 580px;
  line-height: 1.65;
  font-family: var(--font-body);
  margin: 0;
}
.project-card__engine {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
}
.project-card__expand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.project-card__header:hover .project-card__expand {
  color: var(--accent);
}
.project-card__arrow {
  display: inline-block;
  transition: transform 0.25s;
}
.project-card.open .project-card__arrow {
  transform: rotate(180deg);
}
.project-card__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* Role pills */
.role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.role-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;               /* was 0.6rem */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.7rem;
}

/* Engine / tool logo strip */
.engine-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.engine-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem 0.35rem 0.6rem;
  transition: border-color 0.2s;
}
.engine-badge:hover { border-color: var(--accent); }
.engine-badge__logo {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0.85);
}
.engine-badge:hover .engine-badge__logo { filter: brightness(1); }
.engine-badge__icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--muted);
}
.engine-badge__name {
  font-family: var(--font-mono);
  font-size: 0.7rem;               /* was 0.6rem */
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.engine-badge--tool .engine-badge__name { color: rgba(255,255,255,0.45); }


/* ============================================================
   7. CARD BODY + SECTION LABELS
   ============================================================ */
.project-card__body {
  display: none;
  padding: 0 2rem 3rem;
  border-top: 1px solid var(--border);
}
.project-card.open .project-card__body {
  display: block;
}
.card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 2.2rem;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  border-top: 1px solid var(--border);
}
.card-label:first-child {
  border-top: none;
  padding-top: 2rem;
  margin-top: 0;
}
/* legacy alias */
.card-section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 2rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.card-section-label:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}


/* ============================================================
   8. GOALS / LEARNING OUTCOMES GRID
   ============================================================ */
.goals-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin: 1.2rem 0 1.8rem;
}
.goals-box,
.outcomes-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.goals-box   { border-left: 3px solid var(--accent); }
.outcomes-box{ border-left: 3px solid var(--purple); }
.goals-box__title,
.outcomes-box__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;              /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.goals-box__title   { color: var(--accent); }
.outcomes-box__title{ color: var(--purple); }
.goals-box ul,
.outcomes-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.goals-box li,
.outcomes-box li {
  font-size: 0.95rem;              /* was 0.84rem */
  color: var(--muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.6;
}
.goals-box li::before    { content: '▸'; position: absolute; left: 0; color: var(--accent); }
.outcomes-box li::before { content: '▸'; position: absolute; left: 0; color: var(--purple); }


/* ============================================================
   9. PROCESS PROSE
   ============================================================ */
.process-prose {
  font-size: 1rem;                 /* was 0.9rem */
  color: var(--muted);
  line-height: 1.9;
  border-left: 2px solid rgba(0,212,255,0.3);
  padding-left: 1.6rem;
  margin: 0.8rem 0 1.4rem;
}
.process-prose strong { color: var(--text); }
.process-prose em     { color: var(--accent); font-style: normal; }


/* ============================================================
  10. EVIDENCE BOX
   ============================================================ */
.evidence-box {
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--accent);
  padding: 1.6rem 1.8rem;
  margin: 2rem 0 1.4rem;
}
.evidence-box__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.evidence-box p {
  font-size: 1rem;                 /* was 0.88rem */
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}


/* ============================================================
  11. CONTRIBUTIONS + DOC LINKS
   ============================================================ */
.contributions-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;              /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.contributions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.contrib-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;              /* was 0.6rem */
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  background: var(--bg2);
}
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;              /* was 0.63rem */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.5rem 1.1rem;
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.doc-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.doc-link.play {
  border-color: rgba(0,212,255,0.4);
  color: var(--accent);
  background: var(--accent-dim);
}
.doc-link.play:hover {
  background: rgba(0,212,255,0.15);
}


/* ============================================================
  12. MEDIA GALLERY
   ============================================================ */
.game-media {
  margin-top: 1.8rem;
  margin-bottom: 0.5rem;
}
.game-media__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;              /* was 0.6rem */
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.7rem;
}
.media-video-area {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}
.media-video-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.media-video-area:hover img { transform: scale(1.02); }
.media-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
  color-scheme: dark;
}
.media-video-area + .media-screenshots {
  border-top: 2px solid var(--accent);
  padding-top: 0.2rem;
}
.media-screenshots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-top: 0.3rem;
}
.screenshot-slot {
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  position: relative;
}
.screenshot-slot::after {
  content: '⤢';
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.screenshot-slot:hover::after { opacity: 1; }
.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}
.screenshot-slot:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}
.media-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;              /* was 0.58rem */
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
}


/* ============================================================
  13. ALSO SHIPPED FOOTNOTE
   ============================================================ */
.also-shipped-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.also-card {
  border: 1px solid var(--border);
  padding: 1.3rem 1.5rem;
  background: var(--surface);
  transition: border-color 0.2s;
}
.also-card:hover { border-color: rgba(0,212,255,0.3); }
.also-card__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.also-card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.also-card__desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}


/* ============================================================
  14. PHILOSOPHY
   ============================================================ */
.philosophy {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.philosophy__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.philosophy__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--text);
  line-height: 1.45;
  quotes: '\201C' '\201D';
}
.philosophy__quote p::before { content: open-quote;  color: var(--accent); }
.philosophy__quote p::after  { content: close-quote; color: var(--accent); }
.philosophy__quote cite {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-top: 1.2rem;
  font-style: normal;
}
.philosophy__pillars {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}
.pillar {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.pillar__icon  { font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.pillar__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.pillar__text  { font-size: 0.95rem; color: var(--muted); line-height: 1.65; }


/* ============================================================
  15. CALLOUT BANNER
   ============================================================ */
.callout-banner {
  background: var(--accent);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.callout-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.04) 20px,
    rgba(0,0,0,0.04) 21px
  );
  pointer-events: none;
}
.callout-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.callout-banner__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: #000;
  line-height: 1.25;
  max-width: 620px;
}
.callout-banner__text em { color: rgba(0,0,0,0.55); font-style: normal; }
.callout-banner__stat { text-align: right; flex-shrink: 0; }
.callout-banner__stat-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: #000;
  line-height: 1;
}
.callout-banner__stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(0,0,0,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}


/* ============================================================
  16. LEADERSHIP
   ============================================================ */
.leadership-section { padding: 5.5rem 0; }
.leadership-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text);
}
.leadership-section .section-intro {
  color: var(--muted);
  max-width: 520px;
  font-size: 1rem;
  margin-top: 0.6rem;
  line-height: 1.7;
}
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.leadership-card {
  border: 1px solid var(--border);
  padding: 2rem;
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.leadership-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.leadership-card__num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.leadership-card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.leadership-card__desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ============================================================
  17. ITCH.IO SECTION
   ============================================================ */
.itchio-section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}
.itchio-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin: 0.5rem 0;
}
.itchio-section .section-intro {
  color: var(--muted);
  max-width: 520px;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.itchio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.itch-card {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.itch-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.itch-card__cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.itch-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.itch-card:hover .itch-card__cover img { transform: scale(1.04); }
.itch-card__body {
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.itch-card__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.itch-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.itch-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
}
.itch-tag-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.itch-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  background: var(--bg2);
}
.itch-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  padding: 0.6rem 1.1rem;
  font-weight: 700;
  align-self: flex-start;
  transition: opacity 0.2s;
}
.itch-card__cta:hover { opacity: 0.85; }
.itchio-profile-link {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.itchio-profile-link a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.55rem 1.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.itchio-profile-link a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.itchio-profile-link span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
}


/* ============================================================
  18. LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}


/* ============================================================
  19. RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .goals-outcomes    { grid-template-columns: 1fr; }
  .philosophy__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .media-screenshots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .identity-strip__stats,
  .identity-strip__back  { display: none; }
  .scan-strip            { display: none; }
  .project-card__header  { padding: 1.3rem; }
  .project-card__body    { padding: 0 1.3rem 2rem; }
  .callout-banner__stat  { display: none; }
  .itchio-grid           { grid-template-columns: 1fr; }
  .also-shipped-grid     { grid-template-columns: 1fr; }
  .media-video-area      { aspect-ratio: auto; max-height: 60vw; }
  .media-video           { height: auto; max-height: 60vw; }
}