/* GENERAT de tools/build-css.ps1 — NU edita direct; editează fișierele sursă și re-rulează scriptul */

/* ===== tokens.css ===== */
/* ============================================================================
   TOKENS — sursa de adevăr a design-system-ului „Curcubeu de Speranțe"
   Ordinea layerelor e declarată AICI, o singură dată, înaintea oricărei reguli.
   Vezi ui-kit.md pentru reguli de utilizare (contrast, perechi permise).
   ============================================================================ */

@layer reset, tokens, base, layout, components, sections, utilities, motion;

@layer tokens {
  :root {
    /* ------------------------------------------------------------------ */
    /* CULORI — neutre calde                                               */
    /* ------------------------------------------------------------------ */
    --c-cream:      #FDFAF4;  /* fundal pagină */
    --c-cream-2:    #F6F0E4;  /* benzi alternante */
    --c-white:      #FFFFFF;  /* carduri */
    --c-ink:        #1D2440;  /* text principal — 13.9:1 pe cream */
    --c-ink-soft:   #46506E;  /* text secundar — 7.6:1 pe cream */
    --c-ink-faint:  rgb(29 36 64 / .12);  /* hairlines, borduri */
    --c-cream-soft: rgb(253 250 244 / .78); /* text secundar pe navy */

    /* Accent principal (pereche coral/amber = „răsărit") */
    --c-coral:      #E85D42;  /* decorativ + text mare (≥ --fs-600) */
    --c-coral-deep: #B23A22;  /* linkuri & text mic coral — 5.6:1 pe cream */
    --c-amber:      #F2A93B;

    /* ------------------------------------------------------------------ */
    /* SPECTRUL CELOR 5 VALORI (stânga→dreapta = curcubeul)                */
    /* respect · implicare · transparență · educație · speranță            */
    /* Regulă: NICIODATĂ body text în culoarea de bază; pe -tint se        */
    /* folosește perechea -deep.                                           */
    /* ------------------------------------------------------------------ */
    --spec-1: #E85D42;  --spec-1-tint: #FBE9E4;  --spec-1-deep: #9C3B26;
    --spec-2: #F2A93B;  --spec-2-tint: #FCF0DB;  --spec-2-deep: #8A5A10;
    --spec-3: #5FA773;  --spec-3-tint: #E9F2EB;  --spec-3-deep: #2F6B45;
    --spec-4: #4E8FBF;  --spec-4-tint: #E7F0F7;  --spec-4-deep: #2C608C;
    --spec-5: #8B6FB8;  --spec-5-tint: #EFEAF6;  --spec-5-deep: #5B4392;

    /* Aliasuri semantice */
    --val-respect:      var(--spec-1);
    --val-implicare:    var(--spec-2);
    --val-transparenta: var(--spec-3);
    --val-educatie:     var(--spec-4);
    --val-speranta:     var(--spec-5);

    /* Gradienți */
    --grad-sunrise:  linear-gradient(120deg, var(--c-amber), var(--c-coral));
    --grad-spectrum: linear-gradient(90deg,
        var(--spec-1), var(--spec-2), var(--spec-3), var(--spec-4), var(--spec-5));

    /* ------------------------------------------------------------------ */
    /* TIPOGRAFIE — scale fluid (clamp 390px → 1440px)                     */
    /* ------------------------------------------------------------------ */
    --font-display: "Fraunces", "Fraunces fallback", Georgia, serif;
    --font-body:    "Plus Jakarta Sans", "Jakarta fallback", system-ui,
                    "Segoe UI", sans-serif;
    --font-mono:    ui-monospace, "Cascadia Code", Consolas, monospace;

    --fs-900: clamp(2.75rem,   1.65rem + 4.7vw, 5.25rem);   /* h1 44→84 */
    --fs-800: clamp(2.125rem,  1.45rem + 2.9vw, 3.5rem);    /* h2 34→56 */
    --fs-700: clamp(1.625rem,  1.3rem  + 1.4vw, 2.25rem);   /* h3 26→36 */
    --fs-600: clamp(1.3125rem, 1.17rem + .6vw,  1.625rem);  /* h4 21→26 */
    --fs-500: clamp(1.125rem,  1.06rem + .3vw,  1.3125rem); /* lead 18→21 */
    --fs-400: 1.0625rem;                                    /* body 17 */
    --fs-300: .9375rem;                                     /* small 15 */
    --fs-200: .8125rem;                                     /* overline 13 */

    --lh-tight: 1.08;
    --lh-snug:  1.25;
    --lh-body:  1.65;

    /* ------------------------------------------------------------------ */
    /* SPAȚIERE & LAYOUT                                                   */
    /* ------------------------------------------------------------------ */
    --space-2xs: .375rem;
    --space-xs:  .625rem;
    --space-s:   1rem;
    --space-m:   1.5rem;
    --space-l:   2.25rem;
    --space-xl:  3.5rem;
    --space-2xl: 5rem;
    --section-pad: clamp(4.5rem, 3rem + 6vw, 8.5rem);

    --container:      72.5rem;   /* 1160px */
    --container-wide: 85rem;     /* 1360px */
    --gutter: clamp(1.25rem, 4vw, 2.5rem);

    /* ------------------------------------------------------------------ */
    /* FORMĂ                                                               */
    /* ------------------------------------------------------------------ */
    --radius-s:    .5rem;
    --radius-m:    .875rem;
    --radius-l:    1.375rem;
    --radius-xl:   2rem;
    --radius-pill: 999px;
    /* Rama-semnătură „arcadă" — ecoul arcului de curcubeu (max 2 utilizări) */
    --radius-arch: 999px 999px var(--radius-l) var(--radius-l);

    /* ------------------------------------------------------------------ */
    /* UMBRE — stratificate, tentă navy caldă, niciodată negru pur         */
    /* ------------------------------------------------------------------ */
    --shadow-s: 0 1px 2px rgb(29 36 64 / .05),
                0 2px 8px rgb(29 36 64 / .06);
    --shadow-m: 0 2px 4px rgb(29 36 64 / .05),
                0 10px 24px -6px rgb(29 36 64 / .10);
    --shadow-l: 0 4px 8px rgb(29 36 64 / .05),
                0 16px 40px -8px rgb(29 36 64 / .14),
                0 32px 72px -24px rgb(29 36 64 / .18);
    --shadow-coral: 0 10px 28px -8px rgb(232 93 66 / .45);

    /* ------------------------------------------------------------------ */
    /* MOTION                                                              */
    /* ------------------------------------------------------------------ */
    --ease-out:    cubic-bezier(.16, 1, .3, 1);     /* expo-out — reveals */
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* micro-interacțiuni */
    --t-fast: 160ms;
    --t-med:  320ms;
    --t-slow: 640ms;
    --t-hero: 1000ms;

    /* ------------------------------------------------------------------ */
    /* STRATURI                                                            */
    /* ------------------------------------------------------------------ */
    --z-progress: 110;
    --z-menu:     105;
    --z-nav:      100;

    /* Navbar */
    --nav-h: 76px;
    --nav-h-small: 60px;

    /* Grain — SVG feTurbulence inline (folosit doar pe hero/voluntariat/footer) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  }
}

/* ===== base.css ===== */
/* ============================================================================
   BASE — reset, fonturi, tipografie de bază, primitive de layout, utilitare
   ============================================================================ */

/* ---------------------------------------------------------------------------
   FONTURI (self-hosted, subset latin + română — vezi tools/build-fonts.ps1)
   Fallback-urile au metrici ajustate ca swap-ul să nu miște layoutul (CLS).
   --------------------------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var-ro.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/jakarta-var-ro.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
/* Metric-compatible fallbacks (validate vizual în specimen) */
@font-face {
  font-family: "Fraunces fallback";
  src: local("Georgia");
  size-adjust: 106%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Jakarta fallback";
  src: local("Arial");
  size-adjust: 100%;
  ascent-override: 104%;
  descent-override: 27%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
   RESET
   --------------------------------------------------------------------------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }

  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    tab-size: 4;
  }

  body { min-height: 100svh; }

  img, picture, video, svg { display: block; max-width: 100%; }

  img { height: auto; }

  input, button, textarea, select { font: inherit; color: inherit; }

  button { background: none; border: 0; padding: 0; cursor: pointer; }

  p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

  ul[class], ol[class] { list-style: none; padding: 0; }

  a { color: inherit; }

  :target { scroll-margin-block: 5ex; }
}

