/* The Split — standalone stylesheet, FounderPact letterpress system. */
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  --paper: #f8f5ee; --ink: #1a1917; --sub2: #6f6a5e; --gold: #b08b3e; --gold-deep: #8f6f2e;
  --oxblood: #7a2e1f; --hair: rgba(26,25,23,0.14); --serif: 'Fraunces', Georgia, serif;
  background: var(--paper); color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }

#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 70; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 44px); background: rgba(248,245,238,0.85); backdrop-filter: saturate(1.3) blur(12px); -webkit-backdrop-filter: saturate(1.3) blur(12px); box-shadow: 0 1px 0 var(--hair); }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark span { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { text-decoration: none; color: var(--sub2); font-size: 13.5px; font-weight: 500; }
.topnav a:hover { color: var(--ink); }
.topnav .nav-cta { color: var(--gold-deep); font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
@media (max-width: 760px) { .topnav a:not(.nav-cta) { display: none; } }

.seal-btn { display: inline-block; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 16px; color: #fff; padding: 15px 32px; border-radius: 999px;
  background: linear-gradient(160deg, #c9a45a 0%, var(--gold) 45%, var(--gold-deep) 100%);
  box-shadow: 0 12px 30px rgba(143,111,46,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.16s ease, box-shadow 0.16s ease; }
.seal-btn:hover { transform: translateY(-1.5px); box-shadow: 0 16px 38px rgba(143,111,46,0.36), inset 0 1px 0 rgba(255,255,255,0.35); }
.line-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; border-bottom: 1px solid var(--hair); padding-bottom: 3px; }
.line-link:hover { border-color: var(--ink); }
.line-link .arr { color: var(--gold-deep); }
.ghost-link { background: none; border: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--gold-deep); font-weight: 600; padding: 0; margin-top: 14px; }
.ghost-link:hover { text-decoration: underline; }
.status { font-size: 14px; color: var(--sub2); margin-left: 12px; }

.letterhead { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sub2); margin-bottom: 30px; }
.letterhead::before { content: "● ○ "; color: var(--gold); }
.clause-tag { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.clause-tag::after { content: ""; height: 1px; width: 72px; background: var(--gold); opacity: 0.5; }
.serif-h { font-family: var(--serif); font-weight: 560; font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -0.012em; line-height: 1.08; font-variation-settings: 'opsz' 144; }
.body { color: var(--sub2); max-width: 640px; font-size: 17px; line-height: 1.65; margin-top: 20px; }
.body a, .a-src a { color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid rgba(176,139,62,0.45); }
.body a:hover, .a-src a:hover { border-color: var(--gold-deep); }
.body b { color: var(--ink); }
.margin-note { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--sub2); line-height: 1.5; }
.margin-note.center { text-align: center; margin-top: 46px; }

.cover { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 140px clamp(24px, 6vw, 90px) 60px; max-width: 1180px; margin: 0 auto; }
.display { font-family: var(--serif); font-weight: 560; font-size: clamp(40px, 6vw, 84px); line-height: 1.04; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.cover-sub { margin-top: 28px; font-size: clamp(16.5px, 1.5vw, 19px); color: var(--sub2); max-width: 56ch; line-height: 1.6; }
.cover-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; flex-wrap: wrap; }

.act { padding: 120px 0; }
.act.alt { background: #fffdf7; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 60px); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 44px 0 10px; }
.stat { background: #fffdf7; border: 1px solid var(--hair); border-radius: 6px; padding: 26px; }
.act.alt .stat { background: var(--paper); }
.stat-n { font-family: var(--serif); font-weight: 600; font-size: 44px; color: var(--gold-deep); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--sub2); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }

.grave-h { font-family: var(--serif); font-weight: 580; font-size: 28px; margin-top: 70px; letter-spacing: -0.01em; }
.ledger { margin-top: 26px; max-width: 820px; border-top: 1px solid var(--hair); }
.amend { position: relative; display: flex; align-items: baseline; gap: clamp(14px, 3vw, 30px); padding: 26px 120px 26px 4px; border-bottom: 1px solid var(--hair); transition: background 0.2s; }
.amend:hover { background: rgba(176,139,62,0.04); }
.a-no { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 16px; flex: none; width: 60px; }
.a-body { display: flex; flex-direction: column; gap: 6px; }
.a-when { font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -0.01em; }
.a-what { color: var(--sub2); font-size: 15px; line-height: 1.55; max-width: 56ch; }
.a-src { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--gold-deep); }
.a-stamp { position: absolute; right: 8px; top: 34px; font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); border: 1.5px solid rgba(176,139,62,0.75); border-radius: 4px; padding: 6px 12px; transform: rotate(-7deg); opacity: 0.85; }
@media (max-width: 640px) { .amend { padding-right: 8px; flex-wrap: wrap; } .a-stamp { position: static; display: inline-block; margin-top: 6px; } }

