/* ==========================================================================
   BALANCE, BOUNCE AND BELIEVE | PROMOTIONAL AUTHOR & BOOK PORTAL
   Thematic Colors matching Gymnastics_eBook.html with premium web accents.
   Strictly Vanilla CSS - Editorial and responsive design system.
   ========================================================================== */

/* ---- Color and Style Tokens ---- */
:root {
  --navy:       #16243F;      /* Deep Slate Navy (Brand Identity) */
  --navy-light: #1F3354;      /* Lighter Slate Navy for interactive components */
  --navy-dark:  #0C1322;      /* Midnight Blue for rich contrasts */
  --gold:       #A86F00;      /* Classic Editorial Warm Gold */
  --gold-light: #D6AA42;      /* Bright gold accent */
  --gold-soft:  #E8DBC5;      /* Subtle border/wash gold */
  --cream:      #FAF6EF;      /* Soft warm cream background */
  --cream-light:#FDFBF7;      /* Clean off-white paper tone */
  --white:      #FFFFFF;      /* Pure white background */
  --ink:        #23262B;      /* Highly readable body text color */
  --ink-light:  #55606E;      /* Muted charcoal for captions/labels */
  --rule:       #D8CFC0;      /* Warm gray separator */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:  "Inter", "Segoe UI", sans-serif;
  --font-body:  "Source Serif 4", Georgia, serif;
  
  --shadow-sm:  0 4px 12px rgba(22, 36, 63, 0.06);
  --shadow-md:  0 8px 24px rgba(22, 36, 63, 0.12);
  --shadow-lg:  0 16px 48px rgba(22, 36, 63, 0.18);
  --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset and Base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3000;
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--navy);
  border: 2px solid var(--cream);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

p.lead {
  font-size: 1.35rem;
  color: var(--navy);
  font-style: normal;
  font-family: var(--font-serif);
  line-height: 1.65;
  font-weight: 600;
}

strong {
  color: var(--navy-light);
  font-weight: 600;
}

.kicker {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ---- Layout & Utilities ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3.2rem 0;
  position: relative;
  scroll-margin-top: 96px;
}

.gold-rule {
  position: relative;
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto 2rem auto;
  border: none;
}

.gold-rule::after {
  content: "❖";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  font-size: 0.75rem;
  background: inherit;
  padding: 0 8px;
}

.gold-rule.left {
  margin-left: 0;
}

.gold-rule.left::after {
  left: 12px;
  transform: translate(0, -50%);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 1rem 2.2rem;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.25;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
}

.btn-primary:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---- Main Header / Navigation ---- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  transition: var(--transition);
}

.main-header.scrolled {
  background-color: rgba(22, 36, 63, 0.95);
  border-bottom-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  transition: var(--transition);
}

.main-header.scrolled .header-container {
  height: 65px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
  transition: var(--transition);
}

.main-header.scrolled .brand {
  color: var(--cream);
}

.brand-logo {
  font-size: 1.4rem;
  color: var(--gold);
  margin-right: 0.5rem;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.05;
}

.brand-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy-light);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  padding: 0.4rem 0;
}

.main-header.scrolled .nav-link {
  color: var(--cream);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.nav-link:hover::after {
  width: 100%;
}

.btn-header-contact {
  background-color: var(--gold);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  font-size: 0.72rem;
}

.btn-header-contact:hover {
  background-color: var(--navy);
  color: var(--white) !important;
}

.main-header.scrolled .btn-header-contact:hover {
  background-color: var(--white);
  color: var(--navy) !important;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  transition: var(--transition);
}

.main-header.scrolled .mobile-toggle span {
  background-color: var(--cream);
}

/* ---- Hero Section ---- */
.hero-section {
  background: radial-gradient(circle at 75% 30%, rgba(214, 170, 66, 0.08) 0%, rgba(22, 36, 63, 0) 65%), linear-gradient(135deg, var(--cream) 0%, #FAF2E5 100%);
  padding-top: 7.5rem;
  padding-bottom: 4.2rem;
  border-bottom: 1.5px solid var(--rule);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  align-self: flex-start;
  margin-bottom: 1.05rem;
  color: var(--navy-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.hero-content .kicker::before,
.hero-content .kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(176, 113, 0, 0.55);
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.1;
  margin-bottom: 0.65rem;
  letter-spacing: -0.5px;
}

.hero-title .amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-tagline {
  margin: -0.15rem 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
}

.hero-subtitle {
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-bottom: 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--navy-light);
}

.hero-subtitle span {
  display: inline-flex;
  align-items: center;
}

.hero-subtitle span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 0.9rem;
  border-radius: 50%;
  background: var(--gold);
}

.hero-quote-box {
  background-color: var(--white);
  border: 1.5px solid rgba(22, 36, 63, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--shadow-sm);
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
}

.quote-text {
  font-family: 'Volkhov', Georgia, serif;
  font-style: italic;
  font-size: 1.38rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.8rem;
  text-align: left;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.quote-author {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-light);
}

.hero-cta-container {
  display: flex;
  gap: 1.2rem;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
}

.hero-cta-container .btn {
  flex: 1;
}

/* Premium Limited Release Announcement Card */
.limited-edition-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background-color: rgba(168, 111, 0, 0.03);
  border: 1.5px solid rgba(22, 36, 63, 0.08);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.1rem 1.5rem;
  margin-top: 2.2rem;
  max-width: 560px;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--shadow-sm);
}

