/* AI Lab site. Tokens from _config/brand.md (never yellow). */
:root {
  --bg: #09090B;
  --card: #111114;
  --line: rgba(245, 245, 247, .09);
  --line-2: rgba(245, 245, 247, .16);
  --ink: #F5F5F7;
  --muted: #A1A1AA;
  --dim: #71717A;
  --green: #00E86A;
  --green-ink: #04140B;
  --green-soft: rgba(0, 232, 106, .12);
  --display: 'Archivo', 'Instrument Sans', system-ui, sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--green); color: var(--green-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 22px; border: 1px solid var(--green); border-radius: 10px; cursor: pointer;
  background: var(--green); color: var(--green-ink); font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: rgba(17, 17, 20, .7); color: var(--ink); border-color: var(--line-2); }
.btn .yt { width: 20px; height: 20px; fill: currentColor; }
.more { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 150ms ease; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(9, 9, 11, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.01em; }
.logo img { border-radius: 50%; }
.logo b { color: var(--green); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 150ms ease; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg, .hero-bg > div { position: absolute; inset: 0; }
.glow { background: radial-gradient(60% 70% at 50% 0%, #0F2419 0%, #0A120E 50%, var(--bg) 100%); }
.grid {
  background-image: linear-gradient(rgba(245,245,247,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245,245,247,.05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  mask-image: radial-gradient(70% 80% at 50% 10%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 50% 10%, #000 30%, transparent 100%);
}
.hero-in { position: relative; padding: 72px 0 64px; text-align: center; }
.hero-logo { margin: 0 auto 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 232, 106, .35), 0 0 48px rgba(0, 232, 106, .28); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
h1 { margin: 16px auto 0; font: 900 clamp(52px, 9vw, 96px)/1 var(--display); letter-spacing: -.035em; }
h1 em, .nl h2 em { font-style: normal; color: var(--green); text-shadow: 0 0 40px rgba(0, 232, 106, .35); }
.lede { margin: 18px auto 0; max-width: 52ch; color: var(--muted); font-size: 19px; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* videos */
.videos { padding: 48px 0 64px; scroll-margin-top: 72px; }
.bar { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.bar h2 { font: 800 26px/1.2 var(--display); letter-spacing: -.015em; }
.vgrid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.vcard { animation: in 320ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--card); border: 1px solid var(--line); transition: border-color 180ms ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.vtitle { font: 700 16.5px/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard time { font: 400 13px/1 var(--mono); color: var(--dim); }
.skel { aspect-ratio: 16 / 9; border-radius: 12px; background: linear-gradient(100deg, var(--card) 40%, #17171B 50%, var(--card) 60%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-t { font: 800 21px/1.3 var(--display); color: var(--ink); margin-bottom: 6px; }
.empty-cta { margin-top: 22px; }

/* newsletter section */
.news { border-top: 1px solid var(--line); background: radial-gradient(50% 120% at 85% 50%, #0E1F15 0%, var(--bg) 70%); }
.news-in { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 40px; padding: 64px 0; }
.news h2 { margin-top: 14px; font: 900 clamp(32px, 4.4vw, 48px)/1.05 var(--display); letter-spacing: -.025em; }
.news .lede { margin: 14px 0 0; }
.news-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; justify-self: end; }

/* footer */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 28px 0 36px; font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); text-decoration: none; }

/* newsletter pop-up (assets/newsletter.js) */
.nl { margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); width: 460px; max-width: calc(100% - 32px); overflow: visible; }
.nl::backdrop { background: rgba(3, 3, 4, .74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 200ms ease; }
.nl.on::backdrop { opacity: 1; }
.nl-card {
  position: relative; padding: 36px 28px 28px; border-radius: 18px; text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, #10241A 0%, var(--card) 70%); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 232, 106, .06);
  opacity: 0; transform: translateY(8px) scale(0.96); transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out);
}
.nl.on .nl-card { opacity: 1; transform: none; }
.nl.closing .nl-card { transition-duration: 140ms; }
.nl-x { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--dim); cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.nl-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nl-logo { margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 232, 106, .35), 0 0 28px rgba(0, 232, 106, .3); }
.nl h2 { font: 900 clamp(26px, 6.4vw, 31px)/1.1 var(--display); letter-spacing: -.02em; }
.nl-sub { margin: 10px auto 22px; max-width: 34ch; color: var(--muted); }
.nl-slot { min-height: 48px; }
/* color-scheme: normal keeps the frame transparent on our dark page (a light document in a dark frame gets a white backdrop) */
.nl-frame { display: block; width: 100%; height: 110px; border: 0; background: transparent; color-scheme: normal; }
.nl-fallback { width: 100%; }
.nl-card.done .nl-slot, .nl-card.done .nl-sub { display: none; }
.nl-thanks { margin-top: 18px; padding: 18px 16px; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(0, 232, 106, .3); animation: in 280ms var(--ease-out) both; }
.nl-thanks-t { font: 800 19px/1.3 var(--display); color: var(--green); }
.nl-thanks p:not(.nl-thanks-t) { margin-top: 6px; color: var(--muted); }
.nl-close { margin-top: 16px; width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .nav a:hover, .foot nav a:hover, .more:hover { color: var(--ink); }
  .btn:hover { box-shadow: 0 0 0 4px rgba(0, 232, 106, .16), 0 0 28px rgba(0, 232, 106, .3); }
  .btn-ghost:hover { border-color: rgba(0, 232, 106, .55); box-shadow: none; }
  .vcard a:hover .thumb { border-color: rgba(0, 232, 106, .4); }
  .vcard a:hover .thumb img { transform: scale(1.03); }
  .nl-x:hover { color: var(--ink); background: rgba(245, 245, 247, .06); }
}

@media (max-width: 860px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav a { display: none; }
  .hero-in { padding: 48px 0 44px; }
  .hero-logo { width: 96px; height: 96px; }
  .lede { font-size: 17px; }
  .cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
  .vgrid { grid-template-columns: 1fr; }
  .news-in { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .news-cta { justify-self: stretch; align-items: stretch; }
  .news-cta .more { text-align: center; }
  .nl-card { padding: 32px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vcard, .skel { animation: none; }
  .nl-card { transform: none; }
  .thumb img { transition: none; }
}
