/* ==========================================================================
   Sonia Golani - Personal Website
   Luxury Editorial Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --ink: #1a1a1a;
  --paper: #ffffff;
  --gold: #c9a227;
  --gold-muted: #d4b55e;
  --gold-light: rgba(201, 162, 39, 0.1);
  --slate: #4a5568;
  --charcoal: #1f1f1f;
  --charcoal-light: #2d2d2d;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-dramatic: 0 20px 60px rgba(0, 0, 0, 0.2);

  /* Layout */
  --max-width: 1400px;
  --content-width: 900px;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-muted);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.text-gold {
  color: var(--gold);
}

.text-slate {
  color: var(--slate);
}

.text-muted {
  color: var(--slate);
  opacity: 0.8;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Layout Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--dark {
  background-color: var(--charcoal);
  color: var(--white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-xs) 0;
  transition: background-color var(--transition-smooth), padding var(--transition-smooth);
}

.nav.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-soft);
}

.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width var(--transition-smooth);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--gold);
}

/* Mobile Navigation */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--paper);
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-sm);
    transition: right var(--transition-smooth);
    box-shadow: var(--shadow-dramatic);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-sm);
}

.hero__content {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero__subtitle {
  margin-bottom: var(--space-sm);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__description {
  font-size: 1.25rem;
  color: var(--slate);
  margin-bottom: var(--space-md);
  max-width: 500px;
}

.hero__cta {
  display: inline-flex;
  gap: var(--space-sm);
}

.hero__image-wrapper {
  position: relative;
  animation: fadeInRight 1s ease-out 0.5s both;
}

.hero__image {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-dramatic);
  border-bottom: 4px solid var(--gold);
}

.hero__image-accent {
  display: none;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--space-xl) + 60px);
  }

  .hero__content {
    order: 2;
  }

  .hero__image-wrapper {
    order: 1;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn--primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.btn--outline:hover {
  background-color: var(--ink);
  color: var(--white);
}

.btn--outline-light {
  border-color: var(--white);
  color: var(--white);
}

.btn--outline-light:hover {
  background-color: var(--white);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-lg);
  align-items: start;
}

.about__heading {
  position: sticky;
  top: 120px;
}

.about__content p {
  margin-bottom: var(--space-md);
}

.about__content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  float: left;
  line-height: 1;
  padding-right: var(--space-sm);
  color: var(--gold);
}

.about__highlight {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about__stat {
  text-align: center;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.875rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__heading {
    position: static;
    text-align: center;
  }

  .about__highlight {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   Books Section
   -------------------------------------------------------------------------- */
.books {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-light) 100%);
}

.books__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.books__header h2 {
  color: var(--white);
}

.books__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.book-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.book-card:nth-child(even) {
  direction: rtl;
}

.book-card:nth-child(even)>* {
  direction: ltr;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.book-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-dramatic);
}

.book-card:hover::before {
  opacity: 1;
}

.book-card__cover {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.book-card__cover img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform var(--transition-slow);
  box-shadow: var(--shadow-dramatic);
}

.book-card:hover .book-card__cover img {
  transform: scale(1.02);
}

.book-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-md);
}

.book-card__title {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.book-card__description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.book-card__link {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.book-card__link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.book-card:hover .book-card__link::after {
  transform: translateX(4px);
}

.book-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.book-card__link--secondary {
  opacity: 0.8;
  font-size: 0.85rem;
}

.book-card__link--secondary:hover {
  opacity: 1;
}

@media (max-width: 900px) {
  .book-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-card:nth-child(even) {
    direction: ltr;
  }

  .book-card__cover img {
    max-height: 400px;
  }

  .book-card__content {
    align-items: center;
  }

  .book-card__links {
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Photo Gallery Section
   -------------------------------------------------------------------------- */
.gallery__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

.gallery__item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  transition: all var(--transition-smooth);
}

.gallery__item:hover .gallery__item-title {
  background: linear-gradient(transparent, rgba(201, 162, 39, 0.9));
}

/* --------------------------------------------------------------------------
   MCG Section
   -------------------------------------------------------------------------- */
.mcg {
  position: relative;
}

.mcg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, transparent 100%);
  opacity: 0.5;
}

.mcg__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.mcg__content p {
  margin-bottom: var(--space-md);
  color: var(--slate);
}

.mcg__services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.mcg__service {
  background: var(--white);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-smooth);
  border-left: 3px solid transparent;
}