.limited-badge {
  background-color: var(--gold);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(168, 111, 0, 0.2);
}

.limited-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--navy-light);
  line-height: 1.45;
  margin: 0;
  hyphens: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.limited-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(168, 111, 0, 0.2);
  transition: var(--transition);
}

.limited-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.hero-visual-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.book-showcase-container {
  display: flex;
  position: relative;
  width: 410px;
  height: 380px;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  perspective: 1200px;
}

.book-3d-card {
  width: 235px;
  height: 325px;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.25, 1), box-shadow 0.8s cubic-bezier(0.25, 1, 0.25, 1), opacity 0.5s ease;
  border-radius: 4px 10px 10px 4px;
  cursor: pointer;
}

.book-3d-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 8px;
}

.book-page-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-md);
  border-left: 3px solid rgba(255, 255, 255, 0.18);
  display: block;
}

.book-3d-card picture,
.portrait-card picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Default static stacked layouts */
.front-card {
  transform: rotateY(-10deg) rotateX(5deg) translate(-55px, -10px) translateZ(15px);
  z-index: 10;
}

.back-card {
  transform: rotateY(10deg) rotateX(5deg) translate(55px, 10px) translateZ(-15px);
  z-index: 5;
  opacity: 0.85;
}

/* Cinematic Focus States (Center Lift & Zoom) */
.book-showcase-container.focus-front .front-card {
  transform: translate(-45px, 0px) translateZ(50px) scale(1.12) rotateY(-5deg);
  z-index: 25;
  opacity: 1;
}

.book-showcase-container.focus-front .front-card .book-page-img {
  box-shadow: 20px 30px 50px rgba(22, 36, 63, 0.3);
}

.book-showcase-container.focus-front .back-card {
  transform: translate(95px, 20px) translateZ(-30px) scale(0.88) rotateY(15deg);
  z-index: 5;
  opacity: 0.65;
}

.book-showcase-container.focus-back .back-card {
  transform: translate(45px, 0px) translateZ(50px) scale(1.12) rotateY(5deg);
  z-index: 25;
  opacity: 1;
}

.book-showcase-container.focus-back .back-card .book-page-img {
  box-shadow: -20px 30px 50px rgba(22, 36, 63, 0.3);
}

.book-showcase-container.focus-back .front-card {
  transform: translate(-95px, 20px) translateZ(-30px) scale(0.88) rotateY(-15deg);
  z-index: 5;
  opacity: 0.65;
}

/* Unified Captions Row Styling */
.book-showcase-captions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
  width: 100%;
}

.showcase-caption-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  cursor: pointer;
  transition: var(--transition);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.showcase-caption-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.showcase-caption-btn:hover {
  color: var(--navy-light);
}

.showcase-caption-sep {
  color: rgba(22, 36, 63, 0.15);
  font-size: 0.75rem;
}

