/* ==========================================================================
   Bitrora — design system + site styles
   Tokens mirror /brand.html. Edit colours here, everything follows.
   ========================================================================== */

:root {
  /* Surface */
  --bg: #05050A;
  --bg-1: #0A0A11;
  --bg-2: #101019;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  /* Text */
  --text: #F4F5FA;
  --text-2: #A6A8BA;
  --text-3: #7B7D93;

  /* Aurora */
  --violet: #8B5CFF;
  --blue: #2FA8FF;
  --mint: #36F2B4;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--blue) 50%, var(--mint) 100%);

  /* Type */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape + motion */
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(96px, 12vw, 168px);
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font: 400 1rem/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Film grain — subtle texture that makes flat black feel premium */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 500;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font: 500 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 12px var(--mint), 0 0 2px var(--mint);
}
.h1 { font-size: clamp(3.3rem, 8.4vw, 7.4rem); letter-spacing: -.058em; line-height: .9; }
.h2 { font-size: clamp(2.4rem, 5.6vw, 4.75rem); letter-spacing: -.048em; line-height: .96; }
.h3 { font-size: clamp(1.35rem, 1.9vw, 1.7rem); letter-spacing: -.03em; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 40ch; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); }

.grad {
  background: linear-gradient(100deg, var(--violet), var(--blue) 30%, var(--mint) 55%, var(--blue) 80%, var(--violet));
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.section-head--split .lead { justify-self: end; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } .section-head--split .lead { justify-self: start; } }

