/* ==========================================================================
   AIRAA SRL — style
   Design tokens, reset, typography, layout and every component.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — the site stays light at every level. */
  --bg: #fafafa;
  --bg-tint: #f4f6fc;
  --white: #ffffff;

  /* Ink — dark values are for text only, never for section backgrounds. */
  --ink-900: #0b1220;
  --ink-800: #131c30;
  --ink-700: #1e293b;
  --ink-600: #334155;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;

  /* Brand */
  --brand-700: #2743cf;
  --brand-600: #3355e8;
  --brand-500: #4b6bff;
  --brand-400: #7c8fff;
  --brand-200: #c6d0ff;
  --violet: #7c6bf5;
  /* Deeper violet reserved for surfaces that carry white text — the light
     --violet only reaches 3.98:1 against white, which fails WCAG AA. */
  --violet-deep: #6449e3;
  --violet-200: #ddd7ff;
  --cyan: #35c6e8;
  --cyan-200: #c5eefa;

  /* Lines & glass */
  --line: rgba(15, 23, 42, 0.08);
  --line-soft: rgba(15, 23, 42, 0.055);
  --line-strong: rgba(15, 23, 42, 0.14);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.85);

  /* Shadows — soft and slightly blue so they read as light, not grime. */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(23, 37, 84, 0.16);
  --shadow-lg: 0 24px 60px -24px rgba(23, 37, 84, 0.22);
  --shadow-xl: 0 40px 90px -36px rgba(23, 37, 84, 0.26);
  --shadow-brand: 0 16px 40px -16px rgba(51, 85, 232, 0.45);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 34px;
  --r-pill: 999px;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Arial, sans-serif;

  /* Rhythm */
  /* 1280 rather than 1200: the primary nav carries eight items plus a brand
     lockup and a CTA, which needs ~1130px before anything wraps. */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* A single fixed wash keeps every section on the same luminous base. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 12% -8%, rgba(75, 107, 255, 0.11), transparent 62%),
    radial-gradient(52rem 38rem at 92% 4%, rgba(124, 107, 245, 0.1), transparent 60%),
    radial-gradient(46rem 34rem at 50% 100%, rgba(53, 198, 232, 0.09), transparent 62%),
    var(--bg);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color 0.22s var(--ease-soft);
}

a:hover {
  color: var(--brand-700);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(75, 107, 255, 0.18);
  color: var(--ink-900);
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1,
.h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2,
.h2 {
  font-size: clamp(1.95rem, 3.9vw, 3rem);
}

h3,
.h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.6rem);
  line-height: 1.28;
  letter-spacing: -0.022em;
}

h4 {
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -0.018em;
}

p {
  text-wrap: pretty;
}

strong {
  color: var(--ink-800);
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-500);
}

.small {
  font-size: 0.875rem;
  line-height: 1.62;
}

.muted {
  color: var(--ink-400);
}

.gradient-text {
  background: linear-gradient(104deg, var(--brand-600) 8%, var(--violet) 52%, var(--cyan) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.section {
  position: relative;
  padding-block: var(--section-y);
  /* The ambient orbs are absolutely positioned and deliberately oversized. On
     a narrow screen an unclipped orb extends past the viewport and widens the
     whole document, which stretches every position:fixed element (header,
     mobile drawer, cookie banner) beyond the screen while in-flow content
     stays at viewport width — the two then visibly disagree.
     `clip`, not `hidden`: clip does not create a scroll container, so the
     sticky table of contents on the legal pages keeps working. */
  overflow-x: clip;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-top: 1.125rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.125rem;
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-xs);
  color: var(--ink-600);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--cyan));
  box-shadow: 0 0 0 4px rgba(75, 107, 255, 0.14);
}

.grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.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)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }

.center { text-align: center; }

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
    background-color 0.28s var(--ease-soft), border-color 0.28s var(--ease-soft),
    color 0.28s var(--ease-soft);
}

.btn:active { transform: translateY(1px); }

.btn .icon {
  transition: transform 0.28s var(--ease);
}

