:root {
  --v2-bg: #F4EEE5;
  --v2-bg-strong: #FAF7F2;
  --v2-surface: rgba(255, 255, 255, 0.58);
  --v2-surface-strong: rgba(255, 255, 255, 0.78);
  --v2-ink: #1C1917;
  --v2-muted: #78716C;
  --v2-accent: #D15A3A;
  --v2-accent-strong: #B94425;
  --v2-accent-soft: rgba(209, 90, 58, 0.08);
  --v2-earth: #8B5E3C;
  --v2-earth-soft: rgba(139, 94, 60, 0.1);
  --v2-line: rgba(28, 25, 23, 0.09);
  --v2-line-strong: rgba(28, 25, 23, 0.17);
  --v2-shadow: 0 24px 70px rgba(28, 25, 23, 0.07);
  --v2-shadow-hover: 0 32px 80px rgba(28, 25, 23, 0.12);
  --v2-shell: 72rem;
  --v2-radius-xl: 2rem;
  --v2-radius-lg: 1.5rem;
  --v2-radius-md: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--v2-ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(209, 90, 58, 0.05), transparent 26rem),
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.7), transparent 22rem),
    radial-gradient(circle at 50% 60%, rgba(139, 94, 60, 0.04), transparent 30rem),
    linear-gradient(180deg, #FAF7F0 0%, var(--v2-bg) 42%, #EDE8DD 100%);
  overflow-x: hidden;
}

/* Noise grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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");
  background-repeat: repeat;
  background-size: 180px;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p,
blockquote,
strong {
  margin: 0;
}

main {
  display: grid;
  gap: 1.5rem;
}

/* ── Reveal animations ── */

.reveal {
  opacity: 0;
  transform: translateY(1.6rem);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }

/* ── Hero entrance ── */

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(2.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-stack .hero-tag {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-stack h1 {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-subtitle {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-cta-row {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.hero-proof {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

/* ── Shell ── */

.v2-shell {
  width: min(100%, var(--v2-shell));
  margin: 0 auto;
  padding: 1rem 1rem 7rem;
}

/* ── Topbar ── */

.v2-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0.92), rgba(250, 247, 242, 0.7));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.v2-wordmark {
  display: inline-flex;
  align-items: center;
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-style: italic;
}

.v2-gap {
  position: relative;
  display: inline-block;
}

.v2-gap::after {
  content: "";
  position: absolute;
  right: 0.12em;
  top: 0.38em;
  width: 0.34em;
  height: 0.14em;
  border-radius: 999px;
  background: var(--v2-accent);
}

.v2-ai {
  color: var(--v2-accent);
  font-style: normal;
}

/* ── Buttons ── */

.v2-nav-cta,
.v2-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.v2-nav-cta {
  color: var(--v2-ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--v2-line);
}

.v2-nav-cta:hover,
.v2-nav-cta:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--v2-line-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 32, 24, 0.08);
}

/* ── Hero ── */

.v2-hero {
  display: grid;
  gap: 1.4rem;
  padding: 2.4rem 0 0.5rem;
}

.hero-stack h1,
.section-intro h2,
.final-box h2,
.hero-callout blockquote {
  font-family: "Instrument Serif", "Georgia", serif;
  letter-spacing: -0.03em;
  font-weight: 400;
}

.hero-tag,
.section-label,
.callout-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--v2-muted);
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-tag::before,
.section-label::before,
.callout-label::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--v2-accent);
  box-shadow: 0 0 8px rgba(209, 90, 58, 0.35);
}

.hero-stack h1 {
  max-width: 14ch;
  margin-top: 1rem;
  font-size: clamp(3.15rem, 11vw, 5.6rem);
  line-height: 0.94;
}

.hero-subtitle {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--v2-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.v2-primary-button {
  position: relative;
  min-height: 3.5rem;
  padding-inline: 1.6rem;
  color: var(--v2-bg-strong);
  background: var(--v2-accent-strong);
  border: 1px solid transparent;
  box-shadow: 0 16px 36px rgba(185, 68, 37, 0.2);
  overflow: hidden;
}

.v2-primary-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.v2-primary-button:hover::before,
.v2-primary-button:focus-visible::before {
  opacity: 1;
}

.v2-primary-button:hover,
.v2-primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(185, 68, 37, 0.26);
}

