/* =========================================================
   GIOVANNA — BOOK PAGE
   CLEAN PAGE CSS
   Navigation CSS removed
========================================================= */

/* =========================================================
   VARIABLES
========================================================= */

:root {
  --cream: #f3eee4;
  --cream-dark: #ded5c5;

  --ink: #111216;

  --navy: #080d20;
  --navy-light: #121b36;

  --gold: #d7b56d;
  --gold-light: #f1d58f;

  --muted: #aaa59b;

  --white: #ffffff;

  /* Shared darker palette */

  --char: #1b1613;
  --panel: #241d19;

  --ember: #b5451f;
  --ember-bright: #e0692f;

  --crimson: #6f1f1b;

  --gold-soft: #e3caa0;

  --parchment: #ede2ce;
  --parchment-dim: #c9bda3;

  --smoke: #3a332e;

  --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   HTML
========================================================= */

html {
  scroll-behavior: smooth;
}

/* =========================================================
   BODY
========================================================= */

body {
  margin: 0;

  font-family: "Inter", sans-serif;

  background: var(--cream);

  color: var(--ink);

  font-size: 16px;

  line-height: 1.65;

  overflow-x: hidden;
}

/* =========================================================
   SELECTION
========================================================= */

::selection {
  background: var(--ember);

  color: var(--ink);
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1,
h2,
h3,
.display {
  font-family: "Cormorant Garamond", serif;

  font-weight: 500;

  margin: 0;
}

/* =========================================================
   LINKS
========================================================= */

a {
  text-decoration: none;

  color: inherit;
}

/* =========================================================
   IMAGES
========================================================= */

img {
  max-width: 100%;

  display: block;
}

/* =========================================================
   GLOBAL EMBER PARTICLE CANVAS
========================================================= */

#embers {
  position: fixed;

  inset: 0;

  width: 100%;

  height: 100%;

  pointer-events: none;

  z-index: 5;

  mix-blend-mode: screen;
}

/* =========================================================
   GENERIC SECTION
========================================================= */

section {
  position: relative;

  z-index: 2;
}

/* =========================================================
   HERO
========================================================= */

.giovanna-hero {
  position: relative;

  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  background: #070b17;
}

.hero-video {
  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  z-index: 0;
}

.hero-overlay {
  position: absolute;

  inset: 0;

  z-index: 1;
}

.hero-content {
  position: relative;

  z-index: 2;

  width: min(1100px, 90%);

  text-align: center;

  color: white;

  padding-top: 80px;
}

.hero-eyebrow {
  display: block;

  margin-bottom: 20px;

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 5px;

  color: var(--gold-light);
}

.book-title {
  margin: 0;

  font-family: "Great Vibes", cursive;

  font-size: clamp(5rem, 16vw, 11rem);

  font-weight: 400;

  line-height: 0.9;

  color: var(--gold-light);

  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.6);
}

.book-subtitle {
  max-width: 680px;

  margin: 30px auto 35px;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(1.2rem, 2vw, 1.6rem);

  line-height: 1.5;

  color: rgba(255, 255, 255, 0.88);
}

/* =========================================================
   HERO BUTTONS
========================================================= */

.hero-buttons {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 15px;

  flex-wrap: wrap;
}

.btn-primary-custom,
.btn-outline-custom {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 190px;

  padding: 14px 25px;

  font-size: 0.78rem;

  font-weight: 600;

  letter-spacing: 2px;

  transition: 0.3s ease;
}

.btn-primary-custom {
  background: var(--gold);

  color: #15120c;

  border: 1px solid var(--gold);
}

.btn-primary-custom:hover {
  background: var(--gold-light);

  border-color: var(--gold-light);

  color: #111;

  transform: translateY(-3px);
}

.btn-outline-custom {
  border: 1px solid rgba(255, 255, 255, 0.7);

  color: white;
}

