/* Kejar.ai — Linear-style product UI, cinematic smoke & light */
:root {
  --bg: #08090a;
  --bg-2: #0f1011;
  --text: #f7f8f8;
  --text-2: #d0d6e0;
  --grey: #8a8f98;
  --dim: #62666d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --accent: #7cc4ff;
  --accent-2: #4d8dff;
  --amber: #e8b95a;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6; font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #000; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }

/* smoke over everything, below the nav */
.smoke { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; mix-blend-mode: screen; }

/* ---------- type ---------- */
.h2 {
  font-size: clamp(32px, 4.2vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 32; text-wrap: balance; padding-bottom: .14em; margin-bottom: -.1em;
  background: linear-gradient(to right bottom, #fff 30%, rgba(255, 255, 255, .45));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.small-title { font-size: 15px; font-weight: 500; color: var(--grey); letter-spacing: -0.01em; }
.sec-head { display: grid; gap: 20px; margin-bottom: 56px; }
.sec-head p { color: var(--grey); font-size: 17px; max-width: 64ch; text-wrap: pretty; }

/* ---------- buttons, chip ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 10px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background .2s, box-shadow .25s, border-color .2s, color .2s;
}
.btn svg { width: 15px; height: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: var(--text); color: #08090a; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px #fff inset, 0 0 30px rgba(124, 196, 255, .45); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  font-size: 13px; color: var(--text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); transition: border-color .2s, background .2s;
}
.chip:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.chip svg { width: 13px; height: 13px; color: var(--grey); }
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: var(--text-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
.tag-soon { color: var(--amber); border-color: rgba(232, 185, 90, .3); background: rgba(232, 185, 90, .08); vertical-align: middle; margin-left: 6px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled { background: rgba(8, 9, 10, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand-mark { width: 12px; height: 20px; fill: var(--text); }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a { font-size: 14px; color: var(--grey); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- cards (glass + cursor spotlight border) ---------- */
.card {
  --mx: 50%; --my: 0%;
  position: relative; border-radius: var(--r); background: var(--glass), var(--bg-2);
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  isolation: isolate; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(124, 196, 255, .08), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(170, 215, 255, .55), transparent 40%);
  -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; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: #000; }
.hero-stage { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
video.android-layer { width: 100%; height: 100%; object-fit: cover; display: block; }
.after-turn { position: absolute; inset: 0; }
/* the turn: robot starts facing you and dim, turns to profile while the light comes up,
   ending with only the back of the head faded */
.hero.film .android-dark { animation: none; opacity: 0; }
.hero.film.turning .android-dark { animation: emerge 1.6s ease-out both, turn-light var(--turn, 10s) cubic-bezier(.45, 0, .3, 1) both; }
@keyframes turn-light {
  from { filter: brightness(.24) saturate(.8); --rv: 92%; }
  to { filter: brightness(.5) saturate(.9); --rv: 110%; }
}
.hero.film .after-turn { opacity: 0; transition: opacity 1.6s ease; }
.hero.film.turned .after-turn { opacity: 1; }
.android { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.android-frame {
  --lx: 66%; --ly: 38%; --lr: 260px; --px: 0px; --py: 0px;
  position: absolute; right: -9vw; top: 50%;
  width: calc(100svh * 1.7778); min-width: 100%; aspect-ratio: 16 / 9;
  transform: translate(var(--px), calc(-50% + var(--py))) scale(1.04);
}
.android-layer { position: absolute; inset: 0; background: url("assets/android.webp") center / cover no-repeat; }
/* on load the robot is revealed from the face toward the back of the head:
   a soft-edged mask sweeps left → right (--rv), together with a gentle fade */
@property --rv { syntax: "<percentage>"; inherits: false; initial-value: 110%; }
.android-dark {
  --rv: 110%;
  filter: brightness(.5) saturate(.9);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--rv) - 34%), transparent var(--rv));
  mask-image: linear-gradient(90deg, #000 calc(var(--rv) - 34%), transparent var(--rv));
  opacity: 0; animation: emerge 2.8s .3s ease-out forwards, reveal 4s .3s cubic-bezier(.45, 0, .2, 1) both;
}
.android-lit {
  --rv: 110%;
  filter: brightness(1.35) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .5) 40%, transparent 72%), linear-gradient(90deg, #000 calc(var(--rv) - 34%), transparent var(--rv));
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 0%, rgba(0, 0, 0, .5) 40%, transparent 72%), linear-gradient(90deg, #000 calc(var(--rv) - 34%), transparent var(--rv));
  mask-composite: intersect;
  opacity: 0; animation: emerge 2s 1.2s ease-out forwards, reveal 4s .3s cubic-bezier(.45, 0, .2, 1) both;
}
@keyframes emerge { to { opacity: 1; } }
@keyframes reveal { from { --rv: 45%; } to { --rv: 110%; } }
.eye { position: absolute; width: 0; height: 0; }
.eye::before, .eye::after { content: ""; position: absolute; border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: screen; }
.eye::before {
  width: 18vmin; height: 18vmin;
  background: radial-gradient(circle, rgba(140, 205, 255, .5), rgba(77, 141, 255, .18) 30%, transparent 66%);
  opacity: 0; animation: ignite 1.4s .25s ease-out forwards, breathe 4.5s 1.6s ease-in-out infinite;
}
.eye-main::before { width: 26vmin; height: 26vmin; }
.eye::after { width: .7vmin; height: .7vmin; min-width: 5px; min-height: 5px; background: #e9f6ff; box-shadow: 0 0 10px 3px rgba(124, 196, 255, .8), 0 0 34px 10px rgba(77, 141, 255, .45); opacity: 0; animation: ignite 1.4s .25s ease-out forwards; }
.flare { position: absolute; left: 0; top: 0; width: 24vmin; height: 2px; transform: translate(-50%, -50%); background: linear-gradient(90deg, transparent, rgba(124, 196, 255, .55) 45%, rgba(255, 255, 255, .85) 50%, rgba(124, 196, 255, .55) 55%, transparent); filter: blur(1px); mix-blend-mode: screen; opacity: 0; animation: ignite 1.4s .25s ease-out forwards, breathe 4.5s 1.6s ease-in-out infinite; }
.eye-main .flare { width: 40vmin; }
@keyframes ignite { from { opacity: 0; } to { opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .85; } }
.eye-ray {
  position: absolute; right: calc(100% - 54.46%); top: 31.67%; width: 80%; height: 130%; transform: translateY(-50%);
  background: conic-gradient(from 0deg at 100% 50%, transparent 0deg 236deg, rgba(77, 141, 255, .05) 248deg, rgba(160, 210, 255, .12) 258deg, rgba(77, 141, 255, .05) 268deg, transparent 284deg 360deg);
  -webkit-mask-image: linear-gradient(to left, #000 5%, transparent 92%); mask-image: linear-gradient(to left, #000 5%, transparent 92%);
  filter: blur(16px); mix-blend-mode: screen; opacity: 0; animation: emerge 2.4s 1.4s forwards;
}
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.android-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 34%, transparent 58%), linear-gradient(to top, var(--bg) 0%, transparent 28%); }

.hero-inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 120px; }
.hero-inner > * { opacity: 0; animation: rise 1.2s 1.4s var(--ease) forwards; }
.hero-title {
  margin-top: 28px; max-width: 9ch;
  font-size: clamp(52px, 7.6vw, 112px); font-weight: 600; line-height: .98; letter-spacing: -0.05em; font-variation-settings: "opsz" 32;
  background: linear-gradient(to right bottom, #fff 35%, rgba(255, 255, 255, .5)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .16em; margin-bottom: -.1em; animation-delay: 1.55s !important;
}
.hero-lede { margin-top: 24px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--grey); line-height: 1.5; animation-delay: 1.7s !important; }
.hero .cta-row { margin-top: 36px; animation-delay: 1.85s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 860px) {
  .hero-stage { align-items: flex-end; }
  .android-frame { width: calc(62svh * 1.7778); min-width: 0; right: auto; left: 50%; top: 5svh; transform: translateX(-59%) scale(1.04); }
  .android-shade { background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .88) 40%, transparent 66%); }
  .eye::before { width: 30vmin; height: 30vmin; }
  .hero-inner { padding-bottom: 72px; }
}