/* founder cards */
.fcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 40px; }
.fcard { background: var(--paper); border: 1px solid var(--hair); border-radius: 8px; padding: 24px; position: relative; }
.fcard .f-rm { position: absolute; top: 10px; right: 12px; background: none; border: none; cursor: pointer; color: var(--sub2); font-size: 20px; }
.fcard .f-rm:hover { color: var(--oxblood); }
.fcard h4 input { font-family: var(--serif); font-weight: 600; font-size: 21px; border: none; background: transparent; color: var(--ink); width: 100%; border-bottom: 1px dashed transparent; }
.fcard h4 input:focus { outline: none; border-bottom-color: var(--gold); }
.frow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 14.5px; color: var(--sub2); }
.frow b { color: var(--ink); font-weight: 600; font-size: 14px; }
.frow input[type=number] { width: 110px; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); text-align: right; }
.frow input[type=number]:focus { outline: none; border-color: var(--gold); }
.frow select { padding: 8px 10px; border: 1px solid var(--hair); border-radius: 8px; background: #fff; font: inherit; font-size: 13.5px; color: var(--ink); }
.seg { display: flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13px; padding: 7px 14px; cursor: pointer; color: var(--sub2); }
.seg button.on { background: var(--ink); color: #fff; }
.idea-toggle { accent-color: var(--gold-deep); width: 17px; height: 17px; }

.weights { margin-top: 34px; max-width: 720px; }
.weights summary { font-family: var(--serif); font-style: italic; color: var(--gold-deep); cursor: pointer; font-size: 16px; }
.weights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 34px; margin-top: 20px; }
.weights-grid label { font-size: 13.5px; color: var(--sub2); font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.weights-grid .wv { color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.weights input[type=range] { accent-color: var(--gold-deep); }
.formula { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--sub2); line-height: 1.6; }

.result { margin-top: 44px; }
.result-bar { display: flex; height: 58px; border-radius: 6px; overflow: hidden; border: 1px solid var(--hair); }
.result-bar .seg-bar { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; transition: width 0.6s cubic-bezier(.2,.7,.2,1); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.result-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; }
.result-legend .lg { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sub2); }
.result-legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.flags { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.flag { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--oxblood); }
.flag.ok { color: var(--gold-deep); }

/* scenarios */
.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 44px; }
.scn { background: #fffdf7; border: 1px solid var(--hair); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.scn h4 { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.scn p { color: var(--sub2); font-size: 14.5px; line-height: 1.55; }
.scn .run { align-self: flex-start; border: 1px solid var(--gold); background: transparent; color: var(--gold-deep); font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 20px; border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.scn .run:hover { background: var(--gold-deep); color: #fff; border-color: var(--gold-deep); }
.scn .out { display: none; border-top: 1px dashed var(--hair); padding-top: 14px; }
.scn.ran .out { display: block; }
.scn .mini-bars { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.scn .mb { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--sub2); }
.scn .mb i { display: block; height: 12px; border-radius: 3px; background: var(--gold); transition: width 0.7s cubic-bezier(.2,.7,.2,1); }
.scn .mb i.bad { background: var(--oxblood); }
.scn .verdict { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; display: inline-block; }
.scn .verdict.ok { color: var(--gold-deep); background: rgba(176,139,62,0.12); }
.scn .verdict.mid { color: var(--ink); background: rgba(26,25,23,0.07); }
.scn .verdict.bad { color: #fff; background: var(--oxblood); }
.scn .lesson { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--sub2); }

/* protections + ticket */
.protections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 38px; max-width: 900px; }
.prot { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px solid var(--hair); border-radius: 8px; padding: 18px; cursor: pointer; }
.prot input { margin-top: 4px; accent-color: var(--gold-deep); width: 17px; height: 17px; flex: none; }
.prot b { font-family: var(--serif); font-weight: 600; font-size: 17px; display: block; }
.prot i { display: block; font-style: normal; color: var(--sub2); font-size: 13.5px; margin-top: 3px; line-height: 1.45; }

.ticket { position: relative; max-width: 420px; margin: 48px 0 0; background: #fffdf7; border: 1px solid rgba(176,139,62,0.5); border-radius: 8px; padding: 26px 24px 22px; box-shadow: 0 18px 50px rgba(26,25,23,0.12); }
.ticket::before { content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(176,139,62,0.4); border-radius: 5px; pointer-events: none; }
.t-band { font-size: 10.5px; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-deep); }
.t-shares { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.t-share { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 18px; }
.t-share b { font-weight: 600; }
.t-share span { font-variant-numeric: tabular-nums; color: var(--gold-deep); font-weight: 600; }
.t-line { height: 1px; background: var(--hair); margin: 16px auto 12px; width: 82%; }
.t-meta { display: flex; justify-content: space-between; align-items: center; color: var(--sub2); font-size: 13px; }
.t-grade { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--gold-deep); }
.t-note { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--sub2); margin-top: 10px; }
.sheet-actions { margin-top: 18px; }

.closer { margin-top: 110px; border-top: 1px solid var(--hair); padding-top: 80px; }

.colophon { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 40px clamp(24px, 5vw, 44px); border-top: 1px solid var(--hair); color: var(--sub2); font-size: 13px; }
.colophon a { color: var(--sub2); }

/* prologue film */
.cover { position: relative; overflow: hidden; }
.cover-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; z-index: 0; }
.cover-film.on { opacity: 0.5; }
.cover-wash { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse 85% 70% at 38% 45%, rgba(248,245,238,0.15) 0%, rgba(248,245,238,0.85) 80%, var(--paper) 100%),
  linear-gradient(180deg, rgba(248,245,238,0.6) 0%, rgba(248,245,238,0.15) 40%, rgba(248,245,238,0.95) 94%); }
