/* ============================================================
   AI AS A THINKING PARTNER — Joe Stumpf
   Authority Site Stylesheet
   © 2026 Joe Stumpf / By Referral Only
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  --gold:        #A8841E;
  --gold-light:  #C9A84C;
  --gold-dim:    #7A5E1E;
  --gold-bg:     #FBF6EC;
  --ink:         #141210;
  --ink-2:       #1E1C18;
  --ink-3:       #2A2724;
  --warm-mid:    #3D3830;
  --warm-stone:  #5A5248;
  --warm-ash:    #3A3530;
  --cream:       #F7F3EB;
  --cream-dark:  #EDE6D6;
  --white:       #FEFCF8;

  --ff-display:  'Playfair Display', Georgia, serif;
  --ff-body:     'Cormorant Garamond', Georgia, serif;
  --ff-mono:     'DM Mono', 'Courier New', monospace;

  --radius:      4px;
  --radius-lg:   8px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width:   1120px;
  --gutter:      clamp(1.5rem, 5vw, 4rem);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* === UTILITIES === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.section-heading em { color: var(--gold); font-style: italic; }

.section-sub {
  font-size: 1.15rem;
  color: var(--warm-ash);
  max-width: 50ch;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-header--light .section-heading { color: var(--ink); }
.section-header--light .section-sub { color: var(--warm-stone); }
.section-header--light .section-label { color: var(--gold-dim); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}
.btn-ghost {
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.btn-large { padding: 1.1rem 2.8rem; font-size: 0.75rem; }

/* === NAVIGATION === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  transition: var(--transition);
}
.site-nav.scrolled {
  background: rgba(247,243,235,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168,132,30,0.15);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-stone);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
  padding: 7rem var(--gutter) 5rem;
  border-bottom: 1px solid rgba(168,132,30,0.15);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(168,132,30,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Large decorative rule lines */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-light) 30%, var(--gold) 50%, var(--gold-light) 70%, transparent 100%);
}

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--ff-display);
  font-size: clamp(8rem, 25vw, 26rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168,132,30,0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}

/* HERO TITLE — huge, bold, dark on light */
.hero-title-block {
  margin-bottom: 1.75rem;
}

.hero-title-main {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: block;
}

.hero-title-em {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 9.5vw, 8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.0;
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-family: var(--ff-body);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--warm-stone);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.hero-subtitle-em {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-style: italic;
  color: var(--warm-stone);
  letter-spacing: 0.03em;
}

.hero-rule {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 2rem auto;
  border-radius: 1px;
}

.hero-promise {
  margin-bottom: 2.75rem;
}
.promise-line {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  color: var(--warm-stone);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}
.promise-bold {
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: var(--ink);
  font-weight: 600;
}
.promise-bold em { color: var(--gold); font-style: italic; }

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.35;
  animation: scrollPulse 2.5s ease-in-out infinite;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.scroll-label {
  font-family: var(--ff-mono);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

/* === ABOUT BOOK === */
.about-book {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--white);
  position: relative;
}
.about-book::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,132,30,0.25), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.about-left .section-heading {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  position: sticky;
  top: 7rem;
}

.about-right p {
  font-size: 1.15rem;
  color: var(--warm-stone);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-right .lede {
  font-size: 1.35rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.75rem;
}

.about-tagline {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,0.15);
}
.tagline-rule {
  flex-shrink: 0;
  display: block;
  width: 2px;
  height: 50px;
  background: var(--gold);
  margin-top: 0.2rem;
}
.about-tagline p {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.5;
  margin: 0 !important;
}

.pillars-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5px;
  border: 1px solid rgba(168,132,30,0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(168,132,30,0.08);
}

