/* 4bc Wallet site, mock 3. Plain CSS, no framework, nothing loaded from another site. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ground: #2B2D31;
  --deep: #222326;
  --deeper: #1A1B1D;
  --silver: #D9DADC;
  --silver-2: rgba(217, 218, 220, 0.66);
  --silver-3: rgba(217, 218, 220, 0.42);
  --hair: rgba(217, 218, 220, 0.12);
  --yellow: #FFC93C;
  --ink: #1F2023;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --gutter: 72px;
  --max: 1296px;
}

* { box-sizing: border-box; }
html { background: var(--deeper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--silver);
  background: var(--ground);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: box-shadow .5s var(--ease), background-color .5s var(--ease), transform .5s var(--ease), color .5s var(--ease);
}
.btn-yellow {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 201, 60, .5), 0 10px 40px -10px rgba(255, 201, 60, .55);
}
.btn-yellow:hover { box-shadow: 0 0 0 1px rgba(255, 201, 60, .7), 0 14px 60px -8px rgba(255, 201, 60, .75); transform: translateY(-1px); }
.btn-quiet { color: var(--silver); box-shadow: inset 0 0 0 1px rgba(217, 218, 220, .24); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px rgba(217, 218, 220, .5); background: rgba(217, 218, 220, .04); }
.btn-quiet svg { opacity: .7; }
.btn-yellow.lit { box-shadow: 0 0 0 1px rgba(255, 201, 60, .7), 0 12px 56px -6px rgba(255, 201, 60, .72); animation: swell 1.8s var(--ease) 1; }
@keyframes swell { 0% { box-shadow: 0 0 0 1px rgba(255, 201, 60, .5), 0 10px 40px -10px rgba(255, 201, 60, .55); } 45% { box-shadow: 0 0 0 1px rgba(255, 201, 60, .8), 0 14px 90px 4px rgba(255, 201, 60, .85); } 100% { box-shadow: 0 0 0 1px rgba(255, 201, 60, .7), 0 12px 56px -6px rgba(255, 201, 60, .72); } }
.btn-small { height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- Top bar ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.top .wrap { height: 96px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; overflow: visible; }
.brand .light { filter: drop-shadow(0 0 3px rgba(255, 201, 60, .9)) drop-shadow(0 0 9px rgba(255, 201, 60, .45)); }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a:not(.btn) { color: var(--silver-2); transition: color .4s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--silver); }

/* ---------- First screen ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(760px, 100vh, 920px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(12, 12, 13, .75), transparent 55%),
    linear-gradient(100deg, #18191B 0%, #202124 38%, #2A2B2E 70%, #2B2D31 100%);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.glow-a {
  width: 1100px; height: 1100px; right: -260px; top: -180px;
  background: radial-gradient(closest-side, rgba(255, 201, 60, .40), rgba(255, 201, 60, .16) 45%, rgba(255, 201, 60, 0) 100%);
  filter: blur(20px);
}
.glow-b {
  width: 760px; height: 760px; right: 120px; top: 260px;
  background: radial-gradient(closest-side, rgba(255, 214, 110, .2), rgba(255, 201, 60, 0) 100%);
}
.wash { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 201, 60, 0) 35%, rgba(255, 201, 60, .07) 70%, rgba(255, 201, 60, .13) 100%); }
.glow-c {
  width: 900px; height: 600px; left: -300px; bottom: -380px;
  background: radial-gradient(closest-side, rgba(217, 218, 220, .07), rgba(217, 218, 220, 0));
}
.grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: radial-gradient(80% 60% at 70% 45%, transparent 40%, rgba(10, 10, 11, .35) 100%);
}

.hero .wrap { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 560px; align-items: center; position: relative; padding-top: 40px; padding-bottom: 70px; }
.hero-text { padding-top: 24px; max-width: 720px; }
.hero h1 {
  font-size: clamp(56px, 6.6vw, 96px); line-height: 1.0; letter-spacing: -0.045em; font-weight: 500;
  color: var(--silver);
}
.hero h1 .ln { display: block; }
.hero h1 .dim { color: rgba(217, 218, 220, .5); }
.hero .lede { margin-top: 32px; max-width: 520px; font-size: 20px; line-height: 1.55; color: var(--silver-2); font-weight: 400; }
.hero .actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; }

.facts {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px;
  display: flex; align-items: center; margin: 0; padding: 0;
  font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(217, 218, 220, .6);
}
.facts li { list-style: none; padding: 5px 38px 5px 38px; border-left: 1px solid rgba(217, 218, 220, .2); line-height: 1.2; }
.facts li:first-child { padding-left: 0; border-left: 0; }

/* ---------- The folding phone (our own drawing, generic) ---------- */
.stage { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.device {
  --w: 384px;
  position: relative; width: var(--w); margin-left: 110px;
  filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .45));
}
/* the second leaf, open behind the first, hinge at the left edge */
.leaf-back {
  position: absolute; top: 0; bottom: 0; right: 100%; width: var(--w);
  transform-origin: right center;
  transform: perspective(1500px) rotateY(-63deg);
  border-radius: calc(var(--w) * .11);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .0) 0%, rgba(255, 255, 255, .05) 60%, rgba(255, 255, 255, .12) 96%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #3A3C40 0%, #2A2B2F 50%, #212225 100%);
  box-shadow: inset 0 0 0 1.5px rgba(217, 218, 220, .22), inset 0 0 40px rgba(0, 0, 0, .5);
}
.leaf-back::after { /* the leaf's edge catching the light */
  content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(217, 218, 220, .5), transparent);
}
.hinge {
  position: absolute; z-index: 2; left: -9px; top: 2.2%; bottom: 2.2%; width: 14px; border-radius: 8px;
  background: linear-gradient(90deg, #17181A 0%, #5B5D62 30%, #C9CACD 48%, #6A6C70 64%, #1D1E21 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
}
.hinge::before, .hinge::after { /* hinge segments */
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(0, 0, 0, .45);
}
.hinge::before { top: 33%; }
.hinge::after { top: 67%; }
.leaf-front {
  position: relative; z-index: 3;
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .115);
  background: linear-gradient(160deg, #4A4C51 0%, #26272A 30%, #18191B 70%, #2D2E32 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(217, 218, 220, .38),
    inset 0 0 0 4px rgba(10, 10, 11, .9),
    0 0 0 1px rgba(0, 0, 0, .6),
    0 0 90px -10px rgba(255, 201, 60, .25);
}
.screen {
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 1398 / 2034;
  border-radius: calc(var(--w) * .085);
  background: #2B2D31;
}
.screen .shot { position: absolute; inset: 0; background: url("app-screens-fold/01-welcome.png") center / cover no-repeat; background-image: image-set(url("app-screens-fold/01-welcome.avif") type("image/avif"), url("app-screens-fold/01-welcome.png") type("image/png")); z-index: 2; }
.screen .s2, .screen .s3, .screen .s4 { opacity: 0; }
.screen .s2 { background-image: url("app-screens-fold/08-add-bitcoin-wallet.png"); background-image: image-set(url("app-screens-fold/08-add-bitcoin-wallet.avif") type("image/avif"), url("app-screens-fold/08-add-bitcoin-wallet.png") type("image/png")); }
.screen .s3 { background-image: url("app-screens-fold/10-add-monero-wallet.png"); background-image: image-set(url("app-screens-fold/10-add-monero-wallet.avif") type("image/avif"), url("app-screens-fold/10-add-monero-wallet.png") type("image/png")); }
.screen .s4 { background-image: url("app-screens-fold/06-home-empty.png"); background-image: image-set(url("app-screens-fold/06-home-empty.avif") type("image/avif"), url("app-screens-fold/06-home-empty.png") type("image/png")); }
.screen .cam { position: absolute; z-index: 3; top: 2.6cqw; left: 50%; width: 2.6cqw; height: 2.6cqw; margin-left: -1.3cqw; border-radius: 50%; background: #0D0D0E; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.screen .glass { /* a slow sheen across the glass */
  position: absolute; inset: -40%; z-index: 4; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .055) 50%, transparent 58%);
}
/* placeholder of the welcome screen, at the fold's own shape, until the real picture drops in */
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 9cqw 7cqw 6cqw; }
.ph img { width: 66cqw; margin-top: 2cqw; }
.ph .k { margin-top: 3cqw; font-size: 2.5cqw; letter-spacing: .32em; color: rgba(217, 218, 220, .6); }
.ph .t { margin-top: 2.2cqw; font-size: 6.6cqw; line-height: 1.22; font-weight: 400; letter-spacing: -0.01em; }
.ph .t span { color: rgba(217, 218, 220, .55); }
.ph .sp { flex: 1; }
.ph .terms { font-size: 2.3cqw; color: rgba(217, 218, 220, .6); }
.ph .terms b { color: var(--yellow); font-weight: 400; }
.ph .go { margin-top: 2.6cqw; width: 100%; height: 9.2cqw; border-radius: 4.6cqw; background: var(--yellow); color: var(--ink); font-size: 3.4cqw; font-weight: 500; display: flex; align-items: center; justify-content: center; }