/* =========================================================
   STATEMENT
   ========================================================= */
.statement { height: 200vh; }
.statement-inner { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.statement-text { font-size: clamp(28px, 3.6vw, 52px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; max-width: 22ch; font-variation-settings: "opsz" 32; }
.morph { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: end; }
.morph canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.morph-glow { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(77, 141, 255, .16), transparent); filter: blur(20px); }
@media (max-width: 860px) {
  .statement-inner { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 8px; }
  .morph { order: -1; max-width: 300px; justify-self: center; }
  .statement-text { font-size: clamp(24px, 6.4vw, 32px); }
}
.statement-text .w { color: #2a2d33; transition: color .45s ease, text-shadow .45s ease; }
.statement-text .w.on { color: var(--text); text-shadow: 0 0 24px rgba(124, 196, 255, .25); }

/* =========================================================
   STAT CARD
   ========================================================= */
.stat-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: clamp(28px, 5vw, 64px); }
.stat-glow { position: absolute; z-index: -1; left: -10%; top: -60%; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(124, 196, 255, .16), transparent); filter: blur(10px); pointer-events: none; }
.stat-num {
  font-size: clamp(110px, 16vw, 220px); font-weight: 600; line-height: .85; letter-spacing: -0.07em; font-variation-settings: "opsz" 32;
  background: linear-gradient(180deg, #fff 10%, rgba(124, 196, 255, .55) 70%, rgba(124, 196, 255, .1)); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; padding-right: .06em;
}
.stat-pre { display: block; font-size: .2em; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: .12em; color: var(--text-2); -webkit-text-fill-color: var(--text-2); }
.stat-lead { margin-top: 24px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.4; letter-spacing: -0.015em; color: var(--text); max-width: 32ch; }
.stat-src { margin-top: 20px; font-size: 13px; color: var(--dim); max-width: 46ch; }
.stat-src a { color: var(--grey); text-decoration: underline; text-decoration-color: var(--line-2); }
.stat-right { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; max-width: 340px; align-self: end; width: 100%; }
.dots i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: background .5s, box-shadow .5s, border-color .5s; }
.dots i.on { background: var(--accent); border-color: #cfe9ff; box-shadow: 0 0 12px rgba(124, 196, 255, .9), 0 0 28px rgba(77, 141, 255, .5); }
.stat-note { color: var(--grey); max-width: 40ch; align-self: end; }
@media (max-width: 860px) { .stat-card { grid-template-columns: 1fr; } .dots, .stat-note { align-self: start; } }

/* =========================================================
   SERVICES BENTO
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; min-height: 360px; }
.t-workshop { grid-column: span 2; }
.t-inhouse { grid-column: span 2; }
.t-club { grid-column: span 1; }
/* club: a quiet stack of template cards */
.mock-stack { position: relative; height: 150px; background: none; border: 0; box-shadow: none; }
.mock-stack span { position: absolute; left: 12%; right: 12%; height: 92px; border-radius: 12px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), #0d0e10; }
.mock-stack span:nth-child(1) { top: 0; transform: scale(.86); opacity: .45; }
.mock-stack span:nth-child(2) { top: 22px; transform: scale(.93); opacity: .7; }
.mock-stack span:nth-child(3) { top: 46px; box-shadow: 0 18px 40px -16px #000; }
.tile-text { padding: 24px 28px 28px; margin-top: auto; }
.tile-text h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tile-text p { margin-top: 6px; color: var(--grey); font-size: 15px; max-width: 52ch; }
.tile-text.row { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding: 22px 28px; }
.tile-text.row p { margin: 0; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento { grid-auto-flow: dense; }
  .t-workshop, .t-inhouse { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .t-workshop, .t-inhouse, .t-club { grid-column: auto; }
}

/* mini product UIs */
.mock { position: relative; margin: 28px 28px 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04); font-size: 13px; color: var(--text-2); }
.mock-timeline { padding: 16px 18px 14px; }
.tl-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: var(--text); margin-bottom: 18px; }
.tl-rows { display: grid; gap: 12px; }
.tl-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 12px; }
.tl-label { color: var(--grey); }
.tl-track { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); overflow: hidden; }
.tl-bar { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; }
.tl-bar.b1 { left: 2px; width: 12%; background: linear-gradient(90deg, #4d8dff, #7cc4ff); box-shadow: 0 0 14px rgba(124, 196, 255, .6); }
.tl-bar.b2 { left: 13%; width: 12%; background: linear-gradient(90deg, #4d8dff, #7cc4ff); box-shadow: 0 0 14px rgba(124, 196, 255, .6); }
.tl-bar.b3 { left: 25%; right: 2px; background: repeating-linear-gradient(90deg, rgba(124, 196, 255, .28) 0 10px, rgba(124, 196, 255, .14) 10px 20px); border: 1px solid rgba(124, 196, 255, .35); }
.tl-bar.b3::after { content: ""; position: absolute; top: -2px; bottom: -2px; width: 2px; left: 0; background: #fff; box-shadow: 0 0 10px #7cc4ff; animation: scrub 6s linear infinite; }
@keyframes scrub { to { left: 100%; } }
.tl-axis { display: flex; justify-content: space-between; margin: 10px 0 0 122px; color: var(--dim); font-size: 12px; }

.mock-live { padding: 16px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(120% 90% at 50% 0%, rgba(77, 141, 255, .18), transparent 60%), rgba(0, 0, 0, .35); }
.live { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; color: #ffb4b4; background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 90, 90, .3); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #ff6b6b; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.wave { display: flex; align-items: center; gap: 4px; height: 44px; margin: 14px 0; }
.wave i { flex: 1; border-radius: 3px; background: linear-gradient(#cfe9ff, #4d8dff); height: 30%; animation: wave 1.2s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; } .wave i:nth-child(5n) { animation-delay: -.9s; }
@keyframes wave { 50% { height: 100%; } }
.faces { display: flex; align-items: center; }
.faces b, .faces span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--text); background: #1b1d22; border: 2px solid #0f1011; margin-left: -6px; }
.faces b:first-child { margin-left: 0; }
.faces span { color: var(--grey); }

.mock-issues { padding: 6px; }
.is-row { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; }
.is-row svg { width: 14px; height: 14px; }
.is-row em { font-style: normal; font-size: 12px; color: var(--dim); }
.is-row.active { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); }
.is-row.active span { color: var(--text); }

.mock-team { padding: 22px 18px; }
.org { display: flex; flex-direction: column; align-items: center; gap: 18px; position: relative; }
.org::before { content: ""; position: absolute; top: 30px; height: 18px; left: 12%; right: 12%; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 8px 8px 0 0; }
.org-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.node { display: grid; place-items: center; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--grey); font-size: 12.5px; white-space: nowrap; }
.node.lead { color: var(--text); border-color: var(--line-2); min-width: 120px; background: var(--bg-2); position: relative; }
.node.on { color: var(--text); border-color: rgba(124, 196, 255, .45); background: rgba(124, 196, 255, .08); box-shadow: 0 0 18px rgba(124, 196, 255, .18); }
/* in-house track */
.track-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--grey); font-size: 12.5px; }
.track-row span { display: inline-flex; align-items: center; gap: 8px; }
.track-row svg { width: 14px; height: 14px; }
@media (max-width: 520px) { .org-row { grid-template-columns: 1fr 1fr; } .org::before { display: none; } }

/* =========================================================
   HOW
   ========================================================= */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.closeup { aspect-ratio: 4 / 5; }
/* orbit of AI tools around Claude */
.orbit { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; display: grid; place-items: center; margin-top: 4%; }
.sweep { position: absolute; width: 96%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, rgba(255, 255, 255, .1) 40deg, transparent 80deg); filter: blur(10px); animation: spin 9s linear infinite; }
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring { position: absolute; width: var(--d); aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .12); animation: spin var(--t) linear infinite var(--dir, normal); }
.ring-1 { --d: 50%; --t: 46s; }
.ring-2 { --d: 84%; --t: 80s; --dir: reverse; }
/* each tile sits on a spoke at angle --a; `rotate` cancels the spoke angle, the animation cancels the ring spin */
.tl { position: absolute; inset: 0; transform: rotate(var(--a)); pointer-events: none; }
.tl i {
  rotate: calc(-1 * var(--a)); left: 50%; top: 0;
  position: absolute; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)), #0d0e10; border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -10px #000;
  animation: spin var(--t) linear infinite var(--counter, reverse);
  --g: 0;
  border-color: rgba(255, 255, 255, calc(.14 + var(--g) * .6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, calc(.08 + var(--g) * .25)), 0 10px 30px -10px #000, 0 0 calc(var(--g) * 26px) rgba(255, 255, 255, calc(var(--g) * .45));
}
.ring-2 .tl i { --counter: normal; }
.tl:nth-child(1) i { animation-delay: 0s, 0s; } .tl:nth-child(2) i { animation-delay: 0s, 1s; } .tl:nth-child(3) i { animation-delay: 0s, 2s; }
.tl:nth-child(4) i { animation-delay: 0s, 3s; } .tl:nth-child(5) i { animation-delay: 0s, 4s; } .tl:nth-child(6) i { animation-delay: 0s, 5s; }
.ring-1 .tl i { animation-delay: 0s, .5s; } .ring-1 .tl:nth-child(2) i { animation-delay: 0s, 2.5s; } .ring-1 .tl:nth-child(3) i { animation-delay: 0s, 4.5s; }
.tl img { width: 24px; height: 24px; object-fit: contain; }
.tl b { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 500; color: var(--grey); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.closeup:hover .tl b { opacity: 1; }
@keyframes lit { 0%, 70%, 100% { border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 30px -10px #000; } 80% { border-color: color-mix(in srgb, var(--c, #aad7ff) 70%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 26px color-mix(in srgb, var(--c, #7cc4ff) 45%, transparent); } }
.core {
  position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, .03)), #0f1013; border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 0 46px rgba(255, 255, 255, .28), 0 0 110px rgba(255, 255, 255, .12);
  animation: core 4s ease-in-out infinite;
}
.core img { width: 46px; height: 46px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .35)); }
@keyframes core { 50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, .03), 0 0 64px rgba(255, 255, 255, .38), 0 0 150px rgba(255, 255, 255, .16); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .orbit { left: 7%; right: 7%; margin-top: 2%; }
  .tl i { width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 11px; }
  .tl img { width: 19px; height: 19px; }
  .core { width: 70px; height: 70px; border-radius: 18px; }
  .core img { width: 36px; height: 36px; }
}
.closeup-img { position: absolute; inset: 0; z-index: -2; background: url("assets/android.webp") 65.5% 0 / 240% auto no-repeat; filter: brightness(.7) contrast(1.05); }
.closeup .eye.small::before { width: 22vmin; height: 22vmin; opacity: 1; animation: breathe 4.5s ease-in-out infinite; }
.closeup .eye.small:not(.eye-main)::before { width: 15vmin; height: 15vmin; }
.closeup .eye.small::after { opacity: 1; animation: none; }
.closeup-shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 40%, transparent 35%, rgba(8, 9, 10, .85) 100%), linear-gradient(to top, var(--bg-2) 0%, transparent 35%); pointer-events: none; }
.closeup-caption { position: absolute; left: 24px; right: 24px; bottom: 22px; font-size: 15px; color: var(--text-2); }
.steps { margin-top: 44px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; left: 13px; top: 14px; width: 1px; height: calc((100% - 28px) * var(--progress, 0)); background: linear-gradient(#fff, var(--accent)); box-shadow: 0 0 12px var(--accent); }
.steps li { position: relative; padding: 0 0 36px 48px; counter-increment: s; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; z-index: 1; width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--grey); background: var(--bg-2); border: 1px solid var(--line-2); transition: all .4s; }
.steps li.lit::before { color: #08090a; background: var(--accent); border-color: #cfe9ff; box-shadow: 0 0 16px rgba(124, 196, 255, .7); }
.steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 27px; }
.steps p { margin-top: 4px; color: var(--grey); max-width: 46ch; }
.safe { margin-top: 40px; display: flex; gap: 12px; align-items: center; color: var(--text-2); font-size: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.safe svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } .closeup { max-width: 480px; } }

