/* Inputs: Static FINCHIP markup and theme tokens.
 * Outputs: ambient-grid presentation and responsive states.
 * Role: Preserves the supplied Finch visual system for the independent homepage. */
/* Quiet square-dot canvas shared by every page section. */
#ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
main,
.site-footer { position: relative; z-index: 1; }
.hero-section,
.protocol-section,
.about-section,
.site-footer { background: transparent; }
@media print {
  #ambient-grid { display: none; }
  .hero-section,
  .protocol-section,
  .about-section,
  .site-footer { background: #fff; }
}

.motion-toggle { position:fixed;right:16px;bottom:16px;z-index:40;min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:24px;background:var(--surface, #fff);color:var(--ink, #171719);font:500 12px 'Manrope',sans-serif;cursor:pointer; }
.motion-toggle:focus-visible { outline:2px solid #0d9aff;outline-offset:3px; }
html[data-theme="dark"] .motion-toggle { background:#171719;color:#f5f5f5; }
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after { animation-play-state:paused !important; }
@media (prefers-reduced-motion:reduce) { .motion-toggle { display:none; } }

/* Match Finch: invert the monochrome grid while compensating brand colors in the renderer. */
html[data-theme="dark"] #ambient-grid { filter:invert(1); }
@media (max-width:759px) {
  .hero-layout { display:flex;flex-direction:column-reverse;align-items:stretch; }
  .hero-visual-slot { min-height:min(48svh,420px); }
  .hero-official-bird { height:0; }
}
