:root {
  --deep-green: #1f3a3d;
  --accent: #6bcf9b;
  --off-white: #f5f7f7;
  --mist: #8fa3a1;
  --petrol: #2a4a4d;
  --ink: #0f1f22;
  --slate: #2c3a3d;
  --stroke: rgba(15, 31, 34, 0.14);
  --max-width: 1120px;
  --shadow: 0 24px 60px rgba(15, 31, 34, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--deep-green);
  background: var(--off-white) url("IMG/FondoWebOpacidad.webp") no-repeat center top;
  background-size: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 6vw;
  background: rgba(245, 247, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 58, 61, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-image {
  width: 150px;
  height: auto;
}

.logo-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--slate);
  line-height: 1.2;
  text-align: left;
  padding-top: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  align-items: center;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
}

main {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 0 6vw 96px;
}

.home .hero-slider,
.home .ticker {
  border-radius: 0;
  margin-left: -6vw;
  margin-right: -6vw;
}

.home .hero-band {
  border-radius: 0;
  box-shadow: none;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  scroll-margin-top: 120px;
}

.hero-stack .ticker,
.hero-stack .hero-slider {
  margin-top: 0;
  margin-bottom: 0;
}

.hero-stack .ticker.top {
  margin-bottom: 0;
}

.hero-slider {
  position: relative;
  min-height: 520px;
  margin-top: 24px;
}

.hero-static.hero-slider {
  min-height: 312px;
}

.hero-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 96px clamp(24px, 5vw, 72px);
  min-height: 520px;
  background: var(--deep-green);
  color: var(--off-white);
  border-radius: 32px;
  box-shadow: 0 18px 36px rgba(15, 31, 34, 0.2);
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-static .hero-slide {
  position: static;
  opacity: 1;
  pointer-events: auto;
  display: grid;
}

.hero-static .hero-slide:not(:first-child) {
  display: none;
}

.hero-static .slider-dots {
  display: none;
}

.hero-static .hero-band {
  min-height: 396px;
  padding: 70px clamp(24px, 5vw, 72px);
}

.image-slide {
  position: relative;
  background: url("IMG/FondoHome.svg") center/cover no-repeat;
}

.image-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(120deg, rgba(31, 58, 61, 0.7), rgba(31, 58, 61, 0.2));
  pointer-events: none;
}

.slider-dots {
  position: absolute;
  right: 32px;
  bottom: 32px;
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(245, 247, 247, 0.7);
  background: rgba(245, 247, 247, 0.25);
  cursor: pointer;
}

.dot.active {
  background: var(--off-white);
}

.hero-band-logo {
  display: grid;
  place-items: center;
}

.hero-band-logo img {
  width: min(440px, 100%);
  height: auto;
}

.hero-band-copy h1 {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 2.8vw + 1rem, 3.3rem);
  line-height: 1.05;
}

.hero-claim {
  font-size: clamp(1.4rem, 1.6vw + 0.85rem, 1.9rem);
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--accent);
}

.hero-claim-divider {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-subclaim {
  margin: 0 0 12px;
  font-size: clamp(0.85rem, 0.9vw + 0.5rem, 1.1rem);
  color: var(--accent);
  max-width: 520px;
}

.hero-note {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--off-white);
  border: 1px solid rgba(245, 247, 247, 0.4);
  background: rgba(245, 247, 247, 0.08);
  margin: 0;
}

.ticker {
  margin-top: -32px;
  margin-bottom: -96px;
  padding: 16px 0;
  border-radius: 999px;
  background: var(--off-white);
  overflow: hidden;
}

.home .ticker {
  background: var(--deep-green);
}

.home .ticker .ticker-text {
  color: var(--accent);
}

.home #news .eyebrow {
  color: var(--off-white);
}

.news-page .news .eyebrow {
  display: none;
}

.publications-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  position: relative;
  border-top: 1px solid rgba(15, 31, 34, 0.25);
  border-bottom: 1px solid rgba(15, 31, 34, 0.25);
}

.solutions-page .publications-stack {
  border: none;
}

.news-hero.section {
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 24px;
  margin-left: -6vw;
  margin-right: -6vw;
  min-height: 0;
}

.news-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.news-page .news.section {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--deep-green);
  margin-top: -80px;
}

.publications-ticker {
  margin-top: 0;
  margin-bottom: 0;
  background: var(--accent);
  margin-left: -6vw;
  margin-right: -6vw;
  border-radius: 0;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}


.research-stack .publications-ticker {
  background: var(--mist);
}

.publications-ticker .ticker-text {
  color: var(--deep-green);
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  position: relative;
  top: 0;
}

.publications-hero-module .hero-band {
  grid-template-columns: 1fr;
  text-align: center;
  border-radius: 0;
  min-height: 300px;
  padding: 56px clamp(24px, 5vw, 72px);
  background: var(--accent);
  color: var(--deep-green);
  box-shadow: none;
}