.btn:hover .icon--arrow { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(128deg, var(--brand-600), var(--violet-deep) 92%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -16px rgba(51, 85, 232, 0.55);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--brand-700);
  border-color: rgba(75, 107, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  padding-inline: 0.25rem;
  color: var(--brand-600);
}

.btn-ghost:hover {
  color: var(--brand-700);
}

.btn-lg {
  padding: 1.0625rem 1.9rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
}

.text-link .icon { transition: transform 0.28s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   8. Header / navigation
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-weight: 600;
  transform: translate(-50%, -120%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand-500), var(--violet) 55%, var(--cyan));
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft), backdrop-filter 0.35s var(--ease-soft);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 250, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 6px 26px -18px rgba(23, 37, 84, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  /* color: var(--ink-900); */
  font-family: var(--font-display);
  letter-spacing: -0.028em;
}

.brand:hover { color: var(--ink-900); }

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(51, 85, 232, 0.65);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.0625rem;
  font-weight: 800;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.66rem;
  border-radius: var(--r-pill);
  color: var(--ink-600);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  transition: color 0.24s var(--ease-soft), background-color 0.24s var(--ease-soft);
}

.nav-link:hover {
  color: var(--ink-900);
  background: rgba(15, 23, 42, 0.045);
}

.nav-link[aria-current="page"] {
  color: var(--brand-700);
  font-weight: 600;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--brand-500), var(--cyan));
}

/* Paired with the brand's margin-right:auto, this splits the leftover space
   evenly and optically centres the link group between brand and CTA. */
.nav-cta {
  flex: none;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink-800);
  box-shadow: var(--shadow-xs);
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 1.25rem var(--gutter) 2.5rem;
  background: rgba(250, 250, 250, 0.92);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease-soft), transform 0.34s var(--ease),
    visibility 0.3s;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav ul {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--glass);
  color: var(--ink-800);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.mobile-nav a[aria-current="page"] {
  border-color: rgba(75, 107, 255, 0.32);
  color: var(--brand-700);
}

.mobile-nav .btn { margin-top: 1.25rem; width: 100%; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero .lead { max-width: 34rem; }

.hero__actions { margin-top: 2.25rem; }

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  color: var(--ink-400);
  font-size: 0.8125rem;
}

.hero__note .icon { color: var(--brand-500); }

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.page-hero h1 { margin-bottom: 1.375rem; }
.page-hero .lead { max-width: 46rem; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--ink-400);
}

.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-300); }

/* Hero network visual --------------------------------------------------- */

.hero-viz {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 520 / 470;
}

.hero-viz__map {
  position: absolute;
  inset: 6% 2% 10%;
  width: 96%;
  height: auto;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 82%);
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 82%);
  pointer-events: none;
}

.hero-viz__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hv-line {
  fill: none;
  stroke: url(#hvStroke);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.75;
}


.hv-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0.7rem 0.85rem;
  width: 30%;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-md);
}

.hv-node__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hv-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(140deg, rgba(75, 107, 255, 0.18), rgba(53, 198, 232, 0.14));
  color: var(--brand-600);
}

.hv-node strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.25;
}

.hv-node span {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-400);
  line-height: 1.35;
}

.hv-bar {
  margin-top: 0.55rem;
  height: 4px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.hv-bar i {
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan));
}

.hv-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  gap: 0.1rem;
  width: 33%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(238, 242, 255, 0.82));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px -22px rgba(51, 85, 232, 0.5),
    inset 0 0 0 8px rgba(255, 255, 255, 0.55);
  text-align: center;
}

.hv-core b {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink-900);
}

.hv-core span {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.hv-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(75, 107, 255, 0.28);
  pointer-events: none;
}

.hv-label {
  position: absolute;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. Qualitative pillars (no invented statistics)
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--line-soft);
  box-shadow: var(--shadow-md);
}

.pillar {
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background-color 0.4s var(--ease-soft);
}

.pillar:hover { background: rgba(255, 255, 255, 0.98); }

.pillar .icon { color: var(--brand-500); margin-bottom: 0.9rem; }

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.pillar span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: var(--ink-400);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   11. Vision
   -------------------------------------------------------------------------- */

