/* =====================================================================
   FOOTAR SHOWCASE — DESIGN SYSTEM
   Premium, dark, sporty-tech. Vanilla CSS, no framework.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces — light eGamesLab theme */
  --bg:            #ffffff;
  --bg-grad-1:     #ffffff;
  --bg-grad-2:     #f2f4f8;
  --surface:       #ffffff;
  --surface-2:     #f5f6f9;
  --surface-3:     #e9ecf1;
  --border:        rgba(20, 22, 40, 0.10);
  --border-strong: rgba(20, 22, 40, 0.20);

  /* Text */
  --text:        #14151c;
  --text-dim:    #565a66;
  --text-muted:  #8a8d99;

  /* Brand — eGamesLab */
  --accent:      #ec008c;   /* eGamesLab magenta */
  --accent-600:  #d1007d;
  --accent-700:  #b00069;
  --accent-soft: rgba(236, 0, 140, 0.10);
  --accent-ink:  #ffffff;   /* text on the magenta */
  --accent-2:    #00a3e0;   /* eGamesLab blue */

  /* Status (eGamesLab multicolour) */
  --status-prototype:  #f5b301;
  --status-pilot:      #00a3e0;
  --status-live:       #28b13a;
  --status-commercial: #00b6a8;
  --status-research:   #ec008c;
  --status-grant:      #a02bd6;
  --status-internal:   #8a8d99;

  /* Shape & motion */
  --radius:    18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow:    0 16px 40px rgba(22, 24, 54, 0.12);
  --shadow-sm: 0 6px 18px rgba(22, 24, 54, 0.08);
  --maxw:      1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Archivo", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 90% -8%, rgba(0, 163, 224, 0.07), transparent 60%),
    radial-gradient(1000px 560px at -8% 2%, rgba(236, 0, 140, 0.06), transparent 58%),
    linear-gradient(180deg, var(--bg-grad-1), var(--bg-grad-2));
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.app-root { min-height: 60vh; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px rgba(236, 0, 140, 0.28); }
.btn--primary:hover { background: var(--accent-600); box-shadow: 0 10px 28px rgba(236, 0, 140, 0.38); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-muted); }
/* ghost buttons that sit over a photo (hero) need light treatment */
.detail-hero-content .btn--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.detail-hero-content .btn--ghost:hover { background: rgba(255, 255, 255, 0.24); border-color: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em; }
.brand-divider { color: var(--accent); margin: 0 4px; }
.brand-sub { color: var(--text-dim); font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 18px; }
.header-link { color: var(--text-dim); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.header-link:hover { color: var(--text); }

/* ---------- Hero band (grid page) ---------- */
.hero-band { padding: 48px 0 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.hero-title { font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 800; max-width: 14ch; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-sub { margin-top: 18px; max-width: 56ch; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 30px; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.hero-stat .lbl { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; padding-top: 30px; padding-bottom: 30px; }

section.container { padding: 20px; }

.filter-pill {
  padding: 9px 16px; border-radius: 999px; font-size: 0.88rem; font-weight: 500;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); transition: all 0.18s var(--ease);
}
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.filter-pill .count { opacity: 0.6; margin-left: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Project grid ---------- */
.grid-section { padding-bottom: 60px; }
.project-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.empty-state { padding: 60px 0; text-align: center; color: var(--text-muted); }

/* ---------- Card ---------- */
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; background: var(--surface-3); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .card-img { transform: scale(1.05); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 12, 17, 0.55));
}
.card-badges { position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2; display: flex; justify-content: space-between; gap: 8px; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.card-title { font-size: 1.32rem; font-weight: 600; }
.card-summary { color: var(--text-dim); font-size: 0.95rem; flex: 1; }
.card-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em; backdrop-filter: blur(6px);
}
.badge--status { background: rgba(15, 17, 28, 0.62); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; }
.badge--status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--badge-color, var(--text-dim)); box-shadow: 0 0 10px var(--badge-color, transparent); }
.badge--warn { background: rgba(246, 183, 60, 0.16); border: 1px solid rgba(246, 183, 60, 0.5); color: #ffd584; }

/* status color mapping */
.status-prototype  { --badge-color: var(--status-prototype); }
.status-pilot      { --badge-color: var(--status-pilot); }
.status-live       { --badge-color: var(--status-live); }
.status-commercial { --badge-color: var(--status-commercial); }
.status-research   { --badge-color: var(--status-research); }
.status-grant      { --badge-color: var(--status-grant); }
.status-internal   { --badge-color: var(--status-internal); }

/* ---------- Tag chips ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border);
}
/* chips that sit over the hero photo */
.detail-hero-content .chip { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* =====================================================================
   DETAIL / CASE STUDY
   ===================================================================== */
.detail { padding-bottom: 60px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-dim); font-weight: 500; font-size: 0.9rem; margin: 28px 0 22px; transition: color 0.2s; }
.back-link:hover { color: var(--text); }

/* Hero */
.detail-hero { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 30px; }
.detail-hero-media { position: relative; aspect-ratio: 21 / 9; background: var(--surface-3); }
.detail-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(9, 12, 17, 0.78) 0%, rgba(9, 12, 17, 0.30) 46%, rgba(9, 12, 17, 0) 72%),
  linear-gradient(180deg, rgba(9, 12, 17, 0.10) 0%, rgba(9, 12, 17, 0.42) 48%, rgba(9, 12, 17, 0.95) 100%); }
