/* Credo — marketing & legal site
 * Light/dark via data-theme attribute + system fallback.
 * Fonts: Outfit (display/UI) · PT Serif (quotes/prose)
 */

/* ─── Tokens ─── */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f7f6f3;
  --fg: #0d0c0b;
  --fg-muted: #5a5754;
  --fg-dim: #9c9894;
  --border: #e8e5e0;
  --accent: #3d3530;
  --accent-fg: #ffffff;
  --pill-bg: #f0ede8;
  --pill-fg: #3d3530;
  --card-bg: #faf9f7;
  --card-border: #ede9e4;
  --chat-user-bg: #f0ede8;
  --chat-ai-bg: #0d0c0b;
  --chat-ai-fg: #f5f2ee;
  --radius: 16px;
  --maxw: 1160px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0d0c0b;
  --bg-alt: #141210;
  --fg: #f5f2ee;
  --fg-muted: #a09890;
  --fg-dim: #635e58;
  --border: #252220;
  --accent: #f5f2ee;
  --accent-fg: #0d0c0b;
  --pill-bg: #1e1c1a;
  --pill-fg: #c8bfb6;
  --card-bg: #131110;
  --card-border: #2a2724;
  --chat-user-bg: #1e1c1a;
  --chat-ai-bg: #f5f2ee;
  --chat-ai-fg: #0d0c0b;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c0b;
    --bg-alt: #141210;
    --fg: #f5f2ee;
    --fg-muted: #a09890;
    --fg-dim: #635e58;
    --border: #252220;
    --accent: #f5f2ee;
    --accent-fg: #0d0c0b;
    --pill-bg: #1e1c1a;
    --pill-fg: #c8bfb6;
    --card-bg: #131110;
    --card-border: #2a2724;
    --chat-user-bg: #1e1c1a;
    --chat-ai-bg: #f5f2ee;
    --chat-ai-fg: #0d0c0b;
    color-scheme: dark;
  }
}

/* ─── Reset ─── */

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 400;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--fg-dim);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--fg); }

/* ─── Nav ─── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
[data-theme="dark"] .site-nav {
  background: rgba(13, 12, 11, 0.88);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--fg);
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; }

.nav-icon {
  width: 32px;
  height: 32px;
}

.brand-mark {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url(/assets/brand-mark.svg) center / contain no-repeat;
  mask: url(/assets/brand-mark.svg) center / contain no-repeat;
}

.nav-wordmark {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  flex: 1;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 120ms;
}
.nav-links a:hover { color: var(--fg); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms, color 120ms;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--bg-alt); color: var(--fg); }

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

:root:not([data-theme]) .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* Nav CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 150ms;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.82; text-decoration: none; }

/* ─── Hero ─── */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  padding: 48px 0 48px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  align-content: center;
  gap: 48px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-headline {
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--fg);
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0 0 36px;
  max-width: 460px;
}

.hero-ctas {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Download button — matches Luna's rounded pill with Apple logo */
.cta-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: opacity 150ms, transform 120ms;
  -webkit-tap-highlight-color: transparent;
}
.cta-download:hover { opacity: 0.84; text-decoration: none; }
.cta-download:active { transform: scale(0.98); }
.cta-download svg { flex-shrink: 0; }

.cta-download--large {
  font-size: 17px;
  padding: 18px 34px;
}

.cta-download--outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.cta-download--outline:hover { border-color: var(--fg-muted); opacity: 1; }

.hero-note {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 0;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
}

.phone-mockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.phone-img {
  height: calc(100vh - 68px - 96px);
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 32px 64px rgba(0,0,0,0.12)) drop-shadow(0 8px 24px rgba(0,0,0,0.08));
}

[data-theme="dark"] .phone-img {
  filter: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone-img {
    filter: none;
  }
}

/* ─── Traditions strip ─── */

.traditions {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  overflow: hidden;
}

.traditions-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 28px;
}
.traditions-label::before,
.traditions-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.traditions-track {
  overflow: hidden;
  position: relative;
}

.traditions-track::before,
.traditions-track::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}
.traditions-track::before { left: 0; background: linear-gradient(to right, var(--bg) 30%, transparent); }
.traditions-track::after { right: 0; background: linear-gradient(to left, var(--bg) 30%, transparent); }

.traditions-inner {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: scroll-left 44s linear infinite;
  padding: 6px 0;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.trad-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--pill-fg);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* ─── Features ─── */

.features {
  min-height: 60vh;
  padding: 96px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.features-wrap { width: 100%; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  line-height: 1.15;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin: 0;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 280ms ease;
}
.feature-card:hover {
  transform: scale(1.03);
}

.feature-card--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.feature-card--accent .feature-icon { opacity: 0.7; }
.feature-card--accent p { opacity: 0.8; }

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--fg);
  flex-shrink: 0;
}
.feature-card--accent .feature-icon {
  background: rgba(255,255,255,0.15);
  color: var(--accent-fg);
}

.feature-card h3 {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  margin: 0;
  flex: 1;
}
.feature-card--accent p { color: var(--accent-fg); }

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: auto;
  padding-top: 8px;
}

/* ─── Quote showcase ─── */

.quote-section {
  min-height: 35vh;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}

.quote-wrap {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.quote-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 28px;
}

.quote-block {
  margin: 0;
  padding: 0;
}

.quote-block p {
  font-family: 'PT Serif', Georgia, serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.45;
  color: var(--fg);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.quote-block footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quote-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
}
.quote-sep { color: var(--fg-dim); font-size: 14px; }
.quote-source { font-size: 14px; color: var(--fg-muted); }

.quote-faith {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--card-border);
  margin-left: 4px;
}

.quote-caption {
  font-size: 14px;
  color: var(--fg-dim);
  margin: 28px 0 0;
  line-height: 1.6;
}

