@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0A0E1A;
  --night-2: #121a2e;
  --paper: #EEF1F6;
  --sheet: #FFFFFF;
  --font: "Onest";
  --dw: 300;
  --track: -0.02em;
  --ice: #DFE6F2;
  --ink: #0F1626;
  --ink-2: #5B6474;
  --on-night: #F4F6FA;
  --on-night-2: #9AA4B6;
  --sane: #5FD3A0;
  --sane-ink: #1F6A4A;
  --violet: #8B7BFF;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --r-xl: clamp(24px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font), system-ui, sans-serif; font-weight: 400; font-size: 18px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font: 600 16px/1 var(--font), sans-serif; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.pill:active { transform: scale(.98); }
.pill--dark { background: var(--night); color: var(--on-night); }
.pill--dark:hover { background: #1c2540; }
.pill--line { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15,22,38,.2); }
.pill--line:hover { background: rgba(15,22,38,.05); }
.pill--light { background: var(--on-night); color: var(--ink); }
.pill--light:hover { background: #fff; }
.pill--ghost { color: var(--on-night); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.pill--ghost:hover { background: rgba(255,255,255,.08); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.1; background: var(--ice); color: var(--ink); }
.tlink { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tlink::after { content: " \2192"; }

/* ---------- Hero: the studio and its shelf of products ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(42% 60% at 82% 38%, rgba(139,123,255,.16), transparent 70%),
    radial-gradient(34% 40% at 62% 70%, rgba(95,211,160,.14), transparent 70%),
    var(--paper);
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.mark i { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(from 200deg, var(--sane), var(--violet), var(--sane)); }
.top nav { display: flex; gap: 6px; align-items: center; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 16px; border-radius: 999px; transition: color .2s, background-color .2s; }
.top nav a:hover { color: var(--ink); background: rgba(15,22,38,.05); }
.top nav a.lang { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15,22,38,.18); }

.hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center;
  gap: 48px clamp(40px, 6vw, 96px);
  padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(32px, 4vw, 56px);
}
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sane-ink); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sane); box-shadow: 0 0 0 4px rgba(95,211,160,.22); }
.hero h1 { margin-top: 20px; font-weight: var(--dw); font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.hero .lede { margin-top: 26px; max-width: 40ch; color: var(--ink-2); font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.hero .lede b { color: var(--ink); font-weight: 500; }

.shelf { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(3, auto); gap: 14px; }
.tile {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 26px;
  background: rgba(255,255,255,.75); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 48px -32px rgba(15,22,38,.35);
  text-decoration: none; transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 56px -30px rgba(15,22,38,.45); }
.tile img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.tile b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tile span { display: block; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.tile--frank { grid-row: 1 / 4; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; background: var(--night); color: var(--on-night); }
.tile--frank img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; }
.tile--frank .tl { padding: 14px 10px 8px; }
.tile--frank span { color: var(--on-night-2); }
.tile--frank .live { position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(10,14,26,.55); backdrop-filter: blur(6px); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sane); animation: live 2.4s ease-in-out infinite; box-shadow: 0 0 0 3px rgba(95,211,160,.25); }
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(95,211,160,.05); } }

/* ---------- Sections ---------- */
.sec { padding: clamp(48px, 6vw, 88px) 0; }
#products { padding-top: clamp(24px, 3vw, 40px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 40px; flex-wrap: wrap; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--ink-2); }
h2.big { margin-top: 0; font-weight: var(--dw); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: var(--track); max-width: 24ch; text-wrap: balance; }

/* Frank */
.frank { margin-top: clamp(28px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--sheet); padding: clamp(14px, 1.6vw, 20px); }
.frank-main { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 24px clamp(28px, 4vw, 64px); align-items: center; }
.frank-pic { position: relative; border-radius: calc(var(--r-xl) - 10px); overflow: hidden; aspect-ratio: 1; }
.frank-pic img { width: 100%; height: 100%; object-fit: cover; }
.frank-pic figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff; background: rgba(10,14,26,.55); backdrop-filter: blur(6px); }
.frank-body { padding: clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px) clamp(8px, 2vw, 28px) 0; }
.frank-body .meta { font-size: 15px; font-weight: 600; color: var(--sane-ink); }
.frank-body h3 { margin-top: 10px; font-weight: var(--dw); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.08; letter-spacing: var(--track); text-wrap: balance; }
.frank-body p.lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; max-width: 46ch; }
.places { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.frank-body .actions { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }

/* Other products */
.prods { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.prod { border-radius: var(--r-xl); padding: clamp(22px, 2.4vw, 30px); background: var(--sheet); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.prod img { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 16px 32px -20px rgba(15,22,38,.5); }
.prod h3 { margin-top: 10px; font-weight: var(--dw); font-size: clamp(22px, 2vw, 28px); line-height: 1.05; letter-spacing: var(--track); }
.prod .kind { font-size: 17px; font-weight: 500; }
.prod p.desc { font-size: 16px; color: var(--ink-2); text-wrap: pretty; }
.prod .links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 15px; }
.prod .links a { color: var(--ink-2); text-decoration: none; }
.prod .links a:hover { color: var(--ink); }
.prod .links a.go { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* How we build: agents */
.how {
  border-radius: var(--r-xl); padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(139,123,255,.22), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, rgba(95,211,160,.14), transparent 70%),
    var(--night);
  color: var(--on-night);
}
.how .eyebrow { color: var(--sane); }
.how h2.big { margin-top: 0; max-width: 20ch; }
.how .lede { margin-top: 16px; max-width: 58ch; color: var(--on-night-2); font-size: 18px; text-wrap: pretty; }
.lanes { margin-top: clamp(28px, 3.4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: l; }
.lanes li { counter-increment: l; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px; border-radius: 24px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.lanes li::before { content: counter(l, decimal-leading-zero); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--sane); }
.lanes b { font-size: 19px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.lanes span { font-size: 15.5px; line-height: 1.55; color: #C3CBD8; text-wrap: pretty; }
.lanes .num { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; }
.lanes .num strong { font-weight: var(--dw); font-size: 30px; line-height: 1; letter-spacing: var(--track); color: var(--on-night); }
.lanes .num em { font-style: normal; font-size: 14px; line-height: 1.3; color: var(--on-night-2); }
.how-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.how-links a { font-size: 16px; font-weight: 600; color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.how-links a::after { content: " \2192"; }

/* Footer: contact, founder, services */
.end { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(24px, 3vw, 36px); }
.end-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.end h2 { font-weight: var(--dw); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: var(--track); }
.end .lede { margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.end .actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; }
.facts li { padding: 18px 0; border-top: 1px solid rgba(15,22,38,.1); }
.facts li:last-child { border-bottom: 1px solid rgba(15,22,38,.1); }
.facts small { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.facts p { margin-top: 6px; font-size: 16.5px; line-height: 1.5; }
.facts a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot { margin-top: clamp(40px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--ink-2); }
.foot a { color: var(--ink-2); }

.statline { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--ink-2); }
.statline b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.lanes .lane-link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 600; color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lanes .lane-link::after { content: " \2192"; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
}
@media (max-width: 980px) {
  .hero-body, .frank-main, .end-grid { grid-template-columns: minmax(0, 1fr); }
  .frank-body { padding: 8px 10px 14px; }
  .frank-pic { aspect-ratio: 4 / 3; }
  .prods, .lanes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .top nav a:not(.lang) { display: none; }
  .shelf { grid-template-columns: 1fr; }
  .tile--frank { grid-row: auto; flex-direction: row; align-items: center; gap: 14px; padding: 14px; }
  .tile--frank img { width: 64px; border-radius: 16px; }
  .tile--frank .tl { padding: 0; }
  .tile--frank .live { position: static; order: 3; margin-left: auto; padding: 0; background: none; backdrop-filter: none; font-size: 0; }
  .frank { padding: 10px; }
  .frank-pic { aspect-ratio: 1; }
  .frank-body .actions .pill { flex: 1 1 auto; }
  .how { padding: 32px 14px 14px; }
  .how > .eyebrow, .how > h2, .how > .lede, .how-links { padding: 0 6px; }
  .lanes li { padding: 20px 18px 22px; }
  .end .actions .pill { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .tile { transition: none; }
  .live::before { animation: none; }
}
