:root { --radius: 0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: #000000;     /* black page background */
  color: #fff;             /* default text color on black */
  overflow-x: hidden;
}

/* === HERO CONTAINER (full width) === */
.hero {
  position: relative;
  width: 100vw;              /* full-bleed */
  height: 75vh;              /* hero height */
  min-height: 600px;         /* minimum height fallback */
  border-radius: var(--radius);
  overflow: hidden;          /* clip collage to the rectangle */
  background: #ffffff;       /* white hero background */
  isolation: isolate;        /* contain z-index effects */
  color: #fff;               /* keep hero text white over images */
}

/* Top overlay vignette using inset shadow (sits above all) */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 99;               /* above content and collage */
  pointer-events: none;      /* allow interactions below */
  /* multiple inset shadows for a smooth vignette */
  box-shadow:
    inset 0 0 120px rgba(0,0,0,0.9),
    inset 0 0 260px rgba(0,0,0,.5),
    inset 0 0 480px rgba(0,0,0,.30);
  /* transparent element; only shadows render */
  background: transparent;
}

/* Lower white vignette layer (sits beneath black) */
.hero__vignette--white {
  z-index: 98;
  background: white;
  opacity: 0.75;
}

/* Content container above vignette and collage */
.hero__content {
  position: absolute;
  inset: 0;
  z-index: 100;             /* above vignette (99) */
  pointer-events: auto;     /* interactive */
  display: grid;
  place-items: center;      /* vertically center inner */
  color: #000;              /* hero text in black */
}
.hero__content-inner {
  width: 100%;
  max-width: 1200px;        /* standard container width */
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto; /* text uses remaining space, book auto-sizes */
  align-items: center;
  gap: clamp(16px, 4vw, 48px);
  margin-top: -6vh;         /* raise content slightly above center */
}
.hero__copy { max-width: 60ch; margin-top: -2vh; }
.hero__media { justify-self: end; --media-offsetY: 10%; transform: translateY(var(--media-offsetY)); }
.hero__book {
  width: min(560px, 42vw);
  max-width: 100%;
  height: auto;
  display: block;
  transform: rotate(6deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 36px 80px rgba(0,0,0,.6))
          drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
.hero__video {
  position: relative;
  width: min(560px, 42vw);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, .6),
    0 8px 24px rgba(0, 0, 0, .35);
}
@media (max-width: 960px) {
  .hero__content-inner {
    grid-template-columns: 1fr;   /* stack */
    text-align: center;
    margin-top: -3vh;
  }
  .hero__copy { justify-self: center; margin-top: -1vh; }
  .hero__media { justify-self: center; }
  .hero__book { width: min(520px, 65vw); }
  .hero__video { width: min(520px, 65vw); }
}
.hero__title {
  font-size: clamp(34px, 6.8vw, 88px);
  line-height: 0.95;
  margin: 0 0 .25em;
  font-weight: 800;
  text-shadow: 2px 2px 0 #fff; /* hard white drop shadow */
}
.hero__title .title-line { display: block; }
.hero__title .title-was { white-space: nowrap; }
.hero__sub {
  font-size: clamp(16.32px, 2.35vw, 20.4px); margin: 0 0 1.5em; opacity: .9;
  line-height: 1.3;
}
.hero__sub--eyebrow {
  font-size: clamp(13px, 1.6vw, 15px);
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .85;
  margin-bottom: .6em;
}
.hero__cta {
  appearance: none; border: 0; border-radius: 999px; padding: 14.4px 21.6px; font-weight: 700;
  font-size: 1.2em;
  background: #111; color: #fff; cursor: pointer;
  box-shadow: 2px 2px 0 #fff; /* hard white drop shadow */
}

/* Hero stats row */
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
  margin: 0 0 1.4em;
}
.hero-stat {
  background: radial-gradient(circle at top left, rgba(0,0,0,0.9), #111);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.16);
  position: relative;
  overflow: hidden;
}
.hero-stat::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 55%);
  opacity: .9;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-stat__number {
  position: relative;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-stat__label {
  position: relative;
  margin: 0;
  font-size: clamp(11px, 1.5vw, 13px);
  line-height: 1.4;
  opacity: .86;
}
@media (max-width: 900px) {
  .hero__stats {
    grid-template-columns: 1fr;
  }
}

/* === COLLAGE LAYER === */
.hero__collage {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;   /* clicks go through */
}

/* A single clipping rectangle */
.clip {
  position: absolute;
  /* Custom properties (percentages relative to hero size) */
  --x: 0;          /* left position in % of hero width (center anchor) */
  --y: 0;          /* top position in % of hero height (center anchor) */
  --w: 24;         /* width in % of hero width */
  --r: 0deg;       /* rotation */

  left: calc(var(--x) * 1%);
  top:  calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  aspect-ratio: var(--ratio, 4 / 3); /* image-driven when provided */
  transform: translate(-50%, -50%) rotate(var(--r));
  border-radius: 0;               /* square corners on all clips */
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
  opacity: .96;
  touch-action: none;
  z-index: 0;
  will-change: transform, opacity;
}
.clip--fg { z-index: 1; }

/* Image element fills the clip without cropping */
.clip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  border-radius: inherit;
  user-select: none; pointer-events: none;
  display: block;
  will-change: transform, opacity;
}