.btn-outline-custom:hover {
  background: white;

  color: var(--ink);

  transform: translateY(-3px);
}

/* =========================================================
   SCROLL INDICATOR
========================================================= */

.hero-scroll {
  position: absolute;

  z-index: 3;

  bottom: 30px;

  left: 50%;

  transform: translateX(-50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 10px;

  color: rgba(255, 255, 255, 0.65);

  font-size: 0.62rem;

  letter-spacing: 3px;
}

.scroll-line {
  width: 1px;

  height: 45px;

  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.book-introduction,
.themes-section,
.author-note,
.mini-gallery {
  padding: 110px 0;
}

/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
  display: block;

  margin-bottom: 18px;

  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 4px;

  color: #8e6d35;
}

.section-label.light {
  color: var(--gold-light);
}

/* =========================================================
   HEADINGS
========================================================= */

.book-introduction h2,
.themes-section h2,
.featured-content h2,
.author-note h2,
.mini-gallery h2 {
  font-family: "Playfair Display", serif;

  font-weight: 500;

  line-height: 1.15;

  color: var(--navy);
}

.book-introduction h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.book-introduction h2 span,
.themes-section h2 span,
.featured-content h2 span,
.author-note h2 span,
.mini-gallery h2 span {
  color: #98753d;
}

/* =========================================================
   GOLD DIVIDER
========================================================= */

.gold-divider {
  width: 70px;

  height: 2px;

  margin: 25px 0;

  background: var(--gold);
}

.gold-divider.centered {
  margin-left: auto;

  margin-right: auto;
}

/* =========================================================
   BOOK INTRODUCTION
========================================================= */

.book-introduction {
  background: var(--cream);
}

.book-cover-wrapper {
  position: relative;

  width: min(390px, 90%);

  margin: auto;
}

.book-cover {
  position: relative;

  z-index: 2;

  width: 100%;

  transition: transform 0.5s ease;
}

.book-cover:hover {
  transform: translateY(-10px);
}

.book-glow {
  position: absolute;

  width: 70%;

  height: 70%;

  left: 15%;

  top: 15%;

  background: rgba(215, 181, 109, 0.25);

  filter: blur(70px);
}

.lead-text {
  font-family: "Cormorant Garamond", serif;

  font-size: 1.5rem;

  line-height: 1.6;

  color: #443e35;
}

.book-introduction p:not(.lead-text) {
  color: #655f55;

  line-height: 1.9;
}

/* =========================================================
   TEXT LINKS
========================================================= */

.text-link {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  margin-top: 15px;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: #80622e;
}

.text-link span {
  font-size: 1.2rem;

  transition: transform 0.3s ease;
}

.text-link:hover span {
  transform: translateX(6px);
}

/* =========================================================
   STORY SECTION
========================================================= */

.story-section {
  position: relative;

  min-height: 700px;

  display: flex;

  align-items: center;

  overflow: hidden;

  color: white;
}

.story-background {
  position: absolute;

  inset: 0;

  background-image: url("Images/Giovanna Story Background.jpg");

  background-size: cover;

  background-position: center;

  transform: scale(1.02);
}

.story-overlay {
  position: absolute;

  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(5, 9, 22, 0.94),
    rgba(5, 9, 22, 0.65),
    rgba(5, 9, 22, 0.35)
  );
}

.story-content {
  position: relative;

  z-index: 2;

  max-width: 650px;

  padding: 100px 0;
}

.story-content h2 {
  font-family: "Playfair Display", serif;

  font-size: clamp(2.8rem, 6vw, 5.2rem);

  font-weight: 500;

  line-height: 1.05;
}

.story-content h2 span {
  color: var(--gold-light);
}

.story-content p {
  max-width: 600px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 1rem;

  line-height: 1.9;
}

.story-emphasis {
  margin-top: 40px;

  padding-left: 25px;

  border-left: 2px solid var(--gold);

  font-family: "Cormorant Garamond", serif;

  font-size: 1.6rem !important;

  font-style: italic;

  color: var(--gold-light) !important;
}

