/* =====================================================================
   Stix Sites - design system
   Tokens, type, the signature glass capsule, glass panels and the nav.
   Section layouts live in sections.css.
   ===================================================================== */

:root {
  /* colour */
  --black: #030711;
  --navy: #061326;
  --navy-2: #0a1d38;
  --glass-blue: #102d50;
  --blue: #168bff;
  --cyan: #45c7ff;
  --white: #f7faff;
  --muted: #a8b8cc;
  --blue-rgb: 22 139 255;
  --cyan-rgb: 69 199 255;

  /* type */
  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-label: "Space Grotesk", ui-monospace, "Segoe UI", Arial, sans-serif;

  --fs-h1: clamp(2.6rem, 1.4rem + 4.2vw, 4.75rem);
  --fs-h2: clamp(2.15rem, 1.4rem + 2.3vw, 3.5rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .4vw, 1.6rem);
  --fs-lead: clamp(1.1rem, 1rem + .45vw, 1.45rem);
  --fs-body: clamp(1rem, .96rem + .14vw, 1.0625rem);

  /* shape and motion */
  --r-card: 26px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-hover: 320ms;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 var(--fs-body)/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-head); color: var(--white); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.08; letter-spacing: -.034em; }

/* Brushed-silver display type: bright at the top, cooling to blue-grey */
.hero__copy h1, .sec__head h2 {
  padding-bottom: .08em; /* room for descenders inside the clipped gradient */
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 42%, #a6bfdf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (forced-colors: active) {
  .hero__copy h1, .sec__head h2 { background: none; color: CanvasText; }
}
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.lead { font: 500 var(--fs-lead)/1.45 var(--font-head); color: #dbe6f5; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* Small uppercase label (Space Grotesk) */
.label {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font: 500 .78rem/1 var(--font-label);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
@media (max-width: 420px) { .label { gap: .55em; font-size: .7rem; letter-spacing: .14em; } }
.label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--cyan-rgb) / 0), var(--cyan));
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--black);
  font: 600 .95rem var(--font-head);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 6px; }

/* =====================================================================
   Signature glass capsule
   One geometry everywhere: text on the left, a small round glass arrow
   inset on the right. Primary = brighter blue glass, default = dark glass.
   ===================================================================== */
.cap {
  /* light, see-through glass: thin tint, bright rim, light pooling at the base */
  /* white liquid glass: milky-clear body, bright white rim all round */
  /* almost clear: the bevel and inner glow carry the shape, not a milky fill */
  --rim-a: rgb(255 255 255 / .55);
  --rim-b: rgb(255 255 255 / .18);
  --rim-c: rgb(255 255 255 / .3);
  --fill-a: rgb(255 255 255 / .12);
  --fill-b: rgb(255 255 255 / .04);
  --ink: var(--white);
  --halo: .32;
  --lit: 0;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 56px;
  max-width: 100%;
  padding: .55rem .5rem .55rem 1.5rem;
  /* rim lives on the border itself; a border-box gradient would show through the clear body */
  border: 1px solid var(--rim-b);
  border-top-color: var(--rim-a);
  border-bottom-color: var(--rim-c);
  border-radius: var(--r-pill);
  background:
    /* light under the pointer (main.js sets --mx/--my, .is-lit raises --lit) */
    radial-gradient(130px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / calc(var(--lit) * .26)), rgb(255 255 255 / 0) 70%) padding-box,
    /* top highlight */
    linear-gradient(180deg, rgb(255 255 255 / .22) 0%, rgb(255 255 255 / 0) 48%) padding-box,
    /* light refracted into the base, the way a liquid lens pools it */
    radial-gradient(70% 80% at 50% 130%, rgb(255 255 255 / .3), rgb(255 255 255 / 0) 70%) padding-box,
    linear-gradient(180deg, var(--fill-a), var(--fill-b)) padding-box;
  /* no saturate: the glass shows a brightened, colourless blur, never the navy behind it */
  -webkit-backdrop-filter: blur(10px) saturate(100%) brightness(1.18);
  backdrop-filter: blur(10px) saturate(100%) brightness(1.18);
  /* the bevel: a thick lit edge, brightest top-left, a softer catch bottom-right, glow inside */
  box-shadow:
    inset 2px 2.5px 1.5px -1px rgb(255 255 255 / .9),
    inset -2px -2.5px 1.5px -1px rgb(255 255 255 / .5),
    inset 0 0 0 1px rgb(255 255 255 / .12),
    inset 0 0 18px rgb(255 255 255 / .16),
    0 14px 30px -14px rgb(0 0 0 / .8),
    0 0 26px -8px rgb(255 255 255 / calc(var(--halo) * .5));
  color: var(--ink);
  font: 600 1rem/1.25 var(--font-head);
  letter-spacing: -.005em;
  text-align: left;
  text-decoration: none;
  text-shadow: 0 1px 2px rgb(3 7 17 / .4); /* keeps white text crisp over whatever the glass bends */
  cursor: pointer;
  transition:
    transform var(--t-hover) var(--ease),
    box-shadow var(--t-hover) var(--ease),
    --halo var(--t-hover) var(--ease),
    --lit .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cap.is-lit { --lit: 1; }

