/* GENERATED FILE: do not edit. Edit the sources listed in build-css.js and run `npm run build:css`. */
/* ===== styles.css ===== */
:root {
  --banner-offset: 0px;
  --bg: #ffffff;
  --bg-subtle: #f7f7f9;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card-hover: #fafafc;
  
  --text-primary: #121214;
  --text-secondary: #585960;
  --text-tertiary: #8b8d96;
  --text-inverse: #ffffff;

  --brand: #a14d53;
  --brand-dark: #87404a;
  --brand-light: #b96b71;
  --brand-soft: rgba(161, 77, 83, 0.07);
  --brand-soft-hover: rgba(161, 77, 83, 0.12);
  --brand-glow: rgba(161, 77, 83, 0.2);

  --accent-gold: #c88a38;
  --accent-gold-soft: rgba(200, 138, 56, 0.1);
  --accent-green: #2e7d32;
  --accent-green-soft: rgba(46, 125, 50, 0.1);

  --border: rgba(18, 18, 20, 0.08);
  --border-strong: rgba(18, 18, 20, 0.14);
  --border-focus: rgba(161, 77, 83, 0.35);

  --shadow-sm: 0 1px 3px rgba(18, 18, 20, 0.04), 0 1px 2px rgba(18, 18, 20, 0.02);
  --shadow-md: 0 8px 24px -4px rgba(18, 18, 20, 0.06), 0 2px 6px -1px rgba(18, 18, 20, 0.03);
  --shadow-lg: 0 20px 48px -12px rgba(18, 18, 20, 0.08), 0 4px 12px rgba(18, 18, 20, 0.04);
  --shadow-brand: 0 10px 30px -6px rgba(161, 77, 83, 0.25);

  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: var(--font-sans);
  --font-editorial: var(--font-sans);
  --font-amharic: 'Noto Sans Ethiopic', 'Nyala', 'Abyssinica SIL', 'Noto Serif Ethiopic', sans-serif;

  --header-height: 72px;
  --container-max: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.2s;
  --dur-normal: 0.4s;
  --dur-slow: 0.7s;
}

[data-theme="dark"] {
  --bg: #0d0e10;
  --bg-subtle: #141619;
  --bg-surface: #191b1f;
  --bg-surface-elevated: #202328;
  --bg-card-hover: #23272d;

  --text-primary: #f5f4ef;
  --text-secondary: #a0a4ab;
  --text-tertiary: #6b707b;
  --text-inverse: #0d0e10;

  --brand: #c9656b;
  --brand-dark: #df7b81;
  --brand-light: #e58d92;
  --brand-soft: rgba(201, 101, 107, 0.12);
  --brand-soft-hover: rgba(201, 101, 107, 0.2);
  --brand-glow: rgba(201, 101, 107, 0.3);

  --accent-gold: #e2a859;
  --accent-gold-soft: rgba(226, 168, 89, 0.15);
  --accent-green: #4caf50;
  --accent-green-soft: rgba(76, 175, 80, 0.15);

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(201, 101, 107, 0.5);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 48px -12px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 10px 30px -6px rgba(201, 101, 107, 0.3);
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg);
  transition: background-color var(--dur-normal) var(--ease-out-expo), color var(--dur-normal) var(--ease-out-expo);
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

.ambient-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

[data-theme="dark"] .ambient-noise {
  opacity: 0.04;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button, input {
  font: inherit;
  border: none;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(var(--container-max), 100% - var(--pad) * 2);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.progress-bar {
  position: fixed;
  top: var(--banner-offset, 0px);
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--accent-gold));
  z-index: 999;
  transition: width 0.08s linear, top var(--dur-fast);
}


.header {
  position: fixed;
  top: var(--banner-offset, 0px);
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  transition: top var(--dur-fast), background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-slow) var(--ease-out-expo), opacity var(--dur-slow);
  transform: translateY(-100%);
  opacity: 0;
  border-bottom: 1px solid transparent;
}

body.loaded .header {
  transform: translateY(0);
  opacity: 1;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(13, 14, 16, 0.9);
}

.header-container {
  width: min(var(--container-max), 100% - var(--pad) * 2);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}

.logo-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  transition: transform var(--dur-normal) var(--ease-out-expo), background-color var(--dur-fast);
}

.logo:hover .logo-icon-wrapper {
  transform: rotate(-6deg) scale(1.05);
  background: var(--brand-soft-hover);
}

.logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.logo-name {
  color: var(--text-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--dur-fast);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out-expo);
}

.nav a:hover,
.nav a.active {
  color: var(--text-primary);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-secondary);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast), background-color var(--dur-fast);
  position: relative;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: block;
}

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

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}

.menu-btn:hover,
.menu-btn:active {
  background: var(--bg-subtle);
  border-color: var(--brand);
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 20px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.25s ease;
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--header-height) + var(--banner-offset, 0px));
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.28s var(--ease-out-expo), opacity 0.28s ease;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

.mobile-menu-inner {
  padding: 1.25rem var(--pad) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation;
}

.mobile-nav-link svg {
  color: var(--text-tertiary);
  transition: transform var(--dur-fast), color var(--dur-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: var(--brand);
  transform: translateX(3px);
}

.mobile-nav-link:hover svg,
.mobile-nav-link:active svg {
  color: var(--brand);
  transform: translateX(2px);
}

.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  background: var(--brand);
  color: var(--brand-fg);
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
  touch-action: manipulation;
}

.mobile-cta-btn:active {
  transform: scale(0.98);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out-expo);
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-primary {
  color: var(--text-inverse);
  background: var(--brand);
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(161, 77, 83, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
  gap: 0.75rem;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform var(--dur-fast) var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-height) + var(--banner-offset, 0px) + 2.5rem) 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 2.5rem;
}

.hero-copy {
  max-width: 580px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.status-badge:hover {
  border-color: var(--border-focus);
  transform: translateY(-1px);
}

.status-badge strong {
  color: var(--text-primary);
  font-weight: 600;
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.125rem, 6.8vw, 5.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-title-accent {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.hero-serif-italic {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.translation-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  outline: none;
  cursor: pointer;
  align-items: center;
  vertical-align: middle;
  outline: none;
  cursor: pointer;
}

.highlight-yellow {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0.08em 0.54em 0.14em;
  border-radius: 10px;
  background: #f5c518;
  color: #111111;
  font-size: 1em;
  line-height: 1.15;
  user-select: none;
  overflow: hidden;
  min-width: 3.8em;
  transition: background-color 0.25s ease;
}

.highlight-yellow .word-amharic,
.highlight-yellow .word-english {
  grid-area: 1 / 1;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.highlight-yellow .word-amharic {
  display: inline-block;
  font-family: 'Noto Sans Ethiopic', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 1;
  transform: translateY(0);
}

.highlight-yellow .word-english {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.translation-container:hover .highlight-yellow .word-amharic,
.translation-container:focus .highlight-yellow .word-amharic {
  opacity: 0;
  transform: translateY(-12px);
}

.translation-container:hover .highlight-yellow .word-english,
.translation-container:focus .highlight-yellow .word-english {
  opacity: 1;
  transform: translateY(0);
}

.translation-container:hover .highlight-yellow {
  background: #facc15;
}

[data-theme="dark"] .highlight-yellow {
  background: #f5c518;
  color: #111111;
}

[data-theme="dark"] .translation-container:hover .highlight-yellow {
  background: #fde047;
}



.lead {
  font-size: clamp(1.0625rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--bg);
  box-shadow: var(--shadow-sm);
  margin-left: -9px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.avatar-pill:first-child {
  margin-left: 0;
}

.avatar-more {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.625rem;
}

.meta-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.meta-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.star-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.hero-book-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.switcher-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.switcher-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.book-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-fast) var(--ease-out-expo);
}

.book-switch-btn .switch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background-color var(--dur-fast);
}

.book-switch-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.book-switch-btn.active {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--brand);
  box-shadow: 0 2px 8px rgba(161, 77, 83, 0.15);
  font-weight: 600;
}

.book-switch-btn.active .switch-dot {
  background: var(--brand);
}


.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-books-showcase {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.book-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.primary-book {
  width: 300px;
  z-index: 3;
  box-shadow: 
    0 24px 48px -12px rgba(18, 18, 20, 0.22),
    0 8px 16px -4px rgba(18, 18, 20, 0.12);
  border-radius: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
}

[data-theme="dark"] .primary-book {
  box-shadow: 
    0 24px 52px -12px rgba(0, 0, 0, 0.6),
    0 8px 16px -4px rgba(0, 0, 0, 0.35);
}

.secondary-book {
  position: absolute;
  width: 220px;
  right: -10px;
  top: 30px;
  z-index: 2;
  transform: rotate(5deg) scale(0.9);
  opacity: 0.82;
  box-shadow: 0 16px 36px -8px rgba(18, 18, 20, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  filter: brightness(0.93);
}

.tertiary-book {
  position: absolute;
  width: 170px;
  left: -15px;
  bottom: 30px;
  z-index: 1;
  transform: rotate(-7deg) scale(0.84);
  opacity: 0.65;
  box-shadow: 0 12px 28px -6px rgba(18, 18, 20, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  filter: brightness(0.9);
}

.book-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-subtle);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}



.hero-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  margin-top: 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-ribbon::-webkit-scrollbar {
  display: none;
}

.hero-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast);
}

.hero-ribbon-item:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.ribbon-svg {
  color: var(--brand);
  flex-shrink: 0;
}

.ribbon-sep {
  color: var(--border-strong);
  font-size: 0.75rem;
}


.section {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  position: relative;
}

.section-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  max-width: var(--container-max);
  margin-inline: auto;
  height: 1px;
  background: var(--border);
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
}


.split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.split-label h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.split-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.lead-split {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
}

.split-body p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-num {
  font-family: var(--font-editorial);
  font-size: clamp(2rem, 3.8vw, 2.45rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.015em;
  color: var(--brand);
  line-height: 1.15;
  display: block;
  transition: color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.metric-card:hover .metric-num {
  color: var(--brand-dark);
}

[data-theme="dark"] .metric-card:hover .metric-num {
  color: var(--brand-light);
}

.metric-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


.flywheel-section {
  background: var(--bg-subtle);
}

.flywheel-header {
  margin-bottom: 3rem;
}

.flywheel-loop-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: fit-content;
}

.loop-node {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}

.loop-node:hover,
.loop-node.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.loop-arrow {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.flywheel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.flywheel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform var(--dur-normal) var(--ease-out-expo), border-color var(--dur-fast), box-shadow var(--dur-normal);
}

.flywheel-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.flywheel-card.active {
  border-color: var(--brand);
  background: var(--bg-surface-elevated);
  box-shadow: var(--shadow-md);
}

.flywheel-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--brand);
}

.flywheel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.flywheel-step {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.flywheel-icon-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
}

.flywheel-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.flywheel-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.flywheel-next-hint {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.flywheel-next-hint strong {
  color: var(--brand);
}


.section-head-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.category-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) ease;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-normal) var(--ease-out-expo), border-color var(--dur-fast), box-shadow var(--dur-normal) var(--ease-out-expo), opacity var(--dur-normal);
}

.bento-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bento-card.featured-bento {
  background: var(--bg-surface-elevated);
}

.bento-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

[data-theme="dark"] .bento-badge {
  background: rgba(25, 27, 31, 0.88);
}

.bento-img {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.bento-card:hover .bento-img img {
  transform: scale(1.05);
}

.bento-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bento-index {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.bento-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color var(--dur-fast);
}

.bento-card:hover .bento-content h3 {
  color: var(--brand);
}

.bento-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.bento-tag-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bento-tag-list span {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0.2rem 0.5rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}




.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.research-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-normal) var(--ease-out-expo), box-shadow var(--dur-normal);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.research-img-wrapper {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.research-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.research-card:hover .research-img-wrapper img {
  transform: scale(1.04);
}

.research-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-pill {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.65rem;
}

.card-pill.pill-accent {
  color: var(--accent-gold);
}

.research-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.research-content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.research-meta-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.research-meta-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  padding: 0.25rem 0.65rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
}


.notify-section {
  padding-bottom: 7.5rem;
}

.notify-section {
  padding-bottom: 6rem;
}

.notify-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  align-items: start;
  position: relative;
  overflow: hidden;
}

.notify-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 65%);
  pointer-events: none;
}

.notify-copy {
  position: relative;
  z-index: 1;
}

.notify-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.notify-desc {
  font-size: 1.025rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}

.notify-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.perk-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}

.perk-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.perk-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.perk-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.6875rem;
  font-weight: 700;
}

.perk-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.perk-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notify-form-wrapper {
  position: relative;
  z-index: 1;
}

.form-card-inner {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
}

.form-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--border);
}

.form-card-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 0.25rem;
}

.form-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cohort-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: var(--accent-green-soft);
  border: 1px solid rgba(46, 125, 50, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent-green);
  white-space: nowrap;
}

.cohort-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulseDot 2s infinite ease-in-out;
}

.interest-select-group {
  margin-bottom: 1.25rem;
}

.interest-heading {
  display: block;
  font-size: 0.78125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.interest-chip {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  touch-action: manipulation;
  transition: all var(--dur-fast);
}

.interest-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.interest-chip.active {
  background: var(--brand);
  color: var(--text-inverse);
  border-color: var(--brand);
  font-weight: 600;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.1rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.form input[type="email"] {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--dur-fast);
}

.form input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 0.9375rem;
  justify-content: center;
}

.form.loading .btn-label,
.form.loading .btn-arrow {
  display: none;
}

.form.loading .btn-spinner {
  display: block;
}

.form.loading .btn-submit {
  pointer-events: none;
}

.form-msg {
  font-size: 0.875rem;
  min-height: 1.5em;
  padding-top: 0.25rem;
}

.form-msg.ok {
  color: var(--accent-green);
  font-weight: 500;
}

.form-msg.err {
  color: #ef4444;
  font-weight: 500;
}

.form-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.trust-sep {
  color: var(--border-strong);
}


.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand-block {
  max-width: 380px;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.locale-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}

.footer-col a:hover {
  color: var(--brand);
}

.email-link {
  font-weight: 500;
}

.hotkey-tip {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  font-size: 0.6875rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.back-to-top:hover {
  color: var(--text-primary);
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out-expo), transform var(--dur-slow) var(--ease-out-expo);
}

.reveal[data-direction="right"] {
  transform: translateX(30px);
}

.reveal[data-direction="left"] {
  transform: translateX(-30px);
}

.reveal.visible {
  opacity: 1;
  transform: translate(0);
}


@media (max-width: 1100px) {
  .flywheel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: calc(var(--header-height) + 1.25rem);
    padding-bottom: 2.5rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual-wrapper {
    order: -1;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-books-showcase {
    max-width: 420px;
    min-height: 380px;
    margin-inline: auto;
  }

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

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

  .notify-card {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --pad: 1.25rem;
    --header-height: 62px;
  }

  .nav {
    display: none;
  }

  .btn-header {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: clamp(2.35rem, 8.5vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
  }

  .hero-title-accent {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
  }

  .highlight-yellow {
    font-size: 0.92em;
    padding: 0.08em 0.48em 0.12em;
    border-radius: 8px;
  }

  .lead {
    font-size: 1.025rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .hero-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .hero-books-showcase {
    max-width: 340px;
    min-height: 330px;
    padding: 0.5rem;
    margin: 0 auto;
  }

  .primary-book {
    width: 220px;
  }

  .secondary-book {
    width: 175px;
    right: 0px;
    top: 15px;
  }

  .tertiary-book {
    width: 140px;
    left: 0px;
    bottom: 15px;
  }

  .hero-ribbon {
    padding: 0.65rem 0.85rem;
    gap: 0.35rem;
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
  }

  .hero-ribbon-item {
    font-size: 0.78125rem;
    padding: 0.35rem 0.65rem;
    flex-shrink: 0;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .split-label h2 {
    font-size: 1.85rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.5rem;
  }

  .flywheel-header {
    margin-bottom: 2rem;
  }

  .flywheel-loop-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-md);
    gap: 0.35rem;
  }

  .flywheel-loop-bar::-webkit-scrollbar {
    display: none;
  }

  .loop-node {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    flex-shrink: 0;
  }

  .loop-arrow {
    flex-shrink: 0;
    font-size: 0.75rem;
  }

  .flywheel-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .flywheel-card {
    padding: 1.25rem;
  }

  .section-head-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .category-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.3rem;
    border-radius: var(--radius-md);
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .bento-content {
    padding: 1.25rem;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .research-content {
    padding: 1.25rem;
  }

  .notify-section {
    padding-bottom: 4.5rem;
  }

  .notify-card {
    padding: 1.75rem 1.25rem;
    gap: 2rem;
    border-radius: var(--radius-md);
  }

  .notify-title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  }

  .notify-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .notify-perks-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-card-inner {
    padding: 1.25rem;
  }

  .form input[type="email"] {
    font-size: 16px;
    padding: 0.9rem 0.9rem 0.9rem 2.85rem;
    min-height: 48px;
  }

  .btn-submit {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 1rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.2vw, 2.5rem);
  }

  .hero-books-showcase {
    max-width: 290px;
    min-height: 310px;
  }

  .primary-book {
    width: 195px;
  }

  .secondary-book {
    width: 155px;
    right: -4px;
    top: 12px;
  }

  .tertiary-book {
    width: 125px;
    left: -4px;
    bottom: 12px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .notify-card {
    padding: 1.25rem 0.85rem;
  }

  .form-card-inner {
    padding: 1rem 0.85rem;
  }

  .interest-chip {
    font-size: 0.6875rem;
    padding: 0.3rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header {
    transform: none;
    opacity: 1;
  }

  .floating-badge,
  .status-pulse {
    animation: none;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Book Club Announcement Alert Banner, Modal & Floating Badge
   ========================================================================== */

/* --- Top Alert Banner --- */
.alert-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  z-index: 102;
  background: linear-gradient(90deg, #6c2328 0%, #873339 28%, #9e3d43 55%, #b2543e 80%, #c88a38 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 1px 8px rgba(108, 35, 40, 0.22);
  transition: transform 0.35s var(--ease-out-expo), opacity 0.3s ease;
  overflow: hidden;
}

[data-theme="dark"] .alert-banner {
  background: linear-gradient(90deg, #301012 0%, #4a191d 28%, #5a2427 55%, #62321f 80%, #4d3115 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.alert-banner.dismissed {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.alert-banner-container {
  width: min(var(--container-max), 100% - var(--pad) * 2);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.alert-banner-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity var(--dur-fast);
}

.alert-banner-main:hover {
  opacity: 0.92;
}

.alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-text-compact {
  display: none;
  font-family: var(--font-amharic);
  font-weight: 800;
  letter-spacing: 0;
}

.alert-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseGreen {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.alert-banner-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8125rem;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.alert-banner-text strong {
  color: #ffffff;
  font-weight: 600;
}

.text-tablet,
.text-mobile {
  display: none;
}

.alert-banner-end {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.alert-btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.65rem;
  background: #ffffff;
  color: #6c2328;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-fast);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.alert-btn-action:hover {
  background: #fdf5ec;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.action-arrow {
  transition: transform var(--dur-fast);
}

.alert-btn-action:hover .action-arrow {
  transform: translateX(2px);
}

.alert-btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.6rem;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}

.alert-btn-register:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.65);
}

.alert-banner-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
  flex-shrink: 0;
}

.alert-banner-close:hover {
  background: rgba(255, 255, 255, 0.26);
  color: #ffffff;
}

/* --- Header Navbar Book Club Pill --- */
.nav-bookclub-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
  text-decoration: none;
  line-height: 1.2;
}

.nav-bookclub-pill:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--brand-glow);
}

