/*
Theme Name: SPHEERE
Description: SPHEERE theme based on the supplied Adobe XD design.
Version: 1.1.0
Text Domain: spheere
*/
@font-face { font-family: 'Avenir XD'; src: local('Avenir-Roman'), local('Avenir Roman'); font-weight: 400; }
@font-face { font-family: 'Avenir XD'; src: local('Avenir-Medium'), local('Avenir Medium'); font-weight: 500; }
@font-face { font-family: 'Avenir XD'; src: local('Avenir-Heavy'), local('Avenir Heavy'); font-weight: 800; }
@font-face { font-family: 'Avenir XD'; src: local('Avenir-Black'), local('Avenir Black'); font-weight: 900; }
@font-face { font-family: 'Avenir XD'; src: local('Avenir-Light'), local('Avenir Light'); font-weight: 300; }
:root {
  --forest: #1c6933;
  --green: #00a74c;
  --lime: #bfd730;
  --mint: #e9fff2;
  --font: 'Avenir XD', 'Avenir', 'Avenir Next', sans-serif;
  /* One XD pixel on the 1920px desktop artboard. */
  --u: calc(100vw / 1920);
  --gap: calc(20 * var(--u));
  --radius: calc(20 * var(--u));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(165 * var(--u)); }
body { margin: 0; font-family: var(--font); font-size: max(16px, calc(20 * var(--u))); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; color: var(--forest); }
body.modal-open { overflow: hidden; }
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; }
h2, h3 { color: var(--green); font-size: max(16px, calc(40 * var(--u))); line-height: 1.125; }
strong { font-weight: 800; }
:focus-visible { outline: 3px solid #ed6f24; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: 87.5%; margin-inline: auto; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(227 * var(--u));
  min-height: calc(55 * var(--u));
  padding: calc(12 * var(--u)) calc(20 * var(--u));
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--green);
  color: white;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.3;
  transition: background .2s;
}
.button:hover { background: var(--forest); text-decoration: none; }
.outline { background: transparent; border-color: currentColor; }
.outline:hover { background: #ffffff20; }
.center { text-align: center; }
.small {
  font-size: 16px;
  line-height: 1.3125;
}
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 15px; background: white; }
.skip-link:focus { top: 15px; }
/* The scroll state has its own gradient strapline, as in the XD artboard. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: calc(148 * var(--u));
  padding-top: calc(42 * var(--u));
  color: white;
  transition: background .2s;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 87.5%;
  max-width: 1680px;
  height: calc(106 * var(--u));
  margin-inline: auto;
}
.header-strapline { display: none; }
.brand {
  flex-shrink: 0;
  align-self: flex-start;
  width: calc(108 * var(--u));
  margin-top: calc(-42 * var(--u));
  background: #f5f5f5;
  border-radius: 0 0 calc(12 * var(--u)) calc(12 * var(--u));
  overflow: hidden;
}
.brand img { width: 100%; height: auto; }
#primary-nav { display: flex; align-items: center; gap: calc(40 * var(--u)); height: calc(106 * var(--u)); font-size: max(16px, calc(20 * var(--u))); font-weight: 800; }
#primary-nav > a { flex-shrink: 0; white-space: nowrap; }
#primary-nav a { position: relative; display: grid; place-items: center; height: 100%; }
#primary-nav a::after { content: ''; position: absolute; bottom: 0; width: 60%; height: calc(8 * var(--u)); background: var(--green); transform: scaleX(0); transition: transform .2s; }
#primary-nav a:hover { text-decoration: none; }
#primary-nav a:hover::after, #primary-nav a[aria-current]::after { transform: scaleX(1); }
.site-header.scrolled { background: white; color: var(--forest); box-shadow: 0 4px 14px #00000014; }
.scrolled .header-strapline { position: absolute; inset: 0 0 auto; display: grid; place-items: center; height: calc(42 * var(--u)); background: linear-gradient(96.45deg, var(--lime), var(--green)); color: white; font-size: max(16px, calc(16 * var(--u))); font-weight: 900; }
.scrolled .brand {
  align-self: center;
  width: calc(83 * var(--u));
  margin-top: 0;
  border-radius: 0;
  background: transparent;
}
.menu-toggle { display: none; }
/* Image overlays use the same multiply layers as the XD document. */
.hero { position: relative; height: calc(1081 * var(--u)); display: grid; place-items: center; padding-top: calc(44 * var(--u)); background-image: linear-gradient(90deg, #00a74cce, #bfd73000), linear-gradient(180deg, #00000065, #54545465 33.44%), var(--hero-image); background-blend-mode: multiply, multiply, normal; background-position: center; background-size: cover; color: white; text-align: center; }
.hero h1 { width: calc(835 * var(--u)); margin: 0; font-size: max(16px, calc(55 * var(--u))); font-weight: 900; line-height: 1.09091; }
.hero.home-hero {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  max-height: none;
}
.hero-scroll-down {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: white;
  transform: translateX(-50%);
  transition: background .2s;
}
.hero-scroll-down:hover { background: #ffffff20; }
.hero-scroll-down:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.hero-scroll-down svg {
  width: 24px;
  height: 24px;
  animation: hero-scroll-down 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-down {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}
.context { background: var(--forest); color: white; padding: calc(94 * var(--u)) 0 calc(21 * var(--u)); }
.context-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.context-intro { grid-column: span 2; font-size: max(16px, calc(30 * var(--u))); line-height: 1.16667; }
.context-intro .button { margin-top: calc(45 * var(--u)); }
.stat, .context-description, .info-card { border-radius: var(--radius); }
.stat { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; aspect-ratio: 1; padding: calc(9 * var(--u)) calc(21 * var(--u)) calc(27 * var(--u)); }
.stat strong { font-size: max(16px, calc(100 * var(--u))); font-weight: 900; letter-spacing: -.02em; line-height: 1.15; }
.stat p { max-width: calc(351 * var(--u)); font-size: max(16px, calc(20 * var(--u))); font-weight: 800; line-height: 1.25; }
.pale { background: var(--mint); color: var(--forest); }
.context-description { padding: calc(23 * var(--u)) calc(26 * var(--u)); border: 1px solid #ffffff60; font-size: max(16px, calc(25 * var(--u))); font-weight: 400; line-height: 1.2; }
.context-description p { max-width: calc(331 * var(--u)); }
.stat-second { grid-column: 2; }
.newsletter { min-height: calc(217 * var(--u)); padding: calc(43 * var(--u)) 0 calc(43 * var(--u)); background: linear-gradient(96.45deg, var(--lime), var(--green)); color: white; }
.newsletter-inner { display: flex; justify-content: space-between; align-items: flex-end; padding-right: calc(48 * var(--u)); }
.newsletter h2 { color: white; margin-bottom: calc(23 * var(--u)); }
.newsletter p {
  font-size: 16px;
  line-height: 1.2;
}
.newsletter .button { flex-shrink: 0; }
.grid-background { background-image: linear-gradient(90deg, #1c693308 1px, transparent 1px), linear-gradient(#1c693308 1px, transparent 1px); background-size: 12.5vw 12.5vw; }
.about { padding: calc(100 * var(--u)) 0 calc(19 * var(--u)); }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(calc(510 * var(--u)), auto) repeat(2, auto); gap: var(--gap); }
.about-copy { grid-column: 1 / 3; grid-row: 1; }
.about-copy h2 { margin-bottom: calc(29 * var(--u)); }
.about-copy p { width: calc(535 * var(--u)); font-size: max(16px, calc(20 * var(--u))); line-height: 1.25; }
.about-copy p + p { margin-top: calc(25 * var(--u)); }
.about-photo { grid-column: 3 / 5; grid-row: 1 / 3; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.partners-stat { grid-column: 1; grid-row: 2; }
.cases-stat { grid-column: 2; grid-row: 2; }
.green { background: var(--green); color: white; }
.green h3 { color: white; }
.green.stat { justify-content: flex-end; text-align: right; gap: calc(3 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)) calc(30 * var(--u)); }
.stat span { font-size: max(16px, calc(16 * var(--u))); font-weight: 800; }
.info-card { display: flex; flex-direction: column; justify-content: flex-end; padding: calc(27 * var(--u)); }
.info-card h3 { margin-bottom: calc(20 * var(--u)); }
.info-card p { font-size: max(16px, calc(20 * var(--u))); line-height: 1.25; font-weight: 400; }
.objective-card { justify-content: flex-end; padding-top: calc(16 * var(--u)); }
.objective-card h3 { margin-bottom: calc(24 * var(--u)); }
.feature { height: calc(945 * var(--u)); padding-top: calc(274 * var(--u)); background-image: linear-gradient(116.2deg, var(--lime), #bfd73000), var(--hero-image); background-blend-mode: multiply, normal; background-position: center; background-size: cover; color: white; }
.feature-copy { width: calc(1181 * var(--u)); margin-inline: auto; }
.feature h2 { color: white; font-size: max(16px, calc(40 * var(--u))); font-weight: 500; line-height: 1.3; }
.feature .button { display: inline-flex; width: auto; min-width: 190px; min-height: 52px; margin-top: max(32px, calc(40 * var(--u))); padding: 14px 28px; border-color: white; background: white; color: var(--forest); box-shadow: 0 4px 16px #00000018; transition: background .2s, border-color .2s, transform .2s; }
.feature .button:hover { border-color: var(--lime); background: var(--lime); color: var(--forest); transform: translateY(-2px); }
.how { padding: calc(84 * var(--u)) 0 calc(61 * var(--u)); }
.section-intro { width: calc(840 * var(--u)); margin-inline: auto; text-align: center; }
.section-intro h2 { margin-bottom: calc(23 * var(--u)); }
.section-intro > p { font-size: max(16px, calc(30 * var(--u))); line-height: 1.16667; font-weight: 800; }
.steps { --step-gap: var(--gap); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--step-gap); margin-top: calc(40 * var(--u)); }
.step { position: relative; min-height: calc(185 * var(--u)); border-radius: var(--radius); background: var(--green); color: white; padding: 20px; }
.step h3 { font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; color: white; margin-bottom: calc(11 * var(--u)); white-space: normal; }
.step p { width: 100%; overflow-wrap: anywhere; font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; font-weight: 400; }
.step > span { position: absolute; z-index: 1; top: 50%; right: calc(var(--step-gap) / -2); display: grid; place-items: center; transform: translate(50%, -50%); width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%; color: #fff; background: #9ECD38; font-size: max(16px, calc(22 * var(--u))); pointer-events: none; }
.technology { display: block; height: auto; width: calc(1392 * var(--u)); margin: calc(59 * var(--u)) auto calc(46 * var(--u)); }
.technology img { width: 100%; height: auto; }
.impact { padding: calc(39 * var(--u)) 0 calc(59 * var(--u)); background: var(--mint); }
.impact .section-intro { width: calc(704 * var(--u)); }
.impact .section-intro h2 { margin-bottom: calc(30 * var(--u)); }
.section-intro > .small { font-size: 16px; line-height: 1.3125; font-weight: 500; }
.impact .section-intro p + p { margin-top: calc(21 * var(--u)); }
.impact-diagram { display: block; height: auto; width: calc(1208 * var(--u)); margin: calc(61 * var(--u)) auto calc(58 * var(--u)); }
.impact-diagram > img { width: 100%; height: auto; }
.impact-statement { width: calc(535 * var(--u)); margin: 0 auto calc(48 * var(--u)); font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; font-weight: 800; text-align: center; }
.partners { padding: calc(70 * var(--u)) 0 calc(82 * var(--u)); }
.partners h2 { margin-bottom: calc(30 * var(--u)); }
.partners .small { font-weight: 900; }
.partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: calc(174 * var(--u)); column-gap: var(--gap); margin-top: calc(80 * var(--u)); align-items: center; justify-items: center; }
.partner-grid img { width: var(--logo-width, 80%); height: calc(150 * var(--u)); object-fit: contain; mix-blend-mode: multiply; }
.partner-grid > :nth-child(6n+1):nth-last-child(4) { grid-column: 2; }
.site-footer { padding: calc(86 * var(--u)) 0 calc(24 * var(--u)); min-height: calc(450 * var(--u)); color: white; background: var(--forest); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: calc(40 * var(--u)); font-size: calc(16 * var(--u)); line-height: 1.3125; }
.footer-grid > :first-child { padding-right: calc(150 * var(--u)); }
.footer-grid h2 { margin: 0 0 calc(16 * var(--u)); color: white; font-size: calc(25 * var(--u)); line-height: 1.2; font-weight: 800; }
.footer-grid a { display: block; }
.footer-explore a,
.site-footer .text-button,
.footer-contacts p {
  font-size: 16px;
  line-height: 25px;
}
.footer-grid p + p { margin-top: calc(21 * var(--u)); }
.eu-funding { display: flex; align-items: center; gap: calc(16 * var(--u)); font-size: calc(20 * var(--u)); line-height: 1.2; margin-bottom: calc(20 * var(--u)); }
.eu-flag { width: calc(90 * var(--u)); height: calc(61 * var(--u)); flex-shrink: 0; border: 1px solid white; object-fit: cover; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.text-button:hover { text-decoration: underline; }
.footer-bottom { padding-top: calc(92 * var(--u)); text-align: right; font-size: calc(16 * var(--u)); font-weight: 300; }
.footer-credit { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; }
.revolve-logo { width: 85px; height: auto; }
/* Inner artboards share a 435px banner and the same content grid. */
.page-hero { height: calc(435 * var(--u)); padding: 0; background-image: linear-gradient(90deg, #ffe600ce, #bfd73000), linear-gradient(180deg, #00000065, #54545465 33.44%), var(--hero-image); }
.page-hero h1 { transform: translateY(calc(-10 * var(--u))); }
.page-hero--demo-sites { background-image: linear-gradient(90deg, #bfd730ce, #bfd73000), linear-gradient(180deg, #00000065, #54545465 33.44%), var(--hero-image); }
.page-hero--synoptic { background-image: linear-gradient(90deg, #ed6f24ce, #bfd73000), linear-gradient(180deg, #00000065, #54545465 33.44%), var(--hero-image); }
.page-body { position: relative; }
.back-link { position: absolute; top: calc(-27 * var(--u)); left: 6.25%; z-index: 2; }
.page-content { padding: calc(75 * var(--u)) 0 calc(70 * var(--u)); }
.synoptic-content { padding: calc(80 * var(--u)) 0 calc(69 * var(--u)); }
.synoptic { height: auto; width: calc(1521 * var(--u)); margin: auto; }

.synoptic-magnifier {
  position: fixed;
  z-index: 90;
  width: min(260px, 70vw, 70vh);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--green), 0 12px 36px #00341b30;
  pointer-events: none;
}

.synoptic-magnifier[hidden] { display: none; }

.synoptic-magnifier img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  margin: 0;
  will-change: transform;
}

@media (min-width: 761px) and (any-hover: hover) and (any-pointer: fine) {
  .synoptic { cursor: none; }
}
.synoptic-open { display: none; }
body.synoptic-viewer-open { overflow: hidden; }
.synoptic-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border-radius: 0;
  background: white;
  overflow: hidden;
}
.synoptic-viewer[open] { display: flex; flex-direction: column; }
.synoptic-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid #1c693320;
}
.synoptic-viewer-toolbar p { margin: 0; font-size: 16px; }
.synoptic-viewer-close,
.synoptic-viewer-controls button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--green);
  border-radius: 100px;
  color: var(--forest);
  background: white;
}
.synoptic-viewer-close { font-size: 28px; line-height: 1; flex-shrink: 0; }
.synoptic-viewer-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.synoptic-viewer-viewport img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.synoptic-viewer-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #1c693320;
}
.synoptic-viewer-controls button { font-size: 16px; }
@media (max-width: 760px) {
  .synoptic-viewer-ready .synoptic { cursor: zoom-in; }
  .synoptic-viewer-ready .synoptic-open { display: flex; margin: 24px auto 0; }
}
.demo-content { width: 100%; padding: calc(87 * var(--u)) 6.25% calc(40 * var(--u)); background: var(--forest); }
.demo-site { position: relative; min-height: calc(718 * var(--u)); margin-bottom: var(--gap); padding: calc(19 * var(--u)); border-radius: var(--radius); overflow: hidden; }
.demo-site:last-child { margin-bottom: 0; }
.demo-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-panel { position: relative; z-index: 1; width: calc(504 * var(--u)); min-height: calc(681 * var(--u)); padding: calc(20 * var(--u)) calc(24 * var(--u)); border-radius: var(--radius); background: var(--green); color: white; }
.demo-panel h2 { font-size: max(16px, calc(40 * var(--u))); line-height: 1.125; color: white; margin: calc(12 * var(--u)) 0 calc(45 * var(--u)); }
.demo-tags { display: flex; gap: calc(8 * var(--u)); flex-wrap: wrap; }
.demo-tags span { display: inline-flex; align-items: center; justify-content: center; min-height: calc(35 * var(--u)); padding: calc(5 * var(--u)) calc(16 * var(--u)); border-radius: 50px; background: var(--mint); color: var(--forest); font-size: max(16px, calc(16 * var(--u))); font-weight: 400; }
.demo-description { border-top: 1px solid #e9fff280; padding-top: calc(20 * var(--u)); font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; font-weight: 400; }
.demo-facts { display: grid; grid-template-columns: 1fr 1fr; gap: calc(20 * var(--u)); margin: calc(22 * var(--u)) 0 0; font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; }
.demo-facts div { min-width: 0; }
.demo-facts dt { font-weight: 900; margin-bottom: calc(4 * var(--u)); }
.demo-facts dd { margin: 0; font-weight: 400; }
.demo-facts .wide { grid-column: 1 / -1; }
.demo-facts .short { padding-bottom: calc(14 * var(--u)); border-bottom: 1px solid #e9fff280; }
.resources-content { padding-top: calc(63 * var(--u)); }
.resources-intro { width: calc(535 * var(--u)); }
.resources-intro h2 { margin-bottom: calc(27 * var(--u)); }
.resources-intro p { font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; }
.resource-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: calc(40 * var(--u)); }
.resource-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: calc(233 * var(--u)); padding: calc(32 * var(--u)); border-radius: var(--radius); background: var(--green); color: white; }
.resource-card h3 { color: white; overflow-wrap: anywhere; }
.resource-card svg { position: absolute; top: calc(30 * var(--u)); right: calc(30 * var(--u)); width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
.resource-card .availability { font-size: max(16px, calc(14 * var(--u))); font-weight: 400; margin-bottom: calc(8 * var(--u)); }
.archives { scroll-margin-top: 100px; margin-top: calc(80 * var(--u)); }
.archives h2 { margin-bottom: calc(40 * var(--u)); }
.archive-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: calc(85 * var(--u)); border-top: 1px solid var(--green); font-size: max(16px, calc(16 * var(--u))); }
.archive-row:last-child { border-bottom: 1px solid var(--green); }
.archive-row > span:first-child { overflow-wrap: anywhere; min-width: 0; }
.archive-row .button { flex-shrink: 0; }
.archive-load-more { margin-top: 32px; }
.archive-load-more[hidden] { display: none; }
.archive-load-more[aria-disabled="true"] { opacity: .6; cursor: progress; }
.archive-load-status { font-size: 16px; line-height: 1.5; margin-top: 16px; }
.empty-state { padding: calc(45 * var(--u)) 0; border-top: 1px solid var(--green); font-size: max(16px, calc(20 * var(--u))); }
.empty-state h2 { margin-bottom: calc(20 * var(--u)); }
.empty-state p { margin-bottom: calc(25 * var(--u)); }
.empty-archive { padding: calc(26 * var(--u)) 0; border-block: 1px solid var(--green); font-size: max(16px, calc(16 * var(--u))); }
.post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.post-card { position: relative; aspect-ratio: 405 / 294; border-radius: var(--radius); overflow: hidden; color: white; background: var(--forest); }
.post-card > a { display: flex; height: 100%; align-items: flex-end; padding: calc(23 * var(--u)); text-decoration: none; }
.post-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, #00341bea, #00a74c20 80%); }
.post-card-copy { position: relative; z-index: 1; }
.post-card h2 { font-size: max(16px, calc(20 * var(--u))); line-height: 1.25; color: white; margin-top: calc(7 * var(--u)); }
.post-meta { font-size: max(16px, calc(16 * var(--u))); font-weight: 500; }
.post-content { width: calc(937 * var(--u)); margin-inline: auto; font-size: max(16px, calc(16 * var(--u))); line-height: 1.3125; }
.post-content p { margin-bottom: calc(21 * var(--u)); }
.post-content h2 { font-size: max(16px, calc(30 * var(--u))); margin-bottom: calc(26 * var(--u)); }
.post-content img { height: auto; margin-block: calc(36 * var(--u)); }
.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 35px; }
/* The newsletter modal retains readable dimensions at every viewport. */
dialog { padding: 0; border: 0; border-radius: 20px; width: min(620px, calc(100% - 32px)); max-height: 90dvh; color: var(--forest); background: var(--mint); box-shadow: 0 30px 120px #0005; font-size: 16px; line-height: 1.4; }
dialog::backdrop { background: #082c20b3; backdrop-filter: blur(5px); }
.popup { position: relative; padding: 48px; }
.popup-close { position: absolute; top: 10px; right: 14px; padding: 4px 12px; border: 0; background: transparent; color: var(--forest); font-size: 36px; }
.eyebrow { font-size: 16px; font-weight: 800; letter-spacing: 2px; margin-bottom: 20px; }
.popup h2 { font-size: 36px; margin-bottom: 22px; }
.popup > p { max-width: 440px; margin-bottom: 18px; }
.popup .button { width: auto; min-height: 44px; padding: 12px 24px; font-size: 16px; }
.form-status { padding: 25px 0; }
.form-error { color: #922900; }
.popup iframe { max-width: 100%; width: 100%; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 1100px) {
  :root { --radius: 12px; }
  body { font-size: 16px; }
  .button { min-height: 36px; }
  .context-description { font-size: 16px; }
  .stat p, .info-card p, .about-copy p { font-size: 16px; }
  .about-grid { grid-template-rows: auto auto auto; }
  .about-copy { min-height: calc(510 * var(--u)); padding-bottom: 28px; }
  .info-card { min-height: calc(405 * var(--u)); }
  .step h3, .step p { font-size: 16px; }
  .step h3 { white-space: normal; }
  .step > span { width: 22px; height: 22px; font-size: 16px; }
  .steps { --step-gap: 20px; }
  .footer-grid, .footer-bottom { font-size: 12px; }
  .impact-statement, .resource-card .availability, .resources-intro p, .empty-archive, .post-content, .archive-row { font-size: 16px; }
  .demo-panel { width: 42%; }
  .demo-description, .demo-facts, .demo-tags span { font-size: 16px; }
  .demo-panel h2 { font-size: 26px; margin-bottom: 20px; }
}
@media (max-width: 760px) {
  :root { --gap: 14px; --radius: 14px; }
  html { scroll-padding-top: 95px; }
  body { font-size: 16px; line-height: 1.4; }
  h2, h3 { font-size: 28px; line-height: 1.15; }
  .container { width: 88%; }
  .button { width: auto; min-width: 145px; min-height: 42px; padding: 10px 20px; }
  .site-header, .site-header.scrolled { height: 76px; padding: 0 6%; align-items: flex-start; }
  .header-inner { width: 100%; height: 76px; align-items: flex-start; }
  .brand, .scrolled .brand { align-self: flex-start; width: 70px; margin-top: 0; border-radius: 0 0 10px 10px; }
  .scrolled .header-strapline { display: none; }
  .menu-toggle { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 9px 12px; border: 1px solid currentColor; border-radius: 6px; background: var(--forest); color: white; font-size: 16px; }
  .site-header #primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100dvh;
    padding: calc(120px + env(safe-area-inset-top)) 8% calc(40px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--mint);
    color: var(--forest);
    flex-direction: column;
    justify-content: safe center;
    align-items: stretch;
    gap: 12px;
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 900;
  }
  .site-header #primary-nav.open { display: flex; }
  .menu-open .brand, .menu-open .menu-toggle { position: relative; z-index: 2; }
  .menu-open .site-header { color: var(--forest); }
  #primary-nav > a { white-space: normal; }
  #primary-nav a { display: block; height: auto; padding: 12px 0; min-width: 0; }
  #primary-nav a::after { display: none; }
  #primary-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 6px; }
  .hero { height: 76svh; min-height: 510px; max-height: 750px; padding: 70px 6% 20px; background-position: 55% center; }
  .hero h1 { width: 100%; max-width: 510px; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; }
  .desktop-break { display: none; }
  .context { padding: 38px 0 20px; }
  .context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-intro { grid-column: 1 / -1; font-size: 21px; line-height: 1.25; padding-bottom: 20px; }
  .context-intro .button { margin-top: 24px; }
  .stat { padding: 10px 16px 18px; min-height: 190px; }
  .stat strong { font-size: clamp(46px, 10vw, 72px); }
  .stat p { font-size: 16px; max-width: none; }
  .stat-second { grid-column: auto; }
  .context-description { grid-row: 3; grid-column: 1 / -1; padding: 20px; font-size: 16px; line-height: 1.4; }
  .context-description p { max-width: none; }
  .newsletter { padding: 32px 0; min-height: 0; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding-right: 0; }
  .newsletter h2 { margin-bottom: 14px; }
  .about { padding: 48px 0 16px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .about-copy { grid-column: 1 / -1; padding: 0 0 15px; min-height: 0; }
  .about-copy h2 { margin-bottom: 22px; }
  .about-copy p { width: 100%; font-size: 16px; line-height: 1.4; }
  .about-copy p + p { margin-top: 16px; }
  .about-photo { grid-column: 1 / -1; grid-row: 2; height: 400px; }
  .partners-stat, .cases-stat { grid-column: auto; grid-row: 3; }
  .green.stat { padding: 20px; }
  .stat span { font-size: 16px; }
  .info-card { grid-column: 1 / -1; padding: 24px; min-height: 0; }
  .info-card p { font-size: 16px; line-height: 1.4; }
  .info-card h3, .objective-card h3 { margin-bottom: 15px; }
  .about-grid .objective-card { grid-row: 5; }
  .about-grid .budget-stat { grid-column: 1; grid-row: 6; }
  .about-grid .duration-stat { grid-column: 2; grid-row: 6; }
  .feature { height: auto; min-height: 520px; padding: 75px 0; background-position: 60% center; }
  .feature-copy { width: 88%; }
  .feature h2 { font-size: 27px; line-height: 1.3; }
  .how { padding: 48px 0; }
  .section-intro { width: 100%; }
  .section-intro h2 { margin-bottom: 20px; }
  .section-intro > p { font-size: 20px; line-height: 1.3; }
  .steps { --step-gap: 20px; grid-template-columns: 1fr; margin-top: 30px; }
  .step { min-height: 0; }
  .step h3 { font-size: 16px; margin-bottom: 10px; }
  .step p { font-size: 16px; }
  .step > span {
    top: auto;
    bottom: calc(var(--step-gap) / -2);
    right: 50%;
    width: 40px;
    height: 40px;
    font-size: 26px;
    padding-top: 3px;
    transform: translate(50%, 50%) rotate(90deg);
  }
  .technology { height: auto; width: 100%; margin: 30px auto 25px; }
  .impact { padding: 38px 0; }
  .impact .section-intro { width: 100%; }
  .impact .section-intro h2 { margin-bottom: 22px; }
  .impact .section-intro p + p { margin-top: 15px; }
  .impact-diagram { height: auto; width: 100%; margin: 30px auto; }
  .impact-statement { width: 100%; font-size: 16px; margin: 0 auto 25px; }
  .partners { padding: 40px 0; }
  .partners h2 { margin-bottom: 18px; }
  .partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 85px; gap: 18px; margin-top: 30px; }
  .partner-grid img { height: 75px; }
  .partner-grid > :nth-child(6n+1):nth-last-child(4) { grid-column: auto; }
  .partner-grid > :nth-child(3n+1):last-child { grid-column: 2; }
  .site-footer { min-height: 0; padding: 40px 0 25px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; font-size: 13px; }
  .footer-grid > :first-child { grid-column: 1 / -1; padding: 0; }
  .footer-grid h2 { font-size: 20px; margin-bottom: 15px; }
  .footer-grid p + p { margin-top: 18px; }
  .eu-funding { font-size: 17px; gap: 15px; margin-bottom: 20px; }
  .eu-flag { width: 78px; height: 52px; }
  .footer-bottom { padding-top: 30px; font-size: 12px; text-align: left; }
  .page-hero { height: 290px; min-height: 290px; padding: 55px 6% 0; }
  .page-hero h1 { font-size: 36px; transform: none; }
  .back-link { top: -21px; }
  .page-content { padding: 50px 0; }
  .synoptic-content { padding: 55px 0 40px; }
  .synoptic { height: auto; width: 100%; }
  .demo-content { padding: 50px 6% 30px; }
  .demo-site { display: flex; flex-direction: column; padding: 0; margin-bottom: 25px; }
  .demo-photo { position: static; height: 230px; }
  .demo-panel { width: 100%; min-height: 0; padding: 24px; border-radius: 0; }
  .demo-panel h2 { font-size: 30px; margin: 18px 0 25px; }
  .demo-tags { gap: 8px; }
  .demo-tags span { min-height: 28px; padding: 5px 12px; font-size: 16px; }
  .demo-description { font-size: 16px; padding-top: 20px; }
  .demo-facts { font-size: 16px; gap: 20px; margin-top: 22px; }
  .demo-facts dt { margin-bottom: 6px; }
  .demo-facts .short { padding-bottom: 15px; }
  .resources-intro { width: 100%; }
  .resources-intro h2 { margin-bottom: 20px; }
  .resources-intro p { font-size: 16px; }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
  .resource-card { height: 170px; padding: 20px; }
  .resource-card h3 { font-size: 23px; white-space: normal; }
  .resource-card svg { width: 26px; height: 26px; top: 18px; right: 18px; }
  .resource-card .availability { font-size: 16px; margin-bottom: 6px; }
  .archives { scroll-margin-top: 100px; margin-top: 45px; }
  .archives h2 { margin-bottom: 25px; }
  .archive-row { min-height: 75px; font-size: 16px; }
  .empty-state { padding: 30px 0; font-size: 16px; }
  .empty-state h2 { margin-bottom: 15px; }
  .empty-state p { margin-bottom: 20px; }
  .empty-archive { padding: 20px 0; font-size: 16px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card { aspect-ratio: 1; }
  .post-card > a { padding: 15px; }
  .post-card h2 { font-size: 17px; margin-top: 8px; }
  .post-meta { font-size: 16px; }
  .post-content { width: 88%; font-size: 16px; line-height: 1.5; }
  .post-content p { margin-bottom: 18px; }
  .post-content h2 { font-size: 26px; margin-bottom: 22px; }
  .post-content img { margin-block: 25px; }
  .popup { padding: 45px 25px 30px; }
  .popup h2 { font-size: 31px; }
  .admin-bar .site-header { top: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 760px) { .partner-grid img { width: 85%; } }

/* Linked partner logos keep the same grid geometry as standalone logos. */
.partner-grid > a { width:100%; display:flex; align-items:center; justify-content:center; }
.partner-grid > a img { max-width:100%; }

/* Scroll reveals only hide blocks after IntersectionObserver has been initialized. */
.scroll-reveal {
  transition: opacity 650ms ease var(--reveal-delay, 0ms), transform 650ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
}
.scroll-reveal.reveal-pending { opacity: 0; transform: translateY(22px); }
.scroll-reveal:focus-within { opacity: 1; transform: none; transition-delay: 0ms; }
.stat strong .counter-value { font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums; }
.counter-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal, .scroll-reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
}

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; }
.footer-legal > a,
.footer-legal .text-button {
  font-size: 16px;
  line-height: 25px;
}
.cookie-notice {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid var(--green);
  border-radius: 20px;
  background: var(--mint);
  color: var(--forest);
  box-shadow: 0 12px 48px #00341b30;
  font-size: 16px;
  line-height: 1.5;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
.cookie-notice[hidden] { display: none; }
.cookie-copy { flex: 1; }
.cookie-copy h2 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.cookie-copy a, .cookie-settings .popup > a { text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cookie-actions .button { width: auto; min-height: 44px; padding: 12px 20px; }
.cookie-choice { background: transparent; border-color: var(--green); color: var(--forest); }
.cookie-choice:hover { background: var(--green); color: #fff; }
.cookie-category { padding: 20px 0; border-top: 1px solid #00341b25; }
.cookie-category h3, .cookie-category label { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.cookie-category label { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cookie-category input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--green); }
.cookie-settings .cookie-actions { margin: 8px 0 24px; }
.privacy-content { max-width: 1000px; }
.privacy-content h2 { margin: 36px 0 16px; }
.privacy-content p { font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.privacy-content a { text-decoration: underline; }
@media (max-width: 760px) {
  .cookie-notice { bottom: 12px; left: 12px; right: 12px; padding: 24px; flex-direction: column; align-items: stretch; gap: 20px; max-height: calc(100dvh - 24px); }
  .cookie-actions .cookie-choice { flex: 1; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-legal {
    width: 100%;
    justify-content: center;
    text-align: center;
    line-height: 25px;
  }
  .footer-renewables-separator { display: none; }
  .footer-renewables { flex-basis: 100%; }
  .footer-credit { justify-content: center; }
}

.archive-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.archive-heading h2 { margin-bottom: 0; }
.archive-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 16px; }
.archive-filter select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--green);
  border-radius: 24px;
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231c6933' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
  color: var(--forest);
  font: inherit;
}
.archive-filter-apply { width: auto; min-height: 44px; }
.archive-filter-apply[hidden] { display: none; }
@media (max-width: 760px) {
  .archive-heading { align-items: flex-start; gap: 16px; }
  .archive-filter { width: 100%; }
  .archive-filter select { flex: 1; min-width: 0; }
  .archive-row { padding: 16px 0; }
  .archive-row .button { width: auto; min-width: 110px; padding: 12px 16px; }
}

.header-socials { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
#primary-nav .header-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
}
#primary-nav .header-social-link::after { display: none; }
.header-social-link svg { width: 22px; height: 22px; }
.header-social-link:disabled { cursor: default; opacity: .55; }
#primary-nav a.header-social-link:hover { background: #ffffff20; }
.post-card > .post-card-link { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; height: 100%; padding: calc(30 * var(--u)); }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 24px; margin-top: 40px; border-top: 1px solid var(--green); font-size: 16px; }
.post-share-links { display: flex; flex-wrap: wrap; gap: 12px; }
.archive-event-date { display: block; margin-bottom: 6px; color: var(--green); font-size: 16px; }
.post-share .button {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  color: var(--forest);
  border-color: var(--green);
}
.post-share .button svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.post-share .button:hover { background: var(--green); color: white; }
@media (max-width: 760px) {
  .header-socials { margin: 12px 0 0; }
  #primary-nav .header-social-link { width: 44px; height: 44px; min-width: 44px; padding: 10px; }
  .post-card > .post-card-link { padding: 15px; }
}

/* Keep article headings vertically centered at every screen size. */
.single .page-hero { padding-top: 0; padding-bottom: 0; }
.single .page-hero h1 {
  transform: none;
  margin-top: 40px;
}
