/* FounderPact v3 — the pact document. Editorial letterpress, lens hero, clause structure. */

@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; }

[hidden] { display: none !important; }
body.home {
  --paper: #f8f5ee;
  --ink: #1a1917;
  --sub2: #6f6a5e;
  --gold: #b08b3e;
  --gold-deep: #8f6f2e;
  --oxblood: #7a2e1f;
  --hair: rgba(26, 25, 23, 0.14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  background: var(--paper);
  color: var(--ink);
  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"); }

/* the spine — a wall that fills as you read */
.spine { position: fixed; left: clamp(18px, 4vw, 64px); top: 0; bottom: 0; width: 1px; background: var(--hair); z-index: 5; }
.spine i { position: absolute; top: 0; left: 0; width: 1px; height: 0; background: linear-gradient(var(--gold-deep), var(--gold)); display: block; }
.spine i::after { content: ""; position: absolute; bottom: -3px; left: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) { .spine { display: none; } }

/* header */
#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); transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s; }
#topbar.scrolled { background: rgba(248, 245, 238, 0.8); 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; letter-spacing: 0.01em; font-variation-settings: 'opsz' 40; }
.topnav { display: flex; align-items: center; gap: 26px; }
.topnav a { text-decoration: none; color: var(--sub2); font-size: 13.5px; font-weight: 500; letter-spacing: 0.01em; }
.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 { display: none; } }

/* mobile menu */
.burger { display: none; background: none; border: 0; padding: 10px 4px; cursor: pointer; position: relative; z-index: 95; flex-direction: column; gap: 7px; }
.burger span { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform 0.3s ease; }
.burger.open span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger.open span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }
@media (max-width: 760px) { .burger { display: flex; } }
.mnav { position: fixed; inset: 0; z-index: 65; background: var(--paper); display: flex; flex-direction: column; justify-content: center; padding: 80px 34px 40px; }
.mnav[hidden] { display: none; }
.mnav::after { content: ""; position: absolute; inset: 0; 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"); }
.mnav a { font-family: var(--serif); font-weight: 560; font-size: clamp(30px, 8.5vw, 38px); letter-spacing: -0.015em; color: var(--ink); text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--hair); display: block; opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.mnav a.gold { color: var(--gold-deep); border-bottom: 0; }
.mnav.open a { opacity: 1; transform: none; }
.mnav.open a:nth-child(1) { transition-delay: 0.05s; }
.mnav.open a:nth-child(2) { transition-delay: 0.12s; }
.mnav.open a:nth-child(3) { transition-delay: 0.19s; }
.mnav.open a:nth-child(4) { transition-delay: 0.26s; }
.mnav.open a:nth-child(5) { transition-delay: 0.33s; }
.mnav.open a:nth-child(6) { transition-delay: 0.4s; }
.mnav-foot { position: absolute; bottom: 32px; left: 34px; right: 34px; font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 14px; }

/* hidden video source for the lens */
#lensVideo { position: absolute; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; top: 0; left: 0; }

/* ---------- cover ---------- */
.cover { min-height: 100vh; display: flex; align-items: center; padding: 120px clamp(20px, 5vw, 72px) 60px clamp(56px, 8vw, 130px); }
.cover-grid { display: grid; grid-template-columns: minmax(340px, 1.15fr) minmax(300px, 0.85fr); gap: clamp(30px, 5vw, 80px); align-items: center; width: 100%; max-width: 1280px; margin: 0 auto; }
@media (max-width: 900px) { .cover { padding-top: 110px; } .cover-grid { grid-template-columns: 1fr; gap: 26px; } }
.letterhead { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sub2); margin-bottom: 34px; }
.letterhead::before { content: "● ○ "; color: var(--gold); letter-spacing: 0; }
.cover-title { font-family: var(--serif); font-weight: 560; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.015em; font-variation-settings: 'opsz' 144, 'SOFT' 30; max-width: 12ch; }
.cover-title em { font-style: normal; color: inherit; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
.cover-sub { margin-top: 30px; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--sub2); max-width: 46ch; }
.cover-actions { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.cover-actions.center { justify-content: center; }
.seal-btn { display: inline-block; text-decoration: none; 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); }

