/* sh0rt.biz landing page. Presentation only. */
@font-face { font-family: 'Anybody'; src: url('/fonts/anybody-100-900.woff2') format('woff2'); font-weight: 100 900; font-stretch: 50% 150%; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-200-800.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Martian Mono'; src: url('/fonts/martian-400.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #080d18; --surface: #141f36; --border: #34435f;
  --text: #eef3ff; --dim: #b9c6dd; --faint: #8f9db8;
  --rgb: 169,188,255;                 /* colour of the tool in view, set per scene */
  --aura: 169,188,255;                /* blended between scenes by the script */
  --display: 'Anybody', 'Arial Narrow', sans-serif;
  --body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
  --head: 64px;
}
.scene.notes  { --rgb: 196,175,255; }
.scene.wallet { --rgb: 131,222,210; }
.scene.pass   { --rgb: 255,207,122; }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 0; min-width: 280px; }
body { margin: 0; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: rgb(var(--aura)); color: var(--bg); }
a { color: rgb(var(--rgb)); text-underline-offset: 4px; }
:where(a, button, summary, input, select):focus-visible { outline: 2px solid rgb(var(--rgb)); outline-offset: 3px; border-radius: 4px; }
h1, h2, p, ol { margin: 0; }
.mono { font-family: var(--mono); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ── backdrop ─────────────────────────────────────────── */
.aura { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vmax 46vmax at 82% 38%, rgba(var(--aura), .16), transparent 70%),
    radial-gradient(48vmax 40vmax at 6% 4%, rgba(var(--aura), .09), transparent 72%); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; display: none; }
.fx #fx { display: block; }
main, .foot { position: relative; z-index: 2; }

/* ── header ───────────────────────────────────────────── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 10; height: var(--head); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(16px, 4vw, 56px);
  background: linear-gradient(rgba(8,13,24,.82), rgba(8,13,24,0)); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand i { width: 22px; height: 8px; border-radius: 99px; background: rgb(var(--aura)); box-shadow: 0 0 18px rgba(var(--aura), .7); transition: width .5s var(--ease); }
.brand:hover i { width: 10px; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 30px); overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--dim); text-decoration: none; font-size: .92rem; font-weight: 550; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--text); border-color: rgb(var(--aura)); }

/* ── scene: static layout first (no script, reduced motion, short screens) ── */
.scene { position: relative; }
.stage { display: grid; gap: 22px; padding: calc(var(--head) + 28px) clamp(16px, 4vw, 56px) 48px; max-width: 1500px; margin: 0 auto; }
.title { font-family: var(--display); font-weight: 750; font-stretch: 88%; letter-spacing: -.02em; line-height: 1.02; font-size: clamp(2rem, 4.2vw, 3.7rem); text-wrap: balance; }
h1.title { font-weight: 800; font-size: clamp(2.3rem, 6vw, 5rem); font-stretch: 70%; }
.title .ln { display: inline; }

.glass { background: linear-gradient(160deg, rgba(28,41,70,.72), rgba(14,22,40,.72)); border: 1px solid rgba(var(--rgb), .24); border-radius: 22px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.07); }
.tool { position: relative; padding: 22px; max-width: 520px; width: 100%; overflow: hidden; }
.tool::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--glow, 0); transition: opacity .3s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--rgb), .2), transparent 65%); }
.toolhead { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; font-size: .86rem; }
.toolhead strong { font-weight: 700; }
.toolhead span { color: rgb(var(--rgb)); }
.tool label { display: block; font-size: .84rem; font-weight: 600; color: var(--dim); margin: 0 0 6px; }
.tool input:not([type=checkbox]), .tool select { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8,13,24,.7); color: var(--text); font: inherit; font-size: 1rem; }
.tool input::placeholder { color: #7484a3; }
.tool input:focus, .tool select:focus { outline: none; border-color: rgb(var(--rgb)); box-shadow: 0 0 0 3px rgba(var(--rgb), .2); }
.tool details { margin: 12px 0 0; }
.tool summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--dim); padding: 6px 0; width: fit-content; }
.tool summary:hover { color: var(--text); }
.options { display: grid; gap: 4px; padding: 10px 0 2px; max-height: min(38svh, 330px); overflow: auto; }
.options label { margin-top: 8px; }
.options small { font-weight: 400; color: var(--faint); }
.slug { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: rgba(8,13,24,.7); }
.slug span { padding: 0 4px 0 14px; color: var(--faint); font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.slug input:not([type=checkbox]) { border: 0; background: none; padding-left: 4px; }
.check { display: flex !important; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 500 !important; }
.check input { width: 18px; height: 18px; accent-color: rgb(var(--rgb)); }
.tool button { width: 100%; height: 52px; margin-top: 16px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 750; font-size: 1rem; color: #0a1020;
  background: rgb(var(--rgb)); box-shadow: 0 10px 34px -10px rgba(var(--rgb), .8); transition: transform .2s var(--ease), box-shadow .2s; }
.tool button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(var(--rgb), .9); }
.tool button:active { transform: translateY(0) scale(.99); }
.quiet { display: inline-block; margin-top: 14px; font-size: .86rem; color: var(--dim); }

