/* ==========================================================================
   HYPER STEEL — BASE & GLOBAL STYLES (PURE-BLACK CANVASES)
   ========================================================================== */

/* --- Modern Architectural Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-black);
  color: var(--color-white);
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  color: var(--color-gray-muted);
  background-color: var(--color-black);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Lenis Recommended CSS for Smooth Scroll */
html.lenis,
html.lenis body {
  height: auto;
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- Dark Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-xs);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gray);
}

/* --- Text Selection --- */
::selection {
  background-color: var(--color-gold);
  color: var(--color-black);
}

/* --- Media Defaults --- */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

video {
  background-color: var(--color-surface);
}

/* --- Headings Hierarchy (Archivo, Bold, Architectural) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
}

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

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

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

p {
  margin-bottom: var(--space-4);
  color: var(--color-gray-muted);
}

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

strong, b {
  font-weight: 600;
  color: var(--color-white);
}

/* --- Links & Buttons Reset --- */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* --- Architectural Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.container--fluid {
  max-width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* --- Section Structural Spacing --- */
.section {
  position: relative;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  background-color: var(--color-black);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-header--center {
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: var(--text-h2);
  color: var(--color-white);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: var(--text-lead);
  color: var(--color-gray-muted);
  max-width: 42rem;
  line-height: 1.6;
}

.section-header--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* --- Eyebrow Label (Small Architectural Tag) --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--color-gold);
  margin-bottom: var(--space-3);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Screen Reader Only Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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