/* ==========================================================================
   Fluxera AI Labs — design system
   Fluid typography and spacing throughout: every size scales continuously
   between 360px and 1440px viewports rather than jumping at breakpoints.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ── Brand palette, taken from fluxeraailabs.com ────────────────────────
     Surfaces, cyan and blue are the live site's values exactly.
     Two exceptions: the original --muted (#4a6070) measured 3.04:1 and
     --muted2 (#2a3d52) measured 1.79:1 against the page background, both
     below the 4.5:1 WCAG AA floor for body text. Those two are lifted
     within the same blue-grey hue so small text is actually readable.
     Every value below is annotated with its measured contrast on --ink. */
  --ink:        #0A1628;   /* live --bg */
  --surface:    #102B45;   /* live --surface */
  --raised:     #163854;   /* derived: hover / elevated */
  --border:     #1C4260;   /* live --border */
  --border-lit: #2C6B8A;   /* derived: focus / hover border */

  --text:  #F0F8FF;   /* live --text   — 16.84:1 AAA */
  --body:  #C2D6E5;   /* live          — 10.18:1 AAA */
  --muted: #93AEC2;   /* lifted from #4a6070 — 5.99:1 AA */
  --faint: #8AA6BB;   /* live          —  4.87:1 AA */

  --accent:      #00C8C8;  /* live --cyan   — 11.26:1 AAA */
  --accent-deep: #00A6BE;  /* live --cyan2  —  7.78:1 AAA */
  --blue:        #0D3B5E;  /* background navy — for surfaces, never under dark text */
  --accent-dark: #009AAE;  /* darkest stop that still reads at 5.63:1 with #04121b ink */  /* live --blue */
  --accent-soft: rgba(0, 200, 200, .10);
  --accent-line: rgba(0, 200, 200, .28);

  --violet:  #4FB3D9;      /* secondary accent, in the blue family */
  --success: #2ED6A0;      /* live green  — 11.49:1 AAA */
  --danger:  #FF8080;      /* live red    —  7.18:1 AAA */

  /* Type */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Fluid type scale — 360px → 1440px, ratio 1.2 → 1.333.
     Body stays comfortable on a phone while display sizes gain real presence
     on a large screen. */
  --fs--2: clamp(0.750rem, 0.729rem + 0.093vw, 0.813rem);
  --fs--1: clamp(0.875rem, 0.854rem + 0.093vw, 0.938rem);
  --fs-0:  clamp(1.000rem, 0.958rem + 0.185vw, 1.125rem);
  --fs-1:  clamp(1.188rem, 1.083rem + 0.463vw, 1.500rem);
  --fs-2:  clamp(1.438rem, 1.250rem + 0.833vw, 2.000rem);
  --fs-3:  clamp(1.688rem, 1.354rem + 1.481vw, 2.688rem);
  --fs-4:  clamp(2.000rem, 1.479rem + 2.315vw, 3.563rem);
  --fs-5:  clamp(2.438rem, 1.667rem + 3.426vw, 4.750rem);
  --fs-6:  clamp(2.875rem, 1.729rem + 5.093vw, 6.313rem);

  /* Fluid space */
  --sp-3xs: clamp(0.25rem, 0.24rem + 0.05vw, 0.31rem);
  --sp-2xs: clamp(0.50rem, 0.48rem + 0.09vw, 0.56rem);
  --sp-xs:  clamp(0.75rem, 0.71rem + 0.19vw, 0.88rem);
  --sp-s:   clamp(1.00rem, 0.96rem + 0.19vw, 1.13rem);
  --sp-m:   clamp(1.50rem, 1.43rem + 0.28vw, 1.69rem);
  --sp-l:   clamp(2.00rem, 1.91rem + 0.37vw, 2.25rem);
  --sp-xl:  clamp(3.00rem, 2.87rem + 0.56vw, 3.38rem);
  --sp-2xl: clamp(4.00rem, 3.81rem + 0.74vw, 4.50rem);
  --sp-3xl: clamp(6.00rem, 5.44rem + 2.50vw, 8.00rem);

  --measure:   68ch;
  /* Widened from 1180px. The old measure left two-column sections with a
     ~500px heading column, which is not enough room for a six-word headline
     at display size — it broke onto three and four lines however the type was
     tuned. The extra 180px is what buys those headings a second line instead
     of a fourth. */
  --container: 1360px;
  --gutter:    clamp(1.25rem, 0.5rem + 3vw, 3rem);

  --r-xs: 6px;  --r-sm: 10px;  --r-md: 16px;  --r-lg: 24px;  --r-pill: 999px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--ink);
  color: var(--body);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