/* =========================================================
   THEMES
========================================================= */

.themes-section {
  background: #f7f3ea;
}

.section-heading {
  text-align: center;

  max-width: 800px;

  margin: 0 auto 60px;
}

.themes-section h2,
.mini-gallery h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* =========================================================
   THEME CARDS
========================================================= */

.theme-card {
  height: 100%;

  padding: 35px 30px;

  background: #eee8dc;

  border: 1px solid rgba(130, 100, 50, 0.15);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.theme-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.09);
}

.theme-number {
  margin-bottom: 35px;

  font-family: "Cormorant Garamond", serif;

  font-size: 1rem;

  color: var(--gold);
}

.theme-card h3 {
  margin-bottom: 15px;

  font-family: "Playfair Display", serif;

  font-size: 1.65rem;

  color: var(--navy);
}

.theme-card p {
  margin: 0;

  color: #716b61;

  line-height: 1.7;
}

/* =========================================================
   FEATURED SECTION
========================================================= */

.featured-section {
  background: var(--navy);

  color: white;
}

.featured-grid {
  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  min-height: 650px;
}

.featured-image {
  overflow: hidden;
}

.featured-image img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.8s ease;
}

.featured-image:hover img {
  transform: scale(1.04);
}

.featured-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 80px 10%;
}

.featured-content h2 {
  color: white;

  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.featured-content h2 span {
  color: var(--gold-light);
}

.featured-content p {
  max-width: 600px;

  color: rgba(255, 255, 255, 0.7);

  line-height: 1.9;
}

/* =========================================================
   AUTHOR NOTE
========================================================= */

.author-note {
  background: var(--cream);
}

.author-note-box {
  max-width: 900px;

  margin: auto;

  padding: 80px 8%;

  text-align: center;

  border: 1px solid rgba(100, 75, 35, 0.18);

  background: rgba(255, 255, 255, 0.25);
}

.author-note h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.author-quote {
  max-width: 700px;

  margin: 35px auto;

  font-family: "Cormorant Garamond", serif;

  font-size: clamp(1.5rem, 3vw, 2.2rem);

  font-style: italic;

  line-height: 1.5;

  color: #4c463d;
}

.author-name {
  margin: 0;

  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 4px;

  color: #80622e;
}

/* =========================================================
   GALLERY
========================================================= */

.mini-gallery {
  background: #ebe5d9;
}

.gallery-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.gallery-item {
  aspect-ratio: 4 / 5;

  overflow: hidden;
}

.gallery-item img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);

  filter: brightness(0.8);
}

.gallery-button {
  text-align: center;

  margin-top: 45px;
}

.btn-outline-dark {
  display: inline-block;

  padding: 13px 28px;

  border: 1px solid #242424;

  color: #242424;

  font-size: 0.7rem;

  font-weight: 700;

  letter-spacing: 2px;

  transition: 0.3s ease;
}

.btn-outline-dark:hover {
  background: #242424;

  color: white;
}

/* =========================================================
   BUY SECTION
========================================================= */

.buy-section {
  position: relative;

  min-height: 600px;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;

  color: white;

  overflow: hidden;
}

.buy-background {
  position: absolute;

  inset: 0;

  background-image: url("Images/Giovanna Buy Background.jpg");

  background-size: cover;

  background-position: center;
}

/* =========================================================
   BUY SECTION
========================================================= */

.buy-section {
  position: relative;

  min-height: 600px;

  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  color: white;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at center,
      rgba(174, 71, 31, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #100909, #1b0d0d);
}

/* =========================================================
   BACKGROUND IMAGE
========================================================= */

.buy-background {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  background-image: url("Images/Giovanna Buy Background.jpg");

  background-size: cover;

  background-position: center;

  opacity: 0.35;

  z-index: 0;
}

/* =========================================================
   DARK GRADIENT OVERLAY
========================================================= */

.buy-overlay {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(174, 71, 31, 0.28),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(16, 9, 9, 0.78), rgba(27, 13, 13, 0.94));

  z-index: 1;
}