.nav-date-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.05rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(161, 77, 83, 0.12);
  color: var(--brand);
  transition: all var(--dur-fast);
}

.nav-bookclub-pill:hover .nav-date-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.nav-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2e7d32;
  box-shadow: 0 0 6px rgba(46, 125, 50, 0.6);
  animation: pulseGreen 1.8s infinite;
  flex-shrink: 0;
}

.nav-bookclub-pill:hover .nav-dot-pulse {
  background: #4ade80;
}

/* --- Mobile Nav Book Club Link --- */
.mobile-nav-bookclub {
  background: var(--brand-soft);
  border: 1px solid var(--border-focus);
  color: var(--brand);
  width: 100%;
  cursor: pointer;
  font-family: var(--font-sans);
  justify-content: space-between;
}

.mobile-nav-bookclub:hover,
.mobile-nav-bookclub:active {
  background: var(--brand) !important;
  color: #ffffff !important;
}

.mobile-bookclub-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.mobile-bookclub-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #ffffff;
  transition: all var(--dur-fast);
}

.mobile-nav-bookclub:hover .mobile-bookclub-tag,
.mobile-nav-bookclub:active .mobile-bookclub-tag {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* --- Floating Alert Badge --- */
.floating-bookclub-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.05rem;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-expo), box-shadow var(--dur-fast), border-color var(--dur-fast);
  font-family: var(--font-sans);
  text-align: left;
}

.floating-bookclub-badge:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 8px 24px -4px var(--brand-glow);
}

.floating-badge-ping {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--bg-surface);
}

.floating-badge-ping::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pingRing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingRing {
  0% { transform: scale(0.8); opacity: 0.9; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.floating-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.floating-badge-text {
  display: flex;
  flex-direction: column;
}

.badge-sub {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
}

.badge-main {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* --- Bento Tag Interactive Trigger --- */
.bento-tag-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--border-focus);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--dur-fast);
}

.bento-tag-highlight:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
}

.highlight-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  animation: pulseGreen 1.5s infinite;
}

.bento-tag-highlight:hover .highlight-pulse {
  background: #ffffff;
}

/* --- Modal Overlay & Dialog --- */
.bookclub-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
}

.bookclub-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bookclub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 13, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
}

.bookclub-modal-dialog {
  position: relative;
  width: min(1080px, 100%);
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(20px);
  transition: transform 0.35s var(--ease-out-expo);
  z-index: 2;
}

.bookclub-modal-overlay.open .bookclub-modal-dialog {
  transform: scale(1) translateY(0);
}

.bookclub-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
  box-shadow: var(--shadow-sm);
}

.bookclub-modal-close:hover {
  background: var(--brand-soft);
  color: var(--brand);
  transform: rotate(90deg);
}

.bookclub-modal-scroll-body {
  overflow-y: auto;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  -webkit-overflow-scrolling: touch;
}

.bookclub-modal-grid {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: start;
}

/* --- Left Column: Poster Showcase --- */
.bookclub-modal-poster-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bookclub-poster-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f4ede4;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-normal) var(--ease-out-expo), box-shadow var(--dur-normal);
}

.bookclub-poster-frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.bookclub-poster-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.poster-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.poster-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
}

.badge-pulse-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
  animation: pulseGreen 1.8s infinite;
}

.poster-open-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.poster-open-link:hover {
  color: var(--brand);
}

/* --- Right Column: Info & Content --- */
.bookclub-modal-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.bookclub-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-right: 2.5rem;
}

.modal-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.modal-logo-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.modal-flag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
}

.bookclub-modal-title {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.amharic-accent {
  font-family: var(--font-amharic);
  color: var(--brand);
  font-weight: 900;
  padding-left: 0.15rem;
}

.title-subhead {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3b7444;
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

[data-theme="dark"] .title-subhead {
  color: #6ec47a;
}

.bookclub-quote-banner {
  padding: 0.6rem 1rem;
  background: var(--bg-subtle);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-primary);
}

/* Event Meta Card */
.event-meta-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.meta-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--brand);
  flex-shrink: 0;
}

.meta-item-content {
  display: flex;
  flex-direction: column;
}

.meta-key {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.meta-val {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.bookclub-agenda-note {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--text-secondary);
  line-height: 1.4;
}

.bookclub-agenda-note strong {
  color: var(--brand);
}

/* Description Text */
.bookclub-modal-desc {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.modal-lead-paragraph {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 0;
}

.modal-body-paragraph {
  margin: 0;
}

.modal-features-block {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
}

.features-heading {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.feature-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.modal-closing-paragraph {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-secondary);
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.75rem;
  margin: 0;
}

/* Actions */
.modal-actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.btn-modal-register {
  flex: 1 1 auto;
  min-width: 220px;
}

.btn-modal-cohort {
  flex: 1 1 auto;
}

/* Hashtags */
.modal-hashtags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.25rem;
}

.hashtag-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-tertiary);
  transition: color var(--dur-fast), border-color var(--dur-fast);
}

.hashtag-pill:hover {
  color: var(--brand);
  border-color: var(--brand);
}

/* --- Responsive Adjustments --- */
@media (max-width: 960px) {
  .bookclub-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .bookclub-modal-poster-col {
    max-width: 380px;
    margin-inline: auto;
  }

  .event-meta-card {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

@media (max-width: 960px) {
  .text-desktop {
    display: none;
  }
  .text-tablet {
    display: inline;
  }
  .text-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .badge-text-full {
    display: none;
  }
  .badge-text-compact {
    display: inline;
  }
}

@media (max-width: 640px) {
  .alert-banner {
    height: 36px;
  }

  .alert-banner-container {
    padding: 0 0.85rem;
    gap: 0.4rem;
  }

  .alert-banner-main {
    gap: 0.45rem;
  }

  .text-desktop,
  .text-tablet {
    display: none;
  }

  .text-mobile {
    display: inline;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .alert-badge {
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
  }

  .alert-btn-register {
    display: none;
  }

  .alert-btn-action {
    padding: 0.18rem 0.5rem;
    font-size: 0.71875rem;
  }

  .alert-banner-close {
    width: 24px;
    height: 24px;
  }

  .floating-bookclub-badge {
    bottom: 16px;
    left: 16px;
    padding: 0.5rem 0.85rem;
  }

  .badge-sub {
    font-size: 0.625rem;
  }

  .badge-main {
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .alert-banner-main {
    gap: 0.35rem;
  }

  .alert-badge {
    padding: 0.1rem 0.35rem;
    font-size: 0.625rem;
  }

  .text-mobile {
    font-size: 0.7rem;
  }

  .alert-btn-action {
    padding: 0.15rem 0.45rem;
    font-size: 0.6875rem;
  }
}

/* ==========================================================================
   Telegram Community & Full Poster Lightbox Modal
   ========================================================================== */

/* Telegram Footer Link */
.telegram-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #2481cc;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur-fast), transform var(--dur-fast);
}

.telegram-footer-link:hover {
  color: #1b6cae;
  transform: translateX(2px);
}

[data-theme="dark"] .telegram-footer-link {
  color: #38a5e8;
}

[data-theme="dark"] .telegram-footer-link:hover {
  color: #64bdf2;
}

/* Poster Thumbnail Zoom Overlay */
.bookclub-poster-frame {
  position: relative;
  cursor: zoom-in;
}

.poster-hover-zoom {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 20, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.bookclub-poster-frame:hover .poster-hover-zoom,
.bookclub-poster-frame:focus-visible .poster-hover-zoom {
  opacity: 1;
}

.poster-open-link {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

/* Telegram Callout in Modal */
.modal-telegram-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(36, 129, 204, 0.08);
  border: 1px solid rgba(36, 129, 204, 0.22);
  border-radius: var(--radius-md);
  margin-top: 0.35rem;
}

[data-theme="dark"] .modal-telegram-callout {
  background: rgba(36, 129, 204, 0.12);
  border-color: rgba(56, 165, 232, 0.3);
}

.telegram-callout-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2481cc 0%, #2aabee 100%);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(36, 129, 204, 0.3);
}

.telegram-callout-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 180px;
}

.telegram-callout-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.telegram-callout-desc {
  font-size: 0.78125rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.telegram-callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(135deg, #2481cc 0%, #2aabee 100%);
  color: #ffffff !important;
  font-size: 0.78125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(36, 129, 204, 0.25);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), filter var(--dur-fast);
}

.telegram-callout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.4);
  filter: brightness(1.06);
}

/* Telegram Action Button */
.btn-telegram {
  background: linear-gradient(135deg, #2481cc 0%, #2aabee 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(36, 129, 204, 0.25);
  flex: 1 1 auto;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #1b6cae 0%, #2298d5 100%);
  box-shadow: 0 4px 14px rgba(36, 129, 204, 0.4);
  transform: translateY(-2px);
}

/* --- Full Poster Lightbox Modal --- */
.poster-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.poster-lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.poster-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.poster-lightbox-dialog {
  position: relative;
  max-width: min(780px, 94vw);
  max-height: 94vh;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s var(--ease-out-expo);
  z-index: 2;
}

.poster-lightbox-overlay.open .poster-lightbox-dialog {
  transform: scale(1) translateY(0);
}

.poster-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.lightbox-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.lightbox-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.71875rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.lightbox-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-lightbox-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #2481cc 0%, #2aabee 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform var(--dur-fast), filter var(--dur-fast);
}

.btn-lightbox-tg:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-lightbox-download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.btn-lightbox-download:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.poster-lightbox-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}

.poster-lightbox-close:hover {
  background: var(--brand-soft);
  color: var(--brand);
  transform: rotate(90deg);
}

.poster-lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #0d0e11;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.poster-lightbox-full-img {
  max-width: 100%;
  max-height: calc(94vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.poster-lightbox-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 0.78125rem;
  flex-wrap: wrap;
}

.lightbox-footer-tag {
  color: var(--text-secondary);
  font-weight: 500;
}

