/* ======================================
   NDE Comparative Analysis — Design Tokens
   Warm, ethereal, spiritually calm
   ====================================== */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
}

/* ======================================
   Light Mode — Warm ivory + gold/amber
   ====================================== */
:root,
[data-theme='light'] {
  --color-bg: #faf8f3;
  --color-surface: #ffffff;
  --color-surface-2: #f5f2eb;
  --color-surface-offset: #eee9df;
  --color-divider: #ddd7cb;
  --color-border: #d0c9bb;

  --color-text: #2a2520;
  --color-text-muted: #7a7168;
  --color-text-faint: #b5ada3;

  --color-primary: #9e7c4c;
  --color-primary-hover: #836440;
  --color-primary-active: #6a4f30;
  --color-primary-light: #f0e6d6;

  --color-accent: #6b5b8a;
  --color-accent-light: #ede8f4;

  --color-glow: #d4a95a;

  --shadow-sm: 0 1px 2px oklch(0.3 0.02 70 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 70 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.3 0.02 70 / 0.12);
}

/* ======================================
   Dark Mode — Deep navy + gold
   ====================================== */
[data-theme='dark'] {
  --color-bg: #0f0e13;
  --color-surface: #1a1822;
  --color-surface-2: #22202d;
  --color-surface-offset: #161420;
  --color-divider: #2d2a38;
  --color-border: #3a3648;

  --color-text: #e8e4dc;
  --color-text-muted: #9a9490;
  --color-text-faint: #5e5a56;

  --color-primary: #d4a95a;
  --color-primary-hover: #e0b96e;
  --color-primary-active: #c49a4a;
  --color-primary-light: #2a2418;

  --color-accent: #a48cc4;
  --color-accent-light: #1e1a28;

  --color-glow: #d4a95a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0f0e13;
    --color-surface: #1a1822;
    --color-surface-2: #22202d;
    --color-surface-offset: #161420;
    --color-divider: #2d2a38;
    --color-border: #3a3648;
    --color-text: #e8e4dc;
    --color-text-muted: #9a9490;
    --color-text-faint: #5e5a56;
    --color-primary: #d4a95a;
    --color-primary-hover: #e0b96e;
    --color-primary-active: #c49a4a;
    --color-primary-light: #2a2418;
    --color-accent: #a48cc4;
    --color-accent-light: #1e1a28;
    --color-glow: #d4a95a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  }
}

/* ======================================
   Global Styles
   ====================================== */

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* Material Symbols baseline fix */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

/* ======================================
   Page Transitions
   ====================================== */

#app {
  transition: opacity 150ms ease;
}

#app.page-exit {
  opacity: 0;
}

#app.page-enter {
  animation: pageEnter 300ms var(--ease-out) forwards;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================================
   Header
   ====================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-3) var(--space-4);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.logo svg {
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.header-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

.header-nav a:hover {
  color: var(--color-text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    gap: var(--space-4);
    z-index: 99;
  }
}

/* ======================================
   Hero Section
   ====================================== */

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-divider {
  width: 50%;
  max-width: 280px;
  margin: var(--space-8) auto;
  border: 0;
  border-top: 1px solid var(--color-border);
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.2;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: var(--space-1);
}

/* ======================================
   Stars Canvas
   ====================================== */

.stars-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ======================================
   Sections
   ====================================== */

.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
}

.section-alt {
  background: var(--color-surface-2);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-16));
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

/* ======================================
   Roadmap / What You'll Discover
   ====================================== */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.roadmap-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.roadmap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  color: inherit;
}

