/* Ashback landing page. One sheet, own origin only, system type faces.
   The page reads whole with no script: every motion rule sits under
   html.motion, a class the script adds when motion is wanted. */

:root {
  --soot: #080605;
  --soot-2: #110c09;
  --soot-3: #1a120d;
  --iron: #6e6257;
  --ash: #bdb1a4;
  --bone: #efe6da;
  --ember: #ff6a1c;
  --ember-hot: #ffa766;
  --ink: #170a03;
  --line: rgba(239, 230, 218, 0.13);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gate-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --pad: clamp(20px, 5.2vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--soot);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soot);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--bone);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- the top bar ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 10px;
  background: rgba(8, 6, 5, 0.74);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* over the pinned film the bar is clear glass */
html.motion .bar:not(.is-solid) {
  background: rgba(8, 6, 5, 0);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.72em;
  min-height: 44px;
  font: 700 13px/1 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
}
.mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 14px 2px rgba(255, 106, 28, 0.8);
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 650 16px/1.1 var(--sans);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s var(--ease);
}
.btn--small,
.btn--big {
  color: var(--ink);
  background: linear-gradient(180deg, #ffb27a 0%, #ff7a2c 58%, #f8621a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 214, 0.75), inset 0 0 0 1px rgba(255, 190, 140, 0.35), 0 10px 30px -10px rgba(255, 106, 28, 0.7);
}
.btn--small { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn--big { min-height: 58px; padding: 0 34px; font-size: 18px; }
.btn--line {
  color: var(--bone);
  background: rgba(239, 230, 218, 0.04);
  box-shadow: inset 0 0 0 1px rgba(239, 230, 218, 0.28);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--big:hover { box-shadow: inset 0 1px 0 rgba(255, 236, 214, 0.8), inset 0 0 0 1px rgba(255, 190, 140, 0.4), 0 16px 44px -10px rgba(255, 106, 28, 0.85); }
.btn--line:hover { background: rgba(239, 230, 218, 0.09); }

/* the breathing glow behind the main call */
.btn--big::after {
  content: "";
  position: absolute;
  inset: -14px -10px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 80% at 50% 60%, rgba(255, 106, 28, 0.5), rgba(255, 106, 28, 0) 70%);
  opacity: 0.55;
  pointer-events: none;
}
html.motion .btn--big::after { animation: breathe 6.5s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 0.35; transform: scale(0.96); }
  50% { opacity: 0.8; transform: scale(1.04); }
}

/* ---------- small type ---------- */

.eyebrow {
  margin-bottom: 14px;
  font: 700 12px/1.25 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember-hot);
}
.fine {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ash);
}
.headline {
  font: 400 clamp(40px, 11.2vw, 86px)/1 var(--serif);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.title {
  max-width: 21ch;
  margin-bottom: clamp(28px, 5vw, 52px);
  font: 400 clamp(30px, 7.4vw, 58px)/1.05 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.glyph {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ember-hot);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.glyph--big { width: 34px; height: 34px; margin-bottom: 18px; }

/* ---------- 1. the gate ---------- */

.gate { position: relative; background: var(--soot); }

.gate__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.gate__still,
.gate__film,
.gate__shade {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
}
.gate__still img,
.gate__film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
}
/* The art's wrapper and its life layer do nothing without motion: the wrapper passes its children on to the stage. */
.gate__art { display: contents; }
.gate__life,
.gate__dim { display: none; }
.gate__still--first { z-index: 0; }
.gate__film { z-index: 1; opacity: 0; }
.gate__still--last { z-index: 2; opacity: 0; }
.gate__shade {
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(8, 6, 5, 0.62) 0%, rgba(8, 6, 5, 0) 16%),
    linear-gradient(0deg, rgba(8, 6, 5, 0.97) 0%, rgba(8, 6, 5, 0.94) 36%, rgba(8, 6, 5, 0.82) 47%, rgba(8, 6, 5, 0.4) 58%, rgba(8, 6, 5, 0) 70%);
}
.gate__embers { z-index: 3; inset: 0 0 auto 0; height: 54vh; height: 54svh; overflow: hidden; }
html.motion .gate__embers { height: 54%; }
.gate__words { display: contents; }

