/* ==========================================================================
   SPG TRADE — Base Styles & Global Resets
   Editorial Swiss Revival Baseline
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

/* Typography Hierarchy — World-Class Modern 2026 Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-h1);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h3, .h3 {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1.25em;
  max-width: 65ch;
}

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

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

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

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

/* Monospace Metadata */
.mono {
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

/* Layout Utilities */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  width: 100%;
  box-sizing: border-box;
}

/* Universal Grid & Flex containment against mobile blowout */
.wrap > *,
.hero__grid > *,
.split-editorial > *,
.ind-layout > *,
.ind-sec__grid > *,
.quote-layout > *,
.row > *,
.phero__grid > *,
.why-grid > *,
.qual-grid > *,
.gal-grid > *,
.apps-grid > *,
.prod-related__grid > * {
  min-width: 0;
  max-width: 100%;
}

.sec {
  padding-block: var(--sec);
  position: relative;
}

.sec--pale {
  background-color: var(--pale);
}

.sec--facet {
  clip-path: polygon(0 0, 100% 2.5vw, 100% 100%, 0 calc(100% - 2.5vw));
  margin-block: -2vw;
  padding-block: calc(var(--sec) + 3vw);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-family: var(--f-mono);
  font-size: var(--t-sm);
  text-decoration: none;
  border-radius: var(--r);
}

.skip:focus {
  left: 1.5rem;
}

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

[hidden] {
  display: none !important;
}

/* Prefers Reduced Motion Baseline */
@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;
  }
  .line__inner {
    transform: none !important;
  }
  .hero__crystal-frame {
    clip-path: none !important;
    animation: none !important;
  }
  .route-path {
    stroke-dashoffset: 0 !important;
  }
}
