/* ==========================================================================
  The Lens Problem -- Author site
  Editorial restraint. Optical metaphor. Clarity before persuasion.
  ========================================================================== */

:root {
  --ink: #0b0d12;
  --ink-soft: #161a22;
  --ink-mid: #2a303c;
  --paper: #f6f1e8;
  --paper-dim: #ebe4d6;
  --cream: #faf7f1;
  --gold: #c4a35a;
  --gold-soft: #d4bc7a;
  --gold-dim: rgba(196, 163, 90, 0.18);
  --mist: #8b93a7;
  --line: rgba(246, 241, 232, 0.12);
  --line-dark: rgba(11, 13, 18, 0.1);
  --good: #6b8f71;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --narrow: 680px;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: #0b0d12;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: #f6f1e8; /* paper */
  background: #0b0d12; /* ink */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* */
/* Grain + ambient glow  */
/* */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* */
/* Nav  */
/* */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
  box-shadow: inset 0 0 0 5px rgba(196, 163, 90, 0.15);
}

.nav-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.85;
}

.nav-links {
  display: none;
  gap: 1.6rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--mist);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--paper);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--gold-soft);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
}

@media (min-width: 880px) {
  .nav-links {
  display: flex;
  }
  .nav-toggle {
  display: none;
  }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(11, 13, 18, 0.96);
  padding: 6rem 2rem 2rem;
  flex-direction: column;
  gap: 1.4rem;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.nav-mobile.open {
  display: flex;
}

/* */
/* Layout helpers  */
/* */

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.wrap-narrow {
  width: min(var(--narrow), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--mist);
  line-height: 1.7;
  max-width: 38rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--ink-mid);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.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; }

/* */
/* Hero  */
/* */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-glow-a {
  width: 50vw;
  height: 50vw;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.18), transparent 65%);
}

.hero-glow-b {
  width: 40vw;
  height: 40vw;
  bottom: 0;
  left: -10%;
  background: radial-gradient(circle, rgba(107, 143, 113, 0.1), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    /* Cover first (visual), copy second  --  avoids empty purple stage dominating */
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr);
    gap: 3rem 3.5rem;
  }
  .hero-grid > .book-stage {
    order: 0;
  }
  .hero-grid > .hero-copy {
    order: 1;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  color: var(--mist);
  margin-bottom: 1.5rem;
}

.hero-kicker em {
  font-style: normal;
  background: var(--gold-dim);
  color: var(--gold-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 .thin {
  display: block;
  font-weight: 300;
  font-style: italic;
  color: var(--mist);
  font-size: 0.52em;
  margin-top: 0.35em;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero-promise {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, rgba(196, 163, 90, 0.08), transparent);
  max-width: 36rem;
}

.hero-promise strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--paper);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.hero-promise span {
  color: var(--mist);
  font-size: 0.95rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  color: var(--mist);
  font-size: 0.88rem;
}

.hero-meta strong {
  color: var(--paper);
  font-weight: 600;
}

/* Book showcase: slight 3D turn, art stays inside the face */
.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  perspective: 1400px;
  padding: 0.5rem 1rem 1rem;
  overflow: visible;
}

.book-stage::before {
  content: "";
  position: absolute;
  /* Tight glow under cover only  --  not a full-column purple/gold slab */
  inset: 18% 18% 22%;
  background: radial-gradient(ellipse at 50% 45%, rgba(196, 163, 90, 0.2), transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}

.book-showcase {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  display: grid;
  gap: 1rem;
  justify-items: center;
  transform-style: preserve-3d;
}

@media (min-width: 960px) {
  .book-showcase {
    width: min(100%, 360px);
  }
}

.book-3d {
  position: relative;
  width: 100%;
  transform: rotateY(-16deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform 0.55s var(--ease);
  filter: drop-shadow(18px 28px 36px rgba(0, 0, 0, 0.55));
}

.book-3d:hover {
  transform: rotateY(-7deg) rotateX(2deg) translateY(-8px);
}

/* Phase 2: ground shadow under 3D book */
.book-3d::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: -18px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.book-pages {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 100%;
  width: 16px;
  margin-left: -1px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #cfc7b8 0%, #f3ede2 35%, #e7e0d2 70%, #bdb5a6 100%);
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.35);
  transform: translateZ(-8px) rotateY(8deg);
  transform-origin: left center;
}

.book-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow:
    inset -3px 0 0 rgba(255, 255, 255, 0.07),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    inset 48px 0 48px -36px rgba(255, 255, 255, 0.07);
  background: #0e1219;
}

.book-spine-shade {
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12) 55%, transparent);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* No text plate over cover art -- image carries title once */

.book-edge {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent);
  z-index: 2;
}

.book-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--mist);
  line-height: 1.45;
  max-width: 24ch;
}

.book-caption strong {
  display: block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 450;
  margin-bottom: 0.2rem;
}

/* */
/* Motto band  */
/* */

.motto {
  border-block: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}

.motto p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.motto p span {
  color: var(--gold);
}

/* */
/* Problem  */
/* */

.problem {
  background: radial-gradient(ellipse at top, #12161f 0%, var(--ink) 55%);
}

.problem-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .problem-grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  }
}