/* =========================================================
   CONTAINER
========================================================= */

.buy-section .container {
  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: center;

  text-align: center;
}

/* =========================================================
   BUY CONTENT
========================================================= */

.buy-content {
  position: relative;

  z-index: 3;

  width: 100%;

  max-width: 750px;

  margin: 0 auto;

  padding: 80px 20px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;
}

/* =========================================================
   SECTION LABEL
========================================================= */

.buy-content .section-label {
  display: block;

  width: 100%;

  margin-bottom: 20px;

  text-align: center;

  color: #e3caa0;
}

/* =========================================================
   HEADING
========================================================= */

.buy-content h2 {
  width: 100%;

  margin: 0 0 20px;

  font-family: "Playfair Display", serif;

  font-size: clamp(3rem, 7vw, 5.5rem);

  font-weight: 500;

  line-height: 1.1;

  text-align: center;

  color: #f3eee4;
}

.buy-content h2 span {
  color: #e3caa0;
}

/* =========================================================
   DESCRIPTION
========================================================= */

.buy-content p {
  width: 100%;

  max-width: 600px;

  margin: 0 auto 35px;

  text-align: center;

  color: rgba(255, 255, 255, 0.78);

  line-height: 1.8;
}

/* =========================================================
   BUY BUTTON
========================================================= */

