/* Flexell homepage - mockup-led layout */
:root {
  --green-dark: #28564d;
  --green: #58a895;
  --green-light: #78cbb8;
  --ink: #17191d;
  --muted: #697078;
  --mint: #eef5f2;
  --line: #e1e8e4;
  --content: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: Inter, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.site-header {
  height: 62px; padding: 0 max(5%, calc((100% - var(--content))/2));
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.98); position: relative; z-index: 20;
}
.brand { width: 154px; flex: 0 0 auto; display: flex; align-items: center; }
.brand img { width: 100%; max-height: 42px; object-fit: contain; object-position: left center; }
.brand-fallback { display: none; color: #777171; font-size: 1.85rem; font-weight: 800; letter-spacing: -.08em; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.8vw, 39px); font-size: 11px; font-weight: 500; }
.main-nav a { position: relative; padding: 8px 0; white-space: nowrap; }
.main-nav a:not(.nav-contact)::after { content: ""; position: absolute; bottom: 1px; left: 0; width: 0; height: 2px; background: var(--green); transition: width .2s; }
.main-nav a.active::after, .main-nav a:not(.nav-contact):hover::after { width: 100%; }
.main-nav .nav-contact { padding: 8px 18px; border-radius: 4px; background: var(--green-dark); color: white; }
.menu-toggle { display: none; border: 0; background: transparent; }
.hero {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #123d36;
  line-height: 0;
}


.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(5,34,30,.88) 0%, rgba(7,42,36,.70) 30%, rgba(7,42,36,.20) 59%, rgba(7,42,36,.02) 100%), linear-gradient(0deg, rgba(4,31,27,.22), transparent 52%); }