.vision {
  position: relative;
  overflow: hidden;
}

.vision__panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
}

.vision__statement {
  position: relative;
  max-width: 22ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}

.vision__statement em {
  font-style: normal;
  background: linear-gradient(104deg, var(--brand-600), var(--violet) 55%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vision__body {
  max-width: 46rem;
  margin: 1.75rem auto 0;
}

.vision__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(28rem 18rem at 18% 12%, rgba(75, 107, 255, 0.16), transparent 62%),
    radial-gradient(26rem 18rem at 84% 82%, rgba(124, 107, 245, 0.16), transparent 62%),
    radial-gradient(22rem 16rem at 62% 8%, rgba(53, 198, 232, 0.14), transparent 62%);
}

/* --------------------------------------------------------------------------
   12. Mission list
   -------------------------------------------------------------------------- */

.mission-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.4rem 1.5rem;
}

.mission-card .icon-chip {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border-radius: 13px;
}

.mission-card .icon { width: 19px; height: 19px; }

.mission-card p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-800);
  letter-spacing: -0.015em;
}

.mission-card small {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-400);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. Workflow (employers) & process timeline
   -------------------------------------------------------------------------- */

.workflow {
  display: grid;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.workflow__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.36s var(--ease), border-color 0.36s var(--ease-soft),
    background-color 0.36s var(--ease-soft);
}

.workflow__step:hover {
  transform: translateX(4px);
  border-color: rgba(75, 107, 255, 0.28);
  background: #fff;
}

.workflow__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand-600), var(--violet-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow__step strong {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-900);
}

/* The step's text spans. .workflow__num is excluded: it is also a span inside
   .workflow__step, and this selector outranks it (0,1,1 vs 0,1,0), so without
   the :not() it repainted the step number grey on the blue chip and replaced
   its grid centring with display:block. */
.workflow__step span:not(.workflow__num) {
  display: block;
  font-size: 0.8125rem;
  color: var(--ink-400);
  line-height: 1.5;
}

.workflow__arrow {
  display: grid;
  place-items: center;
  height: 18px;
  color: var(--brand-300, var(--brand-400));
}

.workflow__arrow .icon { width: 16px; height: 16px; opacity: 0.7; }

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(75, 107, 255, 0.12), rgba(124, 107, 245, 0.12));
}

.timeline__progress {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  width: 0;
  max-width: 88%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-500), var(--violet) 55%, var(--cyan));
  transition: width 1.6s var(--ease);
}

.timeline__step { text-align: center; }

.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.125rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  color: var(--brand-600);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease-soft);
}

.timeline__step:hover .timeline__dot {
  transform: translateY(-4px);
  border-color: rgba(75, 107, 255, 0.35);
}

.timeline__num {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-600);
}

.timeline__step h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.timeline__step p {
  font-size: 0.8438rem;
  color: var(--ink-400);
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   14. NATO  map
   -------------------------------------------------------------------------- */

.NATO -layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.map-stage {
  position: relative;
  aspect-ratio: 666 / 498;
  padding: 0;
  overflow: hidden;
}

.map-stage__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.map-stage__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-link {
  fill: none;
  stroke: rgba(75, 107, 255, 0.45);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
}

.map-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-hotspot::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: linear-gradient(140deg, var(--brand-500), var(--violet));
  box-shadow: 0 4px 12px -3px rgba(51, 85, 232, 0.6);
  transition: transform 0.32s var(--ease);
}

.map-hotspot::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1.5px solid rgba(75, 107, 255, 0.6);
  opacity: 0;
}

.map-hotspot:hover::before,
.map-hotspot[aria-current="true"]::before {
  transform: scale(1.35);
}

.map-hotspot[aria-current="true"]::after {
  animation: ping 2.4s var(--ease-soft) infinite;
}

@keyframes ping {
  0% { opacity: 0.8; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(3.2); }
}

.map-hotspot__label {
  position: absolute;
  top: calc(50% + 15px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xs);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-600);
  white-space: nowrap;
  pointer-events: none;
}

.map-hotspot[aria-current="true"] .map-hotspot__label {
  border-color: rgba(75, 107, 255, 0.4);
  color: var(--brand-700);
}

