/* ==========================================================================
   Frequento — main stylesheet
   Design source: materijali/Frequento_predlozak.pptx (slide 10 = brand sheet)
   Order: 1 tokens · 2 fonts · 3 base · 4 layout · 5 components
          6 header/nav · 7 sections · 8 footer · 9 legal page · 10 motion · 11 print
   Rule: use the custom properties below; never hard-code new colours.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Brand palette (PPTX slide 10) */
  --c-aubergine: #3f345b;
  --c-aubergine-deep: #2e2645;
  --c-violet: #6a5a8f;
  --c-lavender: #b59bc8;
  --c-sky: #7fa4c8;
  --c-rose: #d08ab6;
  --c-sage: #8fb79b;
  --c-mist: #c9d4e6;
  --c-ice: #eef2f8;
  --c-lavender-on-dark: #d3c2e0;   /* lavender lifted for AA text contrast on --g-dusk */
  --c-white: #ffffff;

  /* Text roles */
  --c-heading: var(--c-aubergine);
  --c-text: #5c5279;               /* body text used on the slides */
  --c-on-dark: #ffffff;
  --c-on-dark-muted: #dde6f3;      /* subtitle colour on dark slides */
  --c-on-dark-soft: #c9d4e6;
  --c-link: var(--c-violet);
  --c-focus: var(--c-sky);

  /* Gradients */
  --g-dusk: linear-gradient(160deg, #3f345b 0%, #4c4072 38%, #6a5a8f 72%, #9583b6 100%);
  --g-mark: linear-gradient(180deg, var(--c-sky) 0%, var(--c-lavender) 55%, var(--c-rose) 100%);
  --g-bloom: linear-gradient(160deg, #ada6cf 0%, #c59ac8 55%, #a97dae 100%);

  /* Typography (Century Gothic look-alike, self-hosted) */
  --font-sans: "TeX Gyre Adventor", "Century Gothic", CenturyGothic, "URW Gothic", AppleGothic, system-ui, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  --fs-h1: clamp(2.25rem, 1.45rem + 3.2vw, 3.75rem);
  --fs-display: clamp(1.625rem, 1.15rem + 1.9vw, 2.625rem);
  --lh-tight: 1.12;
  --lh-snug: 1.3;
  --lh-body: 1.7;

  /* Spacing & shape */
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --gap: clamp(1rem, 2.5vw, 2rem);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --header-h: 4.5rem;

  --shadow-sm: 0 1px 2px rgb(63 52 91 / 0.06), 0 2px 8px rgb(63 52 91 / 0.06);
  --shadow-md: 0 10px 30px -12px rgb(63 52 91 / 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* 2. Fonts ----------------------------------------------------------------- */
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("../fonts/texgyreadventor-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TeX Gyre Adventor";
  src: url("../fonts/texgyreadventor-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* 3. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--c-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--c-aubergine); }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

dl, dd { margin: 0; }

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

::selection { background: var(--c-lavender); color: var(--c-aubergine-deep); }

/* Inline SVG sprite holder — never display:none (gradients would break) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-aubergine);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  overflow: hidden;
  overflow: clip;          /* clip (not hidden) keeps position: sticky working inside */
  isolation: isolate;
}
.section--ice { background: var(--c-ice); }
.section--dark {
  background: var(--g-dusk);
  color: var(--c-on-dark-muted);
}
.section--dark h2,
.section--dark h3 { color: var(--c-on-dark); }

/* Recurring motif: faint Ice quarter-ring in the top-right corner (light slides) */
.section--corner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: clamp(11rem, 22vw, 19rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: clamp(2.25rem, 4.4vw, 4rem) solid var(--c-ice);
  transform: translate(50%, -50%);
}
.section--ice.section--corner::before { border-color: var(--c-white); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1.25rem; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-text);
}
.section--dark .lead { color: var(--c-on-dark-muted); }

.grid { display: grid; gap: var(--gap); }

@media (min-width: 48em) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 5. Components ------------------------------------------------------------ */

/* Eyebrow with numbered circle (PPTX slide 2: "01" circles) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-violet);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--c-sky);
  background: var(--c-ice);
  color: var(--c-violet);
  font-size: var(--fs-sm);
  letter-spacing: 0;
}
.eyebrow__num--lavender { border-color: var(--c-lavender); }
.eyebrow--plain { display: block; }
.section--dark .eyebrow { color: var(--c-lavender-on-dark); }
.section--dark .eyebrow__num {
  background: rgb(255 255 255 / 0.08);
  border-color: var(--c-lavender);
  color: var(--c-white);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn .icon { width: 1.125rem; height: 1.125rem; stroke-width: 2.25; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--c-aubergine); color: var(--c-white); }
.btn--primary:hover { background: var(--c-violet); color: var(--c-white); }
.btn--light { background: var(--c-white); color: var(--c-aubergine); }
.btn--light:hover { background: var(--c-ice); color: var(--c-aubergine); }
.btn--ghost-light { border-color: rgb(255 255 255 / 0.55); color: var(--c-white); }
.btn--ghost-light:hover { border-color: var(--c-white); background: rgb(255 255 255 / 0.08); color: var(--c-white); }

/* Outlined pills (PPTX slide 6: Pouzdano / Jasno / Ljudski) */
.pills { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 1.25rem;
  border: 2px solid var(--c-sky);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-aubergine);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
}
.pill--lavender { border-color: var(--c-lavender); }
.pill--sage { border-color: var(--c-sage); }
.pill--rose { border-color: var(--c-rose); }
.section--dark .pill,
.hero .pill { background: rgb(255 255 255 / 0.06); color: var(--c-white); }

/* Icon badge: icon in a white circle + small rose ring (PPTX slide 6/10) */
.icon-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--c-white);
  border: 1px solid #dde6f3;
  color: var(--c-violet);
}
.icon-badge .icon { width: 1.875rem; height: 1.875rem; }
.icon-badge::after {
  content: "";
  position: absolute;
  top: 0.1rem;
  right: 0.1rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--c-rose);
  background: var(--c-white);
}
.icon-badge--dark { background: var(--c-aubergine); border-color: var(--c-aubergine); color: var(--c-white); }
.icon-badge--dark::after { display: none; }

