@font-face { font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root { --accent: #8FC8FF; --uv: #8FC8FF; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--bone); overflow-x: clip; }
body { font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; opacity: 0; transition: opacity .9s ease; }
#gl.is-on { opacity: 1; }
#words { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 4; pointer-events: none; }

/* the real app, revealed flat at the end */
.app { position: fixed; inset: 0; z-index: 1; visibility: hidden; background: var(--ink); }
.app iframe { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; background: var(--ink); }
.app.is-live iframe { pointer-events: auto; }
#fluid { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }

/* header: full bar at rest, glass pill once the page moves */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; padding: 14px clamp(10px, 2vw, 28px) 0; pointer-events: none; transition: transform .5s var(--ease-glide), opacity .4s var(--ease-glide); }
.bar__in { position: relative; pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 100%; max-width: 100%; height: 50px; padding: 0 clamp(6px, 1.2vw, 16px); border-radius: 26px; transition: max-width .7s var(--ease-glide), padding .7s var(--ease-glide); }
.bar__glass { position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-glide);
  background: rgba(237,234,227,.035); box-shadow: inset 0 1px 0 rgba(237,234,227,.16), inset 0 0 0 1px rgba(237,234,227,.10), 0 10px 30px rgba(0,0,0,.25); }
html:not(.lg-on) .bar__glass { background: rgba(10,14,20,.45); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.bar.is-pill .bar__in { max-width: 340px; padding: 0 6px 0 18px; }
.bar.is-pill .bar__glass { opacity: 1; }
.bar.is-gone { transform: translateY(-120%); opacity: 0; }
.bar.is-gone .bar__in { pointer-events: none; }
.brand { position: relative; display: flex; align-items: center; gap: 10px; color: var(--bone); }
.brand__logo { width: 24px; height: 24px; }
.brand__word { font-weight: 700; letter-spacing: .08em; font-size: 15px; }

.btn { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 4px; font: 500 14px/1 var(--font); letter-spacing: -.005em; transition: background-color .25s var(--ease-glide), border-color .25s var(--ease-glide), transform .25s var(--ease-glide); }
.btn:active { transform: scale(.97); }
.btn--line { border: 1px solid rgba(237,234,227,.22); color: var(--bone); }
.btn--line:hover { border-color: rgba(237,234,227,.5); }
.bar.is-pill .btn--line { height: 38px; border-radius: 20px; }
.btn--accent { background: var(--accent); color: var(--ink); height: 46px; padding: 0 22px; font-size: 15px; font-weight: 600; }
.btn--accent:hover { background: #A9D5FF; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.story { position: relative; z-index: 5; pointer-events: none; }
.story a { pointer-events: auto; }
.hero { position: relative; height: 100vh; min-height: 560px; padding: 0 clamp(16px, 5.6vw, 88px); display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(120px, 21vh, 210px); }
.hero__t { font-weight: 600; font-size: clamp(42px, 6.6vw, 108px); line-height: .96; letter-spacing: -.045em; max-width: 12ch; }
.hero__t span { display: block; }
.hero__l1 { color: var(--bone); }
.hero__l2 { color: var(--ash); }
.hero__cta { margin-top: clamp(28px, 4.4vh, 44px); align-self: flex-start; }
.hero__hint { position: absolute; left: clamp(16px, 5.6vw, 88px); bottom: 32px; font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--ash); text-transform: uppercase; }
.journey { position: relative; height: 2400vh; }

/* beats: fixed over the scene, driven by the scroll */
.bt { position: fixed; z-index: 5; opacity: 0; visibility: hidden; pointer-events: none; will-change: opacity, transform; }
.hero__t, .bt__h, .ribbon, .flip { text-shadow: 0 0 28px rgba(7,16,28,.75), 0 0 6px rgba(7,16,28,.5); }
.bt__h { font-weight: 600; font-size: clamp(36px, 4.7vw, 76px); line-height: 1; letter-spacing: -.042em; }
.bt__h .ln { display: block; will-change: opacity, transform; }
.ln--dim { color: var(--ash); }
.bt--fresh { left: clamp(16px, 6.4vw, 100px); top: 21vh; }
.bt--fresh .ln { white-space: nowrap; }
.bt--ribbon { left: 0; right: 0; top: 57vh; text-align: center; }
.ribbon { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 44px); font-weight: 600; font-size: clamp(34px, 4.6vw, 74px); line-height: 1; letter-spacing: -.042em; }
.rw { display: inline-block; opacity: .16; will-change: opacity, transform; }
.bt--flip { left: clamp(16px, 6.4vw, 100px); top: 27vh; width: min(620px, 88vw); }
.flip { display: grid; gap: 0; perspective: 900px; }
.flip__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 15px 0; border-top: 1px solid rgba(237,234,227,.12); font-size: clamp(17px, 1.6vw, 24px); letter-spacing: -.02em; }
.flip__row:last-child { border-bottom: 1px solid rgba(237,234,227,.12); }
.flip__head { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ash); border-top: 0; padding-bottom: 14px; }
.flip__head span:last-child { color: var(--accent); }
.flip__row span:first-child { color: var(--ash); }
.fc { display: block; transform-origin: 50% 50%; backface-visibility: hidden; will-change: transform, opacity; }
.fc b { font-weight: 600; color: var(--bone); }
.bt--earn { left: clamp(16px, 6.4vw, 100px); top: 25vh; max-width: 560px; }
.bt--earn .bt__h { font-size: clamp(34px, 4.1vw, 66px); }
.coins { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; max-width: 470px; }
.coins li { width: 30px; height: 30px; will-change: opacity, transform; }
.coins img { display: block; width: 30px; height: 30px; }
.bt__note { margin-top: 22px; font: 400 13px/1.3 var(--mono); letter-spacing: .02em; color: var(--ash); }