.act {
  position: relative;
  z-index: 4;
  padding: 0 var(--pad);
}
.act--1 {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 84px;
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}
.act--2 { order: 3; padding-top: 44px; padding-bottom: 28px; }
.act--3 { order: 4; padding-top: 28px; padding-bottom: 72px; }

.lede {
  max-width: 30ch;
  margin-top: 14px;
  font-size: clamp(18px, 4.8vw, 22px);
  line-height: 1.38;
  color: #e4dacd;
}
.act .eyebrow { text-shadow: 0 0 14px rgba(8, 6, 5, 0.9), 0 1px 2px rgba(8, 6, 5, 0.8); }
.act__call { margin-top: 20px; }
.act--1 .btn--big { width: 100%; }
.act--1 .fine { margin-top: 12px; }

.soon {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.soon__tag {
  font: 700 11.5px/1.25 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts strong {
  font: 400 34px/1 var(--serif);
  letter-spacing: -0.01em;
  color: var(--ember-hot);
}
.facts span { font-size: 13.5px; line-height: 1.25; color: var(--bone); }

.found { display: grid; gap: 12px; max-width: 34em; }
.found__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 12, 9, 0.8);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16.5px;
  line-height: 1.4;
}
.verdict {
  font: italic 400 clamp(34px, 9.6vw, 72px)/1.03 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
  font-weight: 650;
  color: var(--ember-hot);
  text-decoration: none;
}
.next svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.motion .next svg { animation: nod 1.8s var(--gate-ease) infinite; }
@keyframes nod { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

.gate__cue { display: none; }

/* the heap picture of the static path: a plain block between act 1 and act 2 */
html.still .gate__still--last {
  position: relative;
  order: 2;
  z-index: 4;
  width: auto;
  height: auto;
  margin: 28px var(--pad) 0;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}
html.still .gate__still--last img { object-position: 50% 42%; }

/* The life of the first screen, before any scroll: the keeper's lamp eyes
   glow and blink, the fire breathes, the tag glints, the whole picture
   breathes slowly. Lights laid over the sharp still; the script fits their
   box to the picture (landing.js, placeLife). Places are per cent of the
   picture: portrait here, landscape in the wide block below. */
.life {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.life--eye {
  width: 22%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 226, 180, 0.85) 0%, rgba(255, 160, 70, 0.5) 30%, rgba(255, 106, 28, 0) 66%);
}
.life--lid {
  width: 16%;
  aspect-ratio: 1;
  mix-blend-mode: multiply;
  background: radial-gradient(circle, rgba(26, 12, 4, 0.94) 0%, rgba(26, 12, 4, 0.9) 44%, rgba(26, 12, 4, 0) 62%);
  opacity: 0;
}
.life--eye-1, .life--lid-1 { left: 43.3%; top: 26.6%; }
.life--eye-2, .life--lid-2 { left: 59.4%; top: 26.3%; }
.life--fire {
  left: 83.9%;
  top: 37.2%;
  width: 40%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 190, 110, 0.55) 0%, rgba(255, 120, 40, 0.3) 34%, rgba(255, 106, 28, 0) 66%);
}
.life--tag {
  left: 45%;
  top: 47.2%;
  width: 9%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 244, 220, 0.9) 0%, rgba(255, 220, 170, 0.4) 36%, rgba(255, 200, 140, 0) 66%);
}
html.motion .gate__art {
  display: block;
  position: absolute;
  inset: 0;
  transform-origin: 50% 42%;
  animation: art-breathe 9s ease-in-out infinite alternate;
}
html.motion .gate__life {
  display: block;
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s linear;
}
html.motion .gate__stage.is-idle .gate__life { opacity: 1; }
html.motion .life--eye { animation: eye-glow 3.4s ease-in-out infinite; }
html.motion .life--eye-2 { animation-delay: -0.25s; }
html.motion .life--lid { animation: blink 5.6s linear infinite; }
html.motion .life--fire { animation: fire 2.3s ease-in-out infinite; }
html.motion .life--tag { animation: glint 4.2s ease-in-out infinite; }
html.motion .gate__stage:not(.is-idle) .life { animation-play-state: paused; }
@keyframes art-breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes eye-glow { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.8; } }
@keyframes blink { 0%, 91.5%, 97%, 100% { opacity: 0; } 93%, 95.2% { opacity: 1; } }
@keyframes fire { 0%, 100% { opacity: 0.3; } 18% { opacity: 0.8; } 31% { opacity: 0.45; } 47% { opacity: 0.95; } 63% { opacity: 0.5; } 80% { opacity: 0.85; } }
@keyframes glint { 0%, 58%, 100% { opacity: 0; } 72% { opacity: 0.9; } 86% { opacity: 0; } }