/* Cards (PPTX slide 6: Ice cards, radius ~24px) */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--c-ice);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card--white { background: var(--c-white); box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-top: 0.25rem; }
.card p { font-size: var(--fs-base); }

/* C-ring (PPTX blockArc 35°→325°, 16 % thickness) used via <use href="#c-ring"> */
.c-ring { width: 100%; height: 100%; fill: none; stroke: currentColor; }

/* Brand mark (.f) */
.brand-mark { width: 2.4rem; height: auto; aspect-ratio: 450 / 360; }

/* 6. Header & navigation ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(201 212 230 / 0.6);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-aubergine);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo:hover { color: var(--c-aubergine); }
.logo__word { transform: translateY(-0.06em); }

/* Transparent header over the dark hero (one-pager, JS only; no-JS keeps it solid) */
.js .site-header--overlay:not(.is-scrolled):not(.is-open) {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .logo,
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .nav__link,
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .nav-toggle { color: var(--c-white); }
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .lang-switch { border-color: rgb(255 255 255 / 0.35); }
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .lang-switch__link { color: var(--c-on-dark-muted); }
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .lang-switch__link[aria-current="page"] { background: var(--c-white); color: var(--c-aubergine); }
.js .site-header--overlay:not(.is-scrolled):not(.is-open) .nav__link[aria-current="true"]::after { background: var(--c-white); }
.site-header.is-scrolled { box-shadow: 0 6px 24px -18px rgb(63 52 91 / 0.6); }
.site-header.is-open { background: var(--c-white); }

.js .has-overlay-header .hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + var(--section-y)); }

.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav__list { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.75rem;
  color: var(--c-aubergine);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--c-sage);
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after,
.nav__link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav__link:hover { color: var(--c-violet); }

