/* ==========================================================================
   SDG — Design System
   Font pairing: Sora (display/headings) + Manrope (body) — self-hosted,
   inspired by the MAIKER HUB reference for typographic confidence, not copied.
   Color: anchored to SDG's real brand teal-blue (#0b3c4d / #136480 / #1a8bb3 / #00a0d1),
   modernized with a near-black navy for contrast sections.
   ========================================================================== */

/* ---- Fonts (self-hosted, variable) -------------------------------------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/sora-variable-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-variable-latin.woff2") format("woff2");
}

/* ---- Design tokens -------------------------------------------------------- */
:root {
  /* Brand color — derived from SDG's existing identity */
  --brand-900: #061019;
  --brand-800: #0b3c4d;
  --brand-700: #0e4f63;
  --brand-600: #136480;
  --brand-500: #1a8bb3;
  --brand-400: #00a0d1;
  --brand-300: #5cc3e6;
  --brand-100: #e3f4fa;

  /* Neutrals */
  --ink-900: #0a141c;
  --ink-800: #101d27;
  --ink-700: #1b2b37;
  --slate-600: #4b5b63;
  --slate-500: #6b7b83;
  --slate-400: #93a3aa;
  --slate-200: #d6dee1;
  --slate-100: #eef2f3;
  --paper: #f7f9fa;
  --white: #ffffff;

  /* Semantic */
  --color-bg: var(--white);
  --color-bg-alt: var(--paper);
  --color-bg-dark: var(--brand-900);
  --color-bg-dark-alt: var(--ink-800);
  --color-text: var(--ink-900);
  --color-text-muted: var(--slate-600);
  --color-text-on-dark: var(--white);
  --color-text-on-dark-muted: var(--slate-200);
  --color-accent: var(--brand-400);
  --color-border: rgba(10, 20, 28, 0.1);
  --color-border-dark: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --text-xs: 0.8rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;
  --text-6xl: 4.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.6;

  /* Spacing (4px base) */
  --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 */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  /* Shadow / glow */
  --shadow-sm: 0 1px 2px rgba(10, 20, 28, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 20, 28, 0.08);
  --shadow-lg: 0 24px 48px rgba(10, 20, 28, 0.14);
  --glow-brand: 0 0 0 1px rgba(0, 160, 209, 0.25), 0 12px 32px rgba(0, 160, 209, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 600ms;

  /* Layout */
  --container-max: 78rem;
  --container-narrow: 48rem;
  --header-h: 5rem;
}

@media (min-width: 768px) {
  :root {
    --text-4xl: 3.25rem;
    --text-5xl: 4.5rem;
    --text-6xl: 6rem;
  }
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

/* ---- Base typography ----------------------------------------------------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1, .h1 { font-size: var(--text-6xl); font-weight: 800; letter-spacing: -0.03em; }
h2, .h2 { font-size: var(--text-4xl); }
h3, .h3 { font-size: var(--text-2xl); }
h4, .h4 { font-size: var(--text-lg); font-weight: 600; }
p { color: var(--color-text-muted); }
.lede { font-size: var(--text-xl); line-height: var(--leading-snug); color: var(--color-text-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--brand-400);
  border-radius: var(--radius-full);
}
.eyebrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-400);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .eyebrow::after { animation: eyebrow-pulse 2.2s ease-in-out infinite; }
}
@keyframes eyebrow-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.6); }
}
section[data-theme="dark"] .eyebrow { color: var(--brand-300); }

/* ---- Layout -------------------------------------------------------------- */
.container { max-width: var(--container-max); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--space-9); position: relative; overflow: clip; }
.section--tight { padding-block: var(--space-8); }
section[data-theme="dark"] {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
section[data-theme="dark"] p { color: var(--color-text-on-dark-muted); }
section[data-theme="dark"] h1, section[data-theme="dark"] h2, section[data-theme="dark"] h3 { color: var(--white); }
section[data-theme="alt"] { background: var(--color-bg-alt); }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.section-head { max-width: 40rem; margin-bottom: var(--space-7); }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); max-width: none; }

/* Ambient glow shapes — decorative, CSS-only */
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: 0.35; }
@media (min-width: 768px) { .glow { filter: blur(140px); } }
.glow--brand { background: var(--brand-400); }
.glow--deep { background: var(--brand-700); }
@media (prefers-reduced-motion: no-preference) {
  .glow { animation: float 14s ease-in-out infinite alternate; }
}
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-2%, 3%) scale(1.08); } }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 3px; }
.btn--primary { background: var(--brand-400); color: var(--ink-900); }
.btn--primary:hover { box-shadow: var(--glow-brand); background: var(--brand-300); }
.btn--ghost { border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-600); }
section[data-theme="dark"] .btn--ghost { border-color: var(--color-border-dark); color: var(--white); }
section[data-theme="dark"] .btn--ghost:hover { border-color: var(--brand-400); color: var(--brand-300); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }

