/* ==========================================================================
   My Journey Books — theme.css
   Midnight navy · gold foil · ivory. Editorial, cinematic, classy.
   ========================================================================== */

:root {
  --ink: #060f1e;
  --navy: #091527;
  --navy-2: #0c1c34;
  --navy-3: #122642;
  --gold: #c9a648;
  --gold-soft: #d9bc6e;
  --gold-dim: rgba(201, 166, 72, 0.35);
  --ivory: #f4efe6;
  --muted: #9aabc4;
  --line: rgba(201, 166, 72, 0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Segoe UI', sans-serif;
  --foil: linear-gradient(105deg, #93712a 0%, #e8cd7f 35%, #fff3c4 50%, #d4af5a 65%, #93712a 100%);
  --shadow-book: 0 30px 60px -18px rgba(0, 0, 0, 0.65), 0 12px 24px -10px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: var(--ink); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* Subtle grain veil over everything */
.page-veil {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Typography helpers ============ */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; }

h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: 0.01em; }
h2 em, h1 em { font-style: italic; color: var(--gold-soft); }

.eyebrow {
  font-family: var(--sans); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.1rem;
}

.foil {
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foilSheen 7s ease-in-out infinite;
}
@keyframes foilSheen {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.section-lede { color: var(--muted); margin-top: 1.2rem; font-size: 1.05rem; }

.text-link { color: var(--gold-soft); border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.text-link:hover { color: var(--ivory); border-color: var(--ivory); }

/* ============ Buttons ============ */

.btn {
  display: inline-block; padding: 0.95rem 2.4rem;
  font-family: var(--sans); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s, color 0.4s, border-color 0.4s;
}
.btn-gold {
  background: linear-gradient(110deg, #b08f35, #dcc077 50%, #b08f35);
  background-size: 200% auto;
  color: #1a1404;
  box-shadow: 0 10px 30px -10px rgba(201, 166, 72, 0.55);
}
.btn-gold:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(201, 166, 72, 0.7); }
.btn-ghost { border-color: rgba(244, 239, 230, 0.35); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }

.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* ============ Header ============ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.45s, box-shadow 0.45s, padding 0.45s;
  padding: 1.4rem 0;
}
.site-header.scrolled {
  background: rgba(7, 14, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px -20px rgba(0, 0, 0, 0.8);
  padding: 0.7rem 0;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand-logo { height: 64px; width: auto; transition: height 0.45s; }
.site-header.scrolled .brand-logo { height: 48px; }

.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav > a, .nav-books-toggle {
  font-family: var(--sans); font-weight: 400; font-size: 0.8rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory);
  background: none; border: none; cursor: pointer;
  position: relative; padding: 0.4rem 0;
}
.site-nav > a::after, .nav-books-toggle::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.site-nav > a:hover::after, .nav-books:hover .nav-books-toggle::after { width: 100%; }

.nav-books { position: relative; }
.nav-books .caret { font-size: 0.6rem; color: var(--gold); }
.nav-dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 350px; padding: 0.6rem 0;
  background: rgba(10, 20, 38, 0.97); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.nav-books:hover .nav-dropdown, .nav-books.open .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.75rem 1.4rem; font-size: 0.82rem; letter-spacing: 0.08em;
  transition: background 0.25s, color 0.25s;
}
.nav-dropdown a:hover { background: rgba(201, 166, 72, 0.08); color: var(--gold-soft); }
.dd-num { font-family: var(--serif); font-style: italic; color: var(--gold); min-width: 1.1em; }

.nav-action {
  border: 1px solid var(--gold-dim); padding: 0.55rem 1.3rem !important;
  color: var(--gold-soft) !important;
}
.nav-action::after { display: none; }
.nav-action:hover { border-color: var(--gold); background: rgba(201, 166, 72, 0.08); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; z-index: 110; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--ivory); margin: 6px 0; transition: transform 0.35s, opacity 0.35s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */

.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 70% 10%, #13294a 0%, var(--navy) 55%, var(--ink) 100%);
  padding: 9rem 0 5rem;
}
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-aurora {
  position: absolute; inset: -20%;
  background:
    radial-gradient(36% 30% at 22% 70%, rgba(201, 166, 72, 0.10), transparent 70%),
    radial-gradient(30% 26% at 80% 24%, rgba(38, 84, 120, 0.35), transparent 70%),
    radial-gradient(24% 22% at 60% 80%, rgba(12, 74, 62, 0.25), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes auroraDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 3rem;
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1.1rem;
  font-size: 0.8rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem; font-weight: 500;
}
.hero-eyebrow .rule { display: inline-block; width: 44px; height: 1px; background: var(--gold-dim); }

.hero-title {
  font-size: clamp(3rem, 6.6vw, 5.6rem);
  letter-spacing: 0.005em; margin-bottom: 1.6rem;
}
.hero-title .line { display: block; }

.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2.4rem; }

/* Floating book trio */
.hero-books {
  position: relative; height: clamp(380px, 46vw, 560px);
  perspective: 1400px;
}
.hero-book {
  position: absolute; top: 50%;
  border-radius: 3px 8px 8px 3px; overflow: hidden;
  box-shadow: var(--shadow-book);
  will-change: transform;
  transition: transform 0.2s linear;
}
.hero-book img { height: 100%; width: auto; }
.hb-center {
  left: 50%; height: 78%; z-index: 3;
  transform: translate(-50%, -50%);
  animation: floatC 7s ease-in-out infinite;
}
.hb-left {
  left: 8%; height: 62%; z-index: 2;
  transform: translate(0, -46%) rotate(-7deg);
  animation: floatL 8.5s ease-in-out infinite;
  filter: brightness(0.82);
}
.hb-right {
  right: 6%; height: 62%; z-index: 2;
  transform: translate(0, -42%) rotate(7deg);
  animation: floatR 9.5s ease-in-out infinite;
  filter: brightness(0.82);
}
@keyframes floatC { 0%,100% { margin-top: 0; } 50% { margin-top: -16px; } }
@keyframes floatL { 0%,100% { margin-top: 0; } 50% { margin-top: -22px; } }
@keyframes floatR { 0%,100% { margin-top: 0; } 50% { margin-top: -12px; } }

.hero-scroll {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 24px; height: 40px; border: 1px solid rgba(244, 239, 230, 0.3); border-radius: 12px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--gold); border-radius: 2px;
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ============ Marquee ============ */

.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--ink); overflow: hidden; padding: 1.1rem 0;
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-soft);
  align-items: center; white-space: nowrap;
}
.marquee-track i { font-style: normal; color: var(--gold-dim); font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Trilogy ============ */

.trilogy { padding: 7.5rem 2rem; max-width: 1280px; margin: 0 auto; }

.book-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem;
}
.book-card-link { display: block; text-align: center; }