/* ---------- Story sections ---------- */
.story { position: relative; overflow-x: clip; padding: 40px 0 10px; background: var(--ground); }
/* the snake: a light that has a body and no road. The path it follows is never painted. */
.snake { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; display: none; }
.js .snake { display: block; }
.snake path { fill: none; stroke: #FFC93C; stroke-linecap: round; stroke-linejoin: round; }
.snake .bodyg { opacity: 1; }

.chapter { position: relative; z-index: 1; }
.chapter .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 120px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.chapter.flip .copy { order: 2; }
.chapter.flip .scene { order: 1; }
.copy { position: relative; max-width: 560px; padding-left: 4px; }
.chapter.flip .copy { justify-self: start; }
.chapter:not(.flip) .copy { justify-self: end; }
.anchor { position: absolute; left: -34px; top: 14px; width: 1px; height: 1px; visibility: hidden; }
.copy h2 { margin-top: 0; font-size: clamp(40px, 3.8vw, 54px); line-height: 1.04; text-wrap: balance; letter-spacing: -0.04em; }
.copy p { margin-top: 22px; font-size: 20.5px; line-height: 1.6; color: rgba(217, 218, 220, .84); }
.copy .btn { margin-top: 36px; }

.scene { position: relative; display: flex; justify-content: center; align-items: center; }
.scene::before { /* a soft light the picture sits in; no edge, no card */
  content: ""; position: absolute; width: 118%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 218, 220, .07), rgba(217, 218, 220, .03) 50%, rgba(217, 218, 220, 0) 72%);
}
.scene.warm::before { background: radial-gradient(closest-side, rgba(255, 201, 60, .11), rgba(255, 201, 60, .04) 50%, rgba(255, 201, 60, 0) 72%); }
.scene img { width: min(372px, 100%); }
.scene.coin img { width: min(340px, 100%); }
.scene.coin::before { width: 92%; }
.scene.btc::before { background: radial-gradient(closest-side, rgba(247, 147, 26, .10), rgba(247, 147, 26, .035) 55%, rgba(247, 147, 26, 0) 75%); }
.scene.xmr::before { background: radial-gradient(closest-side, rgba(242, 104, 34, .09), rgba(242, 104, 34, .03) 55%, rgba(242, 104, 34, 0) 75%); }
.scene.coin .float::after { content: ""; display: block; width: 70%; height: 22px; margin: -18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0)); }
.scene .float { will-change: transform; }

