/* ==========================================================================
   V2 Base Reset, Typography, Layout & Accessibility
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface);
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--teal-600);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--navy-900);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 0.65rem;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--text-h1-page);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.2;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
  max-width: 66ch;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

li {
  margin-bottom: 0.4rem;
}

:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  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: -9999px;
  top: 0;
  z-index: 200;
  background: var(--navy-900);
  color: var(--surface);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.section {
  padding-block: var(--section-py);
}

.section--soft {
  background-color: var(--surface-soft);
}

.section--teal {
  background-color: var(--surface-teal);
}

.section--navy {
  background-color: var(--navy-950);
  color: var(--hero-sub);
}

.section--navy h2,
.section--navy h3 {
  color: var(--surface);
}

.section-header {
  margin-bottom: clamp(1.75rem, 3.5vw, 2.65rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.section-header--dark {
  border-bottom-color: rgba(216, 232, 240, 0.16);
}

.eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-600);
  line-height: 1.3;
}

.eyebrow--light {
  color: var(--cyan-400);
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 64ch;
}

.lead--light {
  color: var(--hero-sub);
}

/* 3-Color Factsheet Signature Accent Bar */
.accent-bar {
  height: 4px;
  width: 100%;
  display: block;
  background: linear-gradient(
    90deg,
    var(--teal-500) 0%,
    var(--teal-500) 38%,
    var(--cyan-400) 38%,
    var(--cyan-400) 58%,
    var(--gold-500) 58%,
    var(--gold-500) 68%,
    var(--navy-900) 68%,
    var(--navy-900) 100%
  );
}

/* Subtle Coordinate Grid Pattern for Dark Deep-Tech Surfaces */
.tech-grid-bg {
  background-image:
    linear-gradient(rgba(82, 199, 208, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 199, 208, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
