/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f7f7f9;
  --bg2: #ffffff;
  --bg3: #f0f1f5;
  --gold: #c47a0a;
  --gold2: #e8a020;
  --purple: #6d28d9;
  --purple2: #7c3aed;
  --text: #141420;
  --text2: #6b6a7a;
  --border: rgba(0,0,0,0.08);
  --card-bg: rgba(0,0,0,0.03);
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* ─── UTILITIES ─── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--purple2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-label.center { text-align: center; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--purple));
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(124,58,237,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124,58,237,0.5); }
.btn-primary.full-width { width: 100%; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.85);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); }

/* ─── PRELOADER ─── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s cubic-bezier(0.76, 0, 0.24, 1), transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
#preloader.done {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
#preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.preloader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.preloader-logo {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}
.pl-char {
  font-family: 'Playfair Display', serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(50px) rotateX(40deg);
  animation: plCharIn 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
  display: inline-block;
}
.pl-char:nth-child(1) { animation-delay: 0.05s; }
.pl-char:nth-child(2) { animation-delay: 0.15s; }
.pl-char:nth-child(3) { animation-delay: 0.25s; }
.pl-char:nth-child(4) { animation-delay: 0.35s; }
.pl-char:nth-child(5) { animation-delay: 0.45s; }

@keyframes plCharIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.preloader-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--text2);
  opacity: 0;
  animation: plFade 0.5s 0.65s forwards;
  margin-bottom: 36px;
}
.preloader-bar {
  width: 180px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  animation: plFade 0.3s 0.7s forwards;
}
.preloader-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--purple2));
  animation: plFill 1.6s 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes plFill { to { width: 100%; } }
@keyframes plFade { to { opacity: 1; } }

/* ─── NAV ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}
#navbar.scrolled {
  background: rgba(247,247,249,0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(0,0,0,0.07);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.12em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
#navbar.scrolled .nav-links a { color: var(--text); }
#navbar.scrolled .nav-links a:hover { color: var(--gold); }
.nav-logo { color: inherit; }
#navbar.scrolled .nav-logo { /* stays gradient */ }

.nav-cta {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 9px 22px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  letter-spacing: 0.03em;
}
.nav-cta:hover { background: #fff; color: #000; border-color: #fff; }
#navbar.scrolled .nav-cta { border-color: var(--gold); color: var(--gold); }
#navbar.scrolled .nav-cta:hover { background: var(--gold); color: #000; }

.nav-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
  flex-shrink: 0;
}
.nav-linkedin:hover { color: #fff; }
#navbar.scrolled .nav-linkedin { color: var(--text2); }
#navbar.scrolled .nav-linkedin:hover { color: #0077b5; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-parallax-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.05s linear;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,20,0.6) 0%,
    rgba(10,8,20,0.4) 40%,
    rgba(247,247,249,0.5) 85%,
    rgba(247,247,249,1) 100%
  );
  z-index: 1;
}

.hero-orbs { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  top: -250px; left: -250px;
}
.orb2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(240,165,0,0.25) 0%, transparent 70%);
  bottom: -200px; right: -200px;
}
.orb3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(168,85,247,0.2) 0%, transparent 70%);
  top: 40%; left: 55%;
}

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,40px) scale(1.1); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px,-50px) scale(1.05); } }

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

/* Hero entrance — no animation, items visible immediately */
.reveal-item {
  opacity: 1;
  transform: none;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.35);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 8px 22px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 26px;
  color: #fff;
}
.title-line { display: inline-block; }

.hero-sub {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
  margin-bottom: 42px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub strong { color: #fff; font-weight: 700; }

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(152,150,168,0.7);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.7;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  gap: 4px;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ─── SCROLL REVEAL — no animation, elements visible immediately ─── */
.fade-up, .fade-left, .fade-right { opacity: 1; transform: none; }

/* ─── ABOUT ─── */
#about {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

.about-img-wrap { position: relative; }

.about-photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s ease;
  will-change: transform;
}
.about-photo-frame:hover .about-photo { transform: scale(1.04); }

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,7,10,0) 50%,
    rgba(7,7,10,0.7) 100%
  );
  pointer-events: none;
}

.photo-border-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(240,165,0,0.2);
  box-shadow: inset 0 0 60px rgba(124,58,237,0.1), 0 0 60px rgba(124,58,237,0.15);
  pointer-events: none;
}

.about-quote-card {
  position: relative;
  margin-top: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}
.about-quote-card p {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}
.quote-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
}

.about-desc {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.9;
  opacity: 0.82;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tag {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--purple2);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ─── BOOK ─── */
#book {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.book-parallax-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: saturate(0.3) brightness(0.25);
}

