/* Fovea Field — a small interactive cone-mosaic demo at the foot of the start
   page. Integrated into the site: heading, lead and button use the site tokens
   and follow the light/dark theme. Only the three canvases stay dark — they are
   retinal images. Pairs with fovea.js and the two vendored libs. */

.fovea {
  max-width: var(--wrap);
  margin: var(--s-6) auto 0;
  padding-inline: var(--s-3);
}
.fovea *, .fovea *::before, .fovea *::after { box-sizing: border-box; }

.fovea__title {
  font-size: var(--fs-4); line-height: 1.1; margin: 0 0 var(--s-3);
  color: var(--c-heading); font-weight: 700; letter-spacing: -.01em; text-wrap: balance;
}
/* explanatory text — hidden until the viewer has drawn, started eye movements, and it has moved a little */
.fovea__explain {
  margin: var(--s-3) 0 0; color: var(--c-muted); font-size: var(--fs-1); line-height: 1.55; max-width: 72ch;
  opacity: 0; transform: translateY(4px); transition: opacity .6s ease, transform .6s ease;
}
.fovea__explain.is-shown { opacity: 1; transform: none; }

.fovea__panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
@media (max-width: 680px) { .fovea__panels { gap: var(--s-1); } }
.fovea__panel { min-width: 0; }
.fovea__stage {
  position: relative; border-radius: var(--radius-s); overflow: hidden;
  border: 1px solid var(--c-line); background: #060608; aspect-ratio: 1 / 1;
}
.fovea__stage canvas { display: block; width: 100%; height: 100%; }
.fovea__eye { touch-action: none; cursor: none; }

.fovea__controls { margin-top: var(--s-2); display: flex; gap: var(--s-1); flex-wrap: wrap; }
.fovea__controls button {
  font: inherit; font-size: var(--fs-1); line-height: 1; cursor: pointer;
  color: var(--c-text); background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--radius-s); padding: 8px 14px;
  transition: border-color .12s, background .12s, color .12s;
}
.fovea__controls button:hover { border-color: var(--c-accent-2); color: var(--c-link); }
.fovea__controls button:active { background: var(--c-line); }
.fovea__move[aria-pressed="true"] { border-color: var(--c-accent); color: var(--c-accent); background: transparent; }
