/* Proposal A: cream and illustration. Everything stays on the landing page's cream. */
:root { --pad: 48px; --rule: #dcdcd5; --body: #3d3d3a; }
html { scroll-behavior: auto; }
.page { position: relative; overflow-x: clip; }
.wrap { max-width: 1296px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.1vw, 58px); line-height: 1.06; }
h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.1; }
p { margin: 0; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; min-height: 100vh; padding: calc(50px + 6vh) 0 7vh; display: flex; flex-direction: column; justify-content: center; text-align: center; pointer-events: none; }
.hero h1, .hero .sub { pointer-events: auto; }
.hero .sub { font-size: 17px; line-height: 1.55; color: #55554f; max-width: 35em; margin: 20px auto 0; text-wrap: pretty; }
.hero .wrap { width: 100%; }
@media (min-width: 960px) { .hero .wrap { max-width: 1640px; padding: 0 32px; } }
.hero .fig { margin: 64px auto 0; width: 100%; }

/* ---------- story sections ---------- */
.story { position: relative; }
.sec { position: relative; z-index: 2; pointer-events: none; }
.sec .txt { pointer-events: auto; }
.txt p:not(.eyebrow) { font-size: 17px; line-height: 1.62; color: var(--body); margin-top: 18px; max-width: 27em; text-wrap: pretty; }
.fig { position: relative; }

/* sticky mode: one stage beside the text */
.mode-sticky .sec { min-height: 112vh; display: flex; align-items: center; }
.mode-sticky .sec .wrap { width: 100%; }
.mode-sticky .sec .txt { width: min(440px, 42%); }
.mode-sticky .sec .fig { display: none; }
.stage { display: none; }
.mode-sticky .stage { display: block; position: sticky; top: 0; height: 100vh; z-index: 1; pointer-events: none; }
.mode-sticky .hero { margin-top: -100vh; }

/* figure mode: one still or self-playing figure per section (narrow screens, reduced motion) */
.mode-figs .hero { min-height: 0; padding: 124px 0 40px; }
.mode-figs .sec { padding: 84px 0; }
.mode-figs .sec .fig { margin-top: 44px; max-width: 640px; pointer-events: auto; }
.mode-figs .hero .fig { max-width: 680px; }
@media (min-width: 960px) {
  .mode-figs .sec .wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 96px; align-items: center; }
  .mode-figs .sec .fig { margin: 0 0 0 auto; width: 100%; max-width: 600px; }
  .mode-figs .hero { padding-top: 150px; }
  .mode-figs .hero .fig { max-width: none; }
}
@media (max-width: 959px) {
  .mode-figs .sec .wrap, .mode-figs .hero .wrap { max-width: 736px; }
}
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .hero .sub, .txt p:not(.eyebrow) { font-size: 16px; }
  .mode-figs .hero { padding: 100px 0 24px; }
  .hero .fig { margin-top: 44px; }
  .mode-figs .sec { padding: 54px 0; }
  .mode-figs .sec .fig { margin-top: 36px; }
}

/* ---------- stage pieces ---------- */
.st { position: absolute; inset: 0; }
.st > * { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tile { width: 200px; height: 200px; border-radius: 11px; overflow: hidden; background: var(--paper); }
.tile svg, .key svg { display: block; width: 100%; height: 100%; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px rgba(33, 33, 31, .08); }
.key { width: 470px; height: 200px; z-index: 30; }
.st.live .tile { pointer-events: auto; cursor: default; touch-action: pan-y; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; outline: 0 solid transparent; transition: outline-color .3s; }
.st.live .tile.on, .st.live .tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }

.cap { font-size: 13px; line-height: 1.3; text-align: left; z-index: 2; }
.cap .n { display: block; font-weight: 500; white-space: nowrap; }
.cap .p { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.cap .p b { font: 500 20px/1.25 var(--serif); color: var(--ink); margin-right: 3px; }
.compact .cap .n, .compact .cap .p i { display: none; }
.compact .cap .p b { font-size: 16px; }
.cap i, .pay i, .pool-head i { font-style: normal; }
.compact .pool-head i { display: none; }

.blk { z-index: 1; text-align: left; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--rule); padding-top: 14px; }
.total .note { font-size: 12.5px; color: var(--muted); }
.total .sum { font-size: 14px; color: var(--muted); white-space: nowrap; }
.total .sum b { font: 500 34px/1 var(--serif); color: var(--ink); letter-spacing: -.01em; margin: 0 5px 0 12px; }
.compact .total { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
.compact .total .sum b { font-size: 30px; }

.keylabel { text-align: center; white-space: nowrap; color: var(--muted); font-size: 15px; }
.keylabel b { font: 500 30px/1 var(--serif); color: var(--ink); letter-spacing: -.01em; margin-right: 12px; }

/* network */
.net svg { display: block; overflow: visible; }
.net path { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .42; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--d, 1)); }
.net circle.m { fill: var(--cream); stroke: var(--ink); stroke-width: 1.5; }
.net circle.d { fill: var(--ink); }
.net circle.you { fill: var(--ink); }
.net circle.you + circle.d { fill: var(--cream); }
.net text { font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; fill: var(--muted); }

