/* ==========================================================================
   Pyria: Return of the Bits — pyria.dev Landing Page Stylesheet
   Matches Pyria's retro-modern dark RPG palette with zero external fonts/CDNs.
   ========================================================================== */

:root {
  --bg-deep: #0b1020;
  --bg-surface: #11182c;
  --bg-panel: #151c32;
  --bg-panel-alt: #1c2642;
  --bg-code: #0c1222;
  --border-subtle: #2b385c;
  --border-bright: #4b6196;
  --text-main: #eef3ff;
  --text-muted: #9eb0d6;
  --accent-gold: #f6c945;
  --accent-gold-dark: #c99714;
  --accent-emerald: #34d399;
  --accent-emerald-dark: #059669;
  --accent-sky: #38bdf8;
  --accent-rose: #fb7185;
  --accent-violet: #a78bfa;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.45);
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(246, 201, 69, 0.09) 0%, transparent 35%),
    var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid rgba(75, 97, 150, 0.45);
  color: var(--accent-gold);
  padding: 1px 6px;
  border-radius: 5px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent-gold);
  color: #1f1300;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.card {
  background: var(--bg-panel);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ==================== BUTTONS & PILLS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  color: #062118;
  border-color: #6ee7b7;
  box-shadow: 0 6px 22px rgba(52, 211, 153, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4ade80 0%, #10b981 100%);
  border-color: #a7f3d0;
  box-shadow: 0 10px 28px rgba(52, 211, 153, 0.38);
}

.btn-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
  color: #1f1300;
  border-color: #fde68a;
}

.btn-gold:hover {
  background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-bright);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13.5px;
}

