/* ===========================================================
   HeLoS — Health, Longevity & Sport
   Design system — "Longevity rings" editorial science identity.
   Deliberately distinct from the FLIP template: green-led (not
   rainbow-gradient chrome), underline nav (not pill nav), concentric
   age-ring hero motif, left-accent-rail cards, node timeline.
   Palette derived from the HeLoS logo:
   Leaf #4E9A3E · Sun #F2A81D · Figure #DD5A28 · Pulse #D8352B · Arm #2D74B8
   =========================================================== */

:root {
  --green:      #4E9A3E;
  --green-dark: #3C7C31;
  --green-deep: #2C5A24;
  --gold:       #F2A81D;
  --gold-dark:  #C9870B;
  --orange:     #DD5A28;
  --orange-dark:#C2461B;
  --red:        #D8352B;
  --blue:       #2D74B8;
  --blue-dark:  #1B4A73;
  --navy:       #14324E;

  --ink:    #16242E;
  --ink-2:  #43525E;
  --muted:  #6A7882;
  --line:   #E6E1D5;
  --line-2: #D8D2C2;

  --sand:   #F7F4EC;   /* warm paper */
  --sand-2: #EFEADD;
  --paper:  #FFFFFF;
  --cream:  #FBF9F3;

  /* gradient kept for brand artwork / accents, used sparingly */
  --helos-gradient: linear-gradient(120deg, #4E9A3E 0%, #7FB23A 22%, #F2A81D 46%, #DD5A28 70%, #2D74B8 100%);
  --green-tint: rgba(78,154,62,.10);

  --shadow-sm: 0 1px 2px rgba(20,50,78,.05), 0 2px 6px rgba(20,50,78,.05);
  --shadow-md: 0 14px 34px rgba(28,70,40,.10);
  --shadow-lg: 0 28px 64px rgba(28,70,40,.16);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;

  --maxw: 1180px;
  --nav-h: 74px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 640; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; }

/* ---------- language toggle visibility ---------- */
.lang-en .hr { display: none; }
body:not(.lang-en) .en { display: none; }
.hr.inline, .en.inline { display: inline; }
.lang-en .hr.inline { display: none; }
body:not(.lang-en) .en.inline { display: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 60px 0; }
.section.sand { background: var(--sand); }
.section.sand-2 { background: var(--sand-2); }
.section.paper { background: var(--paper); }
.section.ink { background: var(--green-deep); color: #DDEAD3; }
.section.ink h2, .section.ink h3 { color: #fff; }

/* hairline rule that separates stacked sections */
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--green-tint);
}
.section.ink .eyebrow { color: var(--gold); }
.section.ink .eyebrow::before { box-shadow: 0 0 0 4px rgba(255,255,255,.12); }

/* section heading gets a short gold underline swash */
.section h2 { position: relative; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 64ch; }
.section.ink .lead { color: #C6D8BC; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .98rem;
  padding: 13px 26px; border-radius: var(--r-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(60,124,49,.28); }
.btn-primary:hover { background: var(--green-dark); color: #fff; box-shadow: 0 12px 26px rgba(60,124,49,.34); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }
.section.ink .btn-primary { background: var(--gold); color: var(--green-deep); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.section.ink .btn-primary:hover { background: #fff; }
.section.ink .btn-ghost { border-color: rgba(255,255,255,.4); color:#fff; }
.section.ink .btn-ghost:hover { border-color:#fff; color:#fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===========================================================
   HEADER / NAV  — solid white bar, underline-style nav
   =========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(20,50,78,.02);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 42px; height: 42px; object-fit: contain;
  padding: 5px; border-radius: 12px;
  background: var(--green-tint);
}
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b {
  font-family: var(--serif); font-weight: 700; font-size: 1.42rem;
  letter-spacing: .01em; color: var(--green-dark);
}
.brand .word span { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 6px 0;
  font-weight: 600; font-size: .96rem; color: var(--ink);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2.5px;
  background: var(--green); border-radius: 2px; transition: right .25s ease;
}
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--green-dark); }
.nav-links a.active::after { right: 0; background: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden;
  font-weight: 700; font-size: .8rem; background: var(--paper);
}
.lang-switch button {
  border: 0; background: transparent; padding: 7px 13px; cursor: pointer; color: var(--muted);
  font-family: var(--sans); font-weight: 700;
}
.lang-switch button.on { background: var(--green); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* ===========================================================
   HERO  — concentric "age ring" motif behind the logo
   =========================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(242,168,29,.16), transparent 62%),
    radial-gradient(760px 420px at -4% 4%, rgba(78,154,62,.14), transparent 60%),
    var(--cream);
}
/* faint contour rings across the whole hero */
.hero::before {
  content: ""; position: absolute; right: -180px; top: 50%; transform: translateY(-50%);
  width: 760px; height: 760px; border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 38px, rgba(78,154,62,.06) 38px 39px);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: 90px; padding-bottom: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .3em; }
.hero h1 .grad {
  color: var(--green-dark);
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  position: relative; padding-bottom: .06em;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% .12em; background-position: 0 .98em; background-repeat: no-repeat;
}
.hero .tagline { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--green); margin-bottom: 1.4rem; }
.hero .code-pill {
  display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1.4rem;
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 7px 15px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero .code-pill b { color: var(--green-dark); }

/* project code rendered as a link to its CroRIS record — blends into context */
.code-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(78,154,62,.45); text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.code-link:hover { color: var(--green-dark); text-decoration-color: var(--green); }
.site-footer .code-link:hover { color:#fff; text-decoration-color:#fff; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .ring-wrap {
  width: min(420px, 92%); position: relative;
  display: grid; place-items: center;
}
/* two concentric rings framing the logo */
.hero-art .ring-wrap::before,
.hero-art .ring-wrap::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(78,154,62,.22);
}
.hero-art .ring-wrap::before { inset: -6%; border-style: solid; }
.hero-art .ring-wrap::after {
  inset: -20%; border-color: rgba(242,168,29,.30); border-style: dashed;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-art img { width: 86%; filter: drop-shadow(0 24px 50px rgba(28,70,40,.18)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* pillar tiles under hero — icon-on-top, distinct from FLIP's accent-bar chips */
.elements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.element {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 26px 24px; box-shadow: var(--shadow-sm); position: relative;
  text-align: left; transition: transform .2s, box-shadow .2s;
}
.element:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.element .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; line-height: 1; margin-bottom: 16px;
}
.element.green .ico { background: rgba(78,154,62,.14); }
.element.gold .ico { background: rgba(242,168,29,.16); }
.element.blue .ico { background: rgba(45,116,184,.14); }
.element b { display:block; font-family: var(--serif); color: var(--ink); font-size: 1.12rem; margin-bottom: 6px; }
.element small { color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* ===========================================================
   STAT STRIP
   =========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -13px; top: 14%; bottom: 14%; width: 1px; background: var(--line);
}
.stat .num {
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  color: var(--green-dark);
}
.stat:nth-child(2) .num { color: var(--gold-dark); }
.stat:nth-child(3) .num { color: var(--orange); }
.stat:nth-child(4) .num { color: var(--blue); }
.stat .lbl { display:block; margin-top: 8px; font-size: .92rem; color: var(--muted); font-weight: 600; }

/* ===========================================================
   CARDS / GRIDS  — left accent rail, flatter, squared
   =========================================================== */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  height: 100%; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.card .tag {
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color: var(--green-dark); margin-bottom: 10px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .ico-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px; background: var(--green-tint); color: var(--green-dark);
}

/* objective card numbered */
.obj { display: flex; gap: 18px; align-items: flex-start; }
.obj .n {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; color: var(--green-dark); font-size: 1.15rem;
  background: var(--paper); border: 2px solid var(--green); box-shadow: var(--shadow-sm);
}
.obj h3 { font-size: 1.15rem; }

/* feature list */
.flist { list-style: none; margin: 0; padding: 0; }
.flist li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.flist li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px var(--green-tint);
}

/* work-package cards with left accent rail (not top border) */
.interv { border-left: 4px solid var(--line-2); }
.interv.green { border-left-color: var(--green); }
.interv.gold { border-left-color: var(--gold); }
.interv.orange { border-left-color: var(--orange); }
.interv.blue { border-left-color: var(--blue); }
.interv.red { border-left-color: var(--red); }
.interv .meta { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 14px; }
.interv .meta span { font-size:.78rem; font-weight:700; color: var(--ink-2); background: var(--sand-2); border-radius: var(--r-xs); padding: 5px 12px; }
.interv .wp-code { font-family: var(--serif); font-weight:700; color: var(--green-dark); font-size: 1.05rem; }

/* ---------- timeline — node + connecting rail ---------- */
.timeline { display: grid; gap: 0; position: relative; padding-left: 4px; }
.tl-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 26px 0 26px 34px;
  position: relative; border-left: 2px solid var(--line);
}
.tl-item::before {
  content: ""; position: absolute; left: -8px; top: 32px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--green);
}
.tl-item:first-child { padding-top: 8px; }
.tl-item:first-child::before { top: 14px; }
.tl-year { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--green-dark); }
.tl-year small { display:block; font-family: var(--sans); font-size:.78rem; color: var(--muted); font-weight:700; letter-spacing:.08em; text-transform:uppercase; }