/* ---------- Icons ---------- */
.i { width: 1.15em; height: 1.15em; flex: none; }
.i--sm { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 54px; padding: 0 24px 0 26px; border-radius: 999px;
  font-weight: 500; font-size: .975rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, box-shadow .4s var(--ease), color .3s;
  will-change: transform;
}
.btn .i { transition: transform .4s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--light { background: var(--text); color: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 12px 32px -14px rgba(139, 92, 255, .9); }
.btn--light::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--grad); filter: blur(14px); opacity: 0; transition: opacity .5s var(--ease);
}
.btn--light:hover::before { opacity: .85; }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--sm { height: 40px; padding: 0 16px 0 18px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 500; color: var(--text); letter-spacing: -.01em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link .i { transition: transform .4s var(--ease); }
.link:hover .i { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 5, 10, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; height: 100%; color: var(--text); }
.logo { height: 20px; width: auto; overflow: visible; }
.nav__links { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.nav__links a { padding: 8px 16px; border-radius: 999px; font-size: .875rem; color: var(--text-2); transition: color .25s, background-color .25s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,.07); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.nav__burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
}
@media (max-width: 420px) { .nav__cta .btn { display: none; } }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: rgba(5, 5, 10, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s .4s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu__links a {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3rem); letter-spacing: -.045em; font-weight: 500;
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.menu__links a small { font: 500 .75rem var(--mono); color: var(--text-3); letter-spacing: .1em; }
.menu.is-open .menu__links a { opacity: 1; transform: none; transition-delay: calc(.05s + var(--i) * .05s); }
.menu__foot { display: grid; gap: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--nav-h) + clamp(24px, 4.5vh, 64px)); overflow: hidden; isolation: isolate; }
.hero__aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: .95; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,5,10,.92) 0%, rgba(5,5,10,.55) 38%, rgba(5,5,10,0) 70%),
    linear-gradient(180deg, rgba(5,5,10,0) 55%, var(--bg) 96%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 70%);
}
.hero__inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(32px, 5vh, 64px); }
.hero__copy { display: grid; gap: clamp(20px, 2.8vh, 30px); justify-items: start; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: .85rem; color: var(--text-2);
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background-color .3s, color .3s;
}
.pill:hover { background: rgba(255,255,255,.08); color: var(--text); }
.pill__tag { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(54, 242, 180, .1); color: var(--mint); font: 500 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.pulse { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mint); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero__title { margin-block: 2px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.hero__title .line > span { display: inline-block; transform: translateY(108%); animation: rise 1.2s var(--ease) forwards; animation-delay: calc(.2s + var(--i, 0) * .1s); }
@keyframes rise { to { transform: none; } }
.hero__sub { max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: flex; align-items: center; gap: 14px; font-size: .875rem; color: var(--text-2); line-height: 1.4; }
.avatars { display: flex; }
.avatars img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 2px var(--bg); background: var(--bg-2); }
.avatars img + img { margin-left: -10px; }
.hero__proof strong { color: var(--text); font-weight: 500; }

/* Staged hero entrance (CSS-only so it runs without JS) */
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Orbit visual */
.hero__visual { position: relative; justify-self: center; width: min(100%, 600px); }
.orbit { position: relative; aspect-ratio: 1; perspective: 1400px; container-type: inline-size; }
.orbit__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1.2s var(--ease); }
.orbit__glow {
  position: absolute; inset: 22%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(139,92,255,.55), rgba(47,168,255,.25) 45%, transparent 70%);
  filter: blur(40px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
/* Tilt + radius are tuned so chips never cross the mark (no reliance on 3D depth sorting). */
.orbit__plane { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(62deg); }
.orbit__plane::before { content: ""; position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, rgba(139,92,255,.16), rgba(47,168,255,.06) 45%, transparent 70%); }
.orbit__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); }
.orbit__ring--1 { inset: 4%; border-color: rgba(255,255,255,.13); }
.orbit__ring--2 { inset: 18%; border-style: dashed; border-color: rgba(255,255,255,.08); animation: spin 120s linear infinite reverse; }
.orbit__ring--3 { inset: 30%; border-color: rgba(54, 242, 180, .22); box-shadow: 0 0 40px rgba(54, 242, 180, .12), inset 0 0 40px rgba(139, 92, 255, .12); }
.orbit__spin { position: absolute; inset: 4%; transform-style: preserve-3d; animation: spin 48s linear infinite; }
.orbit__node { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; transform: rotate(var(--a)) translateX(46cqw) rotate(calc(var(--a) * -1)); }
.orbit__chip {
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border-radius: 999px; white-space: nowrap;
  font-size: clamp(.72rem, 2.4cqw, .9rem); font-weight: 500; letter-spacing: -.01em;
  background: rgba(13, 13, 22, .92); box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 30px -10px rgba(0,0,0,.8);
  transform: rotateZ(0deg) rotateX(-62deg) translate(-50%, -50%);
  animation: counter 48s linear infinite;
  backface-visibility: hidden;
}
.orbit__chip b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.06); color: var(--c, var(--mint)); }
.orbit__chip b .i { width: 15px; height: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter {
  from { transform: rotateZ(0deg) rotateX(-62deg) translate(-50%, -50%); }
  to { transform: rotateZ(-360deg) rotateX(-62deg) translate(-50%, -50%); }
}
.orbit__mark { position: absolute; inset: 0; display: grid; place-items: center; transform: translateZ(1px); animation: float 7s ease-in-out infinite; pointer-events: none; }
.orbit__mark svg { width: 30%; height: auto; overflow: visible; filter: drop-shadow(0 0 28px rgba(47,168,255,.45)); }
.orbit__mark .draw { fill: none; stroke: url(#g-aurora); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-io) .5s forwards; }
.orbit__mark .fill { opacity: 0; animation: fillIn 1.4s var(--ease) 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { opacity: 1; } }
@keyframes float { 50% { transform: translateZ(1px) translateY(-8px); } }

/* Marquee */
.hero__trust { display: flex; align-items: center; gap: 32px; padding-block: 28px 36px; border-top: 1px solid var(--line); }
.hero__trust > span { flex: none; font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); max-width: 15ch; }
.marquee { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.035em; color: var(--text-3); transition: color .3s; }
.marquee__item:hover { color: var(--text); }
.marquee__item svg { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 32px)); } }