.research-stack .publications-hero-module .hero-band {
  background: var(--deep-green);
  color: var(--mist);
}

.research-stack .publications-ticker {
  background: var(--deep-green);
}

.research-stack .publications-ticker .ticker-text {
  color: var(--mist);
}

.research-stack .publications-hero-text,
.research-stack .publications-hero-module .hero-band-copy h1 {
  color: var(--mist);
}

.publications-hero-module .hero-band-copy h1 {
  text-transform: none;
  margin-bottom: 24px;
  font-size: 4.65rem;
}

.publications-hero-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--deep-green);
}

.outreach-page .publications-ticker {
  background: var(--accent);
}

.outreach-page .publications-ticker .ticker-text {
  color: var(--deep-green);
}

.outreach-page .publications-hero-module .hero-band {
  background: var(--accent);
  color: var(--deep-green);
}

.outreach-page .publications-hero-text,
.outreach-page .publications-hero-module .hero-band-copy h1 {
  color: var(--deep-green);
}

.publications-page .publications-ticker {
  background: var(--mist);
}

.publications-page .publications-ticker .ticker-text {
  color: var(--deep-green);
}

.publications-page .publications-hero-module .hero-band {
  background: var(--mist);
  color: var(--deep-green);
}

.publications-page .publications-hero-text,
.publications-page .publications-hero-module .hero-band-copy h1 {
  color: var(--deep-green);
}

.solutions-page .publications-ticker {
  background: var(--off-white);
}

.solutions-page .publications-ticker .ticker-text {
  color: var(--deep-green);
}

.solutions-page .publications-ticker.top {
  border-top: 2px solid var(--accent);
}

.solutions-page .publications-ticker.bottom {
  border-bottom: 2px solid var(--accent);
}

.solutions-page .publications-hero-module .hero-band {
  background: var(--off-white);
  color: var(--deep-green);
  box-shadow: none;
  border-radius: 0;
}

.solutions-page .publications-hero-text,
.solutions-page .publications-hero-module .hero-band-copy h1 {
  color: var(--deep-green);
}

.publications-hero-module.hero-slider {
  margin-top: 0;
  min-height: 300px;
  margin-left: -6vw;
  margin-right: -6vw;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.ticker.top {
  margin-top: 0;
  margin-bottom: -24px;
}

.ticker.reverse .ticker-track {
  animation-direction: reverse;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 26s linear infinite;
  will-change: transform;
}

.ticker-text {
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--accent);
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 32px;
  font-size: 0.9rem;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 48px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.8rem);
  margin: 12px 0 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--slate);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.button.primary {
  background: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
  box-shadow: none;
}

.button.ghost {
  border-color: var(--ink);
}

.project-page .project-link-cordis {
  border-color: #1a438f;
  color: #1a438f;
}

.project-page .project-link-cordis:hover,
.project-page .project-link-cordis:focus-visible {
  background: #1a438f !important;
  border-color: #1a438f !important;
  color: var(--off-white) !important;
}

.project-page .project-link-website {
  border-color: var(--deep-green);
  color: var(--deep-green);
}

.project-page .project-link-website:hover,
.project-page .project-link-website:focus-visible {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: var(--off-white);
}

.project-page .project-link-related {
  border-color: var(--accent);
  color: var(--accent);
}

.project-page .project-link-related:hover,
.project-page .project-link-related:focus-visible {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--deep-green) !important;
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--deep-green);
  color: var(--off-white);
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--deep-green);
  color: var(--off-white);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.panel-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 31, 34, 0.08);
}

.panel-card.accent {
  background: linear-gradient(135deg, #e8fbf1, #c6f1dc);
}

.panel-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.section {
  background: rgba(245, 247, 247, 0.9);
  border-radius: 32px;
  padding: 48px clamp(24px, 4vw, 64px);
  box-shadow: 0 10px 30px rgba(15, 31, 34, 0.08);
  border: 1px solid rgba(15, 31, 34, 0.08);
}

.project-page.section {
  margin-top: -48px;
  background: var(--off-white);
  position: relative;
  margin-left: -6vw;
  margin-right: -6vw;
  border-radius: 0;
  scroll-margin-top: 120px;
}

.project-page .profile-nav {
  position: absolute;
  top: 38%;
  left: 24px;
  right: 24px;
  transform: none;
}

.project-hero:not(.contract-hero) + .project-page .profile-nav {
  top: 160px;
}

@media (max-width: 900px) {
  .project-page .profile-nav {
    position: static;
    transform: none;
    margin: 16px 0 0;
  }
}

.about.section {
  background: rgba(245, 247, 247, 0.55);
  border: 1px solid rgba(15, 31, 34, 0.08);
  box-shadow:
    0 18px 40px rgba(15, 31, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
}

.about .eyebrow {
  color: var(--accent);
}

.section-header h2 {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
  margin: 12px 0;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: stretch;
}

.home-links {
  padding-top: 0;
}

.home-links.section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.quicklinks {
  display: grid;
  gap: 0;
}

.quicklink-wrap {
  position: relative;
  overflow: hidden;
}

.quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-radius: 22px;
  min-height: 117px;
  width: 100%;
  transition: width 0.35s ease;
  overflow: hidden;
}

.quicklink-title {
  flex: 0 0 40%;
  font-size: 2.8rem;
  font-weight: 600;
  transition: flex-basis 0.35s ease;
  white-space: nowrap;
}

.quicklink-text {
  font-size: 1.9rem;
  max-width: 520px;
}

.quicklink-arrow {
  font-size: 3.2rem;
  line-height: 1;
}

.quicklink-arrow::after {
  content: none;
}

.quicklink-reveal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  padding: 22px 28px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: inherit;
  pointer-events: none;
}