/* ---- Pillars Section ---- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem auto;
}

.section-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.5px;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--ink-light);
  text-align: center;
}



.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
}

.pillar-card {
  background-color: var(--white);
  border: 1px solid rgba(168, 111, 0, 0.15);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: 3.2rem 2.2rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
  box-shadow: 0 12px 30px rgba(22, 36, 63, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(168, 111, 0, 0.06);
  pointer-events: none;
  border-radius: 4px;
  transition: all 0.4s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(22, 36, 63, 0.08);
  border-top-color: var(--navy);
  border-color: rgba(22, 36, 63, 0.15);
}

.pillar-card:hover::before {
  border-color: rgba(22, 36, 63, 0.08);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.4rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.25, 1);
  background: linear-gradient(135deg, var(--gold), #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pillar-card:hover .pillar-num {
  transform: scale(1.1) translateY(-2px);
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
  letter-spacing: 0.2px;
}

.pillar-desc {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}
.highlights-section {
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.highlight-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: stretch;
}

.unique-cards-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.unique-card {
  background-color: var(--white);
  border: 1px solid rgba(22, 36, 63, 0.06);
  border-left: 4px solid var(--gold-soft);
  border-radius: 6px;
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.unique-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--gold);
  box-shadow: var(--shadow-md);
  border-color: rgba(22, 36, 63, 0.12);
}

.unique-card-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.unique-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.unique-card p {
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink-light);
  line-height: 1.5;
  margin-bottom: 0;
  hyphens: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.unique-eyebrow {
  text-align: left;
  display: block;
  margin-bottom: 0.5rem;
}

.unique-title {
  font-size: 2.2rem;
  text-align: left;
  margin-bottom: 0.6rem;
}

.unique-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-bottom: 2rem;
  hyphens: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  font-style: italic;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.highlight-quote-carousel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-quote {
  background-color: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 4px;
  padding: 3.5rem 2.8rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  overflow: hidden;
  height: 100%;
}

.highlight-quote::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(168, 111, 0, 0.15);
  pointer-events: none;
}

.quote-mark {
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.carousel-track {
  width: 100%;
  position: relative;
}

.carousel-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

.highlight-quote blockquote {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

.quote-author {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 1.2rem;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
  position: relative;
  z-index: 5;
}

.carousel-nav {
  appearance: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background-color: var(--white);
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 800;
  transition: var(--transition);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.carousel-indicators {
  display: flex;
  gap: 0.6rem;
  margin-top: 2rem;
  justify-content: center;
  z-index: 5;
}

.indicator {
  border: 0;
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold-soft);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--gold);
  transform: scale(1.3);
}

.indicator:focus-visible {
  outline-offset: 6px;
}

.carousel-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(168, 111, 0, 0.06);
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background-color: var(--gold);
}

.highlight-quote.progress-running .progress-bar-fill {
  animation: carouselProgress 6000ms linear forwards;
}

.highlight-quote.progress-paused .progress-bar-fill {
  animation-play-state: paused;
}

/* ---- Interactive TOC Section ---- */
.toc-section {
  background: linear-gradient(180deg, #fdfbf7 0%, var(--white) 100%);
  color: var(--navy);
  scroll-margin-top: 88px;
}

.toc-explorer {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3.2rem;
  min-height: 550px;
}

.toc-tabs {
  display: flex;
  flex-direction: column;
  flex: 0 0 320px;
  gap: 0.5rem;
  border-right: 1px solid rgba(22, 36, 63, 0.1);
  padding-right: 1.5rem;
}

.toc-tab-btn {
  background: rgba(255, 254, 250, 0.68);
  border: 1px solid rgba(22, 36, 63, 0.035);
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  color: var(--navy);
  width: 100%;
}

.toc-tab-btn:hover {
  background: rgba(255, 254, 250, 0.92);
  border-color: rgba(214, 170, 66, 0.16);
  border-left-color: rgba(214, 170, 66, 0.55);
}

.toc-tab-btn:focus-visible,
.mobile-toggle:focus-visible,
.showcase-caption-btn:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav-btn:focus-visible,
.detail-link:focus-visible,
.nav-link:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.toc-tab-btn.active {
  background: #fffefa;
  border-color: rgba(214, 170, 66, 0.2);
  border-left-color: var(--gold-light);
  box-shadow: 0 8px 24px rgba(22, 36, 63, 0.065);
  transform: translateX(5px);
}

.tab-num {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.tab-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  transition: var(--transition);
}

.toc-tab-btn.active .tab-name {
  color: var(--navy);
}

.toc-panels {
  position: relative;
  flex: 1;
}

.toc-panel {
  display: none;
  background: #fffefa;
  border: 1px solid rgba(214, 170, 66, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 42px rgba(22, 36, 63, 0.075);
  padding: 3rem;
  animation: fadeInRight 0.45s ease-out forwards;
}

.toc-panel.active {
  display: block;
}

.panel-header {
  margin-bottom: 2.4rem;
  border-bottom: 1px solid rgba(22, 36, 63, 0.08);
  padding-bottom: 2rem;
}

.part-number {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  background: var(--gold-light);
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.panel-header h3 {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  max-width: 980px;
}

.chapter-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.chapter-item {
  display: flex;
  align-items: center;
  background: #f9f7f2;
  border: 1px solid rgba(22, 36, 63, 0.055);
  border-radius: 8px;
  padding: 1.5rem;
  transition: var(--transition);
}

.chapter-item:hover {
  background: var(--white);
  border-color: rgba(214, 170, 66, 0.32);
  box-shadow: 0 5px 15px rgba(22, 36, 63, 0.06);
  transform: translateY(-2px);
}

.ch-num-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  width: 110px;
  flex-shrink: 0;
}

.chapter-item:hover .ch-num-label {
  color: var(--gold);
}

.ch-title-label {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.part-insight {
  margin-top: 1.45rem;
  padding: 1.2rem 1.35rem 1.15rem;
  background: rgba(250, 246, 239, 0.62);
  border-left: 3px solid rgba(214, 170, 66, 0.78);
  border-radius: 0 8px 8px 0;
}

.part-insight-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.part-insight-quote {
  margin: 0 0 0.55rem 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  text-align: left;
}

.part-insight-copy {
  margin: 0;
  max-width: 920px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-light);
  text-align: left;
}

/* ---- Meet the Author Section ---- */
.author-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-top: 1px solid var(--rule);
}

.author-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 4.25rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.author-visual {
  width: 100%;
}

.author-credential-panel {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.portrait-card {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 1.6rem auto;
  border-radius: 4px;
  cursor: pointer;
}

.author-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  border: 6px solid var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
  filter: sepia(25%) saturate(85%) contrast(1.05) brightness(0.98);
  transition: filter 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
}

.portrait-card:hover .author-img {
  filter: sepia(0%) saturate(100%) contrast(1.05) brightness(1);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}

.portrait-border {
  position: absolute;
  top: 12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  z-index: 1;
  transition: transform 0.5s ease;
}

.portrait-card:hover .portrait-border {
  transform: translate(6px, -6px);
  z-index: 1;
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(168, 111, 0, 0.24);
  border-radius: 3px;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  padding: 0.55rem 0.7rem;
  text-align: center;
  text-transform: uppercase;
}

.portrait-caption span {
  display: block;
}

.portrait-caption span + span {
  margin-top: 0.1rem;
}

.academic-note {
  background-color: rgba(168, 111, 0, 0.05);
  border-left: 3px solid var(--gold);
  color: var(--ink-light);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
  padding: 1rem 1.1rem;
  hyphens: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.family-dedication {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0 auto;
  max-width: 440px;
}

.tribute-card {
  align-items: center;
  background-color: var(--white);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  border-top: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  min-height: 168px;
  padding: 0.9rem 0.85rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.tribute-card:hover {
  border-color: rgba(22, 36, 63, 0.14);
  border-top-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.tribute-card:hover .tribute-mark {
  color: var(--navy);
  transform: scale(1.12) translateY(-1px);
}

.tribute-mark {
  color: var(--gold);
  font-size: 0.82rem;
  line-height: 1;
  margin-bottom: 0.55rem;
  transition: var(--transition);
}

.tribute-card figcaption {
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.45;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.tribute-card blockquote {
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.52;
  margin: 0;
  text-align: center;
}

.author-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.author-content p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  hyphens: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
}

.author-quote {
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  margin: 0 auto;
  max-width: 860px;
  padding: 1.6rem 1.25rem;
  text-align: center;
}

.author-quote .quote-text {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
  text-align: center;
}





/* ---- Contact and Connect Section ---- */
.contact-section {
  background-color: var(--white);
}

.contact-card-centered {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--cream-light);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.contact-card-centered::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1.5px solid rgba(168, 111, 0, 0.12);
  pointer-events: none;
  border-radius: 4px;
}

.contact-card-centered h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.contact-intro-text {
  font-size: 1.08rem;
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  line-height: 1.6;
}

.contact-details-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 2.8rem;
  flex-wrap: wrap;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  text-align: left;
}

.detail-icon {
  width: 44px;
  height: 44px;
  background-color: var(--cream);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.detail-item strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-light);
}

.detail-link {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  transition: var(--transition);
}

.detail-link:hover {
  color: var(--gold);
}

.contact-card-centered .newsletter-highlight {
  background-color: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 1.2rem 1.6rem;
  font-size: 0.96rem;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}

.contact-card-centered .newsletter-highlight p {
  margin-bottom: 0;
  text-align: center;
}

.contact-card-centered .newsletter-highlight a {
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
  transition: var(--transition);
}

.contact-card-centered .newsletter-highlight a:hover {
  color: var(--gold);
  border-bottom-color: var(--navy);
}

/* ---- Footer ---- */
.main-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 2.2rem 0;
  border-top: 2px solid var(--gold);
  text-align: center;
}