@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 8px; }
  .hero__visual { width: min(88%, 460px); order: 2; margin-block: clamp(-110px, -11vw, -36px); }
  .hero::before { background: linear-gradient(180deg, rgba(5,5,10,.65) 0%, rgba(5,5,10,.35) 40%, var(--bg) 98%); }
}
@media (max-width: 640px) {
  .hero__visual { width: 100%; }
  .orbit__node { transform: rotate(var(--a)) translateX(36cqw) rotate(calc(var(--a) * -1)); }
  .orbit__chip { padding: 6px 11px 6px 7px; gap: 6px; font-size: .72rem; }
  .orbit__chip b { width: 20px; height: 20px; }
  .orbit__chip b .i { width: 12px; height: 12px; }
  .orbit__mark svg { width: 26%; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__trust > span { max-width: none; }
  .marquee { width: 100%; }
  .hero__actions .btn { flex: 1; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.stat { padding: clamp(28px, 4vw, 48px) clamp(16px, 2.5vw, 32px); display: grid; gap: 10px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(2.6rem, 5.2vw, 4.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; color: var(--text-3); }
.stat__label { color: var(--text-2); font-size: .925rem; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards (shared) ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
/* cursor spotlight */
.card::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 255, .13), rgba(47,168,255,.05) 35%, transparent 60%); }
/* cursor-tracked aurora border */
.card::after {
  padding: 1px; z-index: 2;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(54, 242, 180, .75), rgba(47, 168, 255, .45) 30%, rgba(139, 92, 255, .2) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; font-size: .8rem; color: var(--text-2); background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.service { grid-column: span 6; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 40px); min-height: 560px; }
.service--wide { grid-column: span 7; }
.service--narrow { grid-column: span 5; }
.service__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.service__no { font: 500 .8rem var(--mono); color: var(--text-3); letter-spacing: .08em; }
.service p { color: var(--text-2); max-width: 36ch; margin-top: -8px; }
.service__visual { position: relative; flex: 1; min-height: 220px; border-radius: var(--r); background: rgba(5, 5, 10, .6); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.service__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 960px) { .service, .service--wide, .service--narrow { grid-column: span 12; min-height: 0; } .service__visual { min-height: 290px; } }

/* Visual: code window */
.code { position: absolute; inset: 0; display: flex; flex-direction: column; font: 400 clamp(.72rem, 1.05vw, .86rem)/1.9 var(--mono); }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text-3); font-size: .75rem; }
.code__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
.code__bar span { margin-left: 10px; }
.code pre { padding: 16px 20px; margin: 0; color: var(--text-2); overflow: hidden; font: inherit; }
.code .ln { display: block; white-space: pre; clip-path: inset(0 100% 0 0); }
.code .k { color: #B79BFF; font-weight: 400; }
.code .f { color: var(--blue); font-weight: 400; }
.code .s { color: var(--mint); font-weight: 400; }
.code .c { color: var(--text-3); font-style: normal; }
.code__toast {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px; font: 500 .78rem var(--font); color: var(--text);
  background: rgba(16, 16, 25, .95); box-shadow: inset 0 0 0 1px rgba(54,242,180,.35), 0 12px 30px -8px rgba(54,242,180,.25);
  opacity: 0; transform: translateY(10px);
}
.code__toast b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--bg); }
.code__toast span { color: var(--text-3); font-family: var(--mono); font-size: .72rem; }
.is-inview .code .ln { animation: type 9s steps(28, end) infinite; animation-delay: calc(var(--i) * .55s); }
.is-inview .code__toast { animation: toast 9s var(--ease) infinite; }
@keyframes type { 0% { clip-path: inset(0 100% 0 0); } 8%, 88% { clip-path: inset(0 0 0 0); } 96%, 100% { clip-path: inset(0 100% 0 0); } }
@keyframes toast { 0%, 40% { opacity: 0; transform: translateY(10px); } 46%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(10px); } }