.cover-lens { margin: 0; text-align: center; }
#venn { width: min(100%, 520px); aspect-ratio: 1 / 1; display: block; margin: 0 auto; position: relative; z-index: 0; }
@media (max-width: 900px) { #venn { width: min(86vw, 420px); } }
.cover-copy { position: relative; z-index: 2; }
.cover-lens .margin-note { position: relative; z-index: 2; }
.margin-note { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--sub2); line-height: 1.5; max-width: 34ch; margin: 14px auto 0; font-variation-settings: 'opsz' 20; }
.margin-note #alignPct { color: var(--gold-deep); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- clause scaffolding ---------- */
.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.06; font-variation-settings: 'opsz' 144; }
section .body { color: var(--sub2); max-width: 620px; font-size: 17px; line-height: 1.65; margin-top: 20px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 40px) 0 clamp(56px, 9vw, 130px); }
@media (max-width: 900px) { .wrap { padding-left: 24px; } }

/* pinned scaffolding */
.pin { position: relative; }
.pin .pin-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* ---------- clause 01: kinetic ---------- */
.problem .pin-stage { flex-direction: column; }
.problem .clause-tag { position: absolute; top: 13vh; }
.kinetic { position: absolute; max-width: 940px; padding: 0 28px; text-align: center;
  font-family: var(--serif); font-weight: 540; font-variation-settings: 'opsz' 144, 'SOFT' 25;
  font-size: clamp(32px, 5.2vw, 64px); line-height: 1.1; letter-spacing: -0.012em; }
.kinetic .w { display: inline-block; opacity: 0; transform: translateY(0.45em) rotate(0.5deg); filter: blur(3px); transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.4s ease; }
.kinetic.on .w { opacity: 1; transform: none; filter: none; }
.kinetic.done { opacity: 0; transform: translateY(-26px); transition: opacity 0.4s, transform 0.4s; }
.kinetic .g { color: var(--gold-deep); font-style: italic; }
.stage-note { position: absolute; bottom: 11vh; opacity: 0; transition: opacity 0.6s ease 0.2s; }
.pin-stage .stage-note.on { opacity: 1; }

/* ---------- clause 02: method ---------- */
.how { background: #fffdf7; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pin-stage.split { display: grid; grid-template-columns: minmax(320px, 440px) minmax(320px, 540px); gap: clamp(40px, 7vw, 110px); align-items: center; padding: 0 28px 0 clamp(56px, 9vw, 130px); }
@media (max-width: 900px) { .pin-stage.split { grid-template-columns: 1fr; gap: 30px; align-content: center; padding-left: 24px; } }
.how-copy { position: relative; min-height: 260px; }
.how-copy .clause-tag { position: absolute; top: -66px; }
.how-step { position: absolute; inset: 26px 0 auto 0; opacity: 0; transform: translateY(20px); transition: opacity 0.45s ease, transform 0.45s ease; }
.how-step.on { opacity: 1; transform: none; }
.how-step h2 { font-family: var(--serif); font-weight: 580; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.01em; margin: 8px 0 14px; }
.how-step p { color: var(--sub2); max-width: 400px; font-size: 16.5px; line-height: 1.6; }
.how-step .num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-deep); }
.how-dots { position: absolute; bottom: -62px; display: flex; gap: 8px; }
.how-dots i { width: 26px; height: 2px; background: var(--hair); transition: background 0.3s; }
.how-dots i.on { background: var(--gold); }

