/* The home page (index.html): the Avery mark in particles, one line, two choices. Dark; the header, footer, type and
   sheen come from site.css. The canvases are drawn by js/lab.js. */

html, body { margin: 0; background: #05060a; }
.lab {
  --lab-ink: #f4f4f5; --lab-muted: #8e8e99; --lab-blue: #3b93ff; --lab-lime: #c4f04a;
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--lab-ink);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 70% 45%, rgba(59, 147, 255, .14), transparent 40%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px);
  background-size: 100% 100%, 28px 28px;
}
/* The canvases cover the hero and scroll with it, so the mark stays where the layout put it on a phone. */
.lab canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#lab-gl { z-index: 0; } #lab-fx { z-index: 1; }
.lab-rushing #lab-gl { z-index: 4; }   /* the shape rushes over the pressed button */
.lab-grain {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.lab-main, .lab .site-foot { position: relative; z-index: 2; }
.lab .site-head { position: relative; z-index: 5; }   /* above the headline, so the phone menu opens over it */
.lab-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 40px; box-sizing: border-box; }
.lab-main { flex: 1; display: flex; align-items: center; }
.lab-copy { max-width: 560px; padding: 48px 0 88px; }
.lab h1 {
  margin: 0 0 36px; font-family: inherit; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.03; font-weight: 500;
  letter-spacing: -0.04em; text-wrap: balance; color: var(--lab-ink);
}
.lab-choices { display: grid; gap: 12px; }
.lab-choice {
  display: block; padding: 20px 22px; border-radius: 16px; color: var(--lab-ink); text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .10);
  background: radial-gradient(280px circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, .08), transparent 60%), rgba(12, 14, 20, .55);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.lab-choice:hover, .lab-choice:focus-visible, .lab-choice.on { border-color: rgba(255, 255, 255, .28); transform: translateY(-2px); outline: none; }
.lab-choice.adv.on { box-shadow: 0 0 0 1px rgba(59, 147, 255, .45), 0 10px 40px rgba(59, 147, 255, .12); }
.lab-choice.spr.on { box-shadow: 0 0 0 1px rgba(196, 240, 74, .35), 0 10px 40px rgba(196, 240, 74, .08); }
.lab-choice strong { display: flex; justify-content: space-between; align-items: center; font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.lab-choice.adv strong { color: var(--lab-blue); }
.lab-choice.spr strong { color: var(--lab-lime); }
.lab-sub { display: block; color: var(--lab-muted); font-size: 15px; line-height: 1.45; }
.lab-arrow { color: var(--lab-ink); opacity: .6; transition: transform .25s ease, opacity .25s ease; }
.lab-choice:hover .lab-arrow, .lab-choice.on .lab-arrow { transform: translateX(4px); opacity: 1; }
.lab-copy > * { animation: lab-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.lab-copy > h1 { animation-delay: .9s; }
.lab-copy > .lab-choices { animation-delay: 1.15s; }
@keyframes lab-rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.lab-fallback { display: none; }
.lab-no-gl canvas { display: none; }
.lab-no-gl .lab-fallback { display: block; position: absolute; z-index: 0; right: 12%; top: 50%; width: min(28vw, 420px); height: auto; transform: translateY(-50%); fill: var(--lab-ink); opacity: .9; }
#lab-dbg { position: fixed; z-index: 4; right: 12px; top: 10px; font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--lab-lime); background: rgba(0, 0, 0, .6); padding: 4px 8px; border-radius: 6px; display: none; }
@media (max-width: 1080px) { .lab-copy { max-width: 470px; } }
@media (max-width: 760px) {
  .lab-wrap { padding-inline: 20px; }
  .lab-main { align-items: flex-end; padding-top: min(64vw, 280px); }   /* room for the mark above the headline */
  .lab-copy { padding: 0 0 36px; }
  .lab h1 { font-size: clamp(30px, 8.7vw, 36px); margin-bottom: 24px; }
  .lab { background-image:
    radial-gradient(circle at 60% 24%, rgba(59, 147, 255, .16), transparent 45%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.3px); background-size: 100% 100%, 24px 24px; }
  .lab-no-gl .lab-fallback { right: 16%; top: 84px; width: 44vw; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-copy > * { animation: none; }
  .lab-choice, .lab-arrow { transition: none; }
}
