/* ==========================================================================
   GIMV GLOBAL — global.css
   Design tokens, reset, typography, layout primitives
   ========================================================================== */

:root {
  /* --- Brand palette --- */
  --gimv-navy:        #071A2D;
  --gimv-deep-blue:   #0B2A45;
  --gimv-black:       #05090D;
  --gimv-white:       #FFFFFF;
  --gimv-soft:        #F4F6F5;
  --gimv-action:      #1B5CC8;   /* primary action. 6.16:1 with white, both ways */
  --gimv-action-deep: #12448F;   /* hover / pressed */
  --gimv-accent:      #4DA3FF;   /* eyebrows, markers, links on dark. 6.70:1 on navy */

  /* Legacy aliases — the whole system referenced "green" tokens. Keeping the
     names mapped to the blue scale means every component follows the theme
     without a site-wide find-and-replace. */
  --gimv-green:       var(--gimv-action);
  --gimv-deep-green:  var(--gimv-action-deep);

  /* --- Derived surfaces --- */
  --surface:          var(--gimv-white);
  --surface-soft:     var(--gimv-soft);
  --surface-navy:     var(--gimv-navy);
  --surface-ink:      var(--gimv-black);

  /* --- Text --- */
  --text:             #0C1720;
  --text-muted:       #566674;
  --text-faint:       #7C8B98;   /* AA large text: 3.50:1 on white */
  --text-on-dark:     #FFFFFF;
  --text-on-dark-dim: rgba(255,255,255,.66);
  --text-on-dark-faint: rgba(255,255,255,.42);

  /* --- Lines --- */
  --line:             #E2E7E9;
  --line-strong:      #C9D2D6;
  --line-dark:        rgba(255,255,255,.14);
  --line-dark-strong: rgba(255,255,255,.28);

  /* --- Type --- */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 5.6vw, 4.65rem);
  --fs-h1:      clamp(2.25rem, 4.6vw, 3.75rem);
  --fs-h2:      clamp(1.85rem, 3.4vw, 2.9rem);
  --fs-h3:      clamp(1.25rem, 1.7vw, 1.55rem);
  --fs-h4:      clamp(1.05rem, 1.25vw, 1.2rem);
  --fs-lede:    clamp(1.02rem, 1.25vw, 1.2rem);
  --fs-body:    1rem;
  --fs-small:   .875rem;
  --fs-micro:   .72rem;

  /* --- Layout --- */
  --container:    1320px;
  --container-narrow: 940px;
  --gutter:       clamp(20px, 4vw, 56px);
  --section-y:    clamp(72px, 9vw, 136px);
  --section-y-sm: clamp(56px, 6vw, 88px);
  --nav-h:        76px;

  --radius:    4px;
  --radius-lg: 8px;

  --ease:       cubic-bezier(.22,.61,.36,1);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --dur:        .45s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

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

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

::selection { background: var(--gimv-green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gimv-green);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible,
.section--navy :focus-visible,
.section--ink :focus-visible { outline-color: var(--gimv-accent); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gimv-navy); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: var(--fs-small); transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: var(--section-y-sm); }
.section--soft { background: var(--surface-soft); }
.section--navy { background: var(--surface-navy); color: var(--text-on-dark); }
.section--ink  { background: var(--surface-ink);  color: var(--text-on-dark); }
.section--green{ background: var(--gimv-deep-green); color: var(--text-on-dark); }

.section--navy p, .section--ink p, .section--green p { color: var(--text-on-dark-dim); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--navy .rule, .section--ink .rule, .on-dark .rule { background: var(--line-dark); }

/* ==========================================================================
   Typography components
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gimv-green);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--navy .eyebrow,
.section--ink .eyebrow,
.on-dark .eyebrow { color: var(--gimv-accent); }

.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); letter-spacing: -.012em; }
.h4 { font-size: var(--fs-h4); letter-spacing: -.008em; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 56ch;
}
.section--navy .lede, .section--ink .lede, .on-dark .lede { color: var(--text-on-dark-dim); }

.body-sm { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.66; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 68px); }
.section-head .lede { margin-top: 22px; }

.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.section-head--split .lede { margin-top: 0; padding-bottom: 6px; }

.measure { max-width: 62ch; }
