:root {
  --bg: #06111f;
  --bg-deep: #0b1930;
  --surface: rgba(9, 19, 36, 0.72);
  --surface-strong: #111f39;
  --text: #ecf2ff;
  --muted: #a8b5cc;
  --accent: #9db7ff;
  --accent-strong: #dce6ff;
  --line: rgba(215, 227, 255, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(157, 183, 255, 0.16), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(229, 237, 255, 0.14), transparent 18%),
    radial-gradient(circle at 50% 0%, rgba(250, 253, 255, 0.09), transparent 12%),
    linear-gradient(180deg, #030814 0%, #091427 38%, #0d1c33 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 80%);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 18px auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  backdrop-filter: blur(18px);
  background: rgba(12, 22, 40, 0.72);
  border: 1px solid rgba(214, 228, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #08111f;
  background: linear-gradient(135deg, #eef4ff 0%, #93aef6 100%);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(157, 183, 255, 0.12);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(214, 228, 255, 0.16);
  background: rgba(157, 183, 255, 0.14);
  color: var(--text);
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
}

main {
  display: grid;
  gap: 28px;
  padding: 24px 0 14px;
}

section,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 228, 255, 0.12);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero,
.page-hero,
.stats-grid,
.split-section,
.feature-band,
.bio-layout,
.book-layout,
.timeline,
.gallery-grid,
.mosaic-text,
.cards-three,
.cta-banner {
  padding: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  min-height: 72vh;
}

.hero-home::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 244, 255, 0.18) 0%, rgba(157, 183, 255, 0) 70%);
}

.eyebrow {
  margin: 0 0 12px;
  color: #dbe6ff;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.4rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.6rem;
}

p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.lead {
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-copy,
.feature-copy,
.bio-copy,
.book-copy {
  display: grid;
  gap: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.button,
.text-link {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #08111f;
  background: linear-gradient(135deg, #edf4ff 0%, #a1bbff 100%);
  box-shadow: 0 16px 30px rgba(78, 111, 198, 0.28);
}

.button-secondary {
  color: var(--text);
  background: rgba(220, 232, 255, 0.08);
  border: 1px solid rgba(214, 228, 255, 0.12);
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.hero-visual {
  min-height: 100%;
}

.hero-frame img,
.feature-image img,
.bio-image img,
.gallery-item img,
.book-cover-stack img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.hero-frame {
  position: relative;
  min-height: 560px;
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(223, 234, 255, 0.08) 0%, rgba(6, 12, 24, 0.3) 100%);
  border: 1px solid rgba(214, 228, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero-frame img {
  min-height: 532px;
  height: 100%;
  border-radius: 24px;
  object-position: center top;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero-badge {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(4, 10, 20, 0.58);
  border: 1px solid rgba(214, 228, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-badge span {
  display: inline-block;
  color: #dfe9ff;
  letter-spacing: 0.2em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-badge strong {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.stats-grid,
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stats-grid article,
.info-card,
.panel,
.timeline-item,
.quote-card,
.mosaic-text {
  background: rgba(222, 234, 255, 0.06);
  border: 1px solid rgba(214, 228, 255, 0.12);
  border-radius: var(--radius-md);
}

.stats-grid article,
.info-card,
.timeline-item,
.quote-card {
  padding: 24px;
}

.stat-number {
  display: inline-block;
  margin-bottom: 12px;
  color: #dbe6ff;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.split-section,
.feature-band,
.bio-layout,
.book-layout,
.mosaic-text,
.cta-banner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: center;
}

.stacked-panels {
  display: grid;
  gap: 18px;
}

.panel {
  padding: 24px;
}

.feature-image {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 26px;
  min-height: 500px;
  background:
    radial-gradient(circle at 50% 30%, rgba(220, 232, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(10, 18, 33, 0.76) 0%, rgba(4, 10, 20, 0.96) 100%);
}

.feature-image img,
.bio-image img {
  height: 100%;
}

.feature-tilt-card {
  width: min(100%, 320px);
  transform: rotate(-8deg);
  border-radius: 28px;
  overflow: hidden;
  border: 10px solid rgba(231, 239, 255, 0.94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.feature-tilt-card img {
  min-height: 460px;
}

.bio-image,
.book-cover-stack {
  min-height: 560px;
  position: relative;
}

.bio-image {
  overflow: hidden;
  border-radius: 26px;
}

.quote-card p {
  color: var(--text);
  font-size: 1.1rem;
}

.book-cover-stack {
  display: grid;
  place-items: center;
}

.cover-main,
.cover-back {
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(44, 25, 15, 0.22);
}

.cover-main {
  position: relative;
  width: min(100%, 340px);
  z-index: 2;
}

.cover-back {
  position: absolute;
  width: min(72%, 270px);
  right: 14px;
  bottom: 34px;
  transform: rotate(10deg);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-item span {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfe9ff 0%, #7e9bdf 100%);
  color: #09111d;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.gallery-item {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(222, 234, 255, 0.06);
  border: 1px solid rgba(214, 228, 255, 0.12);
}

.gallery-item-large {
  grid-column: span 6;
}

.gallery-item img {
  height: 100%;
  min-height: 340px;
}

.gallery-item figcaption {
  padding: 16px 18px 20px;
  color: var(--muted);
}

.mosaic-text {
  padding: 28px 34px;
}

.cta-banner {
  padding: 30px 34px;
}

.footer {
  margin: 8px 0 24px;
  padding: 20px 24px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .feature-band,
  .bio-layout,
  .book-layout,
  .mosaic-text,
  .cta-banner,
  .stats-grid,
  .cards-three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-frame {
    min-height: 500px;
  }

  .hero-frame img {
    min-height: 470px;
  }

  .gallery-item,
  .gallery-item-large {
    grid-column: span 6;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(calc(100% - 18px), var(--max));
  }

  .topbar {
    border-radius: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 10px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    background: rgba(220, 232, 255, 0.08);
  }

  .hero,
  .page-hero,
  .stats-grid,
  .split-section,
  .feature-band,
  .bio-layout,
  .book-layout,
  .timeline,
  .gallery-grid,
  .mosaic-text,
  .cards-three,
  .cta-banner {
    padding: 24px 20px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-frame {
    min-height: auto;
    padding: 10px;
    border-radius: 24px;
  }

  .hero-frame img {
    min-height: 320px;
    max-height: 420px;
    border-radius: 18px;
  }

  .hero-badge {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .bio-image,
  .book-cover-stack,
  .feature-image {
    min-height: auto;
  }

  .feature-tilt-card {
    width: min(100%, 260px);
  }

  .feature-tilt-card img {
    min-height: 360px;
  }

  .cover-main,
  .cover-back {
    position: relative;
    width: min(100%, 320px);
    right: auto;
    bottom: auto;
    transform: none;
  }

  .book-cover-stack {
    gap: 18px;
  }

  .gallery-item,
  .gallery-item-large {
    grid-column: 1 / -1;
  }

  .gallery-item img {
    min-height: 260px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
