:root {
  --bg: #070708;
  --bg-elevated: #101014;
  --bg-soft: #16161c;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, 0.1);
  --nest: #e0234e;
  --nest-deep: #b81a3d;
  --nest-glow: rgba(224, 35, 78, 0.35);
  --white: #ffffff;
  --radius: 2px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --max: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(224, 35, 78, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--nest);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 8, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--nest);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
}

.logo-text {
  font-size: 0.95rem;
}

.nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  color: var(--white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--nest);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--nest-glow);
}

.btn-primary:hover {
  background: var(--nest-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--nest-glow);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 8, 0.92) 0%, rgba(7, 7, 8, 0.7) 42%, rgba(7, 7, 8, 0.35) 100%),
    linear-gradient(180deg, rgba(7, 7, 8, 0.35) 0%, rgba(7, 7, 8, 0.15) 40%, rgba(7, 7, 8, 0.95) 100%);
}

.hero-content {
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(3.5rem, 8vh, 5.5rem);
  max-width: 38rem;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
  width: min(100% - 2.5rem, 38rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nest);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 5.6rem);
  margin-bottom: 1.25rem;
  color: var(--white);
}

.title-block {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15em 0.35em;
  background: var(--white);
  color: #0a0a0a;
  line-height: 1;
}

.title-sub {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.42em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34ch;
  color: #d4d4d8;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.75rem;
}

.section-book {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(224, 35, 78, 0.05), transparent 40%),
    var(--bg);
}

.book-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.book-visual {
  position: relative;
  justify-self: center;
  max-width: 360px;
}

.book-visual::after {
  content: "";
  position: absolute;
  inset: 12% -8% -8% 12%;
  background: radial-gradient(circle, var(--nest-glow), transparent 65%);
  z-index: -1;
  filter: blur(18px);
  animation: pulseGlow 4.5s ease-in-out infinite alternate;
}

.book-visual img {
  width: 100%;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text);
  font-weight: 500;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--nest);
  box-shadow: 0 0 0 4px rgba(224, 35, 78, 0.18);
}

/* Topics */
.section-topics {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  counter-reset: none;
}

.topics li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.topics li:last-child {
  border-bottom: 1px solid var(--line);
}

.topic-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--nest);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.topics p {
  margin: 0;
  max-width: 48ch;
}

/* Audience */
.audience-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

.pillars li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.pillars li:last-child {
  border-bottom: 1px solid var(--line);
}

.pillars strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--white);
}

.pillars span {
  color: var(--muted);
  font-size: 0.98rem;
}

.audience-figure {
  margin: 0;
  position: relative;
}

.audience-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.audience-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: var(--white);
}

/* Quote */
.section-quote {
  padding-block: clamp(3.5rem, 8vw, 5rem);
  background:
    radial-gradient(ellipse at center, rgba(224, 35, 78, 0.12), transparent 60%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
}

.quote-inner {
  max-width: 42rem;
  text-align: center;
}

.quote-inner blockquote {
  margin: 0;
}

.quote-inner p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.quote-inner cite {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Author */
.author-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.author-portrait {
  max-width: 320px;
  justify-self: center;
}

.author-portrait img {
  width: 100%;
  border: 1px solid var(--line);
}

/* Final CTA */
.section-cta {
  padding-top: 0;
}

.cta-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, rgba(224, 35, 78, 0.18), rgba(224, 35, 78, 0.03) 45%, transparent),
    var(--bg-elevated);
  border: 1px solid rgba(224, 35, 78, 0.35);
}

.cta-copy h2 {
  margin-bottom: 0.5rem;
}

.cta-copy p {
  margin: 0;
  max-width: 42ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.footer-brand {
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-meta {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-note {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.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;
}

@keyframes pulseGlow {
  from {
    opacity: 0.55;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .book-split,
  .author-split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }

  .audience-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .topics {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.5rem;
  }

  .topics li:nth-child(odd):last-child,
  .topics li:nth-child(even):nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-panel {
    flex-direction: row;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .book-visual::after,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