.mcg__service:hover {
  box-shadow: var(--shadow-medium);
  border-left-color: var(--gold);
  transform: translateX(8px);
}

.mcg__service h4 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  font-size: 1rem;
}

.mcg__service p {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}

/* MCG Clients Grid */
.mcg__clients {
  grid-column: 1 / -1;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mcg__clients h3 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.mcg__clients-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--slate);
  font-size: 1.1rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.client-name {
  padding: var(--space-sm);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.03);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  transition: all var(--transition-smooth);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.client-name:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .mcg__grid {
    grid-template-columns: 1fr;
  }

  .mcg__services {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(201, 162, 39, 0.05) 100%);
}

.contact__content {
  max-width: 600px;
  margin: 0 auto;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--ink);
  display: inline-block;
  position: relative;
  margin-top: var(--space-md);
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition-smooth);
}

.contact__email:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-lg) 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer__link:hover {
  color: var(--gold);
}

.footer__copyright {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.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;
}

.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal__content {
  position: relative;
  background-color: var(--paper);
  max-width: 700px;
  max-height: 85vh;
  width: 90%;
  padding: var(--space-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-dramatic);
}

.modal__content h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-md);
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: var(--space-sm);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--slate);
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal__close:hover {
  color: var(--gold);
}

.modal__body p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.modal__body ul {
  list-style: disc;
  margin-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.modal__body li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Image Lightbox
   -------------------------------------------------------------------------- */
.book-card__cover {
  cursor: zoom-in;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  overflow: hidden;
}

.lightbox.active {
  display: block;
}

.lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
}

.lightbox__content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  cursor: grab;
}

.lightbox__content:active {
  cursor: grabbing;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  /* Let the container handle dragging */
}

.lightbox__controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  z-index: 10;
}

.lightbox__control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(5px);
}

.lightbox__control:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.1);
}

.lightbox__close {
  background: none;
  border: none;
  font-size: 2.5rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  margin-left: 10px;
}

.lightbox__close:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   Side Drawer for Personalities
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 4000;
  visibility: hidden;
  transition: visibility var(--transition-smooth);
}

.drawer.active {
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.drawer.active .drawer__backdrop {
  opacity: 1;
}

.drawer__content {
  position: absolute;
  top: 0;
  right: -450px;
  width: 450px;
  max-width: 90%;
  height: 100%;
  background-color: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth);
}

.drawer.active .drawer__content {
  transform: translateX(-450px);
}

@media (max-width: 450px) {
  .drawer__content {
    right: -100%;
    width: 100%;
  }

  .drawer.active .drawer__content {
    transform: translateX(-100%);
  }
}

.drawer__header {
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.drawer__header h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0;
}

.drawer__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--slate);
  cursor: pointer;
  transition: color var(--transition-fast);
  line-height: 1;
}

.drawer__close:hover {
  color: var(--gold);
}

.drawer__body {
  flex-grow: 1;
  overflow-y: auto;
  padding: var(--space-lg);
}

/* Personalities Grid in Drawer */
.personalities-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.personality-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  border-radius: 8px;
  transition: background-color var(--transition-fast);
}

.personality-card:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.personality-card__image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #eee;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.personality-card__info {
  display: flex;
  flex-direction: column;
}

.personality-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.personality-card__role {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 2px;
  line-height: 1.4;
}

/* Prose Content in Drawer (Foreword, Excerpts) */
.prose-content {
  font-family: var(--font-body);
  line-height: 1.8;
  color: var(--ink);
}

.prose-content p {
  margin-bottom: var(--space-md);
}

.prose-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
  color: var(--ink);
}

.prose-content ul {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.prose-content li {
  margin-bottom: var(--space-sm);
}

.prose-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: var(--space-xl) 0;
}