.lang-switch {
  display: inline-flex;
  gap: 0.125rem;
  padding: 0.2rem;
  border: 1px solid var(--c-mist);
  border-radius: var(--radius-pill);
}
.lang-switch__link {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: 0 0.6rem;
  border-radius: var(--radius-pill);
  color: var(--c-text);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.lang-switch__link:hover { color: var(--c-aubergine); background: var(--c-ice); }
.lang-switch__link[aria-current="page"] { background: var(--c-aubergine); color: var(--c-white); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-aubergine);
  cursor: pointer;
}
.nav-toggle .icon { width: 1.625rem; height: 1.625rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Mobile navigation (< 64em) */
@media (max-width: 63.99em) {
  :root { --header-h: 4rem; }
  .logo { font-size: 1.3rem; }
  .brand-mark { width: 2.1rem; }

  /* With JS: collapsible panel */
  .js .nav-toggle { display: inline-flex; }
  .js .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-mist);
    box-shadow: 0 24px 40px -24px rgb(63 52 91 / 0.45);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .js .site-header.is-open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .js .nav__list { flex-direction: column; gap: 0; }
  .js .nav__link {
    width: 100%;
    min-height: 3.25rem;
    padding-inline: 0;
    border-bottom: 1px solid var(--c-ice);
    border-radius: 0;
    font-size: 1.125rem;
  }
  .js .nav__link::after { left: auto; right: 0.25rem; bottom: 50%; transform: translateY(50%) scale(0); }
  .js .nav__link[aria-current="true"]::after,
  .js .nav__link[aria-current="page"]::after,
  .js .nav__link:hover::after { transform: translateY(50%) scale(1); }
  .js .lang-switch { align-self: flex-start; }

  /* Without JS: header grows, nav wraps below the logo */
  html:not(.js) .site-header { height: auto; position: static; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .nav { flex-wrap: wrap; gap: 0.5rem 1rem; }
  html:not(.js) .nav__list { flex-wrap: wrap; }
}

body.nav-open { overflow: hidden; }
@media (min-width: 64em) { body.nav-open { overflow: auto; } }

/* 7. Sections --------------------------------------------------------------- */

/* Hero (PPTX slide 1) */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--section-y);
  background: var(--g-dusk);
  color: var(--c-on-dark-muted);
}
.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  min-height: min(44rem, calc(100svh - var(--header-h) - 2 * var(--section-y) + 6rem));
}
.hero h1 { color: var(--c-white); max-width: 15em; }
.hero .eyebrow { color: var(--c-lavender-on-dark); margin-bottom: 1.5rem; }
.hero__lead { margin-top: 1.5rem; max-width: 34em; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.hero .pills { margin-top: 2.5rem; }

.hero__art {
  position: relative;
  justify-self: center;
  width: min(80%, 19rem);
}
.hero__art::before {          /* large translucent disc behind the mark */
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  transform: translate(-42%, -50%);
}
.hero__art svg { width: 100%; height: auto; overflow: visible; }

@media (min-width: 64em) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__art { width: 100%; justify-self: end; }
}

/* About (PPTX slide 4) */
.about { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__body { margin-top: 1.5rem; }
.about__text .lead { color: var(--c-aubergine); }
.about__visual { position: relative; justify-self: center; width: min(100%, 24rem); }
.about__visual svg { width: 100%; height: auto; }
.quote {
  position: relative;
  margin: 2.5rem 0 0;
  padding: 1.75rem 1.75rem 1.75rem 5.25rem;
  border-radius: var(--radius-lg);
  background: var(--c-ice);
  color: var(--c-aubergine);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.5;
}
.quote__ring {
  position: absolute;
  left: 1.5rem;
  top: 1.75rem;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--c-rose);
}
@media (min-width: 64em) {
  .about { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}

/* Services (PPTX slide 6) */
.services-head {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.services-head .section-head { margin-bottom: 0; }
@media (min-width: 64em) {
  .services-head { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Product band — DocDoc.C (PPTX slide 3 look) */
.section--dark-deep { background: linear-gradient(160deg, #3f345b 0%, #463a68 45%, #5b4d85 100%); }
.product { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.product h2 { max-width: 16em; }
.product .lead { margin-top: 1.5rem; max-width: 36em; }
.product .pills { margin-top: 2rem; }
.product__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 2.25rem; }
.product__note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.btn .icon--ext { width: 1rem; height: 1rem; }
.btn:hover .icon--ext { transform: translate(2px, -2px); }
@media (min-width: 64em) {
  .product { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.85fr); }
}

.product-card {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--c-white);
  box-shadow: 0 30px 60px -30px rgb(20 14 40 / 0.6);
  color: var(--c-text);
}
.product-card__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-violet);
}
.product-card img { width: min(100%, 15rem); }
.check-list { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--c-aubergine);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.45;
}
.check-list .icon {
  width: 1.25rem;
  height: 1.25rem;
  padding: 0.2rem;
  border-radius: 50%;
  background: var(--c-ice);
  color: var(--c-violet);
  stroke-width: 3;
}

/* Feature tiles on the dark band */
.grid.features { margin-top: clamp(3rem, 6vw, 4.5rem); }   /* .grid. beats ul[role="list"] { margin: 0 } */
@media (min-width: 48em) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius-lg);
  background: rgb(30 24 50 / 0.25);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature:hover { background: rgb(30 24 50 / 0.4); transform: translateY(-3px); }