/* ---------------------------------------------------------------------------
   BASE — tipografie & culori implicite
   --------------------------------------------------------------------------- */
@layer base {
  html {
    scroll-behavior: smooth;
    accent-color: var(--c-coral);
  }

  body {
    font-family: var(--font-body);
    font-size: var(--fs-400);
    line-height: var(--lh-body);
    font-weight: 420;
    color: var(--c-ink);
    background-color: var(--c-cream);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  h1, h2, h3, .display {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-weight: 560;
    line-height: var(--lh-tight);
    letter-spacing: -0.015em;
    text-wrap: balance;
  }

  h1 { font-size: var(--fs-900); }
  h2 { font-size: var(--fs-800); }
  h3 { font-size: var(--fs-700); }
  h4 {
    font-family: var(--font-body);
    font-size: var(--fs-600);
    font-weight: 700;
    line-height: var(--lh-snug);
  }

  p { max-width: 65ch; }

  a {
    color: var(--c-coral-deep);
    text-decoration-thickness: 1px;
    text-underline-offset: .18em;
    transition: color var(--t-fast) var(--ease-out);
  }
  a:hover { color: var(--c-coral); }

  ::selection { background: var(--c-amber); color: var(--c-ink); }

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

  strong { font-weight: 700; }
}

/* ---------------------------------------------------------------------------
   LAYOUT — primitive
   --------------------------------------------------------------------------- */
@layer layout {
  .container {
    width: min(var(--container), 100% - 2 * var(--gutter));
    margin-inline: auto;
  }
  .container--wide {
    width: min(var(--container-wide), 100% - 2 * var(--gutter));
    margin-inline: auto;
  }

  .section { padding-block: var(--section-pad); }

  .band--white   { background: var(--c-white); }
  .band--cream-2 { background: var(--c-cream-2); }
  .band--navy    { background: var(--c-ink); color: var(--c-cream); }
  .band--amber   { background: var(--spec-2-tint); }

  /* Granulație — doar pe hero, voluntariat, footer (cost paint) */
  .has-grain { position: relative; isolation: isolate; }
  .has-grain::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: var(--grain);
    opacity: .05;
    mix-blend-mode: multiply;
    pointer-events: none;
  }

  /* Header de secțiune (pattern repetat) */
  .section-head { max-width: 46rem; margin-block-end: var(--space-xl); }
  .section-head--center { margin-inline: auto; text-align: center; }
  .section-head > h2 { margin-block-end: var(--space-s); }
  .section-head .lead { margin-block-start: var(--space-s); }
}

/* ---------------------------------------------------------------------------
   UTILITARE
   --------------------------------------------------------------------------- */
@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .overline {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-size: var(--fs-200);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
  }
  /* bulină colorată în fața overline-ului */
  .overline::before {
    content: "";
    inline-size: .5em;
    block-size: .5em;
    border-radius: 50%;
    background: var(--_dot, var(--c-coral));
  }

  .lead {
    font-size: var(--fs-500);
    line-height: 1.55;
    color: var(--c-ink-soft);
    text-wrap: pretty;
  }

  /* Cuvânt evidențiat cu gradientul „răsărit" */
  .text-sunrise {
    background: var(--grad-sunrise);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .muted { color: var(--c-ink-soft); }

  .skip-link {
    position: absolute;
    inset-inline-start: var(--space-s);
    inset-block-start: var(--space-s);
    z-index: 200;
    padding: .75rem 1.25rem;
    background: var(--c-ink);
    color: var(--c-cream);
    border-radius: var(--radius-pill);
    font-weight: 700;
    text-decoration: none;
    translate: 0 -300%;
    transition: translate var(--t-med) var(--ease-out);
  }
  .skip-link:focus-visible { translate: 0 0; color: var(--c-cream); }
}

/* ===== components.css ===== */
/* ============================================================================
   COMPONENTS — butoane, carduri, chips, nav, footer, marquee, dialog, media
   ============================================================================ */

