/* Chosen fist and bouquet composition. Palette values live in tokens.css. */
html { scroll-padding-top: 88px; }
body { font-family: var(--body); font-size: var(--text-body); }
h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .9; }
h1, .page-intro h1, .position-card h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-section); }
h3, .visual-card h3 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1; }
p, .sub, .lede, .fine, .answer, .faq-answer, figcaption, .field-help, .field-error, [role="status"], [data-visual-caption], .pool-state { font: 400 var(--text-body)/1.65 var(--mono); color: var(--ink); }
label, dt, dd, .mono, .chip, .card-label, button, input, .button, caption, th, code { font-family: var(--mono); text-transform: none; letter-spacing: normal; font-size: var(--text-body); }
.eyebrow { color: var(--ink); font: 400 15px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.accent-word, .hero h1 em { color: var(--jade); font-style: normal; -webkit-text-stroke: 1px var(--ink); }
.hero-wordmark { font: 400 clamp(48px, 5vw, 80px)/.9 var(--display); letter-spacing: .01em; color: var(--jade); -webkit-text-stroke: 1px var(--ink); }
.live-value, .share-output { color: var(--ink); font-family: var(--mono); font-size: clamp(24px, 2vw, 36px); letter-spacing: 0; text-transform: none; }
.page-link { color: var(--jade-text); font-size: 24px; }
.page-link { background: var(--surface); border-radius: 999px; padding: 8px 16px; }
.page-section p, .page-intro p, .questions p { color: var(--ink); }
img { height: auto; }
.skip { z-index: 110; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button, a[href], input, summary { min-height: 44px; }
a[href] { display: inline-flex; align-items: center; }
.topbar { position: sticky; top: 0; z-index: 80; height: 68px; background: var(--nav-surface); backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline); }
.topbar nav.container { width: 100%; max-width: none; height: 68px; min-height: 68px; display: flex; align-items: center; gap: 8px; padding: 0 12px; flex-wrap: nowrap; }
.topbar .wordmark { font-size: 22px; gap: 5px; flex: 0 0 auto; min-height: 44px; }
.wordmark img { border-radius: 50%; width: 28px; height: 28px; }
.topbar .nav-links { display: flex; flex: 1; align-items: center; justify-content: space-between; width: auto; margin: 0; gap: 8px; min-width: 0; }
.nav-pages { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; margin: 0 auto; }
.topbar .nav-pages a { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; padding: 0 2px; min-height: 44px; min-width: 44px; text-decoration: none; }
.topbar a[aria-current="page"] { font-weight: 400; }
.nav-underline { position: absolute; bottom: 2px; left: 0; width: 1px; height: 3px; background: var(--jade); transform-origin: left; transform: scaleX(0); transition: transform 220ms var(--ease); pointer-events: none; }
.nav-pills { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.topbar .nav-pill, .topbar .nav-primary { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; padding: 4px 6px; border-radius: 999px; text-align: center; text-decoration: none; color: var(--ink); }
.topbar .nav-pill { font: 400 10px/1.35 var(--mono); border: 1px solid var(--hairline); }
.topbar .settle-pill { width: 112px; max-width: none; border-color: var(--jade-text); background: transparent; }
.topbar .ca-pill { width: 66px; white-space: normal; overflow-wrap: anywhere; }
.topbar .nav-primary { width: 94px; font: 400 16px/.95 var(--display); letter-spacing: .01em; text-transform: uppercase; white-space: normal; background: var(--jade); border: 1px solid transparent; }
.topbar .wallet-wrap { position: relative; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: 44px 12px; align-items: center; gap: 0; margin: 0; width: 112px; min-width: 112px; max-width: 112px; height: 56px; flex: 0 0 112px; }
.topbar .wallet-wrap #navConnect { grid-column: 1; grid-row: 1; width: 112px; height: 44px; min-height: 44px; font: 400 10px/1.3 var(--mono); padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--jade-text); }
.topbar #navWalletIcon { display: none; }
.topbar #walletBalance { grid-column: 1; grid-row: 2; width: 112px; max-width: 112px; height: 12px; margin: 0; font: 400 9px/12px var(--mono); white-space: nowrap; overflow-x: auto; color: var(--ink); }
.topbar #navConnect[data-state="connected"] { background: var(--jade); color: var(--ink); border-color: var(--jade); }
.topbar .nav-burger { display: none; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
body.nav-open { overflow: hidden; }
.hero { position: relative; isolation: isolate; width: 100%; padding: 72px max(40px, calc((100% - var(--container)) / 2)); min-height: calc(100svh - 68px); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; background: var(--hero); }
.hero-copy { position: relative; align-self: center; z-index: 2; }
.hero h1 { margin-block: 24px 32px; font-size: clamp(56px, 7vw, 136px); }
.hero h1 span { display: block; white-space: nowrap; animation: none; }
.hero-copy p:not(.eyebrow) { max-width: none; margin: 0 0 28px; }
.hero .actions { margin-top: 32px; }
.fist-stage { position: relative; width: 100%; min-width: 0; margin: 0; align-self: center; }
.fist-podium { position: relative; display: flex; justify-content: center; padding-bottom: 46px; isolation: isolate; }
.hero-fist { display: block; width: auto; height: 58vh; min-height: 58vh; max-width: none; object-fit: contain; position: relative; z-index: 2; transform-origin: center 80%; filter: drop-shadow(6px 0 8px var(--jade-glow)); animation: fist-float 9s ease-in-out infinite; }
.fist-podium::before { content: ''; position: absolute; bottom: 0; left: 10%; width: 80%; height: 82px; border-radius: 50%; background: var(--surface); box-shadow: 0 18px 0 var(--diamond), 0 28px 22px var(--shadow); }
.fist-podium::after { content: ''; position: absolute; bottom: 35px; left: 28%; width: 44%; height: 24px; border-radius: 50%; background: var(--shadow); filter: blur(9px); }
.grip-device { width: 100%; margin-top: 34px; }
.grip-glass { position: relative; width: 100%; height: 38px; border: 2px solid var(--jade-text); border-radius: 999px; background: var(--diamond); box-shadow: inset 0 2px 5px var(--shadow); isolation: isolate; }
.grip-fill { display: block; position: absolute; left: 4px; right: 4px; top: 4px; bottom: 4px; border-radius: 999px; background: var(--jade); transform: scaleX(var(--grip-progress, 0)); transform-origin: left; transition: transform 450ms var(--ease); box-shadow: 0 0 18px var(--jade-glow), inset 0 2px 3px var(--surface); }
.grip-fill::after { content: ''; position: absolute; top: 0; right: 0; height: 100%; width: 6px; border-radius: 999px; background: var(--diamond); box-shadow: 0 0 14px var(--jade); }
.grip-ticks { position: absolute; inset: -12px 10px 0; display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; }
.grip-ticks i { position: relative; border-right: 2px solid var(--surface); height: 12px; }
.grip-ticks i::after { content: ''; position: absolute; right: -2px; top: 20px; height: 18px; border-right: 1px solid var(--surface); opacity: .65; }
.grip-label, .grip-preview-note { display: block; text-align: center; margin: 14px 0 0; font: 400 15px/1.5 var(--mono); color: var(--ink); }
.grip-preview-note { margin-top: 6px; }
.holding-grip { width: 100%; }
.holding-grip .grip-glass { height: 56px; }
.holding-grip .grip-ticks i::after { height: 36px; }
.holding-grip output { display: block; margin-top: 20px; font-size: 24px; }
.clock-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.page-intro, .docs-intro { position: relative; max-width: none; padding-block: 72px 48px; padding-right: 150px; }
.page-intro h1, .docs-intro h1 { overflow-wrap: anywhere; }
.page-fist { width: 100px; height: 170px; object-fit: contain; position: absolute; right: 8px; top: 48px; }
.position-card { padding-right: 132px; }
.position-card .page-fist { width: 80px; height: 136px; right: 28px; top: 28px; }
.position-card h1 { font-size: clamp(56px, 5vw, 100px); }
.hero .position-card h1 span { white-space: normal; }
.step-fist { height: 220px; margin: -12px -12px 32px; overflow: hidden; background: var(--hero); border-radius: 12px; }
.step-fist img { display: block; height: 290px; width: auto; margin: 8px auto 0; }
.step-grid li:nth-child(2) .step-fist img { transform: rotate(3deg) scale(1.12); }
.step-grid li:nth-child(3) .step-fist img { transform: rotate(-3deg); }
.bouquet-band { position: relative; width: 100%; isolation: isolate; background: var(--hero); }
.bouquet-band > img { display: block; width: 100%; height: auto; }
.bouquet-wordmark { position: absolute; left: 59%; bottom: 16%; font: 400 clamp(24px, 4vw, 64px)/1 var(--display); letter-spacing: .01em; color: var(--ink); }
.bouquet-wordmark span { display: block; margin-top: 12px; font: 400 var(--text-body)/1.5 var(--mono); }
.bouquet-link { position: absolute; inset: 0; color: transparent; font-size: 0; }
.bouquet-link:focus-visible { outline-offset: -6px; }
.footer-rule { flex-basis: 100%; max-width: 72ch; }
.footer-rule p { max-width: 72ch; margin-top: 16px; }
.publication-list time, .receipt-summary { font-size: var(--text-body); }
footer .wordmark { align-self: flex-start; font-size: 36px; }
footer .wordmark img { width: 44px; height: 44px; flex-basis: 44px; }
@keyframes fist-float { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@media (min-width: 1280px) {
 .topbar nav.container { padding-inline: 24px; gap: 20px; }
 .topbar .nav-links { gap: 16px; }
 .nav-pages { gap: 10px; }
 .nav-pills { gap: 8px; }
 .topbar .settle-pill { width: 144px; }
 .topbar .ca-pill { width: 86px; }
 .topbar .nav-primary { width: 120px; font-size: 18px; }
 .topbar .nav-pill { font-size: 11px; }
}
@media (max-width: 1023px) {
 .topbar nav.container { justify-content: space-between; }
 .topbar .nav-burger { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 8px; }
 .nav-burger span { display: block; width: 20px; height: 2px; background: currentColor; }
 .topbar .nav-links { display: none; position: fixed; top: 68px; bottom: 0; left: 0; right: 0; height: calc(100dvh - 68px); width: 100%; overflow-y: auto; margin: 0; padding: 24px; background: var(--ground); align-items: stretch; justify-content: flex-start; }
 .topbar .nav-links.is-open { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 24px; }
 .nav-pages { width: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
 .topbar .nav-pages a { font: 400 40px/1 var(--display); letter-spacing: .01em; min-height: 52px; padding: 4px 0; justify-content: flex-start; }
 .nav-underline { display: none; }
 .topbar .nav-pages a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--jade-text); text-underline-offset: 6px; }
 .nav-pills { align-items: stretch; flex-direction: column; gap: 12px; flex-wrap: nowrap; }
 .topbar .nav-pill, .topbar .nav-primary { width: 100%; min-height: 52px; font: 400 28px/1.1 var(--display); letter-spacing: .01em; }
 .topbar .wallet-wrap { width: 100%; min-width: 0; max-width: none; flex: 0 0 76px; height: 76px; grid-template-rows: 52px 24px; }
 .topbar .wallet-wrap #navConnect { width: 100%; height: 52px; font: 400 28px/1 var(--display); }
 .topbar #walletBalance { width: 100%; max-width: none; height: 24px; font: 400 15px/24px var(--mono); }
 .step-grid { grid-template-columns: minmax(0, 1fr); }
 .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding-inline: 24px; }
 .hero h1 span { white-space: normal; }
 .hero-fist { max-width: 100%; }
}
@media (max-width: 767px) {
 .hero { grid-template-columns: minmax(0,1fr); padding: 48px 20px; gap: 40px; }
 .hero h1 { font-size: clamp(56px, 10vw, 76px); }
 .hero-copy p br { display: none; }
 .hero-fist { height: min(100vw, 58vh); min-height: 0; max-width: 100%; }
 .fist-stage { width: min(100%, 460px); margin-inline: auto; }
 .page-intro, .docs-intro { padding: 48px 0 32px; }
 .page-fist { position: static; display: block; width: 56px; height: 95px; margin-bottom: 24px; }
 .position-card { padding: 28px; }
 .position-card .page-fist { position: static; width: 56px; height: 95px; }
 .clock-card { grid-template-columns: minmax(0,1fr); }
 .bouquet-wordmark { left: 55%; bottom: 8%; font-size: 24px; }
 .bouquet-wordmark span { display: none; }
 .publication-list time, .receipt-summary { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .hero-fist { animation: none; transform: none; } .grip-fill, .nav-underline { transition: none; } }
