/* ==========================================================================
   Modern reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body { min-height: 100vh; line-height: var(--lh-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

/* Global icon guard — no SVG may balloon to its intrinsic/default size.
   Context-specific sizes are set in components.css/modules.css. */
.ico {
  width: 1em; height: 1em;
  min-width: 1em; min-height: 1em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.125em;
}
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:where(h1, h2, h3, h4, h5, h6) { font-weight: 400; }
[hidden] { display: none !important; }

/* Accessibility helpers */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -120px;
  background: var(--graphite); color: var(--white);
  padding: 0.85rem 1.4rem; z-index: var(--z-modal); border-radius: var(--radius);
  transition: top var(--dur-fast) var(--ease); font-weight: 600; letter-spacing: 0.02em;
}
.skip-link:focus { top: calc(var(--gutter) - 0.5rem); }

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible, .hero :focus-visible { outline-color: var(--metallic); }

::selection { background: var(--emerald); color: var(--white); }
