:root {
  --bg: #F1F0EB;
  --paper: #FCFBF8;
  --ink: #0C0C0D;
  --ink-2: #2A2A2C;
  --muted: #6B6964;
  --faint: #A29F98;
  --line: #E1DFD8;
  --line-2: #CFCDC5;
  --dark: #0B0B0C;
  --long: #10B46A;
  --short: #EF4146;
  --wrap: 1200px;
  --nav: 68px;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* static paper / film grain over everything (generated once in js/texture.js) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); background-size: 220px 220px; opacity: .55;
}

.hero, .close { position: relative; isolation: isolate; }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
::selection { background: var(--ink); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 50;
  background: rgba(241, 240, 235, .8);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease, color .4s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.on-dark { background: rgba(11, 11, 12, .72); color: #fff; border-bottom-color: rgba(255, 255, 255, .08); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.brand svg { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.brand:hover svg { transform: rotate(180deg); }
.links { display: flex; gap: 28px; }
.links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.links a:hover { color: var(--ink); }
.nav.on-dark .links a { color: rgba(255, 255, 255, .55); }
.nav.on-dark .links a:hover { color: #fff; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.price { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.price i { width: 6px; height: 6px; border-radius: 50%; background: var(--long); animation: live 2.4s ease-in-out infinite; }
.price b { color: var(--ink); font-weight: 500; transition: color .4s; }
.nav.on-dark .price, .nav.on-dark .price b { color: rgba(255, 255, 255, .8); }
@keyframes live { 50% { opacity: .3; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 500; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #26262A; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.nav.on-dark .btn-ink { background: #fff; color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn[disabled] { cursor: default; background: #E7E5DF; color: var(--muted); }
.btn[disabled] span { color: var(--faint); }

/* ------------------------------------------------------------------ type */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.05em; font-weight: 500; text-wrap: balance; }
h3 { font-size: 19px; letter-spacing: -.025em; font-weight: 500; }
.lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 28em; letter-spacing: -.01em; }
.head { margin-bottom: 64px; max-width: 720px; }
.head.left { margin: 0; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .wi { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--d, 0s)); }
[data-split].in .wi { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  padding-top: calc(var(--nav) + 10vh); padding-bottom: 10vh;
  display: flex; flex-direction: column; align-items: center;
}
/* the mountain photo: fades in from paper at the top and back into paper at the bottom */
.hero-bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  /* the fade lives on the frame, so the photo can drift inside it and the edges stay soft */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 9%, #000 27%, #000 58%, rgba(0, 0, 0, .45) 80%, transparent 99%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 9%, #000 27%, #000 58%, rgba(0, 0, 0, .45) 80%, transparent 99%);
}
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 58%;
  filter: saturate(1.08) contrast(1.12) brightness(.98);
  transform-origin: 50% 70%;
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0);
  animation: heroIn 2.8s var(--ease) both;
  will-change: transform;
}
@keyframes heroIn { from { opacity: 0; scale: 1.14; } to { opacity: 1; scale: 1.04; } }
.hero-bg img { scale: 1.04; }
/* dawn grade, the logo's colours: peach sky at the top fading into the mountain blue */
.hero-dawn {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #F6CDB6 0%, #F3CDBB 22%, #E9CFCB 40%, rgba(225, 214, 222, .6) 56%, rgba(225, 214, 222, 0) 74%);
  mix-blend-mode: multiply;
  animation: heroIn 2.8s var(--ease) both;
}
.hero-coins { position: absolute; inset: 0; z-index: -1; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy h1 { margin-bottom: 26px; font-size: clamp(48px, 7.4vw, 100px); max-width: 7.6em; }
.hero-copy .lead { margin: 0 auto 38px; color: #55534E; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions.center, .hero .actions { justify-content: center; }
.hero .btn-line, .close .btn-line { background: rgba(252, 251, 248, .6); }
.credit { font-size: 12px; color: var(--faint); }
.credit a { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ the coin (dark) */
.coin-sec { position: relative; height: 320vh; background: #08080A; color: #fff; }
.coin-sec .sticky { background: radial-gradient(85% 80% at 66% 48%, #19191C 0%, #0E0E10 52%, #08080A 100%); }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.coin-stage { position: absolute; inset: 0; }
.coin-copy { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; pointer-events: none; }
.beat { position: absolute; left: 40px; top: 50%; margin-top: -90px; max-width: 400px; opacity: 0; will-change: opacity, transform; }
.beat .num { font-family: var(--mono); font-size: 12px; color: rgba(255, 255, 255, .45); margin-bottom: 20px; }
.beat h2 { margin-bottom: 18px; }
.beat p:last-child { color: rgba(255, 255, 255, .6); font-size: 18px; line-height: 1.5; }
.layer {
  position: absolute; left: 0; top: 0; z-index: 2; opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; translate: -50% calc(-100% - 14px);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
  white-space: nowrap;
}
.layer i { width: 7px; height: 7px; border-radius: 50%; }
.layer i.long { background: var(--long); }
.layer i.short { background: var(--short); }
.layer i.spot { background: #D4D6DA; }
.coin-bar { position: absolute; left: 40px; right: 40px; bottom: 34px; height: 1px; background: rgba(255, 255, 255, .12); max-width: calc(var(--wrap) - 80px); margin: 0 auto; }
.coin-bar i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ------------------------------------------------------------------ how */
.how { padding: 24px 0 170px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps > .stage-canvas { z-index: 3; pointer-events: none; }
.step-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border-radius: 26px; box-shadow: 0 0 0 1px var(--line);
}
.step-card:hover { box-shadow: 0 0 0 1px var(--line-2); }
.step-view { height: 290px; background: radial-gradient(120% 100% at 50% 12%, #FFFFFF 0%, #F5F4F0 50%, #E8E6E0 100%); border-bottom: 1px solid var(--line); }
.step-text { padding: 26px 28px 0; }
.step-text h3 { margin-bottom: 8px; font-size: 20px; }
.step-text p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.step-chip {
  align-self: flex-start; margin: 22px 28px 28px; display: inline-flex; align-items: center; gap: 7px;
  font-style: normal; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
}
.step-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--long); transition: background .3s; }
.step-chip[data-side="short"] i { background: var(--short); }
.step-chip span { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ panels (try + mint) */
.try, .mint { padding: 150px 0 40px; }
/* nature frames around the panels, toned like the hero photo */
.scenery { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; padding: 56px; background: #DDE3E6; }
.scenery-img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; z-index: -2;
  object-fit: cover; filter: saturate(1.05) contrast(1.1) brightness(.99);
  transform: translate3d(0, var(--sy, 0px), 0); will-change: transform;
}
.scenery::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(241, 240, 235, .4), rgba(241, 240, 235, 0) 38%); }
.scenery .panel, .scenery .step-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .55), 0 44px 90px -46px rgba(18, 28, 38, .5); }
.scenery-steps { padding: 44px; }
.panel { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.panel-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.controls { padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.panel .controls { border-right: 1px solid var(--line); }
.panel-rev .controls { border-right: 0; border-left: 1px solid var(--line); }
.view { position: relative; min-height: 540px; background: radial-gradient(125% 100% at 50% 16%, #FFFFFF 0%, #F6F5F1 46%, #EAE8E2 100%); }
.view.grab { cursor: grab; touch-action: pan-y; }
.view.grabbing { cursor: grabbing; }
.view .hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-family: var(--mono); font-size: 12px; color: var(--faint); z-index: 2; }
.tag { position: absolute; left: 0; top: 0; translate: -50% -100%; z-index: 2; pointer-events: none; font-family: var(--mono); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); white-space: nowrap; }
.tag[data-side="long"] { color: var(--long); }
.tag[data-side="short"] { color: var(--short); }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 999px; padding: 4px; }
.seg button { position: relative; z-index: 1; height: 42px; border: 0; background: none; border-radius: 999px; font-weight: 500; cursor: pointer; color: var(--muted); transition: color .35s; }
.seg button.on { color: #fff; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .55s var(--ease); }
.seg[data-side="short"] .seg-pill { transform: translateX(100%); }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.field > span b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.input { display: flex; align-items: center; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.input:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; }
.input input::placeholder { color: var(--faint); }
.input em { font-style: normal; font-family: var(--mono); color: var(--muted); font-size: 13px; }
.input em.pre { margin-right: 3px; font-family: var(--font); font-size: 17px; color: var(--muted); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) var(--fill, 100%), var(--line-2) 0); }
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; background: var(--ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); transition: transform .25s var(--ease); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.out { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.out div { padding: 16px 0 0; }
.out div:nth-child(n+3) { padding-top: 14px; }
.out dt { font-size: 12.5px; color: var(--muted); }
.out dd { margin: 4px 0 0; font-family: var(--mono); font-size: 15.5px; font-variant-numeric: tabular-nums; }
.fine { font-size: 12px; color: var(--faint); font-family: var(--mono); line-height: 1.6; }
.file { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px; border-radius: 14px; background: var(--bg); cursor: pointer; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file b { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.file em { font-style: normal; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.finishes button { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--bg); font-size: 14px; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.finishes button i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.finishes button.on { box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.controls .btn-wide { margin-top: auto; }

/* ------------------------------------------------------------------ numbers */
.numbers { padding: 150px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 0 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 64px); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ faq */
.faq { padding: 170px 0 40px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 18px; letter-spacing: -.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .5s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 0 24px; font-size: 16px; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ------------------------------------------------------------------ close + footer */
.close { position: relative; overflow: hidden; padding: 210px 0 300px; text-align: center; }
/* the closing backdrop fades in from paper and back out, like the hero */
.close-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 14%, #000 34%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .5) 14%, #000 34%, #000 70%, transparent 100%);
}
.close-bg img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  object-fit: cover; object-position: 50% 58%;
  filter: saturate(1.05) contrast(1.1) brightness(.99);
  transform: translate3d(0, var(--sy, 0px), 0); will-change: transform;
}
.close h2 { font-size: clamp(56px, 9vw, 132px); letter-spacing: -.06em; margin-bottom: 44px; }
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 30px; }
.foot-links { display: flex; gap: 26px; justify-content: center; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.small { grid-column: 1 / 3; font-size: 13px; color: var(--faint); }
.small.right { grid-column: auto; justify-self: end; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .links { display: none; }
}
@media (max-width: 860px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .price { display: none; }
  .hero { padding-top: calc(var(--nav) + 40px); }
  .hero-bg img { object-position: 46% 100%; }
  .actions { justify-content: center; }
  .coin-sec .sticky { background: radial-gradient(110% 70% at 50% 62%, #19191C 0%, #0E0E10 52%, #08080A 100%); }
  .beat { left: 22px; right: 22px; top: calc(var(--nav) + 28px); margin-top: 0; max-width: none; }
  .beat h2 { font-size: 34px; margin-bottom: 10px; }
  .beat .num { margin-bottom: 12px; }
  .beat p:last-child { font-size: 16px; }
  .coin-bar { left: 22px; right: 22px; }
  .try, .mint, .faq { padding-top: 110px; }
  .how { padding-top: 10px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-view { height: 240px; }

  .panel, .panel-rev { grid-template-columns: 1fr; }
  .panel .controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-rev .controls { border-left: 0; border-top: 1px solid var(--line); }
  .panel-rev .view { order: -1; }
  .controls { padding: 26px; }
  .view { min-height: 400px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .close { padding: 140px 0 220px; }
  .scenery { padding: 14px; border-radius: 28px; }
  .scenery .panel { border-radius: 20px; }
  .foot-in { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .foot-links { flex-wrap: wrap; }
  .small, .small.right { grid-column: auto; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  [data-split] .wi, [data-reveal] { transition: none; transform: none; opacity: 1; }
}