/* one gleam glides across the glass as it comes into view */
.cap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(105deg, rgb(255 255 255 / 0) 40%, rgb(255 255 255 / .38) 50%, rgb(255 255 255 / 0) 60%) no-repeat 160% 0 / 260% 100%;
  opacity: 0;
  pointer-events: none;
}
.cap.is-in::before { animation: cap-gleam 1.5s var(--ease) .25s 1 both; }
@keyframes cap-gleam {
  0% { opacity: 1; background-position: 160% 0; }
  85% { opacity: 1; }
  100% { opacity: 0; background-position: -60% 0; }
}
/* specular streak along the top edge */
.cap::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 1px;
  left: 14%;
  right: 30%;
  height: 34%;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgb(255 255 255 / .2), rgb(255 255 255 / 0));
  pointer-events: none;
}
.cap__text, .cap > .cap__title { display: grid; gap: .15rem; min-width: 0; flex: 1 1 auto; }
.cap__title { font: 600 1rem/1.25 var(--font-head); }
.cap__sub { font: 400 .84rem/1.4 var(--font-body); color: rgb(226 237 250 / .82); letter-spacing: .005em; }

.cap__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / .8);
  border-radius: 50%;
  /* a white glass bead: bright cap of light on top, milky centre, glow underneath */
  background:
    radial-gradient(circle at 50% 18%, rgb(255 255 255 / .6), rgb(255 255 255 / 0) 52%),
    radial-gradient(circle at 50% 105%, rgb(255 255 255 / .4), rgb(255 255 255 / 0) 60%),
    rgb(255 255 255 / .16);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .9), 0 2px 8px -2px rgb(0 0 0 / .5);
  color: currentColor;
  transition: transform var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.cap__icon svg { width: 18px; height: 18px; }

/* Primary: dense white glass with dark ink, so the main action reads first */
.cap--primary {
  --rim-a: rgb(255 255 255 / 1);
  --rim-b: rgb(255 255 255 / .85);
  --rim-c: rgb(255 255 255 / .9);
  --fill-a: rgb(255 255 255 / .94);
  --fill-b: rgb(226 236 248 / .86);
  --ink: #061326;
  --halo: .55;
  text-shadow: none;
}
.cap--primary .cap__sub { color: rgb(6 19 38 / .68); }
.cap--primary .cap__icon {
  border-color: rgb(6 19 38 / .14);
  background: #061326;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 2px 6px -2px rgb(0 0 0 / .4);
  color: var(--white);
}

/* Smaller capsule for the nav */
.cap--sm { min-height: 44px; gap: .7rem; padding: .3rem .3rem .3rem 1.1rem; font-size: .92rem; }
.cap--sm .cap__title { font-size: .92rem; }
.cap--sm .cap__icon { width: 34px; height: 34px; }
.cap--sm .cap__icon svg { width: 15px; height: 15px; }

