/* =====================================================================
   FLUIDCAR — identity.css  ·  approved visual identity (rollout 2026-11-18)
   Ported unchanged from the approved visual prototype (evolution.css v2).
   Loaded after site.css on every page. Layout, spacing and typography are
   NOT changed here: only colour accents, the new logo sizing and the intro
   lockup geometry.

   Selectors use "html:root" so every rule keeps exactly the specificity it
   had in the prototype (html[data-look="proposed"] = 0,1,1).

   Colour rules
   - Electric Cyan (#00C8D7) stays the primary accent.
   - Neon Violet is the secondary accent; Magenta appears only as ambient
     light (low-opacity gradients), never as text, icons or controls.
   - Soft Pink (#FF75C8) is defined but reserved.
   - No gradient text, no glassmorphism, no neon outlines.
   - The EU funding badge and the EU acknowledgement are never touched.

   Roll back: remove the <link> to this file from the nine pages and restore
   the logo paths in layout.js / intro.js (see README.md, "Visual identity").
   ===================================================================== */

:root {
  /* complementary palette (approved 2026-11-18) */
  --violet:  #8557FF;   /* Neon Violet  — secondary accent, UI details, light */
  --purple:  #A855F7;   /* Electric Purple — ambient light */
  --magenta: #E83EAE;   /* Magenta — ambient light only */
  --pink:    #FF75C8;   /* Soft Pink — reserved, not used on the home page */

  /* gradients */
  --grad-tech: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 100%);          /* technical accents */
  --grad-spectrum: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --light-violet:  rgba(133, 87, 255, 0.50);   /* v2: stronger */
  --light-purple:  rgba(168, 85, 247, 0.28);
  --light-magenta: rgba(232, 62, 174, 0.32);
  --light-cyan:    rgba(0, 200, 215, 0.10);
}

/* ---------- 1. Hero: atmospheric lighting ---------- */
/* An overlay inside the hero media: it colours the placeholder now and will
   grade the licensed photograph later in the same way. Text sits on the
   unchanged Deep Navy readability scrim (.hero::after). */
html:root .hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(46% 52% at 76% 56%, var(--light-violet) 0%, rgba(133, 87, 255, 0.10) 48%, transparent 74%),
    radial-gradient(62% 16% at 72% 61%, var(--light-purple) 0%, transparent 72%),
    radial-gradient(34% 38% at 94% 92%, var(--light-magenta) 0%, transparent 72%),
    radial-gradient(26% 22% at 90% 58%, rgba(232, 62, 174, 0.20) 0%, transparent 72%),
    radial-gradient(36% 34% at 60% 30%, var(--light-cyan) 0%, transparent 70%),
    linear-gradient(180deg, rgba(133, 87, 255, 0.06) 0%, transparent 55%);
}
@media (max-width: 767px) {   /* mobile: the photograph sits at the top, the text below */
  html:root .hero-media::after {
    background:
      radial-gradient(80% 34% at 56% 26%, var(--light-violet) 0%, rgba(133, 87, 255, 0.10) 50%, transparent 76%),
      radial-gradient(60% 24% at 100% 4%, var(--light-magenta) 0%, transparent 72%),
      linear-gradient(180deg, rgba(133, 87, 255, 0.10) 0%, transparent 60%);
  }
}
html:root .hero-placeholder::before {   /* horizon line: cyan → violet, very soft glow */
  background: linear-gradient(90deg, transparent 0%, rgba(0, 200, 215, 0.14) 28%, rgba(0, 200, 215, 0.65) 52%, rgba(133, 87, 255, 0.8) 74%, rgba(232, 62, 174, 0.6) 92%, transparent 100%);
  box-shadow: 0 0 16px rgba(133, 87, 255, 0.40);
}
html:root .hero .eyebrow::before { width: 40px; background: var(--grad-tech); }
html:root .hero-status {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(0, 200, 215, 0.55), rgba(133, 87, 255, 0.45) 45%, rgba(133, 87, 255, 0) 100%) 1;
}

/* ---------- 2. Buttons (selected) ---------- */
/* Primary: Cyan into Violet. Navy text keeps ≥ 4.7:1 everywhere under the label. */
html:root .hero .btn-primary {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan) 35%, var(--violet) 122%);
  border-color: transparent;
  box-shadow: 0 10px 30px -14px rgba(133, 87, 255, 0.55);
  transition: box-shadow var(--t-micro) var(--ease-out), filter var(--t-micro) var(--ease-out);
}
html:root .hero .btn-primary:hover { box-shadow: 0 12px 34px -12px rgba(133, 87, 255, 0.75); filter: brightness(1.06); }
/* Secondary: gradient hairline border on Deep Navy */
html:root .hero .btn-secondary {
  border-color: transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--grad-tech) border-box;
}
html:root .hero .btn-secondary:hover { background: var(--cloud) padding-box, var(--cloud) border-box; color: var(--navy); }

/* ---------- 3. Header (home page): active link indicator ---------- */
html:root .main-nav a[aria-current="page"]::after { background: var(--grad-tech); }

