/* BASE – reset, typography, page background, accessibility helpers. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--slate-900);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(13, 176, 181, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(2, 108, 182, .10), transparent 60%),
    var(--page-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: var(--brand-600); transition: color .2s; }
a:hover { color: var(--brand-700); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 800; letter-spacing: var(--ls-head); line-height: 1.1; color: var(--slate-900); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
strong, b { font-weight: 700; }
[hidden] { display: none !important; }
table { border-collapse: collapse; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.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: 12px; top: -100px; z-index: 1000;
  padding: 12px 18px; border-radius: var(--radius-md); background: var(--white); color: var(--navy-900); font-weight: 700;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 4px; }
.site-main:focus { outline: none; }

/* photo covering its positioned parent (see bg_picture()) */
.bg-media { position: absolute; inset: 0; display: block; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-media__img { width: 100%; height: 100%; object-fit: cover; }

/* reveal-on-scroll (data-anim) – visible without JS and with reduced motion */
.js-anim [data-anim] { opacity: 0; }
.js-anim [data-anim].is-in { opacity: 1; animation: th-rise .6s var(--ease) both; }
@keyframes th-rise { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: none; } }   /* translate (not transform): hover transforms keep working */
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-anim] { opacity: 1; }
  .js-anim [data-anim].is-in { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .js-anim [data-anim] { opacity: 1 !important; } }