.detail-hero-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px clamp(24px, 4vw, 48px); z-index: 2; color: #fff; }
.detail-hero-content h1 { color: #fff; }
.detail-hero-content .tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.detail-hero-content h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); font-weight: 800; max-width: 16ch; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.01em; }
.detail-hero-content .lead { margin-top: 14px; max-width: 58ch; color: #fff; font-size: clamp(1rem, 1.7vw, 1.2rem); opacity: 0.94; }
.detail-subtitle { color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Two-column layout */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; }

/* Sections */
.detail-section { scroll-margin-top: 90px; padding: 30px;}
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.section-kicker { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.section-kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.prose p { color: var(--text-dim); font-size: 1.04rem; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

.callout { margin-top: 18px; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid rgba(236, 0, 140, 0.22); }
.callout .callout-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.callout p { color: var(--text); }

/* Built list */
.built-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.built-list li { position: relative; padding-left: 34px; color: var(--text); font-size: 1.02rem; }
.built-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec008c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}

/* Video */
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  aspect-ratio: 16 / 9; border-radius: var(--radius); border: 1px dashed var(--border-strong);
  background: var(--surface); color: var(--text-muted); text-align: center;
}
.video-placeholder svg { width: 46px; height: 46px; opacity: 0.5; }

/* Gallery */
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.gallery-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; background: var(--surface-3); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }

/* Press */
.press-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.press-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.press-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.press-thumb { aspect-ratio: 16 / 9; background: var(--surface-3); position: relative; display: flex; align-items: center; justify-content: center; }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; object-position:top; max-height: 230px; min-height: 230px;}
.press-type { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: rgba(9, 12, 17, 0.78); color: var(--accent); border: 1px solid var(--border-strong); }
.press-icon { width: 40px; height: 40px; opacity: 0.55; }
.press-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 106px;}
.press-date { font-size: 0.76rem; color: var(--text-muted); letter-spacing: 0.04em; }
.press-title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: #d6c80e; }
.press-desc { font-size: 0.88rem; color: var(--text-dim); flex: 1; }
.press-open { font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-top: 4px; }

/* Results */
.results-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.result-card { padding: 22px; border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); }
.result-value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--text); }
.result-label { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Aside (sticky facts) ---------- */
.detail-aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.aside-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.aside-card h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 13px; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; border-top: 1px solid var(--border); }
.fact:first-of-type { border-top: 0; padding-top: 0; }
.fact-label { font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.fact-value { font-size: 0.98rem; color: var(--text); font-weight: 500; }

/* Commercial / pricing */
.pricing-card { background: linear-gradient(180deg, rgba(236, 0, 140, 0.08), var(--surface-2)); border-color: rgba(236, 0, 140, 0.22); }
.pricing-headline { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.pricing-lines { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.pricing-lines li { padding-left: 24px; position: relative; font-size: 0.92rem; color: var(--text-dim); }
.pricing-lines li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ec008c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); background-size: 10px; background-repeat: no-repeat; background-position: center; }
.pricing-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }

/* CTA band */
.detail-cta-band { margin-top: 8px; padding: 40px clamp(24px, 4vw, 56px); border-radius: var(--radius); text-align: center;
  background: radial-gradient(800px 300px at 50% -40%, rgba(236, 0, 140, 0.12), transparent 70%), linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong); }
.detail-cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
.detail-cta-band p { color: var(--text-dim); margin-top: 10px; max-width: 50ch; margin-inline: auto; }
.detail-cta-band .cta-row { justify-content: center; }