.v2-primary-button:active {
  transform: translateY(0);
  transition-duration: 60ms;
}

.hero-note {
  max-width: 28rem;
  color: var(--v2-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-proof {
  display: grid;
  gap: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-meta span {
  padding: 0.62rem 0.92rem;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--v2-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  transition: border-color 300ms ease, background 300ms ease;
}

.hero-meta span:hover {
  border-color: var(--v2-accent);
  background: var(--v2-accent-soft);
}

/* ── Callout ── */

.hero-callout,
.manifesto-card,
.timeline-item,
.reason-card,
.number-card,
.v2-faq,
.final-box,
.signal-card,
.hero-stats article {
  border-radius: var(--v2-radius-lg);
}

.hero-callout {
  padding: 1.45rem;
  border: 1px solid var(--v2-line);
  background: var(--v2-surface-strong);
  box-shadow: var(--v2-shadow);
  position: relative;
  overflow: hidden;
}

.hero-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--v2-accent), var(--v2-earth));
  border-radius: 3px 0 0 3px;
}

.hero-callout blockquote {
  margin-top: 0.8rem;
  max-width: 14ch;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--v2-ink);
}

.callout-footer {
  margin-top: 0.95rem;
  color: var(--v2-muted);
  line-height: 1.6;
}

/* ── Hero stats ── */

.hero-stats {
  display: grid;
  gap: 0.8rem;
}

.hero-stats article {
  padding: 1rem 1.05rem;
  border: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.34);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 300ms ease, border-color 300ms ease;
}

.hero-stats article:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-hover);
  border-color: var(--v2-line-strong);
}

.hero-stats strong,
.signal-card strong,
.reason-card strong,
.number-card span {
  display: block;
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero-stats p,
.signal-card p,
.manifesto-card p,
.timeline-item p,
.reason-card p,
.number-card p,
.v2-faq p,
.final-box p {
  margin-top: 0.5rem;
  color: var(--v2-muted);
  line-height: 1.65;
}

/* ── Section layout ── */

.v2-section {
  padding: 1.25rem 0;
}

.v2-light-section,
.v2-contrast-section {
  margin-inline: calc(50% - 50vw);
  padding: 3.5rem max(1rem, calc(50vw - var(--v2-shell) / 2 + 1rem));
}

.v2-light-section {
  background: rgba(255, 255, 255, 0.38);
}

.v2-contrast-section {
  background: linear-gradient(180deg, rgba(139, 94, 60, 0.06), rgba(139, 94, 60, 0.02));
}

.section-intro {
  max-width: 42rem;
}

.section-intro h2,
.final-box h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.1rem, 6.6vw, 4.1rem);
  line-height: 0.98;
}

/* ── Card grids ── */

.signal-grid,
.manifesto-grid,
.reason-grid,
.numbers-grid,
.faq-stack {
  display: grid;
  gap: 1rem;
  margin-top: 1.7rem;
}

.signal-card,
.manifesto-card,
.reason-card,
.number-card {
  padding: 1.3rem;
  border: 1px solid var(--v2-line);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 350ms ease;
}

.signal-card:hover,
.manifesto-card:hover,
.reason-card:hover,
.number-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--v2-shadow-hover);
  border-color: var(--v2-line-strong);
}

.signal-card-accent,
.highlight-manifesto {
  background: linear-gradient(180deg, rgba(209, 90, 58, 0.06), rgba(255, 255, 255, 0.64));
  border-color: rgba(209, 90, 58, 0.2);
}

.signal-card-accent:hover,
.highlight-manifesto:hover {
  border-color: rgba(209, 90, 58, 0.4);
}

/* ── Thesis band ── */

.v2-thesis-band {
  padding: 0.35rem 0 0.6rem;
}

.v2-thesis-band p {
  max-width: 46rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--v2-line);
  border-bottom: 1px solid var(--v2-line);
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  font-style: italic;
}

/* ── Timeline ── */

