/* Overcoming Adversity — design tokens */
:root {
  --primary: #df0008;
  --primary-hover: #ff060a;
  --primary-soft: rgba(223, 0, 8, 0.15);
  --accent: #ff353c;
  --bg: #000000;
  --bg-alt: #212022;
  --bg-elevated: #2f2f36;
  --text: #ffffff;
  --text-muted: #dedede;
  --text-dim: #9a9a9a;
  --border: #484848;
  --font-display: "Goldman", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --header-h: 72px;
  --container: min(1120px, calc(100% - 2.5rem));
  --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: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

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

.nav-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-pill);
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.btn-full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2.5rem) 0 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0.92) 100%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(223, 0, 8, 0.25), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-lead {
  margin: 0 auto 1.75rem;
  max-width: 580px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
}

.hero-video {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto 1.75rem;
}

.hero-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(223, 0, 8, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 100px rgba(223, 0, 8, 0.22);
}

.hero-video-frame iframe,
.hero-video-frame > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video-unmute {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.hero-video-unmute:hover {
  background: rgba(223, 0, 8, 0.88);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-video-caption {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Stats */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -1.5rem;
  padding-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  padding: 1.75rem 1.25rem;
  background: var(--bg-alt);
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--primary);
}

.stat span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.story-image-wrap {
  position: relative;
}

.story-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image-accent {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.6;
}

.prose p {
  margin: 0 0 1.15rem;
  color: var(--text-muted);
}

.pull-quote {
  margin: 2rem 0 0;
  padding: 1.5rem 0 0 1.5rem;
  border-left: 3px solid var(--primary);
}

.pull-quote p {
  margin: 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
}

/* Timeline */
.timeline-list {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-marker {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  opacity: 0.85;
}

.timeline-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Books */
.books-grid {
  display: grid;
  gap: 2rem;
}

.books-grid-two {
  max-width: 1120px;
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .books-grid-two {
    grid-template-columns: repeat(2, 1fr);
  }

  .books-grid-two .book-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1rem);
    justify-self: center;
  }
}

.book-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.book-cover {
  background: #000;
  line-height: 0;
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.book-info {
  padding: 1.35rem;
}

.book-info h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.book-volume {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.book-info p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.books-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  color: var(--text-muted);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--accent);
  border: 1px solid rgba(223, 0, 8, 0.35);
  border-radius: var(--radius-pill);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-email {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-email:hover {
  border-color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .book-card:hover {
    transform: none;
  }
}

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

  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-image-accent {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-top: 0.5rem;
  }

  .stats {
    margin-top: -1.5rem;
  }

  .timeline-item {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }
}