.roadmap-icon {
  font-size: 1.75rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.roadmap-card-body {
  flex: 1;
  min-width: 0;
}

.roadmap-card-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.roadmap-card-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.roadmap-arrow {
  font-size: 1.25rem;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: color var(--transition-interactive), transform var(--transition-interactive);
}

.roadmap-card:hover .roadmap-arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

/* Key Takeaways */
.takeaways-panel {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.takeaways-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.takeaways-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.takeaways-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.takeaways-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.takeaway-item {}

.takeaway-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.takeaway-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.takeaway-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
}

.takeaway-tag em {
  font-style: normal;
  opacity: 0.7;
}

.takeaway-tag-icon {
  font-size: 1rem;
}

/* ======================================
   Element/Message Category Cards
   ====================================== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-6);
}

.category-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
}

.category-card:active {
  transform: translateY(0);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-primary);
}

.card-icon .material-symbols-outlined {
  font-size: 2rem;
}

.card-percentage {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.percentage-bar-bg {
  width: 60px;
  height: 6px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.percentage-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s var(--ease-out);
}

.percentage-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.card-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.meta-icon {
  font-size: 0.875rem;
}

/* Hover hint (arrow + "Explore") */
.card-hover-hint {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-primary);
  opacity: 0;
  margin-top: var(--space-3);
  transition: opacity var(--transition-interactive);
  font-weight: 500;
}

.card-hover-hint .material-symbols-outlined {
  font-size: 1rem;
  transition: transform var(--transition-interactive);
}

.category-card:hover .card-hover-hint,
.video-card:hover .card-hover-hint,
.journey-step:hover .card-arrow {
  opacity: 1;
}

.category-card:hover .card-hover-hint .material-symbols-outlined,
.video-card:hover .card-hover-hint .material-symbols-outlined {
  transform: translateX(3px);
}

.card-arrow {
  opacity: 0;
  color: var(--color-primary);
  transition: opacity var(--transition-interactive);
  flex-shrink: 0;
}

.card-arrow .material-symbols-outlined {
  font-size: 1.25rem;
}

/* ======================================
   Journey Map
   ====================================== */

.journey-section {
  background: var(--color-surface);
}

.journey-map {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  max-width: var(--content-default);
  margin: 0 auto;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}

.journey-step:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.journey-step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  flex-shrink: 0;
}

.journey-step-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--color-primary);
}

.journey-step-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.journey-step-content {
  flex: 1;
  min-width: 0;
}

.journey-step-title {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 2px;
}

.journey-step-meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.journey-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--color-primary), oklch(from var(--color-primary) l c h / 0.2));
  margin-left: calc(var(--space-5) + 15px);
}

/* ======================================
   Modal / Overlay
   ====================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(0 0 0 / 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-8);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
  overscroll-behavior: contain;
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin-bottom: calc(-1 * var(--space-8));
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
  z-index: 10;
}

.modal-close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  padding-right: var(--space-8);
  position: relative;
}

.modal-icon {
  flex-shrink: 0;
}

.modal-mat-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.modal-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.modal-percentage-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
}

.modal-percentage-bar {
  flex: 1;
  height: 8px;
  background: oklch(from var(--color-primary) l c h / 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.modal-percentage-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.modal-percentage-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  min-width: 7ch;
  white-space: nowrap;
}

/* Overlay person rows */
.overlay-person-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}

.overlay-person-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  flex: 1;
}

.overlay-person-name:hover {
  text-decoration: underline;
}

.overlay-full-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.overlay-full-link:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: white;
}

.overlay-full-link .material-symbols-outlined {
  font-size: 1.125rem;
}

/* ======================================
   Video Instances (in modals and cat pages)
   ====================================== */

.video-instance {
  padding: var(--space-4) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.video-instance:last-child {
  border-bottom: none;
}

.video-instance-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.person-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
  overflow: hidden;
}

.person-avatar-img img {
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: 15% center;
  display: block;
}

.instance-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: calc(32px + var(--space-3));
}

.instance-item {
  position: relative;
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.04);
}

.instance-item:last-child {
  border-bottom: none;
}

.instance-element-name {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.instance-description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.5;
}

.instance-quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-muted);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.6;
}

.timestamp-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-variant-numeric: tabular-nums;
  transition: background var(--transition-interactive);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.timestamp-link:hover {
  background: oklch(from var(--color-primary) l c h / 0.2);
}

.ts-icon {
  font-size: 0.875rem;
}

/* ======================================
   Inspiration
   ====================================== */

.unique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.unique-card {
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-interactive);
}

.unique-card:hover {
  box-shadow: var(--shadow-sm);
}

