/* ============================================
   Dr. Himanshu Mehta – Global Stylesheet
   Design: Premium dark theme with saffron/gold accents
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Great+Vibes&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --clr-bg-primary: #0b0b12;
  --clr-bg-secondary: #12121c;
  --clr-bg-card: rgba(255, 255, 255, 0.04);
  --clr-bg-card-hover: rgba(255, 255, 255, 0.08);
  --clr-glass: rgba(255, 255, 255, 0.06);
  --clr-glass-border: rgba(255, 255, 255, 0.1);

  --clr-gold: #d4a853;
  --clr-gold-light: #f0d48a;
  --clr-gold-dark: #a17c3b;
  --clr-saffron: #e8913a;
  --clr-amber: #f5c542;
  --clr-burgundy: #8b2252;

  --clr-text: #e8e6e1;
  --clr-text-muted: #9a9690;
  --clr-text-dim: #6b6762;
  --clr-white: #ffffff;

  --gradient-gold: linear-gradient(135deg, var(--clr-gold), var(--clr-saffron));
  --gradient-hero: linear-gradient(160deg, #0b0b12 0%, #1a1420 40%, #1c1510 70%, #0b0b12 100%);
  --gradient-card: linear-gradient(145deg, rgba(212,168,83,0.08), rgba(232,145,58,0.04));

  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-accent: 'Great Vibes', cursive;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(212,168,83,0.15);
  --shadow-hover: 0 8px 40px rgba(212,168,83,0.2);

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 72px;
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg-primary);
  color: var(--clr-text);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--clr-gold); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--clr-gold-light); }

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.container--narrow { max-width: var(--container-narrow); }

/* --- Background Orbs (ambient glow) --- */
.bg-orb {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(100px); opacity: 0.12;
}
.bg-orb--gold { width: 500px; height: 500px; background: var(--clr-gold); top: -10%; right: -5%; }
.bg-orb--saffron { width: 400px; height: 400px; background: var(--clr-saffron); bottom: 10%; left: -8%; }
.bg-orb--burgundy { width: 350px; height: 350px; background: var(--clr-burgundy); top: 50%; right: 20%; opacity: 0.08; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(11, 11, 18, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-glass-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
  background: rgba(11, 11, 18, 0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.navbar__brand {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
  color: var(--clr-white);
}
.navbar__brand-logo {
  font-weight: 900; font-size: 2.4rem; letter-spacing: -2px;
  color: var(--clr-white);
}
.navbar__brand-titles {
  display: flex; flex-direction: column;
  font-size: 0.65rem; color: rgba(255,255,255,0.45);
  line-height: 1.5; letter-spacing: 0.02em;
}

.navbar__links { display: flex; gap: 6px; align-items: center; }
.navbar__link {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 500; font-size: 0.9rem;
  color: var(--clr-text-muted); transition: all var(--transition-base);
  position: relative;
}
.navbar__link:hover { color: var(--clr-white); background: var(--clr-glass); }
.navbar__link--active {
  color: var(--clr-gold);
  background: rgba(212, 168, 83, 0.1);
}

/* Mobile hamburger – CSS-only checkbox hack */
.navbar__checkbox { display: none; }
.navbar__toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px; z-index: 10;
}
.navbar__toggle span {
  width: 24px; height: 2px; background: var(--clr-text);
  border-radius: 2px; transition: all var(--transition-base);
}
/* Animate hamburger to X on check */
.navbar__checkbox:checked ~ .navbar__toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__checkbox:checked ~ .navbar__toggle span:nth-child(2) { opacity: 0; }
.navbar__checkbox:checked ~ .navbar__toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO / PAGE HEADER
   ============================================ */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 50px;
  background: var(--gradient-hero);
  position: relative;
}
.page-header__title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.15; margin-bottom: 12px;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-header__subtitle {
  font-family: var(--font-body); font-size: 1.1rem;
  color: var(--clr-text-muted); max-width: 600px;
}
.page-header__badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px; font-size: 0.78rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  background: rgba(212,168,83,0.12); color: var(--clr-gold);
  border: 1px solid rgba(212,168,83,0.25); margin-bottom: 16px;
}
.page-header__badge::before { content: '✦'; font-size: 0.7rem; }

/* ============================================
   STORY CARDS GRID (stories.html)
   ============================================ */