.quicklink-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  color: inherit;
  pointer-events: auto;
}

.quicklink-link:hover,
.quicklink-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.quicklink-link:hover .quicklink-arrow,
.quicklink-link:focus-visible .quicklink-arrow {
  transform: scale(1.05);
}

.quicklink-arrow {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quicklink-link:hover .quicklink-arrow,
.quicklink-link:focus-visible .quicklink-arrow {
  box-shadow: none;
}

.quicklink-wrap:hover .quicklink,
.quicklink-wrap:focus-within .quicklink {
  width: 50%;
}

.quicklink-wrap:hover .quicklink-reveal,
.quicklink-wrap:focus-within .quicklink-reveal {
  opacity: 1;
  transform: translateX(0);
}

.quicklink-research {
  background: var(--deep-green);
  color: var(--mist);
}

.quicklink-publications {
  background: var(--mist);
  color: var(--deep-green);
}

.quicklink-solutions {
  background: var(--off-white);
  color: var(--deep-green);
  border: 2px solid rgba(15, 31, 34, 0.12);
}

.quicklink-outreach {
  background: var(--accent);
  color: var(--deep-green);
}

.about-visual {
  min-height: 0;
  height: 100%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.about-video-frame {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 24px;
  overflow: hidden;
}

.about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-intro {
  max-width: 640px;
  line-height: 1.7;
  color: var(--slate);
  margin-bottom: 10px;
}

.about-intro .section-intro {
  max-width: 800px;
}

.about-intro {
  margin-bottom: 24px;
}

.fluor-arrow {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.about-card {
  background: var(--petrol);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(15, 31, 34, 0.08);
}

.team-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.4rem;
  color: var(--accent);
  position: relative;
  margin-bottom: 24px;
}

.team-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: var(--accent);
  margin: 12px auto 0;
}

.team-note {
  color: var(--off-white);
  margin: 0 auto 20px;
  text-align: center;
  max-width: 780px;
}

.research-lines-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: stretch;
}

.research-tabs {
  display: grid;
  gap: 14px;
}

.research-tab {
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(42, 74, 77, 0.3);
  background: var(--off-white);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--petrol);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.research-tab:hover,
.research-tab:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 31, 34, 0.12);
}

.research-tab.active {
  background: var(--accent);
  color: var(--petrol);
  border-color: rgba(42, 74, 77, 0.4);
  box-shadow: 0 16px 28px rgba(15, 31, 34, 0.18);
}

.research-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(107, 207, 155, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.research-tab.active::before {
  opacity: 1;
}

.research-panels {
  position: relative;
  min-height: 320px;
}

.research-panel {
  display: none;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
  background: var(--off-white);
  border-radius: 22px;
  border: 1px solid rgba(31, 58, 61, 0.12);
  padding: 26px;
  box-shadow: 0 18px 34px rgba(15, 31, 34, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%;
  color: var(--petrol);
}

.research-panel.icon-panel {
  grid-template-columns: 180px 1fr;
  align-items: center;
  background: var(--accent);
}

#rl-ai.research-panel.icon-panel {
  background: var(--mist);
}

#rl-iot.research-panel.icon-panel {
  background: var(--off-white);
}

#rl-networks.research-panel.image-panel {
  background: var(--accent);
}

#rl-data.research-panel.image-panel {
  background: var(--mist);
}

#rl-crypto.research-panel.image-panel {
  background: var(--off-white);
}

.research-panel.image-panel {
  grid-template-columns: 180px 1fr;
  align-items: center;
}

.research-panel.active {
  display: grid;
  position: absolute;
  left: 0;
  right: 0;
}