/* ---------- Hero CTA row (home) ---------- */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* eGames Lab credit in the hero */
.egl-hero { display: inline-flex; align-items: center; gap: 11px; width: fit-content; margin-top: 24px;
  padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.egl-hero:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.egl-hero img { height: 24px; width: auto; display: block; }
.egl-hero span { font-size: 0.86rem; color: var(--text-dim); }
.egl-hero strong { color: var(--text); font-weight: 700; }

/* "Backed by" strip (Press page) */
.backers { margin: 2px 0 34px; padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.backers-label { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.backers-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.backer-logo { display: inline-flex; align-items: center; }
.backer-logo img { height: 26px; width: auto; display: block; filter: grayscale(1); opacity: 0.55; transition: opacity 0.2s, filter 0.2s; }
.backer-logo:hover img { opacity: 1; filter: grayscale(0); }
.backer { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--text-muted); white-space: nowrap; transition: color 0.2s; }
.backer:hover { color: var(--text-dim); }

/* logo hover polish (header + footer co-brand) */
.header-egl img, .footer-egl img { opacity: 0.92; transition: opacity 0.2s; }
.header-egl:hover img, .footer-egl:hover img { opacity: 1; }

/* ---------- Language switch (PT/EN) + PPS·WP tags ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.lang-opt { font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; padding: 6px 11px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; transition: background 0.18s, color 0.18s; }
.lang-opt.is-active { background: var(--accent); color: var(--accent-ink); }
.lang-opt:not(.is-active):hover { color: var(--text); }
.card-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.pps-tag { font-family: var(--font-display); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(236, 0, 140, 0.22); padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.chip--pps { background: var(--accent); color: #fff; border-color: transparent; font-weight: 700; letter-spacing: 0.03em; }

/* ---------- Research & Publications ---------- */
.pub-list {  gap: 14px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; }
.pub-card { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; transition: border-color 0.2s, transform 0.2s; width: 354px; max-width: 100%; }
.pub-card:hover { border-color: var(--border-strong); transform: translateX(3px); }
.pub-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 11px; }
.pub-badge { font-family: var(--font-display); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: 5px; }
.pub-badge--soft { color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border-strong); }
.pub-kind { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
.pub-year { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--text-muted); }
.pub-title { font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; line-height: 1.28; margin-bottom: 6px; }
.pub-venue { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.pub-authors { font-size: 0.85rem; color: var(--text-dim); margin-top: 3px; }
.pub-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.pub-open { font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.pub-open:hover { text-decoration: underline; }

/* ---------- Institutional / dossier framing ---------- */
.dossier-pps-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dossier-pps { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.dossier-pps-code { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: 0.9rem; }
.dossier-pps-name { font-size: 0.85rem; color: var(--text-dim); }
.dossier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.dossier-arch-wrap h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.dossier-arch { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.dossier-arch li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; }
.dossier-arch li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.dossier-arch strong { font-size: 0.95rem; color: var(--text); font-weight: 600; }
.dossier-arch span { font-size: 0.86rem; color: var(--text-dim); }
.dossier-note { background: var(--accent-soft); border: 1px solid rgba(236, 0, 140, 0.22); border-radius: var(--radius-sm); padding: 18px 20px; }
.dossier-note p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.55; }
.dossier-date { margin-top: 12px; color: var(--text) !important; }
@media (max-width: 720px) { .dossier-grid { grid-template-columns: 1fr; } }

/* ---------- Laurel award tiles (festival style) ---------- */
.laurels-grid { display: flex; flex-direction: row; justify-content:center; flex-wrap:wrap; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 6px; }
.laurel-tile { position: relative; aspect-ratio: 6 / 5; display: grid; place-items: center; text-align: center; padding: 8px; color: inherit; transition: transform 0.2s var(--ease); text-align:center; justify-content: center; flex-direction: row; width:260px; }
.laurel-tile::before { content: ""; position: absolute; inset: 6px; background: url(../img/laurel.svg) center/contain no-repeat; opacity: 0.95; pointer-events: none; }
a.laurel-tile:hover { transform: translateY(-3px); }
a.laurel-tile:hover::before { opacity: 1; }
.laurel-inner { position: relative; z-index: 1; max-width: 54%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.laurel-award { font-family: var(--font-display); font-weight: 800; font-size: 0.86rem; line-height: 1.12; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); }
.laurel-event { font-size: 0.71rem; color: var(--text-dim); line-height: 1.2; }
.laurel-year { font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--accent); margin-top: 1px; }

/* =====================================================================
   JOURNEY / TIMELINE
   ===================================================================== */
.journey { padding-bottom: 60px; }
.journey-hero { padding: 8px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.journey-title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; max-width: 15ch; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.015em; }
.journey-title em { color: var(--accent); font-style: normal; }
.journey-sub { margin-top: 16px; max-width: 60ch; color: var(--text-dim); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.journey-hero .hero-stats { margin-top: 30px; }

/* Tag colours (shared by dots + chips) */
.tag-r-d        { --tl-color: #00b6a8; }
.tag-event      { --tl-color: #00a3e0; }
.tag-recognition{ --tl-color: #e09a00; }
.tag-partnership{ --tl-color: #28b13a; }
.tag-press      { --tl-color: #ec008c; }
.tag-product    { --tl-color: #28b13a; }
.tag-research   { --tl-color: #a02bd6; }
.tag-grant      { --tl-color: #ec008c; }
.tag-default    { --tl-color: var(--text-muted); }

.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border) 16%, var(--border));
}
.tl-item { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding-bottom: 28px; }
.tl-marker { position: relative; }
.tl-dot {
  position: absolute; left: 2px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--tl-color, var(--accent)); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--tl-color, var(--accent)), 0 0 14px var(--tl-color, transparent);
}
.tl-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tl-card:hover { border-color: var(--border-strong); transform: translateX(3px); }
.tl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.tl-date { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: 0.01em; }
.tl-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; color: var(--tl-color);
  background: color-mix(in srgb, var(--tl-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--tl-color) 40%, transparent);
}
.tl-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.tl-body { color: var(--text-dim); font-size: 0.98rem; }
.tl-media { display: block; margin-top: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); max-width: 420px; cursor: zoom-in; }
.tl-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s var(--ease); }
.tl-media:hover img { transform: scale(1.04); }

@media (max-width: 640px) {
  .tl-item { grid-template-columns: 28px 1fr; gap: 12px; }
  .tl-card { padding: 18px; }
}

/* =====================================================================
   PRESS / EVENTS / RECOGNITION PAGE
   ===================================================================== */
.events-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.event-card {
  display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.event-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.event-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.event-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.event-card:hover .event-media img { transform: scale(1.05); }
.event-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.event-title { font-size: 1.12rem; font-weight: 600; }

.reco-grid { display: flex; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); flex-direction: row; flex-wrap: wrap; justify-content: center; }
.reco-card { padding: 22px; border-radius: var(--radius-sm); background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s var(--ease); }
.reco-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.reco-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.reco-year { font-family: var(--font-display); font-size: 0.82rem; color: var(--text-muted); }
.reco-title { font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.reco-detail { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Header eGames Lab co-brand ---------- */
.header-egl { display: flex; align-items: center; padding-right: 16px; margin-right: 2px; border-right: 1px solid var(--border); }
.header-egl img { height: 21px; width: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 32px; justify-content: space-between; align-items: center; padding-top: 36px; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.footer-tag { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }
.footer-egl { display: flex; align-items: center; gap: 12px; }
.footer-egl-label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.footer-egl img { height: 30px; width: auto; display: block; }
.footer-funding { margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--border); display: flex; justify-content: center; }
.footer-funding img { max-width: 760px; width: 100%; height: auto; opacity: 0.92; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 6px 0 36px; }
.footer-copy { color: var(--text-muted); font-size: 0.82rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 10, 0.92); backdrop-filter: blur(4px); padding: 5vh 6vw; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 10px; object-fit: contain; box-shadow: var(--shadow); }
.lightbox-close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 1.6rem; line-height: 1; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 2rem; line-height: 1; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.14); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* Logo-style featured images: contain on a branded tile instead of cropping */
.card-img.is-logo {
  object-fit: contain; padding: 13%;
  background: radial-gradient(120% 100% at 50% 0%, rgba(236, 0, 140, 0.10), transparent 62%), var(--surface-3);
}
.detail-hero-media img.is-logo {
  object-fit: contain; padding: 3% 10%;
  background: radial-gradient(90% 120% at 30% 30%, rgba(236, 0, 140, 0.12), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg));
}

/* ---------- Utilities ---------- */
.is-missing-img { filter: saturate(0.6); }
.print-only { display: none; }
.print-header { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  .detail-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1 1 260px; }
}
@media (max-width: 640px) {
  .container { padding-inline: 18px; }
  .hero-band { padding-top: 40px; }
  .header-nav .header-link { display: none; }
  .header-egl { display: none; }
  .footer-top, .footer-bottom { justify-content: flex-start; }
  .detail-hero-content { padding: 22px; }
  .detail-aside { flex-direction: column; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
