/* ==========================================================================
   COCO-AI — shared design system
   ========================================================================== */

:root{
  /* brand colours, sampled directly from the official logo files */
  --navy:        #1E3253;
  --navy-deep:   #14213A;
  --teal:        #2FA6AF;
  --green:       #8ED698;
  --brand-gradient: linear-gradient(135deg, var(--teal), var(--green));

  /* neutrals */
  --bg:          #FBFCFB;
  --surface:     #FFFFFF;
  --surface-2:   #F1F5F3;
  --border:      #DEE5E2;
  --text:        #16233B;
  --text-dim:    #52607A;
  --text-on-navy: #EAF0F6;
  --text-on-navy-dim: #A9B7CE;

  /* type scale */
  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.94rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.14rem + 0.3vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.38rem + 0.6vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.7rem + 1vw, 2.6rem);
  --step-4:  clamp(2.4rem, 2.05rem + 1.75vw, 3.6rem);

  --content-w: 1180px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,33,58,0.05), 0 10px 30px -12px rgba(20,33,58,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3,h4{
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0 0 0.6em;
  color: var(--navy);
}
h1{ font-size: var(--step-4); letter-spacing: -0.02em; }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }
p{ margin: 0 0 1.1em; max-width: 68ch; }
.eyebrow{
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}
.wrap{ max-width: var(--content-w); margin: 0 auto; padding: 0 24px; }
section{ padding: 88px 0; }
section + section{ border-top: 1px solid var(--border); }
@media (max-width: 720px){
  section{ padding: 56px 0; }
}

/* ---- buttons ---- */
.btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600; font-size: var(--step--1);
  padding: 13px 22px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn:focus-visible{ outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-primary{ background: var(--brand-gradient); color: var(--navy-deep); box-shadow: var(--shadow); }
.btn-primary:hover{ box-shadow: 0 14px 28px -12px rgba(47,166,175,0.45); }
.btn-ghost-light{ border-color: rgba(255,255,255,0.4); color: var(--text-on-navy); }
.btn-ghost-light:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost{ border-color: var(--border); color: var(--navy); }
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }

/* ---- header ---- */
.site-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,252,251,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap{ display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.brand{ display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img{ height: 70px; width: auto; }
.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav ul{ display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav a{ text-decoration: none; font-family: "IBM Plex Sans", sans-serif; font-size: 0.93rem; font-weight: 500; color: var(--text-dim); }
.main-nav a:hover, .main-nav a[aria-current="page"]{ color: var(--navy); }
.nav-toggle{ display: none; background: none; border: none; padding: 10px; margin: -10px; cursor: pointer; }
.nav-toggle svg{ width: 24px; height: 24px; color: var(--navy); }
@media (max-width: 860px){
  .main-nav ul{ display: none; }
  .main-nav.open ul{
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav-toggle{ display: block; }
}

/* ---- hero ---- */
.hero{
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--text-on-navy);
  padding: 110px 0 96px;
  display: flex;
  align-items: center;
  /* Fill the rest of the viewport below the sticky header (87px: 70px logo
     + 8px top/bottom padding + 1px border), so the next section stays
     fully off-screen until the visitor scrolls. min-height (not height)
     lets it grow taller on screens too short for the content to fit. */
  min-height: calc(100vh - 87px);
  min-height: calc(100dvh - 87px);
}
.hero::before{
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 15% 0%, rgba(47,166,175,0.35), transparent 55%),
              radial-gradient(ellipse at 100% 100%, rgba(142,214,152,0.18), transparent 60%);
}
.hero::after{
  content: ""; position: absolute; z-index: 0;
  left: 0; top: 0; bottom: 0; width: 460px;
  background: url("../brand_assets/photography/cocoa-pod-tree.jpg") center/cover no-repeat;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 55%, transparent 96%);
          mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 55%, transparent 96%);
}
.hero-inner{ position: relative; z-index: 2; max-width: 760px; }
.hero h1{ color: #fff; }
.hero .standfirst{ color: var(--text-on-navy-dim); font-size: var(--step-1); max-width: 62ch; font-family: "IBM Plex Serif", serif; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 720px){
  .hero::after{
    top: auto; bottom: -20px; left: -20px; width: 210px; height: 280px;
    opacity: 0.28;
    -webkit-mask-image: radial-gradient(ellipse 62% 62% at 42% 50%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 55%, transparent 82%);
            mask-image: radial-gradient(ellipse 62% 62% at 42% 50%, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 55%, transparent 82%);
  }
}

/* ---- section heading pattern ---- */
.section-head{ max-width: 74ch; margin-bottom: 42px; }
/* This heading's second line is long relative to the h2 size; the 74ch cap
   above is sized for body copy, not this heading's much larger glyphs, so
   it forces extra wraps. Widen just this one so it holds to two lines. */
#what .section-head, #what > .wrap > p{ max-width: 100%; }
#what .highlight{ font-weight: 700; color: var(--teal); }
#what .section-head h2 .line{ display: block; }
#what .section-head h2 .line + .line{ margin-top: 0.2em; }
/* Match the title's width to the deliverable boxes below it. */
#deliverables .section-head{ max-width: 100%; }
#fits > .wrap > p{ max-width: 100%; }
#programme .section-head{ max-width: 100%; }
#workpackages .section-head{ max-width: 100%; }
.deliverables p strong{ color: var(--navy); }

/* ---- capability cards (AI agent role) ---- */
.cap-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: 22px; }
.cap-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 26px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cap-card:hover{ border-color: var(--teal); box-shadow: var(--shadow); }
.cap-card .num{
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.85rem;
  color: var(--teal); display: block; margin-bottom: 10px;
}
.cap-card h3{ font-size: 1.18rem; margin-bottom: 0.5em; }
.cap-card p{ color: var(--text-dim); font-size: 0.97rem; margin-bottom: 0; }