/* =========================================================
   VISION / VALUES
   ========================================================= */
.vision { overflow-x: clip; }
.spot { position: absolute; left: 50%; top: 0; width: 1000px; height: 70%; transform: translateX(-50%); pointer-events: none;
  background: conic-gradient(from 180deg at 50% 0%, transparent 0deg 160deg, rgba(160, 205, 255, .07) 170deg, rgba(210, 232, 255, .16) 180deg, rgba(160, 205, 255, .07) 190deg, transparent 200deg 360deg);
  filter: blur(18px); -webkit-mask-image: linear-gradient(#000 20%, transparent 85%); mask-image: linear-gradient(#000 20%, transparent 85%); }
.vision-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 72px; position: relative; }
.vision-quote {
  margin-top: 20px; max-width: 24ch; font-size: clamp(28px, 3.6vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -0.035em; font-variation-settings: "opsz" 32;
  background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .14em; margin-bottom: -.1em;
}
.grid-lines { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--bg); padding: 32px 28px; transition: background .3s; }
.cell:hover { background: #0c0d0f; }
.cell.wide { grid-column: span 2; }
.cell svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(124, 196, 255, .5)); margin-bottom: 18px; }
.cell h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.cell p { margin-top: 6px; color: var(--grey); font-size: 15px; max-width: 48ch; }
.cell.wide p { max-width: 80ch; }
.cell em { color: var(--text); }
.never { margin-top: 56px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; }
.never li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.never li:first-child { border-top: 1px solid var(--line); }
.never li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--dim); }
.never li::after { content: ""; position: absolute; left: 3px; top: 50%; width: 11px; height: 1.5px; background: var(--dim); transform: rotate(-45deg); }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr; } .cell.wide { grid-column: auto; } .never { grid-template-columns: 1fr; } }

