  :root {
    --bg: #12172a;
    --bg-soft: rgba(28, 34, 58, 0.82);
    --card: rgba(255,255,255,0.085);
    --card-border: rgba(255,255,255,0.16);
    --text: #f4f7fd;
    --muted: #c2cadd;
    --accent: #7c8cff;
    --accent-2: #f5b352;
    --green: #4ade80;
    --rose: #fb7185;
    --radius: 20px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  ::selection { background: rgba(124,140,255,.35); }

  /* ambient glow */
  .glow {
    position: fixed; pointer-events: none; z-index: 0;
    width: 60vw; height: 60vw; border-radius: 50%;
    filter: blur(120px); opacity: .16;
  }
  .glow-1 { top: -20vw; right: -15vw; background: #5b6cff; }
  .glow-2 { bottom: -25vw; left: -18vw; background: #b45309; opacity: .12; }

  main, header, footer { position: relative; z-index: 1; }
  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  /* nav */
  nav {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: rgba(18,23,42,0.78);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .logo { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
  .logo span { color: var(--accent-2); }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    color: var(--muted); text-decoration: none; font-size: .86rem; font-weight: 500;
    padding: 8px 14px; border-radius: 999px; transition: all .2s;
  }
  .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
  @media (max-width: 760px) { .nav-links { display: none; } }

  /* hero */
  .hero { padding: 110px 0 80px; text-align: center; }
  @property --spin-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  @keyframes borderSpin { to { --spin-angle: 360deg; } }
  @keyframes sheen { 0%, 55% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(130%) skewX(-18deg); } }
  @keyframes twinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.35) rotate(180deg); opacity: .75; }
  }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
  @keyframes gradShift { to { background-position: 200% center; } }
  .eyebrow {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent-2); background: rgba(245,179,82,.08);
    border: 1px solid rgba(245,179,82,.14);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 28px;
    box-shadow: 0 0 24px rgba(245,179,82,.12);
    animation: heroIn .8s ease both, floaty 5s 1s ease-in-out infinite;
  }
  .eyebrow::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; z-index: -1;
    background: conic-gradient(from var(--spin-angle),
      transparent 0%, rgba(245,179,82,.95) 10%, rgba(199,179,255,.9) 22%, rgba(124,140,255,.85) 32%, transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    animation: borderSpin 3.2s linear infinite;
  }
  .eyebrow::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
    animation: sheen 3.8s ease-in-out infinite;
  }
  .eyebrow .spark { display: inline-block; animation: twinkle 2.4s ease-in-out infinite; }
  h1 {
    font-family: var(--font-display); font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px;
    animation: heroIn .9s .12s ease both;
  }
  h1 .grad {
    background: linear-gradient(92deg, #8ea0ff 0%, #c7b3ff 35%, #f5b352 65%, #8ea0ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: gradShift 7s linear infinite;
  }
  .hero p { max-width: 640px; margin: 0 auto 40px; color: var(--muted); font-size: 1.13rem; animation: heroIn .9s .28s ease both; }
  .hero .cta-row { animation: heroIn .9s .44s ease both; }
  @media (prefers-reduced-motion: reduce) {
    .eyebrow, .eyebrow::before, .eyebrow::after, .eyebrow .spark, h1, h1 .grad, .hero p, .hero .cta-row { animation: none; }
    h1.kinetic .grad { opacity: 1; }
  }

  /* kinetic typography — words wrapped in .kw by JS (progressive enhancement,
     see the "kinetic heading" script; a plain h1 with no JS just renders flat).
     Note: .grad is deliberately left untouched by the per-word wrapping —
     nesting transformed inline-block spans inside a background-clip:text
     element breaks the gradient-text clip in some engines, so .grad instead
     gets its own plain opacity fade below. */
  h1.kinetic { animation: none; opacity: 1; }
  .kinetic .kw {
    display: inline-block; opacity: 0; filter: blur(6px);
    transform: translateY(.5em) rotateX(-35deg);
    animation: kineticIn .8s cubic-bezier(.22,.8,.3,1) both;
    animation-delay: calc(var(--i, 0) * 45ms + 120ms);
  }
  @keyframes kineticIn { to { opacity: 1; filter: blur(0); transform: none; } }
  @keyframes gradFadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes gradOpsz { 0%, 100% { font-variation-settings: 'opsz' 30; } 50% { font-variation-settings: 'opsz' 144; } }
  h1 .grad { animation: gradShift 7s linear infinite, gradOpsz 6s ease-in-out infinite; }
  h1.kinetic .grad { opacity: 0; animation: gradFadeIn .9s .5s ease both, gradShift 7s linear infinite, gradOpsz 6s ease-in-out infinite; }

  .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .btn {
    position: relative; overflow: hidden; isolation: isolate;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
    text-decoration: none; transition: transform .2s, box-shadow .2s; cursor: pointer; border: none; font-family: inherit;
  }
  .btn::after {
    content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
    mix-blend-mode: overlay; transform: translateX(-120%);
    transition: opacity .35s, transform .7s cubic-bezier(.22,.8,.3,1);
  }
  .btn:hover::after { opacity: 1; transform: translateX(120%); }
  .btn-primary {
    background: linear-gradient(92deg, #6a7dff, #8f6fff); color: #fff;
    box-shadow: 0 8px 30px rgba(106,125,255,.35);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(106,125,255,.5); }
  .btn-ghost {
    background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--card-border);
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  }
  .btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

  /* sections */
  section { padding: 90px 0; }
  .section-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
  .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
  h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 16px; }
  .section-head p { color: var(--muted); font-size: 1.05rem; }

  /* religion overview cards */
  .cards-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .rcard {
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 28px 22px; transition: transform .25s, border-color .25s, background .25s;
  }
  .rcard:hover { transform: translateY(-6px); border-color: rgba(124,140,255,.4); background: rgba(255,255,255,.07); }
  .rcard .emoji { font-size: 2rem; margin-bottom: 14px; display: block; }
  .rcard h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 6px; }
  .rcard .tagline { font-size: .82rem; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
  .rcard p { font-size: .87rem; color: var(--muted); }

  /* comparison matrix */
  .toggles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
  .toggle {
    padding: 10px 20px; border-radius: 999px; border: 1px solid var(--card-border);
    background: rgba(255,255,255,.04); color: var(--muted); font-weight: 600; font-size: .88rem;
    cursor: pointer; transition: all .2s; font-family: inherit;
  }
  .toggle.active { background: linear-gradient(92deg, rgba(106,125,255,.25), rgba(143,111,255,.25)); border-color: rgba(124,140,255,.6); color: var(--text); }
  .toggle:hover { border-color: rgba(124,140,255,.5); }

  .matrix-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--card-border); background: var(--card); }
  table.matrix { width: 100%; border-collapse: collapse; min-width: 640px; }
  .matrix th, .matrix td { padding: 18px 20px; text-align: left; vertical-align: top; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .matrix thead th { position: sticky; top: 0; background: #141a2e; font-weight: 700; font-size: .92rem; z-index: 2; }
  .matrix tbody th { font-weight: 700; color: var(--accent-2); white-space: nowrap; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
  .matrix td { color: #c6cddd; }
  .matrix tbody tr:hover td { background: rgba(255,255,255,.025); }
  .matrix tr:last-child th, .matrix tr:last-child td { border-bottom: none; }
  .col-hidden { display: none; }

  /* deep dive tabs */
  .tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
  .tab {
    padding: 12px 22px; border-radius: 14px; border: 1px solid var(--card-border);
    background: rgba(255,255,255,.04); color: var(--muted); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: all .2s; font-family: inherit;
  }
  .tab.active { background: linear-gradient(92deg, #6a7dff, #8f6fff); color: #fff; border-color: transparent; box-shadow: 0 6px 24px rgba(106,125,255,.35); }

  .duel { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 820px) { .duel { grid-template-columns: 1fr; } }
  .duel-card {
    border-radius: var(--radius); padding: 32px; border: 1px solid var(--card-border);
    background: var(--card); position: relative; overflow: hidden;
  }
  .duel-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  }
  .duel-card.christian::before { background: linear-gradient(90deg, #6a7dff, #a78bfa); }
  .duel-card.islam::before { background: linear-gradient(90deg, #34d399, #14b8a6); }
  .duel-card.atheist::before { background: linear-gradient(90deg, #94a3b8, #fb7185); }
  .duel-card.atheist .faith-label { color: #cbd5e1; }
  .duel-card.lds::before { background: linear-gradient(90deg, #f5b352, #fb7185); }
  .duel-card.lds .faith-label { color: #f8c880; }
  .duel-card.jw::before { background: linear-gradient(90deg, #60a5fa, #818cf8); }
  .duel-card.jw .faith-label { color: #93c5fd; }
  .duel-card.rc::before { background: linear-gradient(90deg, #fbbf24, #ef4444); }
  .duel-card.rc .faith-label { color: #fcd34d; }
  .duel-card .faith-label { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
  .duel-card.christian .faith-label { color: #a5b4ff; }
  .duel-card.islam .faith-label { color: #5eead4; }
  .duel-card h4 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 14px; font-weight: 700; }
  .duel-card p { color: #c2c9da; font-size: .93rem; margin-bottom: 12px; }
  .duel-card p:last-child { margin-bottom: 0; }
  .cite {
    display: inline-block; font-size: .76rem; color: var(--muted); background: rgba(255,255,255,.05);
    border: 1px solid var(--card-border); border-radius: 8px; padding: 2px 10px; margin: 2px 4px 2px 0;
  }
  .tab-panel { display: none; animation: fadeUp .4s ease; }
  .tab-panel.active { display: block; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* key contrast strip */
  .contrast-strip {
    margin-top: 26px; border-radius: var(--radius); padding: 24px 30px;
    background: linear-gradient(92deg, rgba(245,179,82,.08), rgba(124,140,255,.08));
    border: 1px solid rgba(245,179,82,.25);
  }
  .contrast-strip strong { color: var(--accent-2); }
  .contrast-strip p { color: #d4d9e6; font-size: .95rem; }

  /* jesus diff accordion */
  .accordion { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
  .acc-item { border: 1px solid var(--card-border); border-radius: 16px; background: var(--card); overflow: hidden; transition: border-color .2s; }
  .acc-item[open] { border-color: rgba(124,140,255,.45); }
  .acc-item summary {
    padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: .98rem;
    display: flex; align-items: center; justify-content: space-between; list-style: none; gap: 12px;
  }
  .acc-item summary::-webkit-details-marker { display: none; }
  .acc-item summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); transition: transform .25s; flex-shrink: 0; }
  .acc-item[open] summary::after { transform: rotate(45deg); }
  .acc-body { padding: 0 24px 22px; }
  .acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 640px) { .acc-grid { grid-template-columns: 1fr; } }
  .acc-cell { border-radius: 12px; padding: 16px 18px; font-size: .88rem; color: #c6cddd; }
  .acc-cell .lbl { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
  .acc-cell.q { background: rgba(20,184,166,.08); border: 1px solid rgba(20,184,166,.22); }
  .acc-cell.q .lbl { color: #5eead4; }
  .acc-cell.b { background: rgba(124,140,255,.08); border: 1px solid rgba(124,140,255,.25); }
  .acc-cell.b .lbl { color: #a5b4ff; }

  /* evidence */
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-bottom: 40px; }
  .fact {
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 26px 22px; position: relative;
  }
  .fact .num {
    font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
    background: linear-gradient(180deg, #8ea0ff, #6a7dff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    display: block; margin-bottom: 10px;
  }
  .fact h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
  .fact p { font-size: .85rem; color: var(--muted); }

  .q5 { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
  .q5-item {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px;
  }
  .q5-item .qn {
    flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(245,179,82,.2), rgba(245,179,82,.08));
    border: 1px solid rgba(245,179,82,.3); color: var(--accent-2); font-weight: 800; font-size: .95rem;
  }
  .q5-item h3 { font-size: 1rem; margin-bottom: 4px; }
  .q5-item p { font-size: .88rem; color: var(--muted); }

  /* ask & answer */
  .qa-card {
    background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
    overflow: hidden; transition: border-color .2s;
  }
  .qa-card[open] { border-color: rgba(245,179,82,.45); }
  .qa-card summary {
    padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: .98rem;
    display: flex; align-items: center; gap: 16px; list-style: none;
  }
  .qa-card summary::-webkit-details-marker { display: none; }
  .qa-card summary .qn {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, rgba(245,179,82,.2), rgba(245,179,82,.08));
    border: 1px solid rgba(245,179,82,.3); color: var(--accent-2); font-weight: 800; font-size: .9rem;
  }
  .qa-card summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; color: var(--accent-2); transition: transform .25s; flex-shrink: 0; }
  .qa-card[open] summary::after { transform: rotate(45deg); }
  .qa-body { padding: 0 24px 24px 76px; }
  @media (max-width: 640px) { .qa-body { padding-left: 24px; } }
  .qa-body p { font-size: .9rem; color: #c6cddd; margin-bottom: 12px; }
  .qa-body .why {
    border-left: 3px solid rgba(245,179,82,.5); padding: 10px 16px; border-radius: 0 10px 10px 0;
    background: rgba(245,179,82,.06); font-size: .87rem; color: #d4d9e6; margin-top: 6px;
  }
  .qa-body .why strong { color: var(--accent-2); }

  .obj-label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 8px; }
  .obj-cell { border-radius: 12px; padding: 16px 18px; font-size: .89rem; color: #c6cddd; margin-bottom: 12px; }
  .obj-cell.ask { background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.22); }
  .obj-cell.ask .obj-label { color: var(--rose); }
  .obj-cell.answer { background: rgba(74,222,128,.06); border: 1px solid rgba(74,222,128,.2); }
  .obj-cell.answer .obj-label { color: var(--green); }
  .obj-cell p { margin-bottom: 10px; }
  .obj-cell p:last-child { margin-bottom: 0; }

  /* sources */
  .sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
  .src {
    display: block; text-decoration: none; color: var(--text);
    background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px;
    transition: transform .2s, border-color .2s;
  }
  .src:hover { transform: translateY(-4px); border-color: rgba(245,179,82,.5); }
  .src .site { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 8px; }
  .src h3 { font-size: .98rem; font-weight: 600; margin-bottom: 6px; }
  .src p { font-size: .84rem; color: var(--muted); }

  /* note + footer */
  .note {
    max-width: 860px; margin: 0 auto; border-radius: var(--radius); padding: 28px 32px;
    background: rgba(124,140,255,.06); border: 1px solid rgba(124,140,255,.22);
    color: #c6cddd; font-size: .92rem;
  }
  .note strong { color: var(--text); }
  footer { border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0; text-align: center; color: var(--muted); font-size: .85rem; }

  /* reveal on scroll — "pop up along the trail" */
  .reveal { opacity: 0; transform: translateY(34px) scale(.94); transition: opacity .6s ease, transform .7s cubic-bezier(.22,1.28,.36,1); }
  .reveal.in { opacity: 1; transform: none; }
  /* staggered cascade so tiles pop one after another */
  .reveal:nth-child(1) { transition-delay: .02s; }
  .reveal:nth-child(2) { transition-delay: .09s; }
  .reveal:nth-child(3) { transition-delay: .16s; }
  .reveal:nth-child(4) { transition-delay: .23s; }
  .reveal:nth-child(5) { transition-delay: .30s; }
  .reveal:nth-child(6) { transition-delay: .37s; }
  .reveal:nth-child(7) { transition-delay: .44s; }
  .reveal:nth-child(8) { transition-delay: .51s; }

  /* back to top */
  #toTop {
    position: fixed; bottom: 26px; right: 26px; z-index: 60; width: 46px; height: 46px;
    border-radius: 50%; border: 1px solid var(--card-border); background: rgba(20,26,46,.9);
    color: var(--text); font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .3s;
    backdrop-filter: blur(10px);
  }
  #toTop.show { opacity: 1; pointer-events: auto; }

/* ===== all-religions grid ===== */
#religionGrid .rcard { cursor: pointer; }
.rcard .meta { display: block; font-size: .76rem; color: var(--muted); margin-top: 12px; }

/* ===== religion detail modal ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; padding: 24px;
  background: rgba(6,8,14,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #141a2e; border: 1px solid var(--card-border); border-radius: var(--radius);
  max-width: 680px; width: 100%; max-height: 84vh; overflow: auto; padding: 36px; position: relative;
}
.modal .m-emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.modal h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; }
.modal .m-tagline { color: var(--accent-2); font-weight: 600; font-size: .9rem; margin-bottom: 22px; }
.modal dl { display: grid; gap: 16px; }
.modal dt { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.modal dd { font-size: .92rem; color: #c6cddd; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.06); color: var(--text);
  font-size: 1rem; cursor: pointer; font-family: inherit;
}
.modal-close:hover { background: rgba(255,255,255,.12); }

/* ===== comparison lab ===== */
.compare-hint { text-align: center; color: var(--muted); font-size: .88rem; margin: -16px 0 26px; transition: color .2s; }
.compare-hint.warn { color: var(--accent-2); font-weight: 600; }

/* ===== contact form ===== */
.contact-form { max-width: 720px; margin: 0 auto; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label { display: grid; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,.05); border: 1px solid var(--card-border); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: rgba(124,140,255,.6); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(154,163,184,.55); }
.form-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form-actions .btn { border: none; }
.form-status { font-size: .9rem; color: var(--green); min-height: 1.3em; }
.form-status.error { color: var(--rose); }

/* ===== quote cards (philosophy page) ===== */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.quote-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 16px; padding: 22px 24px; }
.quote-card .who { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.quote-card blockquote { font-size: .92rem; color: #c6cddd; font-style: italic; }
.quote-card .ref { display: block; margin-top: 10px; font-size: .78rem; color: var(--muted); font-style: normal; }

/* ===================================================== */
/* =============== JOURNEY REDESIGN ==================== */
/* ===================================================== */

/* scroll progress bar — the trail you've walked */
#progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 100; background: linear-gradient(90deg, #6a7dff, #c7b3ff, #f5b352); box-shadow: 0 0 12px rgba(245,179,82,.5); }
#trailHiker {
  position: fixed; top: -5px; left: 0; z-index: 101; font-size: 1.15rem; line-height: 1;
  transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.55)); transition: left .12s linear;
}
@media (prefers-reduced-motion: reduce) { #trailHiker { transition: none; } }

/* view router */
.view { display: none; }
.view.active { display: block; animation: viewIn .6s cubic-bezier(.22,.8,.3,1) both; }
@keyframes viewIn { from { opacity: 0; transform: perspective(1400px) rotateY(6deg) translateX(30px); } to { opacity: 1; transform: none; } }
.view.active { transform-origin: left center; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.14) translateY(-2%); } }
@keyframes earthBreathe {
  0%, 100% { transform: scale(.96); opacity: .33; }   /* zoomed out — the whole globe, far away */
  50%      { transform: scale(1.26); opacity: .47; }  /* zoomed in — drifting toward the viewer */
}
@keyframes heroScrollDrift { from { transform: scale(1); filter: brightness(1) saturate(1); } to { transform: scale(1.16); filter: brightness(.5) saturate(1.2); } }

/* immersive home hero — layered so pointer-tilt (JS, .hero-stage), scroll-linked
   zoom (native CSS scroll-timeline, .hero-scroll) and the idle breathing loop
   (.hero-bg) each own their own transform and compose together automatically. */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 1400px; }
.hero-stage {
  position: absolute; inset: 0;
  transform: rotateX(var(--tiltY, 0deg)) rotateY(var(--tiltX, 0deg));
  transition: transform .5s cubic-bezier(.22,.8,.3,1);
  will-change: transform;
}
.hero-scroll {
  position: absolute; inset: 0;
  animation: heroScrollDrift linear both;
  animation-timeline: --heroTimeline;
  animation-range: cover 0% cover 100%;
}
@supports (animation-timeline: view()) {
  .hero { view-timeline-name: --heroTimeline; view-timeline-axis: block; }
}
.hero-bg { position: absolute; inset: -8%; background: url('img/earth.jpg') center/cover no-repeat; opacity: .38; animation: earthBreathe 26s ease-in-out infinite; will-change: transform, opacity; }
.hero-veil { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(10,12,20,.3) 0%, rgba(10,12,20,.78) 55%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 2; }

/* worldview image tiles — grow on hover, easy to read */
#religionGrid { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); }
.tile {
  position: relative; height: 350px; border-radius: 22px; overflow: hidden;
  display: flex; align-items: flex-end; text-align: left; text-decoration: none; color: var(--text);
  border: 1px solid var(--card-border); background: var(--card); padding: 0; cursor: pointer;
  font-family: inherit;
  transition: transform .45s cubic-bezier(.22,.8,.3,1), box-shadow .45s, border-color .3s;
  will-change: transform;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.72); transition: transform .9s cubic-bezier(.22,.8,.3,1), filter .5s; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.05) 20%, rgba(10,12,20,.95) 90%); }
.tile-body { position: relative; z-index: 2; padding: 24px 22px; width: 100%; transform: translateY(66px); transition: transform .45s cubic-bezier(.22,.8,.3,1); }
.tile .t-tag { color: var(--accent-2); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.tile h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; line-height: 1.15; transition: font-size .35s; }
.tile .t-emoji { font-size: 1.15rem; margin-right: 2px; }
.tile p { color: #e2e6f1; font-size: .95rem; line-height: 1.55; opacity: 0; margin-top: 10px; transition: opacity .4s .1s; }
.tile .meta { display: block; font-size: .78rem; color: #aab3c8; margin-top: 10px; opacity: 0; transition: opacity .4s .14s; }
.tile .t-go { display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 700; color: #a5b4ff; opacity: 0; transition: opacity .4s .18s; }
.tile:hover, .tile:focus-visible {
  transform: scale(1.07); z-index: 6;
  box-shadow: 0 28px 80px rgba(0,0,0,.6); border-color: rgba(124,140,255,.6); outline: none;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.12); filter: saturate(1.05) brightness(.92); }
.tile:hover .tile-body, .tile:focus-visible .tile-body { transform: translateY(0); }
.tile:hover p, .tile:hover .meta, .tile:hover .t-go,
.tile:focus-visible p, .tile:focus-visible .meta, .tile:focus-visible .t-go { opacity: 1; }
.tile:hover h3, .tile:focus-visible h3 { font-size: 1.65rem; }

/* modal image header */
.modal .m-hero { margin: -34px -34px 22px; height: 200px; overflow: hidden; border-radius: 20px 20px 0 0; }
.modal .m-hero img { width: 100%; height: 100%; object-fit: cover; }

/* journey chapter cards (home) */
.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.chapter {
  position: relative; overflow: hidden; border-radius: 18px; padding: 30px 26px;
  border: 1px solid var(--card-border); background: var(--card);
  text-decoration: none; color: var(--text); display: block;
  transition: transform .35s cubic-bezier(.22,.8,.3,1), border-color .3s, box-shadow .35s;
}
.chapter::before { content: ''; position: absolute; inset: 0; background-image: var(--cimg); background-size: cover; background-position: center; opacity: .15; transition: opacity .45s, transform .7s; }
.chapter::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.45), rgba(10,12,20,.87)); }
.chapter > * { position: relative; z-index: 2; }
.chapter:hover { transform: translateY(-7px) scale(1.025); border-color: rgba(245,179,82,.55); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.chapter:hover::before { opacity: .34; transform: scale(1.07); }
.chapter .ch-no { font-family: var(--font-display); font-size: .8rem; font-weight: 700; color: var(--accent-2); letter-spacing: .18em; }
.chapter h3 { font-size: 1.16rem; font-weight: 700; margin: 10px 0 6px; }
.chapter p { font-size: .86rem; color: #bfc7d8; }
.chapter .ch-arrow { display: inline-block; margin-top: 14px; color: #a5b4ff; font-weight: 700; font-size: .85rem; transition: transform .3s; }
.chapter:hover .ch-arrow { transform: translateX(6px); }

/* topic banners */
.topic-banner { position: relative; height: clamp(240px, 38vh, 390px); overflow: hidden; display: flex; align-items: flex-end; }
.topic-banner .tb-img { position: absolute; inset: -10%; background-size: cover; background-position: center; animation: kenburns 22s ease-in-out infinite alternate; }
.topic-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,20,.5), rgba(10,12,20,.28) 45%, var(--bg) 100%); }
.tb-content { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px 34px; }
.tb-no { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .2em; color: var(--accent-2); text-transform: uppercase; display: block; margin-bottom: 8px; }
.tb-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  color: #d5dae8; text-decoration: none; font-size: .84rem; font-weight: 600;
  background: rgba(10,12,20,.55); border: 1px solid rgba(255,255,255,.2);
  padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .2s, transform .2s;
}
.crumb:hover { background: rgba(255,255,255,.14); transform: translateX(-4px); }
.view .topic-banner + .wrap { padding-top: 26px; }
.view section { padding: 60px 0 90px; }

/* journey footer nav (next chapter) */
.next-chapter { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 1180px; margin: 34px auto 0; padding: 0 24px 0; flex-wrap: wrap; }
.next-chapter .nc-progress { font-family: var(--font-display); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.next-chapter .nc-link {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border); border-radius: 16px;
  padding: 14px 22px; font-weight: 700; font-size: 1rem; transition: border-color .25s, transform .25s;
}
.next-chapter .nc-link:hover { border-color: rgba(245,179,82,.5); transform: translateX(4px); }
.next-chapter .nc-link .nc-sub { font-size: .78rem; font-weight: 500; color: var(--muted); }
@media (max-width: 640px) { .next-chapter { justify-content: flex-start; } }

/* chapter strip for standalone pages (philosophy.html, happiness.html) */
.chapter-strip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 26px 24px 0; }
.chapter-strip .tb-no { margin-bottom: 0; }
.chapter-strip .cs-title { color: var(--muted); font-size: .92rem; }

/* closing gospel invitation (home page) */
.gospel-cta { padding: 40px 0 100px; }
.gospel-card {
  position: relative; overflow: hidden; text-align: center; max-width: 780px; margin: 0 auto;
  padding: 56px 40px; border-radius: 26px; border: 1px solid rgba(245,179,82,.28);
  background: radial-gradient(ellipse at 50% 0%, rgba(124,140,255,.14) 0%, rgba(255,255,255,.05) 55%, rgba(255,255,255,.04) 100%);
}
.gospel-card::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(245,179,82,.16), transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(124,140,255,.16), transparent 45%);
}
.gospel-card > * { position: relative; z-index: 1; }
.gospel-card .kicker { justify-content: center; }
.gospel-card h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 18px; }
.gospel-card p { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto 30px; }
.gospel-card .cta-row { margin-bottom: 18px; }
.gospel-note { font-size: .85rem; color: #9aa3b8; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .topic-banner .tb-img, .hero-scroll { animation: none; }
  .hero-stage { transition: none; transform: none; }
  .view.active { animation: none; }
  .tile, .tile img, .tile-body, .chapter { transition: none; }
  .kinetic .kw { animation: none; opacity: 1; transform: none; filter: none; }
}
@media (max-width: 640px) {
  .tile { height: 310px; }
  .tile-body { transform: translateY(0); }
  .tile p, .tile .meta, .tile .t-go { opacity: 1; }
  .hero { min-height: 74vh; }
}

/* view-section spacing + active nav link */
section.view { padding-top: 0; }
.nav-links a.nav-active { color: var(--text); background: rgba(255,255,255,.08); }

/* ===================================================== */
/* ============= ADVENTURE TRAIL WALK ================== */
/* ===================================================== */

/* the numbered lists become "stops" strung along a walking trail */
.q5 { position: relative; }
.q5-item { position: relative; z-index: 1; transition: transform .45s cubic-bezier(.22,1.2,.36,1), border-color .3s, box-shadow .35s; }
/* dashed path segment climbing into each stop from the one before */
.q5-item::before {
  content: ''; position: absolute; left: 42px; top: -16px; width: 2px; height: 18px; z-index: 0;
  background: repeating-linear-gradient(180deg, rgba(245,179,82,.65) 0 5px, transparent 5px 11px);
}
.q5-item:first-child::before { display: none; }
/* the number badge as a glowing trail marker sitting on the path */
.q5-item .qn { box-shadow: 0 0 0 4px var(--bg), 0 0 18px rgba(245,179,82,.4); }
.q5-item:hover { transform: translateX(4px); border-color: rgba(245,179,82,.5); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
@media (max-width: 640px) { .q5-item::before { left: 39px; } }

/* winding approach — stops swing in from alternating sides, like a switchback trail */
.q5 .q5-item.reveal:nth-child(odd)  { transform: translateX(-48px) translateY(14px) scale(.95); }
.q5 .q5-item.reveal:nth-child(even) { transform: translateX(48px)  translateY(14px) scale(.95); }
.q5 .q5-item.reveal.in { transform: none; }

/* fact / quote / source tiles get a touch more spring + hover lift */
.fact, .quote-card { transition: transform .4s cubic-bezier(.22,1.2,.36,1), border-color .3s, box-shadow .35s; }
.fact:hover, .quote-card:hover { transform: translateY(-6px); border-color: rgba(124,140,255,.45); box-shadow: 0 16px 44px rgba(0,0,0,.4); }

/* section headings drift up into view */
.section-head.reveal { transform: translateY(30px) scale(.97); }
.section-head.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .section-head.reveal,
  .q5 .q5-item.reveal:nth-child(odd), .q5 .q5-item.reveal:nth-child(even) {
    transform: none !important; opacity: 1 !important; transition: none !important;
  }
  .q5-item:hover, .fact:hover, .quote-card:hover { transform: none; }
}

/* ===================================================== */
/* ============ ATMOSPHERE — A NIGHT SKY =============== */
/* ===================================================== */

/* drifting starfield behind everything — evokes the big questions */
body::before {
  content: ''; position: fixed; inset: -10% 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 24%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 68% 14%, rgba(199,179,255,.85), transparent 60%),
    radial-gradient(1.2px 1.2px at 42% 62%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 84% 54%, rgba(142,160,255,.85), transparent 60%),
    radial-gradient(1px 1px at 12% 82%, rgba(255,255,255,.75), transparent 60%),
    radial-gradient(1.5px 1.5px at 58% 40%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(1px 1px at 90% 88%, rgba(245,179,82,.75), transparent 60%),
    radial-gradient(1px 1px at 32% 12%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.1px 1.1px at 76% 76%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 6% 46%, rgba(199,179,255,.7), transparent 60%);
  background-repeat: repeat; background-size: 340px 340px;
  opacity: .55;
  animation: starDrift 140s linear infinite, twinkle-field 7s ease-in-out infinite alternate;
}
/* slow-moving colour nebula for depth */
body::after {
  content: ''; position: fixed; inset: -25%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 42% at 22% 26%, rgba(124,140,255,.11), transparent 70%),
    radial-gradient(34% 40% at 82% 30%, rgba(245,179,82,.075), transparent 70%),
    radial-gradient(42% 46% at 62% 84%, rgba(167,139,250,.10), transparent 72%);
  filter: blur(28px);
  animation: nebula-shift 46s ease-in-out infinite alternate;
}
@keyframes starDrift { from { background-position: 0 0; } to { background-position: 340px -680px; } }
@keyframes twinkle-field { 0% { opacity: .38; } 100% { opacity: .62; } }
@keyframes nebula-shift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2.5%, -3%, 0) scale(1.09); }
}

/* keep readable strips genuinely dark where dense text lives */
.matrix-scroll, .modal { position: relative; }

/* soft top-lit glass sheen on the content tiles you read + linger on */
.rcard, .fact, .q5-item, .quote-card, .src {
  background-color: rgba(255,255,255,.05);
  background-image: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,0) 58%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.14);
}
.rcard:hover, .fact:hover, .quote-card:hover, .src:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.11), 0 20px 48px rgba(0,0,0,.42), 0 0 34px rgba(124,140,255,.16);
}

/* headings catch a faint starlight */
h1, h2 { text-shadow: 0 2px 30px rgba(124,140,255,.18); }

/* kickers get flanking rules, like a compass marking a waypoint */
.section-head .kicker { display: inline-flex; align-items: center; gap: 12px; }
.section-head .kicker::before, .section-head .kicker::after {
  content: ''; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section-head .kicker::after { background: linear-gradient(90deg, var(--accent), transparent); }

/* ===== reflection — a place to pause and ponder ===== */
.reflection {
  max-width: 780px; margin: 0 auto; text-align: center; position: relative;
  padding: 40px 28px;
}
.reflection::before {
  content: '❝'; display: block; font-family: var(--font-display);
  font-size: 2.6rem; line-height: 1; color: var(--accent-2); opacity: .55; margin-bottom: 8px;
}
.reflection p {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem); line-height: 1.42; color: var(--text);
  letter-spacing: -.01em;
}
.reflection .r-sub {
  font-family: var(--font-body); font-style: normal; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 20px;
}
.reflection::after {
  content: ''; display: block; width: 60px; height: 2px; margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
}

/* ===================================================== */
/* ============= LANGUAGE CHOOSER ====================== */
/* ===================================================== */
.lang-choose {
  display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center;
  margin-top: 30px; padding: 7px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 40px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.09);
}
.lang-choose .lang-label {
  color: var(--muted); font-size: .84rem; font-weight: 500; margin: 0 8px 0 10px;
}
.lang-pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.055);
  color: var(--text); font-size: .92rem; font-weight: 600;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.lang-pill::before {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  mix-blend-mode: overlay; transition: opacity .3s;
}
.lang-pill:hover::before { opacity: 1; }
.lang-pill:hover {
  border-color: rgba(124,140,255,.6); background: rgba(255,255,255,.1);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.lang-pill.active {
  background: linear-gradient(92deg, rgba(106,125,255,.32), rgba(143,111,255,.32));
  border-color: rgba(124,140,255,.65); box-shadow: 0 0 22px rgba(124,140,255,.2);
}

/* ===================================================== */
/* ========== EXPANSION: 12 NEW FEATURES =============== */
/* ===================================================== */

/* --- chapter-opening verse on topic banners --- */
.tb-verse {
  display: block; margin-top: 10px; max-width: 640px;
  font-family: var(--font-display); font-style: italic; font-size: clamp(.95rem, 1.8vw, 1.12rem);
  color: #dfe4f2; text-shadow: 0 2px 14px rgba(0,0,0,.6); line-height: 1.5;
  animation: heroIn .9s .25s ease both;
}
.tb-verse .vref { font-family: var(--font-body); font-style: normal; font-size: .74rem; color: var(--accent-2); margin-left: 8px; letter-spacing: .06em; }

/* --- constellation of faiths --- */
.constellation { position: relative; max-width: 940px; margin: 0 auto 10px; padding: 0 24px; }
.constellation svg { width: 100%; height: auto; display: block; overflow: visible; }
.constellation .c-line { stroke: rgba(124,140,255,.35); stroke-width: 1; fill: none;
  stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 3.2s ease .3s; }
.constellation.in .c-line { stroke-dashoffset: 0; }
.constellation .c-star { font-size: 15px; opacity: 0; transition: opacity .8s ease; cursor: default; }
.constellation.in .c-star { opacity: .92; }
.constellation .c-star:hover { opacity: 1; }
.constellation .c-dot { fill: rgba(199,179,255,.9); }
.constellation .c-cap { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 2px; letter-spacing: .04em; }

/* --- timeline of traditions --- */
.timeline-scroll { overflow-x: auto; padding-bottom: 14px; border-radius: var(--radius);
  border: 1px solid var(--card-border); background: var(--card); }
.timeline { position: relative; min-width: 1400px; height: 280px; }
.timeline .tl-axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: linear-gradient(90deg, rgba(245,179,82,.55), rgba(124,140,255,.55)); }
.timeline .tl-tick { position: absolute; top: 50%; transform: translate(-50%, -50%);
  color: var(--muted); font-size: .7rem; background: var(--bg); padding: 2px 8px;
  border: 1px solid var(--card-border); border-radius: 999px; white-space: nowrap; }
.timeline .tl-item { position: absolute; transform: translateX(-50%); width: 148px; text-align: center; cursor: pointer; }
.timeline .tl-item.up { bottom: calc(50% + 18px); }
.timeline .tl-item.down { top: calc(50% + 18px); }
.timeline .tl-item::before { content: ''; position: absolute; left: 50%; width: 1px; height: 16px;
  background: rgba(255,255,255,.25); }
.timeline .tl-item.up::before { bottom: -17px; }
.timeline .tl-item.down::before { top: -17px; }
.timeline .tl-emoji { font-size: 1.3rem; display: block; }
.timeline .tl-name { font-size: .78rem; font-weight: 700; line-height: 1.25; }
.timeline .tl-date { font-size: .68rem; color: var(--muted); }
.timeline .tl-item:hover .tl-name { color: #a5b4ff; }

/* --- glossary --- */
.gloss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.gloss { background: var(--card); border: 1px solid var(--card-border); border-radius: 14px; padding: 16px 18px; }
.gloss .g-term { font-weight: 800; font-size: .95rem; color: #a5b4ff; }
.gloss .g-trad { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); margin-left: 6px; }
.gloss p { font-size: .84rem; color: var(--muted); margin-top: 5px; }

/* --- guided quiz --- */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-q { background: var(--card); border: 1px solid var(--card-border); border-radius: 18px; padding: 24px 26px; margin-bottom: 14px; }
.quiz-q h3 { font-size: 1.02rem; margin-bottom: 14px; }
.quiz-q h3 .qk { color: var(--accent-2); margin-right: 8px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,.04); color: var(--text); font-size: .9rem; cursor: pointer;
  font-family: inherit; transition: border-color .2s, background .2s; }
.quiz-opt:hover { border-color: rgba(124,140,255,.55); }
.quiz-opt.sel { background: linear-gradient(92deg, rgba(106,125,255,.28), rgba(143,111,255,.28)); border-color: rgba(124,140,255,.7); }
.quiz-result { display: none; margin-top: 22px; border-radius: var(--radius); padding: 26px 30px;
  background: linear-gradient(92deg, rgba(245,179,82,.1), rgba(124,140,255,.1)); border: 1px solid rgba(245,179,82,.3); }
.quiz-result.show { display: block; animation: fadeUp .5s ease; }
.quiz-result h3 { margin-bottom: 10px; }
.quiz-result .qr-row { margin: 10px 0; font-size: .93rem; color: #d4d9e6; }
.quiz-result .qr-row strong { color: var(--text); }

/* --- share buttons --- */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--card-border); background: rgba(255,255,255,.05); color: var(--text);
  font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s; }
.share-btn:hover { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.08); transform: translateY(-2px); }