.map-detail { padding: clamp(1.5rem, 2.6vw, 2rem); }
.map-detail h3 { margin-bottom: 0.5rem; }
.map-detail p { color: var(--ink-500); font-size: 0.9375rem; }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.tag {
  padding: 0.32rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-500);
}

.map-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   15. Leadership
   -------------------------------------------------------------------------- */

.leader {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.leader__portrait {
  position: relative;
  padding: 12px;
  border-radius: var(--r-2xl);
}

.leader__portrait img {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: linear-gradient(160deg, #eef2ff, #f7fbff);
}

.leader__badge {
  position: absolute;
  right: -12px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.leader__badge .icon { color: var(--brand-600); }

.leader__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--ink-900);
}

.leader__badge span {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-400);
}

.quote {
  position: relative;
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
}

.quote__mark {
  color: var(--brand-200);
  margin-bottom: 1rem;
}

.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.9vw, 1.375rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -0.022em;
  color: var(--ink-800);
}

.quote figcaption {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  color: var(--ink-500);
}

.quote figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-900);
}

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px dashed rgba(75, 107, 255, 0.4);
  border-radius: 7px;
  background: rgba(75, 107, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-700);
  /* Long placeholders (a full address) sit in narrow footer and card columns,
     so they must be free to wrap rather than blow out the grid. */
  white-space: normal;
  text-wrap: balance;
}

/* Layout wrapper around a {{contact.*}} value. It only positions the value —
   whether that value looks like a dashed "still to fill in" chip or plain text
   is decided by the builder, which emits .placeholder-tag inside this span for
   values that are still unconfirmed. */
.contact-value {
  font-weight: 500;
  color: var(--ink-700);
  white-space: normal;
}

/* Photography slots ------------------------------------------------------
   .media is the frame; the aspect-ratio comes inline from the manifest so a
   pending slot occupies exactly the space its photo will. */

.media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.media--tall { border-radius: var(--r-xl); }

/* Pending slot: brand-tinted, clearly a slot rather than a broken image. */
.media--pending {
  display: grid;
  place-items: center;
  padding: 1rem;
  border-style: dashed;
  border-color: rgba(75, 107, 255, 0.35);
  background:
    linear-gradient(140deg, rgba(75, 107, 255, 0.08), rgba(53, 198, 232, 0.06)),
    #fff;
  box-shadow: none;
}

.media__slot {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.media__file {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-700);
  word-break: break-word;
}

.media__dim {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-400);
}

/* A caption sitting under a media frame. */
.media-figure { margin: 0; }

.media-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-400);
}

/* Three-up photo band. */
.media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.media-row .media-figure figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-700);
}

.media-row .media-figure figcaption small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-400);
}

/* --------------------------------------------------------------------------
   16. Notice / callout
   -------------------------------------------------------------------------- */

.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(75, 107, 255, 0.22);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(75, 107, 255, 0.07), rgba(53, 198, 232, 0.05));
}

.notice .icon { color: var(--brand-600); margin-top: 2px; }

.notice strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-display);
  color: var(--ink-900);
}

.notice p { font-size: 0.9063rem; color: var(--ink-500); }

/* Checklist */
.checklist { display: grid; gap: 0.875rem; }

.checklist li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--ink-500);
}

.checklist .icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(75, 107, 255, 0.1);
  color: var(--brand-600);
  stroke-width: 2.4;
}

/* Document library — the Romanian title of a record, and its key facts.
   Scoped to .card so it outranks the `.card p` colour and size. */
.card .doc-native {
  margin-top: -0.25rem;
  margin-bottom: 0.625rem;
  font-size: 0.8438rem;
  font-style: italic;
  color: var(--ink-400);
}

.doc-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8438rem;
  line-height: 1.5;
}