.quote-wall {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.quote-wall li {
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 0.98rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.quote-wall li:hover {
  border-color: rgba(196, 163, 90, 0.35);
  transform: translateX(4px);
}

.quote-wall li::before {
  content: "\201C";
  color: var(--gold);
  margin-right: 0.25rem;
  font-family: var(--serif);
  font-size: 1.2em;
}

.insight-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(196, 163, 90, 0.12), rgba(255,255,255,0.02));
  border: 1px solid rgba(196, 163, 90, 0.25);
}

.insight-card p {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.4;
}

.insight-card .small {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--mist);
  margin: 0;
}

/* */
/* Interactive lens playground  */
/* */

.playground {
  background: var(--paper);
  color: var(--ink);
}

.playground .section-label {
  color: #8a7040;
}

.playground .section-label::before {
  background: #8a7040;
}

.playground .lede {
  color: var(--ink-mid);
}

.lens-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.45;
}

.lens-legend-item strong {
  color: var(--ink);
  font-weight: 600;
}

.lens-foot {
  margin: 0;
  padding: 0.85rem 1.35rem 1.15rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.88rem;
  color: var(--ink-mid);
  background: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
}

.lens-more {
  margin: 0;
  padding: 0 1.35rem 1.1rem;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  color: var(--ink-mid);
}

.lens-more a {
  color: var(--gold, #c4a35a);
  font-weight: 600;
  text-decoration: none;
}

.lens-more a:hover {
  text-decoration: underline;
}

.lens-demo {
  margin-top: 2.5rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--cream);
  box-shadow: 0 24px 60px rgba(11, 13, 18, 0.08);
}

.lens-demo-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.55);
}

.lens-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.lens-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mid);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.lens-tab.active {
  background: var(--ink);
  color: var(--paper);
}

.lens-tab:not(.active):hover {
  border-color: var(--line-dark);
}

.lens-hint {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #7a7368;
  align-self: center;
}

.lens-stage {
  position: relative;
  min-height: 420px;
  padding: 2.5rem 1.5rem 3rem;
  cursor: none;
  overflow: hidden;
  user-select: none;
  /* Let a finger drag the glass without the page scrolling underneath it. */
  touch-action: none;
  background: #f7f2e9;
}

@media (hover: none) {
  .lens-stage {
    cursor: default;
  }
  .lens-cursor {
    display: none !important;
  }
}

.lens-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2.75rem 2rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 20em;
  margin: auto;
  transition: opacity 0.25s var(--ease);
}

.lens-text.a {
  color: #1a1d24;
  z-index: 1;
}

/* Solid fill under reveal so A never shows through B */
.lens-text.b {
  color: #2a1f12;
  z-index: 3;
  opacity: 0;
  clip-path: circle(0 at 50% 50%);
  background: #f3e8d4;
  /* soft vignette inside the glass so edges don't fight the rim */
  box-shadow: inset 0 0 0 1px rgba(196, 163, 90, 0.2);
}

.lens-text .tag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

.lens-text .tag .who {
  font-family: var(--sans, "Outfit", system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #1a1d24;
  opacity: 1;
}

.lens-text .tag .track {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.72;
  color: #5a5560;
}

.lens-text.b .tag .who {
  color: #5c4314;
}

.lens-text.b .tag .track {
  color: #8a6a2e;
  opacity: 0.95;
}

.lens-text .body {
  display: block;
  max-width: 18em;
  margin-inline: auto;
  font-size: 0.92em;
  line-height: 1.55;
}

.lens-text .body .says {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.4rem;
  font-style: normal;
}

.lens-text .body {
  font-style: normal;
}

.lens-cursor {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2.5px solid rgba(196, 163, 90, 0.95);
  box-shadow:
    0 0 0 6px rgba(243, 232, 212, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 40px rgba(90, 70, 30, 0.2),
    inset 0 0 24px rgba(255, 255, 255, 0.15);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: none;
}

.lens-cursor::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.lens-stage:hover .lens-cursor,
.lens-stage.active .lens-cursor {
  opacity: 1;
}

.lens-caption {
  padding: 1rem 1.35rem 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
  color: var(--ink-mid);
  background: rgba(255, 255, 255, 0.45);
}

.lens-caption strong {
  color: var(--ink);
}

.lens-caption .cap-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.84rem;
  opacity: 0.85;
}

/* */
/* Inside the book  */
/* */

.parts {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 800px) {
  .parts {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
  }
}

.part-card {
  position: relative;
  padding: 1.35rem 1.15rem 1.5rem;
  border-radius: 16px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.25s, background 0.25s;
  overflow: hidden;
}

.part-card:hover {
  transform: translateY(-6px);
  border-color: rgba(196, 163, 90, 0.4);
  background: #1a1f2a;
}

.part-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.part-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.part-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mist);
  line-height: 1.55;
  flex: 1;
}

.part-card .arrow {
  margin-top: 1.1rem;
  color: var(--gold);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s var(--ease);
}

.part-card:hover .arrow {
  opacity: 1;
  transform: none;
}

/* */
/* Case file feature  */
/* */