/* small drawn infographics beside the words */
.trail { margin: 32px 0 0; padding: 0; list-style: none; max-width: 400px; counter-reset: none; }
.trail li { position: relative; padding: 13px 0; border-top: 1px solid rgba(217, 218, 220, .13); font-size: 18px; letter-spacing: -0.01em; color: rgba(217, 218, 220, .6); }
.trail li:nth-child(2) { color: rgba(217, 218, 220, .8); }
.trail li:last-child { color: var(--silver); border-bottom: 1px solid rgba(217, 218, 220, .13); }
.trail li:last-child::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 2px; border-radius: 2px; background: var(--yellow); }
.trail li small { display: block; font-size: 14px; letter-spacing: 0; color: var(--silver-3); }

.verbs { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 38px; font-size: 24px; letter-spacing: -0.02em; color: var(--silver); }
.verbs span { display: inline-flex; align-items: center; gap: 12px; }
.verbs svg { flex: 0 0 auto; color: rgba(217, 218, 220, .7); }
.verbs span:last-child svg { color: var(--yellow); }

.nolist { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; font-size: 22px; letter-spacing: -0.02em; }
.nolist li { position: relative; color: var(--silver-2); }
.nolist li::after { content: ""; position: absolute; left: -3px; right: -3px; top: 54%; height: 1.5px; background: var(--yellow); border-radius: 2px; box-shadow: 0 0 8px rgba(255, 201, 60, .6); transform-origin: left; }

