/* ============================================================
   BASE — reset, primitives, a11y, motion guards
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; border-radius: 0; } /* CBRE = sharp corners */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font-calibre);
  font-size: var(--fs-body);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--dark-green);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;            /* the app is a fixed canvas, not a scroll page */
  overscroll-behavior: none;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-financier);
  font-weight: 500;
  line-height: var(--leading-tight);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

/* ---- focus ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 3px;
}
/* programmatic focus targets (scene headings) move focus for screen readers
   but must not paint a ring — only real interactive controls show focus. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

/* ---- selection ---- */
::selection { background: var(--accent-green); color: var(--dark-green); }

/* ============================================================
   ACCESSIBILITY UTILITIES
   ============================================================ */
.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: fixed; top: 0; left: 0; z-index: var(--z-overlay);
  transform: translateY(-130%);
  background: var(--accent-green); color: var(--dark-green);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-cbre);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   REDUCED MOTION — hard guard (JS also branches on this)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
