  :root{
      --bg:#0b0e13;
      --card:#0d1119;          /* less blue, more neutral */
      --text:#eaf0f6;
      --muted:#82a2c6;
      --primary:#69b1ff;
      --border:#223047;
      --accent:#22d3ee;
      --shadow:0 10px 25px rgba(0,0,0,.35)
    }
    [data-theme="light"]{
      --bg:#f6f8fb;
      --card:#fff;
      --text:#0b1220;
      --muted:#445065;
      --primary:#1d4ed8;
      --border:#e3e8ef;
      --accent:#0891b2;
      --shadow:0 8px 20px rgba(2,8,23,.12)
    }
    *{
      box-sizing:border-box
    }
    body{
      margin:0;
      background:var(--bg);
      color:var(--text);
      font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Inter,Roboto,Helvetica,Arial
    }
    .page{
      max-width:1200px;
      margin:0 auto;
      padding:24px
    }
    h1{
      margin:6px 0 20px;
      text-align: center;
    }

    .actions{
      display:flex;
      flex-direction:column;
      gap:10px;
      margin-top:8px;
    }

    .grid{
      display:grid;
      grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
      gap:14px
    }
    .card{
      background:var(--card);
      border:1px solid var(--border);
      border-radius:12px;
      overflow:hidden
    }
    .thumb{
      aspect-ratio:3/2;
      background:#0e1420
    }
    .thumb img{
      width:100%;
      height:100%;
      object-fit:cover;
      display:block
    }
    .thumb--placeholder{
      background:#0e1420
    }
    .title{
      font-weight:600;
      padding:10px 12px 0
    }
    .desc{
      padding:6px 12px 12px;
      color:var(--muted)
    }
    .card .actions{
      padding:10px 12px 12px
    }


    /* Glow animation */
    /* ******************************************************* */
    @keyframes ambientDrift {
      0% {
        transform: translateX(-2%) translateY(-2%) scale(1);
      }
      50% {
        transform: translateX(2%) translateY(1%) scale(1.05);
      }
      100% {
        transform: translateX(-1%) translateY(2%) scale(1.03);
      }
    }

    @keyframes memoryPulse {
      0%   { text-shadow: 0 0 0 rgba(255, 210, 140, 0); }
      50%  { text-shadow: 0 0 12px rgba(255, 210, 140, .14); }
      100% { text-shadow: 0 0 0 rgba(255, 210, 140, 0); }
    }
    .music-line.memory {
      color: #f3e6cf;
      animation: memoryPulse 10s ease-in-out infinite;
    }

.country-name {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  padding-left: 1.25rem;
  margin: 0 0 0.75rem 0;
}
 
.flag {
  font-size: 0.95em;
  line-height: 1;
}

.geology-feature {
  border-color: rgba(212, 182, 136, 0.18);
}

.geology-copy {
  max-width: 860px;
}

.geography-card {
  border-color: rgba(85, 214, 196, 0.18);
}

.card-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;   /* 👈 number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 5.8em;       /* 👈 keeps cards equal even if text is short */
  line-height: 1.45;
}

.story-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8c29a;
  border: 1px solid rgba(216, 194, 154, 0.35);
  background: rgba(216, 194, 154, 0.08);
}

.pathway-card {
  position: relative;
}

.pathway-card.is-locked .reflection-pill,
.pathway-card .reflection-pill[aria-disabled="true"],
.pathway-card .reflection-pill:disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.pathway-card.is-locked {
  opacity: 0.9;
}

.pathway-card.is-locked .reflection-pill {
  opacity: 0.4;
  pointer-events: none;
}
.life-archive-section {
  margin-top: 1.2rem;
}

.life-archive-section .section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.life-archive-section .section-heading {
  margin-bottom: 1.4rem;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(212, 182, 136, 0.18);
  background:
    linear-gradient(180deg, rgba(18, 24, 34, 0.92), rgba(10, 14, 22, 0.94));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.life-archive-section .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(216, 194, 154, 0.92);
}

.life-archive-section .section-heading h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  color: #f4ead7;
}

.life-archive-section .section-heading p {
  margin: 0;
  max-width: 860px;
  line-height: 1.7;
  color: rgba(232, 225, 214, 0.86);
}

.life-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.life-card {
  position: relative;
}

.life-card .pathway-label {
  margin-bottom: 0.7rem;
}

.story-card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d8c29a;
  border: 1px solid rgba(216, 194, 154, 0.34);
  background: rgba(216, 194, 154, 0.08);
}

@media (max-width: 980px) {
  .life-archive-grid {
    grid-template-columns: 1fr;
  }
}

.girlfriend-section .section-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}