.book-3d {
  position: relative; perspective: 1100px; margin: 0 auto 2.2rem;
  width: fit-content;
}
.book-3d-inner {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform 0.7s var(--ease);
  border-radius: 2px 6px 6px 2px;
  box-shadow: var(--shadow-book);
}
.book-3d-inner img { height: 330px; width: auto; border-radius: 2px 6px 6px 2px; }
.book-3d.large .book-3d-inner img { height: clamp(380px, 36vw, 520px); }
.book-3d-inner::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -26px; width: 26px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--spine, #11203a) 60%, black), var(--spine, #11203a));
  transform: rotateY(-78deg); transform-origin: right;
  border-radius: 2px 0 0 2px;
}
.book-3d-inner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 32%, transparent 70%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none; border-radius: 2px 6px 6px 2px;
}
.book-card:hover .book-3d-inner { transform: rotateY(-6deg) rotateX(0deg) translateY(-10px) scale(1.02); }
.book-shadow {
  position: absolute; left: 8%; right: 8%; bottom: -26px; height: 30px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(0, 0, 0, 0.55), transparent 75%);
  filter: blur(6px); transition: transform 0.7s var(--ease), opacity 0.7s;
}
.book-card:hover .book-shadow { transform: scaleX(1.06); opacity: 0.8; }