.unique-card-element {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.unique-card-quote {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  padding-left: var(--space-3);
  border-left: 2px solid var(--color-primary-light);
}

.unique-card-quote::before { content: "\201C"; }
.unique-card-quote::after  { content: "\201D"; }

.unique-card-source {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  flex-wrap: wrap;
}

.unique-avatar {
  width: 28px;
  height: 28px;
}

.unique-person-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.unique-person-link:hover {
  text-decoration: underline;
}

.unique-ts {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-text-faint);
}

.unique-view-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: auto;
}

.unique-view-link .material-symbols-outlined {
  font-size: 0.875rem;
  transition: transform var(--transition-interactive);
}

.unique-view-link:hover .material-symbols-outlined {
  transform: translateX(3px);
}

/* ======================================
   Video Grid (Voices)
   ====================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-4);
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.video-card:active {
  transform: translateY(0);
}

.video-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: oklch(from var(--color-text) l c h / 0.05);
}

.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-card:hover .video-card-thumb img {
  transform: scale(1.04);
}

.video-card-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-card-person {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.video-card-title {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  flex: 1;
  margin-bottom: var(--space-3);
}

.video-card-counts {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.video-card-counts span {
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ======================================
   Tabs
   ====================================== */

.tabs {
  display: flex;
  gap: var(--space-1);
  justify-content: center;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.tab-btn {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive);
}

.tab-btn:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.tab-btn.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ======================================
   About intro
   ====================================== */

.about-text {
  max-width: 65ch;
  margin: 0 auto;
  text-align: center;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: var(--space-4);
  margin-left: auto;
  margin-right: auto;
}

/* ======================================
   Methodology
   ====================================== */

.methodology-note {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
}

.methodology-note h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.methodology-note p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

/* Channel CTA */
.channel-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-6);
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}

.channel-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  color: white;
}

.channel-cta:active {
  transform: translateY(0);
}

/* ======================================
   Footer
   ====================================== */

.site-footer {
  padding: var(--space-12) var(--space-4) var(--space-8);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  text-align: center;
}

.footer-inner {
  max-width: var(--content-default);
  margin: 0 auto;
}

.footer-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 auto var(--space-4);
}

.footer-link {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-inline: auto;
}

/* ======================================
   Scroll Animations
   ====================================== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

/* Empty filter state */
.no-results {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-muted);
}

/* ======================================
   SUB-PAGES: Breadcrumbs
   ====================================== */

.subpage-container {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-16);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
}

.bc-sep {
  display: inline-flex;
  align-items: center;
}

.bc-icon {
  font-size: 1rem;
}

.bc-current {
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ======================================
   YouTube Embed (collapsible)
   ====================================== */

.yt-embed-panel {
  margin-bottom: var(--space-6);
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.4s ease;
  max-height: 800px;
  overflow: hidden;
}

.yt-embed-panel.yt-panel-hidden {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: oklch(from var(--color-text) l c h / 0.05);
}

.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Marker observed by IntersectionObserver. Placed AFTER the panel
   in the DOM so its top crossing the viewport top means the whole
   video is out of view. */
.yt-panel-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* Reserves the panel's inline footprint while it's floating so the
   rest of the page doesn't reflow. Height is set inline by JS. */
.yt-panel-placeholder {
  height: 0;
  pointer-events: none;
}

/* Floating (picture-in-picture) mode: pinned to the bottom-right.
   Because it's position:fixed, it contributes nothing to flow, so
   the inline panel can stay collapsed without any layout jump.
   These rules override .yt-panel-hidden thanks to cascade order. */
.yt-embed-panel.yt-floating {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: min(360px, 55vw);
  max-height: none;
  margin: 0;
  opacity: 1;
  pointer-events: auto;
  z-index: 200;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: yt-float-in 0.22s ease-out;
  transition: none;
}

.yt-embed-panel.yt-floating .yt-embed-wrap {
  border-radius: var(--radius-lg);
}

@keyframes yt-float-in {
  from {
    transform: translate(12px, 12px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.yt-pip-close {
  display: none;
}

.yt-embed-panel.yt-floating .yt-pip-close {
  display: grid;
  place-items: center;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  opacity: 0.9;
  transition: opacity 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.yt-embed-panel.yt-floating .yt-pip-close .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

.yt-embed-panel.yt-floating .yt-pip-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.85);
}

.yt-embed-panel.yt-floating .yt-pip-close:active {
  transform: scale(0.94);
}

/* Mobile PiP: anchor above iOS Safari's bottom toolbar so the
   player isn't obscured by browser chrome. The extra 72px offset
   clears Safari's URL bar; env(safe-area-inset-bottom) handles
   home-indicator devices. */
@media (max-width: 640px) {
  .yt-embed-panel.yt-floating {
    width: min(280px, calc(100vw - 24px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
    right: calc(env(safe-area-inset-right, 0px) + 12px);
  }
}

/* ======================================
   CATEGORY PAGE
   ====================================== */

.cat-page-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.cat-page-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.cat-page-mat-icon {
  font-size: 3rem;
  color: var(--color-primary);
}

.cat-page-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.cat-page-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Category switcher dropdown ----------------------------------------- */

.cat-switcher {
  position: relative;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.cat-switcher-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  min-width: 220px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-interactive),
              background var(--transition-interactive);
}

.cat-switcher-btn:hover,
.cat-switcher.open .cat-switcher-btn {
  border-color: var(--color-primary);
  background: var(--color-surface-2);
}

.cat-switcher-btn-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.cat-switcher-btn-eyebrow {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
}

.cat-switcher-btn-current {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 0;
}

.cat-switcher-btn-icon .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--color-primary);
}

.cat-switcher-btn-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-switcher-btn-chevron .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}

.cat-switcher.open .cat-switcher-btn-chevron .material-symbols-outlined {
  color: var(--color-primary);
}

.cat-switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 280px;
  max-width: 360px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px oklch(from var(--color-text) l c h / 0.12);
  padding: var(--space-1);
  z-index: 50;
}