.doc-meta > div {
  display: grid;
  grid-template-columns: 10.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.doc-meta dt {
  color: var(--ink-400);
  font-weight: 500;
}

.doc-meta dd { color: var(--ink-700); }

/* --------------------------------------------------------------------------
   17. CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(30rem 20rem at 20% 0%, rgba(75, 107, 255, 0.16), transparent 64%),
    radial-gradient(30rem 20rem at 82% 100%, rgba(124, 107, 245, 0.16), transparent 64%);
}

.cta-panel h2 { max-width: 20ch; margin-inline: auto; }
.cta-panel p { max-width: 44rem; margin: 1.25rem auto 0; }
.cta-panel .btn-row { margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   18. Forms
   -------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}

.form { padding: clamp(1.5rem, 3vw, 2.5rem); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}

.field .req { color: var(--brand-600); }

.field .hint {
  font-size: 0.75rem;
  color: var(--ink-400);
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-800);
  font-size: 0.9375rem;
  transition: border-color 0.24s var(--ease-soft), box-shadow 0.24s var(--ease-soft),
    background-color 0.24s var(--ease-soft);
}

.input::placeholder,
.textarea::placeholder { color: var(--ink-400); }

.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(75, 107, 255, 0.35); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(75, 107, 255, 0.14);
}

.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.textarea { min-height: 140px; resize: vertical; }

.field-error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #b42318;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea {
  border-color: #e5735f;
  box-shadow: 0 0 0 4px rgba(229, 115, 95, 0.12);
}

.field.has-error .field-error { display: flex; }

/* Enquiry type segmented control */
.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
}

.segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8438rem;
  font-weight: 600;
  color: var(--ink-500);
  text-align: center;
  cursor: pointer;
  transition: background-color 0.26s var(--ease-soft), color 0.26s var(--ease-soft),
    box-shadow 0.26s var(--ease-soft);
}

.segmented input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.segmented label:hover { color: var(--ink-800); }

.segmented input:checked + span {
  color: var(--brand-700);
}

.segmented label:has(input:checked) {
  background: #fff;
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--brand-600);
  outline-offset: 4px;
  border-radius: 4px;
}

.checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.8438rem;
  color: var(--ink-500);
  line-height: 1.55;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--brand-600);
}

.form-status {
  display: none;
  gap: 0.7rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border-radius: var(--r-md);
  font-size: 0.9063rem;
}

.form-status.is-visible { display: flex; }

.form-status--ok {
  border: 1px solid rgba(16, 145, 106, 0.28);
  background: rgba(16, 185, 129, 0.08);
  color: #0b6b50;
}

.form-status--error {
  border: 1px solid rgba(180, 35, 24, 0.24);
  background: rgba(229, 115, 95, 0.08);
  color: #a13327;
}

.form-status .icon { margin-top: 2px; flex: none; }

/* Spam honeypot. Clipped to a 1px box rather than pushed off-screen with a
   large negative offset, so it can never contribute to document width. */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Contact detail list */
.contact-cards { display: grid; gap: 1rem; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.375rem;
}

.contact-card .icon-chip {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  border-radius: 13px;
}

.contact-card .icon { width: 19px; height: 19px; }

.contact-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink-900);
}

/* The card's text spans. .icon-chip is excluded: it is also a span inside
   .contact-card and this selector outranks it (0,1,1 vs 0,1,0), so without the
   :not() it replaced the chip's grid centring with display:block and left the
   icon sitting above the middle of the chip. */
.contact-card span:not(.icon-chip),
.contact-card a {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.6;
}

.contact-card a:hover { color: var(--brand-600); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.88));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(5, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 3.5vw, 3rem);
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 1.125rem;
  font-size: 0.875rem;
  color: var(--ink-400);
  line-height: 1.7;
}

.footer-brand .brand { margin-right: 0; }