.stories-section { padding: 60px 0 80px; position: relative; z-index: 1; }

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.story-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
  transition: all var(--transition-base);
  cursor: default;
  display: flex; flex-direction: column;
}
.story-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-gold); opacity: 0;
  transition: opacity var(--transition-base); z-index: 2;
}
.story-card:hover {
  background: var(--clr-bg-card-hover);
  border-color: rgba(212,168,83,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.story-card:hover::before { opacity: 1; }

/* Card with featured image */
.story-card__image {
  width: 100%; height: 220px;
  overflow: hidden; position: relative;
}
.story-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.85);
  transition: all 0.6s cubic-bezier(0.165,0.84,0.44,1);
}
.story-card:hover .story-card__image img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}
.story-card__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--clr-bg-primary) 0%, transparent 50%);
  pointer-events: none;
}

/* Card body */
.story-card__body { padding: 28px 28px 24px; flex: 1; display: flex; flex-direction: column; }
/* When no image, add top padding */
.story-card:not(:has(.story-card__image)) .story-card__body { padding-top: 32px; }

.story-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--gradient-card);
  border: 1px solid rgba(212,168,83,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.story-card__year {
  font-family: var(--font-heading); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--clr-gold); margin-bottom: 8px;
}
.story-card__title {
  font-family: var(--font-heading); font-size: 1.25rem;
  font-weight: 700; color: var(--clr-white);
  margin-bottom: 12px; line-height: 1.35;
}
.story-card__text {
  font-size: 0.92rem; color: var(--clr-text-muted); line-height: 1.7;
}
/* Truncated preview for long stories */
.story-card__text--preview {
  display: -webkit-box; -webkit-line-clamp: 4;
  -webkit-box-orient: vertical; overflow: hidden;
}
/* "View Full Story" link on cards */
.story-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 600;
  color: var(--clr-gold); text-decoration: none;
  letter-spacing: 0.5px;
  transition: color var(--transition-base), gap var(--transition-base);
}
.story-card__link::after { content: '→'; transition: transform 0.3s; }
.story-card:hover .story-card__link { color: var(--clr-gold-light); gap: 10px; }
.story-card:hover .story-card__link::after { transform: translateX(4px); }

/* Make entire card a clickable link */
a.story-card-wrapper {
  text-decoration: none; color: inherit; display: block;
}

.story-card__tag {
  display: inline-block; margin-top: auto; padding-top: 16px;
}
.story-card__tag span {
  padding: 4px 12px; border-radius: 50px; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(212,168,83,0.1); color: var(--clr-gold);
  border: 1px solid rgba(212,168,83,0.2);
}

/* ============================================
   STORY DETAIL PAGE (stories/*.html)
   ============================================ */
.story-detail { padding: 0 0 80px; position: relative; z-index: 1; }

/* Back navigation */
.story-detail__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--clr-text-muted); text-decoration: none;
  font-family: var(--font-heading); font-size: 0.82rem;
  font-weight: 500; letter-spacing: 0.3px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  margin-bottom: 32px;
}
.story-detail__back::before { content: '←'; font-size: 1rem; }
.story-detail__back:hover {
  color: var(--clr-gold); background: var(--clr-glass);
}

/* Image Carousel (top of story page) */
.story-carousel {
  position: relative; width: 100%;
  max-height: 500px; overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  background: rgba(20,18,25,0.6);
  border: 1px solid var(--clr-glass-border);
}
.story-carousel__track {
  display: flex; transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}
.story-carousel__slide {
  min-width: 100%; height: 500px;
  position: relative; overflow: hidden;
}
.story-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block; background: rgba(10,10,15,0.9);
}

/* Prev / Next arrows */
.story-carousel__prev,
.story-carousel__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-base);
  z-index: 3; opacity: 0.7;
}
.story-carousel__prev { left: 16px; }
.story-carousel__next { right: 16px; }
.story-carousel__prev:hover,
.story-carousel__next:hover {
  background: rgba(0,0,0,0.75); opacity: 1;
  border-color: var(--clr-gold);
}

/* Dot indicators */
.story-carousel__dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.story-carousel__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: all 0.3s;
}
.story-carousel__dot--active {
  background: var(--clr-gold);
  border-color: var(--clr-gold);
  width: 24px; border-radius: 4px;
}

/* Counter badge */
.story-carousel__counter {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
  padding: 4px 12px; border-radius: 50px;
  font-family: var(--font-heading); font-size: 0.72rem;
  color: rgba(255,255,255,0.7); letter-spacing: 1px;
  z-index: 3;
}

/* Hide arrows if single image */
.story-carousel--single .story-carousel__prev,
.story-carousel--single .story-carousel__next,
.story-carousel--single .story-carousel__dots,
.story-carousel--single .story-carousel__counter { display: none; }

/* Empty carousel placeholder */
.story-carousel__empty {
  height: 280px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: var(--clr-text-dim); font-size: 0.85rem; font-style: italic;
}
.story-carousel__empty-icon { font-size: 2.5rem; opacity: 0.4; }