/* motion on: the stage pins and the scroll plays the film */
html.motion .gate { height: 350vh; height: 350svh; }
html.motion .gate__dim {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--soot);
  opacity: 0;
  pointer-events: none;
}
html.motion .gate__stage {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
html.motion .gate__still,
html.motion .gate__film,
html.motion .gate__shade { height: 100%; }
html.motion .gate__film,
html.motion .gate__still--last { transition: opacity 0.45s linear; }
html.motion .gate__stage.is-rolling .gate__film,
html.motion .gate__stage.is-living .gate__film { opacity: 1; }
/* where the keeper's own loop plays, the laid-over lights are not needed */
html.motion .gate__stage.is-living .gate__life { opacity: 0; }
html.motion .gate__stage.is-ended .gate__still--last { opacity: 1; }
html.motion .act {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 84px var(--pad) calc(22px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity 0.6s var(--gate-ease), transform 0.9s var(--gate-ease), visibility 0s linear 0.6s;
}
html.motion .act.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s var(--gate-ease) 0.12s, transform 0.9s var(--gate-ease) 0.12s, visibility 0s;
}
html.motion .act--2 { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
/* the last line stands a fifth of the screen above its foot, so the rising part reaches it late */
html.motion .act--3 { padding-bottom: calc(20vh + env(safe-area-inset-bottom)); }
html.motion .found__row {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
html.motion .found__row.is-on { opacity: 1; transform: none; }

html.motion .gate__stage.is-fresh .act { transition: none; }

/* the first look: a short rise, once */
html.motion .act--1 > * { animation: rise 0.7s var(--ease) both; }
html.motion .act--1 > :nth-child(2) { animation-delay: 0.08s; }
html.motion .act--1 > :nth-child(3) { animation-delay: 0.16s; }
html.motion .act--1 > :nth-child(4) { animation-delay: 0.24s; }
html.motion .act--1 > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- bands ---------- */

.band {
  position: relative;
  padding: clamp(76px, 12vw, 150px) 0;
  overflow: hidden;
  overflow: clip;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 2 * var(--pad));
  margin: 0 auto;
}
.wrap--narrow { width: min(760px, 100% - 2 * var(--pad)); }

.card {
  position: relative;
  padding: clamp(20px, 3.2vw, 34px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 167, 102, 0.085) 0%, rgba(239, 230, 218, 0.025) 44%, rgba(8, 6, 5, 0.25) 100%), rgba(17, 12, 9, 0.92);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 236, 214, 0.1), 0 44px 80px -44px rgba(0, 0, 0, 0.95);
}

html.motion [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* drifting embers, compositor only */
.embers { position: absolute; inset: 0; pointer-events: none; }
.embers i {
  position: absolute;
  bottom: -12px;
  width: 3px;
  height: 3px;
  animation-duration: 12s;
  border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 7px 1px rgba(255, 106, 28, 0.85);
  opacity: 0;
}
html.motion .embers i { animation-name: drift; animation-timing-function: linear; animation-iteration-count: infinite; }
html.motion .embers:not(.is-live) i { animation-play-state: paused; }
html .embers i:nth-child(1) { left: 6%; animation-duration: 13s; animation-delay: -2s; }
html .embers i:nth-child(2) { left: 17%; animation-duration: 16s; animation-delay: -9s; width: 2px; height: 2px; }
html .embers i:nth-child(3) { left: 29%; animation-duration: 11s; animation-delay: -5s; }
html .embers i:nth-child(4) { left: 41%; animation-duration: 15s; animation-delay: -12s; width: 2px; height: 2px; }
html .embers i:nth-child(5) { left: 53%; animation-duration: 12s; animation-delay: -1s; }
html .embers i:nth-child(6) { left: 64%; animation-duration: 17s; animation-delay: -7s; width: 4px; height: 4px; }
html .embers i:nth-child(7) { left: 73%; animation-duration: 12.5s; animation-delay: -10s; width: 2px; height: 2px; }
html .embers i:nth-child(8) { left: 82%; animation-duration: 14s; animation-delay: -4s; }
html .embers i:nth-child(9) { left: 90%; animation-duration: 11.5s; animation-delay: -8s; width: 2px; height: 2px; }
html .embers i:nth-child(10) { left: 96%; animation-duration: 15.5s; animation-delay: -13s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: 0.9; }
  55% { transform: translate3d(22px, -46vh, 0); opacity: 0.6; }
  100% { transform: translate3d(-14px, -92vh, 0); opacity: 0; }
}