.launch { display: grid; gap: 4px; padding: 18px; border-radius: 16px; text-decoration: none; color: var(--text); background: rgba(8,13,24,.55); border: 1px solid var(--border); transition: border-color .25s, transform .25s var(--ease), background .25s; }
.launch:hover { border-color: rgb(var(--rgb)); transform: translateY(-2px); background: rgba(8,13,24,.75); }
.launch-label { font-size: .84rem; color: var(--dim); }
.launch-prompt { font-family: var(--display); font-stretch: 92%; font-weight: 650; font-size: 1.35rem; line-height: 1.18; letter-spacing: -.01em; }
.launch-action { margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; height: 46px; border-radius: 12px; background: rgb(var(--rgb)); color: #0a1020; font-weight: 750; }
.launch-detail { margin-top: 14px; font-size: .88rem; color: var(--dim); }

.slot { position: relative; min-height: 120px; display: grid; place-items: center; }
.fallback { font-size: clamp(1rem, 3.4vw, 1.9rem); color: rgb(var(--rgb)); text-align: center; line-height: 1.7; overflow-wrap: anywhere; }
.readout { font-size: .86rem; color: var(--dim); }
.readout output { font-family: var(--mono); color: var(--text); }
.short .readout, .burned, .strength { display: none; }

.seed { list-style: none; padding: 0; width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: w; }
.seed li { counter-increment: w; position: relative; height: clamp(44px, 7svh, 62px); border-radius: 12px; border: 1px solid rgba(var(--rgb), .22); background: rgba(8,13,24,.45); display: grid; place-items: center; font-family: var(--mono); font-size: .9rem; color: rgb(var(--rgb)); }
.seed li::before { content: counter(w); position: absolute; left: 9px; top: 5px; font-size: .62rem; color: var(--faint); }

.story h2 { font-family: var(--display); font-stretch: 80%; font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 14px; }
.steps { display: grid; gap: 6px; }
.steps p { color: var(--dim); max-width: 44ch; }
.story > a { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .95rem; }
.scroll-hint { display: none; }

.privacy { padding: clamp(80px, 14vh, 160px) clamp(16px, 4vw, 56px); max-width: 860px; margin: 0 auto; text-align: left; }
.privacy h2 { font-family: var(--display); font-stretch: 78%; font-weight: 750; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.02em; margin-bottom: 20px; }
.privacy p { color: var(--dim); max-width: 62ch; font-size: 1.05rem; }
.privacy a { display: inline-block; margin-top: 20px; font-weight: 650; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 28px clamp(16px, 4vw, 56px) 40px; border-top: 1px solid rgba(255,255,255,.07); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--dim); font-size: .88rem; text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* ── scroll piece ─────────────────────────────────────── */
.fx .scene { height: calc(100svh + var(--len, 170svh)); }
.fx .scene.notes  { --len: 200svh; }
.fx .scene.wallet { --len: 170svh; }
.fx .scene.pass   { --len: 170svh; }
.fx .stage { position: sticky; top: 0; height: 100svh; max-width: none; overflow: hidden;
  grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(110px, 1fr) auto auto;
  grid-template-areas: "title" "slot" "story" "tool";
  padding: calc(var(--head) + 6px) 16px 16px; gap: 12px; align-content: stretch; }
.fx .title { grid-area: title; }
.fx .tool  { grid-area: tool; justify-self: center; }
.fx .slot  { grid-area: slot; min-height: 0; }
.fx .story { grid-area: story; }
.fx .fallback { display: none; }
.fx .seed li span { visibility: hidden; }

/* things entering and leaving with the stage */
.fx .title, .fx .tool, .fx .story { opacity: calc(var(--in, 1) * 1.6 - .6 - var(--out, 0) * 1.8); }
.fx .tool { transform: perspective(1100px) translateY(calc((1 - var(--in, 1)) * 70px)) rotateX(calc((1 - var(--in, 1)) * 16deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); transform-origin: 50% 100%; will-change: transform; }

/* hero headline: set wide, gets shorter as you scroll */
.fx h1.title { white-space: nowrap; font-size: calc(var(--fit, 40px) * (1 + var(--e, 0) * .35)); font-stretch: normal; font-variation-settings: "wdth" var(--wd, 150), "wght" 800; letter-spacing: calc(var(--e, 0) * -.01em); line-height: 1; transform-origin: 0 50%; }
.fx h1.title .ln { display: block; }
/* notes headline does not stay either */
.fx .notes .title { opacity: calc((var(--in, 1) * 1.6 - .6 - var(--out, 0) * 1.8) * (1 - var(--gone, 0))); filter: blur(calc(var(--gone, 0) * 14px)); transform: translateY(calc(var(--gone, 0) * -18px)); letter-spacing: calc(-.02em + var(--gone, 0) * .12em); }
/* wallet headline gains weight */
.fx .wallet .title { font-variation-settings: "wdth" 88, "wght" var(--wg, 300); }

.fx .story h2 { display: none; }
.fx .steps { gap: 0; }
.fx .steps p { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); font-size: 1.02rem; color: var(--text); text-align: center; justify-self: center; }
.fx .steps p.cur { opacity: 1; transform: none; }
.fx .steps p.on:not(.cur) { transform: translateY(-10px); }
.fx .story > a { display: none; }

.fx .readout { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.fx .short .readout { opacity: var(--read, 0); transition: none; }
.fx .burned { font-family: var(--mono); font-size: .78rem; color: rgba(var(--rgb), .9); top: 50%; bottom: auto; transform: translateY(-50%); }
.fx .scene.done .burned { opacity: 1; }
.fx .strength { display: grid; gap: 8px; justify-items: center; opacity: 1; }
.fx .strength .bar { width: min(100%, 420px); height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.fx .strength .bar i { display: block; height: 100%; border-radius: inherit; width: calc(var(--lock, 0) * 100%); background: linear-gradient(90deg, #ff8f8f, rgb(var(--rgb)) 55%, #9fe7cd); background-size: 420px 100%; }
.fx .strength p { opacity: var(--lock, 0); }
.fx .seed { align-self: center; }
.fx .seed li { opacity: calc(var(--in, 1) * .9); background: rgba(8,13,24,.3); transition: border-color .4s, box-shadow .4s; }
.fx .seed li.set { border-color: rgba(var(--rgb), .7); box-shadow: 0 0 24px -8px rgba(var(--rgb), .8), inset 0 0 18px -10px rgba(var(--rgb), .8); }

.fx .scroll-hint { display: block; position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); font-size: .82rem; color: var(--dim); text-decoration: none; opacity: calc(1 - var(--p, 0) * 12); pointer-events: none; }
.fx .scroll-hint span { display: inline-block; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (max-width: 959px) { .fx .scroll-hint { display: none; } .fx .tool { padding: 16px; } .fx .toolhead { margin-bottom: 10px; } .fx .quiet, .fx .launch-detail { display: none; } .fx .tool button { margin-top: 12px; } .fx .launch { padding: 14px; } .fx .launch-action { margin-top: 8px; } .fx .launch-prompt { font-size: 1.15rem; } }

/* wide screens: tool on one side, the piece on the other */
@media (min-width: 960px) {
  .stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .stage > .title { grid-column: 1 / -1; }
  .fx .stage { padding: calc(var(--head) + 3svh) clamp(32px, 4vw, 72px) 5svh; gap: 2.4svh clamp(40px, 6vw, 110px);
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "title title" "tool slot" "story slot"; align-items: start; }
  .fx .flip .stage { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-areas: "title title" "slot tool" "slot story"; }
  .fx .slot { align-self: stretch; }
  .fx .tool { justify-self: start; align-self: center; }
  .fx .story h2 { display: block; }
  .fx .steps { gap: 6px; }
  .fx .steps p { grid-area: auto; opacity: .28; transform: none; text-align: left; justify-self: start; font-size: 1rem; color: var(--text); }
  .fx .steps p.on, .fx .steps p.on:not(.cur) { opacity: 1; transform: none; }
  .fx .story > a { display: inline-block; }
  .fx .readout { bottom: 6svh; }
  .fx .burned { font-size: .9rem; }
  .fx .seed { gap: 14px; }
}
@media (min-width: 960px) and (max-height: 760px) { .fx .story h2 { display: none; } .fx .launch-detail { display: none; } }
@media (min-width: 960px) { .fx h1.title .ln { display: inline; } }

/* own cursor (mouse only) */
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cur-dot::after, .cur-ring::after { content: ""; position: absolute; border-radius: 50%; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s, border-radius .3s; }
.cur-dot::after { width: 7px; height: 7px; background: #fff; box-shadow: 0 0 12px rgba(var(--aura), 1); }
.cur-ring::after { width: 38px; height: 38px; border: 1.5px solid rgba(var(--aura), .75); background: rgba(var(--aura), .04); }
.cur .cur-dot, .cur .cur-ring { opacity: 1; }
.cur, .cur body, .cur a, .cur button, .cur summary, .cur label { cursor: none; }
.cur-link .cur-ring::after { width: 64px; height: 64px; background: rgba(var(--aura), .16); border-color: rgba(var(--aura), 1); }
.cur-link .cur-dot::after { width: 4px; height: 4px; }
.cur-down .cur-ring::after { width: 26px; height: 26px; background: rgba(var(--aura), .3); }
.cur-field .cur-dot, .cur-field .cur-ring { opacity: 0; }
.cur-field input, .cur-field select { cursor: auto; }
.cur-field input[type=url], .cur-field input:not([type]), .cur-field input[type=number] { cursor: text; }

.fx h1.title { height: calc(var(--fit, 40px) * 1.4); display: flex; align-items: center; gap: .28em; }
@media (max-width: 959px) { .fx h1.title { height: calc(var(--fit, 40px) * 2.75); flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; } }

.fx .slot > .readout, .fx .slot > .seed { translate: 0 0; }
.fx .slot { opacity: calc(1 - var(--out, 0) * 2); }

/* tool dialogs (notes, wallet) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tool-dialog { --rgb: 196,175,255; color-scheme: dark; color: var(--text); font-family: var(--body); width: min(820px, calc(100% - 32px)); max-width: calc(100% - 32px); height: min(900px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid rgba(var(--rgb), .45); border-radius: 20px; background: #171326; box-shadow: 0 30px 100px rgba(0,0,0,.6); overflow: hidden; }
.tool-dialog.wallet { --rgb: 131,222,210; background: #10232c; }
.tool-dialog::backdrop { background: rgba(6,11,22,.85); backdrop-filter: blur(8px); }
.dialog-shell { height: 100%; display: flex; flex-direction: column; }
.dialog-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.13); }
.dialog-head h2 { font-family: var(--display); font-stretch: 92%; font-weight: 650; font-size: 1.15rem; line-height: 1.4; margin: 0; }
.dialog-close { flex: none; border: 0; border-radius: 10px; padding: 9px 16px; font: inherit; font-weight: 750; font-size: .9rem; color: #0a1020; background: rgb(var(--rgb)); cursor: pointer; }
.dialog-body { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; padding: 12px; }
.dialog-body iframe { display: block; max-width: 100%; background: #141724; }
html.dlg { overflow: hidden; }
.dlg .cur-dot, .dlg .cur-ring { opacity: 0; }
.dlg .tool-dialog, .dlg .tool-dialog * { cursor: auto; }
.dlg .tool-dialog .dialog-close { cursor: pointer; }
@media (max-width: 540px) { .tool-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; } .dialog-head { padding: 10px 12px; } .dialog-body { padding: 4px; } }
