:root {
  --cream: #f2f2eb;
  --cream-2: #ebe9e1;
  --paper: #f9f9f6;
  --ink: #100f0f;
  --ink-2: rgba(16, 15, 15, 0.62);
  --ink-3: rgba(16, 15, 15, 0.42);
  --line: rgba(16, 15, 15, 0.1);
  --jack: #2341ff;
  --jack-deep: #0017c7;
  --jill: #e8590c;
  --jill-deep: #c24a00;
  --sun: #ffd862;
  --sky: #00ccfa;
  --peri: #88a5ff;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 44px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--cream); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-gated { overflow: hidden; }
a { color: inherit; }
.mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

#world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
/* film grain + a faint warm vignette: the page reads as printed light, not a screen */
.grain {
  position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

.ribbon {
  position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translateX(-50%);
  font: 500 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
  text-decoration: none; padding: 8px 12px; border-radius: 99px; white-space: nowrap;
  background: rgba(249, 249, 246, .7); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px;
  border-radius: 99px; font: 500 15px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 12px 30px -16px rgba(16,15,15,.6); }
.btn-jack { background: var(--jack); color: #fff; box-shadow: 0 14px 34px -14px rgba(35,65,255,.7); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; gap: 0; background: var(--cream);
  transition: opacity 1s var(--ease), visibility 1s;
}
.gate.is-out { opacity: 0; visibility: hidden; }
.gate-faces { display: flex; gap: 22px; }
.gate-faces svg { width: 64px; height: 64px; overflow: visible; }
.gate-faces ellipse { fill: var(--jack-deep); transform-box: fill-box; transform-origin: center; animation: blink 2.6s ease-in-out infinite .9s; }
.gate-faces path { fill: none; stroke: var(--jack-deep); stroke-width: .75; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards .15s; }
.gate-faces .jill ellipse { fill: var(--jill-deep); }
.gate-faces .jill path { stroke: var(--jill-deep); stroke-width: .62; animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.1); } }
.gate-bar { position: absolute; left: 50%; top: calc(50% + 70px); width: 120px; height: 1px; transform: translateX(-50%); background: var(--line); overflow: hidden; }
.gate-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .4s ease; }

/* ---------- header ---------- */
.top { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { color: var(--ink); display: inline-flex; }
.top-r { display: flex; align-items: center; gap: 22px; }
.lnk { font-size: 14px; text-decoration: none; color: var(--ink-2); transition: color .3s; }
.lnk:hover { color: var(--ink); }
.progress { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 2px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--jack), var(--jill)); }

