/* =========================================================================
   ANYSYS ICT — Design system
   Inter (self-hosted, variable) · Apple-grade minimal · flat vector
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2-variations"),
       url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2-variations"),
       url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Brand gradient stops */
  --brand-navy: #0a1128;
  --brand-blue: #2f5bff;
  --brand-cyan: #00c2ff;

  /* Semantic tokens — light */
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-bg-inverse: #0a1128;
  --color-surface: #ffffff;
  --color-border: #e2e6ee;
  --color-text-primary: #0b1220;
  --color-text-secondary: #4b5565;
  --color-text-placeholder: #8993a4;
  --color-text-inverse: #f5f7fb;
  --color-accent: #2f5bff;
  --color-accent-strong: #1a3fd6;
  /* Tint used behind translucent primary buttons. Kept dark enough that white
     label text clears WCAG AA over any page background (verified 5.2:1). */
  --color-btn-tint: #1a3fd6;
  --color-link: #1a3fd6;
  --color-success: #1a8754;
  --color-error: #c0392b;
  --color-focus: #00c2ff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --max-width: 1200px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 17, 40, 0.08);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a1128;
    --color-bg-alt: #0f1b3d;
    --color-bg-inverse: #f5f7fb;
    --color-surface: #101a3a;
    --color-border: #24304f;
    --color-text-primary: #f2f4f8;
    --color-text-secondary: #b7c0d4;
    --color-text-placeholder: #6b7690;
    --color-text-inverse: #0b1220;
    --color-accent: #4d7bff;
    --color-accent-strong: #7ea0ff;
    /* Not accent-strong here: #7ea0ff is too light for white text (3.5:1).
       brand-blue keeps the CTA at 6.6:1 on the dark background. */
    --color-btn-tint: #2f5bff;
    --color-link: #7ea0ff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Nothing may widen the page sideways: decorative aurora layers and any
   future wide element get clipped instead of creating a horizontal scrollbar. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-link); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0 0 var(--space-4) 0; }
ul, ol { padding-left: 1.25em; }
button, input, textarea, select { font: inherit; color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------------- */
/* Type scale                                                              */
/* ---------------------------------------------------------------------- */
h1, .h1 {
  font-size: clamp(2.25rem, 1.7rem + 2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h2, .h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h3, .h3 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 60ch;
}
small, .text-small { font-size: 0.875rem; color: var(--color-text-secondary); }

/* ---------------------------------------------------------------------- */
/* Layout                                                                  */
/* ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
section { padding-block: var(--space-9); }
.section-tight { padding-block: var(--space-8); }

/* Inner-page header band: gives the glass header something coloured to
   refract on pages that have no hero (services, news, about, contact).
   `overflow: clip` confines the aurora horizontally (so it cannot widen
   the page) while still allowing it to bleed upward behind the header,
   which `overflow: hidden` would cut off. */
.section-tight:first-of-type {
  position: relative;
  padding-top: var(--space-9);
  overflow-x: clip;
}
.section-tight:first-of-type::before {
  content: "";
  position: absolute;
  inset: -140px -10% auto -10%;
  height: 340px;
  background:
    radial-gradient(38% 60% at 18% 30%, color-mix(in srgb, var(--brand-cyan) 42%, transparent), transparent 72%),
    radial-gradient(34% 55% at 80% 18%, color-mix(in srgb, var(--brand-blue) 38%, transparent), transparent 74%);
  filter: blur(70px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.section-tight:first-of-type > .container { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) {
  .section-tight:first-of-type::before { opacity: 0.7; }
}

.grid {
  display: grid;
  gap: var(--space-5);
}
/* Grid children default to min-width:auto, so a long unbreakable string
   (a URL, a source name) can push a column wider than its track and
   overflow the page. Pin every cell to the track width instead. */
.grid > * { min-width: 0; }
.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)); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding-block: var(--space-7); }
}

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.center { text-align: center; margin-inline: auto; }