/* Google Photos style Gallery */
.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  gap: 16px;
  margin-bottom: 40px;
}

.story-gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.story-gallery__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-gallery__item.span-2-col { grid-column: span 2; }
.story-gallery__item.span-2-row { grid-row: span 2; }

@media (max-width: 600px) {
  .story-gallery__item.span-2-col { grid-column: span 1; }
  .story-gallery__item.span-2-row { grid-row: span 1; }
}

.story-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-gallery__item:hover img {
  transform: scale(1.08);
}

.story-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.story-gallery__item:hover::after {
  opacity: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.active .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s, transform 0.3s;
  line-height: 1;
}

.lightbox__close:hover {
  color: var(--clr-gold);
  transform: scale(1.1);
}

/* Metadata */
.story-detail__meta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.story-detail__year {
  font-family: var(--font-heading); font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  color: var(--clr-gold);
}
.story-detail__tag {
  padding: 4px 12px; border-radius: 50px; font-size: 0.72rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  background: rgba(212,168,83,0.1); color: var(--clr-gold);
  border: 1px solid rgba(212,168,83,0.2);
}

/* Title */
.story-detail__title {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2; margin-bottom: 32px;
  background: var(--gradient-gold);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Content */
.story-detail__content {
  max-width: 760px;
}
.story-detail__content p {
  font-family: var(--font-body); font-size: 1.05rem;
  color: var(--clr-text-muted); line-height: 1.9;
  margin-bottom: 1.4em;
}
.story-detail__content p:last-child { margin-bottom: 0; }

/* Takeaway / Key Insight highlight */
.story-detail__takeaway {
  margin: 40px 0; padding: 28px 32px;
  background: var(--gradient-card);
  border: 1px solid rgba(212,168,83,0.15);
  border-left: 3px solid var(--clr-gold);
  border-radius: var(--radius-md);
}
.story-detail__takeaway p {
  font-style: italic; color: var(--clr-text) !important;
  font-size: 1.05rem !important;
}


/* ============================================
   TIMELINE (about.html)
   ============================================ */
.timeline-section { padding: 60px 0 80px; position: relative; z-index: 1; }

.timeline {
  position: relative; padding: 20px 0;
}
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--clr-gold-dark), var(--clr-gold), var(--clr-gold-dark), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex; align-items: flex-start;
  position: relative; margin-bottom: 50px;
  width: 100%;
}
.timeline-item:nth-child(odd) { justify-content: flex-start; padding-right: calc(50% + 40px); }
.timeline-item:nth-child(even) { justify-content: flex-end; padding-left: calc(50% + 40px); }

.timeline-item__dot {
  position: absolute; left: 50%; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--clr-gold);
  border: 3px solid var(--clr-bg-primary);
  transform: translateX(-50%); z-index: 2;
  box-shadow: 0 0 20px rgba(212,168,83,0.3);
}

.timeline-item__content {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-md); padding: 24px 28px;
  transition: all var(--transition-base);
  max-width: 100%;
}
.timeline-item__content:hover {
  border-color: rgba(212,168,83,0.25);
  box-shadow: var(--shadow-glow);
}
.timeline-item__year {
  font-family: var(--font-heading); font-size: 0.78rem;
  font-weight: 700; color: var(--clr-gold);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px;
}
.timeline-item__title {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 700; color: var(--clr-white); margin-bottom: 8px;
}
.timeline-item__text {
  font-size: 0.9rem; color: var(--clr-text-muted); line-height: 1.7;
}

/* Bio section */
.bio-section {
  padding: 60px 0 80px; position: relative; z-index: 1;
}
.bio-card {
  background: var(--gradient-card);
  border: 1px solid rgba(212,168,83,0.2);
  border-radius: var(--radius-xl); padding: 48px 40px;
  text-align: center;
}
.bio-card__quote {
  font-family: var(--font-accent); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--clr-gold-light); line-height: 1.5;
  margin-bottom: 20px;
}
.bio-card__text {
  font-size: 1rem; color: var(--clr-text-muted);
  max-width: 700px; margin: 0 auto; line-height: 1.8;
}
.bio-card__divider {
  width: 60px; height: 2px; margin: 24px auto;
  background: var(--gradient-gold); border-radius: 2px;
}

/* ============================================
   BOOK CARDS (books.html)
   ============================================ */
.books-section { padding: 60px 0 80px; position: relative; z-index: 1; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 36px;
}

