﻿@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=Outfit:wght@300;400;500;600&display=swap");

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f0ebe1;
  --bg-dark: #1e1c1a;
  --text-primary: #2c2a28;
  --text-secondary: #5c5a58;
  --text-muted: #9a9896;
  --terracotta: #d9734e;
  --terracotta-dark: #bf5f3a;
  --sage: #8a9a86;
  --sand: #e8dcc4;
  --border: #e2d9cb;
  --white: #ffffff;

  /* âœ… FIXED FONT FALLBACKS */
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, -apple-system, sans-serif;

  --container-max: 1240px;
  --pad: 24px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 12px rgba(44, 42, 40, 0.07);
  --shadow-md: 0 8px 32px rgba(44, 42, 40, 0.11);
  --shadow-lg: 0 20px 64px rgba(44, 42, 40, 0.16);
  --t: 0.32s ease;
  --t-slow: 0.5s ease;
  --bg-gradient: linear-gradient(135deg, #faf8f6 0%, #f5f2e6 100%);
  --bg-base: var(--bg-primary);
  --bg-surface: var(--bg-secondary);
  --accent-primary: var(--terracotta);
  --border-color: var(--border);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* âœ… SMALL FIX: smoother font rendering */
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* âœ… FIX: anchor accessibility */
a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

/* âœ… FIX: prevent layout shift */
h1 {
  font-size: clamp(3rem, 5.5vw, 5rem);
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
}
h3 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}
h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ================= IMPORTANT FIX ================= */
/* Fix mobile menu flicker issue */
.nav-links {
  will-change: transform, opacity;
}

/* Fix image rendering */
img {
  image-rendering: auto;
}

/* Prevent button shrinking */
.btn {
  flex-shrink: 0;
}

/* ================= NO OTHER CHANGES ================= */
/* ===== LAYOUT ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: 108px 0;
}
.section-sm {
  padding: 64px 0;
}

/* ===== SECTION META ===== */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
  position: relative;
  padding-left: 36px;
}
.label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 1.5px;
  background: var(--terracotta);
}
.label.center {
  padding-left: 0;
}
.label.center::before {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 115, 78, 0.38);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--bg-dark);
  color: var(--sand);
  border-color: var(--bg-dark);
}
.btn-dark:hover {
  background: #2e2c2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250, 248, 245, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 24px;
  position: relative;
}
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-logo em {
  color: var(--terracotta);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color var(--t);
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: all var(--t);
  transform: translateX(-50%);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-book-btn {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  background: var(--terracotta);
  color: white;
  border-radius: var(--radius-sm);
  transition: all var(--t);
  flex-shrink: 0;
}
.nav-book-btn.mobile-nav-button {
  display: none;
  width: 100%;
}
.nav-book-btn:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(217, 115, 78, 0.35);
}

/* Mobile Nav */
.nav-toggle {
  display: none;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 999;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t);
}
.nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 60px 0 80px;
  background: var(--bg-primary);
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(232, 220, 196, 0.45) 0%,
    transparent 65%
  );
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  animation: fadeInLeft 0.8s ease both;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 24px;
  padding-left: 38px;
  position: relative;
}
.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1.5px;
  background: var(--terracotta);
}
.hero-name {
  font-size: clamp(3.5rem, 6vw, 5.8rem);
  line-height: 1.02;
  margin-bottom: 20px;
}
.hero-name em {
  color: var(--terracotta);
}
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 460px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--terracotta);
  line-height: 1;
  display: block;
}
.hero-stat-lbl {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
  display: block;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInRight 0.9s ease 0.15s both;
}

/* Bubbles */
.bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.b1 {
  width: 130px;
  height: 130px;
  top: 4%;
  left: 3%;
  background: rgba(232, 220, 196, 0.65);
  border: 2px solid rgba(217, 115, 78, 0.18);
  animation: bFloat 7s ease-in-out infinite;
}
.b2 {
  width: 64px;
  height: 64px;
  top: 18%;
  right: 6%;
  background: rgba(138, 154, 134, 0.28);
  border: 1.5px solid rgba(138, 154, 134, 0.5);
  animation: bFloat 5s ease-in-out infinite 1.1s;
}
.b3 {
  width: 210px;
  height: 210px;
  bottom: 8%;
  right: -2%;
  background: rgba(232, 220, 196, 0.28);
  border: 2px solid rgba(232, 220, 196, 0.6);
  animation: bFloat 9.5s ease-in-out infinite 0.4s;
}
.b4 {
  width: 44px;
  height: 44px;
  bottom: 28%;
  left: 1%;
  background: rgba(217, 115, 78, 0.14);
  border: 1.5px solid rgba(217, 115, 78, 0.3);
  animation: bFloat 4s ease-in-out infinite 2.2s;
}
.b5 {
  width: 86px;
  height: 86px;
  top: 46%;
  right: 4%;
  background: rgba(138, 154, 134, 0.12);
  border: 1.5px solid rgba(138, 154, 134, 0.25);
  animation: bFloat 6s ease-in-out infinite 3.1s;
}
.b6 {
  width: 32px;
  height: 32px;
  top: 32%;
  left: 22%;
  background: rgba(217, 115, 78, 0.18);
  animation: bFloat 3.5s ease-in-out infinite 1.6s;
}
.b7 {
  width: 96px;
  height: 96px;
  bottom: 6%;
  left: 12%;
  background: rgba(232, 220, 196, 0.5);
  border: 1px solid rgba(232, 220, 196, 0.8);
  animation: bFloat 8.5s ease-in-out infinite 0.7s;
}
.b8 {
  width: 22px;
  height: 22px;
  top: 60%;
  left: 38%;
  background: rgba(138, 154, 134, 0.4);
  animation: bFloat 4.5s ease-in-out infinite 2.8s;
}
/* =========================================================
   SCALABLE HERO BOOK STACK (Infinite Items)
   ========================================================= */
