/* =========================================================
   Perfect Vision Method
   Editorial / Cinematic Redesign — May 2026
   ========================================================= */

:root {
  /* ---- Palette ---- */
  --navy:        #0B1626;
  --navy-2:      #142136;
  --navy-soft:   #1F2F4A;
  --ink:         #0F1115;
  --muted:       #5A5F66;
  --muted-2:     #8A8F96;
  --line:        #E2DACA;
  --cream:       #F6F1E7;
  --cream-deep:  #ECE4D2;
  --cream-warm:  #F9F4EA;
  --white:       #FFFFFF;
  --gold:        #C9A55E;
  --gold-soft:   #E0C994;
  --gold-deep:   #9C7E3F;

  /* Foil gradient */
  --foil: linear-gradient(105deg,
            #8C6F33  0%,
            #C9A55E 18%,
            #F4E2A6 35%,
            #E0C994 52%,
            #C9A55E 68%,
            #F4E2A6 82%,
            #8C6F33 100%);

  /* ---- Type ---- */
  --display: "Instrument Serif", "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- Rhythm ---- */
  --max:      1280px;
  --max-wide: 1480px;
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --radius:   2px;

  /* ---- Motion ---- */
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================
   1. Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Fine grain texture overlay — universal */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; border: 0; background: none; padding: 0; }
ul { list-style: none; padding: 0; margin: 0; }

a:focus, button:focus { outline: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* =========================================================
   2. Typography
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.6em;
}
h4 { font-weight: 600; } /* keep small eyebrow-style h4 in body sans */
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; }
h4 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}
p  { margin: 0 0 1em; }

em { font-style: normal; } /* default upright — modern look; opt in via .italic */

.display-serif { font-family: var(--display); }

.eyebrow {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow--centered { justify-content: center; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.55;
}

/* Foil text — applies a moving metallic gradient to gold accents */
.foil {
  color: var(--gold); /* fallback */
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: foilShift 16s ease-in-out infinite;
}
@keyframes foilShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* =========================================================
   3. Layout primitives
   ========================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: var(--max-wide); }
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--dark { background: var(--navy); color: var(--cream); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink h2,
.section--ink h3 { color: var(--cream); }

/* Drawable divider line (animated by JS / scroll) */
.rule {
  display: block;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
  transform-origin: left center;
}
.rule--gold { background: var(--gold); width: 60px; }

/* =========================================================
   4. Scroll progress
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 100;
  pointer-events: none;
  transition: width 80ms linear;
}

/* =========================================================
   5. Header / nav
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition:
    background .45s var(--ease),
    backdrop-filter .45s var(--ease),
    border-color .45s var(--ease),
    height .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(246, 241, 231, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header.is-over-dark:not(.is-scrolled) {
  color: var(--cream);
}
.site-header.is-over-dark:not(.is-scrolled) .brand,
.site-header.is-over-dark:not(.is-scrolled) .nav-links a { color: var(--cream); }
.site-header.is-over-dark:not(.is-scrolled) .menu-toggle span { background: var(--cream); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-header.is-scrolled .nav { height: 68px; transition: height .35s var(--ease); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform .6s var(--ease);
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--gold);
  border-radius: 50%;
}
.brand:hover .brand-mark { transform: rotate(180deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 0.4rem 0;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 84px 0 auto 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter) 3rem;
    gap: 1.4rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - 90px));
    transition: transform .4s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.6rem; font-family: var(--display); }
  .nav-links a::after { display: none; }
}

/* Spacer so first section isn't hidden under fixed header */
.header-spacer { height: 84px; }

/* =========================================================
   6. Buttons (with magnetic hover)
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--cream); }
.btn--primary:hover { color: var(--navy); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { color: var(--navy); border-color: var(--gold); }

.btn--light { background: var(--cream); color: var(--navy); }
.btn--light:hover { color: var(--navy); }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold::before { background: var(--navy); }
.btn--gold:hover { color: var(--gold-soft); }

.btn--lg { padding: 1.15rem 2.1rem; font-size: 0.9rem; }

.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Magnetic dot (subtle) — used inline next to text links */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  padding-bottom: 0.35rem;
}
.link-arrow::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--navy);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform .5s var(--ease);
}
.link-arrow:hover::after { transform-origin: left; transform: scaleX(0); }