/* =========================================================
   INDUSTRIES — images in the dark, revealed by light
   ========================================================= */
.ind-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 230px; grid-template-areas: "a a a a a a a b b b b b" "a a a a a a a c c c c c" "d d d d e e e e f f f f"; }
.ind:nth-child(1) { grid-area: a; } .ind:nth-child(2) { grid-area: b; } .ind:nth-child(3) { grid-area: c; }
.ind:nth-child(4) { grid-area: d; } .ind:nth-child(5) { grid-area: e; } .ind:nth-child(6) { grid-area: f; }
.ind { --mx: 50%; --my: 45%; --lit: .4; position: relative; margin: 0; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: #000; }
.ind::before, .ind::after { content: ""; position: absolute; inset: 0; background: var(--img) center / cover no-repeat; transition: transform 1.2s var(--ease); }
.ind::before { filter: brightness(.55) saturate(.85); }
.ind::after {
  filter: brightness(1.25) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle var(--rpx, 220px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 75%);
  mask-image: radial-gradient(circle var(--rpx, 220px) at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .45) 45%, transparent 75%);
  opacity: var(--lit); transition: opacity .5s ease, transform 1.2s var(--ease);
}
.ind:hover::after { opacity: 1; }
/* the scene comes alive: a short, seamless clip fades in over the still */
.ind-clip { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; filter: brightness(.95); pointer-events: none; }
.ind.alive .ind-clip { opacity: 1; }
.ind:hover::before, .ind:hover::after { transform: scale(1.03); }
.ind figcaption { position: absolute; z-index: 2; left: 18px; bottom: 16px; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 14px; font-weight: 500; background: rgba(8, 9, 10, .6); border: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 860px) {
  .ind-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; grid-template-areas: "a a" "b c" "d e" "f f"; }
  .ind figcaption { font-size: 12.5px; left: 10px; bottom: 10px; }
}