.feature h3 { font-size: 1.125rem; }
.feature p { font-size: var(--fs-sm); line-height: 1.6; color: var(--c-on-dark-muted); }
.feature__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.18);
  color: var(--c-white);
}
.feature__icon::after {        /* small rose ring — icon-badge motif */
  content: "";
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid var(--c-rose);
  background: var(--c-aubergine);
}

.band-deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.band-deco--big { top: -6rem; right: -9rem; width: clamp(18rem, 40vw, 32rem); }
.band-deco--small { bottom: -4.5rem; left: 58%; width: 8rem; height: auto; color: var(--c-sage); transform: rotate(-90deg); }
@media (max-width: 63.99em) {
  .band-deco--small { display: none; }
  .band-deco--big { opacity: 0.6; }
}

/* Process (PPTX slide 9) */
.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gap); }
.step { display: grid; gap: 0.35rem; align-content: start; }
.step__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(6rem, 10vw, 8rem);
  aspect-ratio: 1;
  margin-bottom: 1.25rem;
}
.step__ring svg { position: absolute; inset: 0; }
.step__num { position: relative; font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 700; color: var(--c-aubergine); line-height: 1; }
.step:nth-child(1) .step__ring { color: var(--c-sky); }
.step:nth-child(2) .step__ring { color: var(--c-lavender); }
.step:nth-child(3) .step__ring { color: var(--c-rose); }
.step:nth-child(4) .step__ring { color: var(--c-sage); }
.step:nth-child(even) .step__ring svg { transform: scaleX(-1); }
.step p { color: var(--c-text); }