.pillar {
  padding: 2.5rem 2rem;
  background: var(--white);
  transition: background var(--transition);
  position: relative;
}
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.pillar:hover { background: #FDFAF2; }
.pillar:hover::before { transform: scaleX(1); }

.pillar-icon {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.7;
}
.pillar h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.pillar p {
  font-size: 0.9rem;
  color: var(--warm-stone);
  line-height: 1.7;
}

/* === CHAPTERS === */
.chapters-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--cream);
}

.chapters-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.part-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
  margin-top: 1.5rem;
}
.part-header:first-child { margin-top: 0; }
.part-label {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.part-title {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}
.part-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.2), transparent);
}

/* Chapter Card */
.chapter-card {
  background: var(--white);
  border: 1px solid rgba(168,132,30,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chapter-card:hover {
  border-color: rgba(168,132,30,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.chapter-card.is-open {
  border-color: rgba(168,132,30,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.chapter-card--featured {
  border-color: rgba(168,132,30,0.25);
  background: linear-gradient(135deg, rgba(168,132,30,0.04) 0%, var(--white) 100%);
}
.chapter-card--final {
  border-color: rgba(168,132,30,0.2);
}

.chapter-toggle {
  width: 100%;
  text-align: left;
  padding: 0;
  background: none;
  border: none;
}

.chapter-card-header {
  display: grid;
  grid-template-columns: 3.5rem 1fr 2rem;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.75rem;
  transition: background var(--transition);
}
.chapter-toggle:hover .chapter-card-header {
  background: rgba(168,132,30,0.04);
}

.chapter-num {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.8;
}

.chapter-meta { min-width: 0; }

.chapter-title {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  transition: color var(--transition);
}
.chapter-toggle:hover .chapter-title { color: var(--ink); }
.chapter-card.is-open .chapter-title { color: var(--gold-dim); }

.chapter-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-top: 0.4rem;
  border: 1px solid rgba(201,168,76,0.2);
}

.chapter-arrow {
  font-size: 1.3rem;
  color: var(--gold-dim);
  transition: transform var(--transition), color var(--transition);
  line-height: 1;
  text-align: center;
}
.chapter-card.is-open .chapter-arrow {
  transform: rotate(45deg);
  color: var(--gold);
}

.chapter-content {
  padding: 0 1.75rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
}
.chapter-content:not([hidden]) {
  padding: 0 1.75rem 2rem;
  max-height: 8000px;
}

.chapter-body p {
  font-size: 1.1rem;
  color: var(--warm-stone);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.chapter-body p strong { color: var(--ink); font-weight: 600; }
.chapter-body p em { color: var(--gold-dim); font-style: italic; }

.chapter-body blockquote {
  border-left: 2px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 0 1rem 1.75rem;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
}
.chapter-body blockquote.prompt-quote {
  background: rgba(168,132,30,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  font-style: normal;
  color: var(--gold-dim);
  letter-spacing: 0.01em;
  line-height: 1.7;
  border-color: var(--gold);
}

.inline-link {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,168,76,0.3);
  transition: text-decoration-color var(--transition);
}
.inline-link:hover { text-decoration-color: var(--gold); }

/* === 28 QUESTIONS === */
.questions-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--ink);
  position: relative;
}
.questions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
}
.questions-section .section-heading { color: var(--cream); }
.questions-section .section-sub { color: var(--warm-ash); }
.questions-section .section-label { color: var(--gold-light); }

.questions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.question-card {
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.question-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold-light);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.question-card:hover { background: rgba(201,168,76,0.06); }
.question-card:hover::after { transform: scaleY(1); }

.question-card--28 {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
}
.question-card--28:hover { background: rgba(201,168,76,0.12); }
.question-card--28 .q-num { color: var(--gold-light); }
.question-card--28 h3 { color: var(--cream); }
.question-card--28 p { color: rgba(255,255,255,0.5); }
.question-card--28 .q-prompt { background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.3); color: var(--gold-light); }

.q-num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.6);
  margin-bottom: 0.75rem;
}
.question-card h3 {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.question-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.q-prompt {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(201,168,76,0.8);
  background: rgba(201,168,76,0.07);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 2px solid rgba(201,168,76,0.3);
}

/* === AUTHOR === */
.author-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--white);
  position: relative;
  border-top: 1px solid rgba(168,132,30,0.12);
}