::selection { background: var(--accent); color: #04121b; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section   { padding-block: var(--sp-3xl); position: relative; }
.section--tight { padding-block: var(--sp-2xl); }

.stack > * + * { margin-top: var(--flow, var(--sp-s)); }
.measure { max-width: var(--measure); }
.center  { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: var(--sp-m); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.split {
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: center;
}

@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.display   { font-size: var(--fs-6); line-height: 1.02; letter-spacing: -0.035em; }
.h1        { font-size: var(--fs-5); }
.h2        { font-size: var(--fs-4); }
.h3        { font-size: var(--fs-3); }
.h4        { font-size: var(--fs-2); }
.h5        { font-size: var(--fs-1); }
.lead      { font-size: var(--fs-1); color: var(--body); line-height: 1.55; }
.small     { font-size: var(--fs--1); }
.tiny      { font-size: var(--fs--2); }
.mono      { font-family: var(--font-mono); font-size: .9em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body);
  font-size: var(--fs--2);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 1.75em; height: 1px;
  background: currentColor; opacity: .55;
}
.eyebrow--dot::before {
  width: .45em; height: .45em; border-radius: 50%;
  background: currentColor; opacity: 1;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-body   { color: var(--body); }
.text-bright { color: var(--text); }

/* Emphasised word inside a headline */
h1 em, h2 em, h3 em { font-style: normal; color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-m);
  padding-block: clamp(.75rem, .5rem + .6vw, 1.1rem);
}
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: clamp(1.9rem, 1.6rem + .8vw, 2.3rem); height: auto; flex-shrink: 0; }
.brand__word { width: clamp(6.2rem, 5rem + 3vw, 7.6rem); height: auto; display: block; }
.brand__text  { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-0); letter-spacing: .04em; color: var(--text); }
.brand__tag   { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 1px; }

.nav__links { display: flex; align-items: center; gap: clamp(.5rem, .1rem + 1.2vw, 1.5rem); }
.nav__links a {
  font-size: var(--fs--1); font-weight: 500; color: var(--body);
  padding: .4rem 0; position: relative; white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--text); }
/* Flagship gets slightly more weight — highest-intent click */
.nav__links a.is-flagship { color: var(--text); font-weight: 600; }

.nav__cta { flex-shrink: 0; }
.burger {
  display: none; width: 2.5rem; height: 2.5rem;
  place-items: center; border-radius: var(--r-xs); color: var(--text);
}
.burger span { display: block; width: 19px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--ease); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 19px; height: 1.5px; background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav.is-open .burger span { transform: rotate(45deg); }
.nav.is-open .burger span::before { top: 0; transform: rotate(-90deg); }
.nav.is-open .burger span::after  { top: 0; opacity: 0; }

@media (max-width: 940px) {
  .burger { display: grid; }
  .nav__links, .nav__cta {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: var(--sp-s) var(--gutter);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; gap: 0; }
  .nav.is-open .nav__cta   { display: flex; top: auto; position: static; border: none; background: none; padding: var(--sp-s) var(--gutter) var(--sp-m); }
  .nav__links a { padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-0); }
  .nav__links a::after { display: none; }
  .nav.is-open .nav__links + .nav__cta { display: flex; }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: clamp(.7rem, .6rem + .3vw, .95rem) clamp(1.2rem, 1rem + .8vw, 1.9rem);
  border-radius: var(--r-xs);
  font-family: var(--font-body);
  font-size: var(--fs--1); font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #04121b;                       /* 7.78:1 on the darkest end, 11.26:1 on the lightest */
  box-shadow: 0 0 24px rgba(0, 200, 200, .18);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--blue), var(--accent-deep)); color: #fff; box-shadow: 0 0 28px rgba(0, 138, 168,.3); }

.btn--ghost { border-color: var(--border-lit); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.btn--quiet { color: var(--body); padding-inline: .25rem; }
.btn--quiet:hover { color: var(--accent); }
.btn--quiet::after { content: '→'; transition: transform .2s var(--ease); }
.btn--quiet:hover::after { transform: translateX(3px); }

.btn--lg { font-size: var(--fs-0); padding: 1rem 2rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-xs); }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   7. Surfaces
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-m);
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card--link { display: flex; flex-direction: column; }
.card--link:hover { border-color: var(--border-lit); transform: translateY(-3px); background: var(--raised); }
/* Pin the card's call to action to the bottom so a row of cards aligns */
.card--link .card__foot { margin-top: auto; padding-top: var(--sp-s); }
.card--feature { padding: var(--sp-l); }
.card--flush { padding: 0; }

.card__kicker {
  font-size: var(--fs--2); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp-2xs);
}
.card__title { font-size: var(--fs-2); margin-bottom: var(--sp-2xs); }
.card__body  { color: var(--body); font-size: var(--fs--1); line-height: 1.62; }
.card__foot  { margin-top: var(--sp-s); }