.research-image {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 58, 61, 0.12), rgba(107, 207, 155, 0.18));
  border: 1px solid rgba(31, 58, 61, 0.16);
  position: relative;
}

.research-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(107, 207, 155, 0.22), transparent 60%);
  opacity: 0.8;
}

.icon-panel::after {
  display: none;
}

.research-icon-big {
  width: 160px;
  height: 160px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: rotate(-8deg);
  margin-left: -12px;
  filter: drop-shadow(0 18px 28px rgba(15, 31, 34, 0.2));
}

.icon-accent,
.icon-deep,
.icon-light {
  filter: drop-shadow(0 18px 28px rgba(15, 31, 34, 0.2));
}


.team-modules {
  display: grid;
  gap: 18px;
}

.team-module {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 22px;
  min-height: 132px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 30px rgba(15, 31, 34, 0.18);
  display: grid;
  align-items: center;
  transition: min-height 0.3s ease, padding 0.3s ease;
}

.team-module::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(143, 163, 161, 0.72), rgba(143, 163, 161, 0.2));
  z-index: 0;
}

.team-module.professors {
  background-image: url("IMG/nodosverde.svg");
}

.team-module.researchers {
  background-image: url("IMG/cubos.webp");
}

.team-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 31, 34, 0.12);
  background: rgba(42, 74, 77, 0.85);
  color: var(--off-white);
  font-size: 1.2rem;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.08rem;
  cursor: pointer;
  justify-self: center;
  transform: scale(1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    justify-self 0.3s ease,
    margin 0.3s ease;
}

.team-toggle:hover,
.team-toggle:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(15, 31, 34, 0.2);
}

.team-toggle span {
  position: relative;
  z-index: 2;
}

.team-module.open {
  align-items: start;
  padding: 24px;
}

.team-module.open .team-toggle {
  justify-self: start;
}

.team-panels {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.team-panels.open {
  display: grid;
}

.team-panels .profile-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-areas:
    "photo title"
    "bio bio"
    "button button";
  gap: 16px;
  align-items: start;
}

.team-panels .profile-link {
  grid-area: photo;
}

.team-panels .profile-card > div {
  display: contents;
}

.team-panels .profile-card p {
  grid-area: bio;
}

.team-panels .profile-card .button {
  grid-area: button;
  justify-self: start;
}

.team-panels .profile-card h4 {
  margin: 0;
  min-height: 48px;
  grid-area: title;
}

.team-panels .profile-card p {
  margin: 0;
  min-height: 88px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.team-panels .profile-card .button {
  align-self: start;
  margin-top: 0;
}

.profile-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  align-items: start;
}

.profile-link {
  display: block;
}

.profile-photo {
  width: 80px;
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(31, 58, 61, 0.12), rgba(107, 207, 155, 0.18));
  border: 1px solid rgba(31, 58, 61, 0.15);
  display: block;
  object-fit: cover;
}


.profile-photo-large {
  width: 140px;
  height: 180px;
}

.profile-page .profile-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.profile-page .profile-header h1 {
  margin: 0;
}

.profile-page .profile-header .eyebrow,
.profile-page .profile-header .hero-note {
  margin: 0;
}

.profile-page .hero-note {
  font-size: 0.85rem;
  padding: 6px 18px;
}

.profile-page .profile-header .button {
  margin-top: -2px;
}

.profile-page .profile-header > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.profile-position {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.button.accent {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.button.accent:hover,
.button.accent:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--deep-green);
}

.profile-actions .button.accent {
  font-size: 1.8rem;
  line-height: 1;
  padding: 0 16px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mail-icon {
  position: relative;
  top: -0.5mm;
  display: inline-block;
}

.profile-social {
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-social:hover,
.profile-social:focus-visible {
  transform: scale(1.08);
  box-shadow: none;
}

.profile-keywords {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.focus-face {
  object-position: 75% 20%;
}

.profile-photo-large.focus-face {
  object-position: 75% 20%;
}

.profile-back {
  margin-top: -40px;
  margin-bottom: -8px;
}

.keyword-pill {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--slate);
  border: 1px solid rgba(143, 163, 161, 0.6);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.keyword-pill:hover {
  background: var(--mist);
  color: var(--deep-green);
  border-color: var(--mist);
}

.profile-page {
  position: relative;
  margin-top: 24px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.profile-nav {
  position: absolute;
  top: 120px;
  left: -140px;
  right: -140px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.profile-nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--slate);
  pointer-events: auto;
  text-align: center;
  max-width: 120px;
}

.profile-nav-link.right {
  margin-left: auto;
}

.nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--deep-green);
  color: var(--deep-green);
  display: grid;
  place-items: center;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-nav-link:hover .nav-icon,
.profile-nav-link:focus-visible .nav-icon {
  background: var(--deep-green);
  color: var(--off-white);
}

@media (max-width: 900px) {
  .profile-nav {
    position: static;
    transform: none;
    margin-top: 16px;
  }
}

.profile-content h2 {
  margin-top: 0;
}

.profile-content p a {
  color: var(--accent);
  text-decoration: none;
}

.profile-content p a:hover,
.profile-content p a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pill-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--stroke);
}