.cover-inner { position: relative; z-index: 2; }

/* the agreement CTA */
.agree-cta { margin-top: 42px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* the run */
.run-stage { margin-top: 44px; background: var(--paper); border: 1px solid var(--hair); border-radius: 10px; padding: clamp(26px, 4vw, 52px); box-shadow: 0 30px 80px rgba(26,25,23,0.08); position: relative; }
.run-stage::before { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(176,139,62,0.22); border-radius: 6px; pointer-events: none; }
.run-stage > * { position: relative; }
.run-idle { text-align: center; padding: 26px 0 12px; }
.run-tease { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: var(--sub2); max-width: 56ch; margin: 0 auto 30px; font-style: italic; }
.run-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.run-no { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); }
.run-rail { display: flex; gap: 4px; margin-bottom: 30px; }
.run-rail i { flex: 1; height: 2px; background: var(--hair); position: relative; transition: background 0.5s ease; }
.run-rail i.done { background: var(--gold); }
.run-rail i::after { content: attr(data-m); position: absolute; top: 8px; left: 0; font-size: 10px; letter-spacing: 0.12em; color: var(--sub2); text-transform: uppercase; }
.run-story { min-height: 168px; margin-bottom: 26px; }
.beat-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 12px; }
.beat-text { font-family: var(--serif); font-weight: 480; font-size: clamp(19px, 2.4vw, 26px); line-height: 1.45; letter-spacing: -0.005em; font-variation-settings: 'opsz' 60; max-width: 30em; }
.beat-text .cursor { display: inline-block; width: 2px; height: 1em; background: var(--gold-deep); vertical-align: -0.15em; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.beat-verdict { margin-top: 16px; display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; transform: rotate(-4deg) scale(1.4); opacity: 0; transition: transform 0.4s cubic-bezier(.2,1.5,.3,1), opacity 0.25s ease; border: 1.5px solid; }
.beat-verdict.in { opacity: 0.9; transform: rotate(-4deg) scale(1); }
.beat-verdict.ok { color: var(--gold-deep); border-color: rgba(176,139,62,0.75); }
.beat-verdict.bad { color: var(--oxblood); border-color: rgba(122,46,31,0.6); }
.beat-verdict.mid { color: var(--ink); border-color: var(--hair); }
.run-bar .seg-bar.gone { background: repeating-linear-gradient(45deg, var(--oxblood) 0 7px, #93503f 7px 14px) !important; }
.run-bar .seg-bar.inv { background: #a9a394 !important; }
.run-bar .seg-bar.flash { animation: goldPulse 1s ease 1; }
@keyframes goldPulse { 30% { box-shadow: inset 0 0 0 999px rgba(176,139,62,0.35); } }

/* fate */
.fate { text-align: center; padding: 12px 0 8px; }
.fate-film { width: min(100%, 520px); border-radius: 8px; border: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(26,25,23,0.16); margin: 0 auto 24px; display: block; }
.fate-kicker { font-size: 11px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.fate-name { font-family: var(--serif); font-weight: 570; font-size: clamp(32px, 4.6vw, 50px); letter-spacing: -0.015em; line-height: 1.05; }
.fate-epitaph { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: clamp(15px, 1.8vw, 18px); line-height: 1.6; max-width: 52ch; margin: 14px auto 0; }
.fate-ticket { margin: 30px auto 0; text-align: left; }
.fate-actions { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.ghost-link.big { font-size: 15px; margin-top: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } }
