/*
  Float8 Labs website, design v2.
  Tokens follow docs/design/float8-handoff-README.md. The design's oklch colours are
  converted to sRGB hex so they render identically everywhere. No JavaScript: all
  motion is CSS and stops under prefers-reduced-motion.
*/

/* Instrument Sans and JetBrains Mono, self-hosted (SIL OFL 1.1, see docs/ASSETS.md). */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-400-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-500-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-ext-600-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/instrument-sans-latin-600-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-ext-500-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.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 {
  color-scheme: light;
  --cobalt: #1f5ed9;        /* oklch(0.52 0.2 262): buttons, links */
  --cobalt-hover: #2347c5;  /* oklch(0.46 0.2 266) */
  --cobalt-light: #7cb4fc;  /* oklch(0.76 0.12 255): accent on dark */
  --cobalt-tint: #e5efff;   /* oklch(0.95 0.025 260): section background, tags */
  --cobalt-ink: #1745c2;    /* oklch(0.45 0.2 264): cobalt text on tint */
  --cobalt-edge: #bbcfef;   /* oklch(0.85 0.05 260) */
  --mark-from: #1874ed;     /* oklch(0.58 0.2 258) */
  --mark-to: #284ecc;       /* oklch(0.48 0.2 266) */
  --green: #5ed99e;         /* oklch(0.8 0.14 160): status */
  --twinkle-blue: #5b7cfa;
  --paper: #fbfaf7;
  --paper-2: #f1f0ec;
  --white: #ffffff;
  --line: #e2e1dc;
  --muted: #66655f;
  --faint: #73726c;         /* lightest grey that keeps 4.5:1 on paper and white */
  --body: #44433f;
  --ink: #141414;
  --night: #121212;
  --night-2: #1a1a1a;
  --night-3: #1c1c1c;
  --night-4: #242424;
  --line-dark: #2a2a2a;
  --muted-dark: #a3a29c;
  --faint-dark: #8a8984;    /* small labels on dark, 4.5:1 or better */
  --soft-dark: #b5b4ae;
  --text-dark: #d6d5cf;
  --paper-dark: #f2f1ec;
  --footer: #0c0c0c;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --gutter: 32px;
  --section: 120px;
  --header-h: 71px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body { margin: 0; font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol[role="list"], ul[role="list"] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cobalt); text-underline-offset: 4px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cobalt-light); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 20px));
}
.skip-link:focus { transform: none; color: var(--paper); }