/* =========================================================
   TEAM
   ========================================================= */
.team-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; align-items: end; }
.team-head { align-self: start; padding-right: clamp(0px, 3vw, 48px); }
.team-head p { margin-top: 20px; color: var(--grey); font-size: 17px; max-width: 32ch; }
.portrait { position: relative; aspect-ratio: 4 / 5; border-bottom: 1px solid var(--line); overflow: hidden; background: #000; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.08) brightness(.85); transition: filter .5s ease, transform 1.2s var(--ease); }
.person:hover .portrait img { filter: grayscale(1) contrast(1.1) brightness(1); transform: scale(1.03); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 16, 17, .9) 0%, transparent 35%); pointer-events: none; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: screen; pointer-events: none; background: conic-gradient(from 180deg at 50% -6%, transparent 0deg 160deg, rgba(160, 205, 255, .1) 170deg, rgba(220, 238, 255, .26) 180deg, rgba(160, 205, 255, .1) 190deg, transparent 200deg 360deg); filter: blur(12px); -webkit-mask-image: linear-gradient(#000 30%, transparent 95%); mask-image: linear-gradient(#000 30%, transparent 95%); }
.portrait span { position: relative; font-size: clamp(56px, 7vw, 88px); font-weight: 600; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff 0%, rgba(124, 196, 255, .6) 55%, rgba(255, 255, 255, .05) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.person-text { padding: 18px 22px 20px; }
.person-text h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.person-text p { color: var(--grey); font-size: 14px; }
.person-text .person-bio { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; line-height: 1.5; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; align-items: stretch; } .team-head { grid-column: 1 / -1; margin-bottom: 36px; padding-right: 0; } }
@media (max-width: 600px) { .person-text { padding: 14px; } }

/* =========================================================
   FINALE
   ========================================================= */
.finale { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.horizon { position: absolute; left: 50%; bottom: -64vw; width: 140vw; height: 80vw; transform: translateX(-50%); z-index: -1; border-radius: 50%; }
.horizon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--bg); box-shadow: 0 -1px 1px rgba(255, 255, 255, .9), 0 -6px 24px rgba(170, 215, 255, .6), 0 -40px 120px rgba(77, 141, 255, .4), 0 -120px 260px rgba(77, 141, 255, .2); }
.horizon i { position: absolute; left: 50%; top: -14vw; width: 60vw; height: 30vw; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 100%, rgba(190, 220, 255, .3), transparent 70%); filter: blur(30px); animation: glow 7s ease-in-out infinite; }
/* sunrise: warm sun core breaking over the centre of the planet's edge */
.horizon::after { content: ""; position: absolute; left: 50%; top: 0; width: 46vw; height: 9vw; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 250, 240, .95) 0%, rgba(255, 226, 180, .55) 18%, rgba(255, 196, 140, .18) 42%, transparent 72%);
  filter: blur(6px); mix-blend-mode: screen; animation: sunrise 7s ease-in-out infinite; }