.how-viz { position: relative; height: min(60vh, 540px); }
.iv-card { position: absolute; width: min(46%, 215px); background: #fff; border: 1px solid var(--hair); border-radius: 4px 14px 14px 14px; padding: 16px; box-shadow: 0 14px 40px rgba(26,25,23,0.07); transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.6s ease; }
.iv-card.you { left: 0; top: 8%; border-top: 3px solid var(--ink); }
.iv-card.them { right: 0; top: 30%; border-top: 3px solid var(--gold); }
.iv-head { font-size: 13px; font-weight: 700; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 8px; }
.iv-head span { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--sub2); font-size: 12px; }
.iv-lines i { display: block; height: 9px; border-radius: 5px; background: repeating-linear-gradient(90deg, rgba(26,25,23,0.2) 0 8px, rgba(26,25,23,0.05) 8px 12px); margin-bottom: 9px; filter: blur(0.5px); }
.iv-mediator { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%) scale(0.6); opacity: 0; width: 70px; height: 70px; border-radius: 50%; background: #fff; border: 1px solid var(--hair); box-shadow: 0 18px 50px rgba(26,25,23,0.11); display: flex; align-items: center; justify-content: center; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
.iv-out { position: absolute; left: 50%; top: 62%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: max-content; }
.chip { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease, transform 0.4s ease; }
.chip.ok { border-color: rgba(176,139,62,0.5); color: var(--gold-deep); background: rgba(176,139,62,0.07); }
.chip.mid { color: var(--ink); }
.chip.hard { color: var(--oxblood); border-color: rgba(122,46,31,0.32); }
.iv-pact { position: absolute; left: 50%; top: 16%; transform: translate(-50%, 0) scale(0.92); width: min(80%, 330px); background: #fff; border: 1px solid var(--hair); border-radius: 6px; padding: 26px; opacity: 0; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); box-shadow: 0 22px 60px rgba(26,25,23,0.1); }
.iv-pact-title { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 16px; }
.iv-pact-line { height: 7px; border-radius: 4px; background: rgba(26,25,23,0.08); margin-bottom: 9px; }
.iv-pact-line.w9 { width: 92%; } .iv-pact-line.w7 { width: 68%; } .iv-pact-line.w8 { width: 80%; }
.iv-pact-trigger { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--gold-deep); }
.iv-pact::after { content: ""; position: absolute; right: 18px; bottom: 16px; width: 34px; height: 34px; border-radius: 50%; opacity: 0.85;
  background: radial-gradient(circle at 35% 32%, #d6b36a, var(--gold) 55%, var(--gold-deep));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='26' cy='32' r='17' fill='none' stroke='black' stroke-width='5'/%3E%3Ccircle cx='38' cy='32' r='17' fill='none' stroke='black' stroke-width='5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='26' cy='32' r='17' fill='none' stroke='black' stroke-width='5'/%3E%3Ccircle cx='38' cy='32' r='17' fill='none' stroke='black' stroke-width='5'/%3E%3C/svg%3E") center/contain no-repeat; }

#howViz[data-state="0"] .iv-card { opacity: 1; }
#howViz[data-state="1"] .iv-card.you { transform: translate(52%, 46%) scale(0.62); opacity: 0.4; }
#howViz[data-state="1"] .iv-card.them { transform: translate(-52%, 8%) scale(0.62); opacity: 0.4; }
#howViz[data-state="1"] .iv-mediator { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#howViz[data-state="1"] .chip { opacity: 1; transform: none; }
#howViz[data-state="1"] .chip:nth-child(1) { transition-delay: 0.05s; }
#howViz[data-state="1"] .chip:nth-child(2) { transition-delay: 0.15s; }
#howViz[data-state="1"] .chip:nth-child(3) { transition-delay: 0.25s; }
#howViz[data-state="1"] .chip:nth-child(4) { transition-delay: 0.35s; }
#howViz[data-state="2"] .iv-card { opacity: 0; transform: translateY(30px) scale(0.6); }
#howViz[data-state="2"] .iv-mediator { opacity: 0; transform: translate(-50%, -170%) scale(0.5); }
#howViz[data-state="2"] .iv-out .chip { opacity: 0; transform: translateY(-16px); }
#howViz[data-state="2"] .iv-pact { opacity: 1; transform: translate(-50%, 22%) scale(1); }

/* ---------- clause 03: rehearsal ---------- */
.demo { padding: 140px 0; }
.demo-card { margin-top: 44px; background: #fffdf7; border: 1px solid var(--hair); border-radius: 6px; padding: clamp(26px, 4vw, 52px); max-width: 720px; box-shadow: 0 30px 80px rgba(26,25,23,0.08); position: relative; }
.demo-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176,139,62,0.25); border-radius: 3px; pointer-events: none; }
.demo-progress { display: flex; gap: 8px; margin-bottom: 32px; position: relative; z-index: 1; }
.demo-progress i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--hair); transition: all 0.3s; }
.demo-progress i.on { background: var(--gold); border-color: var(--gold); }
.dq { font-family: var(--serif); font-weight: 560; font-size: clamp(21px, 2.7vw, 29px); letter-spacing: -0.01em; line-height: 1.28; margin-bottom: 28px; font-variation-settings: 'opsz' 60; }
.dopts { display: flex; flex-direction: column; gap: 11px; }
.dopt { display: flex; gap: 14px; align-items: baseline; text-align: left; font: inherit; font-size: 16.5px; line-height: 1.4; padding: 15px 18px; border-radius: 3px; border: 1px solid var(--hair); background: transparent; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; color: var(--ink); }
.dopt:hover { border-color: var(--gold); background: rgba(176,139,62,0.05); transform: translateX(3px); }
.dopt .ab { font-family: var(--serif); font-style: italic; color: var(--gold-deep); flex: none; }
.dnote { margin-top: 20px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--sub2); }
.dnote b { color: var(--gold-deep); font-weight: 600; }