/* =========================================================
   HERO BOOK STACK (Sink & Rise Sequential Animation)
   ========================================================= */

.book-stack {
  position: relative;
  width: 280px;
  height: 390px;
  animation: floatBook 6.5s ease-in-out infinite;
}

.hero-book {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;

  /* Hidden state: Pushed DOWN and scaled back */
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96) translateY(20px);
  z-index: 1;

  /* EXIT ANIMATION: When .active is removed, it uses this transition.
     It gently sinks down and fades out over 0.8 seconds. */
  transition:
    opacity 0.8s ease-in,
    transform 0.8s ease-in,
    visibility 0s linear 0.8s;
}

.hero-book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  box-shadow:
    var(--shadow-lg),
    -12px 16px 40px rgba(0, 0, 0, 0.12);
}

.hero-book.active {
  /* Active state: Full size, fully visible, locked into place */
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  z-index: 10;

  /* ENTRANCE ANIMATION: When .active is added, it uses this transition.
     It floats UP and fades in using the premium cubic-bezier over 1 second. */
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}
/* Doodle ring */
.doodle-ring {
  position: absolute;
  width: 360px;
  height: 500px;
  border: 2px dashed rgba(217, 115, 78, 0.18);
  border-radius: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(6deg);
  animation: slowRotate 28s linear infinite;
  pointer-events: none;
}
.doodle-dots {
  position: absolute;
  top: 12%;
  left: 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  pointer-events: none;
}
.doodle-dot {
  width: 5px;
  height: 5px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0.45;
}

/* ===== MARQUEE STRIP ===== */
.marquee-strip {
  background: var(--bg-dark);
  padding: 15px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.marquee-track {
  display: flex;
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: marquee 22s linear infinite;
  flex-shrink: 0;
  padding-right: 56px;
}
.marquee-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 220, 196, 0.55);
  white-space: nowrap;
}
.marquee-item.accent {
  color: var(--terracotta);
}
.marquee-sep {
  color: rgba(232, 220, 196, 0.25);
  font-size: 0.5rem;
}

/* ===== BESTSELLER ===== */
.bestseller {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.bestseller::before {
  content: "NO.1";
  position: absolute;
  top: 50%;
  left: -60px;
  transform: translateY(-50%) rotate(-90deg);
  font-family: var(--font-heading);
  font-size: 10rem;
  font-weight: 300;
  color: rgba(217, 115, 78, 0.05);
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.bestseller-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 90px;
  align-items: center;
}
.bestseller-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.bestseller-img {
  width: 300px;
  height: 406px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: floatBook 7s ease-in-out infinite;
}
.bestseller-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--terracotta);
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(217, 115, 78, 0.45);
  animation: pulse 3s ease-in-out infinite;
}
.bestseller-content .label {
  margin-bottom: 14px;
}
.bestseller-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 8px;
}
.bestseller-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.bestseller-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  border-left: 3px solid var(--terracotta);
  padding-left: 22px;
}
.bestseller-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== BOOKS GRID (HOME) ===== */
.books-home {
  padding: 112px 0;
  background: var(--bg-primary);
}
.books-home-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 20px;
}
.books-home-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.book-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.book-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.book-card-img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.book-card:hover .book-card-img {
  transform: scale(1.05);
}
.book-card-body {
  padding: 18px 16px 20px;
}
.book-card-year {
  font-size: 0.68rem;
  color: var(--terracotta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}
.book-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 600;
}
.book-card-genre {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 130px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.manifesto::before,
.manifesto::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.manifesto::before {
  top: 0;
}
.manifesto::after {
  bottom: 0;
}
.manifesto-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.6;
  text-align: center;
  max-width: 1050px;
  margin: 0 auto;
  font-style: italic;
  font-weight: 300;
}
.manifesto-text .dim {
  color: rgba(44, 42, 40, 0.28);
}
.manifesto-text .bright {
  color: var(--text-primary);
  font-weight: 400;
}
.manifesto-text .hl {
  color: var(--terracotta);
  font-weight: 400;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  padding: 120px 0;
  background: var(--bg-primary);
}
.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 90px;
  align-items: center;
}
.about-portrait-wrap {
  display: flex;
  justify-content: center;
}
.about-frame {
  position: relative;
  display: inline-block;
}
.about-frame::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 2px solid var(--sand);
  border-radius: var(--radius-md);
  z-index: 0;
  transition: transform var(--t);
}
.about-frame::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  background: var(--sand);
  border-radius: var(--radius-md);
  z-index: -1;
}
.about-frame:hover::before {
  transform: translate(-4px, -4px);
}
.about-portrait {
  width: 380px;
  height: 490px;
  object-fit: cover;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
  transition: transform var(--t);
}
.about-frame:hover .about-portrait {
  transform: translate(-5px, -5px);
}
.about-content .label {
  margin-bottom: 18px;
}
.about-quote {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 26px;
  padding-left: 24px;
  border-left: 3px solid var(--terracotta);
}
.about-bio {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
}

/* ===== AWARDS HOME ===== */
.awards-home {
  padding: 110px 0;
  background: var(--bg-dark);
  overflow: hidden;
}
.awards-home-header {
  text-align: center;
  margin-bottom: 64px;
}
.awards-home-header h2 {
  color: var(--sand);
}
.awards-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 64px;
}
.award-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform var(--t),
    background var(--t),
    border-color var(--t);
}
.award-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(217, 115, 78, 0.3);
}
.award-card-img {
  width: 100%;
  height: 196px;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity var(--t);
}
.award-card:hover .award-card-img {
  opacity: 1;
}
.award-card-body {
  padding: 26px 24px;
}
.award-card-year {
  font-size: 0.68rem;
  color: var(--terracotta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 10px;
}
.award-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--sand);
  margin-bottom: 10px;
  line-height: 1.3;
}
.award-card-org {
  font-size: 0.84rem;
  color: rgba(232, 220, 196, 0.55);
  line-height: 1.5;
}

/* Awards Marquee (dark) */
.awards-marquee-row {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 44px;
}
.awards-marquee-track {
  display: flex;
}
.awards-marquee-content {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 28s linear infinite;
  flex-shrink: 0;
  padding-right: 64px;
}
.awards-marquee-item {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: rgba(232, 220, 196, 0.32);
  font-style: italic;
  white-space: nowrap;
  transition: color var(--t);
}
.awards-marquee-item.acc {
  color: rgba(217, 115, 78, 0.8);
}
.awards-marquee-sep {
  color: rgba(217, 115, 78, 0.3);
  font-size: 0.6rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 120px 0;
  background: var(--bg-primary);
}
.testimonials-header {
  text-align: center;
  margin-bottom: 72px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  position: relative;
  transition:
    transform var(--t),
    box-shadow var(--t);
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 26px;
  font-family: var(--font-heading);
  font-size: 6rem;
  color: rgba(217, 115, 78, 0.12);
  line-height: 1;
  pointer-events: none;
}
.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.72;
  color: var(--text-primary);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--terracotta);
  flex-shrink: 0;
  font-weight: 600;
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== CTA ===== */
.cta-section {
  padding: 130px 0;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(217, 115, 78, 0.07) 0%,
    transparent 65%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  display: block;
}
.cta-section h2 {
  margin-bottom: 20px;
}
.cta-section > .container > p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.8;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}
.cta-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--t);
}
.cta-input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(217, 115, 78, 0.1);
}
.cta-input::placeholder {
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  position: relative;
  background: rgb(15, 9, 1); /* warm ink, not cold charcoal */
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  overflow: hidden;
}

footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
}
.quill-divider {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
}
.quill-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(217, 115, 78, 0.35),
    transparent
  );
}
.quill-svg {
  flex-shrink: 0;
  opacity: 0.7;
}
.quill-svg .quill-path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawQuill 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}
.quill-svg .quill-dot {
  opacity: 0;
  animation: fadeInDot 0.4s ease 2.3s forwards;
}
@keyframes drawQuill {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fadeInDot {
  to {
    opacity: 1;
  }
}
.footer-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  gap: 32px;
}
.footer-name {
  font-family: var(--font-heading);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
}
.footer-name em {
  color: var(--terracotta);
  font-style: italic;
  display: block;
}
.footer-tagline {
  max-width: 300px;
  text-align: right;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.38);
  border-right: 1px solid rgba(217, 115, 78, 0.3);
  padding-right: 24px;
}
.footer-links-row {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: 0;
  margin-bottom: 72px;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-col-divider {
  background: rgba(255, 255, 255, 0.07);
  margin: 0 40px;
}
.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  margin-bottom: 28px;
  font-weight: 500;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-weight: 300;
  transition:
    color 0.25s ease,
    letter-spacing 0.25s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 54px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 0.06em;
  font-weight: 300;
}
.footer-copy em {
  color: rgba(217, 115, 78, 0.5);
  font-style: normal;
}
.footer-watermark {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 14vw, 14rem);
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.028);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: -0.04em;
  user-select: none;
  z-index: 0;
}
.ink-accent {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ink-accent-1 {
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(217, 115, 78, 0.07) 0%,
    transparent 70%
  );
  top: 60px;
  right: -80px;
}
.ink-accent-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(138, 154, 134, 0.06) 0%,
    transparent 70%
  );
  bottom: 100px;
  left: -60px;
}
@media (max-width: 900px) {
  .footer-inner {
    padding: 0 32px 48px;
  }
  .footer-masthead {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-tagline {
    text-align: left;
    border-right: none;
    border-left: 1px solid rgba(217, 115, 78, 0.3);
    padding-right: 0;
    padding-left: 20px;
  }
  .footer-links-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .footer-col-divider {
    display: none;
  }
  .footer-links-row > .footer-col:last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-inner {
    padding: 0 24px 40px;
  }
  .footer-links-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .quill-divider {
    margin-bottom: 48px;
  }
}
.page-header {
  padding: 120px 0 80px;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(217, 115, 78, 0.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}
.page-header .label {
  margin-bottom: 16px;
}
.page-header h1 {
  margin-bottom: 18px;
}
.page-header-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== ABOUT PAGE ===== */
.about-main {
  padding: 100px 0;
}
.about-story-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.about-sticky-side {
  position: sticky;
  top: 100px;
}
.about-side-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.about-side-caption {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
  border-left: 2.5px solid var(--terracotta);
  padding-left: 18px;
}
.about-body h3 {
  margin-bottom: 20px;
}
.about-body h3:not(:first-child) {
  margin-top: 52px;
}
.about-body p {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 22px;
}
.about-pull {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-style: italic;
  color: var(--terracotta);
  line-height: 1.42;
  margin: 44px 0;
  text-align: center;
}

/* Philosophy */
.about-philosophy {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.philo-card {
  text-align: center;
  padding: 48px 32px 40px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.philo-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.philo-icon {
  width: 64px;
  height: 64px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--terracotta);
  margin: 0 auto 24px;
  transition: background var(--t);
}
.philo-card:hover .philo-icon {
  background: rgba(217, 115, 78, 0.15);
}
.philo-card h4 {
  margin-bottom: 14px;
}
.philo-card p {
  font-size: 0.95rem;
  line-height: 1.72;
}

/* Gallery */
.about-gallery {
  padding: 100px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 14px;
  margin-top: 48px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.gallery-item:hover .gallery-img {
  transform: scale(1.06);
}

/* ===== ALL BOOKS PAGE ===== */
.books-page-body {
  padding: 80px 0 120px;
}
.books-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.books-page-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.books-page-card:hover {
  transform: translateY(-9px);
  box-shadow: var(--shadow-lg);
}
.books-page-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.books-page-card:hover .books-page-img {
  transform: scale(1.04);
}
.books-page-body-card {
  padding: 24px 22px;
}
.books-page-year {
  font-size: 0.7rem;
  color: var(--terracotta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.books-page-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.28;
  margin-bottom: 8px;
  font-weight: 600;
}
.books-page-genre {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.books-page-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== BOOK DETAIL PAGE ===== */
.book-detail-hero {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.book-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.book-detail-cover-wrap {
  position: sticky;
  top: 100px;
}
.book-detail-cover-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: floatBook 7.5s ease-in-out infinite;
}
.book-detail-buy {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.buy-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-primary);
  background: white;
  transition: all var(--t);
}
.buy-link:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateX(5px);
}
.buy-link-icon {
  width: 20px;
  height: 20px;
  opacity: 0.5;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-detail-content .label {
  margin-bottom: 14px;
}
.book-detail-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.07;
  margin-bottom: 10px;
}
.book-detail-year {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.book-detail-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.bd-meta-item label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.bd-meta-item span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}
.book-detail-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 36px;
}

/* Book Praise */
.book-praise {
  padding: 100px 0;
  background: var(--bg-primary);
}
.book-praise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.praise-card {
  padding: 32px 30px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: transform var(--t);
}
.praise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}
.praise-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.72;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.praise-source {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Related Books */
.related-books {
  padding: 100px 0;
  background: var(--bg-secondary);
}
.related-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

/* ===== ACHIEVEMENTS PAGE ===== */
.achievements-body {
  padding: 80px 0 120px;
}
.achievements-intro {
  max-width: 700px;
  margin: 0 auto 80px;
  text-align: center;
}
.achievements-intro p {
  font-size: 1.08rem;
  line-height: 1.85;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 50px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--terracotta) 0%,
    var(--sage) 60%,
    transparent 100%
  );
}
.timeline-item {
  position: relative;
  padding: 0 0 68px 60px;
}
.timeline-dot {
  position: absolute;
  left: -56px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--terracotta);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--terracotta);
  transition: transform var(--t);
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.4);
}
.tl-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.tl-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.2;
}
.tl-org {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.tl-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 18px;
}
.tl-imgs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.tl-img {
  width: 110px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  transition:
    transform var(--t),
    border-color var(--t);
  cursor: pointer;
}
.tl-img:hover {
  transform: scale(1.07);
  border-color: var(--terracotta);
}