/* ---------- copy blocks ---------- */
.stage { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
.blk {
  position: absolute; left: 50%; top: 50%; width: min(1180px, calc(100vw - 2 * var(--gutter)));
  transform: translate(-50%, calc(-50% + var(--dy, 0px))); filter: blur(var(--bl, 0px));
  text-align: center; opacity: 0; visibility: hidden; will-change: opacity, transform, filter;
}
.blk a, .blk .btn { pointer-events: auto; }
.blk-hero { top: 50%; width: min(600px, calc(100vw - 2 * var(--gutter))); }
.blk-hero .display { font-size: clamp(44px, 4.9vw, 78px); }
.blk-cue { top: auto; bottom: 6vh; transform: translate(-50%, var(--dy, 0px)); }
.blk-top { top: 14vh; transform: translate(-50%, var(--dy, 0px)); }
.blk-low { top: auto; bottom: 12vh; transform: translate(-50%, var(--dy, 0px)); }
.blk-low-left { left: var(--gutter); transform: translate(0, var(--dy, 0px)); width: min(560px, calc(100vw - 2 * var(--gutter))); text-align: left; }
.blk-low-left .lede { margin-left: 0; }
.blk-right { left: auto; right: var(--gutter); width: min(470px, calc(100vw - 2 * var(--gutter))); transform: translate(0, calc(-50% + var(--dy, 0px))); text-align: left; }
.blk-left { left: var(--gutter); width: min(470px, calc(100vw - 2 * var(--gutter))); transform: translate(0, calc(-50% + var(--dy, 0px))); text-align: left; }
.blk-proof { top: auto; bottom: 9vh; transform: translate(-50%, var(--dy, 0px)); }

.display { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .98; font-size: clamp(44px, 6.4vw, 96px); }
.display em { font-style: italic; }
.display.md { font-size: clamp(56px, 7vw, 104px); }
.display.sm { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; }
.lede { margin: 18px auto 0; max-width: 560px; color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; }
.blk-left .lede, .blk-right .lede { margin-left: 0; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); }
.k-jack { color: var(--jack); }
.k-jill { color: var(--jill); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 12px 7px 9px; border-radius: 99px;
  font-size: 13px; text-decoration: none; color: var(--ink); background: rgba(249,249,246,.75); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pill i { width: 8px; height: 8px; border-radius: 2px; background: conic-gradient(var(--sun) 0 25%, var(--sky) 0 50%, var(--peri) 0 75%, var(--jill) 0); }
.ctas { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.cue { margin: 26px 0 0; display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink-3), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

.intro-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px 0 16px; margin-bottom: 22px; border-radius: 99px;
  background: var(--jack); color: #fff; font-weight: 500; font-size: 15px; box-shadow: 0 18px 40px -16px rgba(35,65,255,.75);
  transform: scale(var(--pop, 1));
}
.intro-pill svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; border-top: 1px solid var(--line); }
.stats div { padding-top: 18px; display: grid; gap: 6px; }
.stats b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 74px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--ink-3); font-size: 14px; }
.logos { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 34px; opacity: .78; }
.logos img { width: auto; filter: grayscale(1); }

