/* ============================================================================
   Fonts — self-hosted (latin subsets). Loading these locally removes the
   render-blocking request to fonts.googleapis.com, which was the main reason
   first paint waited ~2s on a slow connection.
   ========================================================================== */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/geistmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================================
   CODENdSTUDIO — design system
   One source of truth: colour roles, type scale, spacing, radii, motion.
   No gradients. No glass. One accent.
   ========================================================================== */
:root {
  /* colour roles */
  --bg: #F2F4F6;
  --ink: #101820;
  --blue: #0789D4;        /* brand accent — large text, graphics, 3.44:1 on bg */
  --blue-text: #0670AD;   /* accessible step — small text, white-on-fill, 5.35:1 */
  --blue-deep: #045C8F;
  --blue-soft: #DCEBF6;
  --mute: #64717B;
  --line: #D8DEE3;
  --line-soft: #E6EBEF;
  --white: #FFFFFF;
  --dark: #080C0E;
  --dark-2: #12181C;

  /* type */
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* spacing scale (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 9vw, 148px);

  /* radii — deliberately restrained, no pill-heavy UI */
  --r1: 2px;
  --r2: 4px;
  --r3: 8px;

  --ease: cubic-bezier(.22, .68, .12, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; }

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

/* ---------- layout ---------- */
.cs-wrap { max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }
.cs-section { padding-block: var(--section); }
.cs-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- type atoms ---------- */
.cs-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}
.cs-label--blue { color: var(--blue-text); }

.cs-h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: .94;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cs-h2 em { font-style: normal; color: var(--blue); }

.cs-lede {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.6;
  color: var(--mute);
  max-width: 46ch;
}
.cs-lede strong { color: var(--ink); font-weight: 600; }

/* masked line for headline reveals */
.cs-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.cs-mask > span { display: block; will-change: transform; }

/* ---------- buttons ---------- */
.cs-btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 13px 22px;
  font-size: 14px; font-weight: 700; letter-spacing: -.005em;
  border-radius: var(--r2);
  background: var(--blue-text); color: #fff;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cs-btn:hover, .cs-btn:focus-visible { background: var(--blue-deep); }
.cs-btn--ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.cs-btn--ghost:hover, .cs-btn--ghost:focus-visible {
  background: var(--ink); color: #fff; box-shadow: none;
}
.cs-btn--onDark { background: #fff; color: var(--ink); }
.cs-btn--onDark:hover { background: var(--blue-soft); color: var(--ink); }

/* arrow that slides on hover — used on links and buttons */
.cs-arrow { display: inline-block; transition: transform .3s var(--ease); }
.cs-btn:hover .cs-arrow, a:hover .cs-arrow { transform: translateX(4px); }

/* ---------- reduced motion: everything resolves to its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-cs-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .cs-mask > span { transform: none !important; }
}