.dreport-head { text-align: center; margin-bottom: 26px; }
.dreport-head .small-cap { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.dreport-head h3 { font-family: var(--serif); font-weight: 580; font-size: 28px; letter-spacing: -0.01em; margin-top: 10px; }
.drow { display: flex; align-items: baseline; gap: 16px; padding: 15px 4px; border-bottom: 1px dotted var(--hair); opacity: 0; transform: translateY(12px); animation: drowIn 0.45s ease forwards; }
.drow .dim { font-family: var(--serif); font-weight: 600; font-size: 17px; flex: none; width: 128px; }
.drow .why { color: var(--sub2); font-size: 14.5px; line-height: 1.45; flex: 1; }
.drow .verdict { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; flex: none; }
.drow .verdict.ok { color: var(--gold-deep); }
.drow .verdict.mid { color: var(--ink); }
.drow .verdict.hard { color: var(--oxblood); }
@keyframes drowIn { to { opacity: 1; transform: none; } }
.dpunch { margin-top: 28px; text-align: center; color: var(--sub2); font-size: 15.5px; line-height: 1.6; }
.dpunch b { color: var(--ink); }
.dcta { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 28px; flex-wrap: wrap; }
.dcta .ghost-link { background: none; border: none; cursor: pointer; font: inherit; font-size: 15px; color: var(--sub2); border-bottom: 1px solid var(--hair); padding: 0 0 2px; }
.dcta .ghost-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- clause 04: wall ---------- */
.privacy { background: #fffdf7; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 140px 0; }
.wall-stage { position: relative; margin-top: 46px; display: grid; grid-template-columns: 1fr 1px 1fr; gap: clamp(20px, 5vw, 60px); align-items: center; max-width: 720px; min-height: 190px; }
.wall-line { width: 1px; height: 100%; min-height: 175px; background: linear-gradient(transparent, var(--ink) 15%, var(--ink) 85%, transparent); position: relative; }
.wall-line::after { content: "the wall"; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--sub2); white-space: nowrap; }
.wall-side { display: flex; flex-direction: column; gap: 14px; }
.wall-side.left { align-items: flex-end; }
.wall-side.right { align-items: flex-start; }
.secret { font-family: var(--serif); font-style: italic; font-size: 16.5px; color: var(--ink); padding: 9px 16px; background: #fff; border: 1px solid var(--hair); border-radius: 3px; transform: translateX(-40px); opacity: 0; transition: transform 0.7s cubic-bezier(.2,.7,.2,1), opacity 0.5s, filter 0.7s, background 0.7s; }
.wall-stage.play .secret { transform: translateX(0); opacity: 1; filter: blur(5px); background: rgba(26,25,23,0.06); }
.badge-out { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 16px; border-radius: 999px; background: rgba(176,139,62,0.1); color: var(--gold-deep); border: 1px solid rgba(176,139,62,0.4); opacity: 0; transform: translateX(-14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.badge-out[data-w="1"] { background: rgba(26,25,23,0.05); color: var(--ink); border-color: var(--hair); }
.wall-stage.play .badge-out { opacity: 1; transform: none; }
.wall-stage.play .secret[data-w="0"], .wall-stage.play .badge-out[data-w="0"] { transition-delay: 0.1s; }
.wall-stage.play .secret[data-w="1"], .wall-stage.play .badge-out[data-w="1"] { transition-delay: 0.5s; }
.wall-stage.play .secret[data-w="2"], .wall-stage.play .badge-out[data-w="2"] { transition-delay: 0.9s; }

/* ---------- clause 05 ---------- */
.living { padding: 140px 0; }
.ledger { margin-top: 46px; max-width: 760px; border-top: 1px solid var(--hair); }
.amend { position: relative; display: flex; align-items: baseline; gap: clamp(16px, 3vw, 34px); padding: 26px 130px 26px 4px; transition: background 0.2s ease; }
.amend:hover { background: rgba(176,139,62,0.04); }
.amend::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hair); transform: scaleX(0); transform-origin: left center; transition: transform 0.9s ease; }
.a-no { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 16px; flex: none; width: 64px; opacity: 0; transform: translateX(-10px); transition: opacity 0.45s ease, transform 0.45s ease; }
.a-body { display: flex; flex-direction: column; gap: 4px; }
.a-when { font-family: var(--serif); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); letter-spacing: -0.01em;
  background-image: linear-gradient(var(--ink), var(--ink)); background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: background-size 0.85s cubic-bezier(.3,.6,.3,1); }
.a-what { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 14.5px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease; }
.a-stamp { position: absolute; right: 8px; top: 50%; 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: translateY(-50%) rotate(-7deg) scale(1.5); opacity: 0; transition: transform 0.45s cubic-bezier(.2,1.5,.3,1), opacity 0.25s ease; }

.ledger.play .amend::after { transform: scaleX(1); }
.ledger.play .a-no { opacity: 1; transform: none; }
.ledger.play .a-when { background-size: 100% 100%; }
.ledger.play .a-what { opacity: 1; transform: none; }
.ledger.play .a-stamp { opacity: 0.85; transform: translateY(-50%) rotate(-7deg) scale(1); }
.ledger.play .amend:nth-child(1) .a-no, .ledger.play .amend:nth-child(1)::after { transition-delay: 0s; }
.ledger.play .amend:nth-child(1) .a-when { transition-delay: 0.15s; }
.ledger.play .amend:nth-child(1) .a-what { transition-delay: 0.55s; }
.ledger.play .amend:nth-child(1) .a-stamp { transition-delay: 0.9s; }
.ledger.play .amend:nth-child(2) .a-no, .ledger.play .amend:nth-child(2)::after { transition-delay: 0.55s; }
.ledger.play .amend:nth-child(2) .a-when { transition-delay: 0.7s; }
.ledger.play .amend:nth-child(2) .a-what { transition-delay: 1.1s; }
.ledger.play .amend:nth-child(2) .a-stamp { transition-delay: 1.45s; }
.ledger.play .amend:nth-child(3) .a-no, .ledger.play .amend:nth-child(3)::after { transition-delay: 1.1s; }
.ledger.play .amend:nth-child(3) .a-when { transition-delay: 1.25s; }
.ledger.play .amend:nth-child(3) .a-what { transition-delay: 1.65s; }
.ledger.play .amend:nth-child(3) .a-stamp { transition-delay: 2s; }
.ledger.play .amend:nth-child(4) .a-no, .ledger.play .amend:nth-child(4)::after { transition-delay: 1.65s; }
.ledger.play .amend:nth-child(4) .a-when { transition-delay: 1.8s; }
.ledger.play .amend:nth-child(4) .a-what { transition-delay: 2.2s; }
.ledger.play .amend:nth-child(4) .a-stamp { transition-delay: 2.55s; }
@media (max-width: 640px) { .amend { padding-right: 12px; } .a-stamp { position: static; transform: rotate(-7deg) scale(1.5); align-self: center; margin-left: auto; } .ledger.play .a-stamp { transform: rotate(-7deg) scale(1); } }

/* ---------- signature ---------- */
.signature { padding: 160px 0 130px; text-align: center; }
.signature .inner { max-width: 760px; }
.seal-film { margin: 0 auto 36px; width: min(64vw, 320px); aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; border: 1px solid var(--hair); box-shadow: 0 30px 80px rgba(26,25,23,0.18), inset 0 0 0 6px rgba(248,245,238,0.5); }
.seal-film video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.sig-title { font-family: var(--serif); font-weight: 560; font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -0.015em; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
.signature .cover-actions { margin-top: 38px; }
.closer-sub { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 15.5px; margin-top: 22px; }

.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); }
.colophon a:hover { color: var(--ink); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- invite modal + code gate ---------- */
button.seal-btn { border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26,25,23,0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(94vw, 520px); background: #fffdf7; border: 1px solid var(--hair); border-radius: 8px; padding: clamp(26px, 4vw, 44px); box-shadow: 0 40px 120px rgba(26,25,23,0.3); animation: modalIn 0.35s cubic-bezier(.2,.9,.3,1); }
.modal-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176,139,62,0.25); border-radius: 4px; pointer-events: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal-x { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; color: var(--sub2); cursor: pointer; line-height: 1; z-index: 1; }
.modal-x:hover { color: var(--ink); }
.inv-h { font-family: var(--serif); font-weight: 580; font-size: 30px; letter-spacing: -0.015em; margin: 6px 0 10px; }
.inv-sub { color: var(--sub2); font-size: 15px; line-height: 1.55; margin-bottom: 8px; }
#invForm .field { margin-top: 12px; position: relative; z-index: 1; }
textarea.field { resize: vertical; font-family: inherit; }
.inv-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; position: relative; z-index: 1; }
.partner-label { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 13.5px; margin: 18px 0 0; position: relative; z-index: 1; }
.add-partner { position: relative; z-index: 1; margin-top: 10px; background: none; border: none; cursor: pointer; font: inherit; font-size: 13.5px; color: var(--gold-deep); font-weight: 600; padding: 0; }
.add-partner:hover { text-decoration: underline; }
.add-partner:disabled { opacity: 0.4; cursor: default; text-decoration: none; }
.partner-row { display: flex; align-items: center; gap: 6px; position: relative; z-index: 1; }
.partner-row .field { flex: 1; }
.p-rm { background: none; border: none; cursor: pointer; color: var(--sub2); font-size: 22px; line-height: 1; padding: 6px 8px; margin-top: 12px; }
.p-rm:hover { color: var(--oxblood); }

