/* ==========================================================================
   VIA MAROC — « BÉTON BRUT & HORIZON D'ASPHALTE » DESIGN TOKENS
   Aesthetic : Brutalist Civil Engineering Monograph & Structural Precision
   Type      : Archivo (Monumental Neo-Grotesk Display) + DM Sans (Editorial)
   Geometry  : Strict 0px Formwork Angles — Zero Pills, Zero Serif Italics
   ========================================================================== */

:root {
  /* ---- Raw Mineral Concrete & Architectural Paper Surfaces ---- */
  --concrete: #ECEBE6;          /* Poured mineral concrete daylight */
  --concrete-2: #E1DFD8;        /* Formwork tonal step & consultation band */
  --slab: #D4D1C7;              /* Heavy aggregate architectural border surface */
  --paper: #F7F6F2;             /* Architectural drafting sheet */

  /* ---- Rolled Asphalt & Carbon Structural Surfaces ---- */
  --asphalt: #111110;           /* Deep rolled asphalt — hero, preloader, footer */
  --asphalt-2: #1B1B19;         /* Elevated dark structural plate */
  --asphalt-3: #262522;         /* Subtle dark grid block */

  /* ---- Ink Hierarchy ---- */
  --ink: #111110;
  --muted: #4E4D47;             /* High-contrast editorial neutral (7.2:1 on concrete) */
  --subtle: #6E6C64;            /* Quiet architectural datum index (4.6:1 on paper) */

  --ink-light: #F7F6F2;
  --ink-light-muted: rgba(247, 246, 242, 0.78);
  --ink-light-dim: rgba(247, 246, 242, 0.50);

  /* ---- Architectural 1px Drafting Hairlines ---- */
  --hair: rgba(17, 17, 16, 0.13);
  --hair-strong: rgba(17, 17, 16, 0.28);
  --hair-light: rgba(247, 246, 242, 0.15);
  --hair-light-strong: rgba(247, 246, 242, 0.30);

  /* ---- Authentic Via Maroc Signal Yellow & Earth Accents (WCAG Bifurcated) ---- */
  --signal: #FED004;            /* Exact official Via Maroc new logo yellow (13.7:1 with #111110) */
  --signal-hover: #E5BA00;
  --signal-ink: #7A5E00;        /* Accessible deep ochre on light concrete/paper (5.5:1 AA) */
  --earth: #9A4426;             /* Moroccan Gharb red-earth structural cross-section accent */

  /* ---- Structural Typography Stack ---- */
  --f-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --f-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* ---- Monumental Scale (Mobile-First Fluid Clamps) ---- */
  --t-hero: clamp(2.15rem, 5.55vw, 5.55rem);
  --t-display: clamp(2.05rem, 5.1vw, 4.95rem);
  --t-h2: clamp(1.7rem, 3.65vw, 3.45rem);
  --t-statement: clamp(1.36rem, 3.2vw, 3.1rem);
  --t-body: clamp(0.94rem, 1.02vw, 1.05rem);

  /* ---- Spatial Rhythm & 0px Formwork Geometry ---- */
  --gutter: clamp(1.15rem, 3.6vw, 3.5rem);
  --wrap: min(1440px, 100% - (var(--gutter) * 2));
  --hdr: 76px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.58;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: var(--asphalt) var(--concrete-2);
}

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--concrete-2); }
::-webkit-scrollbar-thumb { background: var(--asphalt); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--signal-ink); }

img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
}

.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.num {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
}

.meta-label {
  font-family: var(--f-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.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;
}

@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;
  }
}