.timeline {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.7rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.36);
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 350ms ease, border-color 300ms ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow);
  border-color: var(--v2-line-strong);
}

.timeline-item h3,
.manifesto-card h3 {
  font-family: "Instrument Serif", "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: var(--v2-accent-soft);
  border: 1px solid rgba(209, 90, 58, 0.18);
  color: var(--v2-accent-strong);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ── Proof panel ── */

.v2-proof-panel {
  padding-top: 0.5rem;
}

.number-card span {
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  line-height: 1;
}

/* ── FAQ ── */

.faq-stack {
  gap: 0.85rem;
}

.v2-faq {
  border: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--v2-shadow);
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.v2-faq:hover {
  border-color: var(--v2-line-strong);
}

.v2-faq[open] {
  border-color: rgba(209, 90, 58, 0.25);
  box-shadow: var(--v2-shadow-hover);
}

.v2-faq summary {
  position: relative;
  list-style: none;
  padding: 1.05rem 3rem 1.05rem 1.1rem;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: color 200ms ease;
}

.v2-faq summary::-webkit-details-marker {
  display: none;
}

.v2-faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--v2-accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.v2-faq[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.v2-faq p {
  padding: 0 1.1rem 1.1rem;
  animation: faqReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Final CTA ── */

.v2-final {
  padding-bottom: 1.2rem;
}

.final-box {
  padding: 1.8rem 1.5rem;
  color: var(--v2-bg-strong);
  background:
    radial-gradient(circle at top right, rgba(209, 90, 58, 0.12), transparent 16rem),
    radial-gradient(circle at bottom left, rgba(139, 94, 60, 0.08), transparent 12rem),
    linear-gradient(180deg, #292018 0%, #1C1714 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(28, 25, 23, 0.28);
  position: relative;
  overflow: hidden;
}

.final-box::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' fill='white'/%3E%3C/svg%3E");
  background-size: 160px;
  pointer-events: none;
}

.final-box .section-label,
.final-box .section-label::before,
.final-box h2,
.final-box p {
  color: inherit;
}

.final-box .section-label::before {
  background: var(--v2-accent);
  box-shadow: 0 0 10px rgba(209, 90, 58, 0.5);
}

.final-box p {
  max-width: 36rem;
}

.final-box .v2-primary-button {
  margin-top: 1.4rem;
  background: var(--v2-bg-strong);
  color: var(--v2-accent-strong);
  box-shadow: none;
}

.final-box .v2-primary-button:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ── Footer ── */

.v2-footer {
  display: grid;
  gap: 1rem;
  padding: 1.8rem 0 0;
  border-top: 1px solid var(--v2-line);
}

.v2-footer p,
.v2-footer-links a {
  color: var(--v2-muted);
  transition: color 200ms ease;
}

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

.v2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  font-size: 0.92rem;
}

/* ── Sticky CTA ── */

.v2-sticky-cta {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  padding: 0.75rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(244, 238, 229, 0), rgba(244, 238, 229, 0.96) 36%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.v2-sticky-cta.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.v2-sticky-cta .v2-primary-button {
  width: min(100%, var(--v2-shell));
  margin: 0 auto;
}

/* ── Responsive ── */

@media (min-width: 48rem) {
  .v2-shell {
    padding-inline: 1.5rem;
  }

  .v2-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.9fr);
    align-items: start;
    gap: 2rem;
    padding-top: 3.4rem;
  }

  .hero-callout blockquote {
    max-width: none;
  }

  .hero-stats,
  .signal-grid,
  .manifesto-grid,
  .reason-grid,
  .numbers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .v2-footer {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .v2-section {
    padding-block: 1.6rem;
  }

  .v2-light-section,
  .v2-contrast-section {
    padding-block: 4.4rem;
  }
}

@media (min-width: 72rem) {
  .v2-sticky-cta {
    display: none;
  }
}

/* ── Selection color ── */

::selection {
  background: rgba(209, 90, 58, 0.18);
  color: var(--v2-ink);
}

/* ── Focus visible ── */

:focus-visible {
  outline: 2px solid var(--v2-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
