/* VaultMaster — Base / Reset */

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

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

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button, input { font-family: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

ul, ol { padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-headline);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-hero);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h3 {
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

@media (max-width: 767px) {
  h1 { font-size: var(--text-hero-mobile); }
  h2 { font-size: var(--text-h2-mobile); }
}

p { color: var(--text-secondary); }

.eyebrow {
  display: inline-block;
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-headline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  letter-spacing: 0.02em;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.container-wide {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* Visually-hidden but accessible */
.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;
}

/* Focus visibility — Section 10.5 */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(var(--primary-rgb), 0.25);
  color: var(--text-primary);
}

section {
  position: relative;
  padding: 80px 0;
}

/* Scroll-reveal base state (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-reveal) var(--ease-reveal),
              transform var(--duration-reveal) var(--ease-reveal);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 50ms linear; }
}

/* Atmospheric background glow — used sparingly per Section 2.10 */
.glow-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-bg::before,
.glow-bg::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
}
.glow-bg::before {
  top: -20%;
  left: -15%;
  background: var(--gradient-stop-1);
}
.glow-bg::after {
  bottom: -25%;
  right: -15%;
  background: var(--gradient-stop-2);
}