/* ---- Header / Nav ---------------------------------------------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding-block: var(--space-4);
  transition: padding var(--duration-base) var(--ease), background var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}
.site-header__bar {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  background: rgba(247, 249, 250, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease);
}
.site-header.is-scrolled .site-header__bar { box-shadow: var(--shadow-md); }
.site-header__logo img { height: 1.75rem; width: auto; }
.site-header__logo .logo-dark { display: block; }
.site-header__logo .logo-light { display: none; }
.site-nav { display: none; align-items: center; gap: var(--space-1); }
.site-nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--slate-100); color: var(--ink-900); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-display); font-size: var(--text-xs); font-weight: 700; }
.lang-switch button {
  background: none; border: none; padding: 0.3rem 0.5rem; border-radius: var(--radius-full); color: var(--slate-400);
}
.lang-switch button[aria-pressed="true"] { color: var(--ink-900); background: var(--slate-100); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--color-border);
  background: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 1.15rem; height: 1.15rem; }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--color-bg);
  padding: calc(var(--header-h) + var(--space-6)) var(--space-5) var(--space-6);
  transform: translateY(-100%);
  transition: transform var(--duration-base) var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a { display: block; font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.mobile-nav .btn { margin-top: var(--space-5); }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + var(--space-8)); padding-bottom: var(--space-9); }
.hero__title { margin-block: var(--space-4); max-width: 20ch; }
.hero__subtitle { max-width: 36ch; font-size: var(--text-lg); }
.hero__cta { margin-top: var(--space-6); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 160, 209, 0.16), transparent 65%);
  transition: opacity var(--duration-base) var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
section[data-theme="dark"] .card { background: rgba(255, 255, 255, 0.04); border-color: var(--color-border-dark); }
section[data-theme="dark"] .card:hover { background: rgba(255, 255, 255, 0.08); }
.card__icon { width: 3rem; height: 3rem; border-radius: var(--radius-sm); background: var(--brand-100); display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-5); color: var(--brand-600); transition: transform var(--duration-base) var(--ease); }
.card:hover .card__icon { transform: scale(1.1) rotate(-4deg); }
section[data-theme="dark"] .card__icon { background: rgba(0, 160, 209, 0.15); color: var(--brand-300); }
.card__title { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card__text { font-size: var(--text-sm); flex-grow: 1; }
.card__link { margin-top: var(--space-5); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand-600); }
section[data-theme="dark"] .card__link { color: var(--brand-300); }
.card__link svg { width: 1rem; height: 1rem; transition: transform var(--duration-fast) var(--ease); }
.card:hover .card__link svg { transform: translateX(3px); }
a.card { color: inherit; }

/* Product card variant */
.card--product { align-items: flex-start; }
.card--product .card__logo { height: 2rem; margin-bottom: var(--space-5); }
.card--product .card__logo img { height: 100%; width: auto; }

/* ---- Pillars --------------------------------------------------------- */
.pillars { counter-reset: pillar; }
.pillar { position: relative; padding-top: var(--space-5); border-top: 1px solid var(--color-border-dark); }
.pillar__index { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; color: var(--brand-400); margin-bottom: var(--space-3); display: block; }
.pillar__title { font-size: var(--text-2xl); margin-bottom: var(--space-2); }

/* ---- Stats ------------------------------------------------------------- */
.stats { border-top: 1px solid var(--color-border-dark); border-bottom: 1px solid var(--color-border-dark); padding-block: var(--space-6); }
.stat__value { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 800; color: var(--brand-400); font-variant-numeric: tabular-nums; }
.stat__label { font-size: var(--text-sm); color: var(--color-text-on-dark-muted); margin-top: var(--space-2); }

/* ---- Clients / partners --------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-7); }
.filter-btn {
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-full); border: 1px solid var(--color-border);
  background: var(--white); color: var(--color-text-muted);
  transition: all var(--duration-fast) var(--ease);
}
.filter-btn[aria-pressed="true"] { background: var(--ink-900); color: var(--white); border-color: var(--ink-900); }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.client-tile { background: var(--white); aspect-ratio: 5 / 3; display: flex; align-items: center; justify-content: center; padding: var(--space-4); transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.client-tile:hover { background: var(--paper); transform: scale(1.03); position: relative; z-index: 1; }
.client-tile img { max-height: 4rem; max-width: 85%; width: auto; filter: grayscale(1) opacity(0.7); transition: filter var(--duration-fast) var(--ease); }
.client-tile:hover img { filter: grayscale(0) opacity(1); }
.client-tile[hidden] { display: none; }
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } .client-tile img { max-height: 3.25rem; } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

.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; align-items: center; gap: var(--space-9); width: max-content; }
@media (prefers-reduced-motion: no-preference) { .marquee__track { animation: marquee 32s linear infinite; } }
.marquee--slow .marquee__track { animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner-logo { height: 2.5rem; width: auto; opacity: 0.85; transition: opacity var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.partner-logo:hover { opacity: 1; transform: scale(1.06); }
.client-logo-lg { height: 3.75rem; width: auto; filter: grayscale(1) opacity(0.75); transition: filter var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); flex-shrink: 0; }
.client-logo-lg:hover { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* ---- News --------------------------------------------------------------- */
.news-card__meta { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; color: var(--brand-500); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); display: flex; gap: var(--space-3); }
.news-article__header { padding-top: calc(var(--header-h) + var(--space-7)); }
.news-article__body { max-width: var(--container-narrow); margin-inline: auto; font-size: var(--text-lg); line-height: var(--leading-normal); }
.news-article__body p + p { margin-top: var(--space-5); }

