/* ==========================================================================
   base.css — design tokens, reset and typography

   The type scale and colours below are measured from the original site at a
   1440px viewport. Wix sized most text in "spx", a unit that scales with the
   viewport, so each token is expressed as a vw value that lands on the
   original's pixel size at 1440 and is clamped either side of it.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (self-hosted, no external requests)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-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: 'Sora';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/sora-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ---------------------------------------------------------------
     Sampled from the logo lockup in colors.png: a deep navy tile with a cyan
     square at its top-left corner. */
  --c-brand: #141056;        /* navy — dark surfaces, headings          */
  --c-brand-deep: #0e0a3d;   /* underlay behind darkened photography    */
  --c-brand-light: #1b1674;  /* one tone up, for panels under the bar   */
  --c-accent: #0f8cc9;       /* cyan — icons, rules, focus, large accents */
  --c-accent-text: #0c70a1;  /* cyan darkened to clear AA on white and on the tinted section */
  --c-accent-light: #339dd1; /* cyan lifted to clear AA on the light navy panel */

  /* Colour ------------------------------------------------------------- */
  --c-ink: #14142b;
  --c-ink-soft: #2e2e3a;
  --c-muted: #5c5c70;
  --c-surface: #ffffff;
  --c-surface-alt: #f1f2f7;  /* faint navy wash on alternating sections  */
  --c-inverse: #ffffff;
  --c-line: rgba(20, 16, 86, 0.16);
  --c-line-inverse: rgba(255, 255, 255, 0.35);
  /* Header bar: brand navy, slightly translucent so the blur still reads. */
  --c-header-scrolled: rgba(20, 16, 86, 0.94);

  /* Headings are navy on light ground and white over photography; each media
     section re-points this token rather than overriding colour per element. */
  --c-heading: var(--c-brand);

  /* Type --------------------------------------------------------------- */
  --font-display: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', sans-serif;

  /* A single ratio-based ramp. The display face stays Sora, everything else
     Helvetica, which is the type pairing the brand already used. */
  --fs-display: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem); /* hero headline     */
  --fs-h1: clamp(1.95rem, 1.25rem + 2.3vw, 3.25rem);    /* section headings  */
  --fs-h2: clamp(1.5rem, 1.1rem + 1.35vw, 2.25rem);     /* sub-headings      */
  --fs-h3: clamp(1.2rem, 1.05rem + 0.55vw, 1.5rem);     /* card titles       */
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);  /* intro paragraphs  */
  --fs-body: 1.0625rem;                                 /* running text      */
  --fs-small: 0.9375rem;                                /* secondary text    */
  --fs-nav: 1rem;                                       /* navigation        */
  --fs-micro: 0.875rem;                                 /* legal, captions   */
  --fs-eyebrow: 0.8125rem;                              /* section kickers   */
  --fs-wordmark: clamp(1.5rem, 1.05rem + 1.55vw, 2.5rem);

  --lh-tight: 1.05;
  --lh-heading: 1.18;
  --lh-body: 1.65;

  /* Space -----------------------------------------------------------------
     One rhythm used everywhere: --section-y between sections, --block between
     blocks inside a section, --stack between elements inside a block. */
  --gutter: clamp(1.25rem, 0.75rem + 3.5vw, 5.5rem);
  --section-y: clamp(4.5rem, 2.5rem + 5.5vw, 9rem);
  --block: clamp(2.25rem, 1.5rem + 2.4vw, 4rem);
  --stack: clamp(1rem, 0.8rem + 0.7vw, 1.5rem);
  --measure: 62ch;
  --measure-tight: 26ch;
  --max-width: 1320px;

  /* Misc --------------------------------------------------------------- */
  --radius-pill: 999px;
  --header-h: 4.0625rem;                  /* the original header is 65px tall */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor targets clear the fixed header. */
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

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

img,
video {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Typography primitives
   -------------------------------------------------------------------------- */
.t-display,
.t-h1,
.t-h2,
.t-h3 {
  color: var(--c-heading);
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
}

.t-h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: var(--lh-heading);
}

.t-h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.25;
}

.t-h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
}

.t-lead {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.45;
}

/* Small tracked-out kicker above a section heading. Cyan on light ground; over
   photography it falls back to translucent white, which reads better. */
.t-eyebrow {
  display: block;
  margin-bottom: var(--stack);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent-text);
}

/* Over any dark ground the light-ground cyan drops below AA, so the lifted
   variant takes over. .section--dark and .on-dark are covered as well as the
   photographic sections. */
.section--media .t-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section--dark .t-eyebrow,
.on-dark .t-eyebrow {
  color: var(--c-accent-light);
}

/* Paragraphs never run wider than a comfortable reading measure. */
.t-measure {
  max-width: var(--measure);
}

.t-balance {
  text-wrap: balance;
}

.t-small {
  font-size: var(--fs-small);
  line-height: var(--lh-body);
}

/* Vertical rhythm inside a block of prose. */
.stack > * + * {
  margin-top: var(--stack);
}

.stack-lg > * + * {
  margin-top: var(--block);
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-brand);
  color: var(--c-inverse);
  transform: translateY(-120%);
  transition: transform 0.2s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