/* waitlist ticket */
.waitlist { text-align: center; padding: 4px 0 2px; }
.wl-seal circle { fill: none; stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.wl-seal .cL { stroke: var(--ink); animation: wlL 1s cubic-bezier(.2,.8,.2,1) both; }
.wl-seal .cR { stroke: var(--gold); animation: wlR 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wlL { from { transform: translateX(-18px); opacity: 0; } }
@keyframes wlR { from { transform: translateX(18px); opacity: 0; } }
.wl-h { font-family: var(--serif); font-weight: 570; font-size: 30px; letter-spacing: -0.015em; margin: 12px 0 6px; }
.wl-sub { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 14.5px; margin-bottom: 22px; }
.ticket { position: relative; max-width: 340px; margin: 0 auto; background: #fffdf7; border: 1px solid rgba(176,139,62,0.5); border-radius: 8px; padding: 24px 22px 20px; box-shadow: 0 18px 50px rgba(26,25,23,0.12); animation: modalIn 0.5s 0.35s cubic-bezier(.2,.9,.3,1) both; }
.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-name { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; margin-top: 10px; }
.t-meta { color: var(--sub2); font-size: 13px; margin-top: 6px; display: flex; gap: 8px; justify-content: center; font-variant-numeric: tabular-nums; }
.t-line { height: 1px; background: var(--hair); margin: 16px auto 12px; width: 72%; }
.t-note { font-family: var(--serif); font-style: italic; font-size: 13.5px; color: var(--gold-deep); }

.gate { min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 60px; }
.gate h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(36px, 5vw, 58px); letter-spacing: -0.015em; font-variation-settings: 'opsz' 144; }
.gate .gate-sub { font-family: var(--serif); font-style: italic; color: var(--sub2); font-size: 15.5px; margin-top: 16px; max-width: 40ch; }
.gate form { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 30px; }
.gate .field.code { width: 300px; max-width: 84vw; text-align: center; text-transform: uppercase; letter-spacing: 0.22em; font-size: 18px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .kinetic .w, .kinetic, .how-step, .chip, .iv-mediator, .iv-pact, .secret, .badge-out, .reveal, .seal-mark, .stage-note, .a-no, .a-what, .a-stamp, .mnav a { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; animation: none !important; }
  .a-when { color: var(--ink) !important; background: none !important; }
  .amend::after { transform: none !important; transition: none !important; }
}
