/* ============================================================
   CLAUDIA COMANGES WORDS — Styles
   Aesthetic: Soft Romantic Literary
   Fonts: Cormorant Garamond (display) + Jost (body)
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --cream:        #FAF7F2;
  --cream-deep:   #F3EDE4;
  --lilac-pale:   #F0E6F6;
  --lilac:        #C9ADDF;
  --lilac-mid:    #9B72CF;
  --plum:         #6B3F8A;
  --plum-dark:    #2E1A3A;
  --rose-mist:    #EFD5D5;
  --text:         #2E1A3A;
  --text-muted:   #7B5E8A;
  --text-light:   #A890B8;
  --white:        #FFFFFF;

  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Jost', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  28px;
  --radius-pill:9999px;

  --shadow-sm:  0 2px 12px rgba(107,63,138,0.08);
  --shadow-md:  0 8px 32px rgba(107,63,138,0.12);
  --shadow-lg:  0 20px 60px rgba(107,63,138,0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:      72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── UTILITIES ── */
.hidden { display: none !important; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: var(--ff-display); line-height: 1.15; color: var(--plum-dark); }

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107,63,138,0.08);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  display: flex;
  gap: 0.3em;
  align-items: baseline;
}
.logo-first  { font-weight: 400; color: var(--plum-dark); }
.logo-second { font-weight: 600; color: var(--plum); font-style: italic; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--lilac-mid);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--plum); }
.nav-link:hover::after { width: 100%; }

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

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--lilac);
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}
.lang-btn:hover {
  background: var(--lilac-pale);
  color: var(--plum);
  border-color: var(--lilac-mid);
}
.lang-es-label, .lang-en-label { transition: color var(--transition); }
[data-lang="es"] .lang-es-label { color: var(--plum); font-weight: 600; }
[data-lang="en"] .lang-en-label { color: var(--plum); font-weight: 600; }
.lang-divider { opacity: 0.4; }

/* Dark mode toggle button */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--lilac);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--transition);
  padding: 0;
  flex-shrink: 0;
}
.dark-toggle:hover {
  background: var(--lilac-pale);
  color: var(--plum);
  border-color: var(--lilac-mid);
}
/* Moon icon (default — shown when dark mode is OFF, click to enable) */
.dark-toggle-icon::before {
  content: '☽';
  font-size: 0.9rem;
  line-height: 1;
}
/* Sun icon — shown when dark mode is ON */
body.spotlight-on .dark-toggle-icon::before {
  content: '☀';
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--plum);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Soft background blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob--1 {
  width: 640px; height: 640px;
  top: -120px; right: -180px;
  background: radial-gradient(circle, #DBC8F0 0%, transparent 70%);
  opacity: 0.55;
  animation: blobFloat 12s ease-in-out infinite;
}
.hero-blob--2 {
  width: 480px; height: 480px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, #F5D5E8 0%, transparent 70%);
  opacity: 0.45;
  animation: blobFloat 15s ease-in-out infinite reverse;
}
.hero-blob--3 {
  width: 300px; height: 300px;
  top: 40%; left: 38%;
  background: radial-gradient(circle, #E8D5F5 0%, transparent 70%);
  opacity: 0.3;
  animation: blobFloat 10s ease-in-out infinite 3s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.04); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.hero-text { flex: 1; max-width: 540px; }

.hero-eyebrow {
  font-family: var(--ff-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac-mid);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--lilac-mid);
}

.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 10vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--plum-dark);
  margin-bottom: 1.5rem;
}
.hero-name em {
  font-style: italic;
  font-weight: 600;
  color: var(--plum);
  display: block;
}

.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--plum);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(107,63,138,0.3);
}
.btn--primary:hover {
  background: var(--plum-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,63,138,0.4);
}
.btn--ghost {
  border: 1.5px solid var(--lilac-mid);
  color: var(--plum);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--lilac-pale);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ── HERO PORTRAIT ── */