/* ─── Mentor section ─── */

.mentor-section {
  min-height: 60vh;
  padding: 96px 32px;
}

.mentor-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mentor-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.mentor-text h2 {
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.mentor-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0 0 28px;
}

.mentor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mentor-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.mentor-list li svg {
  flex-shrink: 0;
  color: var(--fg);
  opacity: 0.6;
}

/* Chat bubbles */
.mentor-chat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  border-radius: 18px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 100%;
}

.chat-user {
  background: var(--chat-user-bg);
  color: var(--fg);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-size: 15px;
}

.chat-ai {
  background: var(--chat-ai-bg);
  color: var(--chat-ai-fg);
  border-bottom-left-radius: 4px;
}

.chat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 6px;
}

.chat-ai em {
  font-style: italic;
}

/* ─── Final CTA ─── */

.cta-section {
  min-height: 50vh;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 80% 60% at 40% 50%, var(--bg-alt) 0%, var(--bg) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.cta-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 32px;
  color: var(--fg);
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 150ms, background 150ms;
}
.cta-pill:hover { border-color: var(--fg-muted); background: var(--pill-bg); text-decoration: none; }
.cta-pill svg { flex-shrink: 0; }

.cta-qr {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.qr-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 8px 24px rgba(0,0,0,0.08);
  transform: rotate(-6deg);
  transition: transform 400ms ease;
  display: inline-block;
  line-height: 0;
}
.qr-card:hover {
  transform: rotate(-2deg);
}
.qr-card img {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 4px;
}

.cta-note {
  font-size: 13px;
  color: var(--fg-dim);
  margin: 16px 0 0 !important;
}

/* ─── Footer ─── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px 52px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}

.footer-icon {
  width: 24px;
  height: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-size: 13px;
  color: var(--fg-dim);
}

/* ─── Long-form (legal pages) ─── */

.site-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-icon { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--fg-muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }

.prose { padding: 56px 0 96px; }
.prose h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.prose .updated { color: var(--fg-dim); font-size: 14px; margin-top: -10px; margin-bottom: 28px; font-family: 'Outfit', sans-serif; }
.prose h2 { font-family: 'PT Serif', Georgia, serif; font-weight: 700; font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.005em; }
.prose h3 { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; margin: 24px 0 8px; color: var(--fg); }
.prose p, .prose li { color: var(--fg-muted); font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 17px; line-height: 1.75; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); }

/* ─── Responsive ─── */

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

  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding: 56px 24px 48px;
    gap: 40px;
    text-align: center;
  }
  .hero-text { align-items: center; }
  .hero-sub { max-width: 100%; }
  .hero-ctas { align-items: center; }
  .hero-visual { justify-content: center; align-items: center; align-self: auto; }
  .phone-mockup { height: auto; }
  .phone-img { height: auto; max-width: 320px; width: 100%; filter: none; }

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

  .mentor-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features { padding: 64px 24px; }
  .mentor-section { padding: 64px 24px; }
  .quote-section { padding: 64px 24px; }

  .cta-inner {
    grid-template-columns: 1fr;
    padding: 64px 24px;
    gap: 48px;
  }
  .cta-qr { justify-content: center; }
}

@media (max-width: 560px) {
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-wordmark { font-size: 16px; }

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

  .footer-links { gap: 16px; }
}

/* ─── GSAP entrance animations ─── */

/* Hero headline line masking — inner span slides up from behind the clip */
.hero-headline .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em; /* keep descenders from clipping */
}
.hero-headline .line > span {
  display: block;
}

/*
 * Pre-hide animated elements before GSAP runs to avoid a flash of the final
 * state. Only applied when `.gsap-anim` is set on <html> — that class is added
 * by the head guard unless the user prefers reduced motion, so reduced-motion
 * users see everything immediately with no pre-hide.
 */
.gsap-anim .nav-inner,
.gsap-anim .hero-headline .line > span,
.gsap-anim .hero-sub,
.gsap-anim .hero-ctas,
.gsap-anim .phone-mockup,
.gsap-anim .traditions,
.gsap-anim .section-header,
.gsap-anim .quote-eyebrow,
.gsap-anim .quote-block,
.gsap-anim .quote-caption,
.gsap-anim .mentor-text > *,
.gsap-anim .mentor-chat .chat-bubble,
.gsap-anim .cta-text,
.gsap-anim .cta-qr {
  opacity: 0;
}

/* ─── Feature lightbox (desktop only) ─── */

/* Cards become explicitly clickable on desktop */
@media (min-width: 900px) {
  .feature-card[role='button'] { cursor: pointer; }
  .feature-card[role='button']:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
  }
}

.feature-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.feature-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}

.lightbox-panel {
  position: relative;
  width: 70vw;
  height: 60vh;
  max-width: 1180px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.34), 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  will-change: transform, opacity;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  transition: transform 200ms ease, opacity 150ms;
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-close:active { transform: rotate(90deg) scale(0.94); }

.lightbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.lightbox-details {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.lightbox-eyebrow {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}

.lightbox-title {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--fg);
}

.lightbox-desc {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.62;
  color: var(--fg-muted);
  margin: 0 0 26px;
}

.lightbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.lightbox-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
}
.lightbox-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--fg);
  opacity: 0.85;
}

.lightbox-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 70% 20%, var(--pill-bg), transparent 60%),
    linear-gradient(150deg, var(--bg-alt), var(--card-bg));
  border-left: 1px solid var(--card-border);
}
.lightbox-media-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.lightbox-media-icon {
  color: var(--fg);
  opacity: 0.32;
}
.lightbox-media-label {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Lightbox is a desktop-only affordance */
@media (max-width: 899px) {
  .feature-lightbox { display: none !important; }
}