/* Pixel motif ------------------------------------------------------------ */
.px { flex: none; fill: currentColor; shape-rendering: crispEdges; }
.px-2 { width: 14px; height: 14px; }
.px-3 { width: 21px; height: 21px; }
.px-4 { width: 28px; height: 28px; }
.px-5 { width: 35px; height: 35px; }
.px-arrow { width: 12px; height: 10px; }
.sq { display: inline-block; flex: none; width: 8px; height: 8px; background: var(--cobalt); }
.sq--light { width: 6px; height: 6px; background: var(--cobalt-light); }
.sq--green { width: 6px; height: 6px; background: var(--green); }
.dots {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px);
  animation: dots-drift 4s linear infinite;
}
.dots--dark { background-image: repeating-linear-gradient(90deg, var(--line-dark) 0 4px, transparent 4px 8px); }
.blink { animation: blink 2.6s linear infinite; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes blink { 0%, 70% { opacity: 1; } 80% { opacity: .15; } 100% { opacity: 1; } }
@keyframes dots-drift { from { background-position: 0 0; } to { background-position: 64px 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Typography ------------------------------------------------------------- */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font: 400 12px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.label--cobalt { color: var(--cobalt-ink); }
.label--mark { gap: 12px; }
.display-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.lead { max-width: 560px; color: var(--body); font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.lead--sm { max-width: 720px; font-size: 18px; }
.lead--dark { color: var(--soft-dark); font-size: 18px; line-height: 1.6; text-wrap: wrap; }
.link-strong { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.link-strong:hover { color: var(--cobalt); }
.link-light { color: var(--cobalt-light); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.link-light:hover { color: var(--white); }

/* Buttons ---------------------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.btn-sm { min-height: 42px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
.btn-primary { background: var(--cobalt); color: var(--paper); }
.btn-primary:hover { background: var(--cobalt-hover); color: var(--paper); }
.btn-outline { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--cobalt-light); color: var(--ink); }
.btn-ghost-dark { box-shadow: inset 0 0 0 1.5px #4a4a48; color: var(--paper-dark); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--paper-dark); color: var(--paper-dark); }

/*
  The mark: a cobalt gradient tile with the 4 × 7 pixel 8. Sizes follow the logo spec
  rounding (cells are whole pixels at small sizes): text 18 -> tile 22, cell 3 × 2;
  text 24 -> tile 29, cell 4 × 3; text 30 -> tile 39, cell 5 × 4. The full-size master
  is /assets/float8-mark.svg (favicon and image exports).
*/
.mark { position: relative; display: inline-block; flex: none; background: linear-gradient(145deg, var(--mark-from), #2361dd, var(--mark-to)); }
.mark svg { position: absolute; fill: var(--paper); shape-rendering: crispEdges; }
.mark--22 { width: 22px; height: 22px; border-radius: 5px; }
.mark--22 svg { top: 4px; left: 5px; width: 12px; height: 14px; }
.mark--29 { width: 29px; height: 29px; border-radius: 6px; }
.mark--29 svg { top: 4px; left: 6px; width: 16px; height: 21px; }
.mark--39 { width: 39px; height: 39px; border-radius: 8px; }
.mark--39 svg { top: 5px; left: 9px; width: 20px; height: 28px; }

/* Logo: "Float [8] Labs". At 56px text the mark is 68px with a 12px gap. ----- */
.logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo--header { gap: 5px; font-size: 24px; }
.logo--header .mark { transform: translateY(1px); }
.logo--footer { gap: 6px; font-size: 30px; color: var(--paper-dark); }
.logo--footer:hover { color: var(--white); }
.logo--footer .mark { transform: translateY(1px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgb(251 250 247 / .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 70px; padding-block: 14px; }
.site-nav { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--cobalt); }
.site-nav .site-nav__product { color: var(--cobalt-ink); font-weight: 600; }
.site-nav .site-nav__product::before { content: ""; width: 6px; height: 6px; background: var(--cobalt); }
.site-nav .site-nav__product:hover { color: var(--ink); }
.site-nav [aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.lang-switch { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 9px; background: var(--paper-2); font: 400 12px/1 var(--mono); }
.lang-switch a { padding: 8px 10px; border-radius: 7px; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch [aria-current] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgb(20 20 20 / .06); }

/* Home hero -------------------------------------------------------------- */
.hero { padding-block: 88px 72px; }
.hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: center; gap: 56px; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border-radius: 12px;
  background: var(--night);
  color: var(--paper-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s;
}
.pill:hover { background: var(--cobalt-hover); color: var(--white); }
.pill__tag { color: var(--cobalt-light); font: 400 11px/1 var(--mono); }
.pill:hover .pill__tag { color: var(--white); }

.display {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--night);
  box-shadow: 0 30px 60px -30px rgb(20 20 40 / .45);
}
.display__head { display: flex; justify-content: space-between; align-items: center; color: var(--muted-dark); font: 400 11px/1 var(--mono); }
.display__name { display: inline-flex; align-items: center; gap: 8px; }
.display__grid { display: grid; grid-template-columns: repeat(22, minmax(0, 1fr)); gap: 3px; }
.display__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.display__chips li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 10px; background: var(--night-3); color: var(--paper-dark); font-size: 14px; font-weight: 500; line-height: 1.3; }
.chip__k { color: var(--faint-dark); font: 400 10px/1.2 var(--mono); }

/*
  The display: 22 × 14 cells with a static 8 (cells .on). Every other cell runs a
  long cycle that is dark most of the time and briefly lights cobalt or grey.
  Durations come from :nth-child(5n+k) and two delay components from (7n+k) and
  (11n+k), so no two of the 308 cells share a schedule and the flashes read as random.
*/
.display__grid i {
  --t: 8.3s;
  --a: 0s;
  --b: 0s;
  aspect-ratio: 1;
  background-color: #1f1f1f;
  animation: px-grey var(--t) ease-in-out calc(var(--a) + var(--b)) infinite;
}
.display__grid i:nth-child(3n+1) { animation-name: px-cobalt; }
.display__grid i:nth-child(5n+1) { --t: 6.1s; }
.display__grid i:nth-child(5n+2) { --t: 7.3s; }
.display__grid i:nth-child(5n+4) { --t: 9.7s; }
.display__grid i:nth-child(5n+5) { --t: 11.3s; }
.display__grid i:nth-child(7n+2) { --a: -1.1s; }
.display__grid i:nth-child(7n+3) { --a: -2.3s; }
.display__grid i:nth-child(7n+4) { --a: -3.4s; }
.display__grid i:nth-child(7n+5) { --a: -4.6s; }
.display__grid i:nth-child(7n+6) { --a: -5.7s; }
.display__grid i:nth-child(7n+7) { --a: -6.9s; }
.display__grid i:nth-child(11n+2) { --b: -.5s; }
.display__grid i:nth-child(11n+3) { --b: -1s; }
.display__grid i:nth-child(11n+4) { --b: -1.6s; }
.display__grid i:nth-child(11n+5) { --b: -2.1s; }
.display__grid i:nth-child(11n+6) { --b: -2.6s; }
.display__grid i:nth-child(11n+7) { --b: -3.2s; }
.display__grid i:nth-child(11n+8) { --b: -3.7s; }
.display__grid i:nth-child(11n+9) { --b: -4.2s; }
.display__grid i:nth-child(11n+10) { --b: -4.8s; }
.display__grid i:nth-child(11n+11) { --b: -5.3s; }
.display__grid i.on { background-color: var(--paper); animation: none; }
@keyframes px-cobalt { 0%, 87%, 100% { background-color: #1f1f1f; } 90%, 96% { background-color: var(--cobalt); } }
@keyframes px-grey { 0%, 90%, 100% { background-color: #1f1f1f; } 93%, 97% { background-color: #3a3a38; } }

/* Dark sections: sparse pixels fading in and out. */
.on-dark { position: relative; overflow: hidden; background: var(--night); color: var(--paper-dark); }
.on-dark > .container { position: relative; }
.on-dark .label { color: var(--muted-dark); }
.twinkle { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.twinkle i { position: absolute; width: 6px; height: 6px; background: var(--paper-dark); opacity: 0; animation: twinkle 5.6s ease-in-out infinite; }
.twinkle i:nth-child(4n+1) { background: var(--twinkle-blue); animation-name: twinkle-blue; }
@keyframes twinkle { 0%, 32%, 100% { opacity: 0; } 16% { opacity: .2; } }
@keyframes twinkle-blue { 0%, 32%, 100% { opacity: 0; } 16% { opacity: .55; } }

/* Services strip ----------------------------------------------------------- */
.service-strip { border-block: 1px solid var(--line); background: var(--white); }
.service-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.service-strip__list a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 22px 8px; color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.service-strip__list a:hover { color: var(--cobalt); }
.service-strip__list .px { color: var(--cobalt); }

/* Sections ----------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--flush { padding-top: 0; }
.section--tint { background: var(--cobalt-tint); }
.section--paper2 { background: var(--paper-2); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: 48px; }
.section__head--split { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; max-width: none; }
.section__titles { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.dots--head { flex: 1; min-width: 120px; max-width: 360px; margin-bottom: 14px; }
.num { color: var(--faint); font: 400 12px/1 var(--mono); }

.icon-tile { display: grid; flex: none; place-items: center; border-radius: 14px; }
.icon-tile--tint { width: 64px; height: 64px; background: var(--cobalt-tint); color: var(--cobalt); }
.icon-tile--dark { width: 64px; height: 64px; background: var(--night-4); color: var(--cobalt-light); }

/* AgentBase on the home page ------------------------------------------------ */
.ab-section__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; gap: 64px; padding-block: var(--section) 72px; }
.ab-section__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.h2-dark { font-size: clamp(38px, 5vw, 60px); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.ab-section .lead--dark { max-width: 520px; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; }
.points li { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #2f2f2d; color: var(--text-dark); font-size: 14px; line-height: 1.45; }
.point__n { color: var(--cobalt-light); font: 400 11px/1.4 var(--mono); }

.chat { min-width: 0; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 20px; background: var(--night-2); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.chat__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 13px; }
.chat__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(145deg, var(--mark-from), var(--mark-to)); color: var(--paper); }
.chat__name { color: var(--paper-dark); font-weight: 600; }
.chat__sub { font: 400 11px/1 var(--mono); }
.chat__status { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--green); font: 400 11px/1 var(--mono); }
.chat__body { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.bubble { max-width: 86%; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: var(--night-4); color: var(--paper-dark); font-size: 15px; line-height: 1.45; }
.bubble--ask { align-self: flex-end; max-width: 78%; padding: 12px 16px; border-radius: 14px 14px 4px 14px; background: var(--cobalt); color: var(--paper); }
.tasks { display: flex; flex-direction: column; gap: 14px; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line-dark); border-radius: 12px; background: var(--ink); }
.task__icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--night-4); color: var(--cobalt-light); }
.task__text { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.task__name { color: var(--paper-dark); font-size: 14px; font-weight: 600; line-height: 1.35; }
.task__out { color: var(--muted-dark); font-size: 13px; line-height: 1.4; }
.tag-ready { padding: 5px 8px; border-radius: 6px; background: var(--night-4); color: var(--green); font: 400 10px/1.2 var(--mono); white-space: nowrap; }
.fake-actions { display: flex; gap: 10px; margin-top: 4px; }
.fake-btn { display: grid; flex: 1; place-items: center; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.fake-btn--light { background: var(--paper); color: var(--ink); }
.fake-btn--cobalt { background: var(--cobalt); color: var(--paper); }
.fake-btn--ghost { box-shadow: inset 0 0 0 1px #3a3a38; color: var(--paper-dark); }

.ab-section__more { display: flex; flex-direction: column; gap: 28px; padding-bottom: var(--section); }
.ab-section__more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line-dark); }
.ab-section__more-head h3 { font-size: 28px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.spec-link { display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 24px; border: 1px solid var(--line-dark); border-radius: 16px; background: var(--night-2); color: var(--paper-dark); text-decoration: none; transition: border-color .2s; }
.spec-link:hover { border-color: var(--cobalt); color: var(--paper-dark); }
.spec-link .icon-tile { width: 52px; height: 52px; border-radius: 12px; }
.spec-link h4 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.spec-link p { color: var(--muted-dark); font-size: 14px; line-height: 1.55; }
.rules-strip { display: flex; flex-direction: column; gap: 12px; }
.rules-strip .label { color: var(--faint-dark); font-size: 11px; font-weight: 400; }
.rules-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 16px; background: var(--line-dark); }
.rules-strip__list li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: var(--night); font-size: 15px; font-weight: 600; }

/* Service cards ------------------------------------------------------------ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--cobalt); box-shadow: 0 20px 40px -24px rgb(20 64 151 / .35); color: var(--ink); }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-card h2, .service-card h3 { font-size: 26px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.service-card p { max-width: 460px; color: var(--body); font-size: 16px; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag { padding: 6px 10px; border-radius: 6px; background: var(--paper-2); color: var(--body); font: 400 11px/1.3 var(--mono); }

/* Workflow steps ----------------------------------------------------------- */
.section--tint .section__head { margin-bottom: 56px; }
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 16px; background: var(--white); box-shadow: 0 1px 0 var(--cobalt-edge); }
.step__top { display: flex; align-items: center; gap: 10px; }
.step__bar { display: flex; gap: 3px; }
.step__bar i { width: 10px; height: 10px; background: #d9d8d2; }
.step__bar i.lit { background: var(--cobalt); }
.step__who { margin-left: auto; color: var(--muted); font: 400 11px/1 var(--mono); }
.step h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.step p { color: var(--body); font-size: 15px; line-height: 1.55; }

/* Insights cards and pixel covers ------------------------------------------ */
.section--paper2 .section__head { margin-bottom: 44px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 16px; color: var(--ink); text-decoration: none; }
.post-card:hover { color: var(--cobalt); }
.post-card__tag { color: var(--muted); font: 400 11px/1.3 var(--mono); }
.post-card h2, .post-card h3 { font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { color: var(--body); font-size: 16px; line-height: 1.6; }
.cover {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 14px;
  background-size: 20px 20px;
  transition: transform .3s;
}
/* A lattice of 6px squares on a 20px grid, with the article's pixel icon on top. */
.cover--a {
  background-color: var(--cobalt-tint);
  background-image:
    linear-gradient(90deg, var(--cobalt-tint) 0 14px, transparent 14px),
    linear-gradient(var(--cobalt-tint) 0 14px, #c9d9f9 14px);
  color: var(--cobalt);
}
.cover--b {
  background-color: var(--night);
  background-image:
    linear-gradient(90deg, var(--night) 0 14px, transparent 14px),
    linear-gradient(var(--night) 0 14px, #2a2a2a 14px);
  color: var(--cobalt-light);
}
.cover .px-cover { width: 70px; height: 70px; }
.post-card:hover .cover { transform: translateY(-2px); }

/* Contact ------------------------------------------------------------------ */
.contact__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; gap: 48px 64px; padding-block: var(--section); }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__title { font-size: clamp(40px, 5.4vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.contact__panel { padding: 30px; border: 1px solid var(--line-dark); border-radius: 20px; background: var(--night-2); }
.contact-steps li { display: flex; align-items: baseline; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line-dark); color: var(--text-dark); font-size: 20px; line-height: 1.35; letter-spacing: -.01em; }
.contact-steps li:first-child { padding-top: 0; border-top: 0; }
.contact-steps li:last-child { padding-bottom: 0; }
.contact-steps__n { color: var(--cobalt-light); font: 400 12px/1 var(--mono); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--footer); color: var(--muted-dark); }
.site-footer > .container { display: flex; flex-direction: column; gap: 64px; padding-block: 72px 40px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer__brand p { max-width: 380px; font-size: 15px; line-height: 1.6; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.4; }
.site-footer a { color: var(--text-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-label { margin-bottom: 14px; color: var(--faint-dark); font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--faint-dark); font: 400 11px/1.4 var(--mono); }
.site-footer__bottom a { color: var(--faint-dark); }

/* AgentBase page ----------------------------------------------------------- */
.ab-hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); align-items: center; gap: 64px; padding-block: 96px 112px; }
.ab-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.display-title--ab { font-size: clamp(44px, 6.4vw, 80px); }
.ab-hero .lead--dark { max-width: 560px; font-size: 19px; }
.example { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line-dark); border-radius: 20px; background: var(--night-2); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.example__caption { color: var(--faint-dark); font: 400 11px/1.4 var(--mono); }
.example__msg { color: var(--paper-dark); font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.tasks--lg { gap: 16px; }
.tasks--lg .task { padding: 16px; }
.tasks--lg .task__icon { width: 44px; height: 44px; }
.tasks--lg .task__name { font-size: 15px; }
.spec-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.spec-card { display: flex; flex-direction: column; gap: 18px; min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.spec-card h3 { font-size: 24px; font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.spec-card p { color: var(--body); font-size: 15px; line-height: 1.6; }
.spec-card .spec-card__note { margin-top: auto; font: 400 11px/1.5 var(--mono); }
.spec-card--dark { border-color: var(--night); background: var(--night); color: var(--paper-dark); }
.spec-card--dark p { color: var(--soft-dark); }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.rule-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; border-radius: 16px; background: var(--white); }
.rule-card .px { color: var(--cobalt); }
.rule-card h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.rule-card p { color: var(--body); font-size: 15px; line-height: 1.6; }

/* Services and Insights pages ---------------------------------------------- */
.page-hero { padding-block: 96px 72px; }
.page-hero .container { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.page-title { max-width: 18ch; font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.page-hero .lead { max-width: 640px; }
.page-hero__split { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
.page-hero__split > div { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.label--back { gap: 8px; min-height: 32px; text-decoration: none; }
.label--back::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); }
.label--back:hover { color: var(--cobalt); text-decoration: underline; }
.hero-icon { display: grid; place-items: center; width: 200px; height: 200px; border-radius: 24px; background: var(--cobalt-tint); color: var(--cobalt); }
.hero-icon .px-hero { width: 98px; height: 98px; }
.deliver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.deliver-card { display: flex; flex-direction: column; gap: 16px; padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.deliver-card h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.deliver-card p { color: var(--body); font-size: 16px; line-height: 1.6; }
.example-project { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; }
.example-project__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 8px; }
.example-project__body p { color: var(--body); font-size: 18px; line-height: 1.6; }

/* Articles ----------------------------------------------------------------- */
.article .page-intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 1240px; margin-inline: auto; padding: 96px var(--gutter) 56px; }
.article .page-intro h1 { max-width: 20ch; font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.article .eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--muted); font: 400 12px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.article .eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); }
.article .eyebrow:hover { color: var(--cobalt); text-decoration: underline; }
.intro-text { max-width: 720px; color: var(--body); font-size: 20px; line-height: 1.55; text-wrap: pretty; }
.article-cover { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.article-cover .cover { aspect-ratio: auto; height: 220px; }
.article-content { display: flex; flex-direction: column; gap: 40px; max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding: 56px var(--gutter) var(--section); }
.article-meta { color: var(--muted); font: 400 12px/1.5 var(--mono); }
.article-content h2 { margin-bottom: 14px; font-size: clamp(26px, 3vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.article-content section p { color: var(--body); font-size: 18px; line-height: 1.7; }
.article-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.text-link { color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--cobalt); }

/* 404 ---------------------------------------------------------------------- */
.error__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-block: 140px; }

/* Twinkle positions: pseudo-random, generated once and kept static. */
.twinkle i:nth-child(1) { left: 55.4%; top: 41.4%; animation-duration: 5.8s; animation-delay: -1.2s; }
.twinkle i:nth-child(2) { left: 5.9%; top: 21.4%; animation-duration: 5.8s; animation-delay: -7.2s; }
.twinkle i:nth-child(3) { left: 69%; top: 63.3%; animation-duration: 7.1s; animation-delay: -1.3s; }
.twinkle i:nth-child(4) { left: 89%; top: 77.7%; animation-duration: 6.2s; animation-delay: -7.4s; }
.twinkle i:nth-child(5) { left: 86.7%; top: 86%; animation-duration: 8.5s; animation-delay: -0.4s; }
.twinkle i:nth-child(6) { left: 9.4%; top: 8.1%; animation-duration: 5.8s; animation-delay: -7.1s; }
.twinkle i:nth-child(7) { left: 28.4%; top: 28.7%; animation-duration: 5.7s; animation-delay: -0.5s; }
.twinkle i:nth-child(8) { left: 53.6%; top: 55.3%; animation-duration: 9s; animation-delay: -2s; }
.twinkle i:nth-child(9) { left: 62.9%; top: 37.8%; animation-duration: 6.4s; animation-delay: -3s; }
.twinkle i:nth-child(10) { left: 45.7%; top: 61.8%; animation-duration: 5.4s; animation-delay: -3.2s; }
.twinkle i:nth-child(11) { left: 47.9%; top: 17.6%; animation-duration: 9s; animation-delay: -8.9s; }
.twinkle i:nth-child(12) { left: 61.2%; top: 65.3%; animation-duration: 8.3s; animation-delay: -3.1s; }
.twinkle i:nth-child(13) { left: 43.9%; top: 57.5%; animation-duration: 7.1s; animation-delay: -6.7s; }
.twinkle i:nth-child(14) { left: 27.6%; top: 55.1%; animation-duration: 5.1s; animation-delay: -2.7s; }
.twinkle i:nth-child(15) { left: 2.5%; top: 31.5%; animation-duration: 6.4s; animation-delay: -0.8s; }
.twinkle i:nth-child(16) { left: 46.6%; top: 88.5%; animation-duration: 8.9s; animation-delay: -4.5s; }
.twinkle i:nth-child(17) { left: 17%; top: 82.4%; animation-duration: 6.7s; animation-delay: -7.8s; }
.twinkle i:nth-child(18) { left: 96.1%; top: 15%; animation-duration: 7.8s; animation-delay: -4.8s; }
.twinkle i:nth-child(19) { left: 69.2%; top: 48%; animation-duration: 6.8s; animation-delay: -5.7s; }
.twinkle i:nth-child(20) { left: 51%; top: 76.4%; animation-duration: 8.3s; animation-delay: -8s; }
.twinkle i:nth-child(21) { left: 94.1%; top: 39.9%; animation-duration: 5.9s; animation-delay: -4.2s; }
.twinkle i:nth-child(22) { left: 77.5%; top: 24.1%; animation-duration: 6.8s; animation-delay: -1.6s; }
.twinkle i:nth-child(23) { left: 1.8%; top: 76.4%; animation-duration: 7.4s; animation-delay: -3.1s; }
.twinkle i:nth-child(24) { left: 45.2%; top: 12.1%; animation-duration: 6.2s; animation-delay: -5.3s; }
.twinkle i:nth-child(25) { left: 57.2%; top: 39.3%; animation-duration: 8.3s; animation-delay: -5.8s; }
.twinkle i:nth-child(26) { left: 46%; top: 78.4%; animation-duration: 7.9s; animation-delay: -4.3s; }
.twinkle i:nth-child(27) { left: 50.1%; top: 0.7%; animation-duration: 5.9s; animation-delay: -8.4s; }
.twinkle i:nth-child(28) { left: 48.8%; top: 47.8%; animation-duration: 5.8s; animation-delay: -7.4s; }
.twinkle i:nth-child(29) { left: 11.4%; top: 53.3%; animation-duration: 5s; animation-delay: -8.8s; }
.twinkle i:nth-child(30) { left: 56.8%; top: 78.2%; animation-duration: 8.7s; animation-delay: -2.5s; }
.twinkle i:nth-child(31) { left: 47.9%; top: 48.5%; animation-duration: 5.7s; animation-delay: -2.6s; }
.twinkle i:nth-child(32) { left: 83.5%; top: 74.9%; animation-duration: 7.3s; animation-delay: -4.3s; }
.twinkle i:nth-child(33) { left: 42.7%; top: 87.9%; animation-duration: 8.6s; animation-delay: -7.1s; }
.twinkle i:nth-child(34) { left: 27.5%; top: 11.8%; animation-duration: 5.5s; animation-delay: -5s; }
.twinkle i:nth-child(35) { left: 2.6%; top: 45%; animation-duration: 6.2s; animation-delay: -8.8s; }
.twinkle i:nth-child(36) { left: 70%; top: 66.8%; animation-duration: 5.7s; animation-delay: -7.9s; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --section: 96px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
  .page-hero__split { grid-template-columns: minmax(0, 1fr); }
  .hero-icon { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 72px; }
  html { scroll-padding-top: 8px; }
  .site-header { position: static; background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header__inner { flex-wrap: wrap; justify-content: space-between; gap: 14px 12px; }
  .site-header__cta { order: 1; }
  .site-nav { order: 2; flex: 1 1 auto; gap: 4px 20px; }
  .lang-switch { order: 3; }
  .hero { padding-block: 56px 64px; }
  .hero__copy { gap: 24px; }
  .lead { font-size: 18px; }
  .display { padding: 20px; border-radius: 20px; }
  .display__grid { gap: 2px; }
  .display__chips li { padding: 10px; font-size: 13px; }
  .service-strip__list a { padding-block: 16px; }
  .ab-section__intro { gap: 48px; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .service-card { min-height: 0; padding: 24px; }
  .service-card h2, .service-card h3 { font-size: 23px; }
  .spec-card { min-height: 0; }
  .ab-hero__inner { padding-block: 64px 72px; gap: 48px; }
  .page-hero { padding-block: 56px 48px; }
  .article .page-intro { padding-block: 56px 40px; }
  .article-cover .cover { height: 160px; }
  .article-content { padding-top: 40px; }
  .contact__panel { padding: 24px; }
  .contact-steps li { font-size: 18px; }
  .site-footer > .container { gap: 48px; padding-block: 56px 32px; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .error__inner { padding-block: 88px; }
}
@media (max-width: 400px) {
  .logo--header { font-size: 22px; }
  .site-nav { gap: 4px 16px; font-size: 14px; }
  .display__chips { gap: 6px; }
  .display__chips li { padding: 8px; }
  .task { flex-wrap: wrap; }
}

/* Motion off: keep a still frame of each animation. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .twinkle i:nth-child(3n) { opacity: .16; }
  .twinkle i:nth-child(4n+1) { opacity: .45; }
  .display__grid i:nth-child(13n+4) { background-color: #3a3a38; }
  .display__grid i:nth-child(17n+9) { background-color: var(--cobalt); }
  .display__grid i.on { background-color: var(--paper); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