.eyebrow { margin: 0 0 9px; color: var(--green-dark); font-size: 8px; line-height: 1.5; font-weight: 800; text-transform: uppercase; letter-spacing: .22em; }
.eyebrow.light { color: #b1e4d8; font-size: 8px; letter-spacing: .25em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 430px; margin-bottom: 12px; font-size: clamp(34px, 3.35vw, 47px); line-height: .99; letter-spacing: -.055em; font-weight: 700; }
h1 span { display: block; color: var(--green-light); }
.hero-copy { max-width: 320px; margin-bottom: 17px; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.92); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 13px; border-radius: 4px; font-size: 10px; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { min-width: 135px; color: #102d27; background: #7ed4c0; }
.button-primary:hover { background: #a0e5d5; }
.button span { font-size: 14px; line-height: 1; }

.scroll-cue { position: absolute; left: 50%; bottom: 10px; z-index: 3; width: 18px; height: 18px; display: grid; place-items: center; }
.scroll-cue span { width: 6px; height: 6px; border-right: 1px solid white; border-bottom: 1px solid white; transform: rotate(45deg); }

.section-wrap { width: min(var(--content), calc(100% - 10.4%)); margin: 0 auto; }
.intro { padding-top: 27px; padding-bottom: 22px; }
.intro-top { display: grid; grid-template-columns: .95fr 1.05fr; gap: 6.5%; align-items: center; }
.intro-copy { max-width: 405px; }
.intro-copy .eyebrow { margin-bottom: 8px; }
.intro-copy h2 { max-width: 390px; margin-bottom: 10px; font-size: clamp(25px, 2.45vw, 34px); line-height: 1.04; letter-spacing: -.05em; }
.intro-copy > p:not(.eyebrow) { max-width: 365px; margin-bottom: 12px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.button-outline { min-width: 115px; border: 1px solid var(--green-dark); padding: 7px 10px; color: var(--green-dark); font-size: 9px; }
.button-outline:hover { background: var(--mint); }
.intro-image { height: clamp(170px, 17vw, 225px); border-radius: 5px; background: url('https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?auto=format&fit=crop&w=1200&q=88') center/cover no-repeat; }
.research-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; }
.pillar { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 20px 0 0; }
.pillar + .pillar { padding-left: 20px; border-left: 1px solid var(--line); }
.pillar-icon { width: 43px; height: 43px; flex: 0 0 43px; display: grid; place-items: center; border-radius: 50%; color: var(--green-dark); background: #e5f3ee; }
.pillar-icon svg { width: 28px; height: 28px; }
.h2-icon { border: 1px solid #bad9d0; font-size: 14px; }
.pillar h3 { margin-bottom: 3px; font-size: 10px; line-height: 1.25; }
.pillar p { max-width: 185px; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }

.vision-section { padding: 24px 0 25px; background: linear-gradient(110deg, #f0f6f3, #e9f2ee); }
.vision-layout { display: grid; grid-template-columns: .9fr .8fr 2.05fr; gap: 23px; align-items: center; }
.vision-heading .eyebrow { margin-bottom: 7px; }
.vision-heading h2 { margin: 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.08; letter-spacing: -.045em; }
.section-summary { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; min-width: 0; }
.feature-card { min-width: 0; overflow: hidden; border-radius: 4px; background: #fff; box-shadow: 0 2px 9px rgba(26,63,52,.06); }
.feature-image { height: clamp(58px, 5.2vw, 73px); background-position: center; background-size: cover; }
.feature-materials { background-image: url('https://images.unsplash.com/photo-1532094349884-543bc11b234d?auto=format&fit=crop&w=500&q=80'); }
.feature-electrochem { background-image: url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?auto=format&fit=crop&w=500&q=80'); }
.feature-wind { background-image: url('https://images.unsplash.com/photo-1509391366360-2e959784a276?auto=format&fit=crop&w=500&q=80'); }
.feature-network { background-image: url('https://images.unsplash.com/photo-1635070041078-e363dbe005cb?auto=format&fit=crop&w=500&q=80'); }
.feature-card-copy { padding: 7px 7px 8px; }
.feature-card h3 { margin-bottom: 4px; font-size: 7px; line-height: 1.3; }
.feature-card p { margin: 0; color: var(--muted); font-size: 7px; line-height: 1.35; }

.sponsors-section { padding: 15px 0 17px; background: #fff; }
.sponsor-layout { display: grid; grid-template-columns: 1.28fr 1fr; gap: 30px; align-items: center; }
.sponsors-left { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: center; }
.sponsors-left > .eyebrow { margin: 0; white-space: nowrap; font-size: 7px; }
.sponsor-logos { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; }
.sponsor-logo { display: flex; align-items: center; justify-content: flex-start; min-width: 0; }
.sponsor-logo img { width: 100%; height: auto; object-fit: contain; }
.uob-logo { width: 105px; flex: 0 0 105px; }
.ec-logo { width: 83px; flex: 0 0 83px; }
.mc-logo { width: 34px; flex: 0 0 34px; }
.uob-logo img { max-height: 28px; }
.ec-logo img { max-height: 25px; }
.mc-logo img { max-height: 34px; }
.funding-note { padding: 0; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.funding-note p { margin: 0; color: #7a8086; font-size: 7px; line-height: 1.5; }
.funding-note strong { font-weight: 500; }
.cordis-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid #9bb5ad; border-radius: 4px; color: var(--green-dark); font-size: 7px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.cordis-link:hover { background: var(--mint); }
footer { padding: 18px 0; background: #173e36; color: #eaf4f0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-brand { font-size: 20px; font-weight: 800; letter-spacing: -.08em; }
.footer-brand span { color: var(--green-light); }
.footer-inner p { margin: 0; color: #c4d8d1; font-size: 10px; }
.footer-inner > a:not(.footer-brand) { margin-left: auto; font-size: 10px; }
.footer-inner small { color: #b7cec6; font-size: 9px; }

@media (min-width: 1500px) {
  .hero-content { margin-left: calc((100% - var(--content))/2); }
}
@media (max-width: 900px) {
  .site-header { height: 62px; }
  .brand { width: 140px; }
  .menu-toggle { display: block; padding: 7px; z-index: 22; }
  .menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--green-dark); }
  .main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; padding: 15px 5% 22px; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; box-shadow: 0 10px 20px rgba(0,0,0,.09); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px; }
  .main-nav .nav-contact { text-align: center; margin-top: 6px; }
  .hero-content { width: 52%; }
  .vision-layout { grid-template-columns: 1fr 1fr; gap: 18px; }
  .feature-grid { grid-column: 1 / -1; }
  .feature-image { height: 105px; }
  .sponsor-layout { grid-template-columns: 1fr; gap: 15px; }
  .funding-note { margin-left: 102px; }
}
@media (max-width: 620px) {
  .site-header { padding: 0 20px; }
  .hero { min-height: 510px; height: auto; }
  .hero-image { background-position: 57% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,31,28,.9), rgba(7,39,34,.45)); }
  .hero-content { width: 82%; margin-left: 7%; padding: 75px 0 95px; }
  h1 { font-size: clamp(40px, 10vw, 53px); }
  .hero-copy { font-size: 11px; }
  .hex-wave { width: 135%; height: 56%; right: -35%; bottom: -6%; opacity: .55; }
  .section-wrap { width: calc(100% - 40px); }
  .intro { padding-top: 25px; }
  .intro-top { grid-template-columns: 1fr; gap: 17px; }
  .intro-image { height: 210px; grid-row: 1; }
  .intro-copy h2 { font-size: 30px; }
  .intro-copy > p:not(.eyebrow) { font-size: 10px; }
  .research-pillars { grid-template-columns: 1fr; gap: 0; margin-top: 15px; }
  .pillar, .pillar + .pillar { padding: 12px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .pillar h3 { font-size: 10px; }
  .pillar p { max-width: none; font-size: 9px; }
  .vision-section { padding: 25px 0; }
  .vision-layout { grid-template-columns: 1fr; gap: 13px; }
  .vision-heading h2 { font-size: 25px; }
  .section-summary { font-size: 9px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature-image { height: 100px; }
  .feature-card-copy { padding: 9px; }
  .feature-card h3 { font-size: 9px; }
  .feature-card p { font-size: 8px; }
  .sponsors-section { padding: 20px 0; }
  .sponsors-left { grid-template-columns: 1fr; gap: 12px; }
  .sponsor-logos { justify-content: flex-start; gap: 12px; }
  .uob-logo { width: 36%; flex-basis: 36%; }
  .ec-logo { width: 31%; flex-basis: 31%; }
  .mc-logo { width: 15%; flex-basis: 15%; }
  .uob-logo img, .ec-logo img { max-height: 34px; }
  .mc-logo img { max-height: 42px; }
  .funding-note { margin-left: 0; padding-top: 14px; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; gap: 10px; }
  .funding-note p { font-size: 8px; }
  .cordis-link { font-size: 7px; padding: 7px 8px; }
  .footer-inner { gap: 12px 15px; }
  .footer-inner p { width: calc(100% - 90px); }
  .footer-inner > a:not(.footer-brand) { margin-left: 0; }
  .footer-inner small { margin-left: auto; }
}


/* Hero uses the supplied landscape as a background, with accessible HTML text and CTA. */
@media (max-width: 640px) {
  
}



.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 36vw, 570px);
  padding: clamp(52px, 6vw, 92px) max(5.1vw, calc((100vw - 1320px) / 2));
  overflow: hidden;
  background: #103d36;
  line-height: normal;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/flexell-hero-landscape.png");
  background-size: cover;
  background-position: center 53%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 35, 31, .88) 0%, rgba(5, 43, 37, .70) 31%, rgba(5, 43, 37, .20) 61%, rgba(5, 43, 37, .02) 100%),
              linear-gradient(0deg, rgba(3, 32, 28, .28) 0%, transparent 48%);
  pointer-events: none;
}
.hero-content {
  width: min(510px, 49%);
  color: #fff;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  margin: 0 0 18px;
  color: #a7eadc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .23em;
  line-height: 1.4;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 18px;
  max-width: 520px;
  font-size: clamp(40px, 4.2vw, 62px);
  font-weight: 750;
  line-height: .99;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 span {
  display: block;
  color: #73d3bd;
}
.hero-description {
  max-width: 430px;
  margin: 0 0 23px;
  color: rgba(255,255,255,.93);
  font-size: 15px;
  line-height: 1.58;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 190px;
  padding: 14px 17px;
  border-radius: 5px;
  background: #79d6c1;
  color: #07372f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: background .2s ease, transform .2s ease;
}
.hero-cta span { font-size: 20px; line-height: .8; }
.hero-cta:hover { background: #9be7d7; transform: translateY(-1px); }
.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  opacity: .95;
}
@media (max-width: 760px) {
  .hero {
    min-height: 520px;
    padding: 64px 7vw 70px;
    align-items: center;
  }
  .hero-backdrop { background-position: 56% center; }
  .hero::before {
    background: linear-gradient(90deg, rgba(4,35,31,.86) 0%, rgba(5,43,37,.64) 58%, rgba(5,43,37,.22) 100%),
                linear-gradient(0deg, rgba(3,32,28,.36), transparent 70%);
  }
  .hero-content { width: min(100%, 500px); }
  .hero h1 { font-size: clamp(38px, 9vw, 56px); }
  .hero-description { max-width: 390px; font-size: 14px; }
  .hero-eyebrow { font-size: 9px; letter-spacing: .18em; }
}


/* Refined second and third homepage blocks to match the approved visual reference */
.intro.section-wrap {
  width: min(1360px, calc(100% - 10.5%));
  padding-top: clamp(34px, 4.2vw, 58px);
  padding-bottom: clamp(32px, 4vw, 54px);
}
.intro-top {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6.5vw, 92px);
  align-items: center;
}
.intro-copy { max-width: 540px; }
.intro-copy .eyebrow { font-size: 10px; margin-bottom: 14px; }
.intro-copy h2 {
  max-width: 560px;
  font-size: clamp(32px, 3.25vw, 48px);
  line-height: 1.04;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}
.intro-copy > p:not(.eyebrow) {
  max-width: 540px;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.58;
  margin-bottom: 27px;
}
.intro-image {
  height: clamp(270px, 32vw, 450px);
  border-radius: 12px;
  background-image: url("https://images.unsplash.com/photo-1532601224476-15c79f2f7a51?auto=format&fit=crop&w=1400&q=90");
  background-position: center;
}
.button-outline {
  min-width: 190px;
  padding: 12px 16px;
  font-size: 12px;
  border-radius: 6px;
}
.research-pillars {
  margin-top: clamp(30px, 4vw, 52px);
  gap: 0;
}
.pillar {
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 38px) 0 0;
}
.pillar + .pillar {
  padding-left: clamp(18px, 3vw, 38px);
}
.pillar-icon {
  width: 68px;
  height: 68px;
  flex-basis: 68px;
}
.pillar-icon svg { width: 38px; height: 38px; }
.h2-icon { font-size: 21px; }
.pillar h3 { font-size: 15px; margin-bottom: 6px; }
.pillar p { max-width: 245px; font-size: 12px; line-height: 1.5; }

.vision-section {
  padding: clamp(42px, 5vw, 70px) 0 clamp(42px, 5vw, 68px);
  background: linear-gradient(110deg, #f0f6f3 0%, #eaf3ef 100%);
}
.vision-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 28px clamp(35px, 7vw, 100px);
  align-items: start;
}
.vision-heading .eyebrow { font-size: 10px; margin-bottom: 14px; }
.vision-heading h2 {
  max-width: 600px;
  font-size: clamp(32px, 3.25vw, 46px);
  line-height: 1.08;
  letter-spacing: -.05em;
}
.section-summary {
  max-width: 520px;
  align-self: center;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.7;
}
.feature-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 18px);
  margin-top: 8px;
}
.feature-card {
  border-radius: 12px;
  box-shadow: 0 3px 14px rgba(26,63,52,.045);
}
.feature-image { height: clamp(135px, 13vw, 190px); }
.feature-card-copy { padding: 17px 18px 20px; }
.feature-card h3 { font-size: clamp(14px, 1.15vw, 17px); margin-bottom: 8px; line-height: 1.35; }
.feature-card p { font-size: clamp(12px, 1vw, 15px); line-height: 1.55; }

@media (max-width: 900px) {
  .intro.section-wrap { width: calc(100% - 8%); }
  .intro-top { gap: 28px; }
  .intro-copy h2, .vision-heading h2 { font-size: clamp(28px, 4vw, 38px); }
  .intro-image { height: 280px; }
  .pillar { gap: 12px; padding-right: 14px; }
  .pillar + .pillar { padding-left: 14px; }
  .pillar-icon { width: 54px; height: 54px; flex-basis: 54px; }
  .pillar h3 { font-size: 13px; }
  .pillar p { font-size: 11px; }
  .feature-image { height: 120px; }
}
@media (max-width: 620px) {
  .intro.section-wrap { width: calc(100% - 40px); padding-top: 28px; padding-bottom: 30px; }
  .intro-top { grid-template-columns: 1fr; gap: 24px; }
  .intro-image { grid-row: auto; height: 230px; border-radius: 9px; }
  .intro-copy h2 { font-size: 34px; margin-bottom: 14px; }
  .intro-copy > p:not(.eyebrow) { font-size: 14px; margin-bottom: 18px; }
  .research-pillars { margin-top: 24px; }
  .pillar, .pillar + .pillar { padding: 14px 0; gap: 16px; }
  .pillar-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .pillar h3 { font-size: 14px; }
  .pillar p { font-size: 12px; }
  .vision-section { padding: 34px 0; }
  .vision-layout { grid-template-columns: 1fr; gap: 15px; }
  .vision-heading h2 { font-size: 34px; }
  .section-summary { font-size: 14px; line-height: 1.6; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
  .feature-image { height: 115px; }
  .feature-card { border-radius: 9px; }
  .feature-card-copy { padding: 12px; }
  .feature-card h3 { font-size: 13px; }
  .feature-card p { font-size: 11px; }
}


/* Homepage order update: vision now precedes the clean-energy impact block. */
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
}


/* Homepage information architecture: pillars before Flexell Project; linked cards. */
.research-pillars {
  position: relative;
  z-index: 2;
  background: #fff;
}
.project-card-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.project-card-link:hover,
.project-card-link:focus-visible {
  color: #2b8f7d;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-card h3 { margin-top: 0; }


/* Position the three research pillars directly between the Hero and block 2. */
.research-pillars {
  margin: 0;
  padding-top: 18px;
  padding-bottom: 18px;
  background: #ffffff;
}


/* Balanced, centred research pillars between the Hero and the project block. */
.research-pillars {
  width: min(1120px, calc(100% - 10%));
  margin: 0 auto;
  padding: 26px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
}
.research-pillars .pillar {
  padding: 0 24px;
  justify-content: center;
}
.research-pillars .pillar:first-child { padding-left: 24px; }
.research-pillars .pillar + .pillar { padding-left: 24px; }
@media (max-width: 700px) {
  .research-pillars {
    width: calc(100% - 10%);
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .research-pillars .pillar,
  .research-pillars .pillar:first-child,
  .research-pillars .pillar + .pillar {
    padding: 0;
    justify-content: flex-start;
    border-left: 0;
  }
}

.research-pillars { margin-top: 0 !important; }


/* Education page */
.education-hero {
  padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 100px);
  color: #fff;
  background: linear-gradient(100deg, rgba(12,35,32,.88), rgba(22,55,48,.55)),
              url('assets/education-hero.jpg') center/cover no-repeat;
}
.education-hero .eyebrow { color: #9adccc; }
.education-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -.055em;
}
.education-hero p:not(.eyebrow) { max-width: 650px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }
.education-content { padding-top: clamp(55px, 7vw, 90px); padding-bottom: clamp(65px, 8vw, 100px); }
.education-content h2 { max-width: 700px; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.education-content > p:not(.eyebrow) { max-width: 700px; color: var(--muted); line-height: 1.7; }
.project-card-link { color: inherit; text-decoration: none; }
.project-card-link:hover, .project-card-link:focus-visible { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }


/* Approved homepage mock-up: project cards followed by the Education feature. */
:root {
  --green-dark: #176e63;
  --green: #58a895;
  --green-light: #78cbb8;
  --ink: #0c1119;
  --muted: #626977;
  --mint: #edf5f2;
}
.vision-section {
  padding: clamp(34px, 3vw, 48px) 0;
  background: linear-gradient(110deg, #f0f7f4 0%, #eaf3ef 100%);
}
.project-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.42fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.project-intro .eyebrow,
.education-copy .eyebrow {
  margin-bottom: 16px;
  color: #23796e;
  font-size: 11px;
  letter-spacing: .24em;
  font-weight: 600;
}
.project-intro h2,
.education-copy h2 {
  margin: 0 0 22px;
  max-width: 540px;
  color: var(--ink);
  font-size: clamp(34px, 3.45vw, 54px);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 700;
}
.project-intro h2 span,
.education-copy h2 span { color: #147c6e; }
.project-intro > p:not(.eyebrow),
.education-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.65;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
.feature-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 3px 18px rgba(28,67,57,.035);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(28,67,57,.09);
}
.feature-image {
  display: block;
  width: calc(100% - 16px);
  height: clamp(170px, 16.2vw, 250px);
  margin: 8px 8px 0;
  object-fit: cover;
  border-radius: 10px;
}
.feature-card-copy { padding: 15px 24px 20px; }
.feature-card h3 {
  margin: 0 0 7px;
  color: #0b1018;
  font-size: clamp(18px, 1.4vw, 23px);
  line-height: 1.25;
  letter-spacing: -.035em;
  font-weight: 700;
}
.feature-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.5;
}
.feature-card p span {
  flex: 0 0 auto;
  color: #137e70;
  font-size: 25px;
  line-height: 1;
}
.education-feature {
  padding: clamp(38px, 3.1vw, 52px) 0 clamp(42px, 3.5vw, 58px);
  background: #fff;
}
.education-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: clamp(42px, 6vw, 90px);
  align-items: center;
}
.education-copy h2 { max-width: 500px; }
.education-copy > p:not(.eyebrow) { margin-bottom: 24px; }
.education-copy .button {
  min-width: 200px;
  padding: 13px 18px;
  border: 1.5px solid #187a6d;
  border-radius: 8px;
  color: #0e1419;
  font-size: 15px;
  font-weight: 600;
}
.education-copy .button span { font-size: 22px; }
.education-photo {
  display: block;
  width: 100%;
  height: clamp(240px, 20vw, 315px);
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
}
.sr-only-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .project-layout { grid-template-columns: 1fr; gap: 26px; }
  .project-intro h2 { max-width: 650px; }
  .feature-image { height: clamp(170px, 28vw, 250px); }
  .education-layout { grid-template-columns: 1fr; gap: 28px; }
  .education-photo { height: clamp(230px, 42vw, 360px); }
}
@media (max-width: 620px) {
  .vision-section { padding: 30px 0; }
  .project-layout { gap: 22px; }
  .project-intro .eyebrow,
  .education-copy .eyebrow { margin-bottom: 11px; font-size: 9px; }
  .project-intro h2,
  .education-copy h2 { font-size: clamp(32px, 9vw, 42px); margin-bottom: 15px; }
  .project-intro > p:not(.eyebrow),
  .education-copy > p:not(.eyebrow) { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-image { height: 220px; }
  .feature-card-copy { padding: 13px 17px 18px; }
  .feature-card h3 { font-size: 19px; }
  .feature-card p { font-size: 14px; }
  .education-feature { padding: 34px 0 38px; }
  .education-photo { height: 220px; }
}


/* Refined flexell project block: align intro and cards in one balanced row. */
.vision-section .project-layout {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.48fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.vision-section .project-intro {
  align-self: center;
  max-width: 390px;
}
.vision-section .project-intro h2 {
  font-size: clamp(34px, 3.1vw, 46px);
  line-height: 1.04;
  margin-bottom: 22px;
}
.vision-section .project-intro > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.62;
  max-width: 390px;
}
.vision-section .feature-grid {
  align-self: center;
  gap: 16px;
}
.vision-section .feature-card {
  border-radius: 15px;
}
.vision-section .feature-image {
  width: calc(100% - 16px);
  height: clamp(150px, 16vw, 205px);
  margin: 8px 8px 0;
  border-radius: 9px;
  object-fit: cover;
}
.vision-section .feature-card-copy {
  padding: 15px 16px 18px;
}
.vision-section .feature-card h3 {
  font-size: clamp(17px, 1.35vw, 20px);
  margin-bottom: 8px;
}
.vision-section .feature-card p {
  font-size: 14px;
  gap: 8px;
}
@media (max-width: 900px) {
  .vision-section .project-layout {
    width: min(720px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .vision-section .project-intro { max-width: 620px; }
  .vision-section .project-intro h2 { max-width: 620px; }
  .vision-section .project-intro > p:not(.eyebrow) { max-width: 620px; }
  .vision-section .feature-image { height: clamp(170px, 28vw, 240px); }
}
@media (max-width: 620px) {
  .vision-section .project-layout { width: calc(100% - 36px); gap: 20px; }
  .vision-section .feature-grid { grid-template-columns: 1fr; }
  .vision-section .feature-image { height: 210px; }
  .vision-section .project-intro h2 { font-size: 36px; }
}


/* Layout refinement requested: project imagery beside its text, with more prominent sponsors. */
@media (min-width: 901px) {
  .vision-section .project-layout {
    display: grid !important;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.42fr) !important;
    gap: clamp(30px, 4vw, 58px) !important;
    align-items: center !important;
    width: min(1160px, calc(100% - 8%)) !important;
  }
  .vision-section .project-intro {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: 410px;
  }
  .vision-section .feature-grid {
    grid-column: 2 !important;
    grid-row: 1 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100%;
  }
}
.sponsors-section {
  padding: clamp(24px, 2.8vw, 38px) 0 !important;
}
.sponsors-section .sponsor-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  gap: clamp(26px, 4vw, 54px) !important;
  align-items: center;
}
.sponsors-section .sponsors-left {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 20px !important;
}
.sponsors-section .sponsors-left > .eyebrow {
  font-size: 10px !important;
  letter-spacing: .18em;
  white-space: normal;
}
.sponsors-section .sponsor-logos {
  gap: clamp(14px, 1.8vw, 24px) !important;
}
.sponsors-section .uob-logo { width: 145px; flex-basis: 145px; }
.sponsors-section .ec-logo { width: 112px; flex-basis: 112px; }
.sponsors-section .mc-logo { width: 48px; flex-basis: 48px; }
.sponsors-section .uob-logo img { max-height: 42px; }
.sponsors-section .ec-logo img { max-height: 38px; }
.sponsors-section .mc-logo img { max-height: 48px; }
.sponsors-section .funding-note {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
}
.sponsors-section .funding-note p {
  font-size: clamp(10px, .9vw, 12px) !important;
  line-height: 1.6 !important;
}
.sponsors-section .cordis-link {
  padding: 9px 13px !important;
  font-size: 10px !important;
}
@media (max-width: 900px) {
  .sponsors-section .sponsor-layout {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .sponsors-section .sponsors-left {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .sponsors-section .sponsor-logos {
    flex-wrap: wrap;
  }
  .sponsors-section .funding-note p { font-size: 12px !important; }
}
@media (max-width: 620px) {
  .sponsors-section .uob-logo { width: 120px; flex-basis: 120px; }
  .sponsors-section .ec-logo { width: 95px; flex-basis: 95px; }
  .sponsors-section .mc-logo { width: 42px; flex-basis: 42px; }
  .sponsors-section .funding-note { grid-template-columns: 1fr !important; }
}


/* Final layout matching the reference: two project cards stacked beside the intro. */
@media (min-width: 901px) {
  .vision-section .project-layout {
    width: min(1200px, calc(100% - 56px)) !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .9fr) !important;
    gap: clamp(36px, 5vw, 64px) !important;
    align-items: center !important;
  }
  .vision-section .project-intro {
    grid-column: 1 !important;
    grid-row: 1 !important;
    max-width: 560px !important;
  }
  .vision-section .project-intro h2 {
    font-size: clamp(36px, 3.2vw, 48px) !important;
    line-height: 1.04 !important;
  }
  .vision-section .project-intro > p:not(.eyebrow) {
    font-size: clamp(16px, 1.25vw, 19px) !important;
    line-height: 1.65 !important;
  }
  .vision-section .feature-grid {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .vision-section .feature-card {
    display: block !important;
    border-radius: 14px !important;
    padding: 6px !important;
  }
  .vision-section .feature-image {
    display: block !important;
    width: 100% !important;
    height: clamp(125px, 11vw, 165px) !important;
    margin: 0 !important;
    border-radius: 9px !important;
    object-fit: cover !important;
  }
  .vision-section .feature-card-copy {
    padding: 10px 8px 8px !important;
  }
  .vision-section .feature-card h3 {
    font-size: 16px !important;
    margin: 0 0 7px !important;
  }
  .vision-section .feature-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
}

/* Larger sponsor logos and readable EU funding statement. */
.sponsors-section {
  padding: clamp(28px, 3.2vw, 44px) 0 !important;
}
.sponsors-section .sponsor-layout {
  width: min(1200px, calc(100% - 56px)) !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) !important;
  gap: clamp(32px, 4vw, 60px) !important;
  align-items: center !important;
}
.sponsors-section .sponsors-left {
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 22px !important;
}
.sponsors-section .sponsors-left > .eyebrow {
  font-size: 10px !important;
  line-height: 1.5 !important;
  letter-spacing: .16em !important;
  white-space: normal !important;
}
.sponsors-section .sponsor-logos {
  gap: clamp(18px, 2.1vw, 30px) !important;
}
.sponsors-section .uob-logo { width: 170px !important; flex: 0 0 170px !important; }
.sponsors-section .ec-logo { width: 132px !important; flex: 0 0 132px !important; }
.sponsors-section .mc-logo { width: 54px !important; flex: 0 0 54px !important; }
.sponsors-section .uob-logo img { max-height: 48px !important; }
.sponsors-section .ec-logo img { max-height: 44px !important; }
.sponsors-section .mc-logo img { max-height: 54px !important; }
.sponsors-section .funding-note {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
}
.sponsors-section .funding-note p {
  font-size: clamp(11px, .95vw, 13px) !important;
  line-height: 1.65 !important;
}
.sponsors-section .cordis-link {
  padding: 10px 14px !important;
  font-size: 10px !important;
}
@media (max-width: 900px) {
  .vision-section .project-layout {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  .vision-section .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .vision-section .feature-image {
    height: clamp(170px, 32vw, 240px) !important;
  }
  .sponsors-section .sponsor-layout {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }
  .sponsors-section .sponsors-left {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .sponsors-section .sponsor-logos { flex-wrap: wrap !important; }
  .sponsors-section .funding-note p { font-size: 13px !important; }
}
@media (max-width: 620px) {
  .vision-section .project-layout,
  .sponsors-section .sponsor-layout {
    width: calc(100% - 36px) !important;
  }
  .sponsors-section .uob-logo { width: 135px !important; flex-basis: 135px !important; }
  .sponsors-section .ec-logo { width: 105px !important; flex-basis: 105px !important; }
  .sponsors-section .mc-logo { width: 46px !important; flex-basis: 46px !important; }
  .sponsors-section .funding-note { grid-template-columns: 1fr !important; }
}


/* Shared page layouts and alignment refinements */
.vision-section .project-layout,
.education-feature .education-layout {
  width: min(var(--content), calc(100% - 10.4%)) !important;
  margin-inline: auto !important;
}
.vision-section .project-layout { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.42fr) !important; }
.education-feature .education-layout { grid-template-columns: minmax(300px, .78fr) minmax(0, 1.42fr) !important; }
.page-hero-project { background: linear-gradient(115deg, rgba(12,45,39,.88), rgba(42,91,79,.55)), url('assets/flexell-project-hero.jpg') center 52%/cover no-repeat !important; }
.page-hero-outputs { background: linear-gradient(115deg, rgba(12,45,39,.96), rgba(42,91,79,.76)), url('assets/research-publications.jpg') center/cover no-repeat !important; }
.page-hero-group { background: linear-gradient(115deg, rgba(12,45,39,.96), rgba(42,91,79,.76)), url('assets/solid-oxide-stack.jpg') center/cover no-repeat !important; }
.page-hero-contact { background: linear-gradient(100deg, rgba(12,35,32,.82), rgba(22,55,48,.34)), url('assets/contact-hero.jpg') center 48%/cover no-repeat !important; }
.page-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; margin:36px 0 30px; }
.page-image-card { overflow:hidden; border-radius:14px; background:#f0f6f3; }
.page-image-card img { width:100%; height:clamp(190px,22vw,290px); object-fit:cover; }
.page-image-card > div { padding:22px 24px 25px; }
.page-image-card h3 { margin-bottom:8px; font-size:clamp(18px,1.8vw,24px); letter-spacing:-.03em; }
.page-image-card p { margin:0; max-width:540px; color:var(--muted); line-height:1.65; }
.group-partners { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; gap:28px; margin-top:42px; padding:28px; border-radius:14px; background:var(--mint); }
.group-partner { text-align:center; }
.group-partner img { width:100%; max-width:190px; max-height:85px; margin:0 auto 14px; object-fit:contain; }
.group-partner p { margin:0; color:var(--muted); font-size:13px; }
.contact-content { min-height:360px; }
.contact-email { display:inline-flex; align-items:center; gap:14px; margin-top:15px; padding:16px 20px; border-radius:8px; background:var(--mint); color:var(--green-dark); font-size:clamp(18px,2vw,25px); font-weight:700; }
@media (max-width:900px) {
 .vision-section .project-layout, .education-feature .education-layout { width:calc(100% - 40px) !important; grid-template-columns:1fr !important; }
 .page-card-grid { gap:16px; }
}
@media (max-width:620px) {
 .vision-section .project-layout, .education-feature .education-layout { width:calc(100% - 36px) !important; }
 .page-card-grid, .group-partners { grid-template-columns:1fr; }
 .page-card-grid { gap:16px; }
 .group-partners { gap:24px; }
 .page-image-card img { height:220px; }
}


/* Publications page - clean, editorial list inspired by the portfolio publications layout. */
.page-breadcrumb {
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.page-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.page-breadcrumb a:hover { color: var(--mint-strong, #78d1bd); }
.publications-section { padding-top: clamp(52px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px); }
.publications-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}
.publications-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.publications-count {
  margin: 0 0 4px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.publication-list {
  border-top: 1px solid rgba(37, 83, 75, .22);
}
.publication-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  padding: clamp(22px, 3vw, 32px) 0;
  border-bottom: 1px solid rgba(37, 83, 75, .22);
}
.publication-number {
  align-self: start;
  padding-top: 3px;
  color: #58a995;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}
.publication-details { min-width: 0; }
.publication-journal {
  margin: 0 0 8px;
  color: #287568;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.publication-details h3 {
  margin: 0 0 8px;
  color: var(--ink, #111820);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.publication-details > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #5f6878);
  font-size: 14px;
  line-height: 1.65;
}
.publication-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(39, 103, 91, .55);
  border-radius: 6px;
  color: var(--green-dark, #24564d);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.publication-link span { font-size: 17px; line-height: 1; }
.publication-link:hover {
  background: var(--green-dark, #24564d);
  border-color: var(--green-dark, #24564d);
  color: #fff;
}
.page-hero-outputs .page-breadcrumb { color: rgba(255,255,255,.82); }
@media (max-width: 760px) {
  .publications-heading { align-items: start; flex-direction: column; gap: 12px; }
  .publication-item { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .publication-link { grid-column: 2; justify-self: start; margin-top: 2px; }
}
@media (max-width: 480px) {
  .publication-item { padding: 22px 0; }
  .publication-details > p:last-child { font-size: 13px; }
  .publication-link { min-width: 124px; }
}


/* Interactive publication rows: subtle lift and green accent on hover/focus. */
.publication-item {
  position: relative;
  border-radius: 8px;
  padding-left: 14px;
  padding-right: 14px;
  margin-left: -14px;
  margin-right: -14px;
  transition: transform .28s ease, background-color .28s ease, box-shadow .28s ease, border-color .28s ease;
  transform: translateY(0);
}
.publication-item:hover,
.publication-item:focus-within,
.publication-item:focus-visible {
  transform: translateY(-5px);
  background: rgba(83, 157, 137, .075);
  box-shadow: 0 12px 28px rgba(24, 62, 53, .09);
  z-index: 1;
}
.publication-item:focus-visible { outline: 2px solid #438d7c; outline-offset: 3px; }
.publication-authors {
  margin: 0 0 10px !important;
  max-width: 900px !important;
  color: var(--ink, #111820) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}
.publication-authors strong { color: #287568; }
.publication-summary { max-width: 850px !important; }
.publication-item:hover .publication-number,
.publication-item:focus-within .publication-number { color: var(--green-dark, #24564d); }
.publication-item:hover .publication-details h3,
.publication-item:focus-within .publication-details h3 { color: var(--green-dark, #24564d); }
.publication-item .publication-link { transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.publication-item:hover .publication-link,
.publication-item:focus-within .publication-link { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .publication-item, .publication-item .publication-link { transition: none; }
  .publication-item:hover, .publication-item:focus-within { transform: none; }
}


/* Contact page - portfolio-inspired, minimal form layout. */
.contact-hero .section-wrap { padding-top: 12px; padding-bottom: 10px; }
.contact-hero h1 { max-width: 760px; }
.contact-main { display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(34px,7vw,100px); padding-top:clamp(54px,7vw,90px); padding-bottom:clamp(64px,8vw,105px); align-items:start; }
.contact-intro h2, .contact-form-panel h2 { margin:0 0 16px; font-size:clamp(25px,3vw,38px); line-height:1.14; letter-spacing:-.045em; }
.contact-intro > p:not(.eyebrow) { max-width:430px; margin:0 0 34px; color:var(--muted); line-height:1.75; font-size:14px; }
.contact-detail { border-top:1px solid var(--line, #dce5e0); padding:19px 0 21px; display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.contact-detail-label { color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.15em; font-weight:800; }
.contact-detail > a:first-of-type { color:var(--green-dark); font-size:18px; font-weight:700; text-decoration:none; transition:color .2s ease, transform .2s ease; }
.contact-detail > a:first-of-type:hover { color:var(--green); transform:translateX(3px); }
.contact-detail address { font-style:normal; color:var(--ink, #202a27); font-size:14px; line-height:1.75; }
.contact-detail .map-link { color:var(--green-dark); font-size:12px; font-weight:700; text-decoration:none; margin-top:3px; }
.contact-detail .map-link:hover { text-decoration:underline; }
.contact-form-panel { background:#f5f8f6; border:1px solid #e2eae5; border-radius:8px; padding:clamp(24px,4vw,42px); }
.contact-form-panel .eyebrow { margin-bottom:10px; }
.contact-form { display:grid; gap:19px; margin-top:25px; }
.form-field { display:flex; flex-direction:column; gap:8px; }
.form-field label { font-size:12px; font-weight:700; color:var(--ink, #202a27); }
.form-field input, .form-field textarea { width:100%; box-sizing:border-box; border:1px solid #d4dfd9; border-radius:4px; background:white; padding:13px 14px; font:inherit; font-size:13px; color:var(--ink, #202a27); outline:none; transition:border-color .2s ease, box-shadow .2s ease; }
.form-field textarea { resize:vertical; min-height:130px; line-height:1.6; }
.form-field input:focus, .form-field textarea:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(42,91,79,.1); }
.form-field input::placeholder, .form-field textarea::placeholder { color:#8b9690; }
.contact-submit { display:inline-flex; justify-content:space-between; align-items:center; gap:24px; justify-self:start; min-width:175px; padding:13px 17px; border:0; border-radius:4px; background:var(--green-dark); color:white; font:inherit; font-size:12px; font-weight:700; cursor:pointer; transition:transform .2s ease, background .2s ease; }
.contact-submit:hover { transform:translateY(-2px); background:var(--green); }
.form-note { margin:-7px 0 0; color:var(--muted); font-size:11px; line-height:1.6; }
.form-status { margin:0; color:var(--green-dark); font-size:12px; line-height:1.5; }
@media(max-width:760px) { .contact-main { grid-template-columns:1fr; gap:34px; } .contact-intro > p:not(.eyebrow) { margin-bottom:24px; } }

/* Education page: two learning pathways */
.education-intro{max-width:780px;color:var(--text-muted,#606b70);line-height:1.75;margin-bottom:2.5rem}
.education-pathways{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem;margin-top:2rem;align-items:stretch}
.education-pathway{display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2e8e5;border-radius:16px;box-shadow:0 8px 26px rgba(20,50,40,.055);transition:transform .25s ease,box-shadow .25s ease}
.education-pathway:hover{transform:translateY(-5px);box-shadow:0 16px 34px rgba(20,50,40,.12)}
.education-pathway-image{display:block;height:220px;overflow:hidden;background:#edf2ef}
.education-pathway-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.education-pathway:hover .education-pathway-image img{transform:scale(1.035)}
.education-pathway-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:1.7rem}
.education-pathway-body h3{font-size:1.35rem;line-height:1.3;margin:.35rem 0 .8rem;color:var(--heading,#24352e)}
.education-pathway-body p:not(.eyebrow){color:var(--text-muted,#606b70);line-height:1.7;margin:0 0 1.5rem}
.education-pathway-body .button{margin-top:auto}
@media(max-width:760px){.education-pathways{grid-template-columns:1fr}.education-pathway-image{height:200px}.education-pathway-body{padding:1.35rem}}

/* The Project page: project story, facts and image-led research sections */
.project-hero .section-wrap { padding-top: clamp(78px, 10vw, 132px); padding-bottom: clamp(78px, 10vw, 132px); }
.project-hero h1 { max-width: 900px; }
.project-hero p:not(.eyebrow) { max-width: 720px; }
.project-hero .button { margin-top: 18px; }
.project-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding-top:28px; padding-bottom:28px; border-bottom:1px solid var(--line,#dce5e0); }
.project-fact { display:flex; flex-direction:column; gap:8px; padding:8px 22px; border-left:1px solid var(--line,#dce5e0); }
.project-fact:first-child { border-left:0; padding-left:0; }
.project-fact > span { color:var(--green-dark,#24564d); font-size:10px; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
.project-fact strong { font-size:16px; line-height:1.35; letter-spacing:-.025em; }
.project-fact small { color:var(--muted,#697772); font-size:12px; line-height:1.5; }
.project-section { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); align-items:center; gap:clamp(34px,6vw,82px); padding-top:clamp(62px,8vw,100px); padding-bottom:clamp(62px,8vw,100px); }
.project-copy h2,.project-gallery-heading h2 { max-width:680px; font-size:clamp(30px,4vw,48px); line-height:1.08; letter-spacing:-.045em; margin-bottom:22px; }
.project-copy > p:not(.eyebrow) { color:var(--muted,#697772); line-height:1.8; margin:0 0 16px; }
.project-copy > p strong { color:var(--ink,#202a27); }
.project-photo { display:block; min-width:0; margin:0; overflow:hidden; border-radius:15px; background:#edf2ef; }
.project-photo img { display:block; width:100%; height:100%; max-height:470px; min-height:250px; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.project-photo:hover img { transform:scale(1.035); }
.project-photo figcaption { padding:12px 16px 14px; color:var(--muted,#697772); font-size:12px; line-height:1.5; background:#f2f6f4; }
.project-photo-feature img { min-height:360px; }
.project-research-band { background:#f3f7f5; }
.project-research { grid-template-columns:minmax(0,.95fr) minmax(0,1fr); }
.project-research .project-photo { order:0; }
.project-list { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:12px; }
.project-list li { position:relative; padding-left:25px; color:var(--ink,#202a27); font-size:14px; line-height:1.65; }
.project-list li::before { content:""; position:absolute; left:0; top:.55em; width:9px; height:9px; border-radius:3px; background:var(--green,#5d9d84); box-shadow:0 0 0 4px rgba(93,157,132,.13); }
.project-photo-tall img { min-height:380px; }
.project-gallery-section { background:#eaf2ee; padding:clamp(54px,7vw,86px) 0; }
.project-gallery-heading { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:28px; }
.project-gallery-heading h2 { margin-bottom:0; }
.project-gallery-heading > a { flex-shrink:0; color:var(--green-dark,#24564d); font-size:13px; font-weight:700; text-decoration:none; padding-bottom:6px; }
.project-gallery-heading > a:hover { text-decoration:underline; text-underline-offset:4px; }
.project-gallery { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.project-gallery .project-photo img { height:clamp(240px,30vw,390px); }
@media (max-width:850px) {
 .project-facts { grid-template-columns:1fr 1fr; row-gap:22px; }
 .project-fact:nth-child(3) { border-left:0; padding-left:0; }
 .project-section,.project-research { grid-template-columns:1fr; gap:28px; }
 .project-research .project-photo { order:0; }
 .project-copy { max-width:760px; }
 .project-photo-feature img,.project-photo-tall img { min-height:280px; max-height:430px; }
}
@media (max-width:560px) {
 .project-facts { grid-template-columns:1fr; gap:0; }
 .project-fact,.project-fact:first-child,.project-fact:nth-child(3) { border-left:0; border-bottom:1px solid var(--line,#dce5e0); padding:15px 0; }
 .project-fact:last-child { border-bottom:0; }
 .project-gallery-heading { display:block; }
 .project-gallery-heading > a { display:inline-block; margin-top:18px; }
 .project-gallery { grid-template-columns:1fr; gap:16px; }
 .project-gallery .project-photo img { height:240px; }
 .project-photo img { min-height:220px; }
}


/* Consistent hero dimensions and vertical alignment across all pages */
.hero,
.education-hero {
  min-height: clamp(420px, 36vw, 570px);
}
.education-hero {
  display: flex;
  align-items: center;
  padding: 48px 0 !important;
}
.education-hero > .section-wrap {
  width: min(var(--content), calc(100% - 10.4%));
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.education-hero .page-breadcrumb { margin-bottom: 22px; }
@media (max-width: 760px) {
  .hero,
  .education-hero { min-height: 520px; }
  .education-hero { padding: 54px 0 !important; }
  .education-hero > .section-wrap { width: calc(100% - 14%); }
}

/* The Group page: Centre profile and research photography */
.page-hero-group { background: linear-gradient(100deg, rgba(12,25,31,.78), rgba(12,25,31,.24)), url('assets/centre-beic.webp') center 48%/cover no-repeat !important; }
.group-hero h1 { max-width: 880px; }
.group-hero p:not(.eyebrow):not(.page-breadcrumb) { max-width: 700px; }
.group-intro { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(300px,.92fr); gap:clamp(34px,6vw,84px); align-items:center; padding-top:clamp(60px,8vw,100px); padding-bottom:clamp(60px,8vw,100px); }
.group-copy h2,.group-team-copy h2,.group-lab-copy h2 { max-width:720px; font-size:clamp(29px,3.8vw,45px); line-height:1.12; letter-spacing:-.045em; margin:0 0 22px; }
.group-copy > p:not(.eyebrow),.group-team-copy > p:not(.eyebrow),.group-lab-copy > p:not(.eyebrow) { color:var(--muted); line-height:1.8; }
.group-copy a:not(.group-external-link) { color:var(--green-dark); text-underline-offset:3px; }
.group-feature-image,.group-team-image,.group-lab-image { margin:0; overflow:hidden; border-radius:12px; background:var(--mint); }
.group-feature-image img { width:100%; height:clamp(330px,39vw,520px); object-fit:cover; }
.group-feature-image figcaption { padding:12px 16px; color:var(--muted); font-size:12px; }
.group-external-link { display:inline-flex; align-items:center; gap:18px; margin-top:12px; padding:14px 0; color:var(--green-dark); font-size:13px; font-weight:700; text-decoration:none; border-bottom:1px solid var(--green); }
.group-external-link span { font-size:18px; transition:transform .2s ease; }
.group-external-link:hover span { transform:translate(3px,-3px); }
.group-team-section { padding:clamp(54px,7vw,88px) 0; background:var(--mint); }
.group-team-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:clamp(32px,6vw,78px); align-items:center; }
.group-team-image img { width:100%; height:auto; aspect-ratio:1024/442; object-fit:cover; }
.group-lab-section { display:grid; grid-template-columns:minmax(280px,.78fr) minmax(0,1.22fr); gap:clamp(32px,6vw,78px); align-items:center; padding-top:clamp(60px,8vw,100px); padding-bottom:clamp(60px,8vw,100px); }
.group-lab-image img { width:100%; height:clamp(320px,40vw,520px); object-fit:cover; object-position:center; }
@media (max-width:760px) {
  .group-intro,.group-team-layout,.group-lab-section { grid-template-columns:1fr; }
  .group-feature-image img { height:300px; }
  .group-lab-image img { height:300px; }
  .group-team-layout { gap:28px; }
  .group-lab-copy { order:0; }
}

/* Hydrogen mobility feature on The Group page */
.group-mirai-section { padding:clamp(56px,7vw,92px) 0; background:var(--mint); }
.group-mirai-layout { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr); gap:clamp(32px,6vw,78px); align-items:center; }
.group-mirai-image { margin:0; overflow:hidden; border-radius:12px; background:#fff; }
.group-mirai-image img { display:block; width:100%; height:clamp(300px,38vw,500px); object-fit:cover; object-position:center; }
.group-mirai-image figcaption { padding:12px 16px; color:var(--muted); font-size:12px; background:#fff; }
.group-mirai-copy h2 { max-width:720px; font-size:clamp(29px,3.8vw,45px); line-height:1.12; letter-spacing:-.045em; margin:0 0 22px; }
.group-mirai-copy > p:not(.eyebrow) { color:var(--muted); line-height:1.8; }
@media (max-width:760px) { .group-mirai-layout { grid-template-columns:1fr; } .group-mirai-image img { height:300px; } }


/* FormSubmit spam honeypot: hidden from visitors and assistive technology. */
.form-honeypot { position:absolute !important; left:-5000px !important; width:1px !important; height:1px !important; opacity:0 !important; overflow:hidden !important; }

/* Consistent external-link icon: SVG avoids emoji-style arrow rendering on mobile. */
.external-link-icon { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; vertical-align:middle; }
.external-link-icon svg { display:block; width:1em; height:1em; }