.choice { margin-top: 0; display: flex; align-items: center; gap: 0; }
.bust { width: 232px; aspect-ratio: 1; border-radius: 50%; background: url("img/personas.png") 0 0 / 200% 100% no-repeat; background-image: image-set(url("img/personas.avif") type("image/avif"), url("img/personas.png") type("image/png")); box-shadow: 0 0 0 1px rgba(217, 218, 220, .14), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.bust.b { background-position: 100% 0; }
.choice figure { margin: 0; text-align: center; }
.choice figcaption { margin-top: 14px; font-size: 17px; color: var(--silver); }
.choice figcaption small { display: block; font-size: 13px; color: var(--silver-3); }
/* the real switch: a track and a knob that slides; the knob is a flat silver disc, not a light */
.switch { flex: 0 0 76px; height: 36px; margin: 0 24px 64px; border-radius: 18px; position: relative; background: rgba(255, 201, 60, .10); box-shadow: inset 0 0 0 1.5px rgba(217, 218, 220, .3); }
.switch b { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(180deg, #EDEEEF, #B9BBBF); box-shadow: 0 2px 5px rgba(0, 0, 0, .4); }
.scene.duo::before { width: 150%; aspect-ratio: 2 / 1; background: radial-gradient(closest-side, rgba(255, 201, 60, .16), rgba(255, 201, 60, .06) 50%, rgba(255, 201, 60, 0) 80%); }
/* when the drawn scene is there, the switch stands by the words */
.minisw { margin-top: 30px; display: flex; align-items: center; gap: 18px; font-size: 18px; color: var(--silver); }
.minisw .switch { flex-basis: 64px; height: 32px; margin: 0; }
.minisw .switch b { width: 20px; height: 20px; top: 6px; left: 6px; }
.minisw .ea, .minisw .ib { transition: opacity .6s var(--ease); }

/* the closing chapter */
.get { position: relative; z-index: 1; padding: 50px 0 96px; }
.get .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 120px; align-items: center; }
.get-scene { display: flex; justify-content: center; }
.get-scene img { width: min(430px, 100%); }
.get-words { max-width: 560px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-big { height: 60px; padding: 0 36px; font-size: 17px; }
.get .btn-big { margin-top: 26px; }
.get-words p a.quiet { color: var(--silver); border-bottom: 1px solid rgba(255, 201, 60, .55); }
.get .sign { width: 150px; margin: 0 0 -6px -10px; position: relative; isolation: isolate; }
/* one wide, even light behind the sign; no filter on the picture itself */
.get .sign::before { content: ""; position: absolute; left: 50%; top: 52%; width: 230%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 201, 60, .075), rgba(255, 201, 60, .03) 45%, rgba(255, 201, 60, 0) 100%); }
.get-words p { margin: 26px 0 0; max-width: 620px; font-size: 20.5px; line-height: 1.6; color: rgba(217, 218, 220, .84); }
.only { grid-column: 1 / -1; margin: 64px auto 0; max-width: 640px; text-wrap: balance; text-align: center; font-size: 16px; line-height: 1.6; color: var(--silver-2); padding-top: 26px; border-top: 1px solid var(--hair); }
.only span { color: var(--silver); }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; background: var(--deep); border-top: 1px solid rgba(217, 218, 220, .06); font-size: 14px; color: var(--silver-3); }
.foot .wrap { padding-top: 56px; padding-bottom: 56px; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.foot .brand { font-size: 16px; color: var(--silver); }
.foot .brand svg { width: 26px; height: 26px; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; justify-content: flex-end; }
.foot nav a { color: var(--silver-2); }
.foot nav a:hover { color: var(--silver); }
.foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(217, 218, 220, .07); }