/* =========================================================
   7. Hero — cinematic
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 84px;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

/* Animated mesh / glow background */
.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__backdrop::before,
.hero__backdrop::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.hero__backdrop::before {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(201,165,94,0.45), transparent 65%);
  top: -10vw;
  left: -10vw;
  animation: floatA 22s ease-in-out infinite;
}
.hero__backdrop::after {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(31,47,74,0.9), transparent 65%);
  bottom: -10vw;
  right: -5vw;
  animation: floatB 26s ease-in-out infinite;
}
@keyframes floatA {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(6vw, 4vw) scale(1.08); }
}
@keyframes floatB {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(-6vw, -3vw) scale(1.12); }
}

/* Mouse-following gold light (set by JS) */
.hero__cursor-light {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,226,166,0.18) 0%, rgba(201,165,94,0.08) 30%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity .4s var(--ease);
  opacity: 0;
  mix-blend-mode: screen;
}
.hero:hover .hero__cursor-light { opacity: 1; }

/* Hero grid layout */
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__copy { max-width: 720px; }
.hero__title {
  color: var(--cream);
  font-size: clamp(3rem, 8.5vw, 7.2rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 1.6rem;
}
.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(2deg);
  transform-origin: bottom left;
  will-change: transform, opacity;
}
.hero__title.is-in .word {
  animation: wordRise 1.1s var(--ease-out) forwards;
}
.hero__title.is-in .word:nth-child(1) { animation-delay: 0.10s; }
.hero__title.is-in .word:nth-child(2) { animation-delay: 0.20s; }
.hero__title.is-in .word:nth-child(3) { animation-delay: 0.30s; }
.hero__title.is-in .word:nth-child(4) { animation-delay: 0.40s; }
.hero__title.is-in .word:nth-child(5) { animation-delay: 0.50s; }
.hero__title.is-in .word:nth-child(6) { animation-delay: 0.60s; }
.hero__title.is-in .word:nth-child(7) { animation-delay: 0.70s; }
.hero__title.is-in .word:nth-child(8) { animation-delay: 0.80s; }
@keyframes wordRise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.hero__title em {
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(246, 241, 231, 0.78);
  max-width: 52ch;
  margin-bottom: 2.4rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out) 0.9s, transform 1s var(--ease-out) 0.9s;
}
.hero.is-in .hero__sub { opacity: 1; transform: none; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out) 1.05s, transform 1s var(--ease-out) 1.05s;
}
.hero.is-in .hero__cta { opacity: 1; transform: none; }

.hero__cta .btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.hero__cta .btn--primary::before { background: var(--cream); }
.hero__cta .btn--ghost {
  color: var(--cream);
  border-color: rgba(246,241,231,0.4);
}
.hero__cta .btn--ghost:hover { color: var(--navy); border-color: var(--gold); }

/* Hero book trio */
.hero__books {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 1.2rem;
  perspective: 1400px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out) 0.4s, transform 1.2s var(--ease-out) 0.4s;
}
.hero.is-in .hero__books { opacity: 1; transform: none; }
.hero__book {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.55),
    0 12px 24px -10px rgba(0,0,0,0.35);
  transform-style: preserve-3d;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.hero__book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 1.4s var(--ease);
}
.hero__book:hover img { transform: scale(1.06); }
.hero__book--1 { grid-column: 1; grid-row: 1; transform: translateY(8%) rotate(-3deg); }
.hero__book--2 { grid-column: 2; grid-row: 1 / span 2; transform: translateY(0) rotate(0deg); align-self: center; }
.hero__book--3 { grid-column: 3; grid-row: 1; transform: translateY(20%) rotate(3deg); }
.hero__book--4 {
  grid-column: 1 / span 3;
  grid-row: 2;
  width: 60%;
  margin-inline: auto;
  transform: translateY(-22%) rotate(-1deg);
  display: none;
}
@media (min-width: 1100px) {
  .hero__book--4 { display: block; }
}