/* Media Mentions */
.media-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.media-section h2 {
  text-align: center;
  margin-bottom: 56px;
}
.media-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.media-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(44, 42, 40, 0.22);
  font-style: italic;
  letter-spacing: 0.04em;
  transition:
    color var(--t),
    transform var(--t);
  cursor: default;
}
.media-name:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ===== CONTACT PAGE ===== */
.contact-body {
  padding: 80px 0 120px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-primary);
  outline: none;
  transition:
    border-color var(--t),
    box-shadow var(--t);
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(217, 115, 78, 0.1);
  background: white;
}
.form-textarea {
  min-height: 148px;
  resize: vertical;
}
.contact-info-side {
  padding-top: 8px;
}
.contact-info-side h3 {
  margin-bottom: 16px;
}
.contact-info-side > p {
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.8;
}
.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: border-color var(--t);
}
.contact-detail:hover {
  border-color: var(--terracotta);
}
.cd-icon {
  width: 44px;
  height: 44px;
  background: rgba(217, 115, 78, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta);
  font-size: 1rem;
  flex-shrink: 0;
}
.cd-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cd-val {
  font-size: 0.94rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ===== CONTACT PAGE EXTENSIONS ===== */
.contact-hero {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(
    135deg,
    rgba(250, 248, 245, 0.98) 0%,
    rgba(240, 235, 225, 0.95) 100%
  );
}
.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 3.5rem;
  align-items: center;
  min-height: 520px;
}
.contact-hero-text {
  padding: 2rem 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-brown);
  margin-bottom: 1.5rem;
}
.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--accent-brown);
}
.contact-heading {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.contact-heading em {
  font-style: italic;
  color: var(--accent-brown);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.contact-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5cb870;
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.2);
  }
}
.photo-panel {
  position: relative;
  background: var(--bg-surface);
  border-radius: 24px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 20px 50px rgba(44, 42, 40, 0.07);
}
.author-photo-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
}
.author-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.05) contrast(1.05);
}
.photo-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-light);
  border-style: solid;
  opacity: 0.9;
}
.photo-corner.tl {
  top: 24px;
  left: 24px;
  border-width: 2px 0 0 2px;
}
.photo-corner.tr {
  top: 24px;
  right: 24px;
  border-width: 2px 2px 0 0;
}
.photo-corner.bl {
  bottom: 24px;
  left: 24px;
  border-width: 0 0 2px 2px;
}
.photo-corner.br {
  bottom: 24px;
  right: 24px;
  border-width: 0 2px 2px 0;
}
.photo-nameplate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 28px 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(26, 28, 26, 0.82) 100%
  );
  color: var(--text-light);
}
.author-name {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--gold-light);
  font-style: italic;
}
.stat-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.sidebar-block {
  margin-bottom: 3rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}