.book-card {
  background: var(--clr-bg-card);
  border: 1px solid var(--clr-glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}
.book-card:hover {
  border-color: rgba(212,168,83,0.3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.book-card__cover {
  width: 100%; height: 280px;
  background: linear-gradient(135deg, #1a1520, #201a12);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.book-card__cover-icon {
  font-size: 3rem; margin-bottom: 12px; opacity: 0.5;
}
.book-card__cover-label {
  font-family: var(--font-heading); font-size: 0.85rem;
  font-weight: 600; color: var(--clr-text-dim);
  text-transform: uppercase; letter-spacing: 2px;
}
.book-card__cover-title {
  font-family: var(--font-accent);
  font-size: 1.4rem; color: var(--clr-gold-light);
  text-align: center; padding: 0 24px;
  line-height: 1.4; max-width: 90%;
}
.book-card__body { padding: 32px 28px; }
.book-card__title {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 700; color: var(--clr-white); margin-bottom: 12px;
}
.book-card__desc {
  font-size: 0.92rem; color: var(--clr-text-muted);
  line-height: 1.7; margin-bottom: 24px;
}
.book-card__links { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.88rem; cursor: pointer; border: none;
  transition: all var(--transition-base);
}
.btn--primary {
  background: var(--gradient-gold); color: var(--clr-bg-primary);
}
.btn--primary:hover {
  box-shadow: var(--shadow-glow); transform: translateY(-2px);
  color: var(--clr-bg-primary);
}
.btn--outline {
  background: transparent; color: var(--clr-gold);
  border: 1px solid rgba(212,168,83,0.4);
}
.btn--outline:hover {
  background: rgba(212,168,83,0.1); color: var(--clr-gold-light);
}
.btn--disabled {
  background: var(--clr-glass); color: var(--clr-text-dim);
  border: 1px solid var(--clr-glass-border); cursor: default;
}
.btn svg { width: 16px; height: 16px; }

/* Coming Soon Badge */
.badge--coming-soon {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  background: rgba(139, 34, 82, 0.2); color: #e074a8;
  border: 1px solid rgba(139, 34, 82, 0.4);
}

/* ============================================
   FOOTER — Matches landing page footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--clr-glass-border);
  padding: 5rem 0 2.5rem;
  position: relative; z-index: 1;
  background: var(--clr-bg-secondary);
}
.site-footer .container { width: 90%; max-width: var(--container-max); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand h2 {
  font-family: var(--font-heading); font-size: 2.5rem;
  font-weight: 900; letter-spacing: -0.03em;
  color: var(--clr-white); margin-bottom: 0.75rem;
}
.footer-brand .tagline {
  font-size: 0.85rem; color: var(--clr-text-dim);
}
.footer-col h4 {
  font-size: 0.6rem; text-transform: uppercase;
  letter-spacing: 0.3em; color: var(--clr-text-dim);
  margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; color: var(--clr-text-muted);
  text-decoration: none; font-size: 0.9rem;
  margin-bottom: 0.6rem; transition: color 0.3s;
}
.footer-col a:hover { color: var(--clr-gold); }

.social-icons {
  display: flex; gap: 1.2rem; margin-top: 0.5rem;
}
.social-icons a {
  display: inline-flex; margin-bottom: 0;
}
.social-icons a svg {
  transition: transform 0.3s cubic-bezier(0.165,0.84,0.44,1);
}
.social-icons a:hover svg {
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 2rem;
  border-top: 1px solid var(--clr-glass-border);
}
.footer-bottom span {
  font-size: 0.65rem; color: var(--clr-text-dim);
  letter-spacing: 0.05em;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0; animation: fadeInUp 0.6s var(--transition-base) forwards;
}
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }
.animate-in:nth-child(9) { animation-delay: 0.45s; }
.animate-in:nth-child(10) { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .timeline::before { left: 24px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 60px; padding-right: 0;
  }
  .timeline-item__dot { left: 24px; }
}

@media (max-width: 768px) {
  .navbar__links {
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: rgba(11,11,18,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px;
    gap: 4px; border-bottom: 1px solid var(--clr-glass-border);
    transform: translateY(-120%); opacity: 0;
    transition: all var(--transition-base);
    pointer-events: none;
  }
  .navbar__checkbox:checked ~ .navbar__links {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }
  .navbar__toggle { display: flex; }
  .navbar__link { width: 100%; text-align: center; padding: 12px; }

  .story-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .bio-card { padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar__brand-titles { display: none; }
}

@media (max-width: 480px) {
  .page-header { padding: calc(var(--nav-height) + 40px) 0 30px; }
  .story-card { padding: 24px 20px; }
  .book-card__body { padding: 24px 20px; }
  .book-card__cover { height: 220px; }
}