.casefiles {
  background: linear-gradient(180deg, var(--ink) 0%, #0e1219 100%);
}

.case-panel {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
  radial-gradient(ellipse at top right, rgba(196, 163, 90, 0.1), transparent 50%),
  var(--ink-soft);
}

@media (min-width: 900px) {
  .case-panel {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 2.5rem;
  }
}

.case-quote {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 1.25rem;
  font-style: italic;
  font-weight: 350;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--mist);
}

.two-col {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .two-col {
  grid-template-columns: 1fr 1fr;
  }
}

.side {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.side h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.side p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--paper-dim);
}

.ladder {
  display: grid;
  gap: 0.55rem;
}

.ladder-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.ladder-step .n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink);
  background: var(--gold);
  font-weight: 600;
}

.ladder-step strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}

.ladder-step span {
  font-size: 0.82rem;
  color: var(--mist);
}

.case-note,
.ladder-note {
  margin: 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.55;
}

/* */
/* Sample chapter  */
/* */

.sample {
  background: var(--paper);
  color: var(--ink);
}

.sample .section-label {
  color: #8a7040;
}

.sample .section-label::before {
  background: #8a7040;
}

.sample .lede {
  color: var(--ink-mid);
}

.sample-sheet {
  margin-top: 2rem;
  background: var(--cream);
  border-radius: 20px;
  border: 1px solid var(--line-dark);
  box-shadow: 0 20px 50px rgba(11, 13, 18, 0.08);
  overflow: hidden;
}

.sample-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: #7a7368;
  background: rgba(255, 255, 255, 0.5);
}

.sample-body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 40rem;
  margin: 0 auto;
}

.sample-body h3 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.sample-body .eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7040;
  margin-bottom: 1.5rem;
}

.sample-body p {
  margin: 0 0 1.15rem;
}

.sample-body p:last-child {
  margin-bottom: 0;
}

.fade-out {
  position: relative;
}

.fade-out::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  background: linear-gradient(transparent, var(--cream));
  pointer-events: none;
}

.sample-cta {
  padding: 0 1.5rem 1.75rem;
  text-align: center;
}

/* */
/* Audience  */
/* */

.audience-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .audience-grid {
  grid-template-columns: 1fr 1fr;
  }
}

.aud-card {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--ink-soft);
}

.aud-card.yes {
  border-color: rgba(107, 143, 113, 0.35);
  background: linear-gradient(160deg, rgba(107, 143, 113, 0.1), var(--ink-soft));
}

.aud-card.no {
  border-color: rgba(180, 90, 90, 0.25);
  background: linear-gradient(160deg, rgba(180, 90, 90, 0.08), var(--ink-soft));
}

.aud-card h3 {
  margin-bottom: 1rem;
}

.aud-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.aud-card li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--paper-dim);
  font-size: 0.98rem;
}

.aud-card.yes li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 700;
}

.aud-card.no li::before {
  content: " - ";
  position: absolute;
  left: 0;
  color: #c47a7a;
  font-weight: 700;
}

/* */
/* Framework quiz  */
/* */

.quiz-wrap {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.quiz-q {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.quiz-options {
  display: grid;
  gap: 0.65rem;
}

.quiz-opt {
  text-align: left;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, background 0.2s;
}

.quiz-opt:hover {
  border-color: rgba(196, 163, 90, 0.45);
}

.quiz-opt.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.quiz-result {
  display: none;
  margin-top: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 12px;
  background: rgba(196, 163, 90, 0.1);
  border: 1px solid rgba(196, 163, 90, 0.3);
}

.quiz-result.show {
  display: block;
}

.quiz-result strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.quiz-result p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

/* */
/* Author / CTA  */
/* */

.author {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .author {
  grid-template-columns: 1.2fr 0.8fr;
  }
}

.author-card {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent);
}

.author-card .name {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.author-card .role {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.author-card p {
  margin: 0;
  color: var(--mist);
}

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(2rem, 5vw, 3.5rem);
  background:
  radial-gradient(ellipse at 20% 0%, rgba(196, 163, 90, 0.22), transparent 50%),
  linear-gradient(145deg, #171c26, #0d1017);
  border: 1px solid rgba(196, 163, 90, 0.28);
  text-align: center;
}

.cta h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.cta .lede {
  margin-inline: auto;
  color: var(--mist);
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.price-row strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--paper);
  font-weight: 450;
}

.fine {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--mist);
  opacity: 0.85;
}

/* */
/* Footer  */
/* */

footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 0.5rem;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* */
/* Reduced motion  */
/* */

@media (max-width: 720px) {
  .book-3d { transform: rotateY(-10deg) rotateX(3deg); }
  .book-3d:hover { transform: rotateY(-4deg) rotateX(1deg) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  html {
  scroll-behavior: auto;
  }
  .reveal {
  opacity: 1;
  transform: none;
  transition: none;
  }
  .book {
  transform: none;
  }
  .book-3d,
  .book-3d:hover {
    transform: none !important;
    transition: none !important;
    filter: drop-shadow(8px 14px 22px rgba(0, 0, 0, 0.5));
  }
}