@layer components {

  /* -------------------------------------------------------------------------
     MEDIA FRAME — blur-up LQIP + gradare caldă unificatoare
     ------------------------------------------------------------------------- */
  /* LQIP-ul vine ca background-image INLINE în HTML (nu var() — url() în
     custom properties se rezolvă relativ la stylesheet, nu la document) */
  .frame {
    position: relative;
    overflow: hidden;
    background: var(--c-cream-2) center / cover no-repeat;
  }
  .frame > picture, .frame > img { height: 100%; }
  .frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* fade-in doar când JS e prezent (fără JS imaginile apar normal).
     EXCEPȚIE: imaginea eager (hero/LCP) nu pornește NICIODATĂ de la opacity:0 —
     Chrome exclude permanent din candidații LCP elementele care intră prin
     opacity 0 → scorul de performanță ar rămâne negru (NO_LCP). */
  .js .frame img { opacity: 0; transition: opacity var(--t-slow) var(--ease-out); }
  .js .frame img.is-loaded { opacity: 1; }
  .js .frame img[loading="eager"] { opacity: 1; transition: none; }

  .img-grade { filter: saturate(1.08) contrast(1.03) sepia(.06); }

  /* -------------------------------------------------------------------------
     BUTOANE
     ------------------------------------------------------------------------- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .9em 1.7em;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--fs-300);
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
      translate var(--t-fast) var(--ease-out),
      box-shadow var(--t-med) var(--ease-out),
      background-color var(--t-fast) var(--ease-out),
      color var(--t-fast) var(--ease-out);
  }
  .btn:hover { translate: 0 -2px; }
  .btn:active { translate: 0 0; transition-duration: 60ms; }

  .btn--primary {
    background: var(--grad-sunrise);
    color: var(--c-ink);
    box-shadow: var(--shadow-coral);
  }
  .btn--primary:hover { color: var(--c-ink); box-shadow: 0 14px 34px -8px rgb(232 93 66 / .55); }

  .btn--ink {
    background: var(--c-ink);
    color: var(--c-cream);
    box-shadow: var(--shadow-s);
  }
  .btn--ink:hover { color: var(--c-white); box-shadow: var(--shadow-m); }

  .btn--ghost {
    background: transparent;
    color: var(--c-ink);
    box-shadow: inset 0 0 0 1.5px var(--c-ink-faint);
  }
  .btn--ghost:hover { color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }

  .btn--cream {
    background: var(--c-cream);
    color: var(--c-ink);
    box-shadow: var(--shadow-m);
  }
  .btn--cream:hover { color: var(--c-ink); background: var(--c-white); }

  .btn--mini {
    padding: .45em 1em;
    font-size: var(--fs-200);
    background: var(--c-cream-2);
    color: var(--c-ink);
    border-radius: var(--radius-pill);
    font-weight: 700;
    transition: background-color var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out);
  }
  .btn--mini:hover { background: var(--c-ink-faint); }
  .btn--mini[disabled] { opacity: .45; cursor: not-allowed; }
  .btn--mini.is-copied { background: var(--spec-3-tint); color: var(--spec-3-deep); }

  .btn__meta {
    font-size: .72em;
    font-weight: 800;
    letter-spacing: .06em;
    opacity: .65;
    padding-inline-start: .35em;
  }

  /* -------------------------------------------------------------------------
     CARD & CHIP
     ------------------------------------------------------------------------- */
  .card {
    background: var(--c-white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-s);
    transition: translate var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  }

  .chip {
    display: inline-block;
    padding: .2em .7em;
    border-radius: var(--radius-pill);
    font-size: var(--fs-200);
    font-weight: 700;
    vertical-align: middle;
  }
  .chip--amber { background: var(--spec-2-tint); color: var(--spec-2-deep); }

  /* -------------------------------------------------------------------------
     NAVBAR
     ------------------------------------------------------------------------- */
  .progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: var(--z-progress);
    pointer-events: none;
  }
  .progress__bar {
    height: 100%;
    background: var(--grad-spectrum);
    transform-origin: 0 50%;
    scale: 0 1;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-nav);
    transition: background-color var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
  }
  .nav__inner {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    height: var(--nav-h);
    transition: height var(--t-med) var(--ease-out);
  }
  .nav.is-scrolled {
    background: rgb(253 250 244 / .78);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: 0 1px 0 rgb(29 36 64 / .08);
  }
  .nav.is-scrolled .nav__inner { height: var(--nav-h-small); }

  .nav__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    color: var(--c-ink);
    margin-inline-end: auto;
  }
  .nav__logo { width: 46px; height: auto; flex: none; transition: width var(--t-med) var(--ease-out); }
  .nav.is-scrolled .nav__logo { width: 38px; }
  .nav__wordmark {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.04;
    letter-spacing: .005em;
  }

  .nav__links {
    display: flex;
    gap: clamp(.25rem, 1vw, .9rem);
  }
  .nav__links a {
    position: relative;
    display: inline-block;
    padding: .55em .65em;
    font-size: var(--fs-300);
    font-weight: 600;
    color: var(--c-ink-soft);
    text-decoration: none;
    transition: color var(--t-fast) var(--ease-out);
  }
  .nav__links a:hover { color: var(--c-ink); }
  /* underline spectru glisant pe linkul activ */
  .nav__links a::after {
    content: "";
    position: absolute;
    inset: auto .65em .3em .65em;
    height: 2.5px;
    border-radius: 2px;
    background: var(--grad-spectrum);
    scale: 0 1;
    transform-origin: 0 50%;
    transition: scale var(--t-med) var(--ease-out);
  }
  .nav__links a[aria-current="true"] { color: var(--c-ink); }
  .nav__links a[aria-current="true"]::after { scale: 1 1; }

  .btn--nav {
    padding: .62em 1.35em;
    font-size: var(--fs-300);
    background: var(--c-ink);
    color: var(--c-cream);
  }
  .btn--nav:hover { color: var(--c-white); }

  .nav__burger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-m);
    flex: none;
  }
  .nav__burger span {
    position: absolute;
    left: 11px;
    right: 11px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--c-ink);
    transition: translate var(--t-med) var(--ease-out), rotate var(--t-med) var(--ease-out);
  }
  .nav__burger span:nth-child(1) { top: 17px; }
  .nav__burger span:nth-child(2) { bottom: 17px; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { translate: 0 3.75px; rotate: 45deg; }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { translate: 0 -3.75px; rotate: -45deg; }

  /* Meniu mobil — overlay full-screen */
  @media (max-width: 900px) {
    .nav__burger { display: block; }
    .btn--nav { display: none; }

    .nav__menu {
      position: fixed;
      inset: 0;
      z-index: -1;               /* sub bara nav, care rămâne clicabilă */
      display: grid;
      place-content: center;
      background: var(--c-cream);
      opacity: 0;
      visibility: hidden;
      transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
    }
    .nav__menu.is-open {
      opacity: 1;
      visibility: visible;
      transition: opacity var(--t-med) var(--ease-out);
    }
    .nav__links { flex-direction: column; align-items: center; gap: .4rem; }
    .nav__links a {
      font-family: var(--font-display);
      font-size: var(--fs-700);
      font-weight: 560;
      color: var(--c-ink);
      padding: .35em .5em;
      opacity: 0;
      translate: 0 18px;
      transition: opacity var(--t-med) var(--ease-out), translate var(--t-med) var(--ease-out);
    }
    .nav__menu.is-open .nav__links a {
      opacity: 1;
      translate: 0 0;
      transition-delay: calc(var(--_i, 0) * 60ms);
    }
    .nav__links a::after { inset: auto .5em .15em .5em; height: 3px; }
    html.menu-lock, html.menu-lock body { overflow: hidden; }
  }

  /* -------------------------------------------------------------------------
     MARQUEE (text + foto)
     ------------------------------------------------------------------------- */
  .marquee {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--c-ink-faint);
    background: var(--c-cream);
  }
  .marquee__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }
  .marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
  }
  .marquee__seq {
    display: flex;
    align-items: center;
    gap: 1.2em;
    padding-inline-end: 1.2em;
    font-family: var(--font-display);
    font-size: var(--fs-600);
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-ink);
    white-space: nowrap;
    padding-block: 1.05rem;
  }
  .marquee__seq i { font-style: normal; }

  .marquee__pause {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: .75rem;
    translate: 0 -50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgb(253 250 244 / .9);
    box-shadow: var(--shadow-s);
    display: grid;
    place-items: center;
    opacity: .55;
    transition: opacity var(--t-fast) var(--ease-out);
  }
  .marquee__pause:hover { opacity: 1; }
  /* pictograma pauză/play din pseudo-elemente */
  .marquee__pause::before {
    content: "";
    width: 10px;
    height: 12px;
    background:
      linear-gradient(var(--c-ink), var(--c-ink)) left / 3.5px 100% no-repeat,
      linear-gradient(var(--c-ink), var(--c-ink)) right / 3.5px 100% no-repeat;
  }
  .marquee__pause[aria-pressed="true"]::before {
    width: 0; height: 0;
    background: none;
    border-block: 6px solid transparent;
    border-inline-start: 10px solid var(--c-ink);
  }

  /* Marquee foto (galerie) */
  .marquee--foto { border-block: 0; background: transparent; }
  .marquee--foto .marquee__seq { padding-block: .65rem; gap: 1rem; padding-inline-end: 1rem; }

  .galerie__thumb {
    position: relative;
    border-radius: var(--radius-m);
    overflow: hidden;
    flex: none;
    box-shadow: var(--shadow-s);
    transition: translate var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), scale var(--t-med) var(--ease-out);
  }
  .galerie__thumb img {
    height: 240px;
    width: auto;
    display: block;
    transition: scale var(--t-slow) var(--ease-out);
  }
  .galerie__thumb:hover { translate: 0 -4px; box-shadow: var(--shadow-m); }
  .galerie__thumb:hover img { scale: 1.045; }
  .galerie__thumb:focus-visible { outline-offset: -3px; }

  /* -------------------------------------------------------------------------
     LIGHTBOX (dialog nativ)
     ------------------------------------------------------------------------- */
  .lightbox {
    /* reset-ul global (* { margin: 0 }) anulează centrarea UA a dialogului —
       o refacem explicit: fixed + inset 0 + margin auto = centrat pe ambele axe */
    position: fixed;
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    max-width: min(92vw, 1100px);
    max-height: 90svh;
    overflow: visible;
  }
  .lightbox::backdrop {
    background: rgb(15 19 36 / .82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
  }
  .lightbox__figure { margin: 0; }
  .lightbox__img {
    max-width: min(92vw, 1100px);
    max-height: 78svh;
    width: auto;
    height: auto;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-l);
    background: var(--c-cream-2);
  }
  .lightbox__caption {
    color: var(--c-cream);
    text-align: center;
    padding-block-start: .9rem;
    font-size: var(--fs-300);
  }
  .lightbox__close,
  .lightbox__nav {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgb(253 250 244 / .14);
    color: var(--c-cream);
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background-color var(--t-fast) var(--ease-out);
  }
  .lightbox__close:hover, .lightbox__nav:hover { background: rgb(253 250 244 / .3); }
  .lightbox__close { top: -54px; right: 0; }
  .lightbox__nav--prev { top: 50%; left: -56px; translate: 0 -50%; }
  .lightbox__nav--next { top: 50%; right: -56px; translate: 0 -50%; }
  @media (max-width: 760px) {
    .lightbox__nav--prev { left: 4px; }
    .lightbox__nav--next { right: 4px; }
    .lightbox__close { right: 4px; top: -50px; }
  }

  /* -------------------------------------------------------------------------
     DOC-CARD (transparență)
     ------------------------------------------------------------------------- */
  .doc-card {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
  }
  .doc-card:hover { translate: 0 -3px; box-shadow: var(--shadow-m); }
  .doc-card__icon {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-m);
    display: grid;
    place-items: center;
    background: var(--spec-3-tint);
    color: var(--spec-3-deep);
  }
  .doc-card__icon svg { width: 26px; height: 26px; }
  .doc-card__body { flex: 1; min-width: 0; }
  .doc-card__body h3 { font-family: var(--font-body); font-size: var(--fs-500); font-weight: 700; }
  .doc-card__body p { margin-block-start: .15rem; font-size: var(--fs-300); }
  .doc-card__btn { flex: none; }
  .doc-card--pending { border: 1.5px dashed var(--c-ink-faint); background: transparent; box-shadow: none; }
  .doc-card--pending:hover { translate: none; box-shadow: none; }
  .doc-card--pending .doc-card__icon { background: var(--c-cream-2); color: var(--c-ink-soft); }

  /* -------------------------------------------------------------------------
     FAQ (details)
     ------------------------------------------------------------------------- */
  .faq { display: grid; gap: .75rem; max-width: 46rem; }
  .faq__item {
    background: var(--c-white);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-s);
    padding: 1.05rem 1.3rem;
  }
  .faq__item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
  .faq__item summary::-webkit-details-marker { display: none; }
  .faq__item summary::after {
    content: "+";
    font-family: var(--font-display);
    font-size: 1.5em;
    font-weight: 500;
    line-height: .8;
    color: var(--c-coral-deep);
    transition: rotate var(--t-med) var(--ease-out);
    flex: none;
  }
  .faq__item[open] summary::after { rotate: 45deg; }
  .faq__item p { padding-block-start: .7rem; color: var(--c-ink-soft); }
  @supports (interpolate-size: allow-keywords) {
    .faq__item { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--t-med) var(--ease-out), content-visibility var(--t-med) allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }

  /* -------------------------------------------------------------------------
     IBAN (cardul de donații)
     ------------------------------------------------------------------------- */
  .iban {
    margin-block-start: auto;
    padding: .9rem 1.1rem;
    background: var(--c-cream);
    border: 1px dashed var(--c-ink-faint);
    border-radius: var(--radius-m);
    display: grid;
    gap: .45rem;
  }
  .iban__label { font-size: var(--fs-200); font-weight: 700; color: var(--c-ink-soft); text-transform: uppercase; letter-spacing: .06em; }
  .iban__value { font-family: var(--font-mono); font-size: var(--fs-300); letter-spacing: .02em; }
  .iban .btn--mini { justify-self: start; }

  /* -------------------------------------------------------------------------
     FOOTER
     ------------------------------------------------------------------------- */
  .footer {
    background: var(--c-ink);
    color: var(--c-cream);
    border-block-start: 3px solid transparent;
    border-image: var(--grad-spectrum) 1;
    margin-block-start: 0;
  }
  .footer a { color: var(--c-cream-soft); text-decoration: none; }
  .footer a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: .2em; }

  .footer__inner {
    display: grid;
    grid-template-columns: 1.5fr .85fr 1.25fr 1.2fr;
    gap: var(--space-xl);
    padding-block: var(--space-2xl) var(--space-xl);
  }
  .footer__col ul a { white-space: nowrap; }
  .footer__logo { width: 72px; height: auto; color: var(--c-cream); margin-block-end: var(--space-s); }
  .footer__misiune { color: var(--c-cream-soft); font-size: var(--fs-300); max-width: 30ch; }
  .footer__col h4 {
    font-size: var(--fs-200);
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--c-cream-soft);
    margin-block-end: var(--space-s);
  }
  .footer__col ul { display: grid; gap: .55rem; font-size: var(--fs-300); list-style: none; padding: 0; }

  .footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-s) var(--space-l);
    padding-block: var(--space-m);
    border-block-start: 1px solid rgb(253 250 244 / .14);
    font-size: var(--fs-200);
    color: var(--c-cream-soft);
  }
  .footer__cookie { margin-inline-end: auto; }
  .footer__cookie a { text-decoration: underline; text-underline-offset: .2em; }
  .footer__top {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgb(253 250 244 / .1);
    color: var(--c-cream);
    display: grid;
    place-items: center;
    transition: background-color var(--t-fast) var(--ease-out), translate var(--t-fast) var(--ease-out);
  }
  .footer__top:hover { background: rgb(253 250 244 / .22); translate: 0 -3px; }
  .footer__top svg { width: 20px; height: 20px; }

  @media (max-width: 900px) {
    .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-l); }
  }
  @media (max-width: 560px) {
    .footer__inner { grid-template-columns: 1fr; }
  }
}