/* ---------- team ---------- */
.team-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.member { background: var(--paper); border:1px solid var(--line); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; display:grid; place-items:center;
  font-family: var(--serif); font-weight:700; font-size:1.4rem; color:#fff; margin-bottom: 14px;
  background: var(--green);
}
.member b { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.member .role { font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--green-dark); margin: 2px 0 8px; }
.member .org { color: var(--muted); font-size:.92rem; }
.member.lead { border: none; box-shadow: var(--shadow-md); }
.member.lead .avatar { background: var(--gold); color: var(--green-deep); box-shadow: 0 0 0 4px rgba(242,168,29,.2); }

/* Baze podataka page */
.db-hero { background: linear-gradient(135deg, var(--green-deep) 0%, var(--navy) 100%) !important; }
.db-hero h1, .db-hero .lead, .db-hero .breadcrumb, .db-hero .breadcrumb a { color:#fff !important; }
.db-hero .breadcrumb a:hover { color: var(--gold) !important; }

.db-gateway { display:flex; gap:40px; align-items:flex-start; background:var(--paper); border:2px solid var(--green); border-radius: var(--r-lg); padding:44px 48px; box-shadow: var(--shadow-md); margin-bottom:56px; }
.db-gw-icon { width:88px; height:88px; background: var(--green-tint); border-radius: var(--r-lg); display:grid; place-items:center; flex-shrink:0; }
.db-gw-body h2 { font-family: var(--serif); font-size:1.55rem; color:var(--ink); margin:0 0 12px; }
.db-gw-body p { color:var(--ink-2); font-size:.97rem; line-height:1.65; margin:0 0 22px; }
.db-btn { display:inline-flex; align-items:center; gap:10px; background:var(--green); color:#fff; font-weight:700; font-size:1.05rem; padding:14px 28px; border-radius:99px; text-decoration:none; transition: background .2s, transform .15s; box-shadow: 0 4px 14px rgba(78,154,62,.35); }
.db-btn:hover { background:var(--green-dark); transform:translateY(-2px); }
.db-hint { font-size:.8rem; color:var(--muted); margin:10px 0 0 !important; }

.db-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-bottom:40px; }
.db-card { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-md); padding:28px 24px; box-shadow:var(--shadow-sm); transition:transform .2s, box-shadow .2s; }
.db-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.db-card-ico { width:52px; height:52px; background:var(--green-tint); border-radius:var(--r-md); display:grid; place-items:center; margin-bottom:16px; color:var(--green-dark); }
.db-card h4 { font-family:var(--serif); font-size:1.05rem; color:var(--ink); margin:0 0 8px; }
.db-card p { font-size:.88rem; color:var(--ink-2); line-height:1.6; margin:0; }