/* Numbered card for process steps */
.step { position: relative; padding-left: 0; }
.step__num {
  font-family: var(--font-display); font-size: var(--fs-1);
  color: var(--accent); font-weight: 700; letter-spacing: .02em;
  display: block; margin-bottom: var(--sp-xs);
}
.step__title { font-size: var(--fs-1); margin-bottom: var(--sp-2xs); }

/* Stat */
.stat__value {
  font-family: var(--font-display); font-size: var(--fs-4);
  font-weight: 700; color: var(--text); line-height: 1; letter-spacing: -.04em;
}
.stat__label { font-size: var(--fs--1); color: var(--muted); margin-top: var(--sp-2xs); }

/* Chip / tag */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .38em .85em; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: var(--fs--2); color: var(--body); white-space: nowrap;
}
.chip--accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.pill {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em 1em; border-radius: var(--r-pill);
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  font-size: var(--fs--2); font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.pill__dot { width: .45em; height: .45em; border-radius: 50%; background: currentColor; }
.pill__dot--live { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

/* Divider list */
.rows { border-top: 1px solid var(--border); }
.row {
  display: grid; gap: var(--sp-s);
  grid-template-columns: minmax(0, 22ch) minmax(0, 1fr);
  padding-block: var(--sp-m);
  border-bottom: 1px solid var(--border);
}
.row__label { font-family: var(--font-display); font-size: var(--fs-1); color: var(--text); }
.row__body  { color: var(--body); }
@media (max-width: 700px) { .row { grid-template-columns: 1fr; gap: var(--sp-2xs); } }

/* --------------------------------------------------------------------------
   8. Media
   -------------------------------------------------------------------------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--16x9  { aspect-ratio: 16 / 9; }
.media--4x3   { aspect-ratio: 4 / 3; }
.media--1x1   { aspect-ratio: 1 / 1; }
.media--3x4   { aspect-ratio: 3 / 4; }
.media--21x9  { aspect-ratio: 21 / 9; }

/* Placeholder shown until a real image is dropped in */
.media__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: .5rem;
  background:
    linear-gradient(135deg, rgba(0, 200, 200,.05), transparent 60%),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(255,255,255,.014) 12px, rgba(255,255,255,.014) 24px);
  color: var(--faint); font-size: var(--fs--2); text-align: center; padding: 1rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.media__ph b { display: block; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: var(--fs--1); }

/* Subtle top-edge highlight on dark imagery */
.media--framed::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

/* --------------------------------------------------------------------------
   9. Decorative
   -------------------------------------------------------------------------- */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(90px); opacity: .5;
}
.glow--amber { background: radial-gradient(circle, rgba(0, 200, 200,.20), transparent 70%); }
.glow--violet{ background: radial-gradient(circle, rgba(13, 59, 94,.20), transparent 70%); }

.grid-bg::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 200, 200,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 200,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
}
.section > .container { position: relative; z-index: 1; }

.rule { height: 1px; background: var(--border); border: 0; }

/* --------------------------------------------------------------------------
   10. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; } .reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */
.field { display: block; margin-bottom: var(--sp-s); }
.field__label {
  display: block; font-size: var(--fs--2); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--sp-3xs);
}
.input, .select, .textarea {
  width: 100%; padding: .85rem 1.05rem;
  background: var(--ink); border: 1px solid var(--border);
  border-radius: var(--r-xs); color: var(--text);
  font-size: var(--fs-0); transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.textarea { min-height: 8rem; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237590a8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05rem center;
  padding-right: 2.6rem;
}
.field-row { display: grid; gap: var(--sp-s); grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr)); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: var(--fs--1); margin-top: var(--sp-xs); min-height: 1.4em; }
.form-status.is-ok  { color: var(--success); }
.form-status.is-err { color: var(--danger); }