/* Full-width capsule (forms, phones) */
.cap--block { display: flex; width: 100%; }

/* A non-clickable feature capsule uses a tick instead of an arrow */
.cap--static { cursor: default; }

@property --halo { syntax: "<number>"; inherits: true; initial-value: .32; }
@property --lit { syntax: "<number>"; inherits: false; initial-value: 0; }

@media (hover: hover) {
  a.cap:hover, button.cap:hover {
    --fill-a: rgb(255 255 255 / .2);
    --rim-b: rgb(255 255 255 / .35);
    --halo: .8;
    transform: translateY(-3px);
    box-shadow:
      inset 2px 2.5px 1.5px -1px rgb(255 255 255 / 1),
      inset -2px -2.5px 1.5px -1px rgb(255 255 255 / .65),
      inset 0 0 0 1px rgb(255 255 255 / .18),
      inset 0 0 22px rgb(255 255 255 / .24),
      0 18px 34px -14px rgb(0 0 0 / .9),
      0 0 30px -6px rgb(255 255 255 / calc(var(--halo) * .6));
  }
  a.cap--primary:hover, button.cap--primary:hover { --fill-a: rgb(255 255 255 / 1); --fill-b: rgb(236 243 252 / .95); }
  a.cap:hover .cap__icon, button.cap:hover .cap__icon { transform: translateX(3px); border-color: rgb(255 255 255 / .85); }
}
a.cap:active, button.cap:active { transform: translateY(0) scale(.985); transition-duration: 120ms; }

.cap-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cap-stack { display: grid; gap: 12px; }

/* =====================================================================
   Glass panel (cards). Same recipe as the capsule, squarer corners.
   ===================================================================== */
.glass {
  position: relative;
  isolation: isolate;
  border: 1px solid rgb(255 255 255 / .2);
  border-top-color: rgb(255 255 255 / .6);
  border-bottom-color: rgb(255 255 255 / .28);
  border-radius: var(--r-card);
  /* white liquid glass, a thinner pour than the buttons so text stays easy to read */
  background:
    radial-gradient(120% 90% at 0% 0%, rgb(255 255 255 / .16), rgb(255 255 255 / 0) 45%),
    radial-gradient(80% 60% at 50% 120%, rgb(255 255 255 / .1), rgb(255 255 255 / 0) 70%),
    linear-gradient(180deg, rgb(255 255 255 / .15), rgb(255 255 255 / .06));
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(22px) saturate(100%) brightness(1.15);
  backdrop-filter: blur(22px) saturate(100%) brightness(1.15);
  box-shadow:
    inset 2.5px 3px 2px -1px rgb(255 255 255 / .6),
    inset -2.5px -3px 2px -1px rgb(255 255 255 / .28),
    inset 0 0 0 1px rgb(255 255 255 / .06),
    inset 0 0 36px rgb(255 255 255 / .07),
    0 24px 50px -30px rgb(0 0 0 / .95);
  transition: box-shadow .6s var(--ease), transform var(--t-hover) var(--ease);
}
/* rim lights up once a card scrolls into view */
.glass.is-in {
  box-shadow:
    inset 2.5px 3px 2px -1px rgb(255 255 255 / .7),
    inset -2.5px -3px 2px -1px rgb(255 255 255 / .32),
    inset 0 0 0 1px rgb(255 255 255 / .08),
    inset 0 0 36px rgb(255 255 255 / .09),
    0 0 30px -14px rgb(255 255 255 / .3),
    0 24px 50px -30px rgb(0 0 0 / .95);
}

/* Chromium only (js-flag.js sets the class): the bubbles bend what's behind them like a real lens.
   Kept to the capsules; the big cards sit over plain background where bending shows nothing
   and would only cost frame time. */