.book-num {
  font-size: 0.74rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem; font-weight: 500;
}
.book-card h3 { font-size: 1.55rem; margin-bottom: 0.7rem; transition: color 0.3s; }
.book-card:hover h3 { color: var(--gold-soft); }
.book-card-sub { color: var(--muted); font-size: 0.92rem; max-width: 21rem; margin: 0 auto 1.2rem; }
.book-cta {
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-soft);
}
.book-cta em { font-style: normal; display: inline-block; transition: transform 0.3s var(--ease); }
.book-card:hover .book-cta em { transform: translateX(6px); }

/* ============ Grand quote ============ */

.grand-quote {
  background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 7rem 2rem; text-align: center; position: relative; overflow: hidden;
}
.grand-quote::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(201, 166, 72, 0.06), transparent 70%);
}
.grand-quote.compact { padding: 5rem 2rem; }
.grand-quote-inner { max-width: 880px; margin: 0 auto; position: relative; }
.gq-mark {
  font-family: var(--serif); font-size: 7rem; line-height: 0.4; display: block;
  color: var(--gold-dim); margin-bottom: 2.4rem;
}
.grand-quote blockquote {
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-style: italic; font-weight: 400; line-height: 1.45; color: var(--ivory);
  margin-bottom: 1.8rem;
}
.grand-quote cite {
  font-family: var(--sans); font-style: normal; font-size: 0.8rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold);
}

/* ============ Author band ============ */

.author-band { padding: 7.5rem 2rem; }
.author-band-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4.5rem; align-items: center;
}
.author-figure { position: relative; }
.author-frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  padding: 14px; background: var(--navy-2);
}
.author-frame::after {
  content: ''; position: absolute; inset: 14px;
  border: 1px solid var(--gold-dim); pointer-events: none;
}
.author-frame img { width: 100%; filter: saturate(0.92); }
.author-figure figcaption {
  margin-top: 1rem; text-align: center;
  font-size: 0.75rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
}
.author-copy h2 { margin-bottom: 1.6rem; }
.author-copy p { color: var(--muted); margin-bottom: 1.2rem; }

.author-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2.4rem;
  margin: 2.2rem 0 2.6rem; justify-content: start;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--gold-soft);
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-top: 0.5rem; max-width: 9rem;
}

/* ============ Pillars ============ */

.pillars { padding: 7.5rem 2rem; background: var(--ink); border-top: 1px solid var(--line); }
.pillar-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.pillar {
  border: 1px solid var(--line); padding: 2.4rem 1.8rem;
  background: linear-gradient(170deg, rgba(18, 38, 66, 0.45), rgba(9, 21, 39, 0.2));
  transition: transform 0.5s var(--ease), border-color 0.5s, background 0.5s;
}
.pillar:hover { transform: translateY(-8px); border-color: var(--gold-dim); }
.pillar-glyph { color: var(--gold); font-size: 1.1rem; display: block; margin-bottom: 1.2rem; }
.pillar h3 { font-size: 1.35rem; margin-bottom: 0.8rem; }
.pillar p { color: var(--muted); font-size: 0.92rem; }

/* ============ CTA band ============ */

.cta-band {
  padding: 8rem 2rem; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 120%, #15294a 0%, var(--navy) 60%, var(--ink) 100%);
}
.cta-inner { max-width: 820px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 2.4rem; }
.cta-band .hero-actions { justify-content: center; }

/* ============ Book page ============ */

.book-hero {
  position: relative; overflow: hidden;
  padding: 10rem 2rem 6rem;
  background: radial-gradient(110% 90% at 30% 0%, #13294a 0%, var(--navy) 55%, var(--ink) 100%);
}
.book-hero-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 4rem; align-items: center;
}
.book-hero-cover { perspective: 1400px; }
.book-title { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 1.4rem; }
.book-subtitle {
  font-family: var(--serif); font-style: italic; font-size: 1.25rem;
  color: var(--muted); margin-bottom: 2rem; max-width: 33rem;
}
.book-stats { display: flex; gap: 2.6rem; margin-bottom: 2.4rem; }
.book-hero .hero-eyebrow .rule:last-child { display: none; }