.book-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247,247,249,0.97);
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: center;
}
.book-cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.book-cover {
  display: flex;
  position: relative;
  filter: drop-shadow(0 30px 70px rgba(124,58,237,0.5));
  transform: perspective(700px) rotateY(-10deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.2, 0.64, 1);
  cursor: pointer;
}
.book-cover:hover {
  transform: perspective(700px) rotateY(-3deg) rotateX(1deg) translateY(-8px);
  filter: drop-shadow(0 40px 80px rgba(124,58,237,0.65));
}
.book-spine {
  width: 30px;
  background: linear-gradient(180deg, #3b1fa3, #1a0f45);
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
}
.book-face {
  width: 250px;
  height: 355px;
  background: linear-gradient(145deg, #180a50 0%, #0c1838 50%, #080820 100%);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  position: relative;
}
.book-face-inner {
  padding: 32px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
.book-face-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--purple2));
}
.book-face-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(124,58,237,0.15), transparent);
}
.book-genre {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(255,209,102,0.65);
  text-transform: uppercase;
}
.book-title-cover {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(124,58,237,0.6);
}
.book-author-cover {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
}
.book-lines { display: flex; flex-direction: column; gap: 6px; }
.bline { height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; }
.bline.short { width: 55%; }
.book-shadow {
  width: 220px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.5), transparent 70%);
  margin-top: -10px;
  border-radius: 50%;
  filter: blur(10px);
}
.book-genre-badge {
  display: inline-block;
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.3);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.book-title-text {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}
.book-desc { color: var(--text); opacity: 0.78; margin-bottom: 16px; font-size: 1.02rem; font-weight: 450; line-height: 1.9; }
.book-features { display: flex; flex-direction: column; gap: 16px; margin: 28px 0; }
.book-feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.book-feature strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.97rem; font-weight: 700; margin-bottom: 4px; }
.book-feature p { font-size: 0.88rem; color: var(--text); opacity: 0.65; margin: 0; line-height: 1.6; }
.book-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.release-note { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; color: var(--text2); }

/* ─── GALLERY ─── */
#gallery {
  padding: 120px 0;
  background: var(--bg2);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}

.photo-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.photo-item.large {
  grid-row: 1 / 3;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  filter: brightness(0.75) saturate(0.9);
}

.photo-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.6) saturate(1);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(7,7,10,0.9) 0%, transparent 100%);
  transform: translateY(6px);
  transition: transform 0.3s ease;
}
.photo-item:hover .photo-caption { transform: translateY(0); }

.photo-caption span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.photo-caption p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* ─── JOURNEY ─── */
#journey {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.journey-parallax-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1476611338391-6f395a0dd82e?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: saturate(0.25) brightness(0.2);
}

.journey-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,10,0.9), rgba(7,7,10,0.82), rgba(7,7,10,0.95));
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--purple) 20%, var(--gold) 80%, transparent);
  transform: translateX(-50%);
}
.timeline-item { display: flex; margin-bottom: 64px; position: relative; }
.timeline-item.left { justify-content: flex-end; padding-right: calc(50% + 44px); }
.timeline-item.right { justify-content: flex-start; padding-left: calc(50% + 44px); }
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 24px rgba(124,58,237,0.6);
  z-index: 1;
}
.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124,58,237,0.3);
}
.timeline-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 340px;
  transition: all 0.35s ease;
}
.timeline-card:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.08);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.timeline-card-img {
  width: 100%;
  height: 140px;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  margin-bottom: 16px;
}
.timeline-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7) saturate(0.8);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.timeline-card:hover .timeline-card-img img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}

.timeline-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.timeline-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.timeline-card p { color: var(--text2); font-size: 0.9rem; line-height: 1.72; }

/* ─── QUOTE SECTION ─── */
#quote-section {
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.quote-parallax-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: saturate(0.3) brightness(0.2);
}

.quote-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7,7,10,0.85), rgba(7,7,10,0.7), rgba(7,7,10,0.9));
}

.quote-content { max-width: 820px; margin: 0 auto; }

.big-quote {
  font-family: 'Playfair Display', serif;
  font-size: 9rem;
  line-height: 0.5;
  color: var(--gold);
  opacity: 0.2;
  display: block;
  margin-bottom: 24px;
}
.big-quote-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 28px;
  color: #fff;
}
.big-quote-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ─── CONTACT ─── */
#contact { padding: 120px 0; background: var(--bg); }
.contact-sub {
  text-align: center;
  color: var(--text);
  opacity: 0.65;
  font-weight: 500;
  max-width: 520px;
  margin: -20px auto 48px;
  line-height: 1.8;
  font-size: 1.02rem;
}
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text2);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text2); opacity: 0.5; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.1);
  background: #fff;
}
.form-success {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.3);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* ─── CLOSING MESSAGE ─── */
#closing-msg {
  padding: 140px 24px;
  position: relative;
  overflow: hidden;
}

.closing-parallax-bg {
  position: absolute;
  inset: -20%;
  background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
  filter: brightness(0.35) saturate(0.6);
}

.closing-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(7,7,10,0.55) 0%,
    rgba(7,7,10,0.3) 50%,
    rgba(7,7,10,0.7) 100%
  );
}

.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.closing-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple2));
  margin: 0 auto 24px;
  border-radius: 2px;
}

.closing-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.closing-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 32px;
  color: #fff;
}

.closing-body {
  font-size: 1.07rem;
  font-weight: 450;
  color: rgba(255,255,255,0.82);
  line-height: 2;
  margin-bottom: 48px;
}