/* --- reading progress: continue pill + visited chapters --- */
.continue-pill { display: none; margin: 18px auto 0; }
.continue-pill.show { display: inline-flex; animation: heroIn .7s ease both; }
.chapter .ch-done { display: none; position: absolute; top: 14px; right: 16px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; background: rgba(74,222,128,.18);
  border: 1px solid rgba(74,222,128,.5); color: #4ade80; font-size: .8rem;
  align-items: center; justify-content: center; }
.chapter.visited .ch-done { display: inline-flex; }

/* --- prayer expandable on gospel card --- */
.gospel-card details { margin-top: 18px; text-align: left; max-width: 560px; margin-left: auto; margin-right: auto;
  border: 1px solid rgba(245,179,82,.3); border-radius: 14px; background: rgba(245,179,82,.06); }
.gospel-card summary { padding: 14px 20px; cursor: pointer; font-weight: 600; font-size: .93rem;
  color: var(--accent-2); list-style: none; }
.gospel-card summary::-webkit-details-marker { display: none; }
.gospel-card details p { padding: 0 20px 16px; font-size: .92rem; color: #e2e6f1; font-style: italic; line-height: 1.7; }
.gospel-card details .p-note { font-style: normal; font-size: .82rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .constellation .c-line, .constellation .c-star { transition: none; }
  .tb-verse { animation: none; }
}

.timeline .tl-item { background: none; border: none; font-family: inherit; color: var(--text); }