.book-pitch { padding: 6.5rem 2rem 5rem; }
.book-pitch-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.pitch-text {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.6; margin-bottom: 1.8rem;
}
.pitch-audience { color: var(--gold-soft); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

.book-inside { padding: 6.5rem 2rem; max-width: 880px; margin: 0 auto; }
.parts-list { display: flex; flex-direction: column; gap: 0.8rem; }
.part {
  border: 1px solid var(--line); background: rgba(13, 28, 52, 0.5);
  transition: border-color 0.4s;
}
.part[open] { border-color: var(--gold-dim); }
.part summary {
  display: flex; align-items: baseline; gap: 1.4rem;
  list-style: none; cursor: pointer; padding: 1.4rem 1.8rem;
}
.part summary::-webkit-details-marker { display: none; }
.part-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.15rem; }
.part-title { font-family: var(--serif); font-size: 1.3rem; flex: 1; }
.part-toggle { color: var(--gold); font-size: 1.3rem; font-weight: 300; transition: transform 0.35s var(--ease); }
.part[open] .part-toggle { transform: rotate(45deg); }
.part p { padding: 0 1.8rem 1.6rem 4.4rem; color: var(--muted); font-size: 0.96rem; }

.book-author-strip { padding: 0 2rem 6rem; }
.bas-inner {
  max-width: 880px; margin: 0 auto;
  display: flex; gap: 2.4rem; align-items: center;
  border: 1px solid var(--line); padding: 2.4rem;
  background: linear-gradient(150deg, rgba(18, 38, 66, 0.5), rgba(9, 21, 39, 0.3));
}
.bas-portrait { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 2px solid var(--gold-dim); }
.bas-copy p { color: var(--muted); margin-bottom: 0.8rem; }
.bas-copy .eyebrow { margin-bottom: 0.6rem; }

.book-nav {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.book-nav-link {
  padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: background 0.4s;
}
.book-nav-link.next { text-align: right; border-left: 1px solid var(--line); }
.book-nav-link:hover { background: rgba(201, 166, 72, 0.05); }
.bn-label { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.bn-title { font-family: var(--serif); font-size: 1.3rem; }

/* ============ Author page ============ */

.author-hero {
  position: relative; overflow: hidden; padding: 10rem 2rem 6rem;
  background: radial-gradient(110% 90% at 70% 0%, #13294a 0%, var(--navy) 55%, var(--ink) 100%);
}
.author-hero-inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 4rem; align-items: center;
}
.author-frame.large { max-width: 420px; }

.bio { padding: 6.5rem 2rem; }
.bio-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 5.5rem; }
.bio-block h2 { margin-bottom: 1.6rem; }
.bio-block p { color: var(--muted); margin-bottom: 1.2rem; }
.bio-em { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-soft) !important; }

.timeline { border-left: 1px solid var(--gold-dim); padding-left: 2.4rem; display: flex; flex-direction: column; gap: 2.2rem; }
.tl-item { position: relative; }
.tl-item::before {
  content: ''; position: absolute; left: calc(-2.4rem - 5px); top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 166, 72, 0.15);
}
.tl-year {
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-soft);
  display: block; margin-bottom: 0.3rem;
}
.tl-item p { color: var(--muted); }

.practice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2rem; }
.practice-card { border: 1px solid var(--line); padding: 1.8rem 1.5rem; transition: border-color 0.4s, transform 0.4s var(--ease); }
.practice-card:hover { border-color: var(--gold-dim); transform: translateY(-6px); }
.practice-card h3 { font-size: 1.25rem; margin-bottom: 0.7rem; color: var(--gold-soft); }
.practice-card p { font-size: 0.88rem; margin: 0; }

.cred-list { list-style: none; display: flex; flex-direction: column; }
.cred-list li {
  display: flex; gap: 1.6rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(201, 166, 72, 0.1);
  color: var(--ivory); font-size: 0.98rem;
}
.cred-list li span {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); min-width: 7.5rem;
}

/* ============ Contact page ============ */