/* Certifications */
.certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64em) { .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cert {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #dde6f3;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  text-align: center;
}
.cert img { width: min(100%, 9.5rem); }
.cert__name { color: var(--c-aubergine); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.cert__desc { font-size: var(--fs-sm); line-height: 1.5; }

/* Mission & vision (PPTX slide 7 rings) + goal (PPTX slide 11) */
.mv-card { gap: 1rem; }
.mv-card__ring {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 6px solid var(--c-sky);
  background: var(--c-white);
  color: var(--c-violet);
}
.mv-card--lavender .mv-card__ring { border-color: var(--c-lavender); }
.mv-card__ring .icon { width: 1.75rem; height: 1.75rem; }

.goal {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  align-items: center;
  margin-top: var(--gap);
  padding: clamp(2rem, 6vw, 4.5rem);
  min-height: clamp(18rem, 32vw, 24rem);
  border-radius: var(--radius-lg);
  background: var(--g-bloom);
}
.goal__label {
  margin-bottom: 1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-aubergine);
}
.goal__text {
  max-width: 18em;
  color: var(--c-aubergine);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.goal__art {
  position: absolute;
  z-index: -1;
  right: -9%;
  top: 50%;
  width: clamp(16rem, 36vw, 29rem);
  transform: translateY(-50%);
  opacity: 0.9;
}
@media (max-width: 47.99em) {
  .goal { align-items: start; padding-bottom: 10rem; }
  .goal__art { top: auto; bottom: -5.5rem; right: -3.5rem; width: 16rem; transform: none; }
}

/* Contact (PPTX slide 12) */
.contact { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.contact h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem); }
.contact .lead { margin-top: 1.25rem; max-width: 30em; }
.contact-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--c-white);
  text-decoration: none;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.35;
}
.contact-item small { display: block; font-size: var(--fs-sm); font-weight: 400; color: var(--c-on-dark-muted); }
.contact-item__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: var(--c-white);
  transition: background-color 0.2s var(--ease);
}
a.contact-item:hover { color: var(--c-white); }
a.contact-item:hover .contact-item__icon { background: rgb(255 255 255 / 0.2); }
.contact-item__map { color: var(--c-on-dark-muted); font-size: var(--fs-sm); font-weight: 700; }
.contact-item__map:hover { color: var(--c-white); }
.contact-item__map .icon { display: inline-block; width: 1rem; height: 1rem; vertical-align: -0.15em; }
.contact__art { position: relative; justify-self: center; width: min(100%, 24rem); }
.contact__art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.08);
  transform: translate(-42%, -50%);
}
.contact__art svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 64em) {
  .contact { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .contact__art { justify-self: end; }
}
@media (max-width: 63.99em) {
  .contact__art { display: none; }
}

/* 8. Footer ------------------------------------------------------------------ */
.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: var(--c-aubergine-deep);
  color: var(--c-on-dark-soft);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.site-footer a { color: var(--c-on-dark-muted); }
.site-footer a:hover { color: var(--c-white); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 1.1fr 0.7fr 1.6fr; } }
.site-footer .logo { color: var(--c-white); }
.footer-tagline { margin-top: 1.25rem; max-width: 22rem; }
.footer-title {
  margin-bottom: 1rem;
  color: var(--c-white);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-links { display: grid; gap: 0.35rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.legal-data { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; }
.legal-data dt { color: var(--c-on-dark-muted); font-weight: 700; }
.legal-data dd { color: var(--c-on-dark-soft); overflow-wrap: anywhere; }
@media (max-width: 29.99em) {
  .legal-data { grid-template-columns: 1fr; gap: 0; }
  .legal-data dd { margin-bottom: 0.6rem; }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: var(--fs-xs);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.no-cookies { display: inline-flex; align-items: center; gap: 0.5rem; }
.no-cookies::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c-sage); }

/* 9. Legal page (privacy policy) ------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 3.5rem);
  background: var(--c-ice);
}
.page-hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem); }
.page-hero__meta { margin-top: 1rem; font-size: var(--fs-sm); }
.page-hero.section--corner::before { border-color: var(--c-white); }

.prose { max-width: var(--container-narrow); }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h2 .prose__num { color: var(--c-violet); font-size: 0.8em; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; font-size: 1.125rem; }
.prose p, .prose ul, .prose address { margin: 0 0 1em; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--c-rose); }
.prose address { font-style: normal; padding: 1.25rem 1.5rem; border-radius: var(--radius-md); background: var(--c-ice); color: var(--c-aubergine); }
.prose strong { color: var(--c-aubergine); }

.legal-layout { display: grid; gap: 2.5rem; }
.toc { align-self: start; font-size: var(--fs-sm); }
.toc ol { display: grid; gap: 0.25rem; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc a {
  display: flex;
  gap: 0.6rem;
  padding: 0.35rem 0;
  color: var(--c-text);
  text-decoration: none;
}
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--c-violet); font-weight: 700; }
.toc a:hover { color: var(--c-aubergine); }
@media (min-width: 64em) {
  .legal-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 9b. EU projects (visibility of EU co-financing) ---------------------------
   Emblem rules (Reg. (EU) 2021/1060, Annex IX): always the full emblem image with the
   funding statement in the page language, on a white background, never cropped or
   recoloured, and at least as tall as the largest other logo on the page. */
.eu-emblem {
  display: block;
  padding: clamp(0.75rem, 2vw, 1.1rem) clamp(0.9rem, 2.4vw, 1.4rem);
  border-radius: var(--radius-md);
  background: var(--c-white);
  box-shadow: var(--shadow-sm);
}
.eu-emblem img { width: 100%; height: auto; }
.eu-emblem--hero { width: min(100%, 21rem); justify-self: start; }
.eu-emblem--plain { padding: 0; box-shadow: none; width: min(100%, 16rem); }
.eu-emblem--inline { width: min(100%, 18rem); margin-top: 2.5rem; padding: 0; box-shadow: none; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--c-violet); }
.breadcrumb a { color: var(--c-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-aubergine); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--c-aubergine); font-weight: 700; }

