/* =========================================================
   Base / reset / primitives
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* `clip` prevents horizontal overflow without creating a scroll
   container — critical so that `position: sticky` inside the intro
   keeps working against the window scroll. */
html, body { overflow-x: clip; }
body { min-height: 100vh; }

::selection { background: var(--green); color: #000; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { user-select: none; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline: none; }
:focus-visible { outline: 1px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  color: var(--text);
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.05; }

.accent { color: var(--green); }
.accent-blue { color: var(--blue); }

/* ---------- SR-only utility ----------
   Visually hides content while keeping it readable by screen readers
   AND search-engine crawlers. Used for the SEO semantic skeleton that
   mirrors the SVG-locked design copy so Google/Bing can index every
   service description. The :focus variant lets keyboard users surface
   skip-links when they Tab into them. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.sr-only--focusable:focus,
.sr-only--focusable:focus-visible {
  position: fixed !important;
  top: 12px !important;
  left: 12px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  z-index: 9999 !important;
  background: var(--green, #1a9963);
  color: #000;
  border-radius: 8px;
  font-weight: 600;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow i {
  width: 22px; height: 1px; background: currentColor; display: inline-block; opacity: 0.6;
}
.eyebrow.small { font-size: 10px; letter-spacing: 0.28em; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform var(--dur-sm) var(--ease), background var(--dur-sm) var(--ease), color var(--dur-sm) var(--ease), border-color var(--dur-sm) var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: #fff;
  color: #000;
  border: 1px solid #fff;
}
.btn-primary:hover { background: var(--green); border-color: var(--green); color: #000; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-3);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.04); }

/* =========================================================
   Section heads
   ========================================================= */
.section__head { max-width: 1100px; margin: 0 auto 64px; padding: 0 var(--page-pad); }
.section__head .eyebrow { margin-bottom: 24px; }
.section__head h2 { margin-bottom: 18px; }
.section__head p { color: var(--text-muted); max-width: 620px; font-size: clamp(15px, 1.1vw, 17px); }

/* Chip rows (shared across details) */
.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}
.chip-row li {
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
}

/* CTA row */
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================
   Page scroll-progress bar
   ========================================================= */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--blue));
  z-index: 200;
  pointer-events: none;
  box-shadow: 0 0 10px var(--green-glow);
  will-change: width;
}

/* =========================================================
   Ambient canvas background
   ========================================================= */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

/* =========================================================
   Intro gate — hide site until the intro sequence is done
   ========================================================= */
body.intro-active > main,
body.intro-active > nav.topnav,
body.intro-active > footer,
body.intro-active > #ambient-canvas,
body.intro-active > .progress-bar {
  visibility: hidden;
}
body.intro-done > nav.topnav,
body.intro-done > main,
body.intro-done > footer,
body.intro-done > #ambient-canvas {
  animation: siteReveal var(--dur-lg) var(--ease) forwards;
}
@keyframes siteReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