.hero__book::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.6);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, transparent, var(--gold-soft));
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::before {
  content: '';
  position: absolute;
  width: 1px;
  height: 50%;
  background: var(--gold);
  animation: scrollDrip 2.4s ease-in-out infinite;
}
@keyframes scrollDrip {
  0%   { top: -50%; }
  100% { top: 100%; }
}

@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: left;
    padding-top: 2rem;
  }
  .hero__books { max-width: 480px; }
  .hero__scroll { display: none; }
}

/* =========================================================
   8. Marquee — kinetic ticker
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.2rem, 2vw, 1.8rem);
  border-block: 1px solid var(--line);
  background: var(--cream);
}
.section--dark + .marquee,
.hero + .marquee {
  border-top: 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 38s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  white-space: nowrap;
}
.marquee__item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* =========================================================
   9. Section title pattern (big numbered)
   ========================================================= */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head__num {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.section-head__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}
.section-head__meta {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* =========================================================
   10. Statement / pull quote section
   ========================================================= */
.statement {
  position: relative;
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--cream-warm);
  overflow: hidden;
}
.statement__inner {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.statement__quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.statement__quote em {
  font-style: normal;
}
.statement__attr {
  margin-top: 2rem;
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.statement__attr::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--gold);
}
.statement__mark {
  position: absolute;
  top: -3rem;
  left: var(--gutter);
  font-family: var(--display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--gold-soft);
  opacity: 0.35;
  line-height: 1;
  pointer-events: none;
}

/* Words highlight on scroll (set by JS) */
.statement__quote .w {
  transition: color .8s var(--ease), opacity .8s var(--ease);
  color: rgba(11, 22, 38, 0.18);
}
.statement__quote .w.is-on {
  color: var(--navy);
}

/* =========================================================
   11. Books — editorial grid + cards
   ========================================================= */
.books-section {
  background: var(--cream);
}

.books-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: 2rem;
}

.book-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.book-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.book-row--reverse { grid-template-columns: 1fr 380px; }
.book-row--reverse .book-row__visual { order: 2; }

.book-row__visual {
  position: relative;
  perspective: 1400px;
}
.book-row__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  box-shadow:
    0 40px 80px -25px rgba(11,22,38,0.4),
    0 14px 32px -16px rgba(11,22,38,0.25);
  transition: transform 1s var(--ease);
  will-change: transform;
}
.book-row__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 1.4s var(--ease);
}
.book-row__cover:hover { transform: translateY(-6px); }
.book-row__cover:hover img { transform: scale(1.06); }
.book-row__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(244, 226, 166, 0.22) 45%,
    transparent 60%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 1.5s var(--ease);
  pointer-events: none;
}
.book-row__cover:hover::after { background-position: -100% 0; }

.book-row__visual-frame {
  position: absolute;
  inset: -22px;
  border: 1px solid var(--line);
  z-index: -1;
  transform-origin: bottom right;
  transition: transform .8s var(--ease);
}
.book-row__cover:hover ~ .book-row__visual-frame { transform: translate(8px, -8px); }