.btn-xl {
  padding: 15px 28px;
  font-size: 17px;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill-gold {
  background: rgba(246, 201, 69, 0.16);
  color: var(--accent-gold);
  border: 1px solid rgba(246, 201, 69, 0.35);
}

.pill-green {
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.pill-sky {
  background: rgba(56, 189, 248, 0.16);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.pill-violet {
  background: rgba(167, 139, 250, 0.16);
  color: var(--accent-violet);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.pill-rose {
  background: rgba(251, 113, 133, 0.16);
  color: var(--accent-rose);
  border: 1px solid rgba(251, 113, 133, 0.35);
}

/* ==================== HEADER / NAV ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 56, 92, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.brand-icon {
  border-radius: 8px;
  border: 1px solid var(--border-bright);
  image-rendering: pixelated;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-sky);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav {
  padding: 9px 18px;
  font-size: 14.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
}

.mobile-menu {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.btn) {
  padding: 8px 4px;
  color: var(--text-main);
  font-weight: 600;
  border-bottom: 1px solid rgba(43, 56, 92, 0.45);
}

/* ==================== HERO ==================== */
.hero {
  padding: 52px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.title-glow {
  font-size: clamp(46px, 6.5vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  text-shadow: 0 5px 0 #7c4a03, 0 0 34px rgba(246, 201, 69, 0.35);
}

.title-sub {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--accent-sky);
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.hero-lead strong {
  color: var(--text-main);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-play-btn {
  font-size: 18px;
  padding: 16px 30px;
}

.hero-domain-note {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.trust-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green { background: var(--accent-emerald); }
.dot-sky { background: var(--accent-sky); }
.dot-gold { background: var(--accent-gold); }
.dot-violet { background: var(--accent-violet); }

/* Hero Stage Preview */
.hero-stage {
  overflow: hidden;
  border-color: var(--border-bright);
  background: linear-gradient(180deg, #182342 0%, #11182c 100%);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stage-tab {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.stage-tab:hover {
  color: var(--text-main);
  border-color: var(--border-bright);
}

.stage-tab.active {
  background: rgba(246, 201, 69, 0.18);
  color: var(--accent-gold);
  border-color: rgba(246, 201, 69, 0.55);
}

.stage-image-wrap {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--bg-code);
  cursor: zoom-in;
  overflow: hidden;
}

.stage-image-wrap img {
  width: 100%;
  aspect-ratio: 1024 / 608;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.stage-image-wrap:hover img {
  transform: scale(1.015);
}

.zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(11, 16, 32, 0.85);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stage-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.stage-caption strong {
  display: block;
  font-size: 14.5px;
  color: var(--text-main);
}

.stage-caption p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Stats Bar */
.stats-bar {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-item {
  background: rgba(21, 28, 50, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(21, 28, 50, 0.45) 0%, rgba(11, 16, 32, 0.2) 100%);
  border-top: 1px solid rgba(43, 56, 92, 0.45);
  border-bottom: 1px solid rgba(43, 56, 92, 0.45);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 42px;
}

.section-header h2 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  color: var(--text-main);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16.5px;
}

/* ==================== SCREENSHOTS GALLERY ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-trigger {
  padding: 0;
  border: 0;
  background: var(--bg-code);
  cursor: zoom-in;
  display: block;
  width: 100%;
  overflow: hidden;
}

.shot-trigger img {
  width: 100%;
  transition: transform 0.25s ease;
}

.shot-trigger:hover img {
  transform: scale(1.02);
}

.shot-card figcaption {
  padding: 16px 18px 18px;
}

.shot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.shot-realm {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.shot-card figcaption p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Feature Split */
.feature-split {
  margin-top: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.feature-split-reverse {
  margin-top: 28px;
}

.feature-split-copy h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.feature-split-copy p {
  margin: 0 0 14px;
  color: var(--text-muted);
}

.feature-split-media {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.code-snippet {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.code-snippet code {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-emerald);
  font-size: 14px;
  line-height: 1.65;
}

.muted-note {
  font-size: 13.5px;
  margin-bottom: 0 !important;
}

/* ==================== CHALLENGES CADENCE ==================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  padding: 22px 20px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

.pip-callout {
  margin-top: 22px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-color: rgba(246, 201, 69, 0.45);
  background: linear-gradient(135deg, rgba(246, 201, 69, 0.08), rgba(21, 28, 50, 0.95));
}

.pip-badge {
  font-size: 40px;
  line-height: 1;
  flex-shrink: 0;
}

.pip-callout h3 {
  margin: 0 0 6px;
  font-size: 19px;
  color: var(--accent-gold);
}

.pip-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ==================== 4 ERAS CURRICULUM ==================== */
.eras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.era-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.era-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.era-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.era-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.era-summary {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.topic-list {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-main);
  font-size: 14.5px;
  flex-grow: 1;
}

.topic-list li {
  margin-bottom: 6px;
}

.era-reward {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--accent-gold);
}

.future-eras-callout {
  margin-top: 22px;
  padding: 24px 26px;
  border-style: dashed;
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.09), rgba(21, 28, 50, 0.92));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.future-eras-copy h3 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.future-eras-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 780px;
}

.future-eras-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.future-era-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(12, 18, 34, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.4);
  font-size: 13.5px;
  color: var(--text-muted);
}

.future-era-chip strong {
  color: var(--accent-violet);
}

/* ==================== CHILD SAFETY ==================== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.safety-card {
  padding: 24px 22px;
}

.safety-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.safety-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.safety-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ==================== FAQ ==================== */
.faq-container {
  max-width: 860px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-bright);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  border-top: 1px solid rgba(43, 56, 92, 0.55);
}

.faq-answer p:first-child {
  margin-top: 14px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 6px;
}

/* ==================== FINAL CTA & FOOTER ==================== */
.cta-section {
  padding-top: 24px;
}

.cta-banner {
  text-align: center;
  padding: 46px 28px;
  border-color: var(--border-bright);
  background:
    radial-gradient(circle at top, rgba(52, 211, 153, 0.14), transparent 60%),
    linear-gradient(160deg, rgba(28, 38, 66, 0.95), rgba(16, 23, 42, 0.98));
}

.cta-banner h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
}

.cta-banner p {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 40px;
  background: rgba(11, 16, 32, 0.92);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--accent-gold);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==================== LIGHTBOX ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 18, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  width: 100%;
  background: var(--bg-panel);
  border: 2px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.lightbox-dialog img {
  width: 100%;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin: 10px 4px 2px;
  font-size: 14.5px;
  color: var(--text-muted);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  background: var(--bg-deep);
  color: var(--text-main);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--bg-panel-alt);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 980px) {
  .hero-inner,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid,
  .eras-grid,
  .steps-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .stage-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .pip-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}