/* ---------- 2. two ways out ---------- */

.ways {
  background:
    radial-gradient(90% 46% at 50% 0%, rgba(255, 106, 28, 0.16), rgba(255, 106, 28, 0) 72%),
    var(--soot);
}
html.motion .ways {
  z-index: 6;
  margin-top: -100vh;
  margin-top: -100svh;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 rgba(255, 190, 140, 0.3), 0 -40px 90px rgba(0, 0, 0, 0.7);
}
.ways__pair { display: grid; gap: 18px; }

.way { display: flex; flex-direction: column; }
.scene { width: 100%; max-width: 440px; height: auto; margin: 0 auto; overflow: visible; }
.scene__floor { fill: none; stroke: rgba(239, 230, 218, 0.2); stroke-width: 1; }
.scene__lane { fill: none; stroke: rgba(255, 167, 102, 0.42); stroke-width: 1; stroke-dasharray: 2 5; stroke-linecap: round; }
.tin rect { fill: var(--soot-3); stroke: var(--ash); stroke-width: 1.4; }
.tin path { fill: none; stroke: var(--ash); stroke-width: 1.4; stroke-linejoin: round; }
.furnace__body { fill: #16100c; stroke: var(--iron); stroke-width: 1.4; stroke-linejoin: round; }
.furnace__stack { fill: #16100c; stroke: var(--iron); stroke-width: 1.4; stroke-linecap: round; }
.furnace__mouth { stroke: #2a1608; stroke-width: 2; }
.furnace__teeth { fill: none; stroke: #2a1608; stroke-width: 1.8; stroke-linejoin: round; }
.furnace__eye { fill: var(--ember-hot); }
.sol { fill: var(--bone); stroke: rgba(255, 214, 170, 0.4); stroke-width: 4; paint-order: stroke; transform-box: fill-box; transform-origin: center; }
.tin__body, .furnace__eye, .wallet__stud { transform-box: fill-box; transform-origin: 50% 100%; }
.furnace__eye, .wallet__stud { transform-origin: center; }
.sol--fee { fill: var(--ember-hot); stroke-width: 3; }
.target__ring { fill: none; stroke: var(--ember-hot); stroke-width: 1.4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.coin__rim { fill: none; stroke: rgba(255, 236, 214, 0.55); stroke-width: 1; }
.coin__mark { fill: rgba(23, 10, 3, 0.86); }
.wallet__body { fill: var(--soot-3); stroke: var(--bone); stroke-width: 1.5; }
.wallet__flap { fill: none; stroke: var(--bone); stroke-width: 1.5; }
.wallet__stud { fill: var(--ember-hot); }
.target { transform-box: fill-box; transform-origin: center; }
.puff { fill: rgba(189, 177, 164, 0.5); opacity: 0; transform-box: fill-box; transform-origin: center; }
.spark { fill: var(--ember-hot); opacity: 0; }

/* at rest (no motion): the freed SOL stands along its lane */
.sol--1 { transform: translateX(10px); }
.sol--2 { transform: translateX(28px); }
.sol--3 { transform: translateX(46px); }
.sol--fee { transform: translateY(10px); }
.scene__tag { font: 700 10px/1 var(--sans); letter-spacing: 0.06em; fill: var(--ember-hot); }

html.motion .tin { animation: tin-go 6s linear infinite both; }
html.motion .tin--1 { --from: 0px; --to: 112px; }
html.motion .tin--2 { --from: -30px; --to: 82px; animation-delay: -2s; }
html.motion .tin--3 { --from: -60px; --to: 52px; animation-delay: -4s; }
html.motion .tin__body { animation: hop 0.52s ease-in-out infinite; }
html.motion .tin--2 .tin__body { animation-delay: -0.17s; }
html.motion .tin--3 .tin__body { animation-delay: -0.34s; }
html.motion .furnace__mouth { animation: stoke 2s ease-in-out infinite both; }
html.motion .furnace__eye { animation: wink 4.6s linear infinite; }
html.motion .puff { animation: puff 2s ease-out infinite both; }
html.motion .puff--2 { animation-delay: -1s; }
html.motion .scene__lane { animation: march 0.8s linear infinite; }
html.motion .sol { animation: sol-go 6s linear -1.3s infinite both; }
html.motion .sol--2 { animation-delay: -3.3s; }
html.motion .sol--3 { animation-delay: -5.3s; }
html.motion .sol--fee { animation: fee-go 2s linear -1.68s infinite both; }
html.motion .target__ring { animation: ring 2s ease-out -0.5s infinite both; }
html.motion .target--coin { animation: flip 2s var(--ease) -0.5s infinite both; }
html.motion .target--wallet { animation: bump 2s var(--ease) -0.5s infinite both; }
html.motion .wallet__stud { animation: stud 2s ease-out -0.5s infinite both; }
html.motion .spark { animation: spark 2s ease-out -0.5s infinite both; }
html.motion .spark--1 { --dx: -22px; --dy: -27px; }
html.motion .spark--2 { --dx: 3px; --dy: -36px; }
html.motion .spark--3 { --dx: 25px; --dy: -24px; }
html.motion [data-scene]:not(.is-live) * { animation-play-state: paused !important; }

/* one tin every two seconds walks into the furnace, hopping */
@keyframes tin-go {
  0% { transform: translateX(var(--from)); opacity: 0; }
  7% { opacity: 1; }
  72% { opacity: 1; }
  80%, 100% { transform: translateX(var(--to)); opacity: 0; }
}
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-2.6px) rotate(3deg); }
}
@keyframes stoke {
  0%, 100% { opacity: 0.8; }
  12% { opacity: 1; }
  55% { opacity: 0.84; }
}
@keyframes wink {
  0%, 90%, 98%, 100% { transform: scaleY(1); }
  94% { transform: scaleY(0.1); }
}
@keyframes puff {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  14% { opacity: 0.6; }
  100% { transform: translate(7px, -22px) scale(2.1); opacity: 0; }
}
@keyframes march { to { stroke-dashoffset: -7; } }
/* and its SOL pops out on the other side and runs to the coin or the wallet */
@keyframes sol-go {
  0% { transform: translateX(-14px) scale(0.3); opacity: 0; }
  5% { transform: translateX(-8px) scale(1.3); opacity: 1; }
  9% { transform: translateX(-2px) scale(1); opacity: 1; }
  44% { transform: translateX(56px) scale(1); opacity: 1; }
  50%, 100% { transform: translateX(64px) scale(0.4); opacity: 0; }
}
@keyframes fee-go {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(13px); opacity: 1; }
  66%, 100% { transform: translateY(15px); opacity: 0; }
}
@keyframes ring {
  0% { transform: scale(1); opacity: 0.95; }
  60%, 100% { transform: scale(1.24); opacity: 0; }
}
/* the coin turns once for every SOL that reaches it; the wallet takes it with a nod */
@keyframes flip {
  0%, 30%, 100% { transform: scaleX(1); }
  9% { transform: scaleX(0.1) scaleY(1.05); }
  19% { transform: scaleX(1.08); }
}
@keyframes bump {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.07); }
}
@keyframes stud {
  0%, 34%, 100% { transform: scale(1); }
  12% { transform: scale(2); }
}
@keyframes spark {
  0% { transform: translate(0, 0); opacity: 0; }
  5% { opacity: 1; }
  34%, 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 440px;
  width: 100%;
  margin: 2px auto 22px;
  font: 650 11px/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ash);
}
.steps li:first-child { text-align: left; }
.steps li:last-child { text-align: right; }