.horizon b { position: absolute; left: 50%; top: -1px; width: 18vw; height: 2px; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(90deg, transparent, #fff 35%, #fff 65%, transparent); box-shadow: 0 0 18px 4px rgba(255, 236, 205, .8); }
@keyframes sunrise { 50% { opacity: .78; transform: translate(-50%, -50%) scaleX(.94); } }
@keyframes glow { 50% { opacity: .6; } }
.finale-inner { display: flex; flex-direction: column; align-items: center; padding-top: 80px; padding-bottom: 20vh; }
.finale-title { max-width: 16ch; font-size: clamp(40px, 6vw, 84px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variation-settings: "opsz" 32; background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .16em; margin-bottom: -.1em; }
.finale-inner > p { margin-top: 20px; max-width: 46ch; color: var(--grey); font-size: 17px; }
.finale .cta-row { margin-top: 32px; }

/* ---------- footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); background: var(--bg); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--grey); }
.footer h3 { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a, .footer-grid p { color: var(--grey); }
.footer-grid a:hover { color: var(--text); }
.footer-base { margin-top: 48px; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- legal pages ---------- */
.legal-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.legal-base nav { display: flex; gap: 24px; }
.legal-base a { color: var(--grey); transition: color .2s; }
.legal-base a:hover { color: var(--text); }
.legal-page { background: var(--bg); }
.legal-page .footer { padding-top: 0; }
.legal-page .footer-base { margin-top: 0; padding-top: 28px; }
.legal { max-width: calc(720px + 2 * var(--gutter)); padding-top: 140px; padding-bottom: 96px; }
.legal-kicker { font-size: 13px; color: var(--grey); }
.legal h1 { margin-top: 12px; font-size: clamp(36px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.04em; }
.legal-meta { margin-top: 16px; font-size: 13px; color: var(--dim); }
.legal-lead { margin-top: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.55; color: var(--text-2); }
.legal section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
.legal section p, .legal li { color: var(--grey); font-size: 15px; line-height: 1.7; }
.legal section p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; list-style: disc; }
.legal li::marker { color: var(--dim); }
.legal strong { color: var(--text-2); font-weight: 500; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.legal-other { margin-top: 32px; font-size: 14px; color: var(--grey); }
mark.todo { background: rgba(232, 185, 90, .16); color: #e8b95a; border-radius: 4px; padding: 0 4px; }
