/* Max Borisov story page. Static, no framework. */
:root {
  --paper: #f4efe6;
  --paper-2: #fffaf2;
  --ink: #1b1714;
  --night: #14110f;
  --muted: #6a6258;
  --line: #d8d0c3;
  --green: #24463a;
  --green-deep: #1b3a30;
  --clay: #9a4a2b;
  --on-dark: #f4efe6;
  --on-dark-muted: #b9b0a2;
  --col: 36rem;
  --serif-d: "Fraunces Display", "Iowan Old Style", Georgia, serif;
  --serif-t: "Fraunces Text", "Iowan Old Style", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@font-face { font-family: "Fraunces Display"; src: url("/fonts/fraunces-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces Display"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces Text"; src: url("/fonts/fraunces-text.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif-t); font-size: 1.1875rem; line-height: 1.72; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--paper-2); color: var(--ink); padding: 0.6rem 0.9rem; font-family: var(--sans); font-weight: 600; }
.skip:focus { top: 1rem; }

/* progress + top bar */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; background: var(--clay); transform-origin: 0 50%; transform: scaleX(0); }
.topbar { position: fixed; inset: 3px 0 auto 0; z-index: 50; display: flex; justify-content: space-between; align-items: baseline; padding: 0.9rem 1.25rem; pointer-events: none; mix-blend-mode: difference; color: #fff; }
.topbar a, .topbar p { pointer-events: auto; }
.wordmark { font-family: var(--serif-d); font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; color: inherit; line-height: 1; }
.now { margin: 0; font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; }
.now .of { opacity: 0.6; }

/* chapter rail: desktop only */
.rail { display: none; }
@media (min-width: 1100px) {
  .topbar .now { display: none; }
  .rail { display: block; position: fixed; left: clamp(1.5rem, 3vw, 3rem); top: 50%; transform: translateY(-50%); z-index: 40; mix-blend-mode: difference; }
  .rail ol { list-style: none; margin: 0; padding: 0; }
  .rail li { margin: 0; }
  .rail a { display: flex; gap: 0.75rem; align-items: baseline; color: #fff; text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 0; opacity: 0.38; transition: opacity 0.3s ease; }
  .rail a span { font-variant-numeric: tabular-nums; }
  .rail a:hover, .rail a.on { opacity: 1; }
  .rail a.on { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-thickness: 1px; }
}

/* hook */
.hook { position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); color: var(--on-dark); display: flex; align-items: center; padding: 6rem 1.5rem 6rem; overflow: hidden; }
.hook::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 40rem at 78% 28%, rgba(154, 74, 43, 0.22), transparent 62%), radial-gradient(50rem 36rem at 10% 100%, rgba(36, 70, 58, 0.5), transparent 60%); pointer-events: none; }
.hook-inner { position: relative; width: min(72rem, 100%); margin-inline: auto; }
.kicker { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 2rem; }
.hook h1 { font-family: var(--serif-d); font-weight: 400; font-size: clamp(2.25rem, 7.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; margin: 0 0 1.6rem; max-width: 18ch; text-wrap: balance; }
.hook-sub { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.5; max-width: 34rem; color: var(--on-dark-muted); margin: 0; }
.hook-hint { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.45; max-width: 34rem; color: var(--on-dark); margin: 1.1rem 0 0; }
.begin { position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--on-dark-muted); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; }
.begin i { width: 1px; height: 3rem; background: linear-gradient(var(--on-dark-muted), transparent); transform-origin: top; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* chapters */
.chapter { position: relative; padding: clamp(5rem, 14vh, 9rem) 1.5rem clamp(5rem, 14vh, 9rem); }
.chapter.paper { background: var(--paper); color: var(--ink); }
.chapter.green { background: var(--green); color: var(--on-dark); }
.chapter.sand { background: #e9dfcf; color: var(--ink); }
.chapter.ink { background: var(--night); color: var(--on-dark); }
.opener, .prose { width: min(var(--col), 100%); margin-inline: auto; }
.opener { margin-bottom: clamp(2.5rem, 7vh, 4.5rem); }
.num { font-family: var(--serif-d); font-size: clamp(6rem, 30vw, 13rem); line-height: 0.8; letter-spacing: -0.05em; margin: 0 0 1.25rem -0.04em; color: var(--clay); opacity: 0.9; font-variant-numeric: lining-nums; }
.green .num, .ink .num { color: rgba(244, 239, 230, 0.28); }
.chapter h2 { font-family: var(--serif-d); font-weight: 400; font-size: clamp(2.4rem, 7.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.prose p { margin: 0 0 1.6rem; max-width: var(--col); }
.prose p:last-child { margin-bottom: 0; }
.dropcap { display: flow-root; font-size: 1.35em; line-height: 1.38; font-family: var(--serif-d); letter-spacing: -0.01em; }
.dropcap::first-letter { float: left; font-family: var(--serif-d); font-size: 3.1em; line-height: 0.8; padding: 0.04em 0.1em 0 0; color: var(--clay); }
.green .dropcap::first-letter, .ink .dropcap::first-letter { color: #e6b99f; }

.pull { margin: 3rem 0 3rem; padding: 0; border: 0; }
.pull p { font-family: var(--serif-d); font-style: italic; font-size: clamp(2rem, 6.2vw, 3.3rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0; max-width: 16ch; text-wrap: balance; }
.pull::before { content: ""; display: block; width: 3.5rem; height: 2px; background: currentColor; opacity: 0.6; margin-bottom: 1.5rem; }
.pull.light p { color: var(--green); }
.pull.light::before { background: var(--clay); opacity: 1; }
.lead-out { font-family: var(--serif-d); font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.25; letter-spacing: -0.015em; }

.button { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.04em; background: var(--paper); color: var(--night); text-decoration: none; padding: 1rem 1.6rem; min-height: 3rem; border-radius: 2px; transition: background 0.2s ease, transform 0.2s ease; }
.button:hover { background: #fff; transform: translateY(-1px); }
.email-plain { font-family: var(--sans); font-size: 1rem; color: var(--on-dark-muted); }
.email-plain a { color: var(--on-dark); }

.site-footer { background: var(--night); color: var(--on-dark-muted); border-top: 1px solid rgba(244, 239, 230, 0.12); padding: 2rem 1.5rem 3rem; }
.foot-inner { width: min(var(--col), 100%); margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline; justify-content: space-between; font-family: var(--sans); font-size: 0.95rem; }
.foot-inner .wordmark { color: var(--on-dark); }
.social { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.social a { text-decoration: none; color: var(--on-dark); }
.social a:hover { text-decoration: underline; }
.place { margin: 0; }

/* timeline spread */
.spread { list-style: none; margin: clamp(3.5rem, 9vh, 6rem) auto 0; padding: 0; width: min(var(--col), 100%); border-top: 1px solid var(--line); }
.spread li { display: flex; flex-direction: column; gap: 0.2rem; padding: 1.4rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.spread b { font-family: var(--serif-d); font-weight: 400; font-size: clamp(3.2rem, 14vw, 6.2rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--clay); }
.spread span { font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spread li:nth-child(even) { padding-left: clamp(0rem, 8vw, 3.5rem); }

/* capabilities list */
.caps { list-style: none; margin: 2rem 0 2.2rem; padding: 0; border-top: 1px solid var(--line); max-width: var(--col); }
.caps li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.12rem; line-height: 1.5; }
.caps b { font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--clay); padding-top: 0.28rem; }

/* proof aside */
.proof { margin-top: 3rem; padding: 2rem 1.6rem; background: var(--green); color: var(--on-dark); border-radius: 2px; max-width: var(--col); }
.proof p { margin: 0 0 1.2rem; }
.proof p:last-child { margin: 0; }
.proof .label { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #e6b99f; }
.proof .big-line { font-family: var(--serif-d); font-size: clamp(1.45rem, 4.4vw, 1.9rem); line-height: 1.25; letter-spacing: -0.015em; }

/* voices */
.voices { width: min(var(--col), 100%); margin: clamp(3rem, 8vh, 5rem) auto 0; }
.voice { margin: 0 0 clamp(3rem, 9vh, 5.5rem); position: relative; padding-top: 3.2rem; }
.voice::before { content: "\201C"; position: absolute; top: -0.2rem; left: -0.05em; font-family: var(--serif-d); font-size: 6.5rem; line-height: 1; color: var(--clay); }
.voice blockquote { margin: 0; padding: 0; border: 0; }
.voice blockquote p { font-family: var(--serif-d); font-style: italic; font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.14; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.voice figcaption { margin-top: 1.1rem; font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.rating { width: min(var(--col), 100%); margin: 0 auto; display: flex; align-items: center; gap: 1.4rem; padding-top: 2rem; border-top: 1px solid rgba(27,23,20,0.2); }
.rating .big { font-family: var(--serif-d); font-size: 4.6rem; line-height: 0.9; margin: 0; color: var(--green); }
.rating .cap { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.4; color: var(--muted); }
.rating .cap strong { color: var(--ink); }

/* reveals: only when JS is on and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .num.reveal { transform: translateY(30px); transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .begin i { animation: none; transform: none; }
  .button { transition: none; }
  .rail a { transition: none; }
}

@media (min-width: 1100px) {
  .chapter { padding-left: 14rem; padding-right: 3rem; }
  .opener, .prose, .spread, .voices, .rating { margin-left: max(0px, calc((100% - var(--col)) / 2)); margin-right: 0; }
  .hook { padding-left: 14rem; }
  .site-footer { padding-left: 14rem; }
  .foot-inner { margin-left: max(0px, calc((100% - var(--col)) / 2)); }
}
@media (min-width: 1500px) {
  :root { --col: 38rem; }
}
@media print { .progress, .topbar, .rail, .begin { display: none; } .js .reveal { opacity: 1; transform: none; } }

/* offer */
.hook h1 { max-width: 18ch; }
.hook-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; margin: 2.25rem 0 0; }
.ghost { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: 0.04em; color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(244,239,230,0.45); padding-bottom: 0.2rem; }
.ghost:hover { border-color: var(--on-dark); }
.chapter.offer { background: var(--paper-2); color: var(--ink); border-top: 6px solid var(--clay); }
.forline { font-family: var(--sans); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay); margin-bottom: 1.2rem !important; }
.sub { font-family: var(--serif-d); font-weight: 400; font-size: clamp(1.7rem, 4.6vw, 2.2rem); letter-spacing: -0.02em; line-height: 1.1; margin: 3rem 0 1rem; }
.rules { list-style: none; margin: 0 0 1rem; padding: 0; max-width: var(--col); }
.rules li { padding: 1rem 0 1rem 1.2rem; border-left: 2px solid var(--clay); margin-bottom: 1rem; font-size: 1.1rem; line-height: 1.55; }
.rules b { font-weight: 400; font-family: var(--serif-d); font-size: 1.25rem; display: block; margin-bottom: 0.15rem; letter-spacing: -0.01em; }
.pilot { margin-top: 3.5rem; padding: 2.2rem 1.8rem 2.4rem; background: var(--green); color: var(--on-dark); border-radius: 2px; max-width: var(--col); }
.pilot p { margin: 0 0 1rem; }
.pilot .label { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: #e6b99f; }
.pilot .spots { font-family: var(--serif-d); font-size: clamp(3.4rem, 15vw, 5.6rem); line-height: 0.95; letter-spacing: -0.04em; margin-bottom: 0.6rem; }
.pilot .price { font-family: var(--serif-d); font-size: clamp(2.2rem, 7vw, 3rem); letter-spacing: -0.02em; line-height: 1; }
.token { border-bottom: 2px dashed #e6b99f; padding-bottom: 0.1rem; }
.pilot .button { margin-top: 0.6rem; }

@media (max-height: 760px) { .begin { display: none; } }
@media (min-width: 900px) { .hook h1 { max-width: 22ch; } }

/* solid top bar on small screens so it never overlaps headings */
@media (max-width: 1099px) {
  .topbar { background: rgba(20, 17, 15, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); mix-blend-mode: normal; color: #f4efe6; padding: 0.7rem 1.25rem; align-items: center; }
  .topbar .wordmark { font-size: 1.1rem; }
  html { scroll-padding-top: 4.25rem; }
  .chapter { padding-top: clamp(6.5rem, 16vh, 9rem); }
}

.pilot .small { font-family: var(--sans); font-size: 0.95rem; color: var(--on-dark-muted); margin: 0.2rem 0 0; }
.pilot .small a { color: var(--on-dark); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.why { list-style: none; margin: 0 0 1.6rem; padding: 0; max-width: var(--col); }
.why li { padding: 0.95rem 0 0.95rem 1.2rem; border-left: 2px solid var(--clay); margin-bottom: 0.75rem; font-size: 1.12rem; line-height: 1.5; }
.why-quote { margin: 0 0 1.5rem; padding: 0; border: 0; max-width: var(--col); }
.why-quote p { font-family: var(--serif-d); font-style: italic; font-size: clamp(1.45rem, 3.6vw, 1.85rem); line-height: 1.3; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.why-quote cite { font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.stack { width: 100%; max-width: var(--col); border-collapse: collapse; margin: 0.4rem 0 2rem; }
.stack th, .stack td { text-align: left; padding: 0.85rem 0.4rem 0.85rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; font-weight: 400; }
.stack thead th { font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.stack .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; width: 6.5rem; }
.stack td { font-size: 1.05rem; line-height: 1.4; }
.stack .total th, .stack .total td { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); font-family: var(--serif-d); font-size: 1.2rem; padding-top: 1rem; }
.stack .pilot-row th, .stack .pilot-row td { border-bottom: 0; color: var(--clay); font-family: var(--serif-d); font-size: 1.45rem; padding-top: 0.9rem; }
.commitment { margin: 0 0 1.2rem; padding: 0.2rem 0 0.2rem 1.3rem; border-left: 3px solid var(--clay); max-width: var(--col); }
.commitment p { font-family: var(--serif-d); font-size: clamp(1.35rem, 3.4vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; margin: 0; }
.faq { margin: 0; padding: 0; max-width: var(--col); }
.faq > div { margin: 0 0 1.5rem; }
.faq dt { font-family: var(--serif-d); font-size: 1.3rem; line-height: 1.3; margin: 0 0 0.35rem; }
.faq dd { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.button.on-paper { background: var(--green); color: var(--on-dark); }
.button.on-paper:hover { background: var(--green-deep); color: var(--on-dark); }