.way__name {
  font: 400 clamp(27px, 6.6vw, 36px)/1.08 var(--serif);
  letter-spacing: -0.015em;
}
.way__fee {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.way__fee strong {
  font: 400 clamp(64px, 17vw, 92px)/0.9 var(--serif);
  letter-spacing: -0.03em;
  color: var(--ember-hot);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .way__fee strong {
    background: linear-gradient(180deg, #ffd2a4 0%, #ff8a3a 62%, #ff6a1c 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.way__fee span { font-size: 16px; color: var(--bone); }
.way__lines { display: grid; gap: 10px; }
.way__lines li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.42;
  color: #ddd2c5;
}
.way__lines li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 30px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  line-height: 1.35;
  color: var(--bone);
}
.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--iron);
}
.ways .title { margin-bottom: 26px; }
.compare {
  max-width: 44em;
  margin-top: 30px;
  padding-left: 18px;
  border-left: 2px solid var(--iron);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bone);
}
.compare .fine { margin-top: 6px; }

/* ---------- 3. why here ---------- */

.why { background: linear-gradient(180deg, var(--soot) 0%, var(--soot-2) 50%, var(--soot) 100%); }
.why__grid { display: grid; gap: 16px; }
/* a card's icon draws itself when the card comes in */
html.motion .fact .glyph--big > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease) 0.3s;
}
html.motion .fact.is-in .glyph--big > * { stroke-dashoffset: 0; }
.fact h3 {
  margin-bottom: 8px;
  font: 400 23px/1.15 var(--serif);
  letter-spacing: -0.01em;
}
.fact p { font-size: 16px; line-height: 1.5; color: #ddd2c5; }
.fact .fine { margin-top: 10px; font-size: 14px; color: var(--ash); }
.fact--wide { display: grid; gap: 24px; }

.queue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(10px, 3vw, 22px);
}
.queue__wallets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.queue__wallets li {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 7px;
  background: var(--soot-3);
  box-shadow: inset 0 0 0 1.4px var(--iron);
}
.queue__wallets li::before {
  content: "";
  position: absolute;
  inset: 30% 0 auto 0;
  height: 1.4px;
  background: var(--iron);
}
.queue__wallets li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 78% 62%, var(--ember-hot) 0 2.5px, rgba(255, 167, 102, 0) 3.5px), rgba(255, 106, 28, 0.1);
  box-shadow: inset 0 0 0 1.4px var(--ember-hot), 0 0 16px rgba(255, 106, 28, 0.5);
  opacity: 1;
}
.queue__arrow { width: clamp(28px, 7vw, 56px); height: auto; fill: none; stroke: var(--ember-hot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.queue__report {
  display: grid;
  align-content: start;
  gap: 7px;
  width: clamp(64px, 17vw, 104px);
  aspect-ratio: 3 / 4;
  padding: 12px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f3ebe0, #d9cdbe);
  box-shadow: 0 18px 40px -18px rgba(255, 106, 28, 0.55);
}
.queue__report i,
.queue__report b { display: block; height: 5px; border-radius: 3px; background: #4b3d31; transform-origin: 0 50%; }
.queue__report i:nth-child(2) { width: 78%; }
.queue__report i:nth-child(3) { width: 88%; }
.queue__report b { height: 8px; margin-top: auto; background: var(--ember); align-self: end; }

html.motion .queue__wallets li::after { opacity: 0; animation: lit-1 8s linear infinite both; }
html.motion .queue__wallets li:nth-child(2)::after { animation-name: lit-2; }
html.motion .queue__wallets li:nth-child(3)::after { animation-name: lit-3; }
html.motion .queue__wallets li:nth-child(4)::after { animation-name: lit-4; }
html.motion .queue__wallets li:nth-child(5)::after { animation-name: lit-5; }
html.motion .queue__wallets li:nth-child(6)::after { animation-name: lit-6; }
html.motion .queue__wallets li:nth-child(7)::after { animation-name: lit-7; }
html.motion .queue__wallets li:nth-child(8)::after { animation-name: lit-8; }
html.motion .queue__wallets li:nth-child(9)::after { animation-name: lit-9; }
html.motion .queue__wallets li:nth-child(10)::after { animation-name: lit-10; }
html.motion .queue__report i:nth-child(1) { animation: write-1 8s var(--ease) infinite both; }
html.motion .queue__report i:nth-child(2) { animation: write-2 8s var(--ease) infinite both; }
html.motion .queue__report i:nth-child(3) { animation: write-3 8s var(--ease) infinite both; }
html.motion .queue__report b { animation: write-4 8s var(--ease) infinite both; }
@keyframes lit-1 { 0% { opacity: 0; } 3%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-2 { 0%, 5% { opacity: 0; } 8%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-3 { 0%, 10% { opacity: 0; } 13%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-4 { 0%, 15% { opacity: 0; } 18%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-5 { 0%, 20% { opacity: 0; } 23%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-6 { 0%, 25% { opacity: 0; } 28%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-7 { 0%, 30% { opacity: 0; } 33%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-8 { 0%, 35% { opacity: 0; } 38%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-9 { 0%, 40% { opacity: 0; } 43%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes lit-10 { 0%, 45% { opacity: 0; } 48%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes write-1 {
  0%, 10% { transform: scaleX(0); opacity: 0; }
  11% { opacity: 1; }
  19%, 90% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes write-2 {
  0%, 25% { transform: scaleX(0); opacity: 0; }
  26% { opacity: 1; }
  34%, 90% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes write-3 {
  0%, 40% { transform: scaleX(0); opacity: 0; }
  41% { opacity: 1; }
  49%, 90% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}
@keyframes write-4 {
  0%, 51% { transform: scaleX(0); opacity: 0; }
  52% { opacity: 1; }
  60%, 90% { transform: scaleX(1); opacity: 1; }
  96%, 100% { transform: scaleX(1); opacity: 0; }
}

/* ---------- 4. the coin ---------- */

.coin {
  background:
    radial-gradient(70% 50% at 50% 100%, rgba(255, 106, 28, 0.14), rgba(255, 106, 28, 0) 70%),
    var(--soot);
}
/* the coin's emblem: it turns once every four seconds */
.emblem { width: 84px; height: 84px; margin-bottom: 22px; overflow: visible; }
.emblem__halo { fill: rgba(255, 106, 28, 0.14); }
.emblem__coin { transform-box: fill-box; transform-origin: center; }
html.motion .emblem__coin { animation: turn 4s var(--gate-ease) infinite; }
html.motion .emblem__halo { transform-box: fill-box; transform-origin: center; animation: breathe 6.5s ease-in-out infinite; }
html.motion .emblem:not(.is-live) * { animation-play-state: paused; }
@keyframes turn {
  0%, 62%, 100% { transform: scaleX(1); }
  74% { transform: scaleX(0.06); }
  86% { transform: scaleX(1.04); }
}
.address { margin-bottom: 28px; }
.address__label {
  margin-bottom: 10px;
  font: 700 12px/1.25 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ember-hot);
}
.address__value {
  font: 500 clamp(15px, 4.1vw, 19px)/1.45 var(--mono);
  overflow-wrap: anywhere;
  color: var(--bone);
  -webkit-user-select: all;
  user-select: all;
}
.address__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.address__row .btn { flex: 1 1 200px; padding: 0 16px; white-space: nowrap; }
.address .fine { margin-top: 12px; }

.plain li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font: 400 clamp(19px, 4.9vw, 24px)/1.3 var(--serif);
}
.plain li:last-child { border-bottom: 1px solid var(--line); }
.risk {
  margin-top: 28px;
  padding: 4px 0 4px 18px;
  border-left: 2px solid var(--ember);
  font: 400 clamp(19px, 4.9vw, 24px)/1.3 var(--serif);
  color: var(--bone);
}

/* ---------- 5. the call ---------- */

.call {
  padding-top: clamp(96px, 16vw, 190px);
  padding-bottom: clamp(96px, 16vw, 190px);
  text-align: center;
  background: var(--soot);
}
.call::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 55%, rgba(255, 106, 28, 0.2), rgba(255, 106, 28, 0) 70%);
}
.call.has-art::before {
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(8, 6, 5, 0.5) 0%, rgba(8, 6, 5, 0.82) 60%, var(--soot) 100%),
    url("./assets/hero-tall-end.webp") 50% 34% / cover no-repeat;
}
.headline--call { font-size: clamp(34px, 9vw, 68px); line-height: 1.03; }
.call .act__call { display: flex; justify-content: center; margin-top: 30px; }
.call .fine { max-width: 40em; margin: 20px auto 0; color: #d3c8bb; }

/* ---------- foot ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px var(--pad) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* ---------- wider screens ---------- */

@media (min-width: 620px) {
  .why__grid { grid-template-columns: 1fr 1fr; }
  .fact--wide { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .ways__pair { grid-template-columns: 1fr 1fr; gap: 24px; }
  .why__grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .fact--wide { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 40px 44px; }
  .act--1 .btn--big { width: auto; }
}

/* a landscape stage: the words stand at the left, beside the keeper */
@media (min-aspect-ratio: 4/5) {
  .gate__still img,
  .gate__film { object-position: 64% 50%; }
  .gate__shade {
    background:
      linear-gradient(180deg, rgba(8, 6, 5, 0.6) 0%, rgba(8, 6, 5, 0) 18%),
      linear-gradient(90deg, rgba(8, 6, 5, 0.9) 0%, rgba(8, 6, 5, 0.72) 30%, rgba(8, 6, 5, 0.24) 52%, rgba(8, 6, 5, 0) 66%),
      linear-gradient(0deg, rgba(8, 6, 5, 0.7) 0%, rgba(8, 6, 5, 0) 26%);
  }
  .act--1 { justify-content: center; }
  .act--1 > *, .act--2 > *, .act--3 > * { max-width: min(600px, 46vw); }
  html.motion .act { justify-content: center; }
  html.motion .act--3 { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
  .soon { max-width: min(560px, 46vw); margin-top: 30px; padding-top: 18px; }
  .facts { grid-template-columns: auto auto; justify-content: start; gap: 12px 40px; }
  .gate__embers,
  html.motion .gate__embers { left: 44%; height: 100%; }
  .facts strong { font-size: 40px; }
  .facts span { font-size: 14.5px; }
  .act__call { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
  .act--1 .fine { margin-top: 0; max-width: 16em; }
  .call .fine { margin-top: 20px; }
  .lede { margin-top: 20px; }
  .call.has-art::before {
    background:
      radial-gradient(70% 80% at 50% 50%, rgba(8, 6, 5, 0.45) 0%, rgba(8, 6, 5, 0.84) 62%, var(--soot) 100%),
      url("./assets/hero-wide-end.webp") 50% 50% / cover no-repeat;
  }
  html.motion .gate { height: 380vh; height: 380svh; }
  .life--eye { width: 8%; }
  .life--lid { width: 6%; }
  .life--eye-1, .life--lid-1 { left: 58.4%; top: 44.4%; }
  .life--eye-2, .life--lid-2 { left: 64.4%; top: 43.3%; }
  .life--fire { left: 78.1%; top: 59.4%; width: 16%; }
  .life--tag { left: 61.9%; top: 70.6%; width: 3.6%; }
  html.motion .gate__cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 5;
    display: block;
    width: 1px;
    height: 46px;
    background: rgba(239, 230, 218, 0.2);
    overflow: hidden;
    transition: opacity 0.4s linear;
  }
  html.motion .gate__cue i { display: block; width: 1px; height: 18px; background: var(--ember-hot); animation: cue 2s var(--gate-ease) infinite; }
  html.motion .gate__cue.is-off { opacity: 0; }
}
@keyframes cue { from { transform: translateY(-20px); } to { transform: translateY(48px); } }

/* A phone with the browser's bars on screen (about 660 px of height): the
   keeper keeps his face free. The small caps above the headline go, the
   words stand closer, the shade under them is deeper. */
@media (max-height: 720px) and (max-aspect-ratio: 4/5) {
  .act--1 .eyebrow { display: none; }
  .headline { font-size: clamp(32px, 9.6vw, 40px); }
  .lede { margin-top: 10px; font-size: 17px; }
  .act__call { margin-top: 16px; }
  .act--1 .btn--big { min-height: 54px; }
  .act--1 .fine { margin-top: 10px; }
  .soon { margin-top: 14px; padding-top: 12px; }
  .facts { margin-top: 8px; }
  .facts strong { font-size: 30px; }
  .gate__shade {
    background:
      linear-gradient(180deg, rgba(8, 6, 5, 0.62) 0%, rgba(8, 6, 5, 0) 16%),
      linear-gradient(0deg, rgba(8, 6, 5, 0.97) 0%, rgba(8, 6, 5, 0.95) 46%, rgba(8, 6, 5, 0.82) 54%, rgba(8, 6, 5, 0.4) 63%, rgba(8, 6, 5, 0) 74%);
  }
}

/* ---------- the static path ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