.placeholder-list {
  padding-left: 16px;
  color: var(--slate);
}

.card-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.info-card,
.news-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: 0 12px 24px rgba(15, 31, 34, 0.06);
}

.news.section {
  background: rgba(143, 163, 161, 0.55);
}

.news-marquee {
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: news-scroll 32s linear infinite;
}

.news-track.is-paused {
  animation-play-state: paused;
}

.news-card {
  flex: 0 0 320px;
}

.news-image-link {
  display: block;
}

.news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
}

.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.news-viewall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-weight: 600;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--deep-green);
  background: rgba(245, 247, 247, 0.9);
  transition: transform 0.2s ease;
  margin-left: auto;
  margin-right: auto;
}

.news-readmore:hover,
.news-readmore:focus-visible,
.news-viewall:hover,
.news-viewall:focus-visible {
  transform: scale(1.05);
}

.news-arrow {
  font-size: 1.2rem;
  line-height: 1;
}

.news-arrow::after {
  content: none;
}

@keyframes news-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation: none;
  }
}

.publication-list {
  display: grid;
  gap: 16px;
}

.publication-item {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(107, 207, 155, 0.7);
  background: #ffffff;
}

.publication-content {
  display: grid;
  gap: 6px;
}

.publication-title {
  margin: 0 0 6px;
  font-weight: 500;
}

.publications-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2.4fr) repeat(2, minmax(0, 1.2fr));
  margin-bottom: 20px;
}

.filter-group {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--slate);
}

.search-input,
.filter-select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.publications-status {
  margin: 0 0 16px;
  color: var(--slate);
}

.publication-authors {
  margin: 0 0 6px;
  color: var(--slate);
}

.publication-links {
  display: flex;
  gap: 10px;
  margin-top: 0;
  justify-content: flex-start;
}

.publication-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--deep-green);
  font-size: 0.925rem;
  color: var(--deep-green);
  background: #ffffff;
}

.publication-links a:hover,
.publication-links a:focus-visible {
  background: var(--deep-green);
  color: var(--off-white);
}

.outreach-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.outreach-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.outreach.section {
  margin-top: -40px;
}

.publications.section,
.solutions.section,
.project-switcher.section {
  margin-top: -40px;
}

.solutions.section {
  background: transparent;
  border: none;
  box-shadow: none;
}

.solutions-controls {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 20px;
}

.solutions-list {
  display: grid;
  gap: 38px;
}

.solution-item {
  display: grid;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--accent);
}

.solution-item.is-hidden {
  display: none;
}

.solution-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.solution-head h2 {
  margin: 8px 0 12px;
  font-size: 1.9rem;
}