.footer-content {
  max-width: 750px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0 1rem;
}

.footer-logo {
  font-size: 1.3rem;
  color: var(--gold);
  line-height: 1;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  margin: 0;
}

.footer-subtitle {
  margin: -0.25rem 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.64);
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 0.2rem 0;
}

.footer-nav a {
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-nav .nav-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  font-weight: 300;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 0.15rem auto 0 auto;
  max-width: 720px;
  text-align: center;
}

.footer-copy {
  font-size: 0.76rem;
  color: rgba(250, 246, 239, 0.45);
  margin: 0.3rem 0 0 0;
  line-height: 1.5;
  max-width: 600px;
}

/* ---- Intersection Observer Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Keyframe Animations ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes carouselProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Elegant Lightbox Modal Overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(22, 36, 63, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.25, 1);
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  border: 4px solid var(--white);
  cursor: zoom-out;
}

.lightbox-caption {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  margin-top: 1.2rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.lightbox-image-wrap {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox-content img:hover {
  transform: scale(1.015);
}

.lightbox-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: rgba(247, 246, 240, 0.72);
  margin-top: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.lightbox-image-wrap:hover .lightbox-hint {
  color: var(--gold);
}

.lightbox-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.42rem;
  height: 1.42rem;
  border: 1.4px solid rgba(212, 175, 55, 0.82);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold-light);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.18);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2010;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.25, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.35);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-nav-btn.prev-btn {
  left: 3rem;
}

.lightbox-nav-btn.next-btn {
  right: 3rem;
}

/* Responsive lightbox controls */
@media (max-width: 768px) {
  .lightbox-nav-btn {
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
  .lightbox-nav-btn.prev-btn {
    left: 1rem;
  }
  .lightbox-nav-btn.next-btn {
    right: 1rem;
  }
  .lightbox-close {
    top: 1.2rem;
    right: 1.5rem;
    font-size: 2rem;
  }
}

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

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

  .progress-bar-fill {
    display: none;
  }
}