.hero-portrait {
  flex-shrink: 0;
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  position: relative;
}
.portrait-ring {
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1.5px solid var(--lilac);
  top: -12px; left: 50%;
  transform: translateX(-50%);
  animation: ringPulse 4s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  50%       { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

.portrait-frame {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
  background: var(--lilac-pale);
  position: relative;
}
.portrait-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-monogram {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 4rem;
  font-style: italic;
  color: var(--plum);
  background: var(--lilac-pale);
}

.portrait-quote {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 1rem;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--lilac-mid);
  opacity: 0.7;
  animation: bounce 2.5s ease-in-out infinite;
  z-index: 2;
}
.scroll-cue svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════
   SECTIONS — shared
══════════════════════════════════ */
section { padding: 7rem 0; position: relative; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lilac-mid);
  margin-bottom: 0.9rem;
  position: relative;
  padding: 0 1.2rem;
}
.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28px; height: 1px;
  background: var(--lilac);
}
.section-tag::before { right: 100%; }
.section-tag::after  { left:  100%; }

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--plum-dark);
  line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--plum); }

/* Ink splashes */
.ink-splash {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}
.ink-splash--left  { left: -120px; top: 50%; background: radial-gradient(circle, #C9ADDF, transparent); }
.ink-splash--right { right: -120px; bottom: 10%; background: radial-gradient(circle, #F5D5E8, transparent); }

/* ══════════════════════════════════
   ABOUT
══════════════════════════════════ */
#about { background: var(--white); }
#about .container { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-body p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}
.about-lead {
  font-family: var(--ff-display);
  font-size: 1.25rem !important;
  font-style: italic;
  color: var(--plum-dark) !important;
  line-height: 1.6;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--lilac-pale);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(201,173,223,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--plum), var(--plum-dark));
  color: var(--white);
}
.stat-number {
  display: block;
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-card--wide .stat-number { color: var(--lilac); }
.stat-label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-card--wide .stat-label { color: rgba(255,255,255,0.7); }
.stat-logo {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.3rem;
}

/* ══════════════════════════════════
   BOOKS
══════════════════════════════════ */
#books { background: var(--cream); }

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  position: relative;
  overflow: hidden;
  background: var(--cream-deep);
  aspect-ratio: 3/4;
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.book-card:hover .book-cover-img {
  transform: scale(1.04);
}

.book-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,26,58,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.book-card:hover .book-cover-overlay { opacity: 1; }

.book-overlay-btn {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--white);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.book-overlay-btn:hover { background: rgba(255,255,255,0.25); }

.book-meta {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-year {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lilac-mid);
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.book-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--plum-dark);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.book-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.book-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--plum);
  letter-spacing: 0.04em;
  transition: color var(--transition);
  align-self: flex-start;
  margin-top: auto;
}
.book-link:hover { color: var(--lilac-mid); }

/* ══════════════════════════════════
   BIOGRAPHY
══════════════════════════════════ */
#biography { background: var(--cream-deep); }
#biography .container { position: relative; z-index: 1; }

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.bio-col-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 1.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--lilac-pale);
}
.bio-col-title--sm { font-size: 1.1rem; }

/* Timeline */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--lilac), transparent);
}
.tl-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.25rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  left: -1.85rem; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lilac);
  border: 2px solid var(--cream-deep);
  box-shadow: 0 0 0 3px rgba(201,173,223,0.25);
  transition: background var(--transition);
}
.tl-item:hover .tl-dot { background: var(--plum); }

.tl-date {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lilac-mid);
  margin-bottom: 0.2rem;
}
.tl-role {
  display: block;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--plum-dark);
  margin-bottom: 0.15rem;
}
.tl-org {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Education list */
.edu-list { display: flex; flex-direction: column; gap: 1.2rem; }
.edu-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--lilac-pale);
}
.edu-item:last-child { border-bottom: none; }
.edu-year {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--lilac-mid);
  padding-top: 0.15rem;
  text-align: right;
}
.edu-item p { font-size: 0.92rem; color: var(--plum-dark); margin-bottom: 0.15rem; }
.edu-item small { font-size: 0.8rem; color: var(--text-muted); }

/* Language bars */
.lang-bars { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.lang-bar {
  display: grid;
  grid-template-columns: 80px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
}
.lb-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--plum-dark);
  text-align: right;
}
.lb-track {
  height: 5px;
  background: var(--lilac-pale);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lb-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(to right, var(--lilac), var(--plum));
  border-radius: var(--radius-pill);
  transform-origin: left;
  animation: fillBar 1.2s ease-out forwards;
  transform: scaleX(0);
}
@keyframes fillBar {
  to { transform: scaleX(1); }
}
.lb-level {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-light);
}

