/* ==========================================================================
   Base: font-face, reset, element defaults, focus states, utilities
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter/Inter-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/inter/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora/Sora-Variable.woff2') format('woff2-variations'),
       url('/assets/fonts/sora/Sora-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

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

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

@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 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: page-fade-in var(--dur-slow) var(--ease-out);
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--lh-tight);
  color: var(--color-navy-900);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

/* ---- Focus states (WCAG AA) ---- */
:focus-visible {
  outline: 3px solid var(--color-blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

a:focus-visible, button:focus-visible {
  outline-offset: 3px;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-2xl);
}

@media (max-width: 767px) {
  .section { padding-block: var(--space-xl); }
}

.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--gradient-navy);
  color: var(--text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark-muted); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-heading);
  font-size: var(--fs-xsmall);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue-600);
  margin-bottom: var(--space-sm);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-blue-cyan);
  border-radius: var(--radius-pill);
}

.section--dark .eyebrow { color: var(--color-cyan-300); }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.rounded-lg { border-radius: var(--radius-lg); }

.container--narrow { max-width: 760px; }

.section--compact { padding-block: var(--space-xl); }
.section--tight-top { padding-top: 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-2xl);
}

.visually-hidden {
  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: var(--space-sm);
  top: -60px;
  background: var(--color-navy-900);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus { top: var(--space-sm); }

/* Prevent accidental text-selection highlighting on interactive UI chrome
   (buttons, nav, controls) when a mouse click-drag is meant to scroll or
   just interact with the page. Body copy, quotes and contact details are
   deliberately left out so that content stays copyable. */
.btn,
.navbar__links a,
.navbar__logo,
.navbar__toggle,
.mobile-menu__links a,
.mobile-menu__close,
.footer__logo,
.filter-chip,
.sector-badge,
.carousel__arrow,
.carousel__dot,
.industry-card__badge,
.project-card__tag,
.service-card__link {
  -webkit-user-select: none;
  user-select: none;
}