.cat-switcher-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  transition: background var(--transition-interactive);
}

.cat-switcher-option:hover {
  background: var(--color-surface-2);
}

.cat-switcher-option.active {
  background: var(--color-primary-light);
  color: var(--color-text);
  font-weight: 500;
}

.cat-switcher-option-icon .material-symbols-outlined {
  font-size: 1.125rem;
  color: var(--color-primary);
}

.cat-switcher-option-name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-switcher-option-pct {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.cat-switcher-option.active .cat-switcher-option-pct {
  color: var(--color-text-muted);
}

.cat-switcher-option-check .material-symbols-outlined {
  font-size: 1rem;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  /* On narrow viewports, lay out the header as a grid so the icon
     sits beside the title (saving vertical space) while the
     description and switcher each get their own row. */
  .cat-page-header {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon  title"
      "desc  desc"
      "switcher switcher";
    column-gap: var(--space-3);
    row-gap: var(--space-2);
    align-items: center;
  }
  .cat-page-icon {
    grid-area: icon;
    display: flex;
    align-items: center;
  }
  .cat-page-mat-icon {
    font-size: 1.75rem;
  }
  .cat-page-header-text {
    display: contents;
  }
  .cat-page-title {
    grid-area: title;
    font-size: var(--text-lg);
    margin-bottom: 0;
    line-height: 1.15;
  }
  .cat-page-desc {
    grid-area: desc;
  }
  .cat-switcher {
    grid-area: switcher;
    width: 100%;
    margin-top: var(--space-1);
  }
  .cat-switcher-btn {
    width: 100%;
    min-width: 0;
  }
  .cat-switcher-menu {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
  }
}

/* Category page layout: sidebar + content */
.cat-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
  align-items: start;
}

.cat-sidebar {
  position: sticky;
  top: calc(60px + var(--space-4));
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cat-sidebar-title {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.cat-sidebar-list {
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cat-sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.04);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition-interactive);
  font-family: var(--font-body);
}

.cat-sidebar-item:hover {
  background: var(--color-surface-2);
}

.cat-sidebar-item.active {
  background: var(--color-primary-light);
  border-left: 3px solid var(--color-primary);
}

.cat-sidebar-item-info {
  min-width: 0;
}

.cat-sidebar-item-name {
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-sidebar-item-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.cat-content {
  min-width: 0;
}

.cat-person-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cat-person-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}

.cat-person-name-link {
  color: var(--color-text);
  text-decoration: none;
}