/* ---------- floating product cards ---------- */
.cards { position: fixed; inset: 0; z-index: 9; pointer-events: none; }
.card {
  position: absolute; left: 0; top: 0; width: 380px; padding: 16px; border-radius: 22px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(16,15,15,.04), 0 40px 80px -30px rgba(40,34,20,.35), 0 12px 24px -16px rgba(40,34,20,.25);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  opacity: 0; visibility: hidden; transform-origin: 50% 50%; will-change: transform, opacity; font-size: 14px;
}
.card-chat { width: 340px; display: grid; gap: 12px; }
.scan { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); padding: 6px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.scan i { width: 6px; height: 6px; border-radius: 50%; background: var(--jack); box-shadow: 0 0 0 4px rgba(35,65,255,.15); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(35,65,255,0); } }
.bubble { display: flex; gap: 10px; align-items: flex-start; }
.bubble img { border-radius: 7px; flex: none; }
.bubble p { margin: 0; line-height: 1.45; font-size: 15px; }
.card header { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; color: var(--ink-3); font-size: 13px; }
.card header b { color: var(--ink); font-weight: 500; font-size: 15px; }
.card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.card-jobs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: #fff; }
.card-jobs li.hot { box-shadow: inset 0 0 0 1.5px rgba(35,65,255,.35); }
.card-jobs li b { display: block; font-weight: 500; }
.card-jobs li span { color: var(--ink-3); font-size: 12px; }
.card-jobs li em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.card-jobs li em.req, .card-alex .req { color: var(--ink); background: var(--paper); border: 1px solid var(--line); padding: 6px 10px; border-radius: 99px; }
.co { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); position: relative; }
.co::after { content: ""; position: absolute; inset: 12px; border-radius: 3px; border: 2px solid rgba(255,255,255,.9); }
.co-b::after { border-radius: 50% 0; }
.co-c::after { inset: 18px 10px; border: 0; border-top: 2px solid #fff; transform: skewY(-18deg); }
.why { margin-top: 8px; padding: 12px; border-radius: 14px; background: #fff; }
.why p { margin: 0; line-height: 1.45; }
.why-k { display: flex; align-items: center; gap: 8px; margin-bottom: 6px !important; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.why-k img { border-radius: 4px; }
.card-alex { width: 400px; }
.card-alex header { gap: 14px; justify-content: flex-start; }
.card-alex header .act { color: var(--ink); }
.card-alex header .act:first-of-type { margin-left: auto; }
.who { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: #fff; }
.who b { font-weight: 500; font-size: 16px; }
.who span { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #e9c9b0 0 22%, #3c2c28 23% 34%, transparent 35%), radial-gradient(circle at 50% 100%, #26304a 0 48%, transparent 49%), #8d8a84; }
.sum { margin-top: 6px !important; padding: 10px 12px 10px 28px !important; border-radius: 14px; background: #fff; list-style: disc !important; display: block !important; }
.sum li { line-height: 1.5; }

/* ---------- after the journey ---------- */
main { position: relative; z-index: 20; }
.track { height: 1000vh; pointer-events: none; }
.after { position: relative; padding: 18vh var(--gutter) 70px; display: grid; justify-items: center; gap: 120px; background: linear-gradient(rgba(242,242,235,0), var(--cream) 22vh); }
.after-hero { text-align: center; display: grid; justify-items: center; }
.after .kicker { color: var(--ink-3); }
.mission, .quotes, .founders, .credits { width: min(1180px, 100%); }
.mission { display: grid; gap: 26px; }
.mission-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.mission-cols p { margin: 0; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quotes figure { margin: 0; padding: 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 22px; align-content: space-between; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.22; letter-spacing: -.01em; }
.quotes figcaption { color: var(--ink-3); font-size: 14px; }
.quotes figcaption b { display: block; color: var(--ink); font-weight: 500; }
.founders { display: grid; gap: 40px; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 18px; align-items: end; }
.founder { margin: 0; border-radius: 22px; overflow: hidden; position: relative; background: #ddd; aspect-ratio: 3 / 4; }
.founder img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.founder:hover img { transform: scale(1.035); }
.founder figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(249,249,246,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: grid; gap: 2px; }
.founder figcaption b { font-weight: 500; font-size: 17px; }
.founder figcaption span { color: var(--ink-3); font-size: 13px; }
.team-note { padding: 0 0 8px 10px; display: grid; gap: 18px; }
.backers { margin: 0; color: var(--ink-2); line-height: 1.6; }
.team { margin: 0; border-radius: 22px; overflow: hidden; position: relative; }
.team img { display: block; width: 100%; height: clamp(280px, 46vw, 620px); object-fit: cover; object-position: 50% 40%; }
.team figcaption { position: absolute; left: 16px; bottom: 16px; font-size: 12px; color: #fff; padding: 7px 11px; border-radius: 99px; background: rgba(16,15,15,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.credits { border-top: 1px solid var(--line); padding: 24px 0 40px; display: grid; gap: 10px; color: var(--ink-3); font-size: 13px; line-height: 1.55; }
.credits p { margin: 0; }
.credits b { color: var(--ink); font-weight: 500; }

/* ---------- fallback, small screens, motion ---------- */
.no-webgl #world, .no-webgl .stage, .no-webgl .cards, .no-webgl .track { display: none; }
.no-webgl .after { padding-top: 120px; }
@media (max-width: 760px) {
  .lnk { display: none; }
  .blk-right, .blk-left { left: 50%; right: auto; transform: translate(-50%, var(--dy, 0px)); top: auto; bottom: 10vh; text-align: center; }
  .blk-right .lede, .blk-left .lede { margin-left: auto; }
  .card { width: 300px !important; padding: 12px; font-size: 13px; }
  .blk-hero { top: 64%; }
  .blk-low-left { left: 50%; transform: translate(-50%, var(--dy, 0px)); text-align: center; }
  .stats { gap: 10px; }
  .stats b { font-size: 26px; }
  .stats span { font-size: 11px; }
  .logos { display: none; }
  .mission-cols, .quotes { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr 1fr; }
  .team-note { grid-column: 1 / -1; padding: 0; }
  .after { gap: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .cue i, .scan i { animation: none; }
}
body.rec .stage { inset: -16vh 0 16vh 0; }
body.rec .blk-cue, body.rec .progress { display: none; }
body.rec .blk-top { top: 33vh; }
body.clean .stage, body.clean .cards, body.clean .top, body.clean .ribbon, body.clean .progress { display: none; }