/* ---- Service / product detail ------------------------------------------ */
.detail-hero { padding-top: calc(var(--header-h) + var(--space-8)); }
.detail-block { border-top: 1px solid var(--color-border); padding-block: var(--space-6); }
.detail-block__label { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); color: var(--brand-600); margin-bottom: var(--space-3); }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 640px) { .feature-list { grid-template-columns: 1fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag { font-size: var(--text-xs); font-weight: 600; padding: 0.4rem 0.8rem; border-radius: var(--radius-full); background: var(--slate-100); color: var(--color-text-muted); }

/* ---- Breadcrumb ---------------------------------------------------------- */
.breadcrumb { display: flex; gap: var(--space-2); font-size: var(--text-xs); color: var(--slate-400); padding-top: calc(var(--header-h) + var(--space-5)); }
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--brand-600); }

/* ---- Forms --------------------------------------------------------------- */
.form-field { margin-bottom: var(--space-5); }
.form-field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-2); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--paper); transition: border-color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-400); background: var(--white); }
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-status { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: 600; }
.form-status[data-state="success"] { color: #0a8a4b; }
.form-status[data-state="error"] { color: #c0392b; }
.form-status:empty { display: none; }
.field-error { margin-top: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: #c0392b; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-info a { font-family: var(--font-display); font-weight: 600; }
.contact-info a:hover { color: var(--brand-600); }

/* ---- Footer --------------------------------------------------------------- */
.site-footer { background: var(--brand-900); color: var(--color-text-on-dark); padding-block: var(--space-8) var(--space-6); }
.site-footer a { color: var(--color-text-on-dark-muted); transition: color var(--duration-fast) var(--ease); }
.site-footer a:hover { color: var(--white); }
.site-footer__top { display: flex; justify-content: space-between; gap: var(--space-7); flex-wrap: wrap; padding-bottom: var(--space-7); margin-bottom: var(--space-6); border-bottom: 1px solid var(--color-border-dark); }
.site-footer__brand img { height: 1.75rem; margin-bottom: var(--space-4); }
.site-footer__brand p { max-width: 26rem; }
.site-footer__cols { display: flex; gap: var(--space-9); flex-wrap: wrap; }
.site-footer__col h4 { color: var(--white); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--text-sm); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--slate-400); }

/* ---- Reveal on scroll ------------------------------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Accessible default: honor the OS/browser's real prefers-reduced-motion — no motion. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .glow, .marquee__track, .eyebrow::after { animation: none; }
}

/* Reviewer override (?motion=on, see content.js): re-enables motion even if the OS/session
   reports prefers-reduced-motion (e.g. locked-down VDI/enterprise sessions). Higher specificity
   than the plain rules above, so it always wins for visitors who explicitly opted in. Real
   visitors are unaffected — this class is only ever added by the manual ?motion=on trigger. */
html.motion-ok .glow { animation: float 14s ease-in-out infinite alternate; }
html.motion-ok .marquee__track { animation: marquee 32s linear infinite; }
html.motion-ok .marquee--slow .marquee__track { animation-duration: 46s; }
html.motion-ok .eyebrow::after { animation: eyebrow-pulse 2.2s ease-in-out infinite; }
html.motion-ok [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.motion-ok [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---- Utilities ------------------------------------------------------------ */
.sr-only { position: absolute; 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; left: -999px; top: 0; background: var(--brand-400); color: var(--ink-900); padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 var(--radius-sm) 0; font-weight: 700; }
.skip-link:focus { left: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- 404 ------------------------------------------------------------------ */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: var(--header-h); }
.error-page__code { font-family: var(--font-display); font-size: var(--text-6xl); font-weight: 800; color: var(--brand-400); }

/* Language switch: links instead of buttons (works without JS) — same look as the reference site's buttons */
.lang-switch a { background: none; border: none; padding: 0.3rem 0.5rem; border-radius: var(--radius-full); color: var(--slate-400); }
.lang-switch a[aria-pressed="true"] { color: var(--ink-900); background: var(--slate-100); }