/* ---------------------------------------------------------------------- */
/* Header / Nav                                                            */
/* ---------------------------------------------------------------------- */
/* Liquid Glass — functional layer floating above the content layer.
   Regular variant: blur 28px + saturation boost, background opacity ~0.55
   so the content underneath genuinely bleeds through and reads as glass.
   A lighter resting state deepens on scroll (scroll edge effect). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 55%, transparent);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 55%, transparent);
  box-shadow: 0 0 0 rgba(10, 17, 40, 0);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Specular top highlight: the thin bright edge that sells the glass material. */
.site-header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, #ffffff 65%, transparent) 25%,
    color-mix(in srgb, #ffffff 65%, transparent) 75%,
    transparent);
  pointer-events: none;
}
/* Scroll edge effect: more opaque + lifted once content passes beneath. */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--color-bg) 72%, transparent);
  box-shadow: 0 8px 30px rgba(10, 17, 40, 0.10);
  border-bottom-color: color-mix(in srgb, var(--color-border) 90%, transparent);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: color-mix(in srgb, var(--color-bg) 52%, transparent); }
  .site-header.is-scrolled { background: color-mix(in srgb, var(--color-bg) 70%, transparent); }
  .site-header::after {
    background: linear-gradient(90deg,
      transparent,
      color-mix(in srgb, #ffffff 22%, transparent) 25%,
      color-mix(in srgb, #ffffff 22%, transparent) 75%,
      transparent);
  }
}
/* Accessibility: users who ask for less transparency get a solid bar. */
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .site-header.is-scrolled {
    background: var(--color-bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header::after { display: none; }
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand-lockup {
  display: block;
  width: 220px;
  height: 45px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  content: url("../img/anysys8-lockup-h-navy-tagline.svg?v=20260918_lightfix");
}
.brand > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-links a[aria-current="page"] { color: var(--color-accent); }
/* In-menu CTA exists only for the mobile panel; hidden on desktop where the
   top-bar CTA is visible (never show both at once). `li` is added so this
   survives any later single-class rule. */
li.nav-links-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.lang-switch {
  display: flex;
  gap: var(--space-2);
  font-size: 0.8125rem;
  font-weight: 600;
}
.lang-switch a {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.lang-switch a[aria-current="true"] { color: var(--color-accent); background: var(--color-bg-alt); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  /* WCAG touch target: never let flex shrink this below 44x44. */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-primary);
}
.nav-toggle svg { width: 24px; height: 24px; flex-shrink: 0; }

@media (max-width: 1024px) {
  /* Preserve the readable logo and move navigation to its compact menu
     before the header can truncate on laptops and tablets. */
  .brand-lockup { width: 190px; height: 39px; }
  /* The CTA is the 53px that overflowed the viewport: it lives in the
     mobile menu panel instead, not in the cramped top bar.
     Both classes are named so this beats `.btn { display: inline-flex }`,
     which is declared later in the file at equal specificity. */
  .nav-actions .btn.nav-cta { display: none; }

  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    /* Sidebar-scale glass: larger surface -> more opaque for legibility. */
    background: color-mix(in srgb, var(--color-bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-5);
    gap: var(--space-5);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  @media (prefers-reduced-transparency: reduce) {
    .nav-links { background: var(--color-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  }
  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-links a {
    font-size: 1.125rem;
    display: block;
    width: 100%;
    padding-block: var(--space-2);
  }
  .nav-toggle { display: inline-flex; }
  /* In-menu CTA becomes visible once the top-bar one is hidden. */
  li.nav-links-cta { display: block; margin-top: var(--space-3); }
  .nav-links li.nav-links-cta a { display: inline-flex; width: auto; color: #fff; }
  /* Lock background scroll while the menu is open. */
  body.nav-open { overflow: hidden; }
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
/* Liquid Glass buttons.
   Both variants are translucent surfaces that refract the content behind them
   rather than flat fills: blurred + saturated backdrop, a specular highlight
   along the top edge, an inner rim light, and an outer shadow that grounds the
   control above the content layer. The primary keeps a brand-tinted background
   (per the guideline: colour the CTA's background, not its text) while staying
   see-through. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}
/* Specular sheen: brighter at the top, fading out by the middle, like light
   catching the curved top edge of a glass surface. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.12) 42%,
    rgba(255, 255, 255, 0) 60%
  );
  pointer-events: none;
  z-index: -1;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  /* 82% tint over the backdrop: the most translucent value that still keeps
     white label text above 4.5:1 on a white page (measured 5.2:1) and on the
     dark navy band (9.2:1). Lower alphas look glassier but fail WCAG AA. */
  background: color-mix(in srgb, var(--color-btn-tint) 82%, transparent);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 6px 22px rgba(47, 91, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 2px rgba(10, 17, 40, 0.25);
  text-shadow: 0 1px 1px rgba(10, 17, 40, 0.28);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-btn-tint) 92%, transparent);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(47, 91, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 2px rgba(10, 17, 40, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: color-mix(in srgb, var(--color-surface) 42%, transparent);
  color: var(--color-text-primary);
  border-color: color-mix(in srgb, var(--color-text-primary) 16%, transparent);
  box-shadow:
    0 4px 18px rgba(10, 17, 40, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  background: color-mix(in srgb, var(--color-surface) 62%, transparent);
  border-color: color-mix(in srgb, var(--color-accent) 55%, transparent);
  color: var(--color-accent);
  box-shadow:
    0 8px 26px rgba(10, 17, 40, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

/* On the dark inverse band the sheen must be subtler or the glass looks milky. */
.band-inverse .btn-secondary {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}
.band-inverse .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
@media (prefers-color-scheme: dark) {
  .btn::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.06) 42%,
      rgba(255, 255, 255, 0) 60%
    );
  }
  .btn-secondary {
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
  .btn-secondary:hover {
    box-shadow:
      0 8px 26px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}

/* Accessibility fallbacks: no blur, no sheen, fully opaque fills. */
@media (prefers-reduced-transparency: reduce) {
  .btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .btn::before { display: none; }
  .btn-primary { background: var(--color-accent); }
  .btn-secondary { background: var(--color-surface); }
}
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active { transform: none; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
/* The hero is the surface the glass header sits on: it must carry real
   colour, otherwise the header blurs white-on-white and the material is
   invisible. `overflow: visible` lets the aurora reach up behind the
   sticky header so there is something to refract. */
.hero {
  position: relative;
  padding-block: var(--space-10) var(--space-9);
  border-bottom: 1px solid var(--color-border);
  overflow-x: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -160px -10% auto -10%;
  height: 150%;
  background:
    radial-gradient(40% 46% at 16% 26%, color-mix(in srgb, var(--brand-cyan) 58%, transparent), transparent 70%),
    radial-gradient(36% 42% at 78% 16%, color-mix(in srgb, var(--brand-blue) 52%, transparent), transparent 72%),
    radial-gradient(30% 34% at 52% 4%, color-mix(in srgb, var(--brand-navy) 26%, transparent), transparent 72%),
    /* Low-left blob sitting directly behind the CTA row: a glass button only
       reads as glass when there is something coloured underneath to refract. */
    radial-gradient(26% 22% at 22% 78%, color-mix(in srgb, var(--brand-blue) 38%, transparent), transparent 74%);
  filter: blur(70px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .hero::before { opacity: 0.75; }
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}
.hero-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.4fr);
  gap: var(--space-8);
  align-items: center;
}
.brand-story-logo {
  display: block;
  width: 100%;
  min-height: 300px;
  object-fit: contain;
  content: url("../img/anysys8-lockup-v.png?v=20260917_brand");
}
.brand-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.brand-story-grid .card { padding: var(--space-5); }
.brand-story-note {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}
@media (max-width: 900px) {
  .brand-story { grid-template-columns: 1fr; }
  .brand-story-logo { min-height: 220px; max-height: 300px; }
  .brand-story-grid { grid-template-columns: 1fr; }
}
@media (prefers-color-scheme: dark) {
  .brand-lockup { content: url("../img/anysys8-lockup-h-light-tagline.svg?v=20260917_brand2"); }
  .brand-story-logo { content: url("../img/anysys8-lockup-v-dark.png?v=20260917_brand"); }
}
@media (max-width: 420px) {
  .brand-lockup { width: 150px; height: 31px; }
}
.hero-actions { margin-top: var(--space-6); }

/* ---------------------------------------------------------------------- */
/* Cards                                                                   */
/* ---------------------------------------------------------------------- */
.card {
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
  backdrop-filter: saturate(150%) blur(24px);
  -webkit-backdrop-filter: saturate(150%) blur(24px);
  border: 1px solid color-mix(in srgb, var(--color-border) 75%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
}
@media (prefers-reduced-transparency: reduce) {
  .card { background: var(--color-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-4);
}
.card-icon svg { width: 24px; height: 24px; }
.card a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.card a.card-link:hover { border-color: var(--color-accent); }

.card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.card-list li { padding-left: 1.6em; position: relative; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
}

/* ---------------------------------------------------------------------- */
/* Bands / alt sections                                                    */
/* ---------------------------------------------------------------------- */
.band-alt { background: var(--color-bg-alt); }
.band-inverse {
  background: linear-gradient(160deg, var(--brand-navy), #142354 60%, #0a1128);
  color: #f5f7fb;
}
.band-inverse .lede { color: rgba(245, 247, 251, 0.78); }
.band-inverse h2 { color: #fff; }

/* Proof strip */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
  padding-inline: var(--space-5);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--color-bg-alt) 60%, transparent);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
}
@media (prefers-reduced-transparency: reduce) {
  .proof-strip { background: var(--color-bg-alt); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.proof-item .stat { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.proof-item .label { color: var(--color-text-secondary); font-size: 0.875rem; }

/* ---------------------------------------------------------------------- */
/* Forms                                                                   */
/* ---------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { color: var(--color-text-secondary); font-size: 0.8125rem; }
.field input,
.field textarea,
.field select {
  min-height: 44px;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-primary);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-accent);
}
.field-required::after { content: " *"; color: var(--color-error); }
.form-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-5);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: rgba(26, 135, 84, 0.1); color: var(--color-success); }
.form-status.is-error { background: rgba(192, 57, 43, 0.1); color: var(--color-error); }
.checkbox-field { display: flex; align-items: flex-start; gap: var(--space-3); }
/* WCAG 2.5.5: the checkbox itself stays visually 20px, but its hit area is
   padded out to 44px via the wrapper so it is comfortably tappable. */
.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 12px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
}
.checkbox-field label { padding-top: 10px; }
/* The honeypot input is not a real control: keep it out of a11y checks. */
input.visually-hidden { pointer-events: none; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-8);
  background: var(--color-bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-grid a { color: var(--color-text-primary); text-decoration: none; font-size: 0.9375rem; }
.footer-grid a:hover { color: var(--color-accent); }
.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 0.8125rem;
}
.footer-bottom a { color: var(--color-text-secondary); }

/* ---------------------------------------------------------------------- */
/* Utilities                                                               */
/* ---------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.breadcrumb { font-size: 0.8125rem; color: var(--color-text-secondary); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--color-text-secondary); }
.table-legal { width: 100%; border-collapse: collapse; margin-block: var(--space-5); }
.table-legal th, .table-legal td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
@media (max-width: 640px) {
  .table-legal {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------------------------------------------------------------------- */
/* Liquid Glass utilities                                                 */
/* ---------------------------------------------------------------------- */
.glass-panel {
  background: color-mix(in srgb, var(--color-surface) 68%, transparent);
  backdrop-filter: saturate(160%) blur(26px);
  -webkit-backdrop-filter: saturate(160%) blur(26px);
  border: 1px solid color-mix(in srgb, var(--color-border) 70%, transparent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (prefers-reduced-transparency: reduce) {
  .glass-panel { background: var(--color-surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* Floating primary CTA (Liquid Glass functional layer) */
.floating-cta {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  isolation: isolate;
  overflow: hidden;
  /* 72% navy keeps white text at 11:1 while still refracting the page behind. */
  background: color-mix(in srgb, var(--brand-navy) 72%, transparent);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  box-shadow:
    0 8px 28px rgba(10, 17, 40, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.floating-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
  z-index: -1;
}
.floating-cta:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand-navy) 85%, transparent);
  box-shadow:
    0 12px 34px rgba(10, 17, 40, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.floating-cta svg { width: 18px; height: 18px; }
@media (prefers-reduced-transparency: reduce) {
  .floating-cta {
    background: var(--brand-navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .floating-cta::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-cta:hover { transform: none; }
}
@media (max-width: 640px) {
  .floating-cta span { display: none; }
  .floating-cta { padding: 0.875rem; }
}

/* ---------------------------------------------------------------------- */
/* News filters + cards                                                    */
/* ---------------------------------------------------------------------- */
.news-filters { padding: var(--space-6); }
.news-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 900px) { .news-filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .news-filters-grid { grid-template-columns: 1fr; } }

.news-filters-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.news-filters-actions .text-small { margin: 0; font-weight: 600; }

.news-grid-section { padding-top: var(--space-5); }
.news-card[hidden] { display: none; }
.news-card .news-tag { margin: 0 0 var(--space-3) 0; }
.tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 28%, transparent);
}
#news-empty[hidden] { display: none; }
#news-empty { padding-block: var(--space-7); }

/* News category icon: matches the site's 24x24 stroke-2 icon family, sized to
   the eyebrow text's visual weight rather than its full em box (Icons > "Match
   the visual weight of icons to adjacent text"). */
.news-cat-icon {
  /* 1.2em rather than 1em: the eyebrow is uppercase 600-weight, whose cap
     height is well below its em box, so a 1em icon reads lighter than the text
     beside it (Icons > "Match the visual weight of icons to adjacent text"). */
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.15em;
}
.news-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.35em;
}

/* Logo rationale section: the mark shown at display size on a glass stage. */
.logo-stage {
  display: grid;
  place-items: center;
  /* Padding tightened and the mark enlarged: at 260px inside a 350px-tall panel
     the logo read as a small object adrift in empty space rather than as the
     subject of the section. */
  padding: var(--space-6);
  aspect-ratio: 4 / 3;
}
.logo-showcase {
  width: min(340px, 82%);
  height: auto;
}
@media (max-width: 720px) {
  .logo-stage { aspect-ratio: 3 / 2; padding: var(--space-5); }
  .logo-showcase { width: min(240px, 70%); }
}

/* ---------------------------------------------------------------------- */
/* News — editorial front page (une de journal, sobre)                     */
/* One featured article (large image, title, chapo, date/category) then a  */
/* compact scannable grid of thumbnails. Height and visual weight of every  */
/* block are deliberately reduced versus the old big square cards.         */
/* ---------------------------------------------------------------------- */
.news-featured-section { padding-block: var(--space-6) var(--space-5); }
.news-featured {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.news-featured-media {
  flex: 0 0 44%;
  max-width: 44%;
  aspect-ratio: 16 / 9;
}
.news-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-featured-body {
  flex: 1;
  min-width: 0;
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}
.news-featured-body h2 {
  margin: 0;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}
.news-featured-chapo {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 760px) {
  .news-featured { flex-direction: column; }
  .news-featured-media { max-width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
  .news-featured-body { padding: var(--space-4) var(--space-5); }
}

.news-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 760px) {
  .news-compact-grid { grid-template-columns: 1fr; }
}
.news-compact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.news-compact-card:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  box-shadow: var(--shadow-sm);
}
.news-compact-link {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  text-decoration: none;
  color: inherit;
}
.news-compact-media {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.news-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-compact-body { flex: 1; min-width: 0; }
.news-compact-eyebrow {
  margin: 0 0 0.25rem 0;
  font-size: 0.6875rem;
}
.news-compact-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-compact-excerpt {
  margin: 0 0 0.375rem 0;
  font-size: 0.8125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-compact-source {
  margin-left: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .news-compact-media { flex-basis: 76px; width: 76px; height: 60px; }
  .news-compact-source { display: none; }
}


/* Services: align section icons with their titles. */
.service-heading {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.service-heading .card-icon { flex: 0 0 auto; }
.service-heading h2 { margin: 0; }
@media (max-width: 540px) {
  .service-heading { align-items: flex-start; }
  .service-heading .card-icon { width: 38px; height: 38px; }
}