.eu-hero { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.eu-hero__title { font-size: clamp(1.625rem, 1.15rem + 1.9vw, 2.625rem); max-width: 28em; line-height: 1.18; }
@media (min-width: 64em) {
  .eu-hero { grid-template-columns: minmax(0, 1fr) 21rem; }
  .eu-emblem--hero { justify-self: end; }
}

.eu-facts { display: grid; gap: var(--gap); margin: 0; }
@media (min-width: 40em) { .eu-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64em) { .eu-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.eu-fact {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--c-ice);
}
.eu-fact dt {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-violet);
}
.eu-fact dd {
  color: var(--c-aubergine);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.eu-fact--accent { background: var(--g-dusk); }
.eu-fact--accent dt { color: var(--c-lavender-on-dark); }
.eu-fact--accent dd { color: var(--c-white); }

.eu-body { display: grid; gap: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 64em) { .eu-body { grid-template-columns: minmax(0, 1fr) 21rem; } }
.eu-body .prose { max-width: none; }
.eu-body .prose p { max-width: 70ch; }
.eu-side { display: grid; gap: var(--gap); align-content: start; }
.eu-side__title { font-size: 1.125rem; }
.eu-contact { gap: 0.75rem; }
.eu-contact p { font-size: var(--fs-sm); line-height: 1.8; }
.eu-funding {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid #dde6f3;
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.news-card { position: relative; }
.news-card:hover { transform: translateY(-4px); }
.news-card:focus-within { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.news-card h3 a { color: inherit; text-decoration: none; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.news-card h3 a:focus-visible { outline: none; }
.news-card__meta { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-violet); }
.news-card__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; color: var(--c-violet); font-weight: 700; font-size: var(--fs-sm); }
.news-card__more .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; transition: transform 0.2s var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(3px); }

.article-body { margin-inline: auto; }
.article-body p, .article-body li { font-size: var(--fs-lead); line-height: 1.7; }
.eu-note {
  display: grid;
  gap: 1rem;
  max-width: var(--container-narrow);
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--c-ice);
  font-size: var(--fs-sm);
}
.eu-note__links { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; align-items: center; }
.eu-note__links > a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.eu-note__links .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; }

/* EU links on the one-pager and in the footer */
.hero__eu {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--c-white);
  box-shadow: 0 12px 30px -16px rgb(20 14 40 / 0.6);
  transition: transform 0.2s var(--ease);
}
.hero__eu:hover { transform: translateY(-2px); }
.hero__eu img { width: 12.5rem; height: auto; }
.certs-eu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: var(--gap);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid #dde6f3;
  border-radius: var(--radius-lg);
  background: var(--c-white);
}
.certs-eu img { width: 13rem; height: auto; }
.certs-eu p { flex: 1 1 22rem; color: var(--c-aubergine); font-weight: 700; }
.certs-eu a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; white-space: nowrap; }
.certs-eu .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2.25; }
.footer-eu {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--c-white);
}
.footer-eu img { width: 13rem; height: auto; }

/* 10. Motion ----------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* Failsafe: if main.js never runs (html.js set inline, .js-ready never added), show content */
.js:not(.js-ready) [data-reveal] { animation: reveal-failsafe 0s linear 2.5s forwards; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

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

/* 11. Print ------------------------------------------------------------------ */
@media print {
  .site-header, .nav-toggle, .hero__art, .contact__art, .band-deco, .goal__art, .skip-link { display: none !important; }
  .hero, .section--dark, .site-footer, .goal { background: none !important; color: #000 !important; }
  .hero h1, .section--dark h2, .section--dark h3, .contact-item, .site-footer .logo { color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  a[href^="mailto:"]::after, a[href^="tel:"]::after { content: ""; }
}