.closing-sig {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.closing-sig-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.closing-sig span {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--gold);
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 60px 24px 40px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 0.1em;
}
.footer-tagline { color: var(--text2); font-size: 0.9rem; margin-bottom: 28px; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text2);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 0.78rem; color: var(--text2); opacity: 0.5; }

/* ─── CHATBOT ─── */
#chatbot-bubble {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(124,58,237,0.45);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}
#chatbot-bubble:hover { transform: scale(1.12); box-shadow: 0 12px 44px rgba(124,58,237,0.65); }
#chatbot-window {
  position: fixed;
  bottom: 108px; right: 32px;
  width: 360px;
  max-height: 500px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#chatbot-window.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.chat-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(109,40,217,0.08), rgba(200,127,10,0.05));
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1rem;
}
.chat-header-info strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; }
.chat-status { font-size: 0.7rem; color: #4ade80; font-family: 'Space Grotesk', sans-serif; }
.chat-close { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1rem; padding: 4px; transition: color 0.2s; }
.chat-close:hover { color: var(--text); }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; }
.chat-msg.bot { justify-content: flex-start; }
.chat-msg.user { justify-content: flex-end; }
.msg-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.52;
}
.chat-msg.bot .msg-bubble { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user .msg-bubble { background: linear-gradient(135deg, var(--purple), #5b21b6); color: #fff; border-bottom-right-radius: 4px; }
.typing-indicator { display: flex; gap: 4px; padding: 12px 14px; align-items: center; }
.typing-indicator span { width: 6px; height: 6px; background: var(--text2); border-radius: 50%; animation: typing 1.2s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,80%,100% { transform:scale(0.7); opacity:0.4; } 40% { transform:scale(1); opacity:1; } }
.chat-input-row { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input-row input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.chat-input-row input:focus { border-color: var(--purple); }
.chat-input-row input::placeholder { color: var(--text2); opacity: 0.5; }
.chat-input-row button {
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border: none;
  border-radius: 10px;
  width: 42px; height: 42px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-input-row button:hover { opacity: 0.85; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-quote-card { max-width: 100%; }
  .book-grid { grid-template-columns: 1fr; }
  .book-cover { transform: none; }
  .timeline-line { display: none; }
  .timeline-item { padding: 0 !important; justify-content: center !important; }
  .timeline-dot { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .stats-bar { gap: 20px; }
  .stat { padding: 0 20px; }
  .stat-divider { display: none; }
  #chatbot-window { width: calc(100vw - 32px); right: 16px; bottom: 90px; }
  #chatbot-bubble { right: 16px; bottom: 20px; }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .photo-item.large { grid-row: 1 / 2; grid-column: 1 / 3; }
}

/* ─── CONNECT POPUP ─── */
.connect-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}
.connect-popup {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: var(--bg2);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: 20px;
  padding: 28px;
  z-index: 1101;
  box-shadow: 0 16px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
  animation: slideUpPop 0.4s cubic-bezier(0.16,1,0.3,1);
}
@keyframes slideUpPop {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.connect-popup.hidden,
.connect-popup-backdrop.hidden { display: none; }
.connect-popup-close {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.connect-popup-close:hover { background: var(--border); color: var(--text); }
.connect-popup-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.connect-popup-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 18px;
}
.connect-popup-form { display: flex; flex-direction: column; gap: 10px; }
.connect-popup-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.connect-popup-row input,
.connect-popup-form input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.connect-popup-row input:focus,
.connect-popup-form input:focus { border-color: var(--gold); }
.popup-success { text-align: center; color: var(--gold); font-size: 0.9rem; padding: 6px 0; }
.popup-success.hidden { display: none; }

/* ─── REFLECTIONS SECTION (inline) ─── */
#reflections { padding: 120px 0; }
.reflections-grid-inline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.reflection-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.reflection-card:hover {
  border-color: rgba(240,165,0,0.3);
  transform: translateY(-2px);
}
.reflection-card-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.reflection-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240,165,0,0.1);
  border: 1px solid rgba(240,165,0,0.2);
  padding: 3px 10px;
  border-radius: 20px;
}
.reflection-date { font-size: 0.78rem; color: var(--text2); font-family: 'Space Grotesk', sans-serif; }
.reflection-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.reflection-body {
  color: var(--text);
  opacity: 0.7;
  font-size: 0.97rem;
  font-weight: 450;
  line-height: 1.85;
  white-space: pre-wrap;
}
.read-more-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.read-more-link:hover { opacity: 0.75; }
.article-permalink {
  margin-left: auto;
  font-size: 0.82rem;
  text-decoration: none;
  opacity: 0.35;
  transition: opacity 0.2s;
}
.article-permalink:hover { opacity: 0.8; }
.reflections-empty {
  text-align: center;
  color: var(--text2);
  padding: 60px 0;
  font-size: 0.95rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
}
.reflections-loading {
  text-align: center;
  padding: 60px 0;
}
.reflections-loading .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin: 0 4px;
  animation: bounce 1.2s infinite;
}
.reflections-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.reflections-loading .dot:nth-child(3) { animation-delay: 0.4s; }