/* ---------- About page ---------- */
.about-hero { position: relative; overflow: hidden; isolation: isolate; padding: 200px 0 120px; background: linear-gradient(100deg, #18191B 0%, #222326 45%, #2B2D31 100%); }
.about-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 80px; align-items: center; }
.about-hero h1 { font-size: clamp(48px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -0.045em; }
.about-hero h1 .dim { color: rgba(217, 218, 220, .5); }
.about-hero .lede { margin-top: 36px; max-width: 620px; font-size: 20px; line-height: 1.65; color: var(--silver-2); }
.about-hero .lede + .lede { margin-top: 18px; }
.pair { position: relative; height: 420px; }
.pair .bust { position: absolute; width: 300px; }
.pair .bust.a { left: 0; top: 0; }
.pair .bust.b { right: 0; bottom: 0; }
.pair .glow { width: 620px; height: 620px; left: 50%; top: 50%; margin: -310px 0 0 -310px; background: radial-gradient(closest-side, rgba(255, 201, 60, .2), rgba(255, 201, 60, 0)); }

.beliefs { padding: 140px 0 60px; }
.beliefs .head { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; }
.beliefs h2, .keep h2 { font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.04em; line-height: 1.06; }
.belief-list { margin: 64px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; }
.belief-list li { padding: 34px 0 38px; border-top: 1px solid var(--hair); }
.belief-list h3 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.25; }
.belief-list p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--silver-2); }
.belief-list li:first-child h3 { color: var(--silver); }

.keep { padding: 100px 0 150px; }
.keep .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 96px; align-items: start; }
.keep p { margin-top: 22px; font-size: 19px; line-height: 1.62; color: var(--silver-2); }
.keep .mail { display: inline-block; margin-top: 26px; font-size: 22px; color: var(--silver); letter-spacing: -0.01em; border-bottom: 1px solid rgba(255, 201, 60, .6); padding-bottom: 4px; }

