:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #191919;
  --line: #242424;
  --ink: #f3f3f3;
  --ink-2: #a3a3a3;
  --ink-3: #6b6b6b;
  --blue: #3b82e6;
  --purple: #7b6cf6;
  --pink: #c7148f;
  --red: #e0143c;
  --grad: linear-gradient(100deg, #1ea7ff 0%, #7b6cf6 35%, #c7148f 68%, #f0182a 100%);
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1240px;
  --r: 18px;
  --gutter: max(16px, calc((100vw - var(--max)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main { overflow-x: clip; }
code { font-family: var(--mono); font-size: .88em; color: #e6e6e6; background: rgba(255,255,255,.06); padding: 1px 6px; border-radius: 5px; }

h1, h2, h3, h4, .outline, .tag, .kicker, .strip span, .nav nav a {
  font-family: var(--display); font-stretch: 125%; text-transform: uppercase;
}
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 16px var(--gutter);
  background: rgba(10,10,10,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 30px; width: auto; }
.nav nav { display: flex; gap: 30px; }
.nav nav a { font-size: 13px; font-weight: 600; font-stretch: 110%; letter-spacing: .04em; color: var(--ink-2); transition: color .2s; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: min(84vh, 740px);
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) 80px; isolation: isolate; border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 20%; z-index: -2; opacity: .45; filter: saturate(.7); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 35%, rgba(10,10,10,.92) 78%, var(--bg) 100%),
    radial-gradient(ellipse at 15% 90%, rgba(30,167,255,.18), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(240,24,42,.16), transparent 55%);
}
.hero-inner { max-width: 940px; }
.kicker { margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-2); }
.hero h1 { margin: 0 0 24px; font-size: clamp(40px, 7.6vw, 104px); line-height: .94; font-weight: 900; }
.lede { max-width: 600px; margin: 0 0 32px; color: #c9c9c9; font-size: 18px; }
.hero-actions { display: flex; gap: 28px; flex-wrap: wrap; }
.ghost { font: 600 14px var(--body); color: var(--ink-2); border-bottom: 1px solid #333; padding-bottom: 3px; transition: color .2s, border-color .2s; }
.ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Ticker */
.strip { padding: 26px 0; border-bottom: 1px solid var(--line); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.track { display: flex; gap: 64px; padding-right: 64px; }
.strip span { font-size: 15px; font-weight: 800; color: #555; white-space: nowrap; transition: color .2s; }
.strip span:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 110px 16px 40px; }
.s-head { max-width: 760px; margin-bottom: 44px; }
.s-head h2 { margin: 0 0 18px; font-size: clamp(34px, 5.4vw, 72px); line-height: .96; font-weight: 900; }
.s-head p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 640px; }
.tag {
  display: inline-block; margin-bottom: 14px; padding: 4px 9px; border-radius: 4px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--ink-2);
}

/* Bento */
.bento { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.team { grid-template-columns: 1.25fr 1fr 1fr; grid-auto-rows: minmax(230px, auto); }
.learn { grid-template-rows: 310px 310px; }
.canvas { grid-template-rows: 380px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .3s;
}
.tile:hover { border-color: #353535; }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .7s ease; }
.tile:hover > img { transform: scale(1.03); }
.tile:has(> img)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 25%, rgba(10,10,10,.7) 55%, rgba(10,10,10,.97) 100%), linear-gradient(90deg, rgba(10,10,10,.55) 0%, transparent 60%);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(123,108,246,.15), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile-cap { position: relative; z-index: 1; padding: 26px; }
.tile-cap.top { padding-bottom: 6px; }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile h3 { margin: 0 0 8px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.02; font-weight: 900; }
.tile p { margin: 0; max-width: 480px; color: var(--ink-2); font-size: 15px; }
.tile p b { color: var(--ink); }

/* Team feed */
.feed { justify-content: flex-start; background: linear-gradient(180deg, #151515, #0f0f0f); }
.people { margin: 16px 18px 0; border: 1px solid var(--line); border-radius: 12px; background: #0c0c0c; }
.person { display: grid; grid-template-columns: 34px 1fr 10px; gap: 12px; align-items: center; padding: 13px 14px; }
.person + .person { border-top: 1px solid var(--line); }
.person b { display: block; font-size: 14px; font-weight: 600; }
.person span { display: block; font-size: 12.5px; color: var(--ink-3); }
.person code { font-size: 11.5px; padding: 0 5px; }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--display); font-style: normal; color: #fff; }
.a1 { background: linear-gradient(135deg, #1ea7ff, #7b6cf6); }
.a2 { background: linear-gradient(135deg, #c7148f, #f0182a); }
.a3 { background: linear-gradient(135deg, #7b6cf6, #c7148f); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a3a; text-decoration: none; }
.dot.on { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 1.8s infinite; }
.events { margin: 14px 18px 20px; display: grid; gap: 8px; min-height: 96px; align-content: start; }
.event { padding: 10px 12px; border-radius: 10px; background: #141414; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); animation: slideIn .5s cubic-bezier(.2,.8,.2,1) both; }
.event b { color: var(--ink); margin-right: 6px; font-weight: 600; }
.event.warn { border-color: rgba(240,180,40,.35); background: rgba(240,180,40,.06); }
.event.warn b { color: #f5c542; }
.event.hand b { color: #7fb4ff; }
.event.note b { color: #d68cff; }
.event.out { animation: slideOut .4s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes slideOut { to { opacity: 0; transform: translateY(-8px); } }

.row3, .row4 { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.row3 { grid-template-columns: repeat(3, 1fr); }
.row4 { grid-template-columns: repeat(4, 1fr); }
.row3 > div, .row4 > div { padding: 26px 24px 30px 0; }
.row3 > div + div, .row4 > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.row3 h4, .row4 h4, .list-grid h4, .principles h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.2; font-weight: 800; }
.row3 p, .row4 p, .list-grid p, .principles p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.row4 b { color: var(--ink); font-weight: 600; }

/* Language: graph vs code */
.compare { display: grid; grid-template-columns: 1.15fr auto 1fr; gap: 18px; align-items: stretch; }
.pane { border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: flex; flex-direction: column; }
.pane-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--ink-2); }
.chip { font: 700 10px var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .08em; padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,.06); color: var(--ink-3); }
.graph-pane svg { width: 100%; height: auto; padding: 18px 16px 4px; flex: 1; background: radial-gradient(circle, #1c1c1c 1px, transparent 1px) 0 0 / 18px 18px; }
.wire { fill: none; stroke-width: 2.5; }
.wire.exec { stroke: #eaeaea; }
.node rect:first-child { fill: #1b1b1b; stroke: #3a3a3a; transition: stroke .3s, filter .3s; }
.node text { fill: #e0e0e0; font: 500 13px var(--body); }
.node .hd.blue { fill: var(--blue); } .node .hd.purple { fill: var(--purple); } .node .hd.red { fill: #c8102e; }
.node.on rect:first-child { stroke: #fff; filter: drop-shadow(0 0 10px rgba(123,108,246,.7)); }
.legend { margin: 0; padding: 12px 16px 16px; font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lw, .lc { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: #eaeaea; }
.lc { background: var(--grad); margin-left: 10px; }
.arrow { align-self: center; font: 900 30px var(--display); color: #3a3a3a; }
.code-pane pre { margin: 0; flex: 1; padding: 22px 0; font: 14px/2 var(--mono); color: #d6d6d6; overflow-x: auto; }
.code-pane code { background: none; padding: 0; font-size: inherit; }
.ln { display: block; padding: 0 20px; border-left: 3px solid transparent; transition: background .3s, border-color .3s; white-space: pre; }
.ln.on { background: rgba(123,108,246,.12); border-left-color: var(--purple); }
.code-pane k { color: #ff6b9a; } .code-pane f { color: #7fb4ff; } .code-pane s { color: #9be29b; text-decoration: none; }

/* Learn tiles */
.explain { justify-content: space-between; background: radial-gradient(ellipse at 80% 0%, rgba(30,167,255,.1), transparent 60%), var(--bg-2); }
.bubble { margin: 22px 22px 0; padding: 14px 16px; border-radius: 12px 12px 12px 4px; background: #1b1b1b; border: 1px solid #2d2d2d; font-size: 14px; color: var(--ink-2); transition: opacity .35s, transform .35s; }
.bubble b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.bubble.swap { opacity: 0; transform: translateY(6px); }
.tidy { justify-content: space-between; background: radial-gradient(ellipse at 20% 0%, rgba(199,20,143,.1), transparent 60%), var(--bg-2); }
.tidy-list { margin: 22px 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tidy-list div { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 9px; background: #171717; border: 1px solid var(--line); font-size: 14px; animation: settle 5s ease-in-out infinite; }
.tidy-list div:nth-child(2) { animation-delay: .25s; } .tidy-list div:nth-child(3) { animation-delay: .5s; } .tidy-list div:nth-child(4) { animation-delay: .75s; }
.tidy-list i { width: 10px; height: 10px; border-radius: 3px; }
.c1 { background: #1ea7ff; } .c2 { background: var(--purple); } .c3 { background: var(--pink); } .c4 { background: #f0182a; }
@keyframes settle { 0%, 60%, 100% { transform: none; } 70% { transform: translateX(6px); border-color: #3a3a3a; } }

/* Canvas list */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.list-grid div { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.list-grid div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }

/* Principles */
.principles { max-width: var(--max); margin: 0 auto; padding: 90px 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.principles div { padding: 26px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }

/* Closing */
.closing { position: relative; text-align: center; padding: 90px 16px 120px; border-top: 1px solid var(--line); overflow: hidden; }
.outline { margin: 0; font-weight: 900; color: transparent; -webkit-text-stroke: 1.5px #1f1f1f; }
.outline.big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: clamp(110px, 26vw, 380px); line-height: .9; white-space: nowrap; }
.closing-inner { position: relative; }
.closing-inner h2 { margin: 0 0 18px; font-size: clamp(34px, 5.6vw, 76px); line-height: .96; font-weight: 900; }
.closing-inner p { max-width: 520px; margin: 0 auto; color: var(--ink-2); }

footer { display: flex; justify-content: space-between; align-items: center; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
footer img { height: 22px; width: auto; }

/* ---------- Motion ---------- */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.kicker, .lede, .hero-actions { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
.lede { animation-delay: .25s; } .hero-actions { animation-delay: .35s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-bg { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1.14) translate(-3%, -2%); } }
em.shift, .closing-inner em { background-size: 220% 100%; animation: sheen 6s ease-in-out infinite alternate; }
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

.flow { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 2 16; animation: flow 1.1s linear infinite; }
.flow.w { stroke: #fff; } .flow.c { stroke: #ffd6e0; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.outline.big { animation: float 9s ease-in-out infinite alternate; }
@keyframes float { from { transform: translate(-52%, -50%); } to { transform: translate(-48%, -50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav nav { gap: 18px; }
  .team { grid-template-columns: 1fr 1fr; }
  .team .tile-tall { grid-row: span 2; }
  .learn { grid-template-columns: 1fr 1fr; grid-template-rows: 340px auto; }
  .learn .tile-xl { grid-column: span 2; grid-row: auto; }
  .row4 { grid-template-columns: 1fr 1fr; }
  .row4 > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .row4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .compare { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }
  .principles { grid-template-columns: 1fr 1fr; }
  .list-grid { grid-template-columns: 1fr 1fr; }
  .list-grid div, .list-grid div:not(:nth-child(3n+1)) { padding: 22px 22px 24px 0; border-left: 0; }
  .list-grid div:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .nav nav { display: none; }
  .hero { min-height: 0; padding-top: 96px; padding-bottom: 60px; }
  .section { padding-top: 80px; }
  .team, .learn, .canvas { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: auto; }
  .tile-xl, .tile-wide, .tile-tall, .team .tile-tall, .learn .tile-xl { grid-column: auto; grid-row: auto; }
  .tile-xl, .canvas .tile { min-height: 360px; }
  .row3, .row4, .list-grid, .principles { grid-template-columns: 1fr; }
  .row3 > div, .row4 > div, .row3 > div + div, .row4 > div + div, .list-grid div, .list-grid div:nth-child(2n) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .row3 > div:first-child, .row4 > div:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .marquee { flex-wrap: wrap; }
}