.book-row__num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.book-row__label {
  font-family: var(--body);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.book-row__title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.book-row__hook {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  color: var(--navy);
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  line-height: 1.35;
}
.book-row__desc {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 1.5rem;
  max-width: 58ch;
}
.book-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-block: 1.5rem 2rem;
  font-family: var(--body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.book-row__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.book-row__meta-item span {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.book-row__meta-item strong {
  font-weight: 500;
  color: var(--navy);
}

@media (max-width: 880px) {
  .book-row,
  .book-row--reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .book-row--reverse .book-row__visual { order: 0; }
  .book-row__visual { max-width: 320px; margin-inline: auto; }
}

/* Books homepage grid (4-up compact) */
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
  margin-top: 2rem;
}
.book-card {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.book-card__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: 0 28px 50px -22px rgba(11,22,38,0.5);
  transition: transform .9s var(--ease);
  will-change: transform;
}
.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transition: transform 1.4s var(--ease);
}
.book-card:hover .book-card__cover { transform: translateY(-8px); }
.book-card:hover .book-card__cover img { transform: scale(1.07); }
.book-card__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 30%,
    rgba(244, 226, 166, 0.24) 50%,
    transparent 70%);
  background-size: 220% 100%;
  background-position: 100% 0;
  transition: background-position 1.6s var(--ease);
  pointer-events: none;
}
.book-card:hover .book-card__cover::after { background-position: -120% 0; }
.book-card__num {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.book-card__title {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.book-card__excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}
.book-card__link {
  align-self: flex-start;
}

@media (max-width: 960px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .books-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   12. Author / cinematic video band
   ========================================================= */
.author-cinema {
  position: relative;
  min-height: clamp(560px, 75vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
}
.author-cinema__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}
.author-cinema__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201,165,94,0.18), transparent 55%),
    linear-gradient(180deg, rgba(11,22,38,0.42), rgba(11,22,38,0.78) 70%, rgba(11,22,38,0.92));
}
.author-cinema__inner {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 920px;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  color: var(--cream);
}
.author-cinema__inner .eyebrow { color: var(--gold-soft); }
.author-cinema__inner .eyebrow::before { background: var(--gold-soft); }
.author-cinema__inner h1,
.author-cinema__inner h2 {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin-bottom: 1.4rem;
}
.author-cinema__inner h1 { font-size: clamp(3rem, 9vw, 6.5rem); }
.author-cinema__inner p {
  color: rgba(246, 241, 231, 0.85);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  max-width: 58ch;
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .author-cinema__media { display: none; }
}

/* =========================================================
   13. Stats / numbers
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 2rem;
}
.stat {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.stat__num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  line-height: 1;
  color: var(--navy);
  display: block;
  margin-bottom: 0.4rem;
  font-feature-settings: "lnum" 1;
}
.section--dark .stat,
.section--ink .stat,
.author-cinema .stat,
.newsletter .stat { border-top-color: rgba(246, 241, 231, 0.18); }
.section--dark .stat__num,
.section--ink .stat__num,
.author-cinema .stat__num,
.newsletter .stat__num { color: var(--cream); }
.stat__label {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .stat__label,
.section--ink .stat__label,
.author-cinema .stat__label,
.newsletter .stat__label { color: rgba(246, 241, 231, 0.6); }

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   14. Tags / chapters
   ========================================================= */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.tag {
  display: inline-flex;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
  transition: all .35s var(--ease);
}
.tag:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

/* =========================================================
   15. Newsletter — animated
   ========================================================= */
.newsletter {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.newsletter::before {
  content: '';
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 45% at 18% 28%, rgba(201, 165, 94, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 50% at 82% 72%, rgba(201, 165, 94, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 35% at 68% 18%, rgba(224, 201, 148, 0.12), transparent 55%),
    radial-gradient(ellipse 35% 40% at 28% 82%, rgba(31, 47, 74, 0.6), transparent 60%);
  animation: meshDrift 48s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(-4%, 2%) rotate(0.5deg); }
  50%      { transform: translate(3%, -3%) rotate(-0.4deg); }
  75%      { transform: translate(-2%, 3%) rotate(0.3deg); }
}
.newsletter__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.newsletter h2 { color: var(--cream); margin-bottom: 1rem; max-width: 14ch; }
.newsletter p { color: rgba(246, 241, 231, 0.78); }

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  background: var(--cream);
  padding: 0.45rem;
  align-items: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--ink);
  outline: none;
}
.newsletter-form input[type="email"]::placeholder { color: var(--muted); }
.newsletter-form button {
  background: var(--navy);
  color: var(--cream);
  padding: 0.95rem 1.4rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.newsletter-form button:hover { background: var(--gold); color: var(--navy); }
.newsletter__note {
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.55);
  margin-top: 0.9rem;
}
.newsletter__success {
  display: none;
  margin-top: 1rem;
  padding: 0.95rem 1.1rem;
  background: rgba(201, 165, 94, 0.14);
  border-left: 2px solid var(--gold);
  color: var(--gold-soft);
  font-size: 0.95rem;
}
.newsletter__success.is-visible { display: block; }

@media (max-width: 820px) {
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; padding: 0.6rem; }
  .newsletter-form input[type="email"] { width: 100%; padding: 1rem; }
  .newsletter-form button { width: 100%; padding: 1rem; }
}