.db-contact { display:flex; align-items:center; gap:12px; background:var(--sand); border:1px solid var(--line); border-radius:var(--r-md); padding:18px 24px; font-size:.93rem; color:var(--ink-2); }
.db-contact svg { flex-shrink:0; color:var(--green); }
.db-contact a { color:var(--green-dark); font-weight:600; }
.db-contact a:hover { color:var(--green); }

@media (max-width:900px) {
  .db-gateway { flex-direction:column; padding:30px 24px; }
  .db-cards { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px) {
  .db-cards { grid-template-columns:1fr; }
}

/* Facebook / Vijesti layout */
.fb-layout { display:grid; grid-template-columns: 1fr 520px; gap: 48px; align-items: start; }
.fb-info { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 36px; box-shadow: var(--shadow-sm); position: sticky; top: 100px; }
.fb-icon-wrap { width:72px; height:72px; background:#E7F0FD; border-radius:50%; display:grid; place-items:center; margin-bottom:20px; }
.fb-info h3 { font-family: var(--serif); font-size:1.55rem; line-height:1.25; color:var(--ink); margin:0 0 14px; }
.fb-info p { color:var(--ink-2); font-size:.97rem; line-height:1.65; margin:0 0 20px; }
.fb-divider { border:none; border-top:1px solid var(--line); margin:28px 0; }
.fb-meta { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:14px; }
.fb-meta li { display:flex; align-items:center; gap:10px; color:var(--ink-2); font-size:.93rem; }
.fb-meta li svg { color:var(--green); flex-shrink:0; }
.fb-meta li .hr, .fb-meta li .en { display:inline; }
.fb-embed-wrap { border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--shadow-md); background:#fff; min-height:600px; }
.fb-embed-wrap iframe { display:block; width:100%; }
@media (max-width:900px) {
  .fb-layout { grid-template-columns:1fr; }
  .fb-info { position:static; }
  .fb-embed-wrap iframe { height:700px; }
}

/* PI featured card */
.pi-card { display:flex; gap:36px; align-items:flex-start; background: var(--paper); border:2px solid var(--gold); border-radius: var(--r-lg); padding: 36px 40px; box-shadow: var(--shadow-md); margin-bottom: 48px; }
.pi-photo { width:160px; height:160px; border-radius:50%; overflow:hidden; flex-shrink:0; box-shadow:0 0 0 5px rgba(242,168,29,.22); }
.pi-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.pi-photo .mono { font-family: var(--serif); font-weight:700; font-size:3rem; color:#fff; background: var(--gold); width:100%; height:100%; display:grid; place-items:center; }
.pi-body { flex:1; }
.pi-eyebrow { font-size:.76rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--gold-dark); margin-bottom:6px; }
.pi-name { font-family: var(--serif); font-size:1.7rem; font-weight:700; color: var(--ink); margin:0 0 2px; }
.pi-title { color: var(--muted); font-size:.95rem; margin-bottom:14px; }
.pi-bio { color: var(--ink-2); font-size:.97rem; line-height:1.65; margin-bottom:14px; }
.pi-orcid { display:inline-flex; align-items:center; gap:7px; font-size:.88rem; font-weight:600; color: var(--green-dark); text-decoration:none; border:1.5px solid var(--green); border-radius:99px; padding:5px 14px; transition: background .2s, color .2s; }
.pi-orcid:hover { background: var(--green); color:#fff; }
@media (max-width:640px) {
  .pi-card { flex-direction:column; align-items:center; text-align:center; padding:28px 22px; }
}

.team-photo { margin:0 auto; max-width:620px; }
.team-photo img { width:100%; height:auto; display:block; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.team-photo figcaption { margin-top:12px; text-align:center; color: var(--muted); font-size:.92rem; }

/* infographic poster + click-to-zoom lightbox */
.poster-thumb { display:flex; flex-direction:column; align-items:center; gap:10px; width:240px; margin:0 auto; cursor:zoom-in; text-decoration:none; }
.poster-frame { display:block; width:100%; border-radius: var(--r-md); overflow:hidden; box-shadow: var(--shadow-md); transition: transform .25s ease, box-shadow .25s ease; }
.poster-thumb:hover .poster-frame { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.poster-frame img { width:100%; height:auto; display:block; }
.poster-hint { background: var(--green-dark); color:#fff; font-size:.8rem; font-weight:600; padding:7px 14px; border-radius:var(--r-sm); display:inline-flex; gap:5px; align-items:center; }
.poster-lightbox { position:fixed; inset:0; z-index:1000; background:rgba(12,28,16,.93); display:none; align-items:center; justify-content:center; padding:24px; cursor:zoom-out; }
.poster-lightbox:target { display:flex; }
.poster-lightbox img { max-width:96vw; max-height:94vh; width:auto; height:auto; border-radius:6px; box-shadow:0 24px 70px rgba(0,0,0,.55); }
.poster-lightbox::after { content:"\00d7"; position:fixed; top:18px; right:26px; color:#fff; font-size:2.4rem; line-height:1; font-weight:300; opacity:.85; }

/* ---------- welcome / lead quote ---------- */
.welcome { display:grid; grid-template-columns:auto 1fr; gap:34px; align-items:center; max-width:900px; margin:0 auto; }
.welcome-photo { width:128px; height:128px; border-radius:50%; overflow:hidden; flex-shrink:0; box-shadow:0 0 0 5px var(--green-tint); display:grid; place-items:center; background: var(--green); }
.welcome-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.welcome-photo .mono { font-family: var(--serif); font-weight:700; font-size:2.6rem; color:#fff; }
.welcome blockquote { margin:10px 0 14px; padding:0 0 0 22px; border-left: 3px solid var(--gold); }
.welcome blockquote p { font-family: var(--serif); font-style:italic; font-size:1.3rem; line-height:1.55; color: var(--ink); margin:0; }
.welcome-sign b { display:block; font-family: var(--serif); font-size:1.05rem; color: var(--ink); }
.welcome-sign span { color: var(--muted); font-size:.9rem; }
@media (max-width:640px){ .welcome { grid-template-columns:1fr; text-align:center; justify-items:center; } .welcome blockquote { border-left:none; padding-left:0; } }

.prose p { margin: 0 0 16px; line-height: 1.72; }
.summary-goals { margin: 4px 0 20px; padding-left: 1.3em; }
.summary-goals li { margin: 0 0 8px; line-height: 1.6; padding-left: 4px; }
.summary-goals li::marker { color: var(--green-dark); font-weight: 700; }

/* ---------- callout / quote ---------- */
.quote {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.35; color: var(--ink); max-width: 26ch; margin: 0 auto; text-align:center;
  position: relative; padding-top: 36px;
}
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 5rem; line-height: 1; color: var(--gold); opacity: .5;
}
.quote .by { display:block; font-family: var(--sans); font-style: normal; font-size:.95rem; font-weight:700; color: var(--muted); margin-top: 18px; letter-spacing:.04em; }

/* split media block */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; }
.split.flip { direction: rtl; }
.split.flip > * { direction: ltr; }
.split .visual {
  border-radius: var(--r-lg); aspect-ratio: 4/3; background: var(--green);
  position: relative; overflow:hidden; box-shadow: var(--shadow-md);
  display:grid; place-items:center;
}
.split .visual::before {
  content:""; position:absolute; inset:0;
  background: repeating-radial-gradient(circle at 70% 30%, transparent 0 30px, rgba(255,255,255,.08) 30px 31px);
}
.split .visual .glyph { font-size: clamp(4rem, 12vw, 8rem); filter: drop-shadow(0 8px 20px rgba(0,0,0,.2)); position: relative; }
.split .visual.logo-fill { background: var(--paper); }
.split .visual.logo-fill::before {
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 32px, rgba(78,154,62,.07) 32px 33px);
}
.split .visual.logo-fill img { width: 74%; height: auto; position: relative; filter: drop-shadow(0 14px 34px rgba(28,70,40,.18)); }

/* CTA band — solid green with ring motif */
.cta-band {
  background: var(--green-deep); color:#fff; border-radius: var(--r-lg);
  padding: 60px; text-align:center; box-shadow: var(--shadow-lg); position: relative; overflow:hidden;
}
.cta-band::before {
  content:""; position:absolute; right:-120px; top:-120px; width:380px; height:380px; border-radius:50%;
  background: repeating-radial-gradient(circle, transparent 0 28px, rgba(255,255,255,.06) 28px 29px);
}
.cta-band > * { position: relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 60ch; margin-inline:auto; }
.cta-band .btn-primary { background: var(--gold); color: var(--green-deep); }
.cta-band .btn-primary:hover { background:#fff; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.55); color:#fff; }
.cta-band .btn-ghost:hover { border-color:#fff; }

/* ---------- partners ---------- */
.partners { display:flex; flex-wrap:wrap; gap: 18px; align-items:stretch; justify-content:center; }
.partner {
  background: var(--paper); border:1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 26px; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:2px; min-width: 220px; max-width: 280px;
}
.partner b { font-family: var(--serif); color: var(--ink); font-size: 1.02rem; }
.partner small { color: var(--muted); }
.partner .partner-logo { height: 52px; width:auto; max-width: 200px; object-fit: contain; margin-bottom: 12px; align-self:flex-start; }

/* ---------- contact form ---------- */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight:700; font-size:.86rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px; border:1.5px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--paper); color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.form-note { font-size:.85rem; color: var(--muted); }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--green-deep); color: #BFD3B3; padding: 64px 0 28px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { color:#fff; font-family: var(--sans); font-size:.82rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom: 16px; }
.site-footer a { color:#BFD3B3; }
.site-footer a:hover { color:#fff; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer ul li { margin-bottom: 9px; }
.footer-brand .word b { font-family: var(--serif); font-size:1.4rem; letter-spacing:.04em; color:#fff; }
.footer-brand .brand img { background: rgba(255,255,255,.12); }
.footer-brand p { font-size:.92rem; max-width: 34ch; }
.footer-logos { display:flex; flex-wrap:wrap; align-items:center; gap: 10px; margin-top: 16px; }
.footer-logos .logo-chip { background:#fff; border-radius: 8px; padding: 8px 12px; display:inline-flex; align-items:center; box-shadow: var(--shadow-sm); }
.footer-logos .logo-chip img { display:block; height: 30px; width:auto; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.14); margin-top: 40px; padding-top: 22px; display:flex; flex-wrap:wrap; gap: 12px; justify-content:space-between; font-size:.84rem; color:#9DB590; }

/* ---------- EU funding strip ---------- */
.eu-strip { background: var(--paper); border-top: 1px solid var(--line); }
.eu-strip .wrap { display:flex; align-items:center; gap: 26px; flex-wrap:wrap; justify-content:center; padding: 26px 24px; text-align:center; }
.eu-strip img { height: 58px; width:auto; }
.eu-strip p { margin:0; font-size:.9rem; color: var(--muted); max-width: 52ch; }

/* ---------- page hero (interior) ---------- */
.page-hero { background:
    radial-gradient(700px 320px at 88% -20%, rgba(242,168,29,.14), transparent 62%),
    radial-gradient(560px 280px at 2% 0%, rgba(78,154,62,.13), transparent 60%),
    var(--cream);
  padding: 66px 0 56px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; right:-140px; top:-80px; width:420px; height:420px; border-radius:50%;
  background: repeating-radial-gradient(circle, transparent 0 30px, rgba(78,154,62,.05) 30px 31px);
  pointer-events:none;
}
.page-hero .wrap { position: relative; }
.breadcrumb { font-size:.84rem; color: var(--muted); font-weight:600; margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1; transform:none; transition:none; }
  .hero-art img, .hero-art .ring-wrap::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .hero::before { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art .ring-wrap { width: 300px; }
  .split, .split.flip { grid-template-columns: 1fr; direction: ltr; gap: 32px; }
  .grid.cols-3, .grid.cols-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 64px 0; }
  .stats, .grid.cols-2, .grid.cols-3, .grid.cols-4, .elements, .team-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; }
  .cta-band { padding: 40px 24px; }
}