.contact-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-brown);
}
.ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: grid;
  place-items: center;
  color: var(--accent-brown);
  font-size: 1rem;
}
.ci-info {
  display: grid;
  gap: 4px;
}
.ci-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}
.ci-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0.8rem;
}
.form-header {
  margin-bottom: 3rem;
}
.form-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.form-header h2 em {
  color: var(--accent-brown);
  font-style: italic;
}
.form-header p {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.field {
  margin-bottom: 1.5rem;
}
.field label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.field input,
.field textarea {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-body);
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent-brown);
  box-shadow: 0 0 0 4px rgba(155, 112, 78, 0.12);
}
.field textarea {
  min-height: 170px;
  resize: vertical;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  background: var(--text-primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.btn-submit:hover {
  background: rgba(217, 115, 78, 0.5);
  transform: translateY(-1px);
}
@media (max-width: 992px) {
  .contact-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .photo-panel {
    max-width: 680px;
    margin: 0 auto;
  }
  .contact-grid {
    padding-top: 3rem;
    gap: 3rem;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .contact-hero {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    padding: 3rem 1.5rem 4rem;
    gap: 2.5rem;
  }
  .contact-hero {
    padding: 5rem 0 3rem;
  }
  .contact-hero-grid {
    gap: 2rem;
  }
}

/* ===== SCROLL REVEAL (CSS Scroll-Driven Animations) ===== */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fadeInUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
  .reveal-left {
    animation: fadeInLeft linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
  .reveal-right {
    animation: fadeInRight linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes floatBook {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}
@keyframes bFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-22px) scale(1.06);
  }
  70% {
    transform: translateY(10px) scale(0.96);
  }
}
@keyframes bk1 {
  0%,
  26% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
  33%,
  93% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
}
@keyframes bk2 {
  0%,
  30% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  36%,
  60% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
  66%,
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes bk3 {
  0%,
  63% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  69%,
  93% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
  100% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes slowRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(217, 115, 78, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(217, 115, 78, 0.6);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== HERO LOAD ANIMATIONS ===== */
.hero-content {
  animation: fadeInLeft 0.8s ease both;
}
.hero-visual {
  animation: fadeInRight 0.85s ease 0.12s both;
}
.hero-eyebrow {
  animation: fadeInUp 0.6s ease 0.05s both;
}
.hero-name {
  animation: fadeInUp 0.7s ease 0.15s both;
}
.hero-tagline {
  animation: fadeInUp 0.7s ease 0.25s both;
}
.hero-actions {
  animation: fadeInUp 0.7s ease 0.35s both;
}
.hero-stats {
  animation: fadeInUp 0.7s ease 0.45s both;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .books-home-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .books-page-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .related-books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual {
    height: 420px;
    order: -1;
  }
  .hero-eyebrow {
    padding-left: 0;
  }
  .hero-eyebrow::before {
    display: none;
  }
  .hero-tagline {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .bestseller-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bestseller-desc {
    text-align: left;
    margin: 0 auto 36px;
  }
  .bestseller-actions {
    justify-content: center;
  }
  .about-preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-quote {
    text-align: left;
  }
  .awards-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .about-story-grid {
    grid-template-columns: 1fr;
  }
  .about-sticky-side {
    position: static;
  }
  .philosophy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gallery-item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }
  .gallery-img {
    height: 200px !important;
  }
  .book-detail-grid {
    grid-template-columns: 1fr;
  }
  .book-detail-cover-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto 48px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .books-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .related-books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .book-praise-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  body {
    padding-top: 72px;
  }
  .page-shell {
    transition: filter 0.32s ease;
  }
  .nav-links {
    --drawer-width: min(72vw, 300px);
    display: flex;
    position: fixed;
    top: 0;
    right: calc(-1 * var(--drawer-width));
    height: 100vh;
    width: var(--drawer-width);
    background: var(--bg-primary);
    border-left: 1px solid rgba(44, 42, 40, 0.08);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 20px 24px;
    gap: 14px;
    box-shadow: -18px 0 36px rgba(44, 42, 40, 0.18);
    z-index: 9998;
    opacity: 0;
    transition:
      right 0.32s ease,
      opacity 0.32s ease;
    overflow-y: auto;
    pointer-events: none;
  }
  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.32s ease;
    pointer-events: none;
    z-index: 9997;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links li:not(.nav-book-item) {
    border-bottom: 1px solid rgba(44, 42, 40, 0.08);
    padding-bottom: 10px;
  }
  .nav-links li:not(.nav-book-item):last-of-type {
    border-bottom: none;
    padding-bottom: 0;
  }
  .nav-link {
    font-size: 0.96rem;
    padding: 12px 0;
    width: 100%;
    color: var(--text-primary);
    display: inline-block;
  }
  .nav-book-item {
    margin-top: 18px;
  }
  #nav-toggle:checked ~ nav .nav-links {
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }
  #nav-toggle:checked ~ nav .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  #nav-toggle:checked ~ .page-shell {
    filter: blur(6px);
    pointer-events: none;
    transition: filter 0.32s ease;
  }
  .nav-hamburger {
    z-index: 9999;
  }
  .nav-book-btn:not(.mobile-nav-button) {
    display: none;
  }
  .nav-book-btn.mobile-nav-button {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    padding: 12px 0;
    margin: 0 auto;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  :root {
    --pad: 18px;
  }
  .section {
    padding: 72px 0;
  }
  h1 {
    font-size: 2.8rem;
  }
  .books-home-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .books-page-grid {
    grid-template-columns: 1fr 1fr;
  }
  .awards-home-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .cta-form {
    flex-direction: column;
  }
  .manifesto-text {
    font-size: 1.55rem;
  }
  .about-portrait {
    width: 280px;
    height: 360px;
  }
  .bestseller-img {
    width: 220px;
    height: 300px;
  }
  .contact-form-wrap {
    padding: 36px 28px;
  }
  .philosophy-grid {
    grid-template-columns: 1fr;
  }
  .book-detail-meta {
    gap: 20px;
  }
  .books-home-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .media-logos {
    gap: 32px;
  }
  .related-books-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== BOOK DETAILS PAGE ===== */
.book-hero {
  padding: 7rem 0 4rem;
  background: var(--bg-gradient);
}
.book-hero .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.book-hero .hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 2rem;
}
.book-hero .image-glow {
  position: absolute;
  width: 82%;
  height: 82%;
  background: #ffffff;
  filter: blur(60px);
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
}
.book-hero .book-cover {
  width: 100%;
  max-width: 420px;
  border-radius: 2px 8px 8px 2px;
  box-shadow:
    -5px 0 10px rgba(0, 0, 0, 0.05),
    15px 25px 40px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}
.book-hero .bestseller-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background-color: var(--accent-primary);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(169, 113, 66, 0.3);
}
.book-hero .hero-content {
  max-width: 560px;
}
.book-hero .featured-label {
  display: inline-block;
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.book-hero .featured-label::before {
  display: none;
}
.book-hero .book-title {
  font-size: clamp(3.5rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin-bottom: 0.5rem;
}
.book-hero .book-author {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.book-hero .book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.book-hero .meta-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.book-hero .book-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 34rem;
}
.book-hero .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.book-hero .tag {
  font-size: 0.8rem;
  padding: 0.45rem 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  background-color: transparent;
}
.book-hero .btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #ff8c00 0%, #f58220 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 20px rgba(245, 130, 32, 0.2);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.book-hero .btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.3);
}
.book-hero .details-box {
  background: var(--bg-surface);
  padding: 1.5rem 2rem;
  border-radius: 14px;
}
.book-hero .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}
.book-hero .detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.book-hero .detail-label {
  font-weight: 600;
}
.book-hero .detail-value {
  color: var(--text-secondary);
}
.critics-section {
  background-color: var(--white);
  padding: 6rem 0;
}
.critics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.critic-card {
  background: var(--bg-base);
  padding: 3rem 2.5rem;
  border-radius: 18px;
  text-align: center;
}
.quote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.source {
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.related-section {
  background-color: var(--bg-surface);
  padding: 6rem 0;
}
.related-section .books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.book-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.book-card:hover {
  transform: translateY(-5px);
}
.card-image {
  background-color: #efebe3;
  padding: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-image img {
  height: 250px;
  width: auto;
  box-shadow: -5px 10px 20px rgba(0, 0, 0, 0.1);
}
.card-content {
  padding: 2rem;
}
.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.card-year {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}
.view-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.view-link:hover {
  color: var(--text-primary);
}
@media (max-width: 992px) {
  .book-hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .book-hero .hero-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .book-hero .book-meta,
  .book-hero .tags,
  .book-hero .detail-row {
    justify-content: center;
  }
  .related-section .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .critics-grid {
    grid-template-columns: 1fr;
  }
  .related-section .books-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
/* =========================================================
   PRODUCTION GRADE RESPONSIVENESS & SPACING FIXES
   ========================================================= */

/* 1. Fix Contact Page overrides that broke the layout */
@media (max-width: 992px) {
  .contact-grid {
    padding: 0 !important;
    gap: 40px !important;
  }
}

/* 2. Scale down massive paddings for Tablets */
@media (max-width: 992px) {
  .bestseller,
  .books-home,
  .about-preview,
  .awards-home,
  .testimonials,
  .cta-section,
  .page-header,
  .about-main,
  .about-philosophy,
  .about-gallery,
  .books-page-body,
  .achievements-body,
  .book-detail-hero,
  .book-praise,
  .related-books,
  .critics-section,
  .related-section,
  .contact-body,
  .manifesto {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  .page-header {
    padding-top: 100px !important;
    padding-bottom: 60px !important;
  }
}

/* 3. Scale down paddings & tighten layout for Mobile Phones */
@media (max-width: 600px) {
  .bestseller,
  .books-home,
  .about-preview,
  .awards-home,
  .testimonials,
  .cta-section,
  .page-header,
  .about-main,
  .about-philosophy,
  .about-gallery,
  .books-page-body,
  .achievements-body,
  .book-detail-hero,
  .book-praise,
  .related-books,
  .critics-section,
  .related-section,
  .contact-body,
  .manifesto {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  .page-header {
    padding-top: 80px !important;
    padding-bottom: 40px !important;
  }

  /* Fix Achievements Timeline squeezing on mobile */
  .timeline {
    padding-left: 20px;
  }
  .timeline-item {
    padding: 0 0 40px 30px;
  }
  .timeline-dot {
    left: -26px;
  }

  /* Fix Book details page hero on mobile */
  .book-hero .book-title {
    font-size: 2.5rem;
  }
  .book-hero .btn-amazon {
    width: 100%;
    justify-content: center;
  }
}

/* 4. Ensure grids drop to a single column on extra-small devices */
@media (max-width: 480px) {
  .books-home-grid,
  .books-page-grid,
  .related-books-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* Stop images from squashing */
  .award-card-img {
    height: auto;
    aspect-ratio: 16/9;
  }

  /* Stack hero stats vertically */
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
}
/* =========================================================
   BOOK DETAILS PAGE POLISH
   ========================================================= */

/* 1. Feature Label - Added depth and color separation */
.book-hero .featured-label {
  background: rgba(217, 115, 78, 0.08); /* Subtle terracotta tint */
  border: 1px solid rgba(217, 115, 78, 0.25);
  color: var(--terracotta);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(217, 115, 78, 0.05);
}

/* 2. Book Cover - Increased size, viewport filling, and float animation */
.book-hero .hero-image-wrapper {
  min-height: 60vh; /* Forces the wrapper to fill more of the front page */
  display: flex;
  align-items: center;
}
.book-hero .book-cover {
  max-width: 460px; /* Scaled up slightly */
  width: 100%;
  animation: floatBook 7s ease-in-out infinite; /* Reusing your existing float animation */
}

/* 3. Bestseller Badge - Added gradient and pulsing animation */
.book-hero .bestseller-badge {
  background: linear-gradient(
    135deg,
    var(--terracotta) 0%,
    var(--terracotta-dark) 100%
  );
  border: none;
  box-shadow: 0 4px 15px rgba(217, 115, 78, 0.4);
  animation: pulseBadge 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

/* New animation specifically for the badge to give it life */
@keyframes pulseBadge {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 115, 78, 0.4);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(217, 115, 78, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 115, 78, 0);
    transform: scale(1);
  }
}

/* 4. Section Titles - Fixed the missing margins below the headings */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-align: center;
  margin-bottom: 3.5rem; /* This creates the breathing room you needed */
  color: var(--text-primary);
}
/*/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX — replace the entire old lightbox block in styles.css
   ═══════════════════════════════════════════════════════════════ */

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 24, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 9999;
}
.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-box {
  position: relative;
  width: min(700px, 92vw);
  padding: 16px 16px 22px;
  border-radius: 24px;
  background: #faf8f5;
  border: 1px solid rgba(217, 115, 78, 0.22);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  transform: scale(0.82) translateY(24px);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1),
    opacity 0.28s ease;
}
.lightbox-overlay.visible .lightbox-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.lightbox-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background:
    radial-gradient(
      ellipse 60% 45% at 0% 0%,
      rgba(217, 115, 78, 0.1),
      transparent
    ),
    radial-gradient(
      ellipse 50% 40% at 100% 100%,
      rgba(138, 154, 134, 0.08),
      transparent
    );
  pointer-events: none;
  z-index: 0;
}

.lightbox-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  z-index: 1;
}
.lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(80vh - 130px);
  object-fit: contain;
  border-radius: 16px;
  user-select: none;
}
.lightbox-image.lb-swap-out {
  animation: lbOut 0.15s ease forwards;
}
.lightbox-image.lb-swap-in {
  animation: lbIn 0.25s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
@keyframes lbOut {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
@keyframes lbIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 0 2px;
  position: relative;
  z-index: 1;
}
.lightbox-caption-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(217, 115, 78, 0.3),
    transparent
  );
}
.lightbox-caption {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 300;
  color: #5c5a58;
  text-align: center;
  flex: none;
  max-width: 65%;
  line-height: 1.5;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(44, 42, 40, 0.08);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition:
    background 0.2s,
    transform 0.15s;
  font-size: 0;
  color: transparent;
}
.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.8px;
  background: #5c5a58;
  border-radius: 2px;
  transition: background 0.2s;
}
.lightbox-close::before {
  transform: rotate(45deg);
}
.lightbox-close::after {
  transform: rotate(-45deg);
}
.lightbox-close:hover {
  background: rgba(217, 115, 78, 0.15);
  transform: scale(1.1);
}
.lightbox-close:hover::before,
.lightbox-close:hover::after {
  background: #d9734e;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.95);
  border: 1px solid rgba(217, 115, 78, 0.25);
  color: #2c2a28;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 10;
  transition:
    background 0.2s,
    transform 0.15s,
    opacity 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.lightbox-nav:hover {
  background: rgba(217, 115, 78, 0.12);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-nav.hidden {
  opacity: 0;
  pointer-events: none;
}
.lightbox-prev {
  left: -20px;
}
.lightbox-next {
  right: -20px;
}

.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.lightbox-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(44, 42, 40, 0.18);
  cursor: pointer;
  border: none;
  padding: 0;
  transition:
    background 0.2s,
    transform 0.2s;
}
.lightbox-dot.active {
  background: #d9734e;
  transform: scale(1.4);
}
.lightbox-dots:has(.lightbox-dot:only-child) {
  display: none;
}

@media (max-width: 600px) {
  .lightbox-box {
    width: 96vw;
    padding: 12px 12px 18px;
    border-radius: 18px;
  }
  .lightbox-prev {
    left: -16px;
  }
  .lightbox-next {
    right: -16px;
  }
  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* =========================================================
   VIDEO COVER STYLING & ANIMATION
   ========================================================= */

.video-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 5rem 0; /* Adds some breathing room top and bottom */
}

.video-cover {
  width: 85%; /* Covers 65% of the parent container */
  max-width: 1000px; /* Prevents it from getting too massive on huge desktop screens */
  border-radius: 12px; /* Smooth rounded corners */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Deep, premium shadow */
  object-fit: cover;

  /* The Animation */
  animation: floatVideo 6s ease-in-out infinite;
  transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.4s ease;
}

/* Adds a slight interactive lift when the user hovers over the video */
.video-cover:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  animation-play-state: paused; /* Pauses the float while reading/hovering */
}