/* =========================================================
   16. Page hero (interior pages)
   ========================================================= */
.page-hero {
  padding-top: 144px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  text-align: left;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: end;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 0;
  letter-spacing: -0.025em;
  line-height: 1;
}
.page-hero__desc {
  max-width: 50ch;
  color: var(--muted);
  font-size: 1.1rem;
  align-self: end;
}

/* =========================================================
   17. About page bio
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-grid__lead {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0;
}
.about-grid__body p {
  font-size: 1.04rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.about-grid__body p:first-child::first-letter {
  font-family: var(--display);
  font-size: 4.2rem;
  float: left;
  line-height: 0.92;
  margin: 0.04em 0.12em 0 0;
  color: var(--gold);
  font-weight: 500;
}
.about-chapters {
  margin-top: clamp(3rem, 5vw, 5rem);
}
.about-chapter {
  display: grid;
  grid-template-columns: 80px 200px 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: baseline;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}
.about-chapter__num {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
}
.about-chapter__title {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--navy);
  line-height: 1.1;
  margin: 0;
}
.about-chapter__desc {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-chapter { grid-template-columns: 1fr; gap: 0.3rem; padding-block: 1.4rem; }
}

/* =========================================================
   18. Footer
   ========================================================= */
.site-footer {
  background: var(--navy);
  color: rgba(246, 241, 231, 0.78);
  padding: clamp(4rem, 6vw, 6rem) 0 1.6rem;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(246, 241, 231, 0.12);
  margin-bottom: 3rem;
}
.footer-cta h2 {
  color: var(--cream);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}
.footer-grid h4 {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  margin-bottom: 1.2rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.6rem; }
.footer-grid a {
  color: rgba(246, 241, 231, 0.75);
  font-size: 0.94rem;
  transition: color .25s var(--ease);
}
.footer-grid a:hover { color: var(--gold); }
.footer-brand .brand { color: var(--cream); margin-bottom: 1.1rem; }
.footer-brand p { font-size: 0.93rem; max-width: 32ch; }
.socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(246, 241, 231, 0.2);
  border-radius: 50%;
  transition: all .3s var(--ease);
}
.socials a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-3px);
}
.socials svg { width: 16px; height: 16px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.5);
}
@media (max-width: 860px) {
  .footer-cta { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
}

/* =========================================================
   19. Reveal on scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Mask reveal — clip-path animation */
.reveal-mask {
  position: relative;
  overflow: hidden;
}
.reveal-mask::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream);
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 1.2s var(--ease-out);
}
.section--dark .reveal-mask::after { background: var(--navy); }
.reveal-mask.is-visible::after { transform: scaleX(0); }

/* =========================================================
   20. Preloader / curtain
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity .6s var(--ease) 0.3s, visibility 0s 0.9s;
}
.preloader__mark {
  width: 60px; height: 60px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  position: relative;
  animation: pulse 1.6s var(--ease) infinite;
}
.preloader__mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50%      { transform: scale(1.1); opacity: 1; }
}
body.is-loaded .preloader {
  opacity: 0;
  visibility: hidden;
}

/* =========================================================
   21. Cursor (custom, optional pointer)
   ========================================================= */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 99;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  mix-blend-mode: difference;
  display: none;
}
.cursor--ring {
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--gold);
  transition: transform .35s var(--ease);
}
.cursor.is-hover { transform: translate(-50%, -50%) scale(1.6); }
.cursor--ring.is-hover { transform: translate(-50%, -50%) scale(1.4); opacity: 0.6; }

/* Only hide the system cursor once JS has marked the body as ready */
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor .cursor { display: block; }
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor input { cursor: none; }
}

/* =========================================================
   22. Accessibility — reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-mask::after { transform: scaleX(0); }
  .author-cinema__media { display: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .cursor { display: none; }
  body { cursor: auto; }
}

/* =========================================================
   23. Print
   ========================================================= */
@media print {
  body::after, .preloader, .site-header, .marquee, .author-cinema__media,
  .newsletter, .scroll-progress, .cursor { display: none !important; }
}