/* PRH Banner */
.prh-banner {
  background: linear-gradient(135deg, var(--plum-dark) 0%, var(--plum) 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.prh-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lilac);
  margin-bottom: 0.3rem;
}
.prh-name {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.prh-detail {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}
.prh-banner .btn--primary {
  background: var(--white);
  color: var(--plum);
  box-shadow: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.prh-banner .btn--primary:hover {
  background: var(--lilac-pale);
  transform: translateY(-2px);
}

/* ══════════════════════════════════
   CONTACT + SOCIAL
══════════════════════════════════ */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

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

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color var(--transition), background var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lilac-mid);
  background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-success {
  font-size: 0.88rem;
  color: var(--plum);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* Social wall */
.social-title {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--plum-dark);
  margin-bottom: 0.5rem;
}
.social-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.social-item:hover {
  background: var(--lilac-pale);
  border-color: var(--lilac);
  color: var(--plum);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.s-icon { width: 22px; height: 22px; }

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
#footer {
  background: var(--plum-dark);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-logo {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--lilac);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(201,173,223,0.6);
  margin-bottom: 1.5rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
}
.footer-powered {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.2);
  margin-top: 0.5rem;
}
.footer-powered a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-powered a:hover { color: rgba(255,255,255,0.7); }

/* ══════════════════════════════════
   MOBILE MENU
══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,247,242,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--lilac-pale);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link {
    padding: 0.85rem 2.5rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }
}

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 1024px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-portrait { width: 300px; }
  .portrait-frame { width: 240px; height: 240px; }
  .portrait-ring { width: 270px; height: 270px; }
}

@media (max-width: 900px) {
  #hero { align-items: flex-start; }
}

@media (max-width: 840px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 2.5rem;
    gap: 2.5rem;
  }
  .hero-eyebrow { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-portrait { width: 220px; }
  .portrait-frame { width: 200px; height: 200px; }
  .portrait-ring { width: 226px; height: 226px; }

  .about-grid { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .prh-banner { flex-direction: column; text-align: center; }
  .prh-banner .btn--primary { align-self: center; }
}

@media (max-width: 600px) {
  .books-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  #navbar { padding: 0 1.25rem; }
  .container { padding: 0 1.25rem; }
  section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-inner { padding: 3rem 1.25rem 2.5rem; gap: 2rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card { padding: 1.1rem 0.75rem; }
  .stat-number { font-size: 2.4rem; }

  .lang-bar { grid-template-columns: 56px 1fr 60px; gap: 0.4rem; }
  .lb-name, .lb-level { font-size: 0.76rem; }

  .social-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .social-item { padding: 0.85rem 0.3rem; font-size: 0.68rem; }
  .s-icon { width: 18px; height: 18px; }

  .prh-banner { padding: 1.75rem 1.25rem; }
  .prh-name { font-size: 1.4rem; }

  .bio-grid { gap: 2rem; }
  .contact-grid { gap: 2rem; }
  .tl-item { padding-bottom: 1.5rem; }
}

/* ── SPOTLIGHT / FLASHLIGHT CURSOR ── */
#spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 600ms ease;
  /* Double halo: bright inner core + softer outer ring, both fading into deep dark */
  background:
    radial-gradient(
      circle 110px at var(--mx, 50%) var(--my, 50%),
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 55%,
      rgba(0, 0, 0, 0.35) 78%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    radial-gradient(
      circle 240px at var(--mx, 50%) var(--my, 50%),
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 55%,
      rgba(0, 0, 0, 0.88) 80%,
      rgba(0, 0, 0, 0.97) 100%
    );
  mix-blend-mode: multiply;
}
body.spotlight-on #spotlight { opacity: 1; }

#spotlight-pen {
  position: fixed;
  left: 0;
  top: 0;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 600ms ease;
  /* Nib tip is at x=1px, y=190px in the scaled 140×194px image */
  transform: translate3d(calc(var(--mx, 50vw) - 1px), calc(var(--my, 50vh) - 190px), 0);
  filter: drop-shadow(0 2px 6px rgba(20, 5, 40, 0.45))
          drop-shadow(0 0 12px rgba(255, 215, 120, 0.25));
}
body.spotlight-on #spotlight-pen { opacity: 0.95; }

/* Desktop / fine-pointer only */
@media (hover: none), (pointer: coarse) {
  body.spotlight-on #spotlight,
  body.spotlight-on #spotlight-pen { opacity: 0; }
}

/* Hide the real cursor when spotlight is active so only the pen shows */
body.spotlight-on { cursor: none; }
body.spotlight-on a,
body.spotlight-on button,
body.spotlight-on input,
body.spotlight-on textarea,
body.spotlight-on [role="button"] { cursor: none; }