.solution-type {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.solution-desc {
  margin: 0;
  color: var(--slate);
  max-width: 900px;
}

.solution-meta-block {
  background: var(--deep-green);
  border-radius: 24px;
  padding: 24px;
}

.solution-meta-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.solution-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

.solution-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.solution-meta p,
.solution-meta a {
  margin: 0;
  color: var(--off-white);
  font-size: 0.98rem;
  line-height: 1.5;
  word-break: break-word;
}

.solution-meta a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.solution-meta a:hover,
.solution-meta a:focus-visible {
  color: var(--off-white);
}

.research-topics {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.research-topics-label {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.research-topics-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.2;
  border: 1px solid rgba(245, 247, 247, 0.35);
  color: var(--off-white);
  background: rgba(245, 247, 247, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topic-pill:hover,
.topic-pill:focus-visible {
  background: var(--off-white);
  color: var(--deep-green);
  border-color: var(--off-white);
}

.research-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--deep-green);
  color: var(--deep-green);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.research-link:hover,
.research-link:focus-visible {
  background: var(--deep-green);
  color: var(--off-white);
}

.research-divider {
  display: inline-block;
  width: 112px;
  height: 2.2px;
  background: rgba(15, 31, 34, 0.35);
  border-radius: 999px;
  margin: 2px 0 4px;
}

.tags-hero {
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.tags-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.tags-summary {
  margin: 0;
  color: var(--slate);
  max-width: 720px;
}

.tags-actions {
  margin-top: 8px;
}

.tags-results {
  display: grid;
  gap: 32px;
}

.tags-group {
  display: grid;
  gap: 16px;
}

.tags-group h2 {
  margin: 0;
  font-size: 1.6rem;
}

.tags-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tags-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 31, 34, 0.18);
  background: var(--off-white);
  color: var(--deep-green);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tags-card:hover,
.tags-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 31, 34, 0.12);
}

.tags-card-title {
  font-weight: 600;
}

.tags-card-meta {
  color: var(--slate);
  font-size: 0.9rem;
}

.tags-empty {
  margin: 0;
  color: var(--slate);
}

.outreach-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 24px;
  border-radius: 18px;
  border: 3px solid transparent;
  background: var(--off-white);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.outreach-thumb-wrap {
  border-radius: 16px;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.outreach-thumb {
  width: min(86%, 265px);
  height: auto;
  display: block;
  object-fit: contain;
}

.outreach-item.format-in-person .outreach-thumb,
.outreach-item.format-article .outreach-thumb {
  width: min(79%, 242px);
}

.outreach-item.format-article .outreach-thumb {
  width: min(95%, 290px);
}

.outreach-item.format-audio .outreach-thumb,
.outreach-item.format-in-person .outreach-thumb {
  border-radius: 16px;
}


.outreach-content {
  display: grid;
  gap: 6px;
}

.outreach-title {
  margin: 0;
  font-weight: 500;
}

.outreach-details {
  margin: 0;
  color: var(--slate);
}

.outreach-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.outreach-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04rem;
}

.outreach-item.format-video .outreach-tag {
  background: rgba(107, 207, 155, 0.24);
  color: var(--deep-green);
}

.outreach-item.format-audio .outreach-tag {
  background: rgba(31, 58, 61, 0.2);
  color: var(--off-white);
}

.outreach-item.format-article .outreach-tag {
  background: rgba(143, 163, 161, 0.26);
  color: var(--deep-green);
}

.outreach-item.format-in-person .outreach-tag {
  background: rgba(216, 209, 196, 0.5);
  color: var(--deep-green);
}

.outreach-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.outreach-links {
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.outreach-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--deep-green);
  font-size: 0.925rem;
  color: var(--deep-green);
  background: #ffffff;
}

.outreach-links a:hover,
.outreach-links a:focus-visible {
  background: var(--deep-green);
  color: var(--off-white);
}

.outreach-link-muted,
.outreach-empty {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.outreach-header {
  display: flex;
  align-items: center;
}

.outreach-item.format-video {
  border-color: var(--accent);
}

.outreach-item.format-audio {
  border-color: var(--deep-green);
}

.outreach-item.format-article {
  border-color: var(--mist);
}

.outreach-item.format-in-person {
  border-color: #d8d1c4;
}


.publications-empty {
  margin: 0;
  color: var(--slate);
}

.publications-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  justify-content: flex-end;
}

.publications-page {
  color: var(--slate);
  font-size: 0.9rem;
}

.project-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.projects.section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
  margin-top: -96px;
}

.project-back.section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding-top: 0;
  margin-top: -40px;
  display: flex;
  justify-content: center;
}

.project-switcher {
  margin-top: -80px;
  padding-top: 24px;
  padding-bottom: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.project-switcher .project-tabs {
  gap: 24px;
  transform: translateY(-70px);
}

.project-helper {
  text-align: center;
  margin: -10px 0 0;
  color: var(--slate);
  font-size: 0.98rem;
  font-weight: 400;
  transform: translateY(-50px);
}

.project-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 24px 0 20px;
}

.project-tab {
  flex: 1;
  border: none;
  background: rgba(245, 247, 247, 0.7);
  border-radius: 999px;
  padding: 10px 22px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--deep-green);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: font-size 0.25s ease, transform 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 16px 28px rgba(15, 31, 34, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 31, 34, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.project-tab::after {
  content: none;
}

.project-tab:hover,
.project-tab:focus-visible {
  transform: scale(1.04);
  box-shadow:
    0 20px 36px rgba(15, 31, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.project-tab.active {
  font-size: 1.875rem;
  transform: none;
  background: rgba(31, 58, 61, 0.9);
  color: var(--off-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 31, 34, 0.22);
  text-shadow: 0 2px 8px rgba(15, 31, 34, 0.5);
}

.project-tab.active[data-target="international-projects"] {
  background-image:
    linear-gradient(135deg, rgba(31, 58, 61, 0.7), rgba(31, 58, 61, 0.35)),
    url("IMG/IP2.svg");
  background-size: cover;
  background-position: center;
}

.project-tab.back-pill {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 6px 12px;
  line-height: 1.1;
  min-height: 0;
  text-align: center;
  background: transparent;
  color: var(--deep-green);
  border: 1px solid var(--deep-green);
  text-shadow: none;
  box-shadow: none;
}

.project-tab.back-pill:hover,
.project-tab.back-pill:focus-visible {
  transform: scale(1.03);
  background: var(--deep-green);
  color: var(--off-white);
}

.project-tab.active[data-target="contracts"] {
  background-image:
    linear-gradient(rgba(15, 31, 34, 0.55), rgba(15, 31, 34, 0.55)),
    url("CONTRACTS/contracts2.svg");
  background-size: cover;
  background-position: center;
  color: var(--off-white);
  text-shadow: 0 2px 10px rgba(15, 31, 34, 0.75);
}


.project-panels {
  display: block;
}

.project-panel {
  display: none;
}

.project-panel.active {
  display: block;
}

#projects-list {
  scroll-margin-top: 120px;
}

.project-item {
  position: relative;
  display: block;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(15, 31, 34, 0.12);
  background: rgba(245, 247, 247, 0.65);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  overflow: hidden;
  color: inherit;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.project-item:hover {
  transform: scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 31, 34, 0.18);
  color: var(--off-white);
  background-image:
    linear-gradient(135deg, rgba(31, 58, 61, 0.7), rgba(31, 58, 61, 0.35)),
    url("IMG/IP2.svg");
  background-size: cover;
  background-position: center;
}

.contract-item:hover {
  background-image: none;
  background-color: var(--deep-green);
}

.project-thumb-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
}

.project-thumb-wrap::after {
  content: none;
}

.project-item h3 {
  margin: 0 0 8px;
}

.project-card-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
}