/* ---------- Motion (only with JavaScript on and motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .glow-a { animation: breathe 14s ease-in-out infinite alternate, drift-a 26s ease-in-out infinite alternate; }
  .glow-b { animation: drift-b 21s ease-in-out infinite alternate; }
  .brand .light { animation: lamp 5.5s ease-in-out infinite; }
  .screen .glass { animation: sheen 11s ease-in-out infinite; }
  .screen .s2, .screen .s3, .screen .s4 { animation: cycle 24s ease-in-out infinite; }
  .screen .s2 { animation-delay: 5s; } .screen .s3 { animation-delay: 11s; } .screen .s4 { animation-delay: 17s; }

  .js .rise { opacity: 0; transform: translateY(22px); filter: blur(8px); animation: rise .95s var(--ease) forwards; }
  .js .rise.d1 { animation-delay: .05s; } .js .rise.d2 { animation-delay: .12s; } .js .rise.d3 { animation-delay: .19s; }
  .js .rise.d4 { animation-delay: .26s; } .js .rise.d5 { animation-delay: .3s; }
  .js .settle { opacity: 0; transform: translateY(34px) scale(.975); animation: settle 1.05s var(--ease) .08s forwards; }
  .device-float { animation: float 9s ease-in-out 1.2s infinite alternate; }

  .js .reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
  .js .reveal.late { transition-delay: .1s; }
  .js .reveal.in { opacity: 1; transform: none; filter: none; }
  .js .in .float { animation: float 10s ease-in-out .9s infinite alternate; }
  .js .flip .in .float { animation-duration: 12s; }

  .snake .bodyg { animation: breathe 5s ease-in-out infinite alternate; }
  .snake .glowg { animation: breathe 7s ease-in-out infinite alternate-reverse; }
  .js .nolist li::after { transform: scaleX(0); transition: transform .7s var(--ease); }
  .js .in .nolist li::after { transform: scaleX(1); }
  .js .in .nolist li:nth-child(2)::after { transition-delay: .1s; }
  .js .in .nolist li:nth-child(3)::after { transition-delay: .2s; }
  .js .in .nolist li:nth-child(4)::after { transition-delay: .3s; }
  .switch b { animation: toggle 9s var(--ease) infinite; }
  .fa .bust, .fa figcaption, .minisw .ea { animation: easyOn 9s var(--ease) infinite; }
  .fb .bust, .fb figcaption, .minisw .ib { animation: incogOn 9s var(--ease) infinite; }
  .get .sign::before { animation: breathe 7s ease-in-out infinite alternate; }
  .pair .glow { animation: breathe 12s ease-in-out infinite alternate; }
}

@keyframes cycle { 0% { opacity: 0; } 5%, 25% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@keyframes settle { to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(-5px); } to { transform: translateY(7px); } }
@keyframes breathe { from { opacity: .78; } to { opacity: 1; } }
@keyframes drift-a { from { translate: 0 0; scale: 1; } to { translate: -90px 50px; scale: 1.08; } }
@keyframes drift-b { from { translate: 0 0; } to { translate: 70px -60px; } }
@keyframes lamp {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 201, 60, .7)) drop-shadow(0 0 6px rgba(255, 201, 60, .25)); }
  50% { filter: drop-shadow(0 0 4px rgba(255, 201, 60, 1)) drop-shadow(0 0 12px rgba(255, 201, 60, .6)); }
}
@keyframes sheen { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes toggle { 0%, 38% { left: 6px; } 50%, 88% { left: calc(100% - 30px); } 100% { left: 6px; } }
.minisw .switch b { --k: 26px; }
@keyframes easyOn { 0%, 38% { opacity: 1; } 50%, 88% { opacity: .55; } 100% { opacity: 1; } }
@keyframes incogOn { 0%, 38% { opacity: .55; } 50%, 88% { opacity: 1; } 100% { opacity: .55; } }

/* ---------- Narrower screens ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 460px; }
  .device { --w: 320px; margin-left: 90px; }
  .chapter .wrap { gap: 96px; }
}

@media (max-width: 820px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .top .wrap { height: 72px; }
  .brand { font-size: 16px; gap: 10px; }
  .brand svg { width: 28px; height: 28px; }
  .nav { gap: 22px; font-size: 14px; }
  .nav .btn { display: none; }

  .hero { height: auto; padding: 112px 0 0; }
  .hero .wrap { display: flex; flex-direction: column; align-items: stretch; height: auto; padding-top: 0; padding-bottom: 0; }
  .hero-text { padding-top: 0; }
  .hero h1 { font-size: clamp(42px, 12.2vw, 56px); letter-spacing: -0.045em; }
  .hero .lede { margin-top: 22px; font-size: 17px; }
  .hero .actions { margin-top: 30px; gap: 10px; }
  .hero .actions .btn { height: 50px; padding: 0 22px; font-size: 15px; }
  .stage { height: auto; padding: 56px 0 16px; justify-content: center; }
  .device { --w: min(256px, 58vw); margin-left: calc(var(--w) * .36); }
  .glow-a { width: 720px; height: 720px; right: -300px; top: 380px; }
  .glow-b { width: 420px; height: 420px; right: -60px; top: 560px; }
  .facts { position: relative; left: auto; right: auto; bottom: auto; margin: 36px 0 0; padding: 0 0 36px; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 12px; }
  .facts li, .facts li:first-child { padding: 0; border-left: 0; }

  .story { padding-top: 40px; }
  .chapter .wrap { display: flex; flex-direction: column; gap: 12px; min-height: 0; padding: 34px 44px 34px; }
  .chapter .scene, .chapter.flip .scene { order: 1; }
  .chapter .copy, .chapter.flip .copy { order: 2; justify-self: auto; max-width: none; }
  .scene .float { width: 100%; display: flex; justify-content: center; }
  .scene img, .scene.coin img { width: min(236px, 66%); }
  .copy h2 { font-size: clamp(34px, 9.6vw, 42px); margin-top: 12px; }
  .copy p { font-size: 18px; margin-top: 16px; }
  .verbs { font-size: 20px; gap: 12px 26px; margin-top: 26px; }
  .nolist { font-size: 19px; gap: 8px 22px; margin-top: 30px; }
  .choice { margin-top: 32px; }
  .bust { width: min(124px, 29vw); }
  .switch { flex-basis: 70px; margin: 0 10px 56px; }
  .choice figcaption { font-size: 15px; }
  .choice { margin: 12px 0; }
  .trail { margin-top: 24px; }
  .get { padding: 30px 0 70px; }
  .get .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0 44px; }
  .get-scene { margin-bottom: 8px; }
  .get-scene img { width: min(250px, 70%); }
  .get .sign { width: 120px; }
  .get p { font-size: 18px; }
  .only { margin-top: 44px; font-size: 15px; }

  .foot .wrap { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 44px; }
  .foot nav { justify-content: flex-start; gap: 14px 22px; }
  .foot .legal { flex-direction: column; gap: 8px; }

  .about-hero { padding: 120px 0 70px; }
  .about-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .about-hero h1 { font-size: clamp(40px, 11vw, 52px); }
  .about-hero .lede { font-size: 17px; margin-top: 24px; }
  .pair { height: 260px; order: -1; max-width: 360px; }
  .pair .bust { width: 180px; }
  .beliefs { padding: 70px 0 30px; }
  .belief-list { grid-template-columns: 1fr; margin-top: 36px; }
  .belief-list li { grid-template-columns: 44px 1fr; padding: 26px 0 28px; }
  .belief-list h3 { font-size: 22px; }
  .keep { padding: 50px 0 90px; }
  .keep .wrap { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 380px) {
  .nav { gap: 16px; }
  .hero .actions .btn { padding: 0 16px; font-size: 14px; }
  .hero .actions { gap: 8px; }
  .nolist { font-size: 17px; }
}

/* ---------- Reading layout (Terms, Privacy): h1, h2, p, ul, li, a, strong inside <main class="reading"> ---------- */
.plain .top { position: absolute; }
.reading { max-width: 720px; margin: 0 auto; padding: 168px 28px 110px; font-size: 18.5px; line-height: 1.72; color: rgba(217, 218, 220, .82); }
.reading h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 500; color: var(--silver); margin-bottom: 44px; }
.reading h2 { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; color: var(--silver); }
.reading p { margin-top: 20px; }
.reading h1 + p { margin-top: 0; }
.reading strong { color: var(--silver); font-weight: 500; }
.reading a { color: var(--silver); border-bottom: 1px solid rgba(255, 201, 60, .6); }
.reading a:hover { border-bottom-color: var(--yellow); }
.reading code { font-family: inherit; font-size: .94em; color: var(--silver); letter-spacing: 0; }
.reading ul { margin: 22px 0 0; padding: 0; list-style: none; }
.reading li { position: relative; padding-left: 28px; margin-top: 16px; }
.reading li::before { content: ""; position: absolute; left: 0; top: .86em; width: 12px; height: 1.5px; background: rgba(217, 218, 220, .5); } /* a short dash, not a dot */
@media (max-width: 820px) { .reading { padding: 120px 24px 70px; font-size: 17px; } .reading h2 { font-size: 24px; margin-top: 48px; } }

/* the About page's heading under its small label */
.about-hero h1 { margin-top: 20px; }

/* the page that is shown when an address does not exist */
.reading .back { margin-top: 36px; }
.reading .back a { border-bottom: 0; }

/* a short reading page still fills the window, so the footer stands at its bottom */
body.plain { min-height: 100vh; display: grid; grid-template-rows: 1fr auto; }
body.plain > main { width: 100%; }