.lg-refract .cap {
  -webkit-backdrop-filter: url(#liquid) blur(6px) brightness(1.18);
  backdrop-filter: url(#liquid) blur(6px) brightness(1.18);
}

/* Light that follows the pointer (main.js sets --mx/--my and .is-lit):
   a soft sheen on the surface and a brighter rim nearest the pointer */
.glass::before, .glass::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.glass::before {
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgb(200 230 255 / .07), rgb(200 230 255 / 0) 70%),
    radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--blue-rgb) / .22), rgb(var(--blue-rgb) / 0) 62%);
}
.glass::after {
  inset: -1px;
  z-index: 1;
  padding: 1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgb(214 238 255 / .95), rgb(var(--cyan-rgb) / 0) 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.glass.is-lit::before, .glass.is-lit::after { opacity: 1; transition-duration: .15s; }

/* Line icons */
.ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  border: 1px solid rgb(var(--cyan-rgb) / .3);
  background: radial-gradient(circle at 30% 20%, rgb(var(--cyan-rgb) / .18), rgb(var(--blue-rgb) / .05) 70%);
  color: var(--cyan);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =====================================================================
   Navigation
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgb(3 7 17 / .72);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 40px -30px rgb(0 0 0 / .9);
}
/* a line of light where the bar meets the page, fading out at both ends */
.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--blue-rgb) / 0), rgb(var(--blue-rgb) / .4) 30%, rgb(var(--cyan-rgb) / .5) 50%, rgb(var(--blue-rgb) / .4) 70%, rgb(var(--blue-rgb) / 0));
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.nav.is-scrolled::after { opacity: 1; }
.nav__in { display: flex; align-items: center; gap: 24px; max-width: var(--max); margin-inline: auto; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; white-space: nowrap; text-decoration: none; font: 800 1.15rem var(--font-head); letter-spacing: -.02em; }
.nav__brand img { width: 44px; height: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  color: #d5e0ee;
  font: 600 .92rem var(--font-head);
  text-decoration: none;
  transition: color .25s ease, background .25s ease;
}
.nav__links a:hover { color: var(--white); background: rgb(var(--blue-rgb) / .12); }
.nav__toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgb(180 220 255 / .35);
  border-radius: 50%;
  background: rgb(10 29 56 / .6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .35s var(--ease), opacity .2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu panel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 96px var(--gutter) 40px;
  background: radial-gradient(90% 60% at 50% 0%, rgb(var(--blue-rgb) / .22), rgb(3 7 17 / 0) 70%), rgb(3 7 17 / .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  /* grows out of the menu button, and shrinks back into it */
  transform-origin: calc(100% - var(--gutter) - 23px) 37px;
  transform: scale(.94);
  filter: blur(8px);
  transition: opacity .3s var(--ease), transform .45s var(--ease), filter .35s var(--ease), visibility 0s linear .45s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease), filter .35s var(--ease);
}
.menu .cap { width: 100%; }
.menu .cap { transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.menu.is-open .cap { transform: none; opacity: 1; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
}
@media (min-width: 961px) { .menu { display: none; } }

/* =====================================================================
   Scroll reveal
   ===================================================================== */
/* Materialise rather than fade: the glass comes into focus as it rises */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(.985);
  filter: blur(8px);
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
/* after arriving, hover responds with no stagger delay */
.js .reveal.is-settled {
  transition: transform var(--t-hover) var(--ease), box-shadow .6s var(--ease);
  transition-delay: 0s;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { transform: none; filter: none; transition: opacity .4s ease; }
  .cap, .glass, .cap__icon { transition: none; }
  .menu, .menu.is-open { transform: none; filter: none; }
}

/* Frostier, solid surfaces for people who turn transparency off */
@media (prefers-reduced-transparency: reduce) {
  .cap, .glass, .nav.is-scrolled, .menu, .nav__toggle { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-scrolled, .menu { background: var(--black); }
  .glass { background-color: var(--navy-2); }
}
/* Stronger edges and text for people who ask for more contrast */
@media (prefers-contrast: more) {
  :root { --muted: #d3deeb; }
  .glass, .cap { border-color: rgb(var(--cyan-rgb) / .85); }
}