.buy-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  margin: 0 auto;

  padding: 16px 38px;

  background: #c9a567;

  border: 1px solid #c9a567;

  color: #120e0c;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 3px;

  text-decoration: none;

  text-align: center;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.buy-button:hover {
  background: #e3caa0;

  border-color: #e3caa0;

  color: #120e0c;

  transform: translateY(-4px);

  box-shadow: 0 15px 35px rgba(174, 71, 31, 0.25);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .buy-section {
    min-height: 520px;
  }

  .buy-section .container {
    width: 100%;
  }

  .buy-content {
    width: 100%;

    padding: 70px 20px;

    align-items: center;

    text-align: center;
  }

  .buy-content .section-label {
    font-size: 0.65rem;

    line-height: 1.6;

    text-align: center;
  }

  .buy-content h2 {
    font-size: 3.2rem;

    text-align: center;
  }

  .buy-content p {
    font-size: 0.95rem;

    text-align: center;
  }

  .buy-button {
    margin: 0 auto;

    padding: 15px 30px;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {
  .buy-content {
    padding: 60px 18px;
  }

  .buy-content h2 {
    font-size: 2.8rem;
  }

  .buy-button {
    width: auto;

    min-width: 190px;
  }
}

.buy-content {
  position: relative;

  z-index: 2;

  max-width: 750px;

  padding: 80px 20px;
}

.buy-content h2 {
  margin-bottom: 20px;

  font-family: "Playfair Display", serif;

  font-size: clamp(3rem, 7vw, 5.5rem);

  font-weight: 500;
}

.buy-content h2 span {
  color: var(--gold-light);
}

.buy-content p {
  max-width: 600px;

  margin: 0 auto 35px;

  color: rgba(255, 255, 255, 0.75);

  line-height: 1.8;
}

.buy-button {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 16px 38px;

  background: var(--gold);

  border: 1px solid var(--gold);

  color: #15120c;

  font-size: 0.75rem;

  font-weight: 700;

  letter-spacing: 3px;

  transition: 0.3s ease;
}

.buy-button:hover {
  background: var(--gold-light);

  border-color: var(--gold-light);

  transform: translateY(-4px);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 60px 20px 35px;

  text-align: center;

  background: #080d20;

  color: white;
}

.footer-logo {
  font-family: Georgia, serif;

  font-size: 1.7rem;

  font-weight: 900;

  letter-spacing: 1px;
}

.footer-tagline {
  margin: 8px 0 25px;

  font-family: "Cormorant Garamond", serif;

  font-size: 1.2rem;

  color: var(--gold-light);
}

.footer-divider {
  width: 70px;

  height: 1px;

  margin: 0 auto 25px;

  background: var(--gold);
}

.copyright,
.website-credit {
  margin: 5px 0;

  font-size: 0.75rem;

  color: rgba(255, 255, 255, 0.55);
}

.website-credit a {
  color: var(--gold-light);
}

/* =========================================================
   GENERIC BUTTONS
========================================================= */

.btn {
  font-family: "Cinzel", serif;

  font-size: 12.5px;

  letter-spacing: 0.2em;

  text-transform: uppercase;

  text-decoration: none;

  padding: 16px 34px;

  border-radius: 2px;

  display: inline-block;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn-primary {
  color: var(--ink);

  background: linear-gradient(120deg, var(--gold-soft), var(--gold));

  box-shadow: 0 10px 26px rgba(201, 165, 103, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);

  box-shadow: 0 16px 34px rgba(201, 165, 103, 0.32);
}

.btn-ghost {
  color: var(--parchment);

  border: 1px solid rgba(237, 226, 206, 0.35);

  background: rgba(237, 226, 206, 0.04);
}

.btn-ghost:hover {
  border-color: var(--gold-soft);

  color: var(--gold-soft);

  transform: translateY(-2px);
}

/* =========================================================
   REVEAL ON SCROLL
========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(28px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.in {
  opacity: 1;

  transform: translateY(0);
}

/* =========================================================
   DIVIDER
========================================================= */

.divider {
  width: 100%;

  max-width: 1280px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  gap: 18px;

  color: var(--gold);
}

.divider .line {
  flex: 1;

  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 165, 103, 0.4),
    transparent
  );
}

.divider svg {
  width: 20px;

  height: 20px;

  opacity: 0.8;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 450px;
  }

  .featured-content {
    padding: 80px 8%;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
  .hero-content {
    padding-top: 60px;
  }

  .hero-eyebrow {
    font-size: 0.6rem;

    letter-spacing: 3px;
  }

  .book-title {
    font-size: clamp(4.5rem, 25vw, 7rem);
  }

  .book-subtitle {
    font-size: 1.15rem;

    padding: 0 10px;
  }

  .hero-scroll {
    display: none;
  }

  .book-introduction,
  .themes-section,
  .author-note,
  .mini-gallery {
    padding: 75px 0;
  }

  .book-cover-wrapper {
    width: min(320px, 85%);
  }

  .book-introduction h2 {
    font-size: 2.7rem;
  }

  .story-section {
    min-height: 650px;
  }

  .story-content {
    padding: 80px 15px;
  }

  .story-overlay {
    background: linear-gradient(rgba(5, 9, 22, 0.9), rgba(5, 9, 22, 0.8));
  }

  .story-content h2 {
    font-size: 3rem;
  }

  .theme-card {
    padding: 28px;
  }

  .featured-image {
    min-height: 350px;
  }

  .featured-content {
    padding: 65px 25px;
  }

  .featured-content h2 {
    font-size: 2.8rem;
  }

  .author-note-box {
    padding: 60px 25px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;

    gap: 8px;
  }

  .buy-section {
    min-height: 520px;
  }

  .buy-content {
    padding: 60px 20px;
  }

  .buy-content h2 {
    font-size: 3.2rem;
  }
}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {
  .hero-buttons {
    flex-direction: column;

    width: 100%;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 90%;
  }

  .book-title {
    font-size: 4.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: 16 / 11;
  }
}

/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;

    transform: none;

    transition: none;
  }

  .book-cover,
  .theme-card,
  .gallery-item img,
  .featured-image img,
  .buy-button,
  .btn-primary-custom,
  .btn-outline-custom {
    transition: none;
  }
}
.book-introduction h2 span {
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 0.9;
}
html {
  scroll-behavior: smooth;
}