/* ===== sections.css ===== */
/* ============================================================================
   SECTIONS — layouturile fiecărei secțiuni + responsive
   ============================================================================ */

@layer sections {

  /* Toate secțiunile primesc offset pentru navbarul fix */
  main > section[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

  /* -------------------------------------------------------------------------
     1. HERO
     ------------------------------------------------------------------------- */
  .hero {
    min-height: clamp(560px, 100svh, 900px);
    display: grid;
    align-items: center;
    padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-2xl);
    background: var(--c-cream);
    overflow: clip;                 /* blob-urile/chips nu produc scroll orizontal */
  }
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(var(--space-l), 5vw, var(--space-2xl));
    align-items: center;
  }

  .hero__kicker { margin-block-end: var(--space-m); }
  .hero__title { position: relative; z-index: 2; }
  .hero__title em { font-style: normal; }
  /* rândurile hand-split: măști pentru line-rise */
  .hero__title .line { display: block; overflow: clip; }
  .hero__title .line > span { display: inline-block; }

  .hero__lead { margin-block-start: var(--space-m); max-width: 34rem; }
  .hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-block-start: var(--space-l);
  }
  .hero__note { margin-block-start: var(--space-m); font-size: var(--fs-300); }

  /* Scena foto */
  .hero__stage {
    position: relative;
    z-index: 1;
  }
  .hero__photo {
    aspect-ratio: 4 / 5;
    max-height: min(72svh, 640px);
    margin-inline: auto;
    border-radius: var(--radius-arch);
    box-shadow: var(--shadow-l);
  }

  .hero__arc {
    position: absolute;
    z-index: -1;
    width: 74%;
    top: -9%;
    left: 50%;
    translate: -50% 0;
    color: transparent;
  }

  .hero__chip {
    position: absolute;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-l);
    display: none;                  /* apar doar pe desktop */
  }
  .hero__chip--1 {
    width: clamp(150px, 14vw, 210px);
    aspect-ratio: 1;
    left: -3.5rem;
    bottom: 9%;
    rotate: -3.5deg;
  }
  .hero__chip--2 {
    width: clamp(170px, 16vw, 240px);
    aspect-ratio: 4 / 3;
    right: -3rem;
    top: 12%;
    rotate: 2.5deg;
  }

  .hero__blob {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
  }
  .hero__blob--1 {
    width: 380px; height: 380px;
    background: var(--spec-2);
    top: -12%; right: -8%;
    opacity: .35;
  }
  .hero__blob--2 {
    width: 300px; height: 300px;
    background: var(--spec-5);
    bottom: -10%; left: -10%;
    opacity: .22;
  }

  /* -------------------------------------------------------------------------
     2. DESPRE NOI
     ------------------------------------------------------------------------- */
  .despre__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(var(--space-l), 6vw, calc(var(--space-2xl) * 1.2));
    align-items: center;
  }
  .despre__foto {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-arch);
    box-shadow: var(--shadow-l);
    rotate: -1.5deg;
  }
  .despre__caption {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-end: 1.1rem;
    translate: -50% 0;
    white-space: nowrap;
    background: rgb(253 250 244 / .92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: .5em 1.1em;
    border-radius: var(--radius-pill);
    font-size: var(--fs-200);
    font-weight: 700;
    box-shadow: var(--shadow-s);
  }
  .despre__subtitlu {
    font-family: var(--font-body);
    font-size: var(--fs-500);
    font-weight: 800;
    margin-block-start: var(--space-l);
  }
  .despre__text > p { margin-block-start: var(--space-s); }

  .pull-quote {
    margin-block-start: var(--space-l);
    padding-inline-start: var(--space-m);
    border-inline-start: 3px solid var(--c-coral);
  }
  .pull-quote p {
    font-family: var(--font-display);
    font-size: var(--fs-600);
    font-weight: 500;
    line-height: 1.35;
    color: var(--c-ink);
  }

  /* Valorile — curcubeul se asamblează */
  .valori { margin-block-start: var(--space-2xl); }
  .valori__titlu {
    font-family: var(--font-body);
    font-size: var(--fs-500);
    font-weight: 800;
    text-align: center;
    margin-block-end: var(--space-l);
  }
  .valori__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-s);
  }
  .card--val {
    position: relative;
    padding: var(--space-m) var(--space-s) var(--space-m);
    text-align: center;
    border-block-start: 4px solid var(--_hue);
    display: grid;
    justify-items: center;
    gap: .5rem;
  }
  .card--val:hover { translate: 0 -6px; box-shadow: var(--shadow-m); }
  .card--val__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-m);
    display: grid;
    place-items: center;
    background: var(--_tint);
    color: var(--_deep);
    transition: rotate var(--t-med) var(--ease-spring), scale var(--t-med) var(--ease-spring);
  }
  .card--val:hover .card--val__icon { rotate: -7deg; scale: 1.08; }
  .card--val__icon svg { width: 24px; height: 24px; }
  .card--val h4 { font-size: var(--fs-400); }
  .card--val p { font-size: var(--fs-200); color: var(--c-ink-soft); line-height: 1.5; }

  /* -------------------------------------------------------------------------
     3. PROIECTE — bento
     ------------------------------------------------------------------------- */
  .bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: var(--space-s);
  }
  .bento__card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .bento__card:hover { translate: 0 -5px; box-shadow: var(--shadow-m); }

  .bento__card--featured { grid-column: span 2; grid-row: span 2; }
  .bento__card--wide { grid-column: span 2; }

  .bento__media { flex: 1; min-height: 0; }
  .bento__card--featured .bento__media { min-height: 320px; }
  .bento__card--wide .bento__media { min-height: 190px; }
  .bento__card:not(.bento__card--featured):not(.bento__card--wide):not(.bento__card--text) .bento__media { min-height: 150px; }

  .bento__body {
    padding: var(--space-m);
    display: grid;
    gap: .35rem;
  }
  .bento__body h3 {
    font-family: var(--font-body);
    font-size: var(--fs-500);
    font-weight: 800;
    line-height: 1.25;
  }
  .bento__body p { font-size: var(--fs-300); color: var(--c-ink-soft); }

  .bento__card--text {
    background: var(--_tint);
    box-shadow: none;
    padding-block-start: var(--space-m);
  }
  /* banner pe tot rândul — închide grila fără celule goale */
  .bento__card--banner {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding-block: var(--space-s);
    padding-inline-end: var(--space-m);
  }
  .bento__card--banner .bento__body { flex: 1; padding-block: var(--space-s); }
  .bento__card--banner .bento__icon { margin-block: var(--space-s); }
  .bento__cta { flex: none; }
  .bento__card--text:hover { box-shadow: var(--shadow-s); }
  .bento__card--text .bento__body { padding-block-start: var(--space-s); }
  .bento__card--text h3 { font-size: var(--fs-400); }
  .bento__icon {
    width: 46px;
    height: 46px;
    margin-inline-start: var(--space-m);
    border-radius: var(--radius-m);
    display: grid;
    place-items: center;
    background: rgb(255 255 255 / .7);
    color: var(--_deep);
  }
  .bento__icon svg { width: 24px; height: 24px; }

  .proiecte__sinteza {
    margin-block-start: var(--space-xl);
    margin-inline: auto;
    text-align: center;
    max-width: 52rem;
  }

  /* -------------------------------------------------------------------------
     3b. IMPACT (ascuns până vin cifrele reale)
     ------------------------------------------------------------------------- */
  .impact { background: var(--c-cream); }
  .impact__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
    text-align: center;
  }
  .impact__stat dd {
    font-family: var(--font-display);
    font-size: var(--fs-800);
    font-weight: 600;
    color: var(--c-ink);
  }
  .impact__stat dt {
    font-size: var(--fs-200);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-ink-soft);
    order: 1;
  }
  .impact__stat { display: grid; gap: .3rem; }

  /* -------------------------------------------------------------------------
     4. CUM POȚI AJUTA
     ------------------------------------------------------------------------- */
  .ajuta__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
    align-items: stretch;
  }
  .ajuta__card {
    position: relative;
    padding: var(--space-l);
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    border-block-start: 4px solid var(--_hue);
  }
  .ajuta__card:hover { translate: 0 -5px; box-shadow: var(--shadow-m); }
  .ajuta__nr {
    font-size: var(--fs-700);
    font-weight: 300;
    color: var(--c-ink-faint);
    line-height: 1;
  }
  .ajuta__card h3 { font-family: var(--font-body); font-size: var(--fs-600); font-weight: 800; }
  .ajuta__card > p { color: var(--c-ink-soft); font-size: var(--fs-300); }
  .ajuta__btn { margin-block-start: auto; align-self: start; }
  .ajuta__titular { font-size: var(--fs-200); }

  .corporate {
    margin-block-start: var(--space-l);
    padding: var(--space-l);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    background: var(--c-cream-2);
    box-shadow: none;
  }
  .corporate h3 { font-family: var(--font-body); font-size: var(--fs-500); font-weight: 800; }
  .corporate p { color: var(--c-ink-soft); font-size: var(--fs-300); max-width: 46ch; }

  /* -------------------------------------------------------------------------
     5. REDIRECȚIONEAZĂ 3,5%
     ------------------------------------------------------------------------- */
  .redir { position: relative; overflow: clip; }
  .redir__giant {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: -2%;
    translate: 0 -50%;
    font-size: clamp(9rem, 22vw, 19rem);
    font-weight: 560;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgb(29 36 64 / .14);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
  }
  .redir__giant i { font-style: normal; font-size: .55em; }
  .redir .section-head { position: relative; z-index: 1; }

  .steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
    max-width: 56rem;
    counter-reset: pas;
  }
  .steps__item {
    background: var(--c-white);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-s);
    padding: var(--space-m);
    display: grid;
    gap: .4rem;
    align-content: start;
  }
  .steps__nr {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--spec-2-tint);
    color: var(--spec-2-deep);
    font-size: var(--fs-600);
    font-weight: 600;
  }
  .steps__item h3 { font-family: var(--font-body); font-size: var(--fs-400); font-weight: 800; }
  .steps__item p { font-size: var(--fs-300); color: var(--c-ink-soft); }

  .redir__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-block: var(--space-l);
  }
  .redir .faq { position: relative; z-index: 1; }

  /* -------------------------------------------------------------------------
     6. VOLUNTARIAT — banda duotone
     ------------------------------------------------------------------------- */
  .voluntariat {
    position: relative;
    overflow: clip;
    isolation: isolate;
  }
  .voluntariat__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--c-ink);
  }
  .voluntariat__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(.9);
  }
  /* overlay-ul duotone navy → coral */
  .voluntariat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg,
      rgb(29 36 64 / .93),
      rgb(29 36 64 / .78) 55%,
      rgb(178 58 34 / .66));
  }
  .voluntariat__inner {
    text-align: center;
    display: grid;
    justify-items: center;
    gap: var(--space-m);
    padding-block: var(--space-xl);
  }
  .voluntariat h2 {
    color: var(--c-cream);
    max-width: 22ch;
    font-size: var(--fs-800);
  }
  .voluntariat__lead {
    color: var(--c-cream-soft);
    max-width: 44rem;
  }

  /* -------------------------------------------------------------------------
     GALERIE
     ------------------------------------------------------------------------- */
  .galerie { overflow: clip; }
  .galerie__rows { display: grid; gap: .25rem; }

  /* -------------------------------------------------------------------------
     7. TRANSPARENȚĂ
     ------------------------------------------------------------------------- */
  .docs {
    display: grid;
    gap: var(--space-s);
    max-width: 52rem;
  }

  /* -------------------------------------------------------------------------
     8. CONTACT
     ------------------------------------------------------------------------- */
  .contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
  }
  .contact__card {
    padding: var(--space-l);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: .55rem;
  }
  .contact__card:hover { translate: 0 -4px; box-shadow: var(--shadow-m); }
  .contact__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--spec-1-tint);
    color: var(--spec-1-deep);
    margin-block-end: .35rem;
  }
  .contact__icon svg { width: 26px; height: 26px; }
  .contact__card h3 { font-family: var(--font-body); font-size: var(--fs-500); font-weight: 800; }
  .contact__card p { font-size: var(--fs-300); color: var(--c-ink-soft); }
  .contact__link {
    font-weight: 700;
    color: var(--c-ink);
    text-decoration: none;
    overflow-wrap: anywhere;
  }
  .contact__link:hover { color: var(--c-coral-deep); }

  /* -------------------------------------------------------------------------
     RESPONSIVE
     ------------------------------------------------------------------------- */
  @media (min-width: 1024px) {
    .hero__chip { display: block; }
  }

  @media (max-width: 1100px) {
    .valori__grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  }

  @media (max-width: 900px) {
    .hero { padding-block-start: calc(var(--nav-h) + var(--space-l)); }
    .hero__inner { grid-template-columns: 1fr; }
    /* pe mobil fotografia vine PRIMA: cârlig emoțional above-the-fold
       (și candidat LCP valid — textul intră animat, deci nu se califică) */
    .hero__stage { order: -1; }
    .hero__photo { max-height: none; width: min(100%, 440px); }
    .hero__arc { width: 64%; top: -7%; }

    .despre__grid { grid-template-columns: 1fr; }
    .despre__foto { width: min(100%, 420px); margin-inline: auto; }

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__card--featured { grid-column: span 2; }
    .bento__card--wide { grid-column: span 2; }

    .ajuta__grid { grid-template-columns: 1fr; }
    .contact__grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
    .impact__grid { grid-template-columns: repeat(2, 1fr); }

    .steps { grid-template-columns: 1fr; }
    .redir__giant { display: none; }
  }

  @media (max-width: 700px) {
    .bento { grid-template-columns: 1fr; }
    .bento__card--featured, .bento__card--wide { grid-column: auto; }
    .galerie__thumb img { height: 190px; }
  }

  @media (max-width: 560px) {
    /* valorile devin un scroller cu snap */
    .valori__grid {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--gutter);
      padding-block-end: var(--space-s);
      margin-inline: calc(-1 * var(--gutter));
      padding-inline: var(--gutter);
    }
    .card--val { flex: 0 0 66%; scroll-snap-align: start; }

    .doc-card { flex-wrap: wrap; }
    .doc-card__btn { width: 100%; }
    .hero__cta .btn { flex: 1 1 100%; }
  }
}