/* Keyframes for the smooth floating effect */
@keyframes floatVideo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Mobile Responsiveness: Make it slightly wider on small phone screens */
@media (max-width: 768px) {
  .video-cover {
    width: 85%;
    border-radius: 16px;
  }
}

/* =========================================================
   FULL-SCREEN COMING SOON SECTION (UNIVERSAL THEME)
   ========================================================= */

.coming-soon-fullscreen {
  min-height: 100vh;
  background-color: var(--bg-primary); /* Matches your main site background */
  color: var(--text-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  z-index: 1;
}

.coming-soon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Typography & Content */
.cs-label {
  display: inline-block;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cs-label::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--terracotta);
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 8vw, 8rem);
  line-height: 0.9;
  color: var(--text-primary); /* Uses your deep charcoal text color */
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.cs-title em {
  color: var(--terracotta);
  font-style: italic;
  display: block;
}

.cs-desc {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary); /* Matches your standard paragraph color */
  max-width: 450px;
  margin-bottom: 2.5rem;
}

/* The Glowing Image Wrapper */
.cs-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* A very subtle ambient light behind the book for the light background */
.cs-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  background: var(--terracotta);
  filter: blur(100px);
  opacity: 0.15; /* Subtly illuminates the background */
  z-index: 1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.cs-image {
  width: 100%;
  max-width: 420px;
  border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); /* Softer shadow for the light theme */
  position: relative;
  z-index: 2;
  animation: floatBook 7s ease-in-out infinite;
}