#the-story {
  scroll-margin-top: 100px;
}



/* =========================================================
   GIOVANNA — CINEMATIC ON-SCROLL ANIMATIONS
========================================================= */


/* =========================================================
   PAGE FADE IN
========================================================= */

body {
  opacity: 0;
  transition: opacity 0.9s ease;
}

body.page-loaded {
  opacity: 1;
}


/* =========================================================
   HERO ENTRANCE
========================================================= */

.hero-enter {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 1s cubic-bezier(.22, 1, .36, 1),
    transform 1s cubic-bezier(.22, 1, .36, 1);

  transition-delay: var(--delay);
}

body.page-loaded .hero-enter {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   HERO TITLE
========================================================= */

body.page-loaded .giovanna-hero .book-title {
  animation:
    heroTitleReveal 1.4s cubic-bezier(.22, 1, .36, 1) both,
    titleGlow 4s ease-in-out 2s infinite alternate;
}

@keyframes heroTitleReveal {

  from {
    opacity: 0;
    transform: translateY(45px) scale(0.94);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

}

@keyframes titleGlow {

  from {
    text-shadow:
      0 3px 20px rgba(0, 0, 0, 0.6);
  }

  to {
    text-shadow:
      0 5px 35px rgba(174, 71, 31, 0.35);
  }

}


/* =========================================================
   HERO VIDEO
========================================================= */

.hero-video {
  transform:
    scale(1.06)
    translateY(var(--hero-parallax, 0px));

  transition:
    transform 0.2s linear;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.scroll-reveal {
  opacity: 0;
  transform: translateY(60px);

  transition:
    opacity 1s cubic-bezier(.22, 1, .36, 1),
    transform 1s cubic-bezier(.22, 1, .36, 1);
}

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


/* =========================================================
   BOOK COVER
========================================================= */

.book-cover-wrapper {
  opacity: 0;
  transform:
    translateY(calc(60px + var(--cover-y, 0px)))
    scale(0.96);

  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.book-cover-wrapper.visible {
  opacity: 1;

  transform:
    translateY(var(--cover-y, 0px))
    scale(1);
}


/* =========================================================
   BOOK COVER HOVER
========================================================= */

.book-cover-wrapper:hover .book-cover {
  transform: translateY(-8px) scale(1.02);
}

.book-cover {
  transition:
    transform 0.6s cubic-bezier(.22, 1, .36, 1),
    filter 0.6s ease;
}


/* =========================================================
   THEME CARDS
========================================================= */

.theme-card {
  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 0.9s ease var(--card-delay),
    transform 0.9s cubic-bezier(.22, 1, .36, 1) var(--card-delay);
}

.theme-card.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   THEME CARD HOVER
========================================================= */

.theme-card {
  transition:
    opacity 0.9s ease var(--card-delay),
    transform 0.9s cubic-bezier(.22, 1, .36, 1) var(--card-delay),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.theme-card:hover {
  transform: translateY(-8px);
}


/* =========================================================
   AUTHOR NOTE
========================================================= */

.author-note-box.visible {
  animation:
    authorReveal 1.1s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes authorReveal {

  from {
    opacity: 0;
    transform: translateY(60px) scale(0.97);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

}


/* =========================================================
   BUY SECTION
========================================================= */

.buy-content.visible {
  animation:
    buyReveal 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes buyReveal {

  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

}


/* =========================================================
   BUY BUTTON
========================================================= */

.buy-button {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .hero-enter {
    transform: translateY(25px);
  }

  .scroll-reveal {
    transform: translateY(35px);
  }

  .theme-card {
    transform: translateY(35px);
  }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body {
    opacity: 1;
  }

}


html {
  scroll-behavior: smooth;
}