.lightbox-footer-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lightbox-footer-register {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.lightbox-footer-register:hover {
  text-decoration: underline;
}

.lightbox-footer-tg {
  color: #2481cc;
  font-weight: 600;
  text-decoration: none;
}

.lightbox-footer-tg:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .modal-telegram-callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .telegram-callout-btn {
    width: 100%;
    justify-content: center;
  }

  .poster-lightbox-header {
    padding: 0.6rem 0.85rem;
  }

  .lightbox-title {
    display: none;
  }

  .poster-lightbox-footer-bar {
    padding: 0.6rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ===== improvements.css ===== */
:root {
  --header-height: 80px;
  --bg: #f8f5ee;
  --bg-subtle: #eee8dd;
  --bg-surface: #fffdf8;
  --bg-surface-elevated: #fffdf8;
  --text-primary: #282420;
  --text-secondary: #6a6259;
  --text-tertiary: #807467;
  --border: rgba(73, 48, 30, .12);
  --border-strong: rgba(73, 48, 30, .22);
  --brand: #a14d53;
  --brand-dark: #87404a;
  --font-editorial: var(--font-sans);
  --font-serif: var(--font-sans);
}
[data-theme="dark"] {
  --bg: #171514;
  --bg-subtle: #25201d;
  --bg-surface: #211d1b;
  --bg-surface-elevated: #28221f;
  --text-primary: #f5eee3;
  --text-secondary: #c0b2a4;
  --text-tertiary: #a79787;
  --border: rgba(244, 228, 210, .13);
  --border-strong: rgba(244, 228, 210, .24);
  --brand: #e09091;
  --brand-dark: #ecaaaa;
}
[hidden], .bento-card[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 2000; padding: .75rem 1rem; background: var(--bg); border: 2px solid var(--brand); border-radius: 6px; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 5px; }
section[id], main[id] { scroll-margin-top: 90px; }
.header, .header.scrolled, [data-theme="dark"] .header, [data-theme="dark"] .header.scrolled {
  background: #ffffff;
  border-bottom: 1px solid #e9e5df;
  --text-primary: #282420;
  --text-secondary: #6a6259;
  --text-tertiary: #807467;
  --bg-surface: #ffffff;
  --brand: #a14d53;
  --border: rgba(73, 48, 30, .12);
}
.header-container { min-height: 80px; }
.logo-name { font-size: 1.55rem; letter-spacing: -.06em; }
.header .logo { gap: .6rem; }
.header .logo-name { font-size: 1.4rem; }
.header .logo-icon-wrapper, .header .logo:hover .logo-icon-wrapper { width: 32px; height: 32px; background: transparent; border: 0; border-radius: 0; box-shadow: none; transform: none; }
.header .logo-img { width: 30px; height: 30px; }
.nav { gap: 1.7rem; }
.nav a { font-size: .79rem; }
.btn { min-height: 52px; border-radius: 6px; gap: 1.3rem; }
.btn-primary { background: #a14d53; color: #fff8ef; box-shadow: none; }
.btn-primary:hover { background: #87404a; box-shadow: 0 6px 18px rgba(108, 37, 48, .15); }
.btn-header { background: #a14d53; color: #fff8ef; min-height: 40px; padding-inline: 1.15rem; font-size: .75rem; }
.btn-header:hover { background: #87404a; color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border-strong); }
.hero { min-height: auto; padding: 106px 0 0; }
.hero-grid { grid-template-columns: 1.13fr .87fr; gap: 2.5rem; margin-bottom: 3rem; min-height: 510px; }
.hero-copy { max-width: 650px; padding-bottom: 1rem; }
.editorial-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem; color: var(--brand); font-size: .66rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.editorial-eyebrow::before { content: ''; width: 23px; height: 2px; background: currentColor; }
.coming-soon-dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px var(--brand-soft); }
.hero-title { font-size: clamp(4rem, 7vw, 6.4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.075em; margin-bottom: 2.2rem; }
.hero-title-accent { margin-top: .16em; gap: .17em; }
.hero-title-ending { position: relative; display: inline-block; font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: .95em; letter-spacing: -.075em; color: var(--brand); padding-bottom: .07em; }
.hero-title-ending::after { content: ''; position: absolute; left: .03em; right: .05em; bottom: 0; height: .045em; background: var(--brand); transform: scaleX(0) rotate(-3deg); transform-origin: left; transition: transform .7s .6s cubic-bezier(.16,1,.3,1); }
.hero-title.visible .hero-title-ending::after { transform: scaleX(1) rotate(-3deg); }
.hero-title-period { color: var(--text-primary); }
.highlight-yellow { padding: .07em .23em .12em; border-radius: 5px; background: #f5c518; min-width: 3.5em; font-size: .81em; box-shadow: 5px 6px 0 var(--brand); }
.highlight-yellow,
.translation-container:hover .highlight-yellow,
.translation-container:focus .highlight-yellow,
[data-theme="dark"] .highlight-yellow,
[data-theme="dark"] .translation-container:hover .highlight-yellow,
[data-theme="dark"] .translation-container:focus .highlight-yellow { background: #f5c518; color: #111111; }
.hero .lead { max-width: 465px; font-size: 1rem; line-height: 1.85; margin-bottom: 1.9rem; }
.hero-cta-group { gap: 1.5rem; margin-bottom: 2rem; align-items: center; }
.hero .btn-primary { border-radius: 999px; padding: .8rem 1rem .8rem 1.5rem; gap: 1.5rem; }
.hero .btn-primary .btn-arrow { width: 29px; height: 29px; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.14); }
.hero .btn-secondary { min-height: 44px; padding: .5rem 0; border: 0; border-radius: 0; gap: .6rem; font-size: .8rem; box-shadow: none; color: var(--brand); }
.hero .btn-secondary:hover { background: transparent; color: var(--text-primary); }
.hero-meta { padding-top: 1.4rem; padding-bottom: 0; margin-bottom: 0; border-top: 1px solid var(--border-strong); border-bottom: 0; max-width: 445px; gap: .85rem; }
.reader-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--brand); flex-shrink: 0; }
.meta-text { font-size: .76rem; }
.star-label { font-size: .68rem; margin-top: .2rem; }
.book-gallery { flex-direction: column; padding-top: 2rem; gap: 1rem; }
.gallery-frame { position: absolute; inset: .5rem .6rem 5.8rem; border: 1px solid var(--border-strong); border-radius: 12px; pointer-events: none; }
.gallery-frame::before, .gallery-frame::after { content: ''; position: absolute; width: 32px; height: 32px; border-color: var(--brand); border-style: solid; }
.gallery-frame::before { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 12px; }
.gallery-frame::after { right: -1px; top: -1px; border-width: 2px 2px 0 0; border-radius: 0 12px 0 0; }
.gallery-frame-label { position: absolute; left: 18px; top: -.6em; background: var(--bg); padding: 0 .65rem; font-size: .58rem; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.gallery-frame-star { position: absolute; right: 28px; top: -18px; background: var(--bg); padding: 0 .35rem; color: var(--brand); font-size: 1.8rem; line-height: 1; }
.book-gallery .hero-books-showcase { z-index: 1; }
.book-gallery-footer { position: relative; z-index: 4; display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .65rem 0; }
.gallery-caption { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.gallery-kicker { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
.gallery-book-title { font-size: .88rem; font-weight: 500; color: var(--text-primary); }
.gallery-book-title[lang="am"] { font-family: var(--font-amharic); font-size: .8rem; }
.gallery-controls { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.gallery-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--brand); background: var(--bg-surface); transition: background-color .2s, color .2s, border-color .2s; }
.gallery-arrow:hover { color: #fff8ef; background: #a14d53; border-color: #a14d53; }
.gallery-counter { font-size: .64rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.hero-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 0; border-top: 1px solid var(--border-strong); background: transparent; border-radius: 0; box-shadow: none; padding: 1.45rem 0; margin: 0; overflow: visible; }
.ribbon-sep { display: none; }
.hero-ribbon-item { border-radius: 0; min-height: 40px; justify-content: center; white-space: normal; text-align: left; font-size: .69rem; padding: .3rem 1rem; gap: .7rem; line-height: 1.5; border-right: 1px solid var(--border-strong); }
.hero-ribbon-item:first-child { padding-left: 0; justify-content: flex-start; }
.hero-ribbon-item:last-child { border-right: 0; padding-right: 0; }
.hero-ribbon-item:hover { background: transparent; color: var(--brand); }
.ribbon-svg { width: 18px; height: 18px; }
.section { padding-block: clamp(5rem, 8vw, 7rem); }
.section-tag { font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1.2rem; }
.section-title, .split-label h2, .notify-title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(2.8rem, 4.8vw, 4.3rem); letter-spacing: -.045em; line-height: 1.1; }
.section-desc { font-size: .96rem; line-height: 1.8; }
.section-about { background: #a14d53; --text-primary: #fff1dd; --text-secondary: #e0c8bf; --text-tertiary: #d5b7ae; --brand: #e9bf67; --brand-dark: #ffe0a0; --brand-light: #ffe0a0; --border: rgba(255, 235, 212, .17); }
.split { grid-template-columns: 1fr 1fr; gap: 5rem; }
.split-label h2 { max-width: 450px; }
.split-body { gap: 1rem; }
.split-body .lead-split { font-size: 1.1rem; color: var(--text-primary); font-weight: 400; line-height: 1.75; }
.split-body p { font-size: .9rem; }
.metrics-grid { gap: 1.6rem; padding-top: 1.6rem; margin-top: .7rem; }
.metric-num { font-family: var(--font-sans); font-size: clamp(1.2rem, 2.2vw, 1.8rem); font-weight: 500; font-style: normal; }
.metric-desc { font-size: .72rem; line-height: 1.6; }
.platform-section .section-head-flex { align-items: flex-start; margin-bottom: 2.8rem; }
.platform-section .section-title { max-width: 560px; }
.category-filters { align-self: flex-end; border: 1px solid var(--border-strong); border-radius: 6px; padding: .3rem; gap: .15rem; background: transparent; }
.filter-btn { padding: .65rem .8rem; font-size: .7rem; border-radius: 3px; }
.filter-btn.active { background: #a14d53; color: #fff8ef; box-shadow: none; }
.bento-grid { gap: 1.4rem; }
.bento-card, .research-card { background: var(--bg-surface); border: 1px solid var(--border-strong); border-radius: 8px; box-shadow: none; }
.bento-card:hover, .research-card:hover { border-color: var(--brand); box-shadow: 0 14px 28px rgba(66, 43, 24, .07); transform: translateY(-5px); }
.bento-badge { top: .8rem; left: .9rem; border: 0; background: var(--bg-surface); border-radius: 3px; font-size: .59rem; padding: .35rem .5rem; }
.bento-content { padding: 1.6rem; }
.bento-index { font-size: .61rem; letter-spacing: .1em; font-weight: 500; }
.bento-content h3 { font-family: var(--font-sans); font-size: 1.5rem; line-height: 1.25; font-weight: 500; margin: .35rem 0 .9rem; }
.bento-content p { font-size: .8rem; line-height: 1.8; }
.bento-tag-list { gap: .4rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.bento-tag-list span { background: transparent; padding: .1rem 0; color: var(--text-secondary); border: 0; border-radius: 0; font-size: .59rem; }
.bento-tag-list span + span::before { content: '·'; padding-right: .4rem; color: var(--brand); }
.research-section { background: var(--bg-subtle); }
.research-section .section-head { max-width: none; display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 4rem; margin-bottom: 2.8rem; }
.research-section .section-title { font-size: clamp(2.3rem, 3.9vw, 3.5rem); margin-bottom: 0; line-height: 1.13; }
.research-intro-copy { padding-bottom: .15rem; }
.research-intro-copy .section-desc { font-size: .9rem; line-height: 1.85; }
.research-section .research-grid { margin-top: 0; gap: 1.6rem; }
.research-section .research-card { border-radius: 12px; border-color: var(--border-strong); }
.research-content { padding: 1.9rem 1.7rem 1.5rem; }
.research-content h3 { font-family: var(--font-sans); font-size: clamp(1.45rem, 2vw, 1.8rem); font-weight: 500; line-height: 1.2; letter-spacing: -.04em; margin: .35rem 0 1rem; }
.research-content p { font-size: .87rem; line-height: 1.85; margin-bottom: 1.7rem; }
.research-meta-tags { flex-wrap: wrap; gap: .45rem; padding-top: .5rem; }
.research-meta-tags span { font-size: .62rem; padding: .4rem .6rem; border: 1px solid var(--border); color: var(--text-secondary); background: transparent; border-radius: 4px; }
.card-pill { font-size: .6rem; letter-spacing: .08em; }
.notify-section { padding-block: 6rem; }
.notify-card { background: #a14d53; padding: 3.5rem; border: 0; border-radius: 12px; box-shadow: none; gap: 3rem; align-items: center; }
.notify-card::after { display: none; }
.notify-copy { --text-primary: #fff1dd; --text-secondary: #e0c8bf; --brand: #e9bf67; --border: rgba(255,235,212,.16); }
.notify-title { font-size: clamp(3rem, 4.5vw, 4.2rem); max-width: 400px; }
.notify-desc { font-size: .94rem; margin-bottom: 1.8rem; }
.notify-copy .status-badge { background: transparent; border: 1px solid rgba(255,235,212,.25); color: #f1d9c3; box-shadow: none; padding: .4rem .7rem; font-size: .63rem; }
.notify-copy .status-pulse { background: #e9bf67; box-shadow: none; animation: none; width: 5px; height: 5px; }
.notify-perks-grid { gap: 1.4rem 1rem; }
.perk-item { padding: 0; border: 0; border-radius: 0; background: transparent; }
.perk-header { align-items: flex-start; gap: .6rem; }
.perk-bullet { width: auto; height: auto; color: #e9bf67; background: transparent; font-family: var(--font-editorial); font-size: 1.1rem; line-height: 1; }
.perk-label { font-size: .75rem; font-weight: 500; }
.perk-item p { font-size: .73rem; line-height: 1.7; padding-left: 1.7rem; }
.form-card-inner { border: 0; border-radius: 8px; background: var(--bg-surface); padding: 2rem; box-shadow: 0 8px 32px rgba(25, 7, 11, .1); }
.form-card-header { display: block; margin-bottom: 1.5rem; padding-bottom: 1.2rem; }
.form-card-kicker { font-size: .6rem; letter-spacing: .12em; }
.form-card-title { font-family: var(--font-sans); font-size: 1.6rem; font-weight: 500; margin-top: .45rem; }
.cohort-status-pill { display: inline-flex; margin-top: .75rem; padding: 0; border: 0; background: transparent; font-size: .6rem; }
.interest-heading { font-size: .73rem; margin-bottom: .85rem; }
.interest-chip { background: transparent; border-color: var(--border-strong); border-radius: 4px; font-size: .68rem; padding: .5rem .7rem; }
.interest-chip.active { background: #a14d53; border-color: #a14d53; color: #fff8ef; }
.email-label { font-size: .7rem; font-weight: 500; }
.form input[type="email"] { background: var(--bg); border-radius: 5px; font-size: .8rem; }
.btn-submit { min-height: 50px; font-size: .8rem; }
.signup-note { font-size: .65rem; color: var(--text-secondary); line-height: 1.7; }
.form-msg { font-size: .78rem; }
.footer { background: var(--bg); padding: 4rem 0 1.5rem; }
.footer-top { border-bottom: 0; margin-bottom: 0; padding-bottom: 2.5rem; }
.footer-tagline { font-size: .84rem; line-height: 1.8; }
.footer-col a { font-size: .78rem; }
.footer-locale, .hotkey-tip { font-size: .68rem; }
.footer-bottom { font-size: .68rem; padding-top: 1.5rem; border-top: 1px solid var(--border-strong); }
.translation-container.show-english .word-amharic { opacity: 0; transform: translateY(-12px); }
.translation-container.show-english .word-english { opacity: 1; transform: translateY(0); }
.translation-container:not(.show-english):focus:not(:hover) .word-amharic { opacity: 1; transform: translateY(0); }
.translation-container:not(.show-english):focus:not(:hover) .word-english { opacity: 0; transform: translateY(12px); }
@media (max-width: 1100px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .7rem; }
  .hero-title { font-size: clamp(3.6rem, 6.9vw, 4.6rem); }
  .hero-grid { gap: 2rem; }
  .split { gap: 3rem; }
  .notify-card { padding: 2.5rem; gap: 2rem; }
}
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; align-items: center; min-height: 0; }
  .hero-visual-wrapper { order: 1; width: 100%; max-width: 480px; margin: 0 auto; }
  .book-gallery .hero-books-showcase { margin-bottom: 0; }
  .hero-title { font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .hero-copy { min-width: 0; }
  .hero .lead { font-size: .87rem; }
  .hero-cta-group { flex-direction: row; align-items: center; gap: 1.5rem; }
  .hero-ribbon-item { font-size: .6rem; padding-inline: .6rem; gap: .4rem; }
  .ribbon-svg { width: 15px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split-label h2 { max-width: 600px; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
  .research-section .section-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .research-intro-copy { max-width: 600px; }
  .notify-card { grid-template-columns: 1fr; padding: 3rem; gap: 2.5rem; }
  .notify-title { max-width: 600px; }
}
@media (max-width: 768px) {
  :root { --header-height: 66px; }
  .header-container { min-height: 66px; }
  .header .logo-name { font-size: 1.35rem; }
  .hero { padding-top: 94px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
  .hero-copy { max-width: 550px; }
  .hero-title { font-size: clamp(3.1rem, 10.5vw, 4.6rem); }
  .hero-title-accent { align-items: center; gap: .17em; flex-wrap: nowrap; }
  .hero .lead { font-size: .98rem; }
  .hero-cta-group { display: flex; flex-direction: row; }
  .hero-cta-group .btn { width: auto; flex: none; font-size: .78rem; }
  .hero-meta { margin-bottom: 0; }
  .hero-ribbon { display: flex; overflow-x: auto; gap: 0; padding: 1rem 0; }
  .hero-ribbon-item { min-width: 155px; font-size: .65rem; white-space: normal; padding: .3rem 1rem; }
  .hero-ribbon-item:last-child { padding-right: .5rem; }
  .section { padding-block: 4rem; }
  .section-title, .split-label h2 { font-size: 3rem; }
  .section-head-flex { gap: 1.5rem; }
  .category-filters { flex-wrap: wrap; }
  .notify-card { padding: 2.2rem; }
  .notify-title { font-size: 3.3rem; }
  .form input[type="email"] { font-size: 16px; }
}
@media (max-width: 540px) {
  .editorial-eyebrow { font-size: .59rem; margin-bottom: 1.5rem; }
  .hero-title { font-size: clamp(2.9rem, 11.4vw, 3.8rem); }
  .hero .lead { font-size: .9rem; }
  .hero-cta-group { flex-direction: column; align-items: stretch; gap: .8rem; }
  .hero-cta-group .btn { width: 100%; flex: auto; }
  .hero .btn-secondary { min-height: 40px; }
  .highlight-yellow { box-shadow: 3px 4px 0 var(--brand); }
  .book-gallery { gap: .6rem; }
  .gallery-frame { inset-inline: 0; bottom: 5rem; }
  .book-gallery-footer { padding-inline: 0; gap: .5rem; }
  .gallery-book-title { font-size: .8rem; }
  .gallery-kicker { font-size: .5rem; }
  .gallery-controls { gap: .3rem; }
  .gallery-arrow { width: 38px; height: 38px; }
  .gallery-counter { font-size: .58rem; }
  .metrics-grid { gap: 1rem; }
  .metric-num { font-size: clamp(1.1rem, 4.9vw, 1.5rem); }
  .metric-desc { font-size: .65rem; }
  .bento-grid, .research-grid { grid-template-columns: 1fr; }
  .bento-content { padding: 1.5rem; }
  .bento-content h3 { font-size: 1.5rem; }
  .bento-content p { font-size: .85rem; }
  .filter-btn { font-size: .63rem; padding: .6rem .65rem; }
  .research-section .section-head { margin-bottom: 2rem; }
  .research-section .section-title { font-size: 2.25rem; }
  .research-content { padding: 1.5rem 1.3rem; }
  .research-content h3 { font-size: 1.5rem; }
  .research-content p { font-size: .85rem; }
  .notify-card { padding: 1.8rem 1.15rem; border-radius: 8px; }
  .notify-title { font-size: 3rem; }
  .notify-perks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem .75rem; }
  .perk-label { font-size: .7rem; }
  .perk-item p { padding-left: 0; font-size: .69rem; }
  .form-card-inner { padding: 1.4rem 1.1rem; }
  .form-card-title { font-size: 1.5rem; }
  .footer-top { gap: 2rem; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-card:hover, .research-card:hover { transform: none; }
  .hero-title-ending::after { transform: scaleX(1) rotate(-3deg); transition: none; }
}

/* Minimal coming-soon direction */
:root {
  --header-height: 72px;
  --bg: #fbfaf8;
  --bg-subtle: #f5f3ef;
  --bg-surface: #fbfaf8;
  --bg-surface-elevated: #ffffff;
  --text-primary: #242321;
  --text-secondary: #6d6a65;
  --text-tertiary: #918c84;
  --brand: #a14d53;
  --brand-dark: #87404a;
  --brand-soft: rgba(161, 77, 83, .08);
  --border: rgba(36, 35, 33, .09);
  --border-strong: rgba(36, 35, 33, .15);
  --font-editorial: var(--font-sans);
  --font-serif: var(--font-sans);
}
[data-theme="dark"] {
  --bg: #171716;
  --bg-subtle: #1e1e1c;
  --bg-surface: #171716;
  --bg-surface-elevated: #222220;
  --text-primary: #f1efea;
  --text-secondary: #b2aea6;
  --text-tertiary: #89857e;
  --brand: #d58a8e;
  --brand-dark: #e2a2a5;
  --border: rgba(241, 239, 234, .1);
  --border-strong: rgba(241, 239, 234, .16);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); }
.ambient-noise, .progress-bar { display: none; }
.header, .header.scrolled, [data-theme="dark"] .header, [data-theme="dark"] .header.scrolled {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none; -webkit-backdrop-filter: none;
  --text-primary: #242321;
  --text-secondary: #6d6a65;
  --text-tertiary: #918c84;
  --brand: #a14d53;
  --border: rgba(36, 35, 33, .09);
  --bg-surface: #fbfaf8;
}
[data-theme="dark"] .header, [data-theme="dark"] .header.scrolled {
  --text-primary: #f1efea;
  --text-secondary: #b2aea6;
  --text-tertiary: #89857e;
  --brand: #d58a8e;
  --bg-surface: #171716;
  --border: rgba(241, 239, 234, .1);
}
.header-container { min-height: 72px; }
.logo-name, .header .logo-name { font-size: 1.25rem; font-weight: 600; letter-spacing: -.055em; }
.nav { gap: 1.8rem; }
.nav a { font-size: .76rem; color: var(--text-secondary); }
.nav a:hover, .nav a.active { color: var(--text-primary); }
.theme-toggle, .menu-btn { border: 1px solid var(--border); box-shadow: none; }
.btn, .btn-primary, .btn-header, .btn-submit, .filter-btn.active, .interest-chip.active {
  border-radius: 4px;
  box-shadow: none;
}
.btn-primary, .btn-header, .btn-submit, .filter-btn.active, .interest-chip.active { background: var(--brand); }
.btn-primary:hover, .btn-header:hover, .btn-submit:hover { background: var(--brand-dark); box-shadow: none; transform: translateY(-1px); }
.btn-header { min-height: 39px; font-size: .72rem; }
.hero { min-height: 0; padding: 132px 0 0; }
.hero-grid { min-height: 0; grid-template-columns: 1fr .72fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; margin-bottom: 4rem; }
.hero-copy { max-width: 590px; padding: 0; }
.editorial-eyebrow { margin-bottom: 1.5rem; color: var(--text-secondary); font-size: .68rem; letter-spacing: .1em; }
.editorial-eyebrow::before { width: 16px; height: 1px; background: var(--brand); }
.hero-title { margin-bottom: 1.5rem; font-size: clamp(3.8rem, 7.4vw, 6rem); line-height: 1.03; font-weight: 500; letter-spacing: -.075em; }
.hero-title-accent { gap: .16em; }
.highlight-yellow, .highlight-yellow:hover, .translation-container:hover .highlight-yellow,
.translation-container:focus .highlight-yellow, [data-theme="dark"] .highlight-yellow,
[data-theme="dark"] .translation-container:hover .highlight-yellow,
[data-theme="dark"] .translation-container:focus .highlight-yellow {
  min-width: 0; padding: 0; background: transparent; color: var(--text-primary); box-shadow: none; font-size: .81em;
}
.hero .highlight-yellow .word-amharic {
  padding: .08em .28em .14em;
  border-radius: 3px;
  background: #f5c518;
  color: #111;
}
.hero .highlight-yellow .word-english {
  padding: .08em .28em .14em;
  border-radius: 3px;
  background: #f5c518;
  color: #111;
}
.hero-title-ending { color: var(--brand); font-size: .95em; font-weight: 500; }
.hero-title-ending::after { display: none; }
.hero .lead { max-width: 430px; margin-bottom: 1.7rem; color: var(--text-secondary); font-size: .95rem; line-height: 1.8; }
.hero-cta-group { gap: 1.25rem; margin-bottom: 1.7rem; }
.hero .btn-primary { min-height: 46px; padding: .65rem 1rem; border-radius: 4px; gap: 1rem; }
.hero .btn-primary .btn-arrow { width: 17px; height: 17px; padding: 0; background: none; }
.hero .btn-secondary { color: var(--text-secondary); font-size: .78rem; }
.hero .btn-secondary:hover { color: var(--brand); }
.hero-meta { max-width: 430px; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.reader-mark { width: 34px; height: 34px; border: 0; color: var(--brand); }
.meta-text { font-size: .72rem; }
.star-label { color: var(--text-tertiary); font-size: .65rem; }
.book-gallery { padding-top: 0; gap: .7rem; }
.gallery-frame, .gallery-frame-star { display: none; }
.book-gallery .hero-books-showcase { min-height: 430px; margin-bottom: 0; }
.book-gallery-footer { padding: .85rem 0 0; border-top: 1px solid var(--border); }
.gallery-kicker { font-size: .55rem; }
.gallery-book-title { font-size: .82rem; }
.gallery-arrow { width: 34px; height: 34px; border-radius: 50%; background: transparent; }
.gallery-arrow:hover { color: var(--bg); background: var(--brand); border-color: var(--brand); }
.hero-ribbon { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0; padding: 1.1rem 0; border-top: 1px solid var(--border); }
.hero-ribbon-item { min-height: 28px; justify-content: flex-start; padding: .2rem 1.1rem; border-right: 1px solid var(--border); color: var(--text-secondary); font-size: .65rem; }
.hero-ribbon-item:first-child { padding-left: 0; }
.hero-ribbon-item:last-child { border-right: 0; }
.hero-ribbon-item:hover { color: var(--brand); }
.ribbon-svg { width: 15px; height: 15px; color: var(--text-tertiary); }
.section { padding-block: clamp(4.5rem, 8vw, 7rem); }
.section-tag { margin-bottom: .9rem; color: var(--brand); font-size: .62rem; letter-spacing: .12em; }
.section-title, .split-label h2, .notify-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.08; font-weight: 500; letter-spacing: -.065em; }
.section-desc { color: var(--text-secondary); font-size: .9rem; line-height: 1.8; }
.section-about, .research-section { background: var(--bg-subtle); --text-primary: #242321; --text-secondary: #6d6a65; --text-tertiary: #918c84; --brand: #a14d53; --brand-dark: #87404a; --brand-light: #a54a52; --border: rgba(36, 35, 33, .09); }
[data-theme="dark"] .section-about, [data-theme="dark"] .research-section { --text-primary: #f1efea; --text-secondary: #b2aea6; --text-tertiary: #89857e; --brand: #d58a8e; --brand-dark: #e2a2a5; --border: rgba(241, 239, 234, .1); }
.split { gap: clamp(2rem, 7vw, 7rem); }
.split-body { gap: .9rem; }
.split-body .lead-split { font-size: 1rem; font-weight: 400; line-height: 1.8; }
.split-body p { color: var(--text-secondary); font-size: .86rem; }
.metrics-grid { gap: 1.2rem; }
.metric-num { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 500; }
.metric-desc { color: var(--text-secondary); font-size: .68rem; }
.platform-section .section-head-flex { margin-bottom: 2rem; }
.category-filters { border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; padding: 0; gap: 1.1rem; }
.filter-btn { padding: .55rem 0; border-radius: 0; color: var(--text-secondary); }
.filter-btn.active { background: transparent; color: var(--text-primary); box-shadow: inset 0 -1px var(--brand); }
.bento-grid, .research-grid { gap: 1rem; }
.bento-card, .research-card, .research-section .research-card { border: 1px solid var(--border); border-radius: 4px; box-shadow: none; }
.bento-card:hover, .research-card:hover { border-color: var(--border-strong); box-shadow: none; transform: translateY(-2px); }
.bento-badge { border-radius: 2px; }
.bento-content { padding: 1.35rem; }
.bento-content h3, .research-content h3 { font-weight: 500; letter-spacing: -.04em; }
.bento-content p, .research-content p { color: var(--text-secondary); line-height: 1.75; }
.research-section .section-head { margin-bottom: 2rem; gap: 3rem; }
.research-section .section-title { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
.research-content { padding: 1.5rem; }
.research-meta-tags span { border-radius: 3px; }
.notify-section { padding-block: 5rem; }
.notify-card { padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--border); border-radius: 4px; background: var(--bg-subtle); box-shadow: none; gap: 2.5rem; }
.notify-copy { --text-primary: #242321; --text-secondary: #6d6a65; --brand: #a14d53; --border: rgba(36,35,33,.12); }
[data-theme="dark"] .notify-copy { --text-primary: #f1efea; --text-secondary: #b2aea6; --brand: #d58a8e; --border: rgba(241,239,234,.14); }
.notify-title { font-size: clamp(2.7rem, 4.5vw, 3.8rem); }
.notify-copy .status-badge { border: 1px solid var(--border); color: var(--text-secondary); }
.notify-copy .status-pulse { background: var(--brand); }
.perk-bullet { color: var(--brand); }
.form-card-inner { border: 1px solid var(--border); border-radius: 4px; background: var(--bg); box-shadow: none; }
.interest-chip { border-radius: 3px; }
.form input[type="email"] { border: 1px solid var(--border-strong); border-radius: 3px; }
.footer { padding: 3.5rem 0 1.25rem; }
.footer-top { padding-bottom: 2rem; }
.footer-bottom { border-top: 1px solid var(--border); }
:focus-visible { outline-offset: 3px; }
@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 620px; }
  .hero-visual-wrapper { max-width: 440px; }
  .book-gallery .hero-books-showcase { min-height: 360px; }
}
@media (max-width: 768px) {
  .hero { padding-top: 94px; }
  .hero-grid { gap: 1.7rem; }
  .hero-title { font-size: clamp(3.2rem, 11vw, 4.7rem); }
  .hero-ribbon { overflow: visible; }
  .hero-ribbon-item { min-width: 0; padding-inline: .75rem; }
  .hero-ribbon-item:nth-of-type(odd) { padding-left: 0; }
  .section { padding-block: 4rem; }
  .notify-card { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .header-container { min-height: 66px; }
  .hero-cta-group { flex-direction: row; align-items: center; gap: .9rem; }
  .hero-cta-group .btn { width: auto; flex: none; }
  .hero .btn-primary { padding-inline: .85rem; font-size: .75rem; }
  .hero .btn-secondary { font-size: .73rem; }
  .book-gallery .hero-books-showcase { min-height: 300px; }
  .hero-ribbon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .35rem; }
  .hero-ribbon-item, .hero-ribbon-item:nth-of-type(odd) { min-height: 34px; padding: .25rem .3rem; border: 0; }
  .ribbon-svg { flex: 0 0 15px; }
  .section-title, .split-label h2 { font-size: 2.6rem; }
  .notify-card { padding: 1.2rem; }
  .notify-title { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Event showcase polish */
:root:not([data-theme="dark"]) {
  --bg: #fbf8f2;
  --bg-subtle: #f3eee6;
  --bg-surface: #fffdf9;
}
:root {
  --brand: #a14d53;
  --brand-dark: #682630;
  --brand-soft: rgba(161, 77, 83, .09);
  --accent-gold: #c3944e;
}
body { background: var(--bg); }
.header, .header.scrolled {
  background: var(--bg);
  border-bottom-color: rgba(73, 48, 30, .1);
  box-shadow: 0 4px 24px rgba(52, 38, 27, .035);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header-container { min-height: 76px; }
.header .logo-name { letter-spacing: -.075em; }
.header .logo-img { filter: none; }
.nav a { position: relative; transition: color .2s ease; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -.45rem;
  height: 1px; background: var(--brand);
  transition: right .25s ease;
}
.nav a:hover { color: var(--brand); }
.nav a:hover::after { right: 0; }
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 142px;
  overflow: visible; /* no clip: Chrome mis-culls the 3D books inside a clipped box while scrolling */
  background:
    radial-gradient(ellipse at 83% 36%, rgba(221, 193, 151, .2), transparent 34%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 78%);
}
.hero-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-deco::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(60vw, 760px); aspect-ratio: 1;
  right: -19%; top: 8%; border-radius: 50%;
  border: 1px solid rgba(161, 77, 83, .075);
  box-shadow: 0 0 0 38px rgba(161, 77, 83, .018), 0 0 0 76px rgba(161, 77, 83, .014);
  pointer-events: none;
}
.hero-grid { gap: clamp(3rem, 7vw, 7.5rem); margin-bottom: 3.1rem; }
.editorial-eyebrow { color: var(--brand); font-weight: 600; letter-spacing: .13em; }
.coming-soon-dot { background: #b88942; box-shadow: 0 0 0 4px rgba(184, 137, 66, .14); }
.hero-title { letter-spacing: -.082em; }
.hero .lead { color: #5e5953; }
.hero .btn-primary, .btn-header {
  background: linear-gradient(135deg, #8b3942, #702b35);
  box-shadow: 0 8px 18px rgba(120, 56, 62, .15);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero .btn-primary:hover, .btn-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(120, 56, 62, .2);
}
.hero .btn-secondary { transition: color .2s ease, transform .2s ease; }
.hero .btn-secondary:hover { transform: translateX(3px); }
.hero-meta { border-color: rgba(73, 48, 30, .15); }
.reader-mark { background: rgba(161, 77, 83, .07); }
.book-gallery { position: relative; }
.book-gallery::before {
  content: '';
  position: absolute;
  width: 82%; aspect-ratio: 1;
  left: 9%; top: 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 206, 174, .56) 0%, rgba(225, 206, 174, .2) 47%, transparent 72%);
  pointer-events: none;
}
.book-gallery::after {
  content: 'AFRICAN STORIES  /  GLOBAL READERS';
  position: absolute;
  z-index: 5;
  right: -1.15rem; top: 15%;
  padding: .5rem .7rem;
  color: #65584b;
  border: 1px solid rgba(91, 69, 48, .15);
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 8px 24px rgba(50, 38, 26, .07);
  font-size: .52rem; font-weight: 600; letter-spacing: .13em;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right top;
  white-space: nowrap;
  pointer-events: none;
}
.book-gallery-footer { position: relative; z-index: 6; }
.gallery-kicker { color: var(--brand); font-weight: 600; }
.gallery-arrow { transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.gallery-arrow:hover { transform: translateY(-2px); }
.hero-ribbon { border-color: rgba(73, 48, 30, .16); }
.hero-ribbon-item { transition: color .2s ease, background-color .2s ease; }
.hero-ribbon-item:hover .ribbon-svg { color: var(--brand); }
.section-about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(118deg, #f0e8dc 0%, #f6f1e8 54%, #eee5d8 100%);
  border-block: 1px solid rgba(89, 66, 45, .08);
}
.section-about::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(52vw, 650px);
  aspect-ratio: 1;
  left: -13%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(161, 77, 83, .07);
  box-shadow: 0 0 0 34px rgba(161, 77, 83, .018), 0 0 0 68px rgba(161, 77, 83, .012);
  pointer-events: none;
}
.section-about .section-tag { color: var(--brand); }
.section-about .metrics-grid { border-color: rgba(89, 66, 45, .14); }
.bento-card, .research-card, .form-card-inner {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,253,249,.72));
  border-color: rgba(73, 48, 30, .12);
}
.bento-card:hover, .research-card:hover {
  border-color: rgba(161, 77, 83, .35);
  box-shadow: 0 18px 36px rgba(66, 43, 24, .08);
}
.bento-card { overflow: hidden; }
.bento-card::after {
  content: '';
  position: absolute; inset: auto 0 0;
  height: 2px; background: linear-gradient(90deg, var(--brand), #d6b270);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.bento-card:hover::after { transform: scaleX(1); }
.notify-card { background: linear-gradient(125deg, #f5f0e7, #f0e9de); }
.form-card-inner { box-shadow: 0 14px 36px rgba(52, 38, 27, .045); }
:focus-visible { outline-color: #a45a4e; }
[data-theme="dark"] .hero {
  background: radial-gradient(ellipse at 83% 36%, rgba(174, 132, 82, .11), transparent 36%), var(--bg);
}
[data-theme="dark"] .section-about {
  background: radial-gradient(ellipse at 85% 45%, rgba(174, 132, 82, .08), transparent 38%), #211f1c;
  border-color: rgba(244, 228, 210, .08);
}
[data-theme="dark"] .section-about .metrics-grid { border-color: rgba(241, 239, 234, .14); }
[data-theme="dark"] .header, [data-theme="dark"] .header.scrolled {
  background: rgba(23, 21, 20, .93);
  border-bottom-color: rgba(244, 228, 210, .12);
}
[data-theme="dark"] .hero .lead { color: var(--text-secondary); }
[data-theme="dark"] .book-gallery::after { color: #e6d7c4; background: rgba(33, 29, 27, .92); border-color: rgba(244, 228, 210, .16); }
[data-theme="dark"] .bento-card, [data-theme="dark"] .research-card, [data-theme="dark"] .form-card-inner {
  background: linear-gradient(145deg, rgba(40,34,31,.96), rgba(31,28,26,.92));
}
[data-theme="dark"] .notify-card { background: linear-gradient(125deg, #27211e, #211d1b); }
@media (max-width: 900px) {
  .hero { padding-top: 112px; }
  .book-gallery::after { right: -.35rem; }
}
@media (max-width: 540px) {
  .hero { padding-top: 96px; }
  .hero-deco::before { width: 115vw; top: 28%; right: -60%; }
  .book-gallery::after { right: -.4rem; top: 14%; font-size: .46rem; }
  .hero .btn-primary, .btn-header { box-shadow: 0 5px 14px rgba(120, 56, 62, .13); }
}

/* Feature showcase */
.platform-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fbf8f2 0%, #f8f5ef 100%);
}
.platform-section::before {
  content: '';
  position: absolute;
  top: 9rem;
  right: -22rem;
  width: 38rem;
  aspect-ratio: 1;
  border: 1px solid rgba(161, 77, 83, .055);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(161, 77, 83, .012), 0 0 0 6rem rgba(161, 77, 83, .01);
  pointer-events: none;
}
.platform-section > .container { position: relative; z-index: 1; }
.platform-section .section-head-flex {
  align-items: end;
  margin-bottom: 2.6rem;
  gap: 2rem 3rem;
}
.platform-section .section-head-flex > div:first-child { max-width: 650px; }
.platform-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.05rem;
}
.platform-section .section-tag::before {
  content: '';
  width: 23px;
  height: 1px;
  background: currentColor;
}
.platform-section .section-title {
  max-width: 620px;
  margin-bottom: .85rem;
  font-size: clamp(2.6rem, 4.7vw, 4.25rem);
  line-height: 1.04;
}
.platform-section .section-desc { max-width: 520px; }
.category-filters {
  align-self: end;
  flex-wrap: wrap;
  gap: .2rem;
  padding: .3rem;
  border: 1px solid rgba(73, 48, 30, .12);
  border-radius: 999px;
  background: rgba(255, 253, 249, .78);
  box-shadow: 0 4px 14px rgba(52, 38, 27, .035);
}
.filter-btn {
  min-height: 38px;
  padding: .55rem .9rem;
  border-radius: 999px;
  color: #716960;
  font-size: .68rem;
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.filter-btn:hover { color: var(--brand); background: rgba(161, 77, 83, .06); }
.filter-btn.active {
  color: #fffaf4;
  background: #a14d53;
  box-shadow: 0 3px 9px rgba(161, 77, 83, .18);
}
.bento-grid { gap: 1.15rem; align-items: stretch; }
.bento-card, .bento-card.featured-bento {
  border: 1px solid rgba(73, 48, 30, .11);
  border-radius: 9px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 5px 16px rgba(52, 38, 27, .025);
  transition: transform .35s cubic-bezier(.2,.75,.25,1), border-color .25s ease, box-shadow .35s ease;
}
.bento-card:hover, .bento-card.featured-bento:hover {
  transform: translateY(-5px);
  border-color: rgba(161, 77, 83, .25);
  box-shadow: 0 18px 36px rgba(52, 38, 27, .085);
}
.bento-img {
  aspect-ratio: 1.55 / 1;
  background: #eee7dc;
}
.bento-img::after {
  content: '';
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(180deg, transparent, rgba(39, 28, 24, .12));
  opacity: .65;
  transition: opacity .3s ease;
  pointer-events: none;
}
.bento-card:hover .bento-img::after { opacity: .25; }
.bento-img img {
  transition: transform .75s cubic-bezier(.2,.75,.25,1), filter .5s ease;
}
.bento-card:hover .bento-img img { transform: scale(1.045); }
.bento-badge {
  top: .85rem;
  left: .85rem;
  padding: .38rem .58rem;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 4px 12px rgba(37, 26, 19, .08);
  color: #51483f;
  font-size: .57rem;
  letter-spacing: .035em;
  backdrop-filter: blur(12px);
}
.bento-content { padding: 1.3rem 1.35rem 1.4rem; }
.bento-index {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: .7rem;
  color: var(--brand);
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.bento-index::before { content: ''; width: 15px; height: 1px; background: currentColor; }
.bento-content h3 {
  margin: 0 0 .65rem;
  color: #302a25;
  font-size: clamp(1.22rem, 1.6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -.045em;
  transition: color .2s ease;
}
.bento-card:hover .bento-content h3 { color: var(--brand); }
.bento-content p { margin-bottom: 1.1rem; color: #716a62; font-size: .76rem; line-height: 1.75; }
.bento-tag-list { gap: .35rem .65rem; padding-top: .7rem; border-top: 1px solid rgba(73, 48, 30, .09); }
.bento-tag-list span { color: #766e65; font-size: .57rem; line-height: 1.5; }
.bento-tag-list span + span::before { color: #b78959; }
.ai-feature-card {
  order: -1;
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 390px;
}
.ai-feature-card .bento-img { grid-column: 1; grid-row: 1; height: 100%; min-height: 390px; aspect-ratio: auto; }
.ai-feature-card .bento-content { grid-column: 2; grid-row: 1; justify-content: center; padding: clamp(1.5rem, 3vw, 2.7rem); }
.ai-feature-card .bento-content h3 { font-size: clamp(1.7rem, 2.7vw, 2.35rem); }
.ai-feature-card .bento-content p { font-size: .81rem; }
.ai-feature-card .bento-badge { left: .85rem; }
[data-theme="dark"] .platform-section {
  background: linear-gradient(180deg, #191817 0%, #1c1a18 100%);
}
[data-theme="dark"] .platform-section::before { border-color: rgba(221, 169, 102, .08); box-shadow: 0 0 0 3rem rgba(221, 169, 102, .018), 0 0 0 6rem rgba(221, 169, 102, .012); }
[data-theme="dark"] .category-filters { border-color: rgba(244, 228, 210, .13); background: rgba(36, 32, 29, .8); }
[data-theme="dark"] .filter-btn { color: #c1b5a7; }
[data-theme="dark"] .filter-btn:hover { color: #f0c8a0; background: rgba(224, 144, 145, .08); }
[data-theme="dark"] .filter-btn.active { color: #221b19; background: #e0a0a0; }
[data-theme="dark"] .bento-card, [data-theme="dark"] .bento-card.featured-bento {
  border-color: rgba(244, 228, 210, .11);
  background: rgba(36, 32, 29, .9);
  box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
}
[data-theme="dark"] .bento-card:hover, [data-theme="dark"] .bento-card.featured-bento:hover { border-color: rgba(224, 144, 145, .3); box-shadow: 0 18px 36px rgba(0, 0, 0, .25); }
[data-theme="dark"] .bento-img { background: #2c2723; }
[data-theme="dark"] .bento-badge { color: #eee4d8; background: rgba(36, 32, 29, .9); border-color: rgba(244, 228, 210, .12); }
[data-theme="dark"] .bento-content h3 { color: #f2eae0; }
[data-theme="dark"] .bento-content p, [data-theme="dark"] .bento-tag-list span { color: #bdb1a4; }
[data-theme="dark"] .bento-tag-list { border-color: rgba(244, 228, 210, .1); }
@media (max-width: 900px) {
  .platform-section .section-head-flex { align-items: flex-start; }
  .platform-section .section-head-flex > div:first-child { max-width: 100%; }
  .platform-section .category-filters { align-self: flex-start; }
}
@media (max-width: 650px) {
  .platform-section .section-head-flex { margin-bottom: 1.8rem; }
  .platform-section .section-title { font-size: clamp(2.4rem, 10vw, 3.35rem); }
  .category-filters { width: 100%; justify-content: space-between; border-radius: 12px; }
  .filter-btn { min-height: 36px; padding-inline: .65rem; font-size: .62rem; }
  .ai-feature-card { grid-column: auto; display: flex; min-height: 0; }
  .ai-feature-card .bento-img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .ai-feature-card .bento-content { padding: 1.3rem 1.35rem 1.4rem; }
  .ai-feature-card .bento-content h3 { font-size: 1.45rem; }
  .ai-feature-card .bento-content p { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-card, .bento-img img, .bento-img::after, .filter-btn { transition: none !important; }
}

/* Dark theme hero balance */
[data-theme="dark"] .hero {
  color: #f3eee6;
  background:
    radial-gradient(ellipse at 78% 28%, rgba(174, 132, 82, .1), transparent 36%),
    linear-gradient(180deg, #171514 0%, #1b1917 72%, #191716 100%);
}
[data-theme="dark"] .hero-deco::before {
  border-color: rgba(224, 160, 160, .07);
  box-shadow: 0 0 0 38px rgba(224, 160, 160, .016), 0 0 0 76px rgba(224, 160, 160, .01);
}
[data-theme="dark"] .editorial-eyebrow { color: #d89a98; }
[data-theme="dark"] .hero .lead { color: #c2b9ae; }
[data-theme="dark"] .hero .btn-secondary { color: #d0c3b7; }
[data-theme="dark"] .hero .btn-secondary:hover { color: #f5eee4; }
[data-theme="dark"] .hero-meta { border-color: rgba(244, 228, 210, .16); }
[data-theme="dark"] .reader-mark { color: #dfaaa4; background: rgba(224, 144, 145, .1); }
[data-theme="dark"] .book-gallery::before {
  background: radial-gradient(circle, rgba(170, 123, 71, .22) 0%, rgba(132, 91, 53, .1) 44%, transparent 72%);
}
[data-theme="dark"] .gallery-frame { border-color: rgba(244, 228, 210, .15); }
[data-theme="dark"] .gallery-kicker { color: #dfa8a0; }
[data-theme="dark"] .hero-ribbon { border-color: rgba(244, 228, 210, .15); }
[data-theme="dark"] .hero-ribbon-item { color: #c3b8ac; }
[data-theme="dark"] .hero-ribbon-item:hover, [data-theme="dark"] .hero-ribbon-item:hover .ribbon-svg { color: #e6b8ad; }
[data-theme="dark"] .hero .highlight-yellow .word-amharic,
[data-theme="dark"] .hero .highlight-yellow .word-english {
  background: #d7ad5f;
  color: #241c15;
}

[data-theme="dark"] .footer {
  --text-primary: #f4ece2;
  --text-secondary: #d0c3b5;
  --text-tertiary: #aa9b8c;
  --brand: #e0a0a0;
  --border: rgba(244, 228, 210, .12);
  --border-strong: rgba(244, 228, 210, .19);
  --bg-surface: #302a25;
  background:
    radial-gradient(ellipse at 14% 0%, rgba(174, 132, 82, .1), transparent 36%),
    linear-gradient(180deg, #25211e 0%, #201d1b 100%);
  border-top-color: rgba(244, 228, 210, .14);
}
[data-theme="dark"] .footer-top { border-bottom-color: rgba(244, 228, 210, .1); }
[data-theme="dark"] .footer-heading { color: #f4ece2; }
[data-theme="dark"] .footer-col a { color: #d0c3b5; }
[data-theme="dark"] .footer-col a:hover,
[data-theme="dark"] .footer-bottom-links a:hover { color: #e6b8ad; }
[data-theme="dark"] .footer-locale,
[data-theme="dark"] .hotkey-tip,
[data-theme="dark"] .footer-bottom { color: #aa9b8c; }
[data-theme="dark"] .footer .locale-dot { background: #d4a563; }
[data-theme="dark"] .footer kbd {
  color: #f4ece2;
  background: rgba(255, 255, 255, .055);
  border-color: rgba(244, 228, 210, .2);
  box-shadow: none;
}
[data-theme="dark"] .research-section {
  background:
    radial-gradient(ellipse at 84% 18%, rgba(174, 132, 82, .09), transparent 34%),
    linear-gradient(140deg, #26221f 0%, #211e1c 100%);
  border-color: rgba(244, 228, 210, .08);
}
[data-theme="dark"] .research-section .research-card {
  background: linear-gradient(145deg, #302a25 0%, #292421 100%);
  border-color: rgba(244, 228, 210, .13);
}
[data-theme="dark"] .research-section .research-card:hover { border-color: rgba(224, 160, 160, .32); }
[data-theme="dark"] .research-section .research-content h3 { color: #f2eae0; }
[data-theme="dark"] .research-section .research-content p { color: #c0b3a6; }
[data-theme="dark"] .research-section .research-meta-tags span {
  color: #c9bcae;
  border-color: rgba(244, 228, 210, .15);
  background: rgba(255, 255, 255, .025);
}
[data-theme="dark"] .notify-card {
  border-color: rgba(244, 228, 210, .12);
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
[data-theme="dark"] .notify-copy .status-badge {
  background: rgba(233, 191, 103, .08);
  border-color: rgba(233, 191, 103, .28);
  color: #f0dfc8;
}
[data-theme="dark"] .notify-copy .status-pulse { background: #e9bf67; }
[data-theme="dark"] .notify-form-wrapper .form-card-inner {
  background: linear-gradient(145deg, #302a25 0%, #292421 100%);
  border: 1px solid rgba(244, 228, 210, .14);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .22);
}
[data-theme="dark"] .notify-form-wrapper .form-card-header { border-color: rgba(244, 228, 210, .12); }
[data-theme="dark"] .notify-form-wrapper .form-card-kicker { color: #e0a0a0; }
[data-theme="dark"] .notify-form-wrapper .form-card-title,
[data-theme="dark"] .notify-form-wrapper .email-label { color: #f4ece2; }
[data-theme="dark"] .notify-form-wrapper .interest-heading { color: #d0c3b5; }
[data-theme="dark"] .notify-form-wrapper .interest-chip {
  color: #d0c3b5;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(244, 228, 210, .17);
}
[data-theme="dark"] .notify-form-wrapper .interest-chip:hover { color: #fff7ec; border-color: rgba(224, 160, 160, .42); }
[data-theme="dark"] .notify-form-wrapper .interest-chip.active {
  color: #fff7ec;
  background: #a14d53;
  border-color: #a14d53;
}
[data-theme="dark"] .notify-form-wrapper .input-icon { color: #aa9b8c; }
[data-theme="dark"] .notify-form-wrapper .form input[type="email"] {
  color: #f4ece2;
  background: #211e1b;
  border-color: rgba(244, 228, 210, .2);
}
[data-theme="dark"] .notify-form-wrapper .form input[type="email"]::placeholder { color: #9f9285; }
[data-theme="dark"] .notify-form-wrapper .form input[type="email"]:focus { border-color: #d58a8e; }
[data-theme="dark"] .notify-form-wrapper .signup-note { color: #aa9b8c; }


/* ==========================================================================
   Senivo Intelligence spotlight card (kept minimal)
   ========================================================================== */
.bento-card.ai-feature-card { border-color: rgba(161, 77, 83, .38); }
.bento-card.ai-feature-card:hover { border-color: rgba(161, 77, 83, .6); }
.ai-feature-card .bento-badge.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #fff6ea;
  background: #a14d53;
  border-color: transparent;
}
.ai-badge svg { color: #e9c983; }
.ai-index { color: var(--brand); font-weight: 600; }
.ai-illustration { overflow: hidden; background: #fef6e9; display: flex; align-items: center; }
.ai-illustration::after { display: none; }
.bento-illustration { display: block; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .75, .25, 1); }
.ai-feature-card:hover .bento-illustration { transform: scale(1.03); }
.ai-feature-card .ai-illustration .bento-illustration { padding: 3rem .75rem .75rem; }
@media (max-width: 650px) {
  .ai-feature-card .ai-illustration { aspect-ratio: 1 / .98; }
  .ai-feature-card .ai-illustration .bento-illustration { padding: 2.9rem .4rem .4rem; }
}
[data-theme="dark"] .bento-card.ai-feature-card { border-color: rgba(224, 160, 160, .3); }
[data-theme="dark"] .ai-index { color: #e0a0a0; }
@media (min-width: 651px) {
  .ai-feature-card .ai-illustration .bento-illustration { padding: 3rem .25rem .5rem; }
}
[data-theme="dark"] .ai-feature-card .ai-illustration { background: #fef6e9; }

/* Translating phrase (minimal, no box) */
.lang-demo { margin: .1rem 0 1.2rem; }
.lang-demo-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.lang-demo-label { font-size: .56rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: #8a7a6a; }
.lang-pill { padding: .15rem .55rem; border-radius: 999px; background: rgba(161, 77, 83, .09); color: #a14d53; font-size: .6rem; font-weight: 600; white-space: nowrap; }
.ai-feature-card .bento-content .lang-demo-text {
  min-height: 1.5em;
  margin: 0 0 .5rem;
  color: var(--brand);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.02em;
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.ai-feature-card .bento-content .lang-demo-text:lang(am) { font-family: var(--font-amharic); letter-spacing: 0; }
.ai-feature-card .bento-content .lang-demo-text:lang(ar) { font-family: 'Segoe UI', 'Noto Naskh Arabic', 'Geeza Pro', sans-serif; letter-spacing: 0; }
.lang-demo-text.is-out { opacity: 0; filter: blur(6px); transform: translateY(6px); }
.lang-demo-dots { display: flex; gap: .3rem; }
.lang-demo-dots span { width: 5px; height: 5px; border-radius: 999px; background: rgba(161, 77, 83, .2); transition: width .35s ease, background-color .35s ease; }
.lang-demo-dots span.active { width: 16px; background: #a14d53; }
[data-theme="dark"] .lang-demo-label { color: #aa9b8c; }
[data-theme="dark"] .lang-pill { background: rgba(224, 160, 160, .14); color: #f0c2bd; }
[data-theme="dark"] .ai-feature-card .bento-content .lang-demo-text { color: #f0c2bd; }
[data-theme="dark"] .lang-demo-dots span { background: rgba(244, 228, 210, .18); }
[data-theme="dark"] .lang-demo-dots span.active { background: #e0a0a0; }
@media (prefers-reduced-motion: reduce) { .lang-demo-text { transition: none; } }

/* ==========================================================================
   What we're building — background
   ========================================================================== */
/* ::before goes back to being the plain section divider line */
.platform-section::before {
  top: 0;
  left: var(--pad);
  right: var(--pad);
  width: auto;
  height: 1px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--border);
}
[data-theme="dark"] .platform-section::before { box-shadow: none; }

/* soft Senivo wash: rose light from the top right, warm gold low on the left */
.platform-section {
  background:
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(161, 77, 83, .055) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 4% 78%, rgba(215, 173, 95, .08) 0%, transparent 70%),
    linear-gradient(180deg, #fbf8f2 0%, #f8f3ea 100%);
}
[data-theme="dark"] .platform-section {
  background:
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(224, 160, 160, .05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 4% 78%, rgba(215, 173, 95, .04) 0%, transparent 70%),
    linear-gradient(180deg, #191817 0%, #1c1a18 100%);
}

/* Half-circle rings, matching the hero (right) and about (left) sections.
   This section alternates back to the right edge. */
.platform-section::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: min(56vw, 700px);
  aspect-ratio: 1;
  right: -16%;
  top: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(161, 77, 83, .075);
  box-shadow: 0 0 0 36px rgba(161, 77, 83, .018), 0 0 0 72px rgba(161, 77, 83, .013);
  pointer-events: none;
}
[data-theme="dark"] .platform-section::after {
  border-color: rgba(224, 160, 160, .07);
  box-shadow: 0 0 0 36px rgba(224, 160, 160, .016), 0 0 0 72px rgba(224, 160, 160, .01);
}
@media (max-width: 650px) {
  .platform-section::after { width: 110vw; right: -60%; top: 2rem; }
}

/* ==========================================================================
   Early-access prominence: hero email box + floating button
   ========================================================================== */
/* Floating button */
.floating-cta-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #e9bf67; flex: none; }
.floating-cta-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(233, 191, 103, .55);
  animation: signup-ping 2.2s ease-out infinite;
}
@keyframes signup-ping { 0% { opacity: .9; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

.floating-cta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  background: #a14d53;
  color: #fff8ef;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(120, 56, 62, .55), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  opacity: 0;
  transform: translateY(16px) scale(.96);
  pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1), background-color .2s ease;
}
.floating-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-cta:hover { background: #87404a; }
.floating-cta:hover svg { transform: translateX(2px); }
.floating-cta svg { transition: transform .2s ease; }
.floating-cta:focus-visible { outline: 2px solid #b88942; outline-offset: 3px; }
[data-theme="dark"] .floating-cta { background: #e0a0a0; color: #221b19; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); }
[data-theme="dark"] .floating-cta:hover { background: #ebb5b3; }
@media (max-width: 650px) {
  .floating-cta { left: 1rem; right: 1rem; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta-dot::after { animation: none; display: none; }
  .floating-cta { transition: opacity .2s ease; transform: none; }
}

/* ==========================================================================
   "Work in progress" card (07 / Authors & Publishers)
   ========================================================================== */
.bento-badge.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-color: rgba(184, 137, 66, .45);
  background: #fbf1dc;
  color: #7a5420;
  font-weight: 600;
}
.wip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b88942;
  animation: wip-blink 1.6s ease-in-out infinite;
}
@keyframes wip-blink { 50% { opacity: .3; } }

/* the image reads as unfinished: softened, with a light diagonal hatch */
.bento-card.is-wip .bento-img img { filter: saturate(.75); opacity: .85; }
.bento-card.is-wip .bento-img::after {
  inset: 0;
  opacity: 1;
  background: repeating-linear-gradient(-45deg, rgba(184, 137, 66, .07) 0 10px, transparent 10px 20px);
}
.bento-card.is-wip:hover .bento-img::after { opacity: 1; }

.wip-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .35rem .7rem;
  margin: -.1rem 0 .9rem;
  padding: .6rem .75rem;
  border: 1px dashed rgba(184, 137, 66, .5);
  border-radius: 8px;
  background: rgba(251, 241, 220, .55);
}
.wip-status-label { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a6420; }
.wip-track { position: relative; height: 4px; border-radius: 4px; background: rgba(184, 137, 66, .18); overflow: hidden; }
.wip-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, #b88942 0 5px, #d7ad5f 5px 10px);
  background-size: 14px 14px;
  animation: wip-stripes 1.2s linear infinite;
}
@keyframes wip-stripes { to { background-position: 14px 0; } }
.wip-percent { font-size: .66rem; font-weight: 700; color: #8a6420; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .wip-percent { color: #e2b866; }
.wip-status-note { grid-column: 1 / -1; font-size: .66rem; line-height: 1.5; color: #7d6b55; }

[data-theme="dark"] .bento-badge.wip-badge { background: #2e2619; border-color: rgba(233, 191, 103, .35); color: #ecca86; }
[data-theme="dark"] .wip-status { background: rgba(233, 191, 103, .06); border-color: rgba(233, 191, 103, .3); }
[data-theme="dark"] .wip-status-label { color: #e2b866; }
[data-theme="dark"] .wip-status-note { color: #bba98f; }

@media (prefers-reduced-motion: reduce) {
  .wip-dot, .wip-track span { animation: none; }
}

/* Header "Get launch access" + hero primary button: one smooth, consistent style.
   Solid colours so the hover fades (gradients can't animate and were snapping). */
.btn-header,
.hero .btn-primary {
  background: #a14d53;
  color: #fff8ef;
  box-shadow: 0 6px 16px -6px rgba(120, 56, 62, .45);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.btn-header {
  gap: .6rem;
  padding-inline: 1.05rem 1rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .005em;
  white-space: nowrap;
}
.btn-header:hover,
.hero .btn-primary:hover {
  background: #87404a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(120, 56, 62, .55);
}
.btn-header:active, .hero .btn-primary:active { transform: translateY(0) scale(.98); }
.btn-header .btn-arrow, .hero .btn-primary .btn-arrow { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.btn-header:hover .btn-arrow, .hero .btn-primary:hover .btn-arrow { transform: translateX(3px); }
[data-theme="dark"] .btn-header, [data-theme="dark"] .hero .btn-primary { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) {
  .btn-header, .hero .btn-primary, .btn-header .btn-arrow, .hero .btn-primary .btn-arrow { transition: background-color .2s ease; }
  .btn-header:hover, .hero .btn-primary:hover, .btn-header:hover .btn-arrow, .hero .btn-primary:hover .btn-arrow { transform: none; }
}

/* Footer legal notice */
.footer-legal { display: flex; flex-direction: column; gap: .4rem; max-width: 640px; }
.footer-legal p { margin: 0; }
.footer-legal-note { font-size: .95em; line-height: 1.55; opacity: .85; }
.footer-legal-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-note a:hover { color: var(--brand); }
@media (min-width: 640px) { .footer-links { grid-template-columns: repeat(3, auto); gap: 2.5rem; } }

/* ===== books-3d.css ===== */
/* ==========================================================================
   Senivo — hero cover wall
   Two shelves of real covers standing on wooden boards. One is featured: lifted forward at full
   strength, lifted off the board. Flat images only (no 3D transforms). Changing book simply moves the lift to the
   next cover. Flat images only (no 3D), so nothing can break while scrolling.
   ========================================================================== */

.book-gallery .hero-books-showcase {
  display: block;
  width: 100%;
  max-width: 470px;
  min-height: 0;
  margin: 0 auto;
  padding: 0;
  transform: none;
}

.cover-wall {
  --board: #cdb99c;
  --board-edge: #b39d7e;
  --gap: clamp(10px, 2.6vw, 18px);
  display: grid;
  gap: 30px;
  padding: 20px 4px 6px;
}
[data-theme="dark"] .cover-wall { --board: #5a4d40; --board-edge: #453a30; }

/* one row of covers standing on a wooden board */
.cover-shelf {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--gap);
  padding: 0 14px;
}
.cover-shelf::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  border-radius: 2px;
  background: var(--board);
  border-bottom: 3px solid var(--board-edge);
  box-shadow: 0 10px 14px -10px rgba(38, 25, 16, .45);
}

.cover-tile {
  position: relative;
  z-index: 1;
  display: block;
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  background: var(--bg-subtle, #efe9df);
  /* a thin spine shade on the left, like a real cover */
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, .14), 0 1px 2px rgba(38, 25, 16, .16);
  cursor: pointer;
  transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .55s ease;
  -webkit-tap-highlight-color: transparent;
}
.cover-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
}

.cover-tile:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.cover-tile.is-featured {
  z-index: 2;
  opacity: 1;
  /* lifted off the board toward the reader */
  transform: translateY(-12px) scale(1.1);
  box-shadow: inset 3px 0 0 rgba(0, 0, 0, .14), 0 2px 4px rgba(38, 25, 16, .16), 0 24px 30px -18px rgba(38, 25, 16, .55);
  cursor: default;
}


/* The Senivo place on the shelf: an outline only, not part of the cycle */
.cover-tile-brand {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .55rem;
  opacity: 1;
  cursor: default;
  background: transparent;
  border: 1.5px solid var(--brand, #a14d53);
  box-shadow: none;
  color: var(--brand, #a14d53);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.cover-tile-brand img { width: 26px; height: 26px; object-fit: contain; }
.cover-tile-brand:hover { opacity: 1; }

.gallery-book-title { transition: opacity .3s ease, transform .3s ease; }
.gallery-book-title.is-changing { opacity: 0; transform: translateY(6px); }

@media (prefers-reduced-motion: reduce) {
  .cover-tile, .gallery-book-title { transition: none; }
}

/* Once the hero has faded in, drop the leftover reveal transform so the shelf
   scrolls as part of the page rather than as a separate moving layer. */
.book-gallery.reveal.visible { transform: none; }

/* The vertical "African stories / Global readers" tag sat on top of the
   right-hand spines; the shelf fills that corner now. */
.book-gallery::after { display: none; }

/* Dark theme: a hairline keeps the darkest spines readable against the page */
[data-theme="dark"] .shelf-spine { outline: 1px solid rgba(255, 255, 255, .09); outline-offset: -1px; }

/* no haze behind the shelves: the covers should read clearly */
.book-gallery::before { display: none; }

/* ===== signup-reward.css ===== */
/* ==========================================================================
   Senivo — signup celebration + reward code
   ========================================================================== */

.form-card-inner { position: relative; }

/* Button turns into a check just before the form leaves */
.form.is-success .btn-submit {
  background: #2f6b4a;
  border-color: #2f6b4a;
  transform: scale(.97);
  transition: background-color .3s ease, transform .3s ease;
}
.form.is-success .btn-label { opacity: 0; }
.form.is-success .btn-arrow { opacity: 0; }
.form.is-success .btn-submit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 17px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -62%) rotate(45deg) scale(0);
  animation: btn-check-pop .4s cubic-bezier(.3, 1.6, .5, 1) forwards;
}
.btn-submit { position: relative; }
@keyframes btn-check-pop { to { transform: translate(-50%, -62%) rotate(45deg) scale(1); } }

.form.is-leaving {
  animation: form-leave .45s cubic-bezier(.6, 0, .8, .4) forwards;
  pointer-events: none;
}
@keyframes form-leave {
  to { opacity: 0; transform: translateY(-14px) scale(.98); filter: blur(3px); }
}

/* ---------- Success panel ---------- */
.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .5rem 0 .25rem;
}
.signup-success[hidden] { display: none; }
.signup-success > * {
  opacity: 0;
  transform: translateY(14px);
  animation: success-rise .6s cubic-bezier(.2, .8, .2, 1) forwards;
}
.signup-success > :nth-child(1) { animation-delay: .05s; }
.signup-success > :nth-child(2) { animation-delay: .25s; }
.signup-success > :nth-child(3) { animation-delay: .32s; }
.signup-success > :nth-child(4) { animation-delay: .4s; }
.signup-success > :nth-child(5) { animation-delay: .48s; }
.signup-success > :nth-child(6) { animation-delay: .6s; }
.signup-success > :nth-child(7) { animation-delay: .9s; }
.signup-success > :nth-child(8) { animation-delay: 1s; }
@keyframes success-rise { to { opacity: 1; transform: none; } }

/* Animated badge */
.success-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin-bottom: 1rem;
}
.success-badge svg { position: relative; z-index: 1; }
.success-circle {
  stroke: #2f6b4a;
  stroke-width: 2.5;
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  fill: rgba(47, 107, 74, .08);
  animation: draw-stroke .7s cubic-bezier(.65, 0, .45, 1) .15s forwards;
}
.success-check {
  stroke: #2f6b4a;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-stroke .4s cubic-bezier(.65, 0, .45, 1) .8s forwards;
}
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }
.success-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(47, 107, 74, .45);
  opacity: 0;
  animation: ring-burst 1.1s ease-out .85s forwards;
}
@keyframes ring-burst {
  0% { opacity: .9; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.7); }
}

.success-kicker {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.success-title {
  margin: .5rem 0 .6rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-primary);
  outline: none;
}
.success-desc {
  max-width: 34ch;
  margin: 0 0 1.4rem;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---------- Cohort position ---------- */
.cohort-spot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  margin: -.4rem 0 1.2rem;
}
.cohort-spot[hidden] { display: none; }
.cohort-spot-label {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.cohort-spot-number {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
[data-theme="dark"] .cohort-spot-label { color: #aa9b8c; }
[data-theme="dark"] .cohort-spot-number { color: #e0a0a0; }
.signup-success.is-returning .cohort-spot-number { color: #b8862f; }
[data-theme="dark"] .signup-success.is-returning .cohort-spot-number { color: #e2b866; }

/* ---------- Reward ticket ---------- */
.reward-ticket {
  position: relative;
  width: 100%;
  padding: 1.1rem 1.2rem 1.2rem;
  border: 1.5px dashed rgba(161, 77, 83, .45);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0 50%, var(--ticket-notch, var(--bg-surface)) 0 10px, transparent 11px),
    radial-gradient(circle at 100% 50%, var(--ticket-notch, var(--bg-surface)) 0 10px, transparent 11px),
    linear-gradient(135deg, #fbf3e4 0%, #f6e7cf 55%, #f2dcc0 100%);
  box-shadow: 0 14px 30px -14px rgba(161, 77, 83, .35);
  overflow: hidden;
}
/* Shimmer that sweeps across once the code lands */
.reward-ticket::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.reward-ticket.is-revealed::after { animation: ticket-shine 1.1s ease .1s; }
@keyframes ticket-shine { to { transform: translateX(120%); } }

.reward-ticket-label {
  display: block;
  margin-bottom: .6rem;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a5a3a;
}
.reward-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.reward-code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: .12em;
  color: #5e1f28;
  background: none;
  padding: 0;
  user-select: all;
  font-variant-numeric: tabular-nums;
}
.reward-ticket.is-revealed .reward-code { animation: code-land .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes code-land { 50% { transform: scale(1.08); } }

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border: 0;
  border-radius: 999px;
  background: #a14d53;
  color: #fff8ef;
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px -6px rgba(161, 77, 83, .6);
}
.copy-code-btn:hover { background: #6d2a33; transform: translateY(-1px); }
.copy-code-btn:active { transform: scale(.96); }
.copy-code-btn .copied-icon { display: none; }
.copy-code-btn.is-copied { background: #2f6b4a; box-shadow: 0 6px 14px -6px rgba(47, 107, 74, .6); animation: copy-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.copy-code-btn.is-copied .copy-icon { display: none; }
.copy-code-btn.is-copied .copied-icon { display: inline; }
@keyframes copy-pop { 50% { transform: scale(1.1); } }

.success-note {
  margin: 1rem 0 .4rem;
  font-size: .7rem;
  line-height: 1.5;
  color: var(--text-tertiary);
}
.success-reset {
  border: 0;
  background: none;
  padding: .3rem;
  font: inherit;
  font-size: .72rem;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.success-reset:hover { color: var(--brand); }

/* ---------- Confetti canvas ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] .reward-ticket {
  --ticket-notch: #2d2723;
  border-color: rgba(224, 160, 160, .4);
  background:
    radial-gradient(circle at 0 50%, var(--ticket-notch) 0 10px, transparent 11px),
    radial-gradient(circle at 100% 50%, var(--ticket-notch) 0 10px, transparent 11px),
    linear-gradient(135deg, #3a2e26 0%, #33271f 55%, #2c221c 100%);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6);
}
[data-theme="dark"] .reward-ticket::after { background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 220, .18) 50%, transparent 65%); }
[data-theme="dark"] .reward-ticket-label { color: #d7ad5f; }
[data-theme="dark"] .reward-code { color: #f6e3c4; }
[data-theme="dark"] .success-kicker { color: #e0a0a0; }
[data-theme="dark"] .success-title { color: #f4ece2; }
[data-theme="dark"] .success-desc { color: #c9bcae; }
[data-theme="dark"] .success-note { color: #aa9b8c; }
[data-theme="dark"] .success-reset { color: #d0c3b5; }
[data-theme="dark"] .success-circle,
[data-theme="dark"] .success-check { stroke: #6fc394; }
[data-theme="dark"] .success-circle { fill: rgba(111, 195, 148, .1); }
[data-theme="dark"] .success-ring { border-color: rgba(111, 195, 148, .45); }

/* ---------- Returning member (already in the cohort) ---------- */
.signup-success.is-returning .success-circle { stroke: #b8862f; fill: rgba(215, 173, 95, .12); }
.signup-success.is-returning .success-check { stroke: #b8862f; }
.signup-success.is-returning .success-ring { border-color: rgba(215, 173, 95, .55); }
.signup-success.is-returning .success-kicker {
  display: inline-flex;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(215, 173, 95, .16);
  color: #8a6420;
}
[data-theme="dark"] .signup-success.is-returning .success-circle,
[data-theme="dark"] .signup-success.is-returning .success-check { stroke: #e2b866; }
[data-theme="dark"] .signup-success.is-returning .success-kicker { background: rgba(226, 184, 102, .14); color: #e9c983; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .signup-success > *, .success-circle, .success-check { animation: none !important; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .success-ring, .reward-ticket::after { display: none; }
  .form.is-leaving { animation: none; }
}

/* ===== before-after.css ===== */
/* =========================================================
   Before & after Senivo — split-screen motion film
   Two panels play the same chapter side by side.
   Base styles = final (static) state. Animations only run
   while the section is live (.is-live) on the active scene.
   ========================================================= */

.ba {
  --ba-good: var(--brand);
  --ba-gold: var(--accent-gold, #c88a38);
  --ba-bad: #a59a90;
  --ba-bad-ink: #7a6f66;
  --ba-bad-fill: #ece7e2;
  --ba-warn: #b0623f;
  --ba-paper: var(--bg-surface);
  --ba-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ba-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ba-dur: 6.5s;
  overflow: hidden;
}

[data-theme="dark"] .ba {
  --ba-bad: #7d746d;
  --ba-bad-ink: #a99d92;
  --ba-bad-fill: #26231f;
  --ba-warn: #d98a68;
}

/* ---------- Head ---------- */
.ba-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.4rem;
}

.ba-head .section-title { margin-bottom: 0; }
.ba-head .section-desc { margin-bottom: .3rem; }
.ba-title-accent { color: var(--brand); }

/* ---------- Film frame ---------- */
.ba-film {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* ---------- Chapter bar ---------- */
.ba-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .7rem .7rem .9rem;
  border-bottom: 1px solid var(--border);
}

.ba-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
}

.ba-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .65rem .8rem 1rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color .3s, background-color .3s;
}

.ba-tab:hover { color: var(--text-secondary); background: var(--bg-subtle); }
.ba-tab.is-active { color: var(--text-primary); }
.ba-tab:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.ba-tab-num {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.ba-tab.is-active .ba-tab-num { color: var(--brand); }

.ba-tab-name {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.ba-tab-track {
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}

.ba-tab-track i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}

.ba-tab.is-done .ba-tab-track i,
.ba-tab.is-active .ba-tab-track i { transform: scaleX(1); }

.ba.is-live.is-auto .ba-tab.is-active .ba-tab-track i {
  animation: ba-fill var(--ba-dur) linear both;
}

@keyframes ba-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ba-play {
  flex: none;
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color .2s, color .2s, transform .2s var(--ba-spring);
}

.ba.is-live .ba-play { display: inline-flex; }
.ba-play:hover { border-color: var(--brand); color: var(--brand); }
.ba-play:active { transform: scale(.92); }
.ba-play:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.ba-ico-play { display: none; margin-left: 2px; }
.ba.is-paused .ba-ico-play { display: block; }
.ba.is-paused .ba-ico-pause { display: none; }

/* ---------- Split ---------- */
.ba-split {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ba-panel {
  position: relative;
  padding: 1.6rem clamp(1.25rem, 3vw, 2.25rem) 1.8rem;
  min-width: 0;
}

.ba-before {
  color: var(--ba-bad);
  background: var(--bg-subtle);
}

.ba-after {
  color: var(--ba-good);
  background: var(--bg-surface);
}

.ba-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .32rem .75rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ba-bad-ink);
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
}

.ba-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ba-bad);
}

.ba-after .ba-kicker {
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid transparent;
}

.ba-after .ba-kicker i { background: var(--brand); }
.ba.is-live:not(.is-paused) .ba-after .ba-kicker i { animation: ba-beat 1.6s ease-in-out infinite; }

@keyframes ba-beat {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-glow); }
  50% { box-shadow: 0 0 0 5px transparent; }
}

/* ---------- Scenes (stacked in one grid cell) ---------- */
.ba-scenes { display: grid; }

.ba-scene {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.ba-scene.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity .45s ease .1s, visibility 0s;
}

.ba-art {
  position: relative;
  margin: 1rem auto 1.1rem;
  aspect-ratio: 16 / 10;
  max-height: 270px;
}

.ba-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: var(--font-sans);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba-svg * {
  transform-box: fill-box;
  transform-origin: center;
}

.ba-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .3rem .6rem;
  margin: 0 0 .35rem;
}

.ba-stat b {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ba-before .ba-stat b { color: var(--ba-bad-ink); }
.ba-after .ba-stat b { color: var(--brand); }

.ba-stat span {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.ba-cap {
  margin: 0;
  max-width: 34ch;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.ba-note {
  margin: 0;
  padding: .7rem 1.2rem .8rem;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-tertiary);
  text-align: right;
}

/* ---------- Seam ---------- */
.ba-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  z-index: 2;
  pointer-events: none;
}

.ba-seam::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 1px;
  background: var(--border-strong);
}

.ba-seam-badge {
  position: absolute;
  top: 50%;
  left: 0;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1.5px solid var(--brand);
  box-shadow: 0 0 0 6px var(--bg-surface);
}

.ba-seam-badge img { display: block; width: 26px; height: 26px; object-fit: contain; }
@media (max-width: 760px) { .ba-seam-badge img { width: 20px; height: 20px; } }

.ba.is-live .ba-split.is-swap .ba-seam-badge { animation: ba-badge .9s var(--ba-spring) both; }

@keyframes ba-badge {
  0% { transform: scale(.6) rotate(-90deg); }
  100% { transform: scale(1) rotate(0); }
}

/* =========================================================
   Shared SVG pieces
   ========================================================= */
.ba-lbl {
  font-size: 11px;
  font-weight: 600;
  fill: var(--ba-bad-ink);
}

.ba-lbl-off { fill: var(--ba-bad); }
.ba-lbl-on { fill: var(--text-primary); }

.ba-q circle { fill: var(--bg-surface); stroke: var(--ba-warn); stroke-width: 2; stroke-dasharray: 3 3; }
.ba-q text { fill: var(--ba-warn); font-size: 15px; font-weight: 700; }
.ba-q-sm text { font-size: 12px; }

/* =========================================================
   BEFORE scenes
   ========================================================= */

/* 01 · stores */
.ba-scribble {
  stroke: var(--ba-bad);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.ba-store * { stroke: var(--ba-bad-ink); stroke-width: 1.4; }
.ba-store-body { fill: var(--bg-surface); }
.ba-store-awn { fill: var(--ba-bad-fill); }
.ba-store-stripe { stroke-width: 1.1; opacity: .7; }
.ba-store-door { fill: var(--ba-bad-fill); }
.ba-store-win { fill: var(--bg-surface); stroke-width: 1.1; }

.ba-x circle { fill: var(--ba-warn); }
.ba-x path { stroke: #fff; stroke-width: 2; }

/* 02 · calendar + stalled delivery */
.ba-cal { fill: var(--bg-surface); stroke: var(--ba-bad); stroke-width: 1.5; }
.ba-cal-head { fill: var(--ba-bad); }
.ba-cal-ring { stroke: var(--ba-bad-ink); stroke-width: 3; }
.ba-cal-day { fill: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.ba-cal-num { fill: var(--ba-bad-ink); font-size: 46px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ba-cal-under { fill: var(--bg-surface); }
.ba-cal-perf { stroke: var(--ba-bad); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.ba-cal-week { fill: var(--ba-bad-ink); font-size: 10px; font-weight: 600; }
.ba-cal-wk { fill: var(--ba-warn); }
.ba-tear path { fill: var(--bg-surface); stroke: var(--ba-bad); stroke-width: 1; }
.ba-tear text { fill: var(--ba-bad-ink); font-size: 46px; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ba-tear { transform-origin: right top; animation: ba-tear .75s cubic-bezier(.5, 0, .75, .4) forwards; }
.ba-tear.is-left { transform-origin: left top; animation-name: ba-tear-l; }
.ba-cal-num.is-bump { animation: ba-bump .28s var(--ba-spring); }
.ba-route { stroke: var(--ba-bad); stroke-width: 2; stroke-dasharray: 2 6; }
.ba-truck { transform: translateX(62px); }
.ba-truck rect, .ba-truck path { fill: var(--ba-bad-fill); stroke: var(--ba-bad-ink); stroke-width: 1.5; }
.ba-truck circle { fill: var(--ba-bad-ink); }
.ba-transit { fill: var(--ba-bad-ink); font-size: 11px; font-weight: 600; }
.ba-track { fill: var(--border-strong); }
.ba-stall { fill: var(--ba-warn); transform: scaleX(.34); transform-origin: left; }

/* 03 · one format */
.ba-oldbook rect { fill: var(--ba-bad-fill); stroke: var(--ba-bad-ink); stroke-width: 1.5; }
.ba-oldbook path { stroke: var(--ba-bad); stroke-width: 1.5; }
.ba-ghost { stroke: var(--ba-bad); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .55; }
.ba-solid rect { fill: var(--ba-bad-fill); }
.ba-solid * { stroke: var(--ba-bad-ink); stroke-width: 1.5; }
.ba-solid path { fill: none; }
.ba-ok rect { fill: var(--ba-bad-ink); }
.ba-ok text { fill: var(--bg-surface); font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.ba-f-on { opacity: 0; }
.ba-f-on[style*='--i:2'] { opacity: 1; }
.ba-f-off[style*='--i:2'] { opacity: 0; }
.ba-coin circle { fill: var(--ba-warn); }
.ba-money .ba-coin text { fill: #fff; font-size: 9px; font-weight: 700; }
.ba-drip { fill: var(--ba-warn); opacity: 0; }
.ba-na rect { fill: var(--bg-surface); stroke: var(--ba-warn); stroke-width: 1.2; }
.ba-na text { fill: var(--ba-warn); font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.ba-nolang rect { fill: var(--bg-surface); stroke: var(--ba-warn); stroke-width: 1.5; }
.ba-nolang text { fill: var(--ba-warn); font-size: 10px; font-weight: 600; }

/* 04 · alone */
.ba-seats circle { fill: none; stroke: var(--ba-bad); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .6; }
.ba-ripple { fill: none; stroke: var(--ba-bad); stroke-width: 1.5; opacity: 0; }
.ba-me-old { fill: var(--ba-bad); }
.ba-hush { opacity: .35; }
.ba-hush rect { fill: var(--bg-surface); stroke: var(--ba-bad); stroke-width: 1.5; }
.ba-hush circle { fill: var(--ba-bad); }

/* =========================================================
   AFTER scenes
   ========================================================= */

/* 01 · one search, one match */
.ba-pill { fill: var(--bg-surface); stroke: var(--brand); stroke-width: 1.5; }
.ba-spark { fill: var(--brand); }
.ba-query { fill: var(--text-primary); font-size: 13px; font-weight: 500; }
.ba-type-mask { fill: var(--bg-surface); transform: scaleX(0); transform-origin: right; }
.ba-link { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ba-card-bg { fill: var(--bg-surface); stroke: var(--border-strong); stroke-width: 1; }
.ba-cover { fill: var(--brand); }
.ba-cover-sun { fill: var(--ba-gold); }
.ba-cover-wave { stroke: #fff; stroke-width: 2; opacity: .8; }
.ba-pick { fill: var(--brand); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ba-line { fill: var(--text-primary); opacity: .8; transform-origin: left; }
.ba-line-2 { opacity: .3; }
.ba-chip { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1; stroke-opacity: .4; }
.ba-ring-track { stroke: var(--brand-soft-hover); stroke-width: 4; }
.ba-ring { transform: rotate(-90deg); stroke: var(--brand); stroke-width: 4; stroke-dasharray: .96 1; stroke-dashoffset: 0; }
.ba-ring-num { fill: var(--brand); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ba-burst path { stroke: var(--ba-gold); stroke-width: 2; opacity: 0; transform-box: view-box; transform-origin: 0 0; transform: rotate(var(--a)); }

/* 02 · minutes */
.ba-watch-btn { fill: var(--brand); }
.ba-watch { fill: var(--bg-surface); stroke: var(--brand-soft-hover); stroke-width: 7; }
.ba-watch-ring { transform: rotate(-90deg); stroke: var(--brand); stroke-width: 7; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ba-hand { stroke: var(--text-primary); stroke-width: 3; opacity: 0; transform-box: view-box; transform-origin: 104px 108px; }
.ba-hub { fill: var(--text-primary); opacity: 0; }
.ba-check { stroke: var(--brand); stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ba-page rect:first-child { fill: var(--bg-surface); stroke: var(--brand); stroke-width: 1.5; }
.ba-page text { fill: var(--brand); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.ba-pl { fill: var(--text-primary); opacity: .22; transform-origin: left; }

/* 03 · three formats, many languages */
.ba-fmt-book { fill: var(--brand); }
.ba-fmt-spine { stroke: #fff; stroke-width: 1.5; opacity: .5; }
.ba-fmt-dev { fill: var(--bg-surface); stroke: var(--brand); stroke-width: 2; }
.ba-fmt-hp { stroke: var(--brand); stroke-width: 4; }
.ba-fmt-ear { fill: var(--brand); }
.ba-wave rect { fill: var(--ba-gold); transform-origin: center; }
.ba-flow rect { fill: var(--text-primary); opacity: .28; }
.ba-am { font-family: var(--font-amharic); }

/* Senivo Intelligence touches */
.ba-pay rect { fill: var(--brand-soft); stroke: var(--brand); stroke-width: 1; stroke-opacity: .35; }
.ba-pay circle { fill: var(--accent-gold); }
.ba-pay path { stroke: #fff; stroke-width: 1.4; }
.ba-pay text { fill: var(--brand); font-size: 8.5px; font-weight: 600; }
.ba-si-pill { fill: var(--bg-surface); stroke: var(--brand); stroke-width: 1; stroke-opacity: .35; }
.ba-si-star { fill: var(--accent-gold); }
.ba-si-t { fill: var(--brand); font-size: 8.5px; font-weight: 600; letter-spacing: .02em; }
.ba-si-link { stroke: var(--brand); stroke-width: 1.4; stroke-opacity: .45; stroke-dasharray: 2 3; }

/* 04 · readers' corner */
.ba-room circle { fill: var(--c); stroke: var(--bg-surface); stroke-width: 2; }
.ba-room-t { fill: var(--text-secondary); font-size: 8px; font-weight: 600; }
.ba-av { fill: var(--c); }
.ba-av-t { fill: #fff; font-size: 8px; font-weight: 700; }
.ba-bub { fill: var(--bg-surface); stroke: var(--border-strong); stroke-width: 1; }
.ba-bub-t { fill: var(--text-primary); font-size: 8px; font-weight: 500; }
.ba-msg-me .ba-bub { fill: var(--brand); stroke: none; }
.ba-msg-me .ba-bub-t { fill: #fff; }
.ba-dot { fill: var(--text-tertiary); }
.ba-quote-bg { fill: var(--bg-surface); stroke: var(--border-strong); stroke-width: 1; }
.ba-quote-mark { fill: var(--accent-gold); font-size: 26px; font-weight: 700; }
.ba-quote-t { fill: var(--text-primary); font-size: 9.5px; font-weight: 600; }
.ba-quote-src { fill: var(--text-tertiary); font-size: 7px; font-weight: 500; }
.ba-quote-fly rect { fill: none; stroke: var(--brand); stroke-width: 1.2; }
.ba-quote-fly { opacity: 0; }
.ba-share-ico circle { fill: var(--brand); }
.ba-share-ico path { stroke: #fff; stroke-width: 1.8; }
.ba-act rect { fill: var(--bg-surface); stroke: var(--border-strong); stroke-width: 1; }
.ba-act text { fill: var(--text-primary); font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ba-act-heart { fill: var(--brand); }
.ba-act-ico { stroke: var(--text-primary); stroke-width: 1.6; }
.ba-act-hot rect { fill: var(--brand); stroke: none; }
.ba-act-hot text { fill: #fff; }
.ba-act-hot .ba-act-ico { stroke: #fff; }

/* =========================================================
   Motion (only on the active scene while live)
   ========================================================= */
.ba.is-paused *,
.ba.is-offscreen * { animation-play-state: paused !important; }

/* BEFORE 01 */
.ba.is-live .ba-before .is-active .ba-scribble { animation: ba-draw 4.4s cubic-bezier(.45, .05, .55, .95) both; }
.ba.is-live .ba-before .is-active .ba-store { animation: ba-jitter 4.4s steps(1) both; }
.ba.is-live .ba-before .is-active .ba-x { animation: ba-pop .5s var(--ba-spring) var(--d) both; }
.ba.is-live .is-active .ba-q { animation: ba-pop .6s var(--ba-spring) var(--d) both, ba-bob 1.6s ease-in-out calc(var(--d) + .6s) infinite; }

/* BEFORE 02 */
.ba.is-live .ba-before .is-active .ba-truck { animation: ba-stutter 4.6s var(--ba-ease) both; }
.ba.is-live .ba-before .is-active .ba-transit { animation: ba-blink 1.2s steps(2) infinite; }
.ba.is-live .ba-before .is-active .ba-stall { animation: ba-stall 4.6s var(--ba-ease) both; }

/* BEFORE 03 */
.ba.is-live .ba-before .is-active .ba-f-on { animation: ba-onwin 4.8s ease calc(.4s + var(--i) * 1.6s) infinite both; }
.ba.is-live .ba-before .is-active .ba-f-off { animation: ba-offwin 4.8s ease calc(.4s + var(--i) * 1.6s) infinite both; }
.ba.is-live .ba-before .is-active .ba-ok { animation: ba-okpop 4.8s var(--ba-spring) calc(.4s + var(--i, 0) * 1.6s) infinite both; }
.ba.is-live .ba-before .is-active .ba-coin { animation: ba-coin-spin 1.4s ease-in-out 2s infinite; }
.ba.is-live .ba-before .is-active .ba-drip { animation: ba-drip 1.4s ease-in calc(2.2s + var(--k) * .7s) infinite; }
.ba.is-live .ba-after .is-active .ba-pay-coin { animation: ba-coin-drop .9s var(--ba-ease) 1.9s both; }
.ba.is-live .ba-before .is-active .ba-nolang { animation: ba-rise .5s var(--ba-ease) var(--d) both, ba-shake .5s ease-in-out calc(var(--d) + .5s) both; }

/* BEFORE 04 */
.ba.is-live .ba-before .is-active .ba-ripple { animation: ba-ripple 3.6s ease-out var(--d) infinite; }
.ba.is-live .ba-before .is-active .ba-me-old { animation: ba-rise .6s var(--ba-ease) both; }
.ba.is-live .ba-before .is-active .ba-hush { animation: ba-hush 3.2s ease .8s both; }
.ba.is-live .ba-before .is-active .ba-seats { animation: ba-fadein 1s ease .3s both; }

/* AFTER 01 */
.ba.is-live .ba-after .is-active .ba-pill { animation: ba-rise .5s var(--ba-ease) both; }
.ba.is-live .ba-after .is-active .ba-type-mask { animation: ba-type 1.4s steps(32) .35s both; }
.ba.is-live .ba-after .is-active .ba-link { animation: ba-draw .35s ease-out 1.85s both; }
.ba.is-live .ba-after .is-active .ba-card { animation: ba-card .7s var(--ba-spring) 2.1s both; }
.ba.is-live .ba-after .is-active .ba-line { animation: ba-growx .5s var(--ba-ease) 2.5s both; }
.ba.is-live .ba-after .is-active .ba-chip { animation: ba-pop .45s var(--ba-spring) 2.9s both; }
.ba.is-live .ba-after .is-active .ba-ring { animation: ba-ring .9s var(--ba-ease) 2.5s both; }
.ba.is-live .ba-after .is-active .ba-burst path { animation: ba-burst .7s var(--ba-ease) 3.35s both; }

/* AFTER 02 */
.ba.is-live .ba-after .is-active .ba-watch-ring { animation: ba-draw 1.5s cubic-bezier(.6, 0, .3, 1) .3s both; }
.ba.is-live .ba-after .is-active .ba-hand { animation: ba-hand 1.5s cubic-bezier(.6, 0, .3, 1) .3s both; }
.ba.is-live .ba-after .is-active .ba-hub { animation: ba-hub 1.5s linear .3s both; }
.ba.is-live .ba-after .is-active .ba-check { animation: ba-draw .45s var(--ba-ease) 1.85s both; }
.ba.is-live .ba-after .is-active .ba-page { animation: ba-slide .7s var(--ba-ease) 1.8s both; }
.ba.is-live .ba-after .is-active .ba-pl { animation: ba-growx .45s var(--ba-ease) var(--d) both; }

/* AFTER 03 */
.ba.is-live .ba-after .is-active .ba-fmt { animation: ba-spread .9s var(--ba-spring) var(--d) both; }
.ba.is-live .ba-after .is-active .ba-pay { animation: ba-rise .5s var(--ba-ease) 1.6s both; }
.ba.is-live .ba-after .is-active .ba-lbl-on { animation: ba-rise .5s var(--ba-ease) 1.2s both; }
.ba.is-live .ba-after .is-active .ba-wave rect { animation: ba-wave .9s ease-in-out calc(var(--w) * -.22s) infinite; }

/* AFTER 04 */
.ba.is-live .ba-after .is-active .ba-room { animation: ba-rise .5s var(--ba-ease) .1s both; }
.ba.is-live .ba-after .is-active .ba-msg { transform-origin: left center; animation: ba-msg .5s var(--ba-spring) var(--d) both; }
.ba.is-live .ba-after .is-active .ba-msg-me { transform-origin: right center; }
.ba.is-live .ba-after .is-active .ba-dot { animation: ba-typing 1s ease-in-out calc(2.7s + var(--k) * .15s) infinite; }
.ba.is-live .ba-after .is-active .ba-quote { animation: ba-slide .7s var(--ba-ease) 2.4s both; }
.ba.is-live .ba-after .is-active .ba-act { animation: ba-rise .5s var(--ba-ease) var(--d) both; }
.ba.is-live .ba-after .is-active .ba-act-heart { animation: ba-beat2 .6s var(--ba-spring) 3.6s both; }
.ba.is-live .ba-after .is-active .ba-act-hot rect { animation: ba-press .4s ease 4.1s both; }
.ba.is-live .ba-after .is-active .ba-quote-fly { animation: ba-fly-out 1s var(--ba-ease) 4.3s both; }
.ba.is-live .ba-after .is-active .ba-share-ico { animation: ba-pop .5s var(--ba-spring) 4.5s both; }

/* ---------- Keyframes ---------- */
@keyframes ba-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ba-ring { from { stroke-dashoffset: .96; } to { stroke-dashoffset: 0; } }
@keyframes ba-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes ba-fadein { from { opacity: 0; } }
@keyframes ba-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ba-slide { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes ba-growx { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ba-type { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ba-card { from { opacity: 0; transform: translateY(14px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes ba-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes ba-blink { 0% { opacity: 1; } 100% { opacity: .35; } }

@keyframes ba-jitter {
  0%, 100% { transform: none; }
  20% { transform: translate(.6px, -.6px); }
  40% { transform: translate(-.6px, .4px); }
  60% { transform: translate(.4px, .6px); }
  80% { transform: translate(-.4px, -.4px); }
}

@keyframes ba-stutter {
  0% { transform: translateX(0); }
  18% { transform: translateX(26px); }
  38% { transform: translateX(26px); }
  52% { transform: translateX(44px); }
  74% { transform: translateX(44px); }
  86% { transform: translateX(58px); }
  100% { transform: translateX(62px); }
}

@keyframes ba-stall {
  0% { transform: scaleX(0); }
  18% { transform: scaleX(.18); }
  38% { transform: scaleX(.2); }
  52% { transform: scaleX(.28); }
  74% { transform: scaleX(.29); }
  100% { transform: scaleX(.34); }
}

@keyframes ba-flicker {
  0% { opacity: 0; }
  20% { opacity: .7; }
  35% { opacity: .2; }
  55% { opacity: .7; }
  70% { opacity: .25; }
  100% { opacity: .55; }
}

@keyframes ba-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@keyframes ba-ripple {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(4.6); }
}

@keyframes ba-hush {
  0% { opacity: 0; transform: translateY(6px) scale(.8); }
  15% { opacity: 1; transform: none; }
  55% { opacity: 1; transform: none; }
  100% { opacity: .35; transform: translateY(2px); }
}

@keyframes ba-hand {
  0% { opacity: 1; transform: rotate(0); }
  90% { opacity: 1; transform: rotate(360deg); }
  100% { opacity: 0; transform: rotate(360deg); }
}

@keyframes ba-hub { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }

@keyframes ba-spread {
  from { opacity: 0; transform: translateX(var(--dx)) scale(.7); }
  to { opacity: 1; transform: none; }
}

@keyframes ba-wave {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}

@keyframes ba-tear {
  0% { transform: none; opacity: 1; }
  25% { transform: rotate(-7deg); opacity: 1; }
  100% { transform: translate(-26px, 110px) rotate(-38deg); opacity: 0; }
}
@keyframes ba-tear-l {
  0% { transform: none; opacity: 1; }
  25% { transform: rotate(7deg); opacity: 1; }
  100% { transform: translate(26px, 110px) rotate(38deg); opacity: 0; }
}
@keyframes ba-bump { 0% { transform: scale(.9); } 100% { transform: none; } }
@keyframes ba-msg { from { opacity: 0; transform: translateY(8px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes ba-typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-2.5px); opacity: 1; } }
@keyframes ba-onwin {
  0% { opacity: 0; }
  3%, 31% { opacity: 1; }
  35%, 100% { opacity: 0; }
}
@keyframes ba-offwin {
  0% { opacity: 1; }
  3%, 31% { opacity: 0; }
  35%, 100% { opacity: 1; }
}
@keyframes ba-okpop {
  0% { transform: scale(.6); }
  5% { transform: scale(1.08); }
  8%, 100% { transform: none; }
}
@keyframes ba-coin-spin {
  0%, 50%, 100% { transform: scaleX(1); }
  25% { transform: scaleX(.08); }
}
@keyframes ba-drip {
  0% { opacity: 0; transform: none; }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translate(-5px, 16px) scale(.7); }
}
@keyframes ba-coin-drop {
  0% { opacity: 0; transform: translateY(-28px) scaleX(1); }
  45% { opacity: 1; transform: translateY(0) scaleX(.1); }
  65% { transform: translateY(-4px) scaleX(1); }
  100% { opacity: 1; transform: none; }
}
@keyframes ba-beat2 { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes ba-press { 0%, 100% { transform: scale(1); } 50% { transform: scale(.94); } }
@keyframes ba-fly-out {
  0% { opacity: 0; transform: none; }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -22px) scale(.7); }
}
@keyframes ba-burst {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(4px); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-6px); }
}

/* Static (no motion): the final frame of each scene */
.ba-burst path { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ba-head { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 760px) {
  .ba-film { border-radius: 18px; }
  .ba-bar { padding: .5rem; gap: .4rem; }
  .ba-tabs { gap: .15rem; }
  .ba-tab { flex-direction: column; gap: .1rem; padding: .5rem .5rem .9rem; }
  .ba-tab-name { font-size: .8rem; }
  .ba-tab-track { left: .5rem; right: .5rem; }
  .ba-play { width: 36px; height: 36px; }

  .ba-split { grid-template-columns: 1fr; }
  .ba-panel { padding: 1.2rem 1.2rem 1.4rem; }
  .ba-after { padding-top: 1.8rem; }
  .ba-art { margin: .8rem 0 1rem; }

  .ba-seam { position: relative; left: 0; width: auto; height: 0; }
  .ba-seam::before {
    top: -1px; bottom: auto; left: 0; right: 0; width: auto; height: 1px;
    background: var(--border-strong);
  }
  .ba-seam-badge { top: 0; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; }
}

@media (max-width: 380px) {
  .ba-tab-num { display: none; }
}

.ba-svg .ba-shrink { transform-box: view-box; transform-origin: 0 0; }

/* =========================================================
   Reader character: one face per panel, expression per chapter
   ========================================================= */
.ba-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ba-face {
  flex: none;
  display: block;
  width: 46px;
  height: 46px;
  color: var(--ba-bad-ink);
}

.ba-after .ba-face { color: var(--brand); }

.ba-face svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ba-face svg > * { opacity: 0; transition: opacity .3s ease; }
.ba-face .f-head { opacity: 1; fill: var(--bg-surface); }
.ba-face .f-hair { opacity: 1; fill: currentColor; stroke: none; }
.ba-face .f-eo { fill: currentColor; stroke: none; }
.ba-face .f-mgrin { fill: currentColor; }
.ba-face .f-blush { fill: var(--brand-soft-hover); stroke: none; }
.ba-face .f-tear { fill: var(--ba-bad); stroke: none; }
.ba-face .f-heart { fill: var(--brand); stroke: none; }
.ba-face .f-z { fill: currentColor; stroke: none; font-family: var(--font-sans); font-size: 11px; font-weight: 700; }
.ba-face .f-z2 { font-size: 8px; }

.ba-face[data-face="neutral"] :is(.f-eo, .f-mflat),
.ba-face[data-face="confused"] :is(.f-eo, .f-br, .f-mwavy),
.ba-face[data-face="bored"] :is(.f-et, .f-mflat, .f-z),
.ba-face[data-face="frustrated"] :is(.f-eo, .f-ba, .f-mfrown),
.ba-face[data-face="sad"] :is(.f-eo, .f-bw, .f-mfrown, .f-tear),
.ba-face[data-face="excited"] :is(.f-eo, .f-msmile, .f-blush),
.ba-face[data-face="happy"] :is(.f-eh, .f-msmile, .f-blush),
.ba-face[data-face="content"] :is(.f-eh, .f-msmile),
.ba-face[data-face="joy"] :is(.f-eh, .f-mgrin, .f-blush, .f-heart) { opacity: 1; }

.ba-face.is-react { animation: ba-react .5s var(--ba-spring); }
.ba.is-live .ba-face[data-face="bored"] .f-z { animation: ba-zz 1.6s ease-in-out infinite; }
.ba.is-live .ba-face[data-face="bored"] .f-z2 { animation-delay: .4s; }
.ba.is-live .ba-face[data-face="sad"] .f-tear { animation: ba-tear-drop 1.8s ease-in .2s infinite; }
.ba.is-live .ba-face[data-face="joy"] .f-heart { animation: ba-bob 1.2s ease-in-out infinite; }

@keyframes ba-zz {
  0%, 100% { transform: none; opacity: .4; }
  50% { transform: translate(1px, -2px); opacity: 1; }
}

@keyframes ba-tear-drop {
  0% { transform: none; opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}

@keyframes ba-react {
  0% { transform: scale(1); }
  35% { transform: scale(1.14) rotate(-4deg); }
  100% { transform: none; }
}

@media (max-width: 760px) {
  .ba-face { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .ba-scene, .ba-scene.is-active { transition: none !important; }
}

/* ===== enhancements.css ===== */
/* ==========================================================================
   Senivo enhancements (Nov 2026)
   Loaded last in site.css. Sections:
   2. Section rhythm + tibeb dividers   3. Motion
   4. Hero waitlist + countdown   5. Who it's for + testimonials   6. FAQ
   7. Mobile sticky signup bar   8. Gallery touch   9. Reduced motion
   ========================================================================== */

/* 2. Section rhythm + Ethiopian tibeb-inspired dividers ------------------- */
.tibeb, .audience-section::before, .footer::before {
  --tibeb-a: rgba(161, 77, 83, .55);
  --tibeb-b: rgba(200, 138, 56, .65);
}
.audience-section, .faq-section { position: relative; isolation: isolate; }
/* A woven band of small diamonds, like the border of a netela */
.audience-section::before, .footer::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  width: min(220px, 40vw); height: 8px;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(135deg, var(--tibeb-a) 25%, transparent 25%) -4px 0 / 8px 8px,
    linear-gradient(225deg, var(--tibeb-a) 25%, transparent 25%) -4px 0 / 8px 8px,
    linear-gradient(315deg, var(--tibeb-b) 25%, transparent 25%) 0 0 / 8px 8px,
    linear-gradient(45deg, var(--tibeb-b) 25%, transparent 25%) 0 0 / 8px 8px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.footer { position: relative; }
[data-theme="dark"] .audience-section::before, [data-theme="dark"] .footer::before {
  --tibeb-a: rgba(224, 160, 160, .5);
  --tibeb-b: rgba(221, 169, 102, .55);
}

.audience-section {
  background:
    radial-gradient(ellipse 50% 40% at 6% 12%, rgba(215, 173, 95, .07), transparent 70%),
    var(--bg);
}
.faq-section {
  background:
    radial-gradient(ellipse 45% 50% at 96% 90%, rgba(161, 77, 83, .05), transparent 70%),
    var(--bg-subtle);
}
[data-theme="dark"] .audience-section {
  background: radial-gradient(ellipse 50% 40% at 6% 12%, rgba(215, 173, 95, .04), transparent 70%), #191716;
}
[data-theme="dark"] .faq-section {
  background: radial-gradient(ellipse 45% 50% at 96% 90%, rgba(224, 160, 160, .045), transparent 70%), #211e1c;
}

/* 3. Motion ---------------------------------------------------------------- */
/* Slow drifting rings behind the hero */
@keyframes senivo-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-18px, 14px, 0) rotate(6deg); }
}
.hero-deco::before { animation: senivo-drift 18s ease-in-out infinite; }
.platform-section::after { animation: senivo-drift 22s ease-in-out infinite reverse; }

/* A light sweep across primary buttons on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out-expo);
  pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); }

/* Hover depth for cards: only on devices that can hover */
@media (hover: hover) {
  .bento-card, .research-card { transition: transform .45s var(--ease-out-expo), box-shadow .45s var(--ease-out-expo), border-color .25s ease; }
  .bento-card:hover, .research-card:hover { box-shadow: 0 24px 44px -18px rgba(66, 43, 24, .22); }
  [data-theme="dark"] .bento-card:hover, [data-theme="dark"] .research-card:hover { box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .55); }
}

/* 4. Hero waitlist + launch countdown ------------------------------------ */
.waitlist-count {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 1.4rem 0 0;
  font-size: .9rem; color: var(--text-secondary);
}
.waitlist-count strong { color: var(--text-primary); font-weight: 700; margin-right: -.2rem; font-variant-numeric: tabular-nums; }
.waitlist-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green, #2e7d32); flex: none; }
.waitlist-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid rgba(46, 125, 50, .45);
  animation: signup-ping 2.2s ease-out infinite;
}
.notify-copy .waitlist-count { margin: 1rem 0 2rem; }

.launch-countdown { margin: 1.6rem 0 .4rem; }
.launch-countdown-label {
  display: block; margin-bottom: .6rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brand);
}
.countdown-units { display: flex; gap: .55rem; }
.cd-unit {
  display: grid; justify-items: center; gap: .15rem;
  min-width: 4.1rem; padding: .7rem .5rem .55rem;
  border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--bg-surface);
}
.cd-unit b { font-family: var(--font-sans); font-size: 1.75rem; font-weight: 600; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); }
@media (max-width: 420px) { .cd-unit { min-width: 0; flex: 1; } .cd-unit b { font-size: 1.4rem; } }

/* 5. Who it's for: the Senivo universe -------------------------------------
   Senivo sits at the centre; readers, students, authors and researchers orbit it.
   Each orbit spins; each planet counter-spins so its label stays upright. */
.universe-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.universe-copy .section-desc { margin-bottom: 2rem; }
.audience-section { overflow-x: clip; }

.universe-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-strong); }
.universe-item {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.1rem .4rem; border-bottom: 1px solid var(--border-strong);
  cursor: default;
}
.universe-item h3 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-primary); transition: color .25s ease; }
.universe-item p { margin: 0; font-size: .88rem; line-height: 1.65; color: var(--text-secondary); }
.universe-item-icon {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--brand); background: rgba(161, 77, 83, .08);
  transition: background-color .25s ease, color .25s ease, transform .4s var(--ease-out-expo);
}
.universe-item:hover h3 { color: var(--brand); }
.universe-item:hover .universe-item-icon { background: var(--brand); color: #fff8ef; transform: scale(1.08); }

/* The system */
.universe {
  --spin-inner: 30s; --spin-mid: 48s; --spin-outer: 90s;
  position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto;
  color: var(--brand);
}
.universe-stars {
  position: absolute; inset: -6%; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(161, 77, 83, .55) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 84% 12%, rgba(200, 138, 56, .7) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 93% 64%, rgba(161, 77, 83, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 6% 74%, rgba(200, 138, 56, .6) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 95%, rgba(161, 77, 83, .5) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 70% 92%, rgba(200, 138, 56, .5) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 2%, rgba(161, 77, 83, .4) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 50%, rgba(200, 138, 56, .45) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 40%, rgba(161, 77, 83, .35) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(161, 77, 83, .07), transparent 62%);
  animation: stars-twinkle 5s ease-in-out infinite alternate;
}
@keyframes stars-twinkle { from { opacity: .55; } to { opacity: 1; } }

.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(161, 77, 83, .2); }
.orbit-outer { inset: 0; border-style: dashed; border-color: rgba(161, 77, 83, .18); animation: orbit-spin var(--spin-outer) linear infinite; }
.orbit-mid { inset: 5%; animation: orbit-spin var(--spin-mid) linear infinite reverse; }
.orbit-inner { inset: 28%; animation: orbit-spin var(--spin-inner) linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-counter { to { transform: rotate(-360deg); } }

/* Light trails that follow the planets around */
.orbit-mid::before, .orbit-inner::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
/* mid spins anticlockwise (planets left & right): trail sits clockwise of each planet */
.orbit-mid::before { background: conic-gradient(from 270deg, rgba(161, 77, 83, .7), transparent 70deg, transparent 180deg, rgba(161, 77, 83, .7) 180deg, transparent 250deg, transparent); }
/* inner spins clockwise (planets top & bottom): trail sits anticlockwise of each planet */
.orbit-inner::before { background: conic-gradient(from 0deg, transparent 110deg, rgba(161, 77, 83, .7) 180deg, transparent 180deg, transparent 290deg, rgba(161, 77, 83, .7) 360deg); }

/* Planets */
.planet { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.planet-2 { top: 0; left: 50%; }
.planet-4 { top: 100%; left: 50%; }
.planet-1 { top: 50%; left: 0; }
.planet-3 { top: 50%; left: 100%; }
.planet-body { position: relative; display: grid; justify-items: center; }
.orbit-mid .planet-body { animation: orbit-counter var(--spin-mid) linear infinite reverse; }
.orbit-inner .planet-body { animation: orbit-counter var(--spin-inner) linear infinite; }
.planet-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  color: var(--brand); background: var(--bg-surface);
  border: 1px solid rgba(161, 77, 83, .25);
  box-shadow: 0 14px 30px -14px rgba(161, 77, 83, .55), inset 0 -6px 14px rgba(161, 77, 83, .08);
  transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out-expo), box-shadow .3s ease;
}
.planet-label {
  position: absolute; top: calc(100% + .45rem); left: 50%; transform: translateX(-50%);
  padding: .28rem .65rem; border-radius: 999px; white-space: nowrap;
  font-size: .72rem; font-weight: 600; letter-spacing: .01em;
  color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border);
  box-shadow: 0 6px 16px -10px rgba(66, 43, 24, .35);
}
.moon { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); }
.moon-a { top: 14.6%; left: 85.4%; background: #c88a38; box-shadow: 0 0 0 4px rgba(200, 138, 56, .15); }
.moon-b { top: 85.4%; left: 14.6%; background: var(--brand); box-shadow: 0 0 0 4px rgba(161, 77, 83, .14); }

/* Senivo at the centre */
.universe-core {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; align-content: center; gap: .3rem;
  border-radius: 50%; background: var(--bg-surface);
  border: 1px solid rgba(161, 77, 83, .25);
  box-shadow: 0 24px 60px -20px rgba(161, 77, 83, .6), inset 0 -10px 24px rgba(161, 77, 83, .07);
  z-index: 2;
}
.universe-core img { position: relative; width: 38%; height: auto; }
.core-name { position: relative; font-size: .82rem; font-weight: 700; letter-spacing: -.01em; color: var(--text-primary); }
.core-glow { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(161, 77, 83, .2), transparent 65%); animation: core-breathe 4s ease-in-out infinite; z-index: -1; }
.core-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand); opacity: 0; animation: core-ping 4s ease-out infinite; }
.core-ring-2 { animation-delay: 2s; }
@keyframes core-breathe { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes core-ping { 0% { transform: scale(1); opacity: .45; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

/* Pause the universe while exploring it; hovering a list row lights up its planet */
.universe:hover .orbit, .universe:hover .planet-body,
.universe-layout:has(.universe-item:hover) .orbit,
.universe-layout:has(.universe-item:hover) .planet-body { animation-play-state: paused; }
.universe-layout:has([data-planet="1"]:hover) .planet-1 .planet-icon,
.universe-layout:has([data-planet="2"]:hover) .planet-2 .planet-icon,
.universe-layout:has([data-planet="3"]:hover) .planet-3 .planet-icon,
.universe-layout:has([data-planet="4"]:hover) .planet-4 .planet-icon,
.planet:hover .planet-icon {
  background: var(--brand); color: #fff8ef; transform: scale(1.15);
  box-shadow: 0 0 0 8px rgba(161, 77, 83, .14), 0 18px 34px -12px rgba(161, 77, 83, .7);
}

[data-theme="dark"] .universe-core, [data-theme="dark"] .planet-icon, [data-theme="dark"] .planet-label { background: #262220; }
[data-theme="dark"] .universe-core, [data-theme="dark"] .planet-icon { border-color: rgba(224, 160, 160, .3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
[data-theme="dark"] .universe-item-icon { background: rgba(224, 160, 160, .1); }

@media (max-width: 1000px) {
  .universe-layout { grid-template-columns: 1fr; }
  .universe { width: min(100%, 480px); margin-top: 1rem; }
}
@media (max-width: 560px) {
  .universe { width: calc(100% - 3rem); margin-top: 2rem; margin-bottom: 1rem; }
  .planet-label { display: none; }
  .universe-stars { inset: 0; }
  .universe-core img { width: 34%; }
  .planet-icon { width: 46px; height: 46px; }
  .planet-icon svg { width: 17px; height: 17px; }
  .planet-label { font-size: .64rem; padding: .22rem .5rem; }
  .core-name { font-size: .7rem; }
}

.testimonials { margin-top: 4rem; }
.testimonials-kicker { font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--brand); margin-bottom: 1.2rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.testimonial-card {
  margin: 0; padding: 1.8rem;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem;
}
.testimonial-card blockquote { margin: 0; font-family: var(--font-sans); font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.45; color: var(--text-primary); }
.testimonial-card figcaption { display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.testimonial-card figcaption strong { display: block; color: var(--text-primary); }
.testimonial-card figcaption small { color: var(--text-tertiary); }
.t-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff8ef; font-weight: 600; flex: none; }


/* 6. FAQ ---------------------------------------------------------------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.faq-intro { position: sticky; top: 110px; }
.faq-intro .section-desc a, .faq-answer a { color: var(--brand); text-underline-offset: 3px; }
.faq-list { border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-sans); font-size: clamp(1.02rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--text-primary);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  transition: transform .35s var(--ease-out-expo), background-color .2s ease, border-color .2s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); border-color: var(--brand); }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding: 0 3rem 1.5rem 0; }
.faq-answer p { margin: 0; font-size: .95rem; line-height: 1.8; color: var(--text-secondary); }
.faq-item[open] .faq-answer { animation: faq-open .4s var(--ease-out-expo); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .faq-answer { padding-right: 0; }
}

/* 7. Mobile sticky signup bar (restyles the floating button on phones) ----- */
.floating-cta-text { display: inline-flex; flex-direction: column; line-height: 1.2; }
.floating-cta-kicker { display: none; }
@media (max-width: 650px) {
  .floating-cta {
    left: 0; right: 0; bottom: 0;
    justify-content: space-between;
    padding: .85rem 1.15rem calc(.85rem + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    font-size: .92rem;
    box-shadow: 0 -10px 30px -12px rgba(60, 20, 26, .45);
  }
  .floating-cta .floating-cta-dot { order: 0; }
  .floating-cta-text { flex: 1; margin-left: .2rem; }
  .floating-cta-kicker { display: block; font-size: .68rem; font-weight: 500; opacity: .75; letter-spacing: .02em; }
  .floating-cta svg {
    width: 34px; height: 34px; padding: 9px; border-radius: 50%;
    background: rgba(255, 255, 255, .14);
  }
  /* Keep the footer's last line clear of the bar */
  .footer { padding-bottom: 5.5rem; }
}

/* 8. Gallery touch: horizontal swipes go to the gallery, vertical to scrolling */
.hero-books-showcase { touch-action: pan-y; }

/* 9. Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-deco::before, .platform-section::after, .waitlist-dot::after { animation: none; }
  .btn-primary::after { display: none; }
  .faq-item[open] .faq-answer { animation: none; }
  .universe-stars, .orbit, .planet-body, .core-glow, .core-ring { animation: none !important; }
}

.senivo-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.planet-icon svg { width: 26px; height: 26px; }
.universe-item-icon svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .planet-icon svg { width: 20px; height: 20px; } }

/* What's inside: research & crowdfunding (merged from the old section 04) */
@media (min-width: 651px) {
  .bento-card.bento-wide { grid-column: span 2; }
  .bento-wide .bento-img { aspect-ratio: 16 / 6.2; }
  .bento-wide .bento-img img { object-position: center 45%; }
}
@media (max-width: 650px) {
  .category-filters { flex-wrap: wrap; justify-content: flex-start; gap: .25rem; }
}