.cat-person-name-link:hover {
  color: var(--color-primary);
}

.cat-person-view {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.cat-person-view:hover {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
}

.cat-person-view .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Mobile: sidebar becomes horizontal scroll */
@media (max-width: 768px) {
  .cat-page-layout {
    grid-template-columns: 1fr;
  }

  .cat-sidebar {
    position: static;
    border-radius: var(--radius-lg);
  }

  .cat-sidebar-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: var(--space-2);
  }

  .cat-sidebar-item {
    flex: 0 0 96px;
    width: 96px;
    flex-direction: column;
    align-items: center;
    padding: var(--space-2);
    border-bottom: none;
    border-right: 1px solid oklch(from var(--color-text) l c h / 0.04);
    scroll-snap-align: start;
    text-align: center;
    gap: var(--space-1);
    overflow: hidden;
  }

  .cat-sidebar-item.active {
    border-left: none;
    border-bottom: 3px solid var(--color-primary);
  }

  .cat-sidebar-item-info {
    width: 100%;
    max-width: 100%;
  }

  .cat-sidebar-item-name {
    font-size: var(--text-xs);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-sidebar-item-meta {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-sidebar-title {
    display: none;
  }
}

/* ======================================
   PERSON PAGE
   ====================================== */

.person-page-info {
  margin-bottom: var(--space-6);
}

.person-page-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.person-page-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.person-page-heading-text {
  min-width: 0;
}

.person-page-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.person-page-cause {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.person-page-stats {
  display: flex;
  gap: var(--space-6);
}

.person-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.person-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
}

.person-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.person-tabs {
  justify-content: flex-start;
}

/* Person category groups */
.person-cat-group {
  margin-bottom: var(--space-5);
}

.person-cat-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.person-cat-label .material-symbols-outlined {
  font-size: 1.125rem;
  vertical-align: text-bottom;
}

.person-cat-link {
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.person-cat-link:hover {
  text-decoration: none;
  box-shadow: inset 0 -1px 0 0 currentColor;
}

.person-cat-icon {
  font-size: 1.125rem;
}

.person-cat-arrow {
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity var(--transition-interactive), transform var(--transition-interactive);
}

.person-cat-link:hover .person-cat-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.person-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.04);
}

.person-item:last-child {
  border-bottom: none;
}

.person-item-name {
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}

.person-item-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

/* ======================================
   Touch-device affordances
   On devices without hover (phones/tablets), hover-revealed cues
   never appear, so we surface them by default and add stronger
   tap feedback to make tappable cards obviously interactive.
   ====================================== */
@media (hover: none) {

  /* Always reveal the "Explore ->" / "View their story ->" hint */
  .card-hover-hint {
    opacity: 1;
  }

  /* Always show the journey-step right-arrow */
  .card-arrow {
    opacity: 1;
  }

  /* Bump the roadmap card's chevron to the primary color so it
     reads as an actionable affordance, not decoration. */
  .roadmap-arrow {
    color: var(--color-primary);
    opacity: 0.85;
  }

  /* Always reveal the small chevron next to person-category links. */
  .person-cat-arrow {
    opacity: 1;
  }

  /* Give all tappable cards a subtle persistent lift + warmer
     border so they read as raised, interactive surfaces. */
  .roadmap-card,
  .category-card,
  .video-card,
  .journey-step {
    box-shadow: var(--shadow-sm);
    border-color: oklch(from var(--color-primary) l c h / 0.18);
  }

  /* Pronounced tactile feedback when a card is being tapped. */
  .roadmap-card:active,
  .category-card:active,
  .video-card:active,
  .journey-step:active {
    transform: scale(0.985);
    box-shadow: var(--shadow-md);
    border-color: oklch(from var(--color-primary) l c h / 0.45);
    background: var(--color-surface-2);
    transition-duration: 80ms;
  }

  /* Hint chevron should slide on tap, mirroring the desktop hover. */
  .category-card:active .card-hover-hint .material-symbols-outlined,
  .video-card:active .card-hover-hint .material-symbols-outlined,
  .journey-step:active .card-arrow .material-symbols-outlined,
  .roadmap-card:active .roadmap-arrow {
    transform: translateX(3px);
  }
}