.project-card-title strong {
  font-weight: 500;
}

.project-card-title.centered {
  align-items: center;
  text-align: center;
}


.project-card-line {
  width: 52px;
  height: 2px;
  background: var(--deep-green);
}

.project-card-definition {
  font-weight: 400;
  color: var(--slate);
  font-size: 0.95rem;
}

.project-item:hover .project-card-line {
  background: var(--off-white);
}

.project-item:hover .project-card-definition {
  color: var(--off-white);
}

.project-description {
  margin: 0 0 24px;
  line-height: 1.7;
  color: var(--slate);
  max-width: 760px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.back-link {
  margin-top: 32px;
  display: inline-flex;
}

.project-link-muted {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(15, 31, 34, 0.2);
  font-size: 0.85rem;
  color: var(--slate);
}

.project-page .project-header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.project-hero {
  position: relative;
  margin: 24px -6vw 6px;
  padding: 120px clamp(24px, 4vw, 72px);
  border-radius: 0;
  background: rgba(245, 247, 247, 0.55);
  border: none;
  box-shadow:
    0 18px 40px rgba(15, 31, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("IMG/IP2.svg") no-repeat center;
  background-size: cover;
  opacity: 1;
  z-index: 0;
}

.contract-hero::before {
  background: url("CONTRACTS/contracts2.svg") no-repeat center;
  background-size: cover;
}

.contract-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 31, 34, 0.6);
  z-index: 1;
  pointer-events: none;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.project-hero-content h1 {
  margin: 0;
  color: var(--off-white);
}

.contract-hero .project-hero-content h1,
.contract-hero .project-hero-sub,
.contract-hero .project-ticker .ticker-text {
  color: var(--off-white);
}

.contract-hero + .project-page .project-panel-media {
  align-items: center;
}

.contract-hero + .project-page .project-flip-front {
  align-items: center;
  justify-content: center;
}

.contract-hero + .project-page .project-flip-front .project-logo-image {
  align-self: center;
  margin: 0;
  width: 80%;
  max-width: 80%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: none;
  border-radius: 0;
  background: transparent;
}

.project-hero:not(.contract-hero) + .project-page .project-flip-front {
  align-items: flex-start;
}

.project-hero:not(.contract-hero) + .project-page .project-flip-front .project-logo-image {
  align-self: flex-start;
  margin: 0;
  max-height: clamp(140px, 22vh, 220px);
  object-fit: contain;
}


.project-ticker {
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}

.project-hero .project-ticker.top {
  top: 8px;
}

.project-hero .project-ticker.bottom {
  bottom: 8px;
}

.project-hero .ticker-track {
  animation-duration: 34s;
}
.project-ticker .ticker-text {
  color: var(--off-white);
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  position: relative;
  top: 0;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(200px, 240px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.project-page .project-detail {
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-logo-card {
  display: grid;
  place-items: center;
  min-height: 210px;
  border-radius: 22px;
  border: 1px solid rgba(245, 247, 247, 0.6);
  color: var(--slate);
  padding: 16px;
  text-align: center;
  background: rgba(245, 247, 247, 0.5);
  box-shadow:
    0 18px 32px rgba(15, 31, 34, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.project-logo-slot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 8px;
}

.project-logo-image {
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(15, 31, 34, 0.2);
  border: none;
}

.project-logo-hero {
  max-height: 1274px;
}

.project-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: 24px;
  align-items: stretch;
}

.project-meta-inline {
  margin-bottom: 20px;
}

.project-detail .project-panel {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 28px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-detail .project-panel-text {
  gap: 16px;
  background: var(--off-white);
}

.project-info-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.project-info-body h2 {
  margin-top: 0;
}

.project-detail .project-panel-media {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: transparent;
  border-color: transparent;
  padding: 16px;
}

.project-detail .project-panel-media .project-logo-image {
  align-self: flex-start;
  margin: -148px auto 0;
  width: 100%;
  max-width: 100%;
}

.project-flip-card {
  width: 100%;
  flex: 1;
  height: 100%;
  max-width: none;
  perspective: 1200px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-flip-card:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 36px rgba(15, 31, 34, 0.22);
}

.project-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.project-flip-card.flipped .project-flip-inner {
  transform: rotateY(-180deg);
}

.project-flip-hover:hover .project-flip-inner {
  transform: rotateY(-180deg);
}

.project-flip-front,
.project-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
}

.project-flip-back {
  border-radius: 18px;
}

.project-flip-front {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  background: var(--deep-green);
  border-radius: 18px;
  border: 1px solid rgba(15, 31, 34, 0.35);
  overflow: hidden;
  position: relative;
  height: 100%;
}

.project-flip-front .project-logo-image {
  margin: 0;
  width: 72%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: 72%;
  max-height: none;
  box-shadow: none;
  border-radius: 24px;
  background: var(--off-white);
  border: none;
  display: block;
  align-self: flex-start;
  position: relative;
  flex: 0 0 auto;
}

.project-flip-back {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(31, 58, 61, 0.92);
  color: var(--off-white);
  text-align: center;
  font-family: \"IBM Plex Sans\", system-ui, sans-serif;
  font-weight: 500;
  transform: rotateY(180deg);
}

.project-flip-card:hover .project-card-line {
  background: var(--off-white);
}

.project-flip-card:hover .project-card-definition {
  color: var(--off-white);
}

.project-hero-sub {
  margin: 12px 0 0;
  font-size: 1.1rem;
  color: var(--off-white);
}

.project-intro {
  margin: 0 0 16px;
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.7;
}
.project-flip-back span {
  line-height: 1.4;
}
.project-logo-placeholder {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

.project-meta-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.project-meta-inline {
  margin-top: 12px;
}

.project-meta-list div {
  display: grid;
  gap: 6px;
}

.project-meta-list dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--accent);
  margin: 0;
}

.project-meta-list dd {
  margin: 0;
  color: var(--slate);
}

.project-body h1 {
  margin: 0 0 16px;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0;
}

.profile-meta-grid .profile-bio h2 {
  margin-top: 0;
}

.project-grant {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 58, 61, 0.08);
  color: var(--deep-green);
  font-size: 0.85rem;
}
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.project-page .project-meta-grid {
  display: none;
}

.project-meta-item {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: #ffffff;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.news-date {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  padding: 36px 6vw 48px;
  border-top: 1px solid rgba(31, 58, 61, 0.12);
  background: var(--deep-green);
  color: var(--off-white);
}

.site-footer h2 {
  margin: 0 0 6px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  text-align: right;
  color: var(--off-white);
  align-items: center;
  justify-items: end;
}

.footer-umu {
  width: 384px;
  height: auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo img {
  width: 160px;
  height: auto;
}


.footer-meta {
  color: rgba(245, 247, 247, 0.8);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 16px 0;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    text-align: left;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .quicklink {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
    width: 100%;
  }

  .quicklink-title {
    flex-basis: auto;
  }

  .quicklink-wrap {
    overflow: visible;
  }

  .quicklink-reveal {
    position: static;
    opacity: 1;
    transform: none;
    width: 100%;
    justify-content: flex-start;
    padding: 12px 0 0;
    pointer-events: auto;
  }

  .quicklink-link {
    pointer-events: auto;
  }

  .research-lines-grid {
    grid-template-columns: 1fr;
  }

  .research-panel {
    grid-template-columns: 1fr;
  }

  .research-panel.active {
    position: static;
  }

  .research-image {
    width: 100%;
    height: 160px;
  }

  .research-panel.icon-panel {
    grid-template-columns: 1fr;
  }

  .research-icon-big {
    margin: 0 auto;
  }

  .publications-controls {
    grid-template-columns: 1fr;
  }

  .outreach-controls {
    grid-template-columns: 1fr;
  }

  .outreach-item {
    grid-template-columns: 1fr;
  }

  .outreach-actions,
  .outreach-links {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .logo-name {
    letter-spacing: 0.12rem;
  }

  .logo-image {
    width: 120px;
  }
}
.about {
  scroll-margin-top: 120px;
}
.publications-stack {
  scroll-margin-top: 120px;
}
.news-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
  position: relative;
}

.news-ticker {
  background: transparent;
}

.news-ticker .ticker-text {
  color: var(--mist);
}
