
: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;
  }
}