/* ---- at a glance ---- */
.facts{
  background: var(--navy-deep); color: var(--text-on-navy); border-radius: 20px;
  position: relative; overflow: hidden;
}
.facts-columns{ position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.facts-text{
  padding: 46px 40px; display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.facts-text::before{
  content:""; position:absolute; inset:0;
  background: linear-gradient(120deg, rgba(47,166,175,0.16), transparent 50%);
}
.facts-text p{
  position: relative; margin: 0;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.35;
  color: #fff;
}
.facts-image{ min-height: 320px; }
.facts-image img{ width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 700px){
  .facts-columns{ grid-template-columns: 1fr; }
  .facts-image{ min-height: 220px; order: -1; }
  .facts-text{ padding: 34px 26px; }
}

/* ---- deliverables list ---- */
.deliverables{ list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.deliverables li{
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; background: var(--surface-2); border-radius: 12px;
}
.deliverables .mark{
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-gradient); display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; font-size: 0.8rem; color: var(--navy-deep);
}
.deliverables p{ margin: 0; max-width: none; color: var(--text); }

/* ---- stakeholder hub ---- */
.hub{ display: grid; grid-template-columns: 440px 1fr; gap: 40px; align-items: start; }
.hub-diagram{
  position: relative; aspect-ratio: 1; max-width: 440px; width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr auto 1fr;
  align-items: center; justify-items: center;
  gap: 18px 14px;
}
.hub-lines{ position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hub-line{ stroke: var(--teal); stroke-width: 0.6; stroke-opacity: 0.5; vector-effect: non-scaling-stroke; }
.hub-center{
  grid-column: 2; grid-row: 2; position: relative; z-index: 1;
  width: 136px; height: 136px; border-radius: 50%;
  background: var(--brand-gradient); color: var(--navy-deep);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 0.94rem; line-height: 1.2;
  padding: 10px; box-shadow: var(--shadow);
}
.hub-node{
  position: relative; z-index: 1; width: 150px; padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1.5px solid var(--border);
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.83rem; line-height: 1.25;
  cursor: pointer; text-align: center; color: var(--navy);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hub-node:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.hub-node[aria-expanded="true"]{ border-color: var(--teal); box-shadow: var(--shadow); }
.hub-node.n1{ grid-column: 2; grid-row: 1; align-self: end; }
.hub-node.n2{ grid-column: 3; grid-row: 2; justify-self: start; }
.hub-node.n3{ grid-column: 2; grid-row: 3; align-self: start; }
.hub-node.n4{ grid-column: 1; grid-row: 2; justify-self: end; }
.hub-panels{ display: grid; gap: 12px; align-content: start; }
.hub-panel{ border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.hub-panel > button{
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--navy); font-size: 1rem;
}
.hub-panel > button .chev{ transition: transform .2s ease; flex: none; color: var(--teal); }
.hub-panel[data-open="true"] > button .chev{ transform: rotate(180deg); }
.hub-panel .panel-body{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.hub-panel[data-open="true"] .panel-body{ max-height: 900px; }
.hub-panel .panel-inner{ padding: 0 20px 20px; color: var(--text-dim); }
.hub-panel .panel-inner p{ margin: 0; }
@media (max-width: 940px){
  .hub{ grid-template-columns: 1fr; }
  .hub-diagram{ display: none; }
}

/* ---- plant cells brief ---- */
.section-head.centered{ margin-left: auto; margin-right: auto; text-align: center; }

/* ---- partner logo marquee ---- */
.logo-marquee{
  margin-top: 50px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.logo-track{
  display: flex; align-items: center; gap: 72px; width: max-content;
  animation: logo-scroll 42s linear infinite;
}
.logo-marquee:hover .logo-track{ animation-play-state: paused; }
.logo-track img{ flex: none; height: 68px; width: auto; opacity: 0.72; }
@keyframes logo-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .logo-track{ animation: none; }
}

/* ---- CTA / join block ---- */
.cta{ background: var(--surface-2); }
.cta-box{
  background: var(--navy); color: var(--text-on-navy); border-radius: 22px;
  padding: 52px; position: relative; overflow: hidden;
}
.cta-box::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 100% 0%, rgba(142,214,152,0.22), transparent 55%);
}
.cta-box > *{ position: relative; }
.cta-box h2{ color: #fff; }
.cta-box p{ color: var(--text-on-navy-dim); }
.contact-grid{ display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; font-size: 0.92rem; color: var(--text-on-navy-dim); }
.contact-grid strong{ display: block; color: #fff; font-family: "IBM Plex Sans", sans-serif; margin-bottom: 4px; }
.contact-grid a{ color: var(--green); text-decoration: none; }
@media (max-width: 720px){
  .cta-box{ padding: 26px 20px; }
}

/* ---- workflow steps (PCC page) ---- */
.steps{ list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.step{ display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 26px 0; position: relative; }
.step + .step{ border-top: 1px solid var(--border); }
.step-num{
  width: 52px; height: 52px; border-radius: 14px; background: var(--brand-gradient);
  clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-weight: 700; color: var(--navy-deep); font-size: 1.1rem;
}
.step h3{ font-size: 1.12rem; margin-bottom: 6px; }
.step p{ color: var(--text-dim); margin: 0; }
.step-content.has-img{ display: grid; grid-template-columns: 1fr 240px; gap: 28px; align-items: start; }
.step-img{ width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); display: block; }
@media (max-width: 760px){
  .step-content.has-img{ grid-template-columns: 1fr; }
  .step-img{ margin-top: 16px; max-width: 280px; aspect-ratio: 4/3; }
}
@media (max-width: 600px){ .step{ grid-template-columns: 1fr; } }

/* ---- principle section (PCC page) ---- */
.principle-layout{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.principle-img{ width: 100%; border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px){ .principle-layout{ grid-template-columns: 1fr; } }

/* ---- partners grid ---- */
.partners-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr)); gap: 26px; }
.partner-card{
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.partner-card:hover{ border-color: var(--teal); box-shadow: var(--shadow); }
.partner-logo{ height: 68px; display: flex; align-items: center; margin-bottom: 6px; }
.partner-logo img{ max-height: 68px; max-width: 220px; object-fit: contain; object-position: left center; }
.partner-card h3{ font-size: 1.08rem; margin: 0; }
.partner-meta{ font-family: "IBM Plex Sans", sans-serif; font-size: 0.82rem; color: var(--text-dim); margin: 0; }
.partner-tags{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.82rem;
  color: var(--teal); margin: 4px 0 0;
}
.partner-summary{ color: var(--text); font-size: 0.94rem; margin: 0; }
.partner-more{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.partner-card[data-open="true"] .partner-more{ max-height: 500px; }
.partner-more .partner-bio{ color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 0; }
.partner-actions{
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: auto; padding-top: 14px;
}
.partner-toggle{
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 10px 0; margin: -10px 0;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--navy);
}
.partner-toggle .plus{ font-weight: 700; color: var(--teal); transition: transform .2s ease; display: inline-block; }
.partner-card[data-open="true"] .partner-toggle .plus{ transform: rotate(45deg); }
.partner-card .visit{ display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; margin: -10px 0; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--teal); text-decoration: none; }
.partner-card .visit:hover{ color: var(--navy); }

/* ---- kickoff photo gallery (partners page) ---- */

/* ---- generic page hero (non-home pages) ---- */
.page-hero{ background: var(--navy); color: var(--text-on-navy); padding: 78px 0 68px; position: relative; overflow: hidden; }
.page-hero::before{ content:""; position:absolute; inset:0; background: radial-gradient(ellipse at 10% 0%, rgba(47,166,175,0.3), transparent 55%); }
.page-hero .wrap{ position: relative; }
.page-hero-hex{ position: absolute; right: 4%; top: -18%; width: 160px; opacity: 0.14; }
.page-hero h1{ color: #fff; max-width: 20ch; }
.page-hero .standfirst{ color: var(--text-on-navy-dim); font-size: var(--step-1); max-width: 62ch; }

/* ---- footer ---- */
.site-footer{ background: var(--navy-deep); color: var(--text-on-navy-dim); padding: 56px 0 30px; }
.site-footer a{ color: var(--text-on-navy-dim); text-decoration: none; }
.site-footer a:hover{ color: #fff; }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4{ color: #fff; font-family: "IBM Plex Sans", sans-serif; font-size: 0.85rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 0.92rem; }
.footer-brand{ display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img{ height: 44px; }
.footer-bottom{ margin-top: 46px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-legal{ display: flex; flex-direction: column; gap: 4px; }
.eu-funded{ display: flex; align-items: flex-start; gap: 12px; font-size: 0.78rem; line-height: 1.5; }
.eu-funded img{ height: 40px; flex: none; }
.eu-funded-text{ max-width: 520px; }
.eu-funded-text strong{ display: block; color: #fff; margin-bottom: 2px; }
@media (max-width: 780px){
  .footer-grid{ grid-template-columns: 1fr; }
  .eu-funded{ flex-direction: column; gap: 10px; }
}

.readmore{ display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; margin: -8px 0; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; color: var(--teal); text-decoration: none; }

a[href^="mailto:"]{ display: inline-block; padding: 8px 0; margin: -8px 0; }
.readmore:hover{ color: var(--navy); }

/* ---- news list cards (link to their own article page) ---- */
.news-list{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card{ border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.news-card-toggle{
  width: 100%; display: flex; flex-direction: column; align-items: stretch;
  padding: 0; text-decoration: none;
}
.news-card-img{
  flex: none; width: 100%; height: 190px; border-radius: 0;
  background-size: cover; background-position: center;
}
.news-card-head{ position: relative; display: grid; gap: 4px; padding: 18px 44px 20px 20px; min-width: 0; }
.article-date{
  font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal);
}
.news-card-title{ font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.news-card-subhead{ font-family: "IBM Plex Sans", sans-serif; color: var(--text-dim); font-size: 0.92rem; }
.news-card-toggle .chev{ position: absolute; top: 18px; right: 16px; flex: none; color: var(--teal); }

/* ---- standalone article pages (news detail) ---- */
.article-body{ max-width: none; }
.article-body p{ margin: 1.1em 0 0; max-width: none; }
.article-body p:first-child{ margin-top: 0; }
.article-body h3{ font-size: 1.15rem; margin: 1.6em 0 0.5em; }
.article-body h4{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--navy);
  font-size: 1rem; margin: 1.4em 0 0.4em;
}
.article-body ul{ margin: 1.1em 0 0; padding-left: 1.3em; }
.article-body ul li{ margin-bottom: 0.5em; }
.article-body ul li:last-child{ margin-bottom: 0; }
.article-body blockquote{
  margin: 1.4em 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--teal);
  font-style: italic; color: var(--text-dim);
}
.table-wrap{ margin: 1.6em 0 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.article-body table{
  width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px;
}
.article-body th, .article-body td{
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.article-body thead th{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--navy);
  background: var(--surface-2); white-space: nowrap;
}
.article-body tbody tr:last-child th, .article-body tbody tr:last-child td{ border-bottom: none; }
.article-body td{ color: var(--text-dim); }
.pr-kicker{
  font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin-top: 0 !important;
}
.pr-dateline{ font-weight: 700; color: var(--navy); }
.pr-callout{
  margin: 1.6em 0 0; padding: 18px 20px; background: var(--surface-2); border-radius: 12px;
}
.pr-callout p{ margin-top: 1.1em; }
.pr-callout p:first-child{ margin-top: 0; }
.pr-callout ul{ margin-top: 0; }
.pr-callout-head{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--navy);
  margin-top: 0 !important; margin-bottom: 0.3em;
}
.pr-contacts{ margin-top: 1.8em; padding-top: 1.4em; border-top: 1px solid var(--border); font-size: 0.94rem; }
.pr-contacts p{ margin-top: 0.9em; }
.pr-contacts p:first-child{ margin-top: 0; }
/* ---- inline images within article/news-card bodies ---- */
.article-figure{ margin: 1.6em 0 0; }
.article-figure img{ width: 100%; border-radius: 12px; display: block; box-shadow: var(--shadow); }
.article-figure figcaption{ margin-top: 8px; font-size: 0.82rem; color: var(--text-dim); font-family: "IBM Plex Sans", sans-serif; }

/* Single figures in a long-form article: float at roughly half width so
   body text wraps around them instead of stacking full-width blocks. */
.article-body figure.article-figure{
  width: 46%; max-width: 420px; margin: 0.3em 0 1.2em;
}
.article-body figure.article-figure:nth-of-type(odd){ float: right; margin-left: 28px; }
.article-body figure.article-figure:nth-of-type(even){ float: left; margin-right: 28px; }
@media (max-width: 700px){
  .article-body figure.article-figure{
    float: none; width: 100%; max-width: none; margin: 1.6em 0 0;
  }
}

/* ---- platform pipeline diagram (Project page) ---- */
.platform-pipeline{
  margin-top: 40px; background: var(--surface-2); border-radius: var(--radius);
  padding: 30px 30px 26px;
}
.pipeline-kicker{
  font-family: "IBM Plex Mono", monospace; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.08em; color: var(--teal); margin: 0 0 16px;
}
.pipeline{ display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pipeline-step{
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 18px; font-family: "IBM Plex Sans", sans-serif; font-weight: 600;
  font-size: 0.92rem; color: var(--navy);
}
.pipeline-arrow{ color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.pipeline-ai-note{
  margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed var(--border);
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; color: var(--teal); font-size: 0.95rem;
}
.outputs-head{ max-width: 100%; margin-top: 56px; }
.output-grid{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%),1fr)); gap: 22px;
}
.output-card{
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 26px 26px 22px;
}
.output-index{
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.02em; color: var(--teal); margin: 0 0 12px;
}
.output-card h3{ font-size: 1.1rem; margin: 0 0 0.5em; }
.output-card p:last-child{ color: var(--text-dim); font-size: 0.95rem; margin: 0; }

/* ---- work-package diagram (Project page) ---- */
.wp-diagram{
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);
  grid-template-rows: auto auto auto auto auto auto auto;
  grid-template-areas:
    "wp4 wp1 ."
    "wp4 a12 ."
    "wp4 wp2 wp5"
    "wp4 a23 wp5"
    "wp4 wp3 wp5"
    ".   a36 wp5"
    ".   wp6 .";
  gap: 14px 20px;
  align-items: stretch;
}
.wp-chain-arrow{
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 1.3rem; font-weight: 700; line-height: 1;
}

.wp-card{
  font-family: "IBM Plex Sans", sans-serif;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.wp-card-index{
  font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.06em; color: var(--text-dim); margin: 0 0 6px;
}
.wp-card h3{ font-family: inherit; font-size: 1.02rem; margin: 0 0 6px; line-height: 1.3; }
.wp-card-partner{ font-weight: 500; color: var(--text-dim); font-size: 0.88em; }
.wp-card-badge{
  display: inline-block; font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin: 0 0 10px;
}
.wp-card-mission{ font-weight: 600; color: var(--navy); font-size: 0.94rem; margin: 0 0 14px; }
.wp-card-detail{ display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; margin: 0; }
.wp-card-detail dt{
  font-size: 0.68rem; text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.06em; color: var(--teal); margin: 0 0 3px;
}
.wp-card-detail dd{ margin: 0; font-size: 0.86rem; color: var(--text-dim); line-height: 1.5; }

.wp-card--bioprocessing{ border-left-color: var(--green); }
.wp-card--digital{ border-left-color: var(--navy-deep); }
.wp-card--exploitation{ border-left-color: var(--teal); }
.wp-card--cross{ background: var(--surface-2); }
.wp-card--cross .wp-card-badge{ background: rgba(47,166,175,0.14); color: var(--teal); }

.wp-card--management{
  margin-top: 20px; background: var(--navy-deep); border-color: var(--navy-deep); border-left-color: var(--green);
}
.wp-card--management .wp-card-index{ color: var(--text-on-navy-dim); }
.wp-card--management h3{ color: #fff; }
.wp-card--management .wp-card-partner{ color: var(--text-on-navy-dim); }
.wp-card--management .wp-card-mission{ color: var(--text-on-navy-dim); }
.wp-card--management .wp-card-detail{ border-top-color: rgba(255,255,255,0.16); }
.wp-card--management .wp-card-detail dd{ color: var(--text-on-navy-dim); }

.wp-legend{
  margin: 26px 0 0; list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
}
.wp-legend li{ display: flex; align-items: center; gap: 8px; font-family: "IBM Plex Sans", sans-serif; font-size: 0.86rem; color: var(--text-dim); }
.wp-legend-swatch{ flex: none; width: 12px; height: 12px; border-radius: 3px; }
.wp-legend-swatch--digital{ background: var(--navy-deep); }
.wp-legend-swatch--bioprocessing{ background: var(--green); }
.wp-legend-swatch--exploitation{ background: var(--teal); }
.wp-legend-swatch--management{ background: var(--navy-deep); }

@media (max-width: 860px){
  .wp-diagram{
    grid-template-columns: 1fr;
    grid-template-areas:
      "wp1" "a12" "wp2" "a23" "wp3" "a36" "wp6" "wp4" "wp5";
  }
  .wp-chain-arrow{ font-size: 1.2rem; }
}

/* ---- dynamic timeline (Project page) ---- */
.timeline-track-wrap{ margin-top: 44px; }
.timeline-track{
  position: relative; height: 8px; background: var(--surface-2); border-radius: 999px;
  margin: 0 6px;
}
.timeline-track-fill{
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: var(--brand-gradient); border-radius: 999px;
}
.timeline-marker{
  position: absolute; top: 50%; left: 0%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.timeline-marker-dot{
  width: 16px; height: 16px; border-radius: 50%; background: var(--navy-deep);
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--teal);
}
.timeline-marker-label{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 0.76rem;
  color: var(--navy-deep); background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; margin-bottom: 2px;
}
.timeline-track-years{
  display: flex; justify-content: space-between; margin-top: 14px;
  font-family: "IBM Plex Sans", sans-serif; font-size: 0.8rem; color: var(--text-dim);
}

.timeline-phases{
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 14px;
}
.timeline-phase{
  flex: 1 1 220px; min-width: 220px; max-width: 280px;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 24px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.timeline-phase-year{
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.04em; color: var(--teal); margin: 0 0 8px;
}
.timeline-phase h3{ font-size: 1.05rem; margin: 0 0 12px; }
.timeline-phase ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline-phase li{
  position: relative; padding-left: 16px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.4;
}
.timeline-phase li::before{ content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.timeline-arrow{ display: flex; align-items: center; color: var(--teal); font-weight: 700; font-size: 1.2rem; }

.timeline-phase--current{
  border-top-color: var(--teal); box-shadow: var(--shadow);
}
.timeline-phase--current .timeline-phase-year{ color: var(--navy-deep); }
.timeline-phase--current .timeline-phase-year::after{ content: " \2014 now"; color: var(--teal); }

@media (max-width: 760px){
  .timeline-phases{ flex-direction: column; align-items: stretch; }
  .timeline-phase{ max-width: none; }
  .timeline-arrow{ transform: rotate(90deg); justify-content: center; padding: 2px 0; }
}