/* --------------------------------------------------------------------------
   12. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-s);
  padding-block: var(--sp-m);
  font-family: var(--font-display); font-size: var(--fs-1); color: var(--text);
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ''; flex-shrink: 0; width: .8em; height: .8em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-25%);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq__answer { padding-bottom: var(--sp-m); color: var(--body); max-width: var(--measure); }
.faq__answer > * + * { margin-top: var(--sp-xs); }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding-block: var(--sp-2xl) var(--sp-l); background: var(--surface); }
.footer__grid {
  display: grid; gap: var(--sp-l);
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(140px, 1fr));
}
.footer h4 {
  font-family: var(--font-body); font-size: var(--fs--2); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--sp-xs);
}
.footer nav { display: flex; flex-direction: column; gap: .6rem; }
.footer nav a { font-size: var(--fs--1); color: var(--body); transition: color .18s var(--ease); }
.footer nav a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--sp-s); justify-content: space-between;
  align-items: center; margin-top: var(--sp-xl); padding-top: var(--sp-m);
  border-top: 1px solid var(--border); font-size: var(--fs--2); color: var(--muted);
}
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   14. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--accent); color: #04121b; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-xs) var(--r-xs); font-weight: 600; font-size: var(--fs--1);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

.mt-0 { margin-top: 0; } .mt-xs { margin-top: var(--sp-xs); }
.mt-s { margin-top: var(--sp-s); } .mt-m  { margin-top: var(--sp-m); }
.mt-l { margin-top: var(--sp-l); } .mt-xl { margin-top: var(--sp-xl); }
.mb-s { margin-bottom: var(--sp-s); } .mb-m { margin-bottom: var(--sp-m); }
.mb-l { margin-bottom: var(--sp-l); } .mb-xl { margin-bottom: var(--sp-xl); }

.hide-sm { display: initial; }
@media (max-width: 640px) { .hide-sm { display: none; } }

@media print {
  .nav, .footer, .btn, .glow { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   15. Fluid motion layer
   Everything here is scroll- or pointer-linked and fully disabled under
   prefers-reduced-motion. Nothing is required for the page to work.
   ========================================================================== */

/* --- Scroll progress bar --------------------------------------------------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0); z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  will-change: transform;
}

/* --- Animated aurora behind the hero --------------------------------------- */
.aurora { position: absolute; inset: -20% 0 auto 0; height: 120%; z-index: 0; pointer-events: none; overflow: hidden; }
/* Any section hosting the aurora clips it, so it can never widen the page */
.section.grid-bg { overflow: hidden; }
.aurora span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); opacity: .42; will-change: transform;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; left: 8%;  top: -10%;
  background: radial-gradient(circle, rgba(0, 200, 200,.5), transparent 70%);
  animation: drift1 26s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 6%;
  background: radial-gradient(circle, rgba(13, 59, 94,.45), transparent 70%);
  animation: drift2 32s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 38%; top: 22%;
  background: radial-gradient(circle, rgba(0, 200, 200,.32), transparent 70%);
  animation: drift3 22s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate3d(0,0,0) scale(1)} 50%{transform:translate3d(6vw,4vh,0) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate3d(0,0,0) scale(1.1)} 50%{transform:translate3d(-5vw,6vh,0) scale(.92)} }
@keyframes drift3 { 0%,100%{transform:translate3d(0,0,0) scale(.95)} 50%{transform:translate3d(4vw,-5vh,0) scale(1.2)} }

/* --- Hero parallax + fade on scroll ---------------------------------------- */
.parallax { will-change: transform, opacity; }

/* --- Cards: lift, glow and pointer-tracked sheen --------------------------- */
.card { --mx: 50%; --my: 50%; }
.card--link::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(0, 200, 200,.09), transparent 60%);
  transition: opacity .35s var(--ease);
}
.card--link:hover::after { opacity: 1; }
.card--link:hover { border-color: rgba(0, 200, 200,.35); }
.card--tilt { transform-style: preserve-3d; }

/* --- Buttons: light sweep --------------------------------------------------- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .75s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }

/* --- Animated counters ------------------------------------------------------ */
.stat__value { font-variant-numeric: tabular-nums; }

/* --- Marquee for the industry chips ---------------------------------------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-2xs); width: max-content; animation: slide 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --- Eyebrow rule draws itself in ------------------------------------------ */
.eyebrow::before { transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease) .15s; }
.reveal.is-visible .eyebrow::before, .eyebrow.is-visible::before { transform: scaleX(1); }

/* --- Media: gentle zoom while scrolling past -------------------------------- */
.media img { transition: transform .8s var(--ease); }
.media--framed:hover img { transform: scale(1.03); }

/* --- Nav condenses as you scroll -------------------------------------------- */
.nav__inner { transition: padding-block .35s var(--ease); }
.nav.is-scrolled .nav__inner { padding-block: clamp(.5rem, .35rem + .4vw, .75rem); }
.nav .brand__mark, .nav .brand__word { transition: width .35s var(--ease); }
.nav.is-scrolled .brand__mark { width: clamp(1.65rem, 1.4rem + .6vw, 1.95rem); }

/* --- Focus ring animates ---------------------------------------------------- */
:focus-visible { transition: outline-offset .15s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .aurora span { animation: none !important; }
  .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .parallax { transform: none !important; opacity: 1 !important; }
  .scroll-progress { display: none; }
  .eyebrow::before { transform: scaleX(1); }
  .btn--primary::before { display: none; }
}