/* ---- Responsive Styles ---- */

@media (max-width: 1024px) {
  section {
    padding: 5rem 0;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .pillars-grid {
    gap: 1.5rem;
  }
  
  .toc-explorer {
    gap: 1.5rem;
  }

  .toc-tabs {
    flex: 0 0 250px;
  }
  
  .toc-tab-btn {
    padding: 0.9rem 1rem;
  }
  
  .chapter-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .author-visual {
    max-width: 620px;
    margin: 0 auto;
  }
  
  .portrait-card {
    margin-left: auto;
    margin-right: auto;
  }
  
  .contact-details-row {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: 70px;
  }
  
  .brand-text {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.46rem;
    letter-spacing: 0.1em;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--navy-dark);
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 2.2rem;
    transform: translateX(-100%);
    transition: var(--transition);
  }
  
  .nav-menu.open {
    transform: translateX(0);
  }
  
  .nav-link {
    color: var(--cream) !important;
    font-size: 1rem;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .author-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .author-visual {
    order: 1;
  }

  .author-content {
    order: 2;
  }
  
  .hero-visual-wrap {
    order: -1;
  }
  
  .book-showcase-container {
    width: 280px;
    height: 255px;
    margin: 0 auto;
  }
  
  .book-3d-card {
    width: 145px;
    height: 200px;
  }
  
  .front-card {
    transform: rotateY(-10deg) rotateX(5deg) translate(-25px, -5px) translateZ(15px);
  }
  
  .back-card {
    transform: rotateY(10deg) rotateX(5deg) translate(25px, 5px) translateZ(-15px);
  }

  .book-showcase-container.focus-front .front-card {
    transform: translate(-15px, 0px) translateZ(30px) scale(1.1) rotateY(-5deg);
    z-index: 25;
  }

  .book-showcase-container.focus-front .back-card {
    transform: translate(35px, 10px) translateZ(-20px) scale(0.88) rotateY(15deg);
    z-index: 5;
    opacity: 0.65;
  }

  .book-showcase-container.focus-back .back-card {
    transform: translate(15px, 0px) translateZ(30px) scale(1.1) rotateY(5deg);
    z-index: 25;
  }

  .book-showcase-container.focus-back .front-card {
    transform: translate(-35px, 10px) translateZ(-20px) scale(0.88) rotateY(-15deg);
    z-index: 5;
    opacity: 0.65;
  }

  .book-showcase-captions {
    margin-top: 1.2rem;
  }

  .showcase-caption-btn {
    font-size: 0.76rem;
  }

  .toc-tabs {
    flex-direction: column;
    gap: 0.7rem;
    border-bottom: 0;
    border-right: 0;
    padding-bottom: 0;
    padding-right: 0;
    flex: 1 1 auto;
  }

  .toc-explorer {
    flex-direction: column;
    gap: 1.2rem;
    min-height: 0;
  }

  .toc-tab-btn {
    flex: 1 1 auto;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
  }

  .toc-tab-btn .tab-num,
  .toc-tab-btn .tab-name {
    margin-bottom: 0;
  }

  .toc-tab-btn .tab-name {
    text-align: right;
    font-size: 0.95rem;
  }

  .toc-panels {
    display: none;
  }

  .toc-panel.active {
    background-color: var(--white);
    border: 1px solid rgba(214, 170, 66, 0.14);
    border-radius: 8px;
    display: block;
    margin: -0.25rem 0 0.6rem 0;
    padding: 1.4rem;
  }

  .panel-header {
    margin-bottom: 1.4rem;
    padding-bottom: 1.2rem;
  }

  .panel-header h3 {
    font-size: 1.35rem;
  }

  .chapter-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem;
  }

  .ch-num-label {
    width: auto;
  }

  .part-insight {
    margin-top: 1rem;
    padding: 1rem 1rem 0.95rem;
  }

  .part-insight-quote {
    font-size: 1rem;
  }

  .part-insight-copy {
    font-size: 0.95rem;
  }

  .family-dedication {
    grid-template-columns: 1fr;
    max-width: 390px;
  }

  .tribute-card {
    min-height: 0;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  
  .highlight-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .unique-cards-stack {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .contact-card-centered {
    padding: 2.5rem 1.5rem;
  }

  .footer-nav {
    gap: 0.8rem;
    flex-direction: column;
  }
  .footer-nav .nav-sep {
    display: none;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 3.8rem 0;
  }

  .container,
  .hero-container,
  .header-container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .brand-text {
    font-size: 0.92rem;
    letter-spacing: 0;
  }

  .brand-tagline {
    font-size: 0.42rem;
    letter-spacing: 0.08em;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-tagline {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .hero-subtitle,
  .quote-text {
    font-size: 1rem;
  }

  .hero-tagline,
  .hero-subtitle,
  .limited-text,
  .quote-text {
    text-align: left;
    text-align-last: auto;
    word-spacing: normal;
  }

  .quote-text {
    line-height: 1.72;
  }

  .hero-cta-container {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta-container .btn {
    width: 100%;
  }

  .limited-edition-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .book-showcase-container {
    max-width: 100%;
  }

  .toc-explorer,
  .contact-card-centered {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .toc-tab-btn {
    gap: 1rem;
  }

  .tab-name {
    font-size: 0.98rem;
  }

  .portrait-caption {
    left: 0.75rem;
    right: 0.75rem;
    font-size: 0.64rem;
  }

  .detail-item {
    width: 100%;
  }

  .detail-link {
    overflow-wrap: anywhere;
  }
}
