:root {
  --ink: #101010;
  --paper: #f3efe5;
  --paper-deep: #e7e0d3;
  --red: #c92e23;
  --red-dark: #b6261b;
  --muted: #67635b;
  --line: rgba(16, 16, 16, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);
  --white: #fffdf8;
  --content: 1220px;
  --header: 78px;
  --focus: #2563eb;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--white);
  color: var(--ink);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(243, 239, 229, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--red); }

.navlinks { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 27px); }
.navlinks > a:not(.btn) {
  position: relative;
  color: #36332e;
  font-size: 0.78rem;
  text-decoration: none;
}
.navlinks > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 2px;
  background: var(--red);
  transition: right 170ms ease;
}
.navlinks > a:hover::after, .navlinks > a.active::after { right: 0; }
.navlinks > a.active { color: var(--ink); font-weight: 800; }

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0;
}
.menu-btn::before, .menu-btn::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 170ms ease;
}
.menu-btn::before { transform: translateY(-4px); }
.menu-btn::after { transform: translateY(4px); }
.nav-open .menu-btn::before { transform: translateY(1px) rotate(45deg); }
.nav-open .menu-btn::after { transform: translateY(-1px) rotate(-45deg); }

.mobile-nav { display: none; }

.btn, button[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  padding: 12px 18px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 170ms ease, border-color 170ms ease, color 170ms ease;
}
.btn:hover, button[type="submit"]:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn.fill, button[type="submit"] { background: var(--ink); color: var(--paper); }
.btn.fill:hover, button[type="submit"]:hover { background: var(--red); border-color: var(--red); color: white; }
.btn.white { border-color: var(--paper); color: var(--paper); }
.btn.white:hover { background: var(--paper); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero {
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vw, 124px) 0;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr); gap: clamp(50px, 7vw, 100px); align-items: end; }