/* ===== animations.css ===== */
/* ============================================================================
   MOTION — reveal-uri, coregrafia hero, marquee, scroll-driven, reduced-motion
   Toate stările inițiale ascunse sunt condiționate de `html.js` — fără
   JavaScript, conținutul e complet vizibil.
   ============================================================================ */

@layer motion {

  /* -------------------------------------------------------------------------
     REVEAL SYSTEM — data-reveal / data-reveal-group
     ------------------------------------------------------------------------- */
  .js [data-reveal],
  .js [data-reveal-group] [data-reveal-child] {
    opacity: 0;
    translate: 0 28px;
    transition:
      opacity var(--t-slow) var(--ease-out),
      translate var(--t-slow) var(--ease-out);
    transition-delay: calc(var(--_d, 0) * 70ms);
  }
  .js [data-reveal="left"]  { translate: -36px 0; }
  .js [data-reveal="right"] { translate: 36px 0; }
  .js [data-reveal="zoom"]  { translate: 0 0; scale: .94; transition-property: opacity, scale; }
  .js [data-reveal="clip"] {
    translate: 0 0;
    clip-path: inset(0 100% 0 0 round var(--radius-m));
    transition-property: opacity, clip-path;
  }

  .js [data-reveal].is-inview {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    clip-path: inset(0 0 0 0 round 0);
  }
  .js [data-reveal-group].is-inview [data-reveal-child] {
    opacity: 1;
    translate: 0 0;
    transition-delay: calc(var(--_stagger, 0) * 70ms);
  }

  [data-reveal-delay="1"] { --_d: 1; } [data-reveal-delay="2"] { --_d: 2; }
  [data-reveal-delay="3"] { --_d: 3; } [data-reveal-delay="4"] { --_d: 4; }
  [data-reveal-delay="5"] { --_d: 5; } [data-reveal-delay="6"] { --_d: 6; }
  [data-reveal-delay="7"] { --_d: 7; } [data-reveal-delay="8"] { --_d: 8; }

  /* -------------------------------------------------------------------------
     COREGRAFIA HERO — pornește pe html.js.fonts-ready
     t=0 nav · t=0 arc · t=0 foto · 120/220/320 rânduri H1 · 480 lead ·
     620 CTA (+80/buton) · 800 notă · 60 kicker
     ------------------------------------------------------------------------- */
  /* nav-in animă DOAR opacity: un transform reținut (fill both) ar face navul
     containing block pentru meniul mobil fixed, iar fill backwards l-ar face
     să dispară după animație (baza e opacity 0). Opacitatea reținută e safe. */
  @keyframes nav-in    { from { opacity: 0; } to { opacity: 1; } }
  @keyframes fade-up   { from { opacity: 0; translate: 0 24px; }  to { opacity: 1; translate: 0 0; } }
  /* fără opacity — imaginea hero e candidatul LCP (vezi nota din components.css) */
  @keyframes photo-in  { from { scale: 1.06; } to { scale: 1; } }
  @keyframes line-rise { from { translate: 0 110%; }              to { translate: 0 0; } }
  @keyframes arc-draw  { from { stroke-dashoffset: 1; }           to { stroke-dashoffset: 0; } }

  .js .nav,
  .js .hero__kicker,
  .js .hero__lead,
  .js .hero__cta .btn,
  .js .hero__note { opacity: 0; }
  .js .hero__title .line > span { translate: 0 110%; }
  /* foto hero: FĂRĂ opacity 0 (candidat LCP) — doar pre-scale, ca animația
     să pornească exact din starea de repaus */
  .js .hero__photo { scale: 1.06; }
  .js .hero__arc path { stroke-dasharray: 1; stroke-dashoffset: 1; }

  .js.fonts-ready .nav          { animation: nav-in 500ms var(--ease-out) both; }
  .js.fonts-ready .hero__kicker { animation: fade-up 500ms var(--ease-out) 60ms both; }
  .js.fonts-ready .hero__photo  { animation: photo-in 1200ms var(--ease-out) both; }

  .js.fonts-ready .hero__title .line:nth-child(1) > span { animation: line-rise 700ms var(--ease-out) 120ms both; }
  .js.fonts-ready .hero__title .line:nth-child(2) > span { animation: line-rise 700ms var(--ease-out) 220ms both; }
  .js.fonts-ready .hero__title .line:nth-child(3) > span { animation: line-rise 700ms var(--ease-out) 320ms both; }

  .js.fonts-ready .hero__lead { animation: fade-up 600ms var(--ease-out) 480ms both; }
  .js.fonts-ready .hero__cta .btn:nth-child(1) { animation: fade-up 550ms var(--ease-out) 620ms both; }
  .js.fonts-ready .hero__cta .btn:nth-child(2) { animation: fade-up 550ms var(--ease-out) 700ms both; }
  .js.fonts-ready .hero__cta .btn:nth-child(3) { animation: fade-up 550ms var(--ease-out) 780ms both; }
  .js.fonts-ready .hero__note { animation: fade-up 500ms var(--ease-out) 860ms both; }

  .js.fonts-ready .hero__arc path { animation: arc-draw 1100ms var(--ease-out) both; }
  .js.fonts-ready .hero__arc path:nth-child(1) { animation-delay: 0ms; }
  .js.fonts-ready .hero__arc path:nth-child(2) { animation-delay: 90ms; }
  .js.fonts-ready .hero__arc path:nth-child(3) { animation-delay: 180ms; }
  .js.fonts-ready .hero__arc path:nth-child(4) { animation-delay: 270ms; }
  .js.fonts-ready .hero__arc path:nth-child(5) { animation-delay: 360ms; }

  /* Arcul-divider mic (dacă apare) se desenează la intrarea în viewport */
  .js .arc-divider path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .arc-divider.is-inview path { animation: arc-draw 900ms var(--ease-out) both; }
  .js .arc-divider.is-inview path:nth-child(2) { animation-delay: 80ms; }
  .js .arc-divider.is-inview path:nth-child(3) { animation-delay: 160ms; }
  .js .arc-divider.is-inview path:nth-child(4) { animation-delay: 240ms; }
  .js .arc-divider.is-inview path:nth-child(5) { animation-delay: 320ms; }

  /* Plutirea blobs-urilor din hero — foarte lentă, abia perceptibilă */
  @keyframes blob-float {
    from { translate: 0 0; }
    to   { translate: 0 26px; }
  }
  .hero__blob {
    animation: blob-float 13s var(--ease-in-out) infinite alternate;
  }
  .hero__blob--2 { animation-duration: 17s; animation-delay: -6s; }

  /* -------------------------------------------------------------------------
     MARQUEE — buclă infinită pe track-ul duplicat
     ------------------------------------------------------------------------- */
  @keyframes marquee-x { to { transform: translateX(-50%); } }

  .marquee__track { animation: marquee-x 28s linear infinite; }
  .marquee--foto .marquee__track--a { animation-duration: 38s; }
  .marquee--foto .marquee__track--b { animation-duration: 44s; animation-direction: reverse; }

  .marquee:hover .marquee__track,
  .marquee:focus-within .marquee__track,
  .marquee.is-paused .marquee__track,
  .marquee.is-offscreen .marquee__track { animation-play-state: paused; }

  /* -------------------------------------------------------------------------
     SCROLL-DRIVEN (progressive enhancement — Chrome/Edge/Safari 26+)
     ------------------------------------------------------------------------- */
  @keyframes progress-grow { from { scale: 0 1; } to { scale: 1 1; } }
  @keyframes drift-up      { from { translate: 0 40px; } to { translate: 0 -40px; } }

  @supports (animation-timeline: scroll()) {
    .progress__bar {
      animation: progress-grow linear both;
      animation-timeline: scroll(root block);
    }
    .redir__giant {
      animation: drift-up linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }

  /* -------------------------------------------------------------------------
     REDUCED MOTION — kill-switch global, nenegociabil
     ------------------------------------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: .01ms !important;
      animation-iteration-count: 1 !important;
      animation-delay: 0ms !important;
      transition-duration: .01ms !important;
      transition-delay: 0ms !important;
    }
    html { scroll-behavior: auto; }

    /* marquee-urile devin scrollere manuale */
    .marquee__track { animation: none !important; }
    .marquee__viewport {
      overflow-x: auto;
      -webkit-mask-image: none;
      mask-image: none;
    }
    .marquee__pause { display: none; }

    /* stările ascunse devin vizibile instant */
    .js [data-reveal],
    .js [data-reveal-group] [data-reveal-child],
    .js .hero__kicker, .js .hero__lead,
    .js .hero__cta .btn, .js .hero__note, .js .hero__photo {
      opacity: 1 !important;
      translate: 0 0 !important;
      scale: 1 !important;
      clip-path: none !important;
    }
    /* navul separat: translate NONE (nu "0 0") — orice translate, chiar identitate,
       ar face navul containing block pentru overlay-ul fixed al meniului mobil */
    .js .nav { opacity: 1 !important; translate: none !important; }
    .js .hero__title .line > span { translate: 0 0 !important; }
    .js .hero__arc path { stroke-dashoffset: 0 !important; }
    .hero__blob { animation: none !important; }
  }
}