.author-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.author-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

.author-monogram {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1A1510, #0D0C0A);
  border: 2px solid rgba(168,132,30,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-light);
  position: relative;
  z-index: 2;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.author-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(168,132,30,0.15);
  animation: ringPulse 4s ease-in-out infinite;
}
.author-ring--1 { width: 180px; height: 180px; animation-delay: 0s; }
.author-ring--2 { width: 230px; height: 230px; animation-delay: 1s; border-style: dashed; border-color: rgba(168,132,30,0.08); }

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.author-content { padding-top: 0.5rem; }
.author-content .section-label { margin-bottom: 0.5rem; }
.author-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.author-title {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.author-content p {
  font-size: 1.05rem;
  color: var(--warm-stone);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.author-close {
  color: var(--warm-stone) !important;
  font-style: italic;
  padding-top: 1rem;
  border-top: 1px solid rgba(168,132,30,0.12);
  margin-top: 0.5rem;
}

/* === FAQ === */
.faq-section {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--cream);
  border-top: 1px solid rgba(168,132,30,0.1);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid rgba(168,132,30,0.14);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.is-open {
  border-color: rgba(168,132,30,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.faq-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 1.5rem;
  gap: 1rem;
  text-align: left;
  transition: background var(--transition);
}
.faq-toggle:hover { background: rgba(168,132,30,0.04); }
.faq-toggle span:first-child {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.faq-arrow {
  font-size: 1.3rem !important;
  color: var(--gold-dim) !important;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition) !important;
}
.faq-item.is-open .faq-arrow {
  transform: rotate(45deg);
  color: var(--gold) !important;
}

.faq-answer {
  padding: 0 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-answer:not([hidden]) {
  padding: 0 1.5rem 1.5rem;
  max-height: 600px;
}
.faq-answer p {
  font-size: 1rem;
  color: var(--warm-stone);
  line-height: 1.8;
}

/* === CLOSING CTA === */
.closing-cta {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.closing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.cta-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.cta-heading em { color: var(--gold-light); font-style: italic; }
.cta-sub {
  font-size: 1.1rem;
  color: rgba(247,243,235,0.55);
  margin-bottom: 2.5rem;
  font-style: italic;
}
.cta-buttons { margin-bottom: 2rem; }
.cta-url {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(201,168,76,0.5);
}

/* === FOOTER === */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}
.footer-tagline {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-url {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: rgba(201,168,76,0.4);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 1.5rem;
}
.footer-bottom p {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
}
.footer-sep { margin: 0 0.75rem; }

/* === ENTRANCE ANIMATIONS === */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }

/* === RESPONSIVE === */
/* ============================================================
   RESPONSIVE / MOBILE STYLES
   Breakpoints: 900px (tablet), 640px (large phone), 480px (small phone)
   ============================================================ */

/* --- 900px: Tablet --- */
@media (max-width: 900px) {

  /* Nav */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(247,243,235,0.99);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.is-open a {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    color: var(--ink);
  }

  /* About grid */
  .about-grid { grid-template-columns: 1fr; }
  .about-left .section-heading { position: static; }

  /* Author grid */
  .author-grid { grid-template-columns: 1fr; }
  .author-visual { height: 200px; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }
}

/* --- 640px: Large phone --- */
@media (max-width: 640px) {

  /* Global spacing */
  :root { --gutter: 1.25rem; }

  /* Hero */
  .hero {
    padding: 6rem var(--gutter) 4rem;
    min-height: auto;
  }
  .hero-bg-text { display: none; }
  .hero-title-main { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-title-em   { font-size: clamp(2.5rem, 11vw, 3.8rem); }
  .hero-eyebrow { gap: 0.6rem; }
  .eyebrow-line { width: 24px; }
  .hero-promise { margin-bottom: 2rem; }
  .promise-line  { font-size: 1.1rem; }
  .promise-bold  { font-size: 1.25rem; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
  .hero-scroll-indicator { display: none; }

  /* About book */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-right .lede { font-size: 1.15rem; }
  .about-right p    { font-size: 1rem; }

  /* Pillars */
  .pillars-row { grid-template-columns: 1fr; gap: 1rem; }

  /* Chapters section */
  .chapters-section { padding: 3.5rem 0; }
  .chapter-card-header {
    grid-template-columns: 2.5rem 1fr 1.5rem;
    gap: 0.75rem;
    padding: 1.1rem;
  }
  .chapter-num { font-size: 1.5rem; }
  .chapter-title { font-size: 0.95rem; }
  .chapter-content:not([hidden]) {
    padding: 0 1rem 1.75rem;
  }
  .chapter-body p { font-size: 1rem; line-height: 1.8; }
  .chapter-body blockquote { font-size: 1.05rem; padding-left: 1.25rem; }
  .chapter-body blockquote.prompt-quote { font-size: 0.78rem; }

  /* Questions */
  .questions-grid { grid-template-columns: 1fr; }
  .question-card { padding: 1.5rem; }

  /* Author */
  .author-grid { grid-template-columns: 1fr; }
  .author-visual { height: 180px; margin-bottom: 0; }
  .author-monogram { width: 110px; height: 110px; font-size: 2.2rem; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; }
  .faq-card { padding: 1.5rem; }

  /* CTA section */
  .cta-section { padding: 4rem 0; }
  .cta-heading { font-size: clamp(1.6rem, 6vw, 2.2rem); }

  /* Footer */
  .footer-grid { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; }

  /* Part headers */
  .part-header { padding: 1.25rem; }
}

/* --- 480px: Small phone --- */
@media (max-width: 480px) {

  :root { --gutter: 1rem; }

  /* Nav */
  .nav-logo { font-size: 0.9rem; }
  .site-nav { padding: 1rem var(--gutter); }

  /* Hero */
  .hero-title-main { font-size: clamp(2.6rem, 14vw, 3.6rem); line-height: 0.9; }
  .hero-title-em   { font-size: clamp(2.2rem, 12vw, 3rem); }
  .hero-subtitle   { font-size: 0.95rem; }
  .hero-rule       { margin: 1.5rem auto; }

  /* Chapters */
  .chapter-card-header { padding: 1rem 0.9rem; }
  .chapter-num { font-size: 1.3rem; }
  .chapter-title { font-size: 0.88rem; }
  .chapter-content:not([hidden]) { padding: 0 0.9rem 1.5rem; }

  /* Questions */
  .question-card { padding: 1.25rem; }
  .question-card h3 { font-size: 0.95rem; }
  .q-prompt { font-size: 0.68rem; }

  /* Author bio */
  .author-bio p { font-size: 1rem; }

  /* Buttons full width */
  .btn { max-width: 100%; }
  .btn-large { padding: 1rem 1.5rem; font-size: 0.72rem; }

  /* Section headings */
  .section-heading { font-size: clamp(1.6rem, 7vw, 2.2rem); }
}

/* --- Touch-friendly tap targets --- */
@media (hover: none) and (pointer: coarse) {
  .chapter-toggle { min-height: 56px; }
  .btn { min-height: 52px; padding: 0.9rem 1.75rem; }
  .nav-toggle { padding: 10px; min-width: 44px; min-height: 44px; justify-content: center; align-items: center; }
  .question-card { cursor: default; }
  .question-card:hover { background: rgba(255,255,255,0.03); }
  .question-card:hover::after { transform: scaleY(0); }
}

/* --- Reduce motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-scroll-indicator { display: none; }
}