/* footer: one line of liquid glass over the live app */
.foot { position: relative; z-index: 7; padding: 0 clamp(10px, 2vw, 28px) 16px; pointer-events: none; }
.foot__in { position: relative; pointer-events: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 0 22px; border-radius: 6px; font: 400 12px/1.4 var(--mono); color: var(--bone); }
.foot__glass { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: rgba(237,234,227,.03); box-shadow: inset 0 1px 0 rgba(237,234,227,.16), inset 0 0 0 1px rgba(237,234,227,.10), 0 12px 32px rgba(0,0,0,.3); }
html:not(.lg-on) .foot__glass { background: rgba(10,14,20,.55); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.foot__t, .foot__nav { position: relative; }
.foot__nav { display: flex; gap: 22px; }
.foot a:hover { color: var(--accent); }

/* no WebGL: a plain, readable column */
.still { display: none; }
.no-gl #gl, .no-gl #words, .no-gl #fluid { display: none; }
.no-gl .still { display: grid; place-items: center; position: fixed; inset: 0; z-index: 0; color: var(--line); }
.no-gl .still svg { width: 40vmin; height: 40vmin; }
.no-gl body { display: flex; flex-direction: column; }
.no-gl .bar { order: 0; position: relative; padding-bottom: 8px; }
.no-gl .story { order: 1; }
.no-gl .app { order: 2; position: relative; inset: auto; visibility: visible; width: min(1200px, 94vw); height: 820px; margin: 0 auto 8vh; outline: 1px solid var(--line); }
.no-gl .app iframe { pointer-events: auto; }
.no-gl .foot { order: 3; }
.no-gl .journey { height: auto; }
.no-gl .bt { position: relative; inset: auto; opacity: 1; visibility: visible; padding: 16vh clamp(16px, 5.6vw, 88px); max-width: none; width: auto; text-align: left; }
.no-gl .bt--ribbon .ribbon { justify-content: flex-start; flex-wrap: wrap; }
.no-gl .rw { opacity: 1; }
.no-gl .flip { max-width: 620px; }
.no-gl .thesis { position: static; width: auto; height: auto; clip: auto; white-space: normal; padding: 20vh clamp(16px, 5.6vw, 88px); font: 600 clamp(36px, 6vw, 88px)/1.05 var(--font); letter-spacing: -.04em; }
.no-gl .hero__hint { display: none; }
.no-gl .bar__glass { opacity: 1; }

@media (max-width: 760px) {
  .bar { padding-top: 10px; }
  .bar__in { height: 46px; }
  .bar.is-pill .bar__in { max-width: 290px; padding-left: 14px; }
  .btn--line { height: 36px; padding: 0 14px; font-size: 13px; }
  .hero { padding-top: 0; justify-content: flex-end; padding-bottom: 76px; }
  .hero__t { font-size: clamp(40px, 11.6vw, 60px); }
  .hero__hint { bottom: 24px; }
  .bt__h { font-size: clamp(34px, 10.4vw, 48px); }
  .bt--fresh { top: auto; bottom: 16vh; right: 16px; }
  .bt--fresh .ln { white-space: normal; }
  .bt--ribbon { top: auto; bottom: 22vh; }
  .ribbon { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 10px 22px; font-size: clamp(34px, 10.4vw, 46px); }
  .bt--flip { top: auto; bottom: 10vh; }
  .flip__row { gap: 14px; padding: 12px 0; font-size: 16px; }
  .bt--earn { top: auto; bottom: 5vh; right: 16px; }
  .bt--earn .bt__h { font-size: clamp(30px, 9vw, 42px); }
  .coins { gap: 10px; margin-top: 24px; max-width: 300px; }
  .coins li, .coins img { width: 26px; height: 26px; }
  .foot__in { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 12px 18px; }
  .no-gl .app { height: 800px; }
}