/* Visual: roadmap */
.roadmap { position: absolute; inset: 0; }
.roadmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.roadmap .track { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.roadmap .lit { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-inview .roadmap .lit { animation: road 7s var(--ease-io) infinite; }
@keyframes road { 0% { stroke-dashoffset: 1; } 70%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.roadmap__node { position: absolute; left: var(--x); top: var(--y); width: 14px; height: 14px; transform: translate(-50%, -50%); }
.roadmap__node span { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); }
.roadmap__node i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.roadmap__node span { font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.is-inview .roadmap__node i { animation: node 7s var(--ease) infinite; animation-delay: var(--t); }
.is-inview .roadmap__node span { animation: nodeText 7s var(--ease) infinite; animation-delay: var(--t); }
@keyframes node { 0%, 4% { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); } 8%, 60% { background: var(--mint); box-shadow: 0 0 0 5px rgba(54,242,180,.15), 0 0 18px var(--mint); } 80%, 100% { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); } }
@keyframes nodeText { 0%, 4% { color: var(--text-3); } 8%, 60% { color: var(--text); } 80%, 100% { color: var(--text-3); } }

/* Visual: growth chart */
.chart { position: absolute; inset: 0; padding: 20px; display: flex; flex-direction: column; }
.chart__top { display: flex; justify-content: space-between; align-items: flex-start; }
.chart__kpi { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.chart__kpi small { display: block; margin-top: 6px; font: 500 .7rem var(--mono); color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.chart__badge { padding: 5px 10px; border-radius: 999px; font: 500 .72rem var(--mono); color: var(--mint); background: rgba(54,242,180,.1); }
.chart svg { flex: 1; width: 100%; margin-top: 12px; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .area { fill: url(#g-area); opacity: 0; }
.chart .ln { fill: none; stroke: url(#g-line); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .dot { fill: var(--mint); opacity: 0; }
.is-inview .chart .ln { animation: chartLine 8s var(--ease-io) infinite; }
.is-inview .chart .area { animation: chartArea 8s var(--ease) infinite; }
.is-inview .chart .dot { animation: chartDot 8s var(--ease) infinite; }
@keyframes chartLine { 0% { stroke-dashoffset: 1; } 45%, 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes chartArea { 0%, 30% { opacity: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes chartDot { 0%, 42% { opacity: 0; } 48%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* Visual: launch timeline */
.launch { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; gap: 24px; }
.launch__body { display: grid; gap: 26px; }
.launch__track { position: relative; height: 2px; border-radius: 2px; background: var(--line-2); }
.launch__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 16px rgba(47,168,255,.6); }
.launch__comet { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 0 22px 4px var(--mint); opacity: 0; }
.is-inview .launch__fill { animation: fill 8s var(--ease-io) infinite; }
.is-inview .launch__comet { animation: comet 8s var(--ease-io) infinite; }
@keyframes fill { 0% { width: 0; } 70%, 90% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes comet { 0% { left: 0; opacity: 1; } 70% { left: 100%; opacity: 1; } 90%, 100% { left: 100%; opacity: 0; } }
.launch__stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.launch__stage { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.025); box-shadow: inset 0 0 0 1px var(--line); }
.launch__stage small { display: block; font: 500 .68rem var(--mono); color: var(--text-3); letter-spacing: .08em; margin-bottom: 6px; }
.launch__stage strong { font-weight: 500; font-size: .95rem; letter-spacing: -.02em; }
.is-inview .launch__stage { animation: stage 8s var(--ease) infinite; animation-delay: var(--t); }
@keyframes stage { 0%, 2% { box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.025); } 6%, 70% { box-shadow: inset 0 0 0 1px rgba(54,242,180,.45); background: rgba(54,242,180,.06); } 90%, 100% { box-shadow: inset 0 0 0 1px var(--line); background: rgba(255,255,255,.025); } }
@media (max-width: 560px) { .launch__stages { grid-template-columns: 1fr 1fr; } }

/* ---------- Work ---------- */
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.work { grid-column: span 3; display: flex; flex-direction: column; }
.work--lg { grid-column: span 7; }
.work--md { grid-column: span 5; }
.work__cover { position: relative; overflow: hidden; aspect-ratio: 16 / 11; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); background: var(--bg-2); isolation: isolate; }
.work--lg .work__cover, .work--md .work__cover { aspect-ratio: auto; height: clamp(260px, 30vw, 380px); }
.work__art { position: absolute; inset: -10%; z-index: -1; transition: transform 1.2s var(--ease); background: var(--art); filter: saturate(1.1); }
.work:hover .work__art { transform: scale(1.06) rotate(-1deg); }
.work__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.work__metric { position: absolute; left: clamp(18px, 2.4vw, 28px); bottom: clamp(16px, 2vw, 24px); }
.work__metric strong { display: block; font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.35); }
.work__metric span { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.work__glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .35em; font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.045em; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.work__glyph svg { width: 1.05em; height: 1.05em; flex: none; }
.work__arrow { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(5,5,10,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; opacity: 0; transform: scale(.8) rotate(-45deg); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.work:hover .work__arrow { opacity: 1; transform: scale(1) rotate(-45deg); }
.work__body { display: grid; gap: 10px; padding: clamp(18px, 2.2vw, 26px); }
.work__meta { display: flex; gap: 10px; flex-wrap: wrap; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.work__meta span + span::before { content: "·"; margin-right: 10px; }
.work__body p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 1100px) { .work { grid-column: span 6; } .work--lg, .work--md { grid-column: span 12; } }
@media (max-width: 600px) { .work { grid-column: span 12; } }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.quotes__stage { position: relative; min-height: clamp(220px, 22vw, 280px); }
/* Outgoing quote fades fast; incoming words blur in after it has gone (no overlap). */
.quote { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s; }
.quote.is-active { opacity: 1; visibility: visible; transition: opacity 0s .35s, visibility 0s .35s; }
.quote p { font-size: clamp(1.6rem, 3.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; max-width: 28ch; }
.quote p .muted { color: var(--text-3); }
.quote .word { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .3s, transform .3s, filter .3s; }
.quote.is-active .word { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(.4s + var(--w) * 24ms); }
.quotes__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qtab { text-align: left; display: grid; gap: 4px; padding-top: 18px; position: relative; color: var(--text-3); transition: color .3s; }
.qtab::before, .qtab::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; }
.qtab::before { right: 0; background: var(--line-2); }
.qtab::after { width: 0; background: var(--grad); }
.qtab.is-active { color: var(--text); }
.qtab.is-active::after { animation: qprog var(--dur, 7s) linear forwards; }
.quotes:hover .qtab.is-active::after { animation-play-state: paused; }
.qtab strong { font-weight: 500; letter-spacing: -.02em; }
.qtab small { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@keyframes qprog { to { width: 100%; } }
@media (max-width: 640px) { .qtab small { display: none; } .quotes__stage { min-height: 300px; } }

/* ---------- Process ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process__line { position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line-2); }
.process__line::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: var(--grad); box-shadow: 0 0 12px rgba(47,168,255,.7); }
.step { position: relative; display: grid; gap: 14px; align-content: start; padding-right: 16px; }
.step__dot { position: relative; z-index: 1; width: 55px; height: 55px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: 500 .8rem var(--mono); color: var(--text-2); transition: box-shadow .5s var(--ease), color .5s; }
.step.is-lit .step__dot { color: var(--text); box-shadow: inset 0 0 0 1px rgba(54,242,180,.6), 0 0 0 6px rgba(54,242,180,.06), 0 0 28px rgba(54,242,180,.25); }
.step__when { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); margin-top: 10px; }
.step p { color: var(--text-2); max-width: 26ch; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .process__line { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process__line::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { grid-template-columns: 55px 1fr; column-gap: 24px; }
  .step > :not(.step__dot) { grid-column: 2; }
  .step__dot { grid-row: span 3; }
  .step__when { margin-top: 0; }
}

/* ---------- Engagements ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 3vw, 36px); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__name { font-size: 1.05rem; font-weight: 500; }
.plan__badge { padding: 5px 10px; border-radius: 999px; font: 500 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bg); background: var(--grad); }
.plan__time { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.plan__time small { display: block; margin-top: 10px; font-size: 1rem; letter-spacing: -.01em; color: var(--text-2); font-weight: 400; }
.plan ul { display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line); flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.plan li .i { color: var(--mint); margin-top: 3px; width: 1rem; height: 1rem; }
.plan--featured { background: linear-gradient(180deg, rgba(139,92,255,.14), rgba(47,168,255,.04) 60%, rgba(255,255,255,.012)); box-shadow: inset 0 0 0 1px rgba(139,92,255,.45), 0 30px 80px -40px rgba(139,92,255,.6); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { display: flex; flex-direction: column; }
.member__photo { position: relative; aspect-ratio: 4 / 5; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; background: #000; isolation: isolate; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.member__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--violet), var(--blue) 50%, var(--mint)); mix-blend-mode: color; opacity: 0; transition: opacity .7s var(--ease); }
.member__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 55%, rgba(5,5,10,.7)); }
.member:hover .member__photo img { transform: scale(1.05); }
.member:hover .member__photo::after { opacity: .55; }
.member__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px 22px; }
.member__body h3 { font-size: 1.1rem; letter-spacing: -.025em; }
.member__body p { color: var(--text-3); font-size: .875rem; }
.socials { display: flex; gap: 6px; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, background-color .3s, box-shadow .3s; }
.socials a:hover { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.socials .i { width: 16px; height: 16px; }
.network { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 2.6vw, 32px); gap: 28px; background: radial-gradient(120% 80% at 100% 0%, rgba(47,168,255,.14), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.network__dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.network__dots i { aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); }
.network__dots i:nth-child(3n) { background: rgba(139,92,255,.5); }
.network__dots i:nth-child(5n) { background: rgba(54,242,180,.55); }
.network__dots i:nth-child(7n) { background: rgba(47,168,255,.55); }
.is-inview .network__dots i { animation: twinkle 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8); } }
.network strong { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-bottom: 10px; }
.network p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 1020px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 22px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 500; letter-spacing: -.02em; transition: color .3s; }
.qa__q:hover { color: #fff; }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .5s var(--ease), background-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease); }
.qa__icon::after { transform: rotate(90deg); }
.qa__q[aria-expanded="true"] .qa__icon { transform: rotate(180deg); background: rgba(255,255,255,.06); }
.qa__q[aria-expanded="true"] .qa__icon::after { transform: rotate(0deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 56px 26px 0; color: var(--text-2); max-width: 60ch; }
.qa__q[aria-expanded="true"] + .qa__a { grid-template-rows: 1fr; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact__aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .8; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg) 0%, rgba(5,5,10,.5) 35%, rgba(5,5,10,.2) 70%, rgba(5,5,10,.6) 100%); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy { display: grid; gap: 28px; justify-items: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.contact__copy .h2 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); }
.email-card { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.email-card a { font-size: 1.1rem; font-weight: 500; letter-spacing: -.02em; }
.email-card button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .8rem; color: var(--text-2); background: rgba(255,255,255,.06); transition: background-color .3s, color .3s; }
.email-card button:hover { color: var(--text); background: rgba(255,255,255,.1); }
.contact__meta { display: grid; gap: 10px; color: var(--text-2); font-size: .925rem; }
.contact__meta li { display: flex; align-items: center; gap: 10px; }
.contact__meta .i { color: var(--mint); }

.form-card { padding: clamp(24px, 3.2vw, 40px); background: rgba(10, 10, 17, .82); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -40px rgba(0,0,0,.9); }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 0;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 1rem; color: var(--text); outline: none; transition: box-shadow .3s, background-color .3s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field textarea:hover { background: rgba(255,255,255,.05); }
.field input:focus, .field textarea:focus { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--mint), 0 0 0 4px rgba(54,242,180,.1); }
.field input:user-invalid, .field textarea:user-invalid,
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 1px #FF6B8B, 0 0 0 4px rgba(255,107,139,.12); }
.field.is-invalid > span { color: #FF9AB0; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: .875rem; color: var(--text-2); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, background-color .25s, box-shadow .25s; cursor: pointer; user-select: none; }
.chip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--text-3); transition: background-color .25s, box-shadow .25s; }
.chip:hover span { color: var(--text); background: rgba(255,255,255,.06); }
.chip input:checked + span { color: var(--text); background: rgba(54,242,180,.08); box-shadow: inset 0 0 0 1px rgba(54,242,180,.55); }
.chip input:checked + span::before { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.chip input:focus-visible + span { outline: 2px solid var(--mint); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: grid; gap: 14px; }
.form__note { font-size: .8rem; color: var(--text-3); text-align: center; }
.form__status { padding: 14px 16px; border-radius: 14px; font-size: .9rem; }
.form__status.is-error { color: #FFC2CF; background: rgba(255,107,139,.08); box-shadow: inset 0 0 0 1px rgba(255,107,139,.35); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(5,5,10,.25); border-top-color: var(--bg); animation: spin .8s linear infinite; }

.success { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(40px, 6vw, 72px) 12px; }
.success__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(54,242,180,.22), transparent 70%); box-shadow: inset 0 0 0 1px rgba(54,242,180,.5); }
.success__icon svg { width: 36px; height: 36px; color: var(--mint); }
.success__icon path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease-io) .2s forwards; }
.success p { color: var(--text-2); max-width: 34ch; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } .contact__copy { position: static; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; }
.footer__brand .logo { height: 24px; }
.footer__brand p { color: var(--text-2); max-width: 30ch; font-size: .95rem; }
.footer h4 { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: .95rem; transition: color .25s; }
.footer ul a:hover { color: var(--text); }
.footer__giant { margin-top: clamp(56px, 8vw, 96px); color: var(--text); }
.footer__giant svg { width: 100%; height: auto; overflow: visible; }
.footer__giant use { fill: url(#g-fade); }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0 32px; margin-top: clamp(24px, 3vw, 40px); border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-3); }
.footer__bar a:hover { color: var(--text); }
@media (max-width: 860px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

.footer__btn { color: var(--text-2); font-size: .95rem; transition: color .25s; }
.footer__btn:hover { color: var(--text); }
.footer__legal { display: flex; gap: 20px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; width: min(430px, calc(100% - 40px));
  display: grid; gap: 16px; padding: 20px; border-radius: 22px;
  background: rgba(12, 12, 20, .9); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -20px rgba(0,0,0,.85);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.cookie.is-open { opacity: 1; transform: none; }
.cookie::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: 22px 22px 0 0; background: linear-gradient(90deg, transparent, rgba(139,92,255,.7), rgba(54,242,180,.7), transparent); }
.cookie p { font-size: .9rem; line-height: 1.55; color: var(--text-2); }
.cookie strong { display: block; margin-bottom: 4px; color: var(--text); font-weight: 500; font-size: 1rem; letter-spacing: -.01em; }
.cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie__btn { height: 44px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--text); background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .25s, box-shadow .25s; }
.cookie__btn:hover { background: rgba(255,255,255,.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
@media (max-width: 520px) { .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; } }

/* ---------- Sub-page scaffolding ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.crumbs a { color: var(--text-2); transition: color .25s; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--nav-h) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vw, 104px); }
.page-hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: .85; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,5,10,.94) 0%, rgba(5,5,10,.6) 45%, rgba(5,5,10,.15) 80%), linear-gradient(180deg, transparent 50%, var(--bg)); }
.page-hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero__copy { display: grid; gap: 24px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); letter-spacing: -.055em; line-height: .94; }
.page-hero--center .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
.page-hero--center .page-hero__copy { max-width: 820px; }
.hero-card { position: relative; aspect-ratio: 16 / 12; border-radius: var(--r-lg); background: rgba(10,10,17,.7); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(139,92,255,.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden; }
@media (max-width: 960px) { .page-hero__inner { grid-template-columns: 1fr; } .hero-card { aspect-ratio: 16 / 11; } }

.stats--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .stats--3 { grid-template-columns: 1fr; } .stats--3 .stat + .stat { border-left: 0; border-top: 1px solid var(--line); } }

.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 2.6vw, 32px); }
.offer__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--mint); background: linear-gradient(140deg, rgba(139,92,255,.18), rgba(54,242,180,.08)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.offer__icon .i { width: 22px; height: 22px; }
.offer h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-top: 6px; }
.offer p { color: var(--text-2); font-size: .95rem; }
@media (max-width: 960px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .offers { grid-template-columns: 1fr; } }

.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.stack li { padding: 10px 18px; border-radius: 999px; font-size: .95rem; color: var(--text); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line-2); }

.work--half { grid-column: span 6; }
.work--half .work__cover { aspect-ratio: auto; height: clamp(220px, 24vw, 300px); }
@media (max-width: 760px) { .work--half { grid-column: span 12; } }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.more a { display: grid; gap: 10px; padding: 26px; }
.more small { font: 500 .75rem var(--mono); color: var(--text-3); letter-spacing: .08em; }
.more strong { font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; display: flex; justify-content: space-between; align-items: center; }
.more strong .i { transition: transform .4s var(--ease); color: var(--text-2); }
.more a:hover strong .i { transform: translateX(4px); color: var(--text); }
.more p { color: var(--text-2); font-size: .925rem; }
@media (max-width: 860px) { .more { grid-template-columns: 1fr; } }

.service h3 a { transition: color .25s; }
.service h3 a:hover { color: #fff; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { display: flex; flex-direction: column; }
.post-card > a { display: flex; flex-direction: column; height: 100%; }
.post-card__img { position: relative; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__img--art { display: grid; place-items: end start; padding: 18px; background: var(--art); }
.post-card__img--art span { font: 500 .72rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.post-card__body { display: grid; gap: 10px; padding: clamp(18px, 2.2vw, 26px); flex: 1; align-content: start; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 8px; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.post-card__meta span + span::before { content: "·"; margin-right: 8px; }
.post-card__meta .cat { color: var(--mint); }
.post-card h3 { font-size: 1.25rem; letter-spacing: -.025em; line-height: 1.2; }
.post-card p { color: var(--text-2); font-size: .925rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .link { margin-top: auto; padding-top: 6px; justify-self: start; }
.post-card--featured { grid-column: 1 / -1; }
.post-card--featured > a { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-card--featured .post-card__img { margin: 8px; aspect-ratio: 16 / 9.5; }
.post-card--featured .post-card__body { align-content: center; padding: clamp(24px, 3.5vw, 48px); gap: 16px; }
.post-card--featured h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); letter-spacing: -.04em; line-height: 1.08; }
@media (max-width: 1020px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .posts { grid-template-columns: 1fr; } .post-card--featured > a { grid-template-columns: 1fr; } }

.article__head { display: grid; gap: 22px; justify-items: start; max-width: 860px; }
.page-hero h1.article__title { font-size: clamp(2.2rem, 4.4vw, 3.7rem); letter-spacing: -.045em; line-height: 1.02; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; color: var(--text-2); }
.article__author { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.article__author i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.article__author svg { width: 20px; height: auto; }
.article__hero { margin-top: clamp(40px, 5vw, 64px); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 40px 120px -50px rgba(139,92,255,.5); aspect-ratio: 1600 / 840; background: var(--bg-2); }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 240px); justify-content: space-between; gap: 48px; padding-block: clamp(48px, 6vw, 80px) 0; }
.article__aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; display: grid; gap: 28px; }
.article__aside h4 { font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .25s, background-color .25s; }
.share a:hover, .share button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.share .i { width: 16px; height: 16px; }
.share button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 960px) { .article__layout { grid-template-columns: 1fr; } .article__aside { position: static; } }

.prose { font-size: 1.125rem; line-height: 1.75; color: #C6C8D6; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); line-height: 1.15; letter-spacing: -.035em; color: var(--text); margin-top: 2.1em; }
.prose h3 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.022em; color: var(--text); margin-top: 1.9em; }
.prose h2 + *, .prose h3 + * { margin-top: .65em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(139,92,255,.8); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .25s; }
.prose a:hover { text-decoration-color: var(--mint); }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul li { position: relative; }
.prose ul li::before { content: ""; position: absolute; left: -1.1em; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--mint)); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--text-3); font: 500 .9em var(--mono); }
.prose li + li { margin-top: .45em; }
.prose blockquote { padding-left: 1.2em; border-left: 2px solid var(--violet); color: var(--text); font-size: 1.25rem; letter-spacing: -.015em; }
.prose img { border-radius: var(--r); }
.prose code { font: .86em var(--mono); background: rgba(255,255,255,.06); padding: .15em .4em; border-radius: 6px; }
.prose pre { padding: 20px; border-radius: var(--r); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 3em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.prose button { margin-top: .4em; }

.post-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 4vw, 44px); margin-top: clamp(56px, 7vw, 88px); background: radial-gradient(80% 140% at 100% 0%, rgba(47,168,255,.2), transparent 60%), radial-gradient(60% 120% at 0% 100%, rgba(139,92,255,.24), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.post-cta h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.post-cta p { color: var(--text-2); margin-top: 6px; }
.post-cta div:last-child { display: flex; gap: 10px; flex-wrap: wrap; }

.legal { max-width: 780px; padding-bottom: clamp(80px, 10vw, 140px); }
.legal.prose { font-size: 1.05rem; }
.legal.prose h2 { font-size: 1.6rem; scroll-margin-top: calc(var(--nav-h) + 24px); }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--nav-h) var(--gutter); position: relative; isolation: isolate; overflow: hidden; }
.notfound canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 45% 40% at 50% 50%, rgba(5,5,10,.82), rgba(5,5,10,.4) 55%, transparent 80%); }
.notfound__inner { display: grid; gap: 24px; justify-items: center; }
.notfound .h1 { font-size: clamp(5rem, 18vw, 12rem); }

/* ---------- Scroll reveal (only when JS runs) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 -2% 0); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .marquee__track { animation: none; }
  /* Looping illustrations: show their finished state instead of animating */
  .code .ln { clip-path: none; }
  .code__toast { opacity: 1; transform: none; }
  .chart .ln, .roadmap .lit { stroke-dashoffset: 0; }
  .chart .area, .chart .dot { opacity: 1; }
  .launch__fill { width: 100%; }
}
