/* SDK Spaces
   Layout: one long dark scroll. A full-bleed 3D hero, then sections on a 1200px column,
   separated by hairlines. Monochrome chrome: black ground, silver type, no colour accents. */
:root {
  --bg: #000000;
  --surface: #0a0a0d;
  --surface-2: #111116;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.2);
  --ink: #f3f4f8;
  --dim: #8e91a0;
  --steel: #c9ccd6;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d4d7e0 45%, #7d8190 100%);
  --violet: #9b5cff;
  --blurple: #5865f2;
  --cyan: #4cc9ff;
  --discord: linear-gradient(90deg, var(--violet), var(--blurple) 50%, var(--cyan));
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 1.05; }
h3 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.chrome { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow-word { background: var(--discord); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
.sub { color: var(--dim); max-width: 38rem; font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-decoration: none; color: #000; background: var(--chrome); border: 1px solid transparent; border-radius: 999px; padding: 12px 22px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(255, 255, 255, 0.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: 12px; }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: calc(env(safe-area-inset-top, 0px) + 16px) var(--gutter) 16px; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.05em; text-decoration: none; }
.brand em { font-style: normal; font-weight: 400; color: var(--dim); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 11px; letter-spacing: -0.04em; background: var(--surface); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.menu-btn { display: none; font-family: var(--mono); font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.hero:focus { outline: none; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback { display: none; }
.hero.no-webgl .hero-fallback { display: grid; position: absolute; inset: 0; place-content: center; font-family: var(--display); font-weight: 800; font-size: 30vmin; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .hero-inner.wrap { max-width: none; }
.hero-inner { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-block: 0 48px; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { display: grid; gap: 18px; max-width: 40rem; min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 5rem); line-height: 1; }
.hero-side { display: grid; gap: 20px; max-width: 24rem; min-width: 0; }
.lede { color: var(--dim); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.charge { display: grid; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.04em; }
.meter { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.meter div { height: 100%; width: 0%; background: var(--chrome); }

/* Marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 16px; }
.track { display: flex; width: max-content; gap: 36px; font-family: var(--display); font-size: 14px; letter-spacing: 0.3em; color: var(--dim); animation: slide 30s linear infinite; }
.track span::after { content: '\2726'; margin-left: 36px; color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: clamp(72px, 11vw, 140px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.service { display: grid; gap: 18px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); transition: border-color .3s; }
.service:hover { border-color: var(--line-2); }
.service .btn { justify-self: start; }
.service p { color: var(--dim); }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; color: var(--steel); }
.service-icon svg { width: 22px; height: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.ticks li::before { content: ''; flex: none; width: 10px; height: 1px; background: var(--steel); transform: translateY(-4px); }

.bundle { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--radius) + 6px); background: radial-gradient(120% 140% at 0% 0%, #17171d 0%, #050506 60%); border: 1px solid var(--line-2); overflow: hidden; }
.bundle::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.bundle-copy { display: grid; gap: 18px; align-content: start; }
.bundle-copy .btn { justify-self: start; margin-top: 8px; }
.bundle-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: center; }
.bundle-points li { display: grid; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.bundle-points li:last-child { border-bottom: 1px solid var(--line); }
.bundle-points strong, .why strong { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.bundle-points span, .why span { color: var(--dim); font-size: 15px; }

.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.extra { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.extra p { color: var(--dim); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; gap: 10px; align-content: start; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.steps p { color: var(--dim); font-size: 15px; }
.num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }

.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tile { margin: 0; display: grid; gap: 12px; }
.tile-art { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background:
  repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 1px, transparent 1px 14px),
  radial-gradient(80% 80% at 70% 20%, #16161c, #050506); position: relative; overflow: hidden; }
.tile-art::after { content: 'Coming soon'; position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tile figcaption { display: grid; gap: 2px; font-family: var(--display); font-weight: 600; font-size: 15px; }
.tile figcaption span { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 5vw, 64px); }
.about > div:first-child { display: grid; gap: 16px; align-content: start; }
.about-copy { display: grid; gap: 18px; min-width: 0; }
.about-copy > p { color: var(--dim); font-size: 1.05rem; max-width: 36rem; }
.about-copy > p:first-child { color: var(--ink); }
.why { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.why li { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid var(--line); }

.faq { display: grid; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--dim); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding-bottom: 22px; max-width: 42rem; }

.contact { display: grid; gap: 18px; padding-bottom: clamp(72px, 10vw, 120px); }
.contact h2 { font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 20px; }
.channel { display: grid; gap: 8px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; transition: border-color .3s; }
.channel:hover { border-color: var(--line-2); }
.channel-name { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.channel-value { font-family: var(--display); font-weight: 600; font-size: 1.05rem; text-decoration: none; overflow-wrap: anywhere; }
.channel-value:hover { text-decoration: underline; text-underline-offset: 4px; }
.channel-note { font-size: 13px; color: var(--dim); }
.copy { justify-self: start; font-family: var(--mono); font-size: 12px; color: var(--ink); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px calc(env(safe-area-inset-bottom, 0px) + 28px); border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* Statement */
.statement { display: grid; gap: 24px; padding-block: clamp(96px, 14vw, 180px) clamp(24px, 4vw, 40px); }
.statement-text { font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 3.4rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 26ch; text-wrap: pretty; }

/* Giant sliding words */
.bigwords { overflow: hidden; padding-block: clamp(72px, 11vw, 140px) 0; display: grid; gap: 4px; }
.bigwords-row { white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(3.2rem, 11vw, 9.5rem); line-height: 1.05; letter-spacing: -0.04em; color: var(--ink); }
.bigwords-track { display: flex; width: max-content; will-change: transform; }
.bigwords-track span { flex: none; }
.bigwords-row i { font-style: normal; font-weight: 400; font-size: 0.4em; vertical-align: middle; color: var(--dim); }
.bigwords-row.outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); }

/* Word splitting for masked rises */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; }
.statement-text .w { overflow: visible; }

/* Process lines that draw themselves */
.steps li { position: relative; }
.steps li::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--ink); transform-origin: left; transform: scaleX(var(--line, 0)); }

/* Nav hides on the way down */
.nav { transition: background .3s, border-color .3s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.nav.hide { transform: translateY(-100%); }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.fx .track { will-change: transform; }

/* Scroll reveal: content is visible by default; JS only hides what's still below the fold */
.will-reveal { opacity: 0; transform: translateY(24px); }
.will-reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .nav > .btn-small { display: none; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px; background: rgba(0, 0, 0, 0.94); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding-block: 12px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .hero-inner { padding-bottom: 32px; }
}
.extras, .channels { perspective: 900px; }
/* Elements that slide in from the sides must never widen the page */
main, .footer { overflow-x: clip; }

/* Floating tool icons in the side margins */
main { position: relative; }
main > section, main > .marquee, main > .bigwords { position: relative; z-index: 1; }
.floaters { position: absolute; inset: 100svh 0 0 0; pointer-events: none; z-index: 0; }
.floater { position: absolute; top: var(--top); width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01)), var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.12); backdrop-filter: blur(6px); will-change: transform; }
.floater.sm { width: 52px; height: 52px; border-radius: 14px; }
.floater i { width: 46%; height: 46%; background: var(--chrome); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; animation: bob 5s ease-in-out infinite; }
.floater:nth-child(2n) i { animation-duration: 6.5s; animation-delay: -2s; }
.floater:nth-child(3n) i { animation-duration: 4.2s; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
@media (max-width: 1180px) { .floaters { display: none; } }