.footer-col h3 {
  margin-bottom: 1.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.footer-col ul { display: grid; gap: 0.7rem; }

.footer-col a,
.footer-col span {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.5;
}

.footer-col a:hover { color: var(--brand-700); }

.footer-col .placeholder-tag { font-size: 0.7rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink-400);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom a { color: var(--ink-400); }
.footer-bottom a:hover { color: var(--brand-700); }

/* --------------------------------------------------------------------------
   20. Cookie consent
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 130;
  width: min(1080px, calc(100% - 2 * clamp(0.75rem, 3vw, 1.5rem)));
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  display: none;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  transform: translate(-50%, 130%);
  transition: transform 0.55s var(--ease), opacity 0.4s var(--ease-soft);
  opacity: 0;
}

.cookie-banner.is-mounted { display: flex; }
.cookie-banner.is-open { transform: translate(-50%, 0); opacity: 1; }

.cookie-banner__body { flex: 1 1 auto; min-width: 0; }

.cookie-banner__body strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-900);
}

.cookie-banner__body strong .icon { color: var(--brand-600); }

.cookie-banner__body p {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.62;
}

.cookie-banner__body a { font-weight: 500; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex: none;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  background: rgba(15, 23, 42, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s var(--ease-soft), visibility 0.32s;
}

/* Author styles beat the UA sheet, so [hidden] needs restating here or the
   modal stays laid out (invisible, but present) while closed. */
.modal[hidden] { display: none; }

.modal.is-open { opacity: 1; visibility: visible; }

.modal__dialog {
  width: min(640px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  transform: translateY(14px) scale(0.985);
  transition: transform 0.42s var(--ease);
}

.modal.is-open .modal__dialog { transform: none; }

.modal__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.125rem;
  border-bottom: 1px solid var(--line-soft);
}

.modal__head h2 { font-size: 1.25rem; }
.modal__head p { margin-top: 0.35rem; font-size: 0.875rem; color: var(--ink-400); }

.modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-500);
  transition: color 0.24s var(--ease-soft), border-color 0.24s var(--ease-soft);
}

.modal__close:hover { color: var(--ink-900); border-color: var(--line-strong); }

.modal__body {
  padding: 1.25rem 1.75rem;
  overflow-y: auto;
  display: grid;
  gap: 0.75rem;
}

.modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  justify-content: flex-end;
  padding: 1.125rem 1.75rem 1.5rem;
  border-top: 1px solid var(--line-soft);
}

.consent-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
}

.consent-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  color: var(--ink-900);
}

.consent-row p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ink-400);
  line-height: 1.6;
}

/* Switch */
.switch {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.14);
  transition: background-color 0.28s var(--ease-soft);
  pointer-events: none;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease);
}

.switch input:checked + span {
  background: linear-gradient(120deg, var(--brand-600), var(--violet-deep));
}

.switch input:checked + span::after { transform: translateX(20px); }

.switch input:disabled + span { opacity: 0.62; }
.switch input:disabled { cursor: not-allowed; }

.switch input:focus-visible + span {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   21. Legal / long-form pages
   -------------------------------------------------------------------------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.375rem 1.25rem;
  max-height: calc(100vh - var(--header-h) - 60px);
  overflow-y: auto;
}

.legal-toc h2 {
  margin-bottom: 0.875rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

.legal-toc ol { display: grid; gap: 0.15rem; counter-reset: toc; }

.legal-toc a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 9px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-500);
  transition: background-color 0.22s var(--ease-soft), color 0.22s var(--ease-soft);
}

.legal-toc a:hover,
.legal-toc a.is-active {
  background: rgba(75, 107, 255, 0.08);
  color: var(--brand-700);
}

.legal-body {
  padding: clamp(1.75rem, 3.5vw, 3rem);
}

.legal-body > section + section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line-soft);
}

.legal-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.legal-body h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-body p,
.legal-body li {
  color: var(--ink-500);
  font-size: 0.9375rem;
  line-height: 1.78;
}

.legal-body p + p { margin-top: 0.875rem; }

.legal-body ul,
.legal-body ol {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-body ol { list-style: decimal; }

.legal-body li::marker { color: var(--brand-400); }

.legal-body .notice { margin-top: 1.5rem; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-400);
}

.definition-list { display: grid; gap: 1rem; margin-top: 1.25rem; }

.definition-list > div {
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.66);
}

.definition-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-900);
  margin-bottom: 0.3rem;
}

.definition-list dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.7;
}

.table-wrap {
  margin-top: 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.7);
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(75, 107, 255, 0.05);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-700);
  text-align: left;
}

tbody td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-500);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   23. Utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.no-js [data-reveal] { opacity: 1; transform: none; }