/* ---------- 4. Latest from the project (light section) ---------- */
/* Light sections stay calm: lines and a single accent, no ambient light. */
html:root .home-news .eyebrow::before { width: 40px; background: var(--grad-tech); }
html:root .home-news .nm-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--grad-tech); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-ui) var(--ease-out);
}
html:root .home-news .nm-media::before {   /* soft violet light from below, on hover */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(0deg, rgba(133, 87, 255, 0.34) 0%, rgba(232, 62, 174, 0.08) 38%, transparent 70%);
  transition: opacity var(--t-ui) var(--ease-out);
}
html:root .home-news .nm-card:hover .nm-media::before,
html:root .home-news .nm-card:focus-within .nm-media::before { opacity: 1; }
html:root .home-news .nm-media::after { z-index: 2; }
html:root .home-news .nm-card:hover .nm-media::after,
html:root .home-news .nm-card:focus-within .nm-media::after { transform: none; }
html:root .home-news .text-link { border-bottom: 1px solid transparent; border-image: var(--grad-tech) 1; }

/* ---------- 5. Project overview (light section) ---------- */
html:root #overview { overflow: hidden; }
html:root #overview::before {   /* one faint violet light, top right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(38% 46% at 92% 8%, rgba(133, 87, 255, 0.10) 0%, transparent 72%);
}
html:root #overview > .wrap { position: relative; }
html:root .glance { border-top: 2px solid transparent; border-image: var(--grad-tech) 1; }
html:root .status-pill::before { background: var(--grad-tech); }

/* ---------- 6. Footer: aurora edge ---------- */
html:root .site-footer {
  position: relative; overflow: hidden;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(0, 200, 215, 0) 0%, rgba(0, 200, 215, 0.7) 22%, rgba(133, 87, 255, 0.8) 55%, rgba(232, 62, 174, 0.6) 82%, rgba(232, 62, 174, 0) 100%) 1;
}
html:root .site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 70% at 84% 0%, var(--light-purple) 0%, transparent 72%),
    radial-gradient(30% 50% at 100% 0%, rgba(232, 62, 174, 0.10) 0%, transparent 70%),
    radial-gradient(36% 60% at 6% 100%, rgba(0, 200, 215, 0.06) 0%, transparent 72%);
}
html:root .site-footer > .wrap { position: relative; }

/* ---------- 7. Intro animation ---------- */
html:root .intro {
  background: var(--navy) radial-gradient(56% 44% at 50% 50%, rgba(133, 87, 255, 0.16), rgba(133, 87, 255, 0) 70%);
}
html:root .intro-light {
  background: linear-gradient(90deg, rgba(133, 87, 255, 0), var(--violet) 45%, var(--cyan) 86%, var(--cloud) 97%, rgba(0, 200, 215, 0));
}

/* ---------- 8. Reduced motion & forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  html:root .home-news .nm-media::after, html:root .home-news .nm-media::before { transition: none; }
}
@media (forced-colors: active) {
  html:root .hero-media::after, html:root .site-footer::before, html:root #overview::before { display: none; }
}

/* ---------- 9. v2 additions: selected borders and section transitions ---------- */
/* Header Contact button: gradient hairline */
html:root .main-nav a.nav-cta:not([aria-current="page"]) {
  border-color: transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--grad-tech) border-box;
}
html:root .main-nav a.nav-cta:not([aria-current="page"]):hover { background: var(--cloud) padding-box, var(--cloud) border-box; }
/* Persistent Contact button: gradient hairline (the EU badge is never touched) */
html:root .contact-fab {
  border-color: transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box, var(--grad-tech) border-box;
}
html:root .contact-fab:hover { background: linear-gradient(var(--steel), var(--steel)) padding-box, var(--grad-spectrum) border-box; }
/* Header bottom line once scrolled: a quiet spectrum */
html:root .site-header:not(.at-top) {
  border-bottom-color: transparent;
  border-image: linear-gradient(90deg, rgba(0, 200, 215, 0) 0%, rgba(0, 200, 215, 0.45) 30%, rgba(133, 87, 255, 0.5) 65%, rgba(232, 62, 174, 0) 100%) 1;
}

/* Transition 1 — hero → light section: a spectrum seam with a soft violet light falling
   onto the top of the next section (fades out within 140 px, text stays on clean background) */
html:root .hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; pointer-events: none;
  background: var(--grad-spectrum); opacity: 0.7;
}
html:root .hero + .section::before,
html:root .home-news[hidden] + .section::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none;
  background: radial-gradient(60% 100% at 70% 0%, rgba(133, 87, 255, 0.10) 0%, rgba(133, 87, 255, 0) 100%);
}
html:root .home-news > .wrap { position: relative; }

/* Transition 2 — last light section → footer: the light section dims into a faint violet
   tint, then the footer's spectrum edge takes over */
html:root #overview::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
  background: linear-gradient(180deg, rgba(133, 87, 255, 0) 0%, rgba(133, 87, 255, 0.07) 100%);
}

/* ---------- 10. Intro with the new logo (tagline area inside the new lockup) ---------- */
html:root .intro { --tag-x: 34%; --tag-y: 70%; }
html:root .intro-logo { aspect-ratio: 1659.7 / 276.7; width: clamp(280px, 54vw, 760px); }
@media (max-width: 639px) { html:root .intro-logo { width: min(90vw, 460px); } }


/* ---------- 11. New logo in the footer (rollout) ---------- */
.footer-brand img { height: 44px; width: auto; max-width: 100%; }   /* same 44 px height as the previous logo: footer layout unchanged */

/* ---------- 12. Fix (2026-11-19): mobile menu Contact button ----------
   Below 1200 px, section 9 above gives the Contact button a navy fill, while site.css
   (section 17) keeps its navy label -> the label was invisible (navy on navy).
   The label is now Cloud White on the navy fill with the gradient hairline. */
@media (max-width: 1199px) {
  html.js .main-nav a.nav-cta:not([aria-current="page"]) { color: var(--cloud); }
}