/* sign-in card */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px; box-shadow: 0 20px 40px -30px rgba(33, 33, 31, .28); }
.card .site { display: flex; align-items: center; gap: 14px; }
.card .slot { width: 52px; height: 52px; flex: none; }
.card .site b { display: block; font-weight: 500; font-size: 15px; }
.card .site span span { font-size: 13px; color: var(--muted); }
.card .btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; height: 44px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: 14.5px; }
.card .btn svg { width: 33px; height: 14px; }
.key, .colophon { color: var(--ink); }
.card dl { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 5px 18px; font-size: 13px; }
.card dt { color: var(--muted); } .card dd { margin: 0; text-align: right; }
.card .learn { grid-column: 1 / -1; font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }

/* pool */
.pool-head { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted); }
.pool .keyslot { width: 61px; height: 26px; flex: none; align-self: center; }
.pool-head .amt { white-space: nowrap; }
.pool-head .src { margin-left: auto; white-space: nowrap; }
.pool-head .amt b { font: 500 26px/1 var(--serif); color: var(--ink); margin-left: 8px; }
.bar { display: flex; height: 10px; margin-top: 12px; gap: 2px; }
.bar i { flex: 1 1 0; min-width: 2px; border-radius: 2px; }
.bar i:first-child { border-radius: 5px 2px 2px 5px; } .bar i:last-child { border-radius: 2px 5px 5px 2px; }
.pay { font-size: 12px; line-height: 1.3; color: var(--muted); font-variant-numeric: tabular-nums; z-index: 2; white-space: nowrap; }
.pay b { display: block; font: 500 18px/1.2 var(--serif); color: var(--ink); }
.compact .pay { font-size: 11px; } .compact .pay b { font-size: 15px; }
.hint { font-size: 13px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; }
.hint .h { color: var(--ink); display: block; }
.hint button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.hint button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.st:not(.live) .hint button { pointer-events: none; }
.st.live .hint { pointer-events: auto; }

/* record, and beside it what is not recorded */
.record { display: flex; gap: 14px; align-items: stretch; }
.rec-card { flex: 1 1 0; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; box-shadow: 0 20px 40px -30px rgba(33, 33, 31, .28); }
.record .row { display: flex; align-items: center; justify-content: space-between; height: 56px; border-bottom: 1px solid var(--line); }
.record .row:last-child { border: 0; }
.record .k { font: 500 11.5px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.record .row .v { display: flex; align-items: center; gap: 10px; font: 400 22px var(--serif); font-variant-numeric: lining-nums; }
.record .kslot { width: 52px; height: 22px; } .record .tslot { width: 24px; height: 24px; }
.ghosts { flex: 0 0 37%; display: flex; flex-direction: column; gap: 10px; }
.ghost { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; border: 1px dashed #cdcdc6; border-radius: 12px; }
.ghost .k { color: #a9a9a3; text-decoration: line-through; }
.ghost .v { font-size: 12px; color: #a9a9a3; white-space: nowrap; }
.compact .record { flex-direction: column; }
.compact .ghosts { flex: none; flex-direction: row; gap: 8px; }
.compact .ghost { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 10px 12px; }

/* ---------- who ---------- */
.who { text-align: center; padding: 150px 0 120px; }
.mode-sticky .who { padding: 60px 0 150px; }
.who h2 { font-size: clamp(34px, 3.8vw, 54px); }
.who p:not(.eyebrow) { font-size: 17px; line-height: 1.62; color: var(--body); max-width: 32em; margin: 20px auto 0; text-wrap: pretty; }
.who .colophon { display: block; width: 94px; height: 40px; margin: 72px auto 0; }
@media (max-width: 600px) { .who { padding: 90px 0 90px; } .who p:not(.eyebrow) { font-size: 16px; } }

/* ---------- load-in, once, hero only ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.intro .hero h1, .intro .hero .sub { animation: rise 1s cubic-bezier(.3, 0, .2, 1) both; }
.intro .hero .sub { animation-delay: .12s; }
.intro .st .tile svg { animation: rise 1s cubic-bezier(.3, 0, .2, 1) both; animation-delay: calc(.3s + var(--i) * .07s); }
.intro .st .cap > span, .intro .st .total > span { display: inline-block; animation: rise 1s cubic-bezier(.3, 0, .2, 1) both; animation-delay: calc(.5s + var(--i, 9) * .07s); }
.intro .st .tile::after { opacity: 0; animation: rise 1s both 1s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