@media (max-width: 700px) {
  .hero { height: 80vh; }
}

/* Phone (<= 600px) */
@media (max-width: 600px) {
  .hero { height: 60vh; }
  /* Hide collage clippings on phones */
  .hero__collage { display: none; }

  /* Stack with book first, then text */
  .hero__content-inner { margin-top: 0; }
  .hero__media { order: 1; --media-offsetY: -6%; transform: none; justify-self: center; }
  .hero__copy { order: 2; margin-top: 12px; }
  .hero__book { width: min(300px, 70vw); }
  .hero__video { width: min(360px, 86vw); }
}

/* === HERO SCENE (replacement hero) === */
.hero--scene {
  --scene-title: #ce2424;
  height: auto;
  min-height: 0;
  background-color: #000;
  background-image: url("../images/scene-assets/slate texture.jpg");
  background-size: 1024px 1024px;
  background-position: 0 0;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scene {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
}

.scene {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, 1400px);
  height: auto;
  background: transparent;
}

.scene > * {
  position: absolute;
  box-sizing: border-box;
}

@keyframes photoIn {
  from {
    opacity: 0;
    transform: rotate(calc(var(--rot, 0deg) - 4deg)) scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) scale(0.96);
  }
}

.board-item {
  z-index: 2;
  transform: rotate(var(--rot, 0deg)) scale(0.96);
  transform-origin: 50% 50%;
  opacity: 0;
  animation: photoIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.board-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  z-index: 3;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.board-bg,
.board-inner,
.board-overlay {
  position: absolute;
  left: 3.63%;
  top: 8.74%;
  width: 92.7%;
  height: 87.96%;
}

.board-bg {
  z-index: 0;
  background: var(--board-bg, #4a4a4a);
}

.board-inner {
  object-fit: cover;
  z-index: 1;
}

.board-overlay {
  object-fit: cover;
  mix-blend-mode: color-burn;
  z-index: 2;
  pointer-events: none;
}

.string-map {
  z-index: 1;
  pointer-events: none;
}

.scene-title,
.scene-subtitle {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 6px 0 #000, 0 18px 32px #000;
  font-family: "Roboto Condensed", "Helvetica Neue Condensed", "Arial Narrow Bold", "Arial Narrow", Impact, Haettenschweiler, sans-serif;
  user-select: none;
  z-index: 3;
}

.scene-title {
  color: var(--scene-title);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.95;
  white-space: nowrap;
}

.scene-subtitle {
  color: #f9f2e1;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.1;
  max-width: 90%;
  white-space: normal;
}

/* === HERO RECAP SECTION (moved from old hero) === */
.section--hero-recap {
  background: radial-gradient(circle at top, #1a1a1a 0%, #000 60%);
  color: #fff;
  padding-top: clamp(18px, 3.75vw, 42px);
  padding-bottom: clamp(21px, 4.5vw, 54px);
}

.hero-recap__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 560px);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.hero-recap__eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(12px, 1.3vw, 14px);
  color: rgba(255, 255, 255, 0.72);
}

.section--hero-recap .hero__title {
  margin: 0;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.hero-recap__media {
  justify-self: end;
}

.hero-video-note {
  margin: 34px 0 0;
  text-align: center;
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.05;
  color: #f8e2bb;
  transform: rotate(-2.5deg);
  transform-origin: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.hero-video-note__click {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 960px) {
  .hero--scene {
    min-height: 0;
    height: auto;
  }

  .hero-recap__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-recap__media {
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .hero--scene {
    min-height: 0;
    height: auto;
  }
}


/* === NAVBAR === */
.site-nav { 
  width: 100%;
  background: rgba(0, 0, 0, 0.9); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff; 
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  height: 60px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.site-nav__inner { max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 28px; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  transition: color 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: #000;
  background: #fff;
  opacity: 1;
  text-decoration: none;
}
.site-nav__mobile {
  display: none;
}

/* === NEW SECTIONS === */
.section {
  width: 100%;
  padding: clamp(24px, 4.5vw, 72px) clamp(16px, 5vw, 48px);
}

/* === PHOTO STACK SECTION === */
.section--photo-stack {
  background: #000;
  color: #fff;
}
.photo-stack-grid {
  display: grid;
  grid-template-columns: 3fr 2fr; /* 60% / 40% equivalent */
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 32px);
}
.photo-stack-content h1 {
  margin: 0 0 0.6em;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #fff;
}
.book-hook {
  margin: 0 0 1em;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 600;
  font-style: italic;
}
.photo-stack-content p {
  margin: 0 0 1.2em;
  line-height: 1.6;
  font-size: clamp(15px, 1.9vw, 18px);
  color: #fff;
  opacity: 0.9;
}
.book-differentiators {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  font-size: clamp(15px, 1.9vw, 18px);
  line-height: 1.6;
}
.photo-container {
  position: relative;
  width: 100%;
  height: 900px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.photo {
  position: absolute;
  width: 280px;
  height: 350px;
  background: #fff;
  padding: 16px 16px 48px 16px;
  border-radius: 4px;
  box-shadow: 
    0 8px 25px rgba(0,0,0,0.35),
    0 3px 10px rgba(0,0,0,0.2);
  transform-origin: center bottom;
  opacity: 0;
  transform: translateY(-60px) scale(1.2);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.photo img {
  width: 100%;
  height: 266px;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
  display: block;
}
.photo .ce-card__image-stack {
  width: 100%;
  height: 266px;
  border-radius: 2px;
}
.photo .ce-card__svg {
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.photo .ce-card__overlay {
  opacity: 0.82;
}
.photo-1 {
  transform: translateY(-60px) scale(1.2);
  z-index: 1; /* Bottom photo - drops first */
  top: 0;
}
.photo-2 {
  transform: translateY(-60px) scale(1.2);
  z-index: 2; /* Second photo */
  top: 21.875%; /* 175px equivalent */
}
.photo-3 {
  transform: translateY(-60px) scale(1.2);
  z-index: 3; /* Third photo */
  top: 43.75%; /* 350px equivalent */
}
.photo-4 {
  transform: translateY(-60px) scale(1.2);
  z-index: 4; /* Top photo - drops last */
  top: 65.625%; /* 525px equivalent */
}
/* Animation states with baked-in rotations */
.photo.dropped {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.photo-1.dropped {
  transform: translateY(0) scale(1) rotate(4deg);
}
.photo-2.dropped {
  transform: translateY(0) scale(1) rotate(-5deg);
}
.photo-3.dropped {
  transform: translateY(0) scale(1) rotate(6deg);
}
.photo-4.dropped {
  transform: translateY(0) scale(1) rotate(-3deg);
}
/* Responsive adjustments */
@media (max-width: 900px) {
  .photo-stack-grid {
    grid-template-columns: 1fr;
    gap: clamp(24px, 4vw, 40px);
  }
  .photo-stack-animation {
    order: 1;
  }
  .photo-stack-content {
    order: 2;
    text-align: center;
  }
  .photo-container {
    height: 700px;
  }
  .photo {
    width: 220px;
    height: 280px;
  }
  .photo img {
    height: 208px;
  }
  .photo .ce-card__image-stack {
    height: 208px;
  }
}
@media (max-width: 600px) {
  .section--photo-stack .photo-stack-animation {
    display: none;
  }
}
/* Offset anchor targets for sticky nav */
.hero, .section { scroll-margin-top: 72px; }
.section h1 {
  margin: 0 0 0.5em;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
}
.section--did-you-know {
  background: #000;
  color: #fff;
}
.section--for-amy {
  color: #000;
  background-image: url('../images/crumpled-paper-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.for-amy__header {
  max-width: 760px;
  margin: 0 0 1.8em;
}
.for-amy__eyebrow {
  margin: 0 0 .25em;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.for-amy__header h1 {
  margin: 0 0 .3em;
  font-size: clamp(30px, 4.8vw, 50px);
}
.for-amy__lock-label {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .7;
}
.for-amy__shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.for-amy__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.92), rgba(0,0,0,0.96));
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
}
.for-amy__overlay-inner {
  max-width: 520px;
  padding: clamp(24px, 4vw, 32px);
  text-align: left;
}
.for-amy__overlay-title {
  margin: 0 0 .4em;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
}
.for-amy__overlay-text {
  margin: 0 0 1.4em;
  line-height: 1.6;
  font-size: 15px;
  opacity: .9;
}
.for-amy__form {
  display: grid;
  gap: 10px;
}
.for-amy__form-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  opacity: .8;
}
.for-amy__form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.for-amy__password {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.45);
  color: #fff;
  padding: 10px 14px;
  font-size: 15px;
}
.for-amy__password::placeholder {
  color: rgba(255,255,255,0.55);
}
.for-amy__submit {
  border-radius: 999px;
  border: 0;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  background: #fff;
  color: #000;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
.for-amy__hint {
  margin: 0;
  font-size: 12px;
  opacity: .8;
}
.for-amy__error {
  margin: 4px 0 0;
  min-height: 1em;
  font-size: 13px;
  color: #ffb3b3;
}
.for-amy__content {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  filter: blur(6px);
  transform: scale(1.01);
  transform-origin: center;
  transition: filter .4s ease, transform .4s ease;
}
.for-amy__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: flex-start;
}
.for-amy__video {
  display: grid;
  gap: 12px;
}
.for-amy__video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-image: url('../chapter 2 newspaper.jpg');
  background-size: cover;
  background-position: center;
  min-height: 220px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.for-amy__video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.15), rgba(0,0,0,0.78));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.for-amy__video-tag,
.for-amy__video-length {
  background: rgba(0,0,0,0.65);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}
.for-amy__video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  width: 70px;
  height: 70px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.9);
  color: #000;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}
.for-amy__video-icon {
  font-size: 26px;
  margin-right: -2px;
}
.for-amy__video-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.for-amy__video-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
.for-amy__letter {
  font-size: 15px;
  line-height: 1.7;
}
.for-amy__salutation {
  margin-top: 0;
}
.for-amy__list {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.for-amy__closing {
  margin-top: 1.6em;
  font-weight: 600;
}
.for-amy__shell.is-unlocked .for-amy__overlay {
  display: none;
}
.for-amy__shell.is-unlocked .for-amy__content {
  filter: none;
  transform: scale(1);
}
@media (max-width: 900px) {
  .for-amy__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .for-amy__overlay-inner {
    padding: 18px;
  }
  .for-amy__content {
    padding: 18px;
  }
}
.section--authors {
  color: #000;
  background-image: url('../images/crumpled-paper-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Authors layout */
.authors-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.author-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}
.author-text h2 { margin: 0 0 0.7em; font-size: clamp(20px, 2.8vw, 28px); font-weight: 800; }
.author-text p { margin: 0 0 0.9em; line-height: 1.6; font-size: clamp(14px, 1.8vw, 18px); }
.author-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.author-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: #111;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.author-social-btn i { font-size: 19px; line-height: 1; }
.author-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  background: #fff;
}
.author-social-btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}
.author-photo { width: 100%; display: grid; justify-items: center; }
.author-photo img { display: block; border-radius: 0; box-shadow: none; width: 300px; height: 414px; }
.polaroid { width: 328px; height: 462px; box-sizing: border-box; background: #fff; padding: 14px 14px 34px; border: 1px solid rgba(0,0,0,0.06); border-radius: 4px; box-shadow: 0 14px 32px rgba(0,0,0,.25), 0 6px 16px rgba(0,0,0,.12); transform: rotate(var(--tilt, 0deg)); display: inline-block; overflow: hidden; position: relative; }
.tilt-left { --tilt: -3deg; }
.tilt-right { --tilt: 3deg; }
@media (min-width: 901px) {
  .author-photo .polaroid { width: 328px; height: 462px; display: grid; place-items: center; }
  .author-photo .polaroid img { width: 300px; height: 414px; }
}
/* Phone breakpoint: smaller polaroids above headers */
@media (max-width: 600px) {
  .author-row { grid-template-columns: 1fr; }
  .author-photo { order: 1; }
  .author-text { order: 2; }
  .author-row .author-photo { margin-bottom: 14px; }
  .author-photo .polaroid { --tilt: 0deg; }
  .author-photo .polaroid { width: 262px; height: 370px; }
  .author-photo .polaroid img { width: 240px; height: 331px; }
}
@media (max-width: 900px) {
  .author-row { grid-template-columns: 1fr; }
}

/* Did You Know grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 36px);
  margin-top: clamp(12px, 2vw, 20px);
}
@media (max-width: 800px) {
  .facts-grid { grid-template-columns: 1fr; }
}
.fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
}
.fact__icon {
  grid-row: 1 / span 2;
  font-size: 28px;
  line-height: 1;
  color: currentColor;
  opacity: 0.95;
}
.fact__title {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
}
.fact__text {
  margin: 0;
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.55;
  opacity: 0.9;
}

/* === PUBLISHER / AGENT CONTACT SECTION === */
.section--publisher-contact {
  color: #000;
  background-image: url('../images/crumpled-paper-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.publisher-contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* single column layout */
  gap: clamp(28px, 5vw, 32px);
  align-items: start;
  justify-items: center; /* center content within column */
  margin-top: clamp(16px, 2.5vw, 28px);
}
.contact-intro h1 {
  margin: 0 0 0.4em;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
}
.contact-intro p { 
  margin: 0 0 1em; 
  line-height: 1.6; 
  font-size: clamp(15px, 1.9vw, 18px);
  color: #111;
}
.contact-card {
  background: transparent; /* remove white background */
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: none; /* remove shadows */
  max-width: 760px;
  width: 100%;
}
.contact-intro { max-width: 760px; width: 100%; }
.contact-form {
  display: grid;
  gap: 14px;
}
.contact-form .field {
  display: grid;
  gap: 8px;
}
.contact-form label {
  font-weight: 800;
  font-size: 16px; /* slightly larger labels */
  letter-spacing: .01em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.4;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  background: #fff;
  color: #000;
  transition: box-shadow .2s ease, border-color .2s ease, transform .1s ease;
}
/* Dress up the dropdown (select) to avoid squished look */
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 48px; /* give it breathing room */
  padding-right: 44px; /* space for custom arrow */
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  cursor: pointer;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.contact-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.contact-submit {
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #fff; /* echo hero CTA style */
}
.contact-submit:hover { background: #333; transform: translateY(-1px); }
.contact-note { font-size: 13px; color: #333; opacity: .9; }

/* single column at all sizes */

/* Reusable CTA strip */
.section-cta {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 20px 30px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: radial-gradient(circle at top left, rgba(255,255,255,0.9), rgba(245,245,245,0.96));
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.section--photo-stack .section-cta,
.section--did-you-know .section-cta,
.section--market .section-cta,
.section--media .section-cta,
.section--reviews .section-cta {
  background: radial-gradient(circle at top left, rgba(24,24,24,0.98), #000);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.section-cta__text {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}
.section-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.section-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 1px 1px 0 #000;
  cursor: pointer;
}
.section-cta__btn--primary {
  background: #000;
  color: #fff;
}
@media (max-width: 700px) {
  .section-cta {
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === ANIMATED HEADER (hero title) === */
#changing-text {
  position: relative;
  display: inline-block;
}
#changing-text svg {
  pointer-events: none;
  overflow: visible;
  position: absolute;
  top: 0;
  z-index: 10;
}

/* === FOOTER === */
.site-footer {
  width: 100%;
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: clamp(20px, 4vw, 32px) clamp(16px, 5vw, 48px);
}
.site-footer__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.site-footer a { color: #fff; text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* === READER LIGHTBOX === */
.reader-lightbox[hidden] { display: none; }
.reader-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  color: #fff;
  z-index: 3000;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.reader-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}
.reader-title { font-weight: 800; font-size: clamp(16px, 2.2vw, 20px); opacity: 0.95; }
.reader-close {
  appearance: none; border: 0; border-radius: 6px; padding: 6px 10px; cursor: pointer;
  background: transparent; color: #fff; font-weight: 800; line-height: 1;
  font-size: clamp(28px, 4.5vw, 42px);
}
.reader-close:hover { opacity: .9; }
.reader-close:focus-visible { outline: 2px solid rgba(255,255,255,.6); outline-offset: 2px; }
.reader-body { position: relative; display: grid; grid-template-rows: 1fr auto; }
.br-viewport { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 2vh 4vw; }
.br-page {
  width: min(900px, 86vw);
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 12px 34px rgba(0,0,0,0.35);
  padding: clamp(16px, 3vw, 40px);
}
.br-page h2 { margin: 0 0 0.6em; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; }
.br-page p { margin: 0 0 1em; line-height: 1.7; font-size: clamp(15px, 1.9vw, 18px); }
.br-page ul, .br-page ol { padding-left: 1.2em; margin: 0 0 1em; }
.br-page ul.ul-disc { list-style: disc; }
.br-page ul.ul-circle { list-style: circle; }
.br-page ul.ul-square { list-style: square; }
.br-page ol.ol-decimal { list-style: decimal; }
.br-page ol.ol-lower-roman { list-style: lower-roman; }
.br-page ol.ol-upper-roman { list-style: upper-roman; }
.br-page ol.ol-lower-alpha { list-style: lower-alpha; }
.br-page ol.ol-upper-alpha { list-style: upper-alpha; }
/* Custom bullet styles */
.br-page ul.ul-dash, .br-page ul.ul-check { list-style: none; padding-left: 0; }
.br-page ul.ul-dash li, .br-page ul.ul-check li { position: relative; padding-left: 1.4em; }
.br-page ul.ul-dash li::before { content: '\2013'; /* en dash */ position: absolute; left: 0; color: #555; }
.br-page ul.ul-check li::before { content: '\2713'; /* check */ position: absolute; left: 0; color: #0aa37f; }
.br-controls { position: absolute; inset: 0; pointer-events: none; }
.br-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  pointer-events: auto; appearance: none; border: 0; background: rgba(255,255,255,0.92);
  color: #000; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.br-btn:hover { background: #fff; }
.br-prev { left: min(16px, 4vw); }
.br-next { right: min(16px, 4vw); }
.br-footer { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px; color: rgba(255,255,255,0.85); font-weight: 600; }
.br-page-indicator { font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .br-btn { width: 38px; height: 38px; }
  .reader-header { padding: 10px 12px; }
}

/* === REVIEWS SECTION === */
.section--reviews {
  background: #000; /* keep dark theme */
  color: #fff;
}
.reviews-rotator {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: clamp(20px, 4vw, 32px) 0;
}
.review {
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(6px);
}
.review__quote {
  margin: 0 0 12px;
  font-size: clamp(22px, 4.8vw, 42px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .01em;
}
.review__author {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: .9;
  font-weight: 600;
}
.review.is-entering { animation: reviewIn 700ms cubic-bezier(.22,1,.36,1) forwards; }
.review.is-leaving { animation: reviewOut 700ms cubic-bezier(.65,.05,.36,1) forwards; }
@keyframes reviewIn {
  0%   { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes reviewOut {
  0%   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.98); filter: blur(10px); }
}

/* === MARKET OPPORTUNITY SECTION === */
.section--market {
  background: #000;
  color: #fff;
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 40px);
  margin-top: clamp(20px, 3vw, 30px);
}
.market-heading {
  margin: 0 0 .6em;
  font-size: clamp(20px, 2.6vw, 26px);
}
.market-metrics {
  display: grid;
  gap: 14px;
}
.metric-card {
  --metric-accent: #4884d4;
  margin: 0;
  padding: 8px 0 14px;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .95s cubic-bezier(.18, .86, .2, 1), transform .95s cubic-bezier(.18, .86, .2, 1);
}
.metric-card.is-ready {
  opacity: 1;
  transform: translateY(0);
}
.metric-card:nth-child(1) { --metric-accent: #4884d4; }
.metric-card:nth-child(2) { --metric-accent: #db4b34; }
.metric-card:nth-child(3) { --metric-accent: #ccac39; }
.metric-card__header {
  margin-bottom: 10px;
}
.metric-card__value {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.metric-card__number {
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--metric-accent);
}
.metric-card__unit {
  font-size: clamp(12px, 1.6vw, 14px);
  opacity: .9;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.metric-card__graph {
  display: block;
  width: 100%;
  height: 138px;
}
.metric-card__graph-wrap {
  position: relative;
}
.metric-grid-lines line {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.metric-line {
  fill: none;
  stroke: var(--metric-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
}
.metric-dot {
  fill: var(--metric-accent);
  opacity: 0;
  transform-origin: center;
}
.metric-card.animate .metric-dot {
  animation: metricDotFade .6s linear .9s forwards;
}
.metric-source {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  opacity: .66;
}
.market-block {
  margin-bottom: clamp(14px, 2.4vw, 20px);
  padding: 14px 16px;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.06), rgba(17,17,17,0.96));
  border: 1px solid rgba(255,255,255,0.12);
}
.market-subheading {
  margin: 0 0 .4em;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .85;
}
.market-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.6;
  opacity: .9;
}
@keyframes metricDotFade {
  0% { opacity: 0; transform: scale(1); }
  100% { opacity: 1; transform: scale(1); }
}

.section--market .market-column:last-child .market-block {
  margin-bottom: clamp(18px, 2.6vw, 24px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.section--market .market-column:last-child .market-subheading {
  margin-bottom: .55em;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: .17em;
  opacity: .7;
}
.market-polaroids {
  position: relative;
  margin-top: clamp(8px, 1.8vw, 14px);
  height: 275px;
  max-width: 360px;
}
.market-polaroid {
  position: absolute;
  width: 172px;
  height: 212px;
  padding: 10px 10px 28px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.3), 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
}
.market-polaroid .ce-card__image-stack {
  width: 100%;
  height: 100%;
  border-radius: 2px;
}
.market-polaroid .ce-card__svg {
  object-fit: contain;
  object-position: center;
}
.market-polaroid .ce-card__overlay {
  opacity: 0.82;
}
.market-polaroid--left {
  left: 0;
  top: 28px;
  transform: rotate(-6deg);
  z-index: 1;
}
.market-polaroid--right {
  left: 144px;
  top: 0;
  transform: rotate(5deg);
  z-index: 2;
}
@media (max-width: 900px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
  .metric-card__graph {
    height: 124px;
  }
  .market-polaroids {
    margin: 8px auto 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .metric-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .metric-card.animate .metric-dot {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* === MEDIA REACH SECTION === */
.section--media {
  background: #000;
  color: #fff;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 32px);
  margin-top: clamp(20px, 3vw, 30px);
}
.media-heading {
  margin: 0 0 .6em;
  font-size: clamp(18px, 2.4vw, 22px);
}
.media-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.6;
  font-size: 14px;
  opacity: .9;
}
.media-highlight {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,0.28);
  background: radial-gradient(circle at top, rgba(255,255,255,0.08), rgba(0,0,0,0.9));
}
/* Scroll-reveal + hover for Media columns */
.media-column {
  position: relative;
}
.media-reveal-init {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    filter 0.7s ease,
    box-shadow 0.4s ease;
  will-change: opacity, transform, filter;
}
.media-reveal-init.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.section--media .media-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}
@media (max-width: 900px) {
  .media-grid {
    grid-template-columns: 1fr;
  }
}

/* === COMP ANALYSIS SECTION === */
.section--comp-analysis {
  color: #000;
  background-image: url('../images/crumpled-paper-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.comp-table {
  margin-top: clamp(18px, 3vw, 28px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  background: rgba(255,255,255,0.95);
}
.comp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
}
.comp-row:nth-child(odd):not(.comp-row--head) {
  background: rgba(0,0,0,0.02);
}
.comp-row--head {
  background: #000;
  color: #fff;
  font-weight: 700;
}
.comp-cell {
  padding: 18px 24px;
  font-size: 14px;
  border-right: 1px solid rgba(0,0,0,0.06);
}
.comp-cell:last-child {
  border-right: none;
}
.comp-cell--book {
  font-weight: 700;
}
/* Scroll-reveal for Comparative rows */
.comp-reveal-init {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
  will-change: auto;
}
.comp-reveal-init.revealed {
  opacity: 1;
  transform: none;
  filter: none;
}
.comp-cell--book {
  position: relative;
}
.comp-cell--book::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #000, #555);
}
@media (max-width: 900px) {
  .comp-table {
    box-shadow: none;
    background: transparent;
  }
  .comp-row {
    grid-template-columns: 1fr;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.96);
  }
  .comp-row--head {
    display: none;
  }
  .comp-cell {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  .comp-cell:last-child {
    border-bottom: 0;
  }
}

/* === CHAPTER EXPLORER SECTION === */
.section--chapter-explorer {
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}
.ce-subtitle {
  margin: 0 0 clamp(24px, 4vw, 40px);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  opacity: 0.8;
  max-width: 600px;
}

/* 3D Stage */
.ce-stage {
  position: relative;
  margin-bottom: 0;
}
.ce-perspective {
  perspective: 1200px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
  position: relative;
  height: 700px;
  width: 100%;
}

/* Card base */
.ce-card {
  position: absolute;
  top: 0;
  left: 50%;
  width: 840px;
  max-width: 94vw;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  transform-origin: center center;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
  pointer-events: none;
}

/* Card states */
.ce-card[data-state="active"] {
  transform: translateX(-50%) translateZ(0) rotateY(0deg);
  opacity: 1;
  filter: blur(0);
  z-index: 10;
  pointer-events: auto;
}
.ce-card[data-state="left"] {
  transform: translateX(calc(-50% - 55%)) translateZ(-300px) rotateY(35deg);
  opacity: 0.10;
  filter: blur(6px);
  z-index: 5;
}
.ce-card[data-state="right"] {
  transform: translateX(calc(-50% + 55%)) translateZ(-300px) rotateY(-35deg);
  opacity: 0.10;
  filter: blur(6px);
  z-index: 5;
}
.ce-card[data-state="far-left"] {
  transform: translateX(calc(-50% - 100%)) translateZ(-500px) rotateY(50deg);
  opacity: 0;
  filter: blur(10px);
  z-index: 1;
}
.ce-card[data-state="far-right"] {
  transform: translateX(calc(-50% + 100%)) translateZ(-500px) rotateY(-50deg);
  opacity: 0;
  filter: blur(10px);
  z-index: 1;
}
.ce-card[data-state="hidden"] {
  transform: translateX(-50%) translateZ(-600px) scale(0.5);
  opacity: 0;
  filter: blur(10px);
  z-index: 0;
}

/* Polaroid frame */
.ce-card__media {
  flex-shrink: 0;
}
.ce-card__polaroid {
  width: 320px;
  height: 390px;
  background: #fff;
  padding: 18px 18px 62px;
  border-radius: 6px;
  box-shadow: 0 24px 52px rgba(0,0,0,0.32), 0 10px 24px rgba(0,0,0,0.16);
  transform: rotate(var(--tilt, 0deg));
  display: grid;
  place-items: center;
}
.ce-card__placeholder {
  width: 100%;
  height: 100%;
  background: #e0e0e0;
  border-radius: 2px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.04em;
}
.ce-card__image-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.ce-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--chapter-bg, #4a4a4a);
}
.ce-card__svg,
.ce-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ce-card__svg {
  z-index: 1;
  object-fit: cover;
  object-position: center;
}
.ce-card__overlay {
  z-index: 2;
  mix-blend-mode: color-burn;
  opacity: 0.8;
  pointer-events: none;
}
.ce-card__image-stack--ch3 .ce-card__svg {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.ce-card__image-stack--ch4 .ce-card__svg {
  object-fit: contain;
  object-position: center;
  transform: none;
}
.ce-card__image-stack--ch5 .ce-card__svg {
  object-fit: contain;
  object-position: center;
  transform: none;
}

/* Card content */
.ce-card__content {
  max-width: 460px;
}
.ce-card__part {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.6;
  margin-bottom: 10px;
}
.ce-card__content h3 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}
.ce-card__content p {
  margin: 0 0 20px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
  opacity: 0.85;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.08);
}
.ce-card__content p::-webkit-scrollbar {
  width: 8px;
}
.ce-card__content p::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
}
.ce-card__content p::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.35);
  border-radius: 999px;
}
.ce-card__cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ce-card__cta:hover {
  background: #e9e9e9;
  transform: translateY(-1px);
}

/* Navigation arrows */
.ce-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  appearance: none;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease;
}
.ce-arrow:hover {
  background: rgba(255,255,255,0.25);
}
.ce-arrow--prev { left: 0; }
.ce-arrow--next { right: 0; }

/* Timeline */
.ce-timeline {
  max-width: 800px;
  margin: 0 auto;
}
.ce-timeline__track {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 12px;
}
.ce-timeline__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ce-timeline__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.ce-timeline__part--active .ce-timeline__label {
  opacity: 1;
}
.ce-timeline__markers {
  display: flex;
  gap: 8px;
}
.ce-timeline__marker {
  appearance: none;
  border: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: grid;
  place-items: center;
}
.ce-timeline__marker:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.1);
}
.ce-timeline__marker--active {
  background: #fff;
  color: #000;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
  transform: scale(1.15);
}

/* Progress bar */
.ce-timeline__progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.ce-timeline__progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), #fff);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Dark CTA variant for this section */
.section--chapter-explorer .section-cta {
  background: radial-gradient(circle at top left, rgba(24,24,24,0.98), #000);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}

/* Scroll reveal */
.ce-stage--reveal-init {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(10px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}
.ce-stage--reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .ce-perspective {
    height: 700px;
    perspective: 800px;
  }
  .ce-card {
    width: 560px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    justify-items: center;
    text-align: center;
    gap: 24px;
  }
  .ce-card__polaroid {
    width: 280px;
    height: 340px;
    padding: 16px 16px 52px;
  }
  .ce-card__content { max-width: 100%; }
  .ce-card__content h3 {
    font-size: clamp(28px, 5vw, 38px);
  }
  .ce-card__content p {
    font-size: clamp(14px, 2vw, 15px);
    max-height: 220px;
  }
  .ce-card[data-state="left"],
  .ce-card[data-state="right"] {
    opacity: 0.08;
  }
  .ce-card[data-state="far-left"],
  .ce-card[data-state="far-right"] {
    opacity: 0;
  }
}

/* Responsive: phone */
@media (max-width: 600px) {
  .site-nav {
    height: auto;
    min-height: 60px;
  }
  .site-nav__inner {
    display: none;
  }
  .site-nav__mobile {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
  }
  .site-nav__mobile-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
  }
  .site-nav__mobile-toggle::-webkit-details-marker {
    display: none;
  }
  .site-nav__mobile-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .site-nav__mobile-icon {
    width: 18px;
    display: grid;
    gap: 3px;
  }
  .site-nav__mobile-icon span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }
  .site-nav__mobile-panel {
    margin-top: 8px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.92);
  }
  .site-nav__mobile:not([open]) .site-nav__mobile-panel {
    display: none;
  }
  .site-nav__mobile-panel a {
    display: block;
    border-radius: 8px;
    padding: 10px 12px;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
  }
  .ce-perspective {
    height: 640px;
    perspective: 600px;
  }
  .ce-card {
    width: 92vw;
    gap: 0;
  }
  .ce-card__polaroid {
    width: min(175px, 58vw);
    height: min(210px, 69vw);
    padding: 10px 10px 30px;
  }
  .ce-card__content h3 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .ce-card__content p {
    font-size: clamp(13px, 3.9vw, 15px);
    max-height: 130px;
    margin-bottom: 14px;
  }
  .ce-card__cta {
    font-size: 15px;
  }
  .ce-card[data-state="left"],
  .ce-card[data-state="right"],
  .ce-card[data-state="far-left"],
  .ce-card[data-state="far-right"] {
    opacity: 0;
  }
  .ce-timeline__track {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ce-arrow {
    top: 36%;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ce-card,
  .ce-timeline__marker,
  .ce-timeline__progress,
  .ce-stage--reveal-init {
    transition: none !important;
  }
  .ce-stage--reveal-init {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
