:root {
  --bg: #000;
  --bg-2: #0b0b0c;
  --line: rgba(255,255,255,.09);
  --fg: #f5f5f7;
  --fg-2: #a1a1a6;
  --fg-3: #6e6e73;
  --sky: #3A9ED0;
  --red: #FF0000;
  --amber: #FFA600;
  --green: #1FDB3C;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- background ---------- */
#flock { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .55; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-4%)}
  60%{transform:translate(-4%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)}
}
main, .footer, .nav { position: relative; z-index: 2; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 var(--gutter);
  background: rgba(0,0,0,.6);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.wordmark { font-weight: 700; letter-spacing: .22em; font-size: 14px; }
.nav nav { display: flex; gap: 28px; align-items: center; font-size: 13px; color: var(--fg-2); }
.nav nav a { transition: color .2s; }
.nav nav a:hover { color: var(--fg); }
.nav-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--fg) !important; font-family: "JetBrains Mono", monospace; font-size: 12px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: states 6s infinite; }
@keyframes states { 0%,30%{background:var(--red)} 33%,63%{background:var(--amber)} 66%,96%{background:var(--green)} 100%{background:var(--red)} }

/* ---------- glitch ---------- */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none;
  opacity: 0;
}
.glitch::before { color: #0ff; transform: translate(-2px,0); mix-blend-mode: screen; }
.glitch::after  { color: #f0f; transform: translate(2px,0);  mix-blend-mode: screen; }
.glitch.is-glitching::before { opacity: .85; animation: g1 .35s steps(2) both; }
.glitch.is-glitching::after  { opacity: .85; animation: g2 .35s steps(2) both; }
.glitch:hover::before { opacity: .85; animation: g1 .5s steps(2) infinite; }
.glitch:hover::after  { opacity: .85; animation: g2 .5s steps(2) infinite; }
@keyframes g1 {
  0%  { clip-path: inset(10% 0 70% 0); transform: translate(-4px,-1px); }
  25% { clip-path: inset(55% 0 20% 0); transform: translate(3px,1px); }
  50% { clip-path: inset(30% 0 45% 0); transform: translate(-2px,0); }
  75% { clip-path: inset(80% 0 5% 0);  transform: translate(4px,-1px); }
  100%{ clip-path: inset(0 0 100% 0);  transform: translate(0,0); }
}
@keyframes g2 {
  0%  { clip-path: inset(65% 0 10% 0); transform: translate(4px,1px); }
  25% { clip-path: inset(5% 0 75% 0);  transform: translate(-3px,0); }
  50% { clip-path: inset(40% 0 35% 0); transform: translate(2px,-1px); }
  75% { clip-path: inset(15% 0 60% 0); transform: translate(-4px,1px); }
  100%{ clip-path: inset(100% 0 0 0);  transform: translate(0,0); }
}

/* ---------- layout ---------- */
section { padding: clamp(96px, 16vh, 180px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.eyebrow { color: var(--fg-3); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.section-title { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; }
.section-sub { margin-top: 20px; max-width: 560px; color: var(--fg-2); font-size: clamp(17px, 1.6vw, 21px); }
.strong { background: linear-gradient(180deg, #fff 30%, #9a9aa0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strong::before, .strong::after { -webkit-background-clip: border-box; background: none; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; position: relative; }
.hero-title { font-size: clamp(48px, 10vw, 136px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.hero-title .line { display: block; }
.hero-sub { margin-top: 32px; max-width: 560px; font-size: clamp(18px, 1.8vw, 22px); color: var(--fg-2); }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 99px; font-size: 15px; font-weight: 500; transition: transform .3s var(--ease), background .3s, color .3s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }
.scroll-hint { position: absolute; bottom: 36px; left: var(--gutter); color: var(--fg-3); display: flex; align-items: center; gap: 12px; }
.scroll-hint span { width: 1px; height: 40px; background: linear-gradient(var(--fg-3), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0%{transform:scaleY(0)} 60%{transform:scaleY(1)} 100%{transform:scaleY(1);opacity:0} }

/* ---------- manifesto ---------- */
.big-statement { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; max-width: 1050px; }
.big-statement .dim { color: var(--fg-3); }

/* ---------- product / cloak ---------- */
.product-head { margin-bottom: 56px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.blink { animation: blink 1.4s steps(2) infinite; }

.cloak {
  position: relative; aspect-ratio: 16/9; border-radius: 28px; overflow: hidden;
  background: #111; border: 1px solid var(--line);
  isolation: isolate;
}
@media (max-width: 640px) { .cloak { aspect-ratio: 4/5; border-radius: 20px; } }
.cloak-media { position: absolute; inset: 0; }
.cloak-img {
  position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; object-position: 45% 50%;
  filter: invert(1) grayscale(1) blur(22px) contrast(1.6) brightness(.8);
  transform: scale(1.05);
  transition: filter 1.4s var(--ease);
}
.cloak:hover .cloak-img:not(.slice) { filter: invert(1) grayscale(1) blur(14px) contrast(1.7) brightness(.95); }
.slice { opacity: 0; mix-blend-mode: screen; }
.cloak.is-glitching .s1 { opacity: .9; filter: invert(1) grayscale(1) blur(8px) contrast(2); clip-path: inset(var(--a, 30%) 0 var(--b, 55%) 0); transform: translateX(var(--dx, 18px)) scale(1.05); }
.cloak.is-glitching .s2 { opacity: .7; filter: invert(1) blur(10px) contrast(2) sepia(1) hue-rotate(160deg) saturate(5); clip-path: inset(var(--c, 62%) 0 var(--d, 20%) 0); transform: translateX(calc(var(--dx, 18px) * -1.4)) scale(1.05); }

/* ribbed glass, nodding to the brand's murmuration stripes */
.ribs {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px 7px, rgba(0,0,0,.35) 7px 9px, transparent 9px 12px),
    radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(0,0,0,.85) 100%);
}
.scan {
  position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(58,158,208,.10) 70%, rgba(58,158,208,.35) 99%, transparent);
  animation: scan 5s linear infinite;
}
@keyframes scan { to { top: 110%; } }

.cloak-hud { position: absolute; inset: 0; padding: clamp(16px, 3vw, 28px); color: rgba(255,255,255,.7); font-size: 11px; }
.cloak-hud > div { position: absolute; }
.hud-tl { top: clamp(16px,3vw,28px); left: clamp(16px,3vw,28px); }
.hud-tr { top: clamp(16px,3vw,28px); right: clamp(16px,3vw,28px); }
.hud-bl { bottom: clamp(16px,3vw,28px); left: clamp(16px,3vw,28px); display: flex; align-items: center; gap: 8px; }
.hud-br { bottom: clamp(16px,3vw,28px); right: clamp(16px,3vw,28px); font-variant-numeric: tabular-nums; }
.state { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .25; transition: opacity .4s, box-shadow .4s; }
.state.on { opacity: 1; box-shadow: 0 0 14px var(--c); }
.hud-label { margin-left: 6px; }

.decode { margin-top: clamp(64px, 10vh, 120px); }
.decode p { font-size: clamp(44px, 8.4vw, 116px); line-height: 1; letter-spacing: -.045em; font-weight: 600; white-space: nowrap; }
.decode p.dim { color: var(--fg-3); }
.decode .sc { color: var(--sky); font-family: "JetBrains Mono", monospace; font-weight: 400; letter-spacing: 0; }
.product-copy { margin-top: 48px; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.3; letter-spacing: -.015em; max-width: 860px; color: var(--fg-2); }
.redact { background: var(--fg); color: var(--fg); border-radius: 3px; padding: 0 .1em; letter-spacing: -.1em; user-select: none; font-family: "JetBrains Mono", monospace; font-size: .8em; }
.coming { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.02); }
.coming-text { font-family: "JetBrains Mono", monospace; font-size: clamp(18px, 2.4vw, 26px); letter-spacing: .3em; }

/* ---------- approach ---------- */
.lit { margin-top: clamp(72px, 12vh, 140px); max-width: 1000px; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.14; letter-spacing: -.03em; font-weight: 600; }
.lit .w { color: var(--fg); opacity: .16; transition: opacity .25s linear; }
.lit .w.on { opacity: 1; }

/* ---------- founders ---------- */
.founder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.founder { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 32px; transition: transform .5s var(--ease), border-color .4s; }
.founder:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.18); }
.mono-badge {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a2a2d, #0e0e10); border: 1px solid rgba(255,255,255,.12);
  font-weight: 600; font-size: 18px; letter-spacing: -.02em; margin-bottom: 40px;
}
.mono-badge::before, .mono-badge::after { display: grid; place-items: center; }
.founder h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; line-height: 1.15; }
.founder .role { color: var(--sky); margin-top: 8px; }
.founder ul { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.founder li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.founder li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }

.proof { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proof > div { display: flex; flex-direction: column; gap: 8px; }
.proof-n { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.proof-l { color: var(--fg-3); }
@media (max-width: 640px) { .proof { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- closer ---------- */
.closer { text-align: center; display: flex; flex-direction: column; align-items: center; }
.closer-title { font-size: clamp(52px, 10vw, 140px); line-height: .95; letter-spacing: -.05em; font-weight: 600; }
.closer .btn { margin-top: 40px; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 32px var(--gutter); border-top: 1px solid var(--line); color: var(--fg-3); max-width: var(--max); margin: 0 auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  #flock { display: none; }
}

@media (max-width: 640px) { .hud-br { display: none; } }

/* product section opens the page */
.product.first { padding-top: clamp(120px, 18vh, 200px); }

/* ---------- contact modal ---------- */
.modal { margin: auto; padding: 0; border: 0; background: transparent; color: var(--fg); width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow: visible; }
.modal::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal[open] { animation: modalIn .5s var(--ease); }
.modal[open]::backdrop { animation: fade .4s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); filter: blur(6px); } }
@keyframes fade { from { opacity: 0; } }
.modal-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 5vw, 40px); background: rgba(18,18,20,.92); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 40px 120px rgba(0,0,0,.6); max-height: calc(100svh - 32px); overflow-y: auto; }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--fg-2); font-size: 20px; line-height: 1; cursor: pointer; transition: color .2s, border-color .2s; }
.modal-close:hover { color: var(--fg); border-color: rgba(255,255,255,.3); }
.modal-title { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.035em; font-weight: 600; line-height: 1.05; }
.modal-sub { color: var(--fg-2); margin-top: -8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .mono { color: var(--fg-3); }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--fg); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { border-color: var(--sky); background: rgba(58,158,208,.06); }
.field input.bad { border-color: var(--red); }
.modal-submit { align-self: flex-start; border: 0; cursor: pointer; margin-top: 4px; }
.modal-done { color: var(--green); font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .06em; }
.modal-err { color: var(--amber); font-size: 14px; }
.modal-err a { text-decoration: underline; }
.modal-submit:disabled { opacity: .5; cursor: default; }