/* Animations */
@keyframes pulseGlow {
  0% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .coming-soon-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  .cs-label::before {
    display: none; /* Hide the decorative line on mobile */
  }
  .cs-desc {
    margin: 0 auto 2.5rem auto;
  }
  .coming-soon-fullscreen {
    padding: 120px 0;
  }
}

/* =========================================================
   CREATIVE GALLERY SHOWCASE
   ========================================================= */

.gallery-showcase {
  padding: 100px 0;
  background-color: var(
    --bg-secondary,
    #faf9f6
  ); /* Optional: distinct background */
}

.gallery-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.gallery-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 1rem auto 0;
  font-size: 1.1rem;
}

/* Masonry-Lite Grid 
  Uses CSS Grid to automatically flow items and resize specific children
*/
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  grid-auto-rows: 250px; /* Base height for all images */
  grid-auto-flow: dense; /* Packs the grid tightly */
}

/* Make the 2nd and 4th images span 2 rows (taller) */
.gallery-item:nth-child(2n) {
  grid-row: span 2;
}

/* Make the 5th image span 2 columns (wider) */
.gallery-item:nth-child(5n) {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

/* The dark, elegant hover overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 25, 20, 0.5); /* Warm espresso transparency */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* The 'View Image' button inside the overlay */
.gallery-overlay span {
  color: #ffffff;
  font-family: var(--font-main, "Manrope", sans-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 30px;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover Animations */
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }

  /* Reset spans on mobile so they stack normally */
  .gallery-item:nth-child(2n) {
    grid-row: span 1;
  }
  .gallery-item:nth-child(5n) {
    grid-column: span 1;
  }
}
