/* ==========================================================================
   VANTIX SYSTEMS — base.css
   Design tokens, font loading, reset, typography and layout primitives.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --ink: #0a1424;          /* footer, deepest surfaces, body text */
  --navy: #101f38;         /* Midnight Navy — hero, dark sections */
  --blue-deep: #183b65;    /* Deep Blue — secondary dark panels */
  --blue: #3678d4;         /* Primary Blue — accents, large text */
  --blue-600: #2e6cc6;     /* Primary Blue, darkened for AA contrast with white text */
  --cyan: #2fa8e6;         /* Signal Cyan — dark backgrounds only */
  --bg: #f3f6fa;           /* Light Background */
  --white: #ffffff;
  --slate: #5b6b80;        /* secondary text */
  --line: #dde5ef;         /* borders and dividers */
  --line-dark: rgba(255, 255, 255, 0.14);

  /* Typography */
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.15rem + 1.4vw, 2.15rem);
  --step-3: clamp(1.95rem, 1.35rem + 2.8vw, 3.4rem);
  --step-4: clamp(2.35rem, 1.3rem + 4.8vw, 4.9rem);

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: clamp(80rem, 94vw, 150rem); /* grows on wide screens and when zoomed out */
  --header-h: 4.75rem;
  --section-y: clamp(5rem, 10vw, 9.5rem);
  --radius: 6px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

/* Lenis (smooth scroll) required rules */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* Locks scrolling while the preloader plays */
html.is-loading {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

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

button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.on-dark :focus-visible,
.section--dark :focus-visible {
  outline-color: var(--cyan);
}

::selection {
  background: var(--blue);
  color: var(--white);
}

/* Layout primitives */
.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.section--light {
  background: var(--bg);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Reduced motion: remove all transitions and smooth behaviour */
@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;
  }
}