@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600&family=Barlow+Semi+Condensed:wght@400;500;600;700&family=Bricolage+Grotesque:wght@800&display=swap");

:root {
  --bg: #0c0d0f;
  --bg-2: #131518;
  --fg: #e9e6df;
  --mute: #9a9da3;
  --dim: #63666c;
  --rule: #2a2d32;
  --line: #17c3b2;
  --canopy: #8fd45a;
  --scry: #b79cff;
  --display: "Barlow Semi Condensed", Bahnschrift, "Arial Narrow", sans-serif;
  --body: Barlow, "Segoe UI", system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; line-height: 1.08; }
.cap {
  font-family: var(--display); font-size: 13px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--mute); margin: 0;
}
.wrap { padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; gap: 26px; font-family: var(--display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--line); }

/* ---------- Hero: the stack ---------- */
.stage { padding-top: 60px; position: relative; }
.above, .below { padding: 28px var(--pad); }
.intro h1 { font-size: clamp(28px, 3.8vw, 54px); font-weight: 500; max-width: 30ch; margin-top: 12px; }
.apps { margin-top: 36px; }
.flow {
  font-family: var(--display); font-size: clamp(22px, 2.9vw, 40px);
  line-height: 1.22; color: var(--dim); margin: 10px 0 0;
}
.flow span { display: inline-block; white-space: pre; }
.flow .hi { color: var(--fg); }

.the-line {
  border-top: 3px solid var(--line); border-bottom: 3px solid var(--line);
  color: var(--line); padding: 2px var(--pad);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.wordmark { font-family: "Bricolage Grotesque", var(--display); font-weight: 800; font-size: clamp(44px, 7.4vw, 104px); line-height: 1.1; letter-spacing: -.01em; }
.the-line .r { font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; text-align: right; }

.below { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-content: start; }
.below h4 { font-size: clamp(24px, 2.4vw, 34px); margin-top: 8px; }
.below p { margin: 8px 0 0; color: var(--mute); max-width: 36ch; }
.hint {
  display: none; position: absolute; bottom: 22px; right: var(--pad);
  font-family: var(--display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
}

/* Pinned, scroll-driven version (only with motion enabled and enough room) */
@media (min-width: 760px) and (min-height: 540px) {
  html.motion .hero { height: 340vh; }
  html.motion .stage {
    position: sticky; top: 0; height: 100vh; overflow: hidden;
    display: grid; grid-template-rows: 1fr auto 1fr;
  }
  html.motion .above { position: relative; padding: 0; }
  html.motion .intro, html.motion .apps {
    position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 0 var(--pad) 26px; will-change: opacity, transform;
  }
  html.motion .the-line { transform-origin: left center; animation: draw 1.1s cubic-bezier(.2,.7,.1,1) both; }
  html.motion .wordmark { animation: rise .9s .5s cubic-bezier(.2,.7,.1,1) both; }
  html.motion .hint { display: block; }
  html.motion [data-a] { will-change: opacity, transform; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.block { padding: clamp(72px, 11vw, 150px) var(--pad); border-top: 1px solid var(--rule); }
.statement { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.1; max-width: 20ch; margin: 18px 0 0; }
.statement + .statement { color: var(--dim); }
.sub { color: var(--mute); max-width: 56ch; margin: 28px 0 0; font-size: 19px; }

/* Cycling words */
.cycle { background: var(--line); color: #0c0d0f; border: 0; }
.cycle .cap { color: #04403a; }
.cycle p.big { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.1; margin: 16px 0 0; }
/* Room for the longest phrase: two lines on desktop, more on narrow screens. */
.cycler { display: block; height: 2.2em; overflow: hidden; font-weight: 700; }
@media (max-width: 759px) { .cycler { height: 4.4em; } }
.cycler span { display: block; transition: transform .55s cubic-bezier(.2,.7,.1,1), opacity .55s; }
.cycler span.out { transform: translateY(-100%); opacity: 0; }
.cycler span.pre { transform: translateY(100%); opacity: 0; transition: none; }

/* Platforms: each one is its own small stack */
.plat { margin-top: clamp(48px, 7vw, 90px); }
.plat-above, .plat-below { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; align-items: baseline; }
.plat-above p, .plat-below p { margin: 0; }
.plat-above p { font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; }
.plat-below p { color: var(--mute); max-width: 62ch; }
.plat-line {
  border-top: 2px solid var(--c); border-bottom: 2px solid var(--c); color: var(--c);
  display: flex; align-items: baseline; gap: 22px; padding: 4px 0;
  transform-origin: left center;
}
.plat-line h3 { font-size: clamp(40px, 6vw, 84px); font-weight: 700; }
.plat-line .market { font-family: var(--display); font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.plat-line a { margin-left: auto; font-family: var(--display); font-size: 16px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.plat-line a:hover { text-decoration: underline; }
.plat.next { --c: var(--dim); }
.plat.next .plat-line { border-style: dashed; }
html.motion .plat-line { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.1,1); }
html.motion .plat.in .plat-line { transform: none; }
html.motion .plat-above, html.motion .plat-below { opacity: 0; transition: opacity .7s .5s, transform .7s .5s; }
html.motion .plat-above { transform: translateY(14px); }
html.motion .plat-below { transform: translateY(-14px); }
html.motion .plat.in .plat-above, html.motion .plat.in .plat-below { opacity: 1; transform: none; }

/* Developers */
.dev-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 72px); }
.dev-list li { border-top: 1px solid var(--rule); padding: 20px 0 26px; }
.dev-list h4 { font-size: 24px; margin-bottom: 6px; }
.dev-list p { margin: 0; color: var(--mute); }
.text-link { display: inline-block; margin-top: 40px; font-family: var(--display); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--line); text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }

/* Company facts */
.company { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 90px); }
.company p { color: var(--mute); }
.company h2 { font-size: clamp(30px, 3.6vw, 50px); margin: 14px 0 18px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 150px 1fr; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.facts div:first-child { border-top: 1px solid var(--rule); }
.facts dt { font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding-top: 4px; }
.facts dd { margin: 0; }

/* Word-by-word and block reveals */
html.motion .w { display: inline-block; opacity: 0; transform: translateY(.5em); transition: opacity .6s, transform .6s cubic-bezier(.2,.7,.1,1); transition-delay: calc(var(--i) * 45ms); }
html.motion .in .w { opacity: 1; transform: none; }
html.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
html.motion [data-reveal].in { opacity: 1; transform: none; }

/* Footer */
.site-footer { border-top: 3px solid var(--line); padding: 30px 0 38px; font-size: 14px; color: var(--mute); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer a { margin-left: 22px; text-decoration: none; color: var(--fg); }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: var(--line); }

/* Placeholder marker: search for class="todo" before launch */
.todo { background: var(--line); color: #0c0d0f; padding: 1px 7px; font-family: Consolas, monospace; font-size: .82em; }

/* Legal page */
.legal { padding: 130px var(--pad) 100px; max-width: 820px; }
.legal h1 { font-size: 56px; margin-bottom: 10px; }
.legal h2 { font-size: 26px; margin: 42px 0 10px; }
.legal p { color: var(--mute); }
.legal .updated { font-family: var(--display); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }

@media (max-width: 759px) {
  .nav a:not(:last-child) { display: none; }
  .below, .company, .dev-list { grid-template-columns: 1fr; }
  .the-line .r { display: none; }
  .plat-above, .plat-below { grid-template-columns: 1fr; gap: 6px; }
  .plat-line { flex-wrap: wrap; gap: 4px 16px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