.contact-hero {
  position: relative; overflow: hidden; padding: 10rem 2rem 5rem; text-align: center;
  background: radial-gradient(110% 90% at 50% 0%, #13294a 0%, var(--navy) 55%, var(--ink) 100%);
}
.contact-hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.contact-hero .hero-eyebrow { justify-content: center; }
.contact-hero .hero-sub { margin: 0 auto; }

.contact-body { padding: 5rem 2rem 7rem; }
.contact-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem;
}
.contact-form {
  border: 1px solid var(--line); padding: 2.6rem;
  background: linear-gradient(160deg, rgba(18, 38, 66, 0.45), rgba(9, 21, 39, 0.25));
  display: flex; flex-direction: column; gap: 1.4rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form label {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(6, 15, 30, 0.7); border: 1px solid rgba(154, 171, 196, 0.25);
  color: var(--ivory); font-family: var(--sans); font-size: 1rem; font-weight: 300;
  padding: 0.85rem 1rem; transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form .btn { align-self: flex-start; }
.form-status { color: var(--gold-soft); font-family: var(--serif); font-style: italic; font-size: 1.05rem; min-height: 1.5em; }

.contact-aside { display: flex; flex-direction: column; gap: 1.2rem; }
.aside-card { border: 1px solid var(--line); padding: 1.8rem; }
.aside-card h3 { font-size: 1.2rem; color: var(--gold-soft); margin-bottom: 0.6rem; }
.aside-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ Plain page ============ */

.plain-page { padding: 10rem 2rem 6rem; min-height: 60vh; }
.plain-inner { max-width: 760px; margin: 0 auto; }
.plain-title { font-size: 2.6rem; margin-bottom: 2rem; }
.plain-content p { color: var(--muted); margin-bottom: 1.2rem; }

/* ============ Footer ============ */

.site-footer {
  position: relative; background: var(--ink);
  border-top: 1px solid var(--line); overflow: hidden;
}
.footer-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 240px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(201, 166, 72, 0.08), transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 4.5rem 2rem 3rem;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4rem;
}
.footer-logo { height: 84px; width: auto; margin-bottom: 1.4rem; }
.footer-tag { color: var(--muted); font-size: 0.95rem; max-width: 22rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col h4 {
  font-family: var(--sans); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem;
}
.footer-col a, .footer-col span { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--ivory); }
.footer-addr { margin-top: 0.6rem; font-size: 0.82rem !important; }
.footer-base {
  border-top: 1px solid rgba(201, 166, 72, 0.1);
  padding: 1.6rem 2rem; text-align: center;
}
.footer-base p { color: rgba(154, 171, 196, 0.7); font-size: 0.8rem; }
.footer-base a { color: var(--gold-soft); }
.footer-base a:hover { color: var(--ivory); }
.footer-note { margin-top: 0.4rem; font-size: 0.72rem !important; }

/* ============ Reveal animations ============ */

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow, .hero-actions { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-books { max-width: 640px; margin: 0 auto; width: 100%; }
  .book-grid { grid-template-columns: 1fr; gap: 4.5rem; max-width: 480px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .author-band-inner, .book-hero-inner, .author-hero-inner { grid-template-columns: 1fr; }
  .author-figure { max-width: 420px; margin: 0 auto; }
  .book-hero-cover { display: flex; justify-content: center; }
  .author-hero-inner { text-align: center; }
  .author-hero .hero-eyebrow { justify-content: center; }
  .author-hero-figure { display: flex; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 105;
    background: rgba(6, 15, 30, 0.98);
    flex-direction: column; justify-content: center; gap: 2rem;
    opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
  }
  .site-nav.open { opacity: 1; visibility: visible; }
  .site-nav > a, .nav-books-toggle { font-size: 1rem; }
  .nav-dropdown {
    position: static; transform: none; min-width: 0; border: none; box-shadow: none;
    background: transparent; opacity: 1; visibility: visible; display: none; text-align: center;
  }
  .nav-books.open .nav-dropdown { display: block; transform: none; }
  .nav-books { text-align: center; }
  .author-stats { grid-template-columns: repeat(2, 1fr); }
  .book-stats { flex-wrap: wrap; gap: 1.8rem; }
  .pillar-grid { grid-template-columns: 1fr; }
  .practice-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bas-inner { flex-direction: column; text-align: center; }
  .book-nav { grid-template-columns: 1fr; }
  .book-nav-link.next { border-left: none; border-top: 1px solid var(--line); text-align: left; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
  .hero-books { height: 320px; }
  .cred-list li { flex-direction: column; gap: 0.3rem; }
}