.hero-mini {
  position: relative;
  overflow: hidden;
  padding: clamp(92px, 13vw, 180px) 0 clamp(76px, 10vw, 132px);
  border-bottom: 1px solid var(--line);
}
.hero-mini::after {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: -16vw;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.kicker, .eyebrow, .tag, .num {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker, .eyebrow { font-size: 1.72rem; letter-spacing: 0.08em; }

h1, h2, h3 { text-wrap: balance; }
h1 {
  max-width: 1080px;
  margin: 20px 0 30px;
  font-size: clamp(4rem, 9.2vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.072em;
  line-height: 0.84;
}
.hero-mini h1 { max-width: 1120px; font-size: clamp(3.8rem, 8.1vw, 8rem); }
h2 {
  margin: 16px 0 28px;
  font-size: clamp(2.8rem, 5.7vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.058em;
  line-height: 0.94;
}
h3 {
  margin: 10px 0 13px;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
p { margin: 0 0 18px; }

.redtxt, .red { color: var(--red); }
.lede, .page-lede {
  max-width: 860px;
  margin: 0 0 32px;
  font-size: clamp(1.35rem, 2.45vw, 2.15rem);
  letter-spacing: -0.028em;
  line-height: 1.16;
}
.hero-note { max-width: 480px; color: #3d3933; }
.small, .source, .footer-note, .price-note { color: var(--muted); font-size: 0.88rem; }
.punch { max-width: 650px; font-size: clamp(1.45rem, 2.35vw, 2rem); letter-spacing: -0.028em; line-height: 1.16; }
.mono, .typebar { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

.typebar {
  min-height: 72px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}
.cursor {
  display: inline-block;
  width: 8px;
  height: 1rem;
  margin-left: 5px;
  background: var(--red);
  vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.side-stats { border-top: 1px solid var(--ink); }
.side-stat { display: grid; grid-template-columns: 0.48fr 1fr; gap: 18px; align-items: baseline; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.side-stat strong { font-size: clamp(2rem, 3.8vw, 3.2rem); letter-spacing: -0.055em; line-height: 1; }
.side-stat span { color: var(--muted); font-size: 0.82rem; line-height: 1.35; }

.section { padding: clamp(78px, 9vw, 124px) 0; border-bottom: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 > *, .grid3 > *, .stats > *, .money-row > * { min-width: 0; }

.black, .split-black { background: var(--ink); color: var(--paper); }
.split-black { padding: clamp(80px, 10vw, 138px) 0; }
.black .eyebrow, .black .small, .black .page-lede, .split-black .eyebrow { color: #b9b3a9; }
.black .btn:not(.white), .split-black .btn:not(.white) { border-color: var(--paper); color: var(--paper); }
.black .list { border-color: var(--paper); }
.black .list li { border-color: var(--line-light); }

.list, .numberlist { margin: 0; padding: 0; border-top: 1px solid currentColor; list-style: none; }
.list li, .numberlist li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-bottom: 1px solid var(--line);
}
.list li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 900; }
.numberlist { counter-reset: tes-list; }
.numberlist li { counter-increment: tes-list; padding-left: 58px; }
.numberlist li::before {
  content: counter(tes-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 46px; border: 1px solid var(--line-light); background: var(--line-light); }
.steps-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.step { min-height: 250px; padding: 30px; background: var(--ink); }
.step .num { color: var(--red); }
.black .step .num, .black .card .tag, .black .card .num { color: #ff756a; }
.step p { color: #c7c2b8; font-size: 0.94rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; }
.card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); background: var(--white); text-decoration: none; }
.black .card { border-color: var(--line-light); }
.black .card:hover { border-color: var(--paper); background: #1d1d1d; }
.card .tag, .card .num { color: var(--red); }
.card p { margin-top: auto; color: var(--muted); font-size: 0.94rem; }
.black .card p { color: #bbb5aa; }

.quote {
  max-width: 1100px;
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5.25vw, 4.8rem);
  letter-spacing: -0.038em;
  line-height: 1.02;
}
.quote::before { content: "“"; display: block; height: 0.58em; color: var(--red); font-family: Georgia, serif; font-size: 1.6em; line-height: 0.7; }

.redblock { padding: clamp(82px, 10vw, 138px) 0; background: var(--red); color: white; }
.redblock .eyebrow { color: white !important; }
.redblock h2 { max-width: 680px; margin-top: 0; }
.redblock p { max-width: 640px; }
.big70 { font-size: clamp(8rem, 18vw, 16.5rem); font-weight: 900; letter-spacing: -0.095em; line-height: 0.72; }
.split-rule { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.55); }
.split-rule strong { display: block; font-size: 2rem; letter-spacing: -0.045em; }
.split-rule span { display: block; margin-top: 3px; font-size: 0.82rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 22px 18px 22px 0; border-bottom: 1px solid var(--line); }
.stat strong { display: block; overflow-wrap: anywhere; font-size: clamp(1.85rem, 3.4vw, 3.2rem); letter-spacing: -0.055em; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.8rem; }

.money-row { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.money-cell { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; }
.money-cell + .money-cell { border-left: 1px solid var(--line); }
.money-cell strong, .price { display: block; overflow-wrap: anywhere; font-size: clamp(2.75rem, 5.7vw, 5.3rem); font-weight: 900; letter-spacing: -0.07em; line-height: 0.9; }
.money-cell span { font-size: 0.85rem; }
.money-cell.redcell { background: var(--red); color: white; }

.pill { display: inline-block; margin: 0 7px 9px 0; padding: 9px 13px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.18); font-size: 0.82rem; }
.callout { padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); }
.callout.redline { border-top: 7px solid var(--red); }
.rule { height: 1px; margin: 32px 0; background: var(--line); }

.media-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border: 1px solid var(--line); }
.photo { min-height: 520px; background-position: center; background-size: cover; }
.photo.tall { min-height: 680px; }
.photo-note { width: fit-content; margin: 14px; padding: 8px 10px; background: rgba(16, 16, 16, 0.88); color: white; font-size: 0.7rem; }
.text-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 5vw, 64px); }

.cta { padding: clamp(96px, 12vw, 160px) 0; }
.cta h2 { max-width: 980px; }
.cta .prompt { max-width: 1000px; margin: 22px 0 42px; color: var(--muted); font-size: clamp(1.8rem, 3.6vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.06; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 7px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
  padding: 15px;
  font-size: 1rem;
}
.form textarea { min-height: 180px; resize: vertical; }
.form button { width: fit-content; cursor: pointer; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 1.5em; margin-top: 12px; font-size: 0.9rem; }

.founder-photo {
  min-height: clamp(420px, 55vw, 760px);
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.founder-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; filter: grayscale(1) contrast(0.96) brightness(1.48); }
.founder-photo figcaption { position: absolute; right: 16px; bottom: 16px; max-width: 260px; background: rgba(16, 16, 16, 0.86); color: white; padding: 10px 12px; font-size: 0.72rem; }

.impact-panel {
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 66px);
  background: var(--ink);
  color: var(--paper);
}
.impact-panel .eyebrow { color: #b9b3a9; }
.impact-word { margin-top: 18px; color: var(--red); font-size: clamp(6rem, 13vw, 11rem); font-weight: 900; letter-spacing: -0.09em; line-height: 0.78; }
.impact-panel p { max-width: 390px; font-size: 1.3rem; }

footer { padding: 54px 0 60px; background: var(--paper-deep); }
footer .brand span { color: var(--red-dark); }
.footergrid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footergrid strong { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.footergrid a { display: block; width: fit-content; margin: 8px 0; color: #555149; font-size: 0.84rem; }

@media (max-width: 960px) {
  :root { --header: 70px; }
  .wrap { width: min(var(--content), calc(100% - 32px)); }
  .navlinks { display: none; }
  .menu-btn { display: block; }
  .mobile-nav {
    display: grid;
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 25;
    overflow-y: auto;
    background: var(--paper);
    padding: 24px 16px 48px;
    border-top: 1px solid var(--line);
  }
  .js .mobile-nav { display: none; }
  .js .mobile-nav.open { display: grid; align-content: start; }
  .mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.15rem; font-weight: 800; text-decoration: none; }
  .hero { min-height: auto; }
  .hero-grid, .grid2, .media-grid { grid-template-columns: 1fr; }
  .side-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .side-stat { grid-template-columns: 1fr; }
  .steps, .cards, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footergrid { grid-template-columns: 1fr 1fr; }
  .footergrid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--content), calc(100% - 26px)); }
  h1, .hero-mini h1 { font-size: clamp(3.25rem, 16vw, 5.3rem); }
  .hero { padding-block: 62px 70px; }
  .hero-mini { padding-block: 78px 68px; }
  .hero-mini::after { width: 72vw; right: -28vw; bottom: -34vw; }
  .side-stats, .steps, .cards, .grid3, .stats, .split-rule, .money-row { grid-template-columns: 1fr; }
  .side-stat { min-height: 150px; }
  .step, .card { min-height: auto; }
  .money-cell + .money-cell { border-top: 1px solid var(--line); border-left: 0; }
  .photo, .photo.tall { min-height: 460px; }
  .footergrid { grid-template-columns: 1fr; }
  .footergrid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cursor { display: none; }
}

@media print {
  header, footer, .cta, .menu-btn { display: none !important; }
  body { background: white; color: black; }
  .black, .split-black, .redblock { background: white !important; color: black !important; }
}

/* YPO claim form (details disclosure opens the form under the button) */
.claim { margin-top: 4px; }
.claim summary.btn { list-style: none; cursor: pointer; display: inline-block; }
.claim summary.btn::-webkit-details-marker { display: none; }
.claim[open] summary.btn { margin-bottom: 26px; }
.claim-form { max-width: 520px; }
.black .claim-form label { color: inherit; }
