@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,800&family=Host+Grotesk:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  --bg-main: #FEFEFE;
  --text-main: #1F1F1F;
  --color-home: #45C4A0;
  --color-about: #E31B54;
  --color-people: #F6911D;
  --color-research: #5E2BFF;
  --color-events: #BEF264;
  --color-collaborations: #00B2FE;
  --color-connect: #D946EF;

  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Host Grotesk", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 32px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: scroll;
}

::selection {
  background-color: var(--text-main);
  color: white;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, select):focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 4px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(40px, 6vw, 74px);
  text-align: center;
  margin-bottom: 24px;
}

p {
  font-size: clamp(18px, 2vw, 32px);
  text-align: center;
  max-width: 862px;
  margin: 0 auto 40px auto;
  color: var(--text-main);
  text-wrap: pretty;
}

/* Layout */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 10;
  margin: 40px 0 0 0;
}

/* The logo */
.logo-container {
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
}

.logo-img {
  height: clamp(40px, 6vw, 60px);
  width: auto;
  display: block;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-section {
  text-align: center;
  margin-top: -10vh;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-section h1 {
  font-size: clamp(36px, 5vw, 64px);
  background: linear-gradient(-45deg,
      var(--color-home),
      var(--color-about),
      var(--color-people),
      var(--color-research));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: organicGradient 12s ease infinite;
}

@keyframes organicGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.hero-section p {
  font-size: clamp(16px, 1.8vw, 24px);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons / Links */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  transition: transform 0.3s ease, color 0.3s ease;
  margin-top: 20px;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 4px;
  bottom: -6px;
  left: 0;
  background-color: var(--text-main);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1), background-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  color: var(--color-about);
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
  background-color: var(--color-about);
}

/* Page transitions */
.page-transition {
  animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* About Page Specifics */
.about-main {
  display: block;
  width: 100%;
  padding-top: 40px;
}

.about-page-header {
  text-align: center;
  margin-bottom: 80px;
}
.about-page-header h1 {
  margin-bottom: 0;
}

.about-hero {
  padding-bottom: 200px;
  text-align: left;
  width: 100%;
}

.about-hero p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  text-align: left;
  max-width: 900px;
  margin: 0;
  font-weight: 500;
  color: var(--text-main);
}

.manifesto-wrapper {
  width: 100%;
}

.manifesto-title {
  color: var(--color-about);
  font-family: var(--font-heading);
  font-size: clamp(60px, 8vw, 120px);
  margin-bottom: -18px;
  /* Pulled down to touch the red background exactly */
  line-height: 0.8;
  text-align: left;
  position: relative;
  z-index: 2;
}

.manifesto-section {
  background-color: var(--color-about);
  color: white;
  padding-top: 60px;
  padding-bottom: 120px;
  width: 100%;
  text-align: left;
}

.manifesto-intro {
  font-size: 16px;
  max-width: 900px;
  margin-left: 0;
  margin-bottom: 60px;
  text-align: left;
  line-height: 1.6;
  color: white;
}

.manifesto-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.manifesto-item {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.8s ease-out, transform 0.8s ease-out;
  transform: translateY(20px);
  margin: 0;
  text-align: left;
}

.manifesto-item.revealed {
  color: rgba(255, 255, 255, 1);
  transform: translateY(0);
}

.quote-section {
  padding: 100px 0;
  text-align: center;
}

.quote-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 40px);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.4;
  color: var(--text-main);
}

.brush-underline {
  height: 8px;
  width: 140px;
  background-color: var(--color-about);
  margin: 20px auto 0;
  border-radius: 4px;
}

.vision-section {
  padding-top: 40px;
  padding-bottom: 100px;
  text-align: center;
}

.vision-section h3 {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 24px;
}

.vision-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* People Page Specifics */
.people-main {
  display: block;
  width: 100%;
  padding-top: 40px;
}

.team-header {
  text-align: center;
  margin-bottom: 80px;
}

.team-header h1 {
  margin-bottom: 0;
}

.team-header h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.member-card {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  background-color: #F0F0F0;
  transition: background-color 0.4s ease;
}

.member-card:hover,
.member-card.active {
  z-index: 10;
  background-color: var(--color-people);
  /* Orange */
}

.member-img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%);
  margin-bottom: 30px;
  transition: filter 0.4s ease;
}

.member-card:hover .member-img,
.member-card.active .member-img {
  filter: grayscale(0%);
}

.member-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
  align-items: flex-start;
}

.member-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
  color: var(--text-main);
  text-align: left;
  transition: color 0.4s ease;
  width: 100%;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 16px 0;
  line-height: 1.1;
  text-align: left;
  width: 100%;
}

.member-bio {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 20px 0;
  /* overrides p tag global margin: auto */
  text-align: left;
  width: 100%;
}

/* Base text color overrides for active/hover states */
.member-card:hover .member-title,
.member-card:hover .member-bio,
.member-card:hover .member-socials a,
.member-card:hover .btn-read-more,
.member-card.active .member-title,
.member-card.active .member-bio,
.member-card.active .member-socials a,
.member-card.active .btn-read-more {
  color: var(--text-main);
}

.btn-read-more {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  border: none;
  border-bottom: 2px solid currentColor;
  padding: 0 0 4px 0;
  margin: auto 0 40px 0;
  /* anchors to the bottom */
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: left;
  align-self: flex-start;
}

.btn-read-more:hover {
  opacity: 0.6;
  transform: translateX(4px);
}

.member-socials {
  display: flex;
  gap: 20px;
}

.member-socials a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}

.member-socials a:hover {
  opacity: 0.6;
}

/* Slide-out Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.member-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 600px;
  height: 100vh;
  background-color: var(--bg-main);
  z-index: 101;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.member-drawer.active {
  right: 0;
}

.drawer-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease;
}

.drawer-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.drawer-content {
  padding: 80px 60px 60px 60px;
  overflow-y: auto;
  height: 100%;
  text-align: left;
}

.drawer-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  display: block;
  margin-bottom: 8px;
}

.drawer-name {
  font-family: var(--font-heading);
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 40px;
}

.drawer-section {
  margin-bottom: 40px;
}

.drawer-section h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--color-people);
}

.drawer-section p,
.drawer-bio-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-main);
  text-align: left;
  margin: 0;
  max-width: 100%;
}

.drawer-bio-text {
  text-wrap: wrap;
  /* allow long bio wrapping normally */
}

.drawer-socials {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.drawer-socials a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Research Page Specifics */
.research-main {
  display: block;
  width: 100%;
  padding-top: 40px;
}

.research-page-header {
  text-align: center;
  margin-bottom: 80px;
}

.research-page-header h1 {
  margin: 0;
}

.cluster-mobile-select-wrapper {
  display: none;
}

.cluster-mobile-select {
  width: 100%;
  padding: 16px;
  padding-right: 40px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--text-main);
  border-radius: 8px;
  background: var(--bg-main) url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231F1F1F%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") no-repeat right 16px center;
  background-size: 12px auto;
  color: var(--text-main);
  appearance: none; /* removes default browser styling for select */
  outline: none;
  text-transform: uppercase;
}

.cluster-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.cluster-btn {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.cluster-btn.active {
  opacity: 1;
}

.cluster-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--color-research);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cluster-btn.active::after {
  transform: scaleX(1);
}

.cluster-content {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
  width: 100%;
}

.cluster-content.active {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.cluster-header {
  flex: 0 0 320px;
  text-align: left;
  position: sticky;
  top: 40px;
  padding-bottom: 40px;
}

.cluster-header h2 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--color-research);
  line-height: 1;
}

.cluster-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
  color: var(--text-main);
  opacity: 0.9;
}

.focus-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border: 1.5px solid var(--color-research);
  color: var(--color-research);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.articles-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.article-card {
  background-color: #F8F8F8;
  padding: 24px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.article-card:hover {
  background-color: #F0F0F0;
  border-left-color: var(--color-research);
  transform: translateY(-4px);
}

.article-year {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-research);
  margin-bottom: 8px;
}

.article-title {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 8px;
  font-weight: 700;
}

.article-title a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.article-title a:hover {
  opacity: 0.7;
}

.article-journal {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 12px;
  opacity: 0.8;
}

.article-authors {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
  margin-top: auto;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  width: 100%;
  margin-top: 60px;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.6;
  margin: 0 auto;
  max-width: none;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .drawer-content {
    padding: 60px 24px 30px;
  }

  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin: 20px 0 0 0;
  }

  .logo-container {
    position: relative;
  }

  .manifesto-title {
    margin-bottom: -5px;
    margin-top: 100px;
  }

  .cluster-nav {
    display: none;
  }

  .cluster-mobile-select-wrapper {
    display: block;
    margin-bottom: 40px;
  }

  .research-page-header {
    margin-bottom: 40px;
  }

  .cluster-content.active {
    flex-direction: column;
    gap: 40px;
  }

  .cluster-header {
    flex: none;
    position: relative;
    top: 0;
    padding-bottom: 20px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

}

/* Footer */
.site-footer {
  padding: 40px 0;
  text-align: center;
  width: 100%;
  margin-top: 60px;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.6;
  margin: 0 auto;
  max-width: none;
}

/* Connect Page New Billboard Design */
.connect-main-new {
  width: 100%;
  min-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.connect-billboard {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12vh;
}

.billboard-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.billboard-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 2vw, 20px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 24px;
}

.billboard-link {
  font-family: var(--font-heading);
  font-size: clamp(36px, 7vw, 120px);
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1;
  position: relative;
  display: inline-block;
  z-index: 1;
}

.billboard-link::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: -2%;
  width: 104%;
  height: 30%;
  background-color: var(--color-connect);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.billboard-item:nth-child(2) .billboard-link::after {
  background-color: var(--color-people);
}

.billboard-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 768px) {
  .connect-billboard {
    gap: 80px;
  }
  .billboard-link {
    font-size: clamp(20px, 8vw, 36px);
    word-break: break-all;
  }
}

/* Home Page Specifics & Event Spotlight */
.home-main {
  display: block;
  width: 100%;
}

.home-main .hero-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin-top: 40px;
  position: relative;
  padding-bottom: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
}

.events-spotlight {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto 100px auto;
  padding: 0;
}

.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  width: 100%;
}

.events-label {
  font-family: var(--font-heading);
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 800;
  color: var(--color-events);
  line-height: 0.8;
  text-transform: uppercase;
  margin: 0;
}

.btn-all-events {
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-events);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-all-events:hover {
  color: var(--color-events);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Option 2: Floating Event Pill */
.events-pill-wrapper {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.events-pill {
  display: flex;
  align-items: center;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-pill:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 1);
}

.pill-badge {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background-color: var(--color-home);
  color: white;
  border-radius: 100px;
  margin-right: 15px;
}

.pill-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin-right: 15px;
}

.pill-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--text-main);
  color: white;
  border-radius: 50%;
  font-size: 18px;
  transition: transform 0.4s ease;
}

.events-pill:hover .pill-arrow {
  transform: translateX(5px);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Option 3: Hero Action Secondary Button */
.btn-secondary {
  border-bottom: 2px solid var(--color-home) !important;
}

/* --- Hamburger Overlay & Accordion Menu --- */

/* Fixed Header Layout when Menu is Open */
body.menu-open header {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0 40px;
  box-sizing: border-box;
  z-index: 10000;
  pointer-events: none;
}

body.menu-open header .logo-container {
  pointer-events: auto;
}

body.menu-open header .logo-img {
  filter: brightness(0) invert(1); /* Logo becomes white against overlay */
  pointer-events: auto;
}

/* Menu Toggle Button in Header */
.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  z-index: 10000;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  border-radius: 8px;
  pointer-events: auto;
}

.menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Vertical 3-line columns icon */
.menu-btn-burger {
  display: flex;
  width: 18px;
  height: 14px;
  position: relative;
}

.menu-btn-burger span {
  display: block;
  width: 2px;
  height: 14px;
  background-color: var(--text-main);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              left 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.3s ease,
              background-color 0.3s ease;
  position: absolute;
  top: 0;
}

.menu-btn-burger span:nth-child(1) {
  left: 0;
}

.menu-btn-burger span:nth-child(2) {
  left: 8px;
}

.menu-btn-burger span:nth-child(3) {
  left: 16px;
}

/* Active open menu state morphing */
body.menu-open .menu-btn {
  color: white;
}

body.menu-open .menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

body.menu-open .menu-btn-text {
  display: none; /* Hide text, showing only the cross */
}

body.menu-open .menu-btn-burger span {
  background-color: white;
}

/* Morph 3 vertical lines to a perfect diagonal cross (X) */
body.menu-open .menu-btn-burger span:nth-child(1) {
  left: 8px;
  transform: rotate(45deg);
}

body.menu-open .menu-btn-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleY(0);
}

body.menu-open .menu-btn-burger span:nth-child(3) {
  left: 8px;
  transform: rotate(-45deg);
}

/* Full screen menu overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
  overflow: hidden;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-columns {
  display: flex;
  width: 100%;
  height: 100%;
}

.menu-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--col-color);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
  outline: none;
  border: none;
}

.menu-column:focus-visible {
  outline: 4px solid #fff;
  outline-offset: -8px;
}

.menu-column:hover {
  flex: 1.4;
  filter: brightness(1.05);
}

/* Subtle compress of non-hovered columns */
.menu-columns:hover .menu-column:not(:hover) {
  flex: 0.9;
}

.menu-column.active {
  flex: 1.25;
}

.menu-column-name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3.2vw, 40px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(-90deg);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  display: inline-block;
  letter-spacing: 0.05em;
}

.menu-column:hover .menu-column-name {
  color: #ffffff;
  transform: rotate(-90deg) scale(1.05);
}

.menu-column.active .menu-column-name {
  color: #ffffff;
}

/* Staggered entrance animation for columns when menu opens */
.menu-overlay.active .menu-column {
  animation: slideColumnUp 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
}

.menu-overlay.active .menu-column:nth-child(1) { animation-delay: 0.04s; }
.menu-overlay.active .menu-column:nth-child(2) { animation-delay: 0.08s; }
.menu-overlay.active .menu-column:nth-child(3) { animation-delay: 0.12s; }
.menu-overlay.active .menu-column:nth-child(4) { animation-delay: 0.16s; }
.menu-overlay.active .menu-column:nth-child(5) { animation-delay: 0.20s; }
.menu-overlay.active .menu-column:nth-child(6) { animation-delay: 0.24s; }
.menu-overlay.active .menu-column:nth-child(7) { animation-delay: 0.28s; }

@keyframes slideColumnUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Responsive Menu Layout (mobile screens) */
@media (max-width: 768px) {
  body.menu-open header {
    top: 0;
    padding: 20px 20px;
    justify-content: flex-end;
  }

  body.menu-open header .logo-container {
    display: none;
  }

  .menu-columns {
    flex-direction: column;
  }

  .menu-column {
    width: 100%;
    height: auto;
    flex: 1;
    transition: flex 0.5s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
  }

  .menu-column:hover {
    flex: 1.35;
  }

  .menu-columns:hover .menu-column:not(:hover) {
    flex: 0.9;
  }

  .menu-column-name {
    transform: none;
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 0;
  }

  .menu-column:hover .menu-column-name {
    transform: scale(1.03);
  }
}

/* --- Collaborations Page --- */

.collaborations-main {
  display: block;
  width: 100%;
  padding-top: 40px;
}

.collaborations-header {
  text-align: center;
  margin-bottom: 80px;
}

.collaborations-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.collaborations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.collab-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #F8F8F8;
  padding: 45px 40px;
  text-decoration: none;
  color: var(--text-main);
  border-left: 8px solid var(--color-collaborations);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.collab-card:hover {
  background-color: var(--color-collaborations);
  color: #fff;
  transform: translateY(-8px);
}

.collab-info {
  flex: 1;
  text-align: left;
}

.collab-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px 0;
  text-align: left;
  color: inherit;
}

.collab-partner {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  text-align: left;
  opacity: 0.8;
  color: inherit;
}

.collab-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 30px;
}


.collab-arrow {
  font-size: 32px;
  font-weight: 300;
  transition: transform 0.4s ease;
}

.collab-card:hover .collab-arrow {
  transform: translateX(8px);
}

.collab-card--inactive,
.collab-card--inactive:hover {
  background-color: #F8F8F8;
  color: var(--text-main);
  cursor: default;
  transform: none;
}

@media (max-width: 992px) {
  .collaborations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .collaborations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collab-card {
    padding: 35px 30px;
  }
}

/* --- Events Page --- */

.events-main {
  display: block;
  width: 100%;
  padding-top: 40px;
}

.events-page-header {
  text-align: center;
  margin-bottom: 80px;
}

.events-page-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.events-page-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #F8F8F8;
  padding: 45px 40px;
  text-decoration: none;
  color: var(--text-main);
  border-left: 8px solid var(--color-events);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  text-align: left;
}

.events-page-card:hover {
  background-color: var(--color-events);
  color: var(--text-main);
  transform: translateY(-8px);
}

.events-card-info {
  display: flex;
  flex-direction: column;
}

.events-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.events-card-type {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border: 1.5px solid var(--text-main);
  color: var(--text-main);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.events-page-card:hover .events-card-type {
  background-color: var(--text-main);
  color: var(--color-events);
  border-color: var(--text-main);
}

.events-card-date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: #666;
  transition: all 0.4s ease;
}

.events-page-card:hover .events-card-date {
  color: var(--text-main);
}

.events-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  text-align: left;
}

.events-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0;
  transition: all 0.4s ease;
  text-align: left;
}

.events-page-card:hover .events-card-desc {
  color: #2F2F2F;
}

.events-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
}

.events-card-place {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #666;
  transition: all 0.4s ease;
}

.events-page-card:hover .events-card-place {
  color: var(--text-main);
}

.events-card-arrow {
  font-size: 20px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.events-page-card:hover .events-card-arrow {
  transform: translateX(6px);
}

.events-page-card--inactive,
.events-page-card--inactive:hover {
  background-color: #F8F8F8;
  color: var(--text-main);
  cursor: default;
  transform: none;
}

.events-page-card--inactive:hover .events-card-type {
  background-color: transparent;
  color: var(--text-main);
}

.events-page-card--inactive:hover .events-card-date,
.events-page-card--inactive:hover .events-card-place {
  color: #666;
}

.events-page-card--inactive:hover .events-card-desc {
  color: #555;
}

@media (max-width: 1024px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .events-page-card {
    padding: 35px 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Call for Extended Abstracts --- */

.cfp-announcement {
  display: grid;
  grid-template-columns: minmax(150px, 0.75fr) minmax(280px, 2fr) auto auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 24px 28px;
  margin: 16px 0 0;
  background-color: var(--color-research);
  color: #FFFFFF;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.cfp-announcement:hover {
  background-color: #4C1FE0;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 31, 31, 0.14);
}

.cfp-announcement-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.cfp-announcement-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.cfp-announcement-deadline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 100px;
  background-color: var(--color-events);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.cfp-announcement-arrow {
  font-family: var(--font-heading);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.cfp-announcement:hover .cfp-announcement-arrow {
  transform: translateX(7px);
}

.cfp-main {
  display: block;
  width: 100%;
  padding: 40px 0 80px;
}

.cfp-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 90px);
  margin-bottom: 64px;
  background-color: var(--color-research);
  color: #FFFFFF;
}

.cfp-hero::after {
  content: '';
  position: absolute;
  right: clamp(-110px, -5vw, -40px);
  bottom: clamp(-160px, -10vw, -80px);
  width: clamp(240px, 30vw, 440px);
  aspect-ratio: 1;
  border: clamp(36px, 5vw, 72px) solid var(--color-events);
  border-radius: 50%;
  opacity: 0.95;
  pointer-events: none;
}

.cfp-hero > * {
  position: relative;
  z-index: 1;
}

.cfp-eyebrow {
  display: inline-block;
  padding: 8px 13px;
  margin-bottom: 28px;
  border-radius: 100px;
  background-color: var(--color-events);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.cfp-hero h1 {
  max-width: 940px;
  margin: 0 0 28px;
  color: #FFFFFF;
  font-size: clamp(44px, 7vw, 96px);
  line-height: 0.92;
  text-align: left;
  text-wrap: balance;
}

.cfp-subtitle,
.cfp-journal {
  max-width: 840px;
  margin: 0;
  color: #FFFFFF;
  text-align: left;
}

.cfp-subtitle {
  max-width: 760px;
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
}

.cfp-journal {
  max-width: 700px;
  padding-top: 22px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.5;
}

.cfp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  grid-template-areas: 'content sidebar';
  gap: clamp(48px, 7vw, 100px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.cfp-content {
  grid-area: content;
  min-width: 0;
}

.cfp-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 24px;
}

.cfp-sidebar-card {
  padding: 32px;
  background-color: #F8F8F8;
  border-top: 8px solid var(--color-events);
}

.cfp-sidebar-card h2 {
  margin: 0 0 26px;
  font-size: 28px;
}

.cfp-facts {
  margin: 0 0 30px;
}

.cfp-facts div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #DADADA;
}

.cfp-facts div:last-child {
  border-bottom: 1px solid #DADADA;
}

.cfp-facts dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfp-facts dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.cfp-primary-action,
.cfp-secondary-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.cfp-primary-action {
  margin-bottom: 10px;
  background-color: var(--color-events);
  color: var(--text-main);
}

.cfp-secondary-action {
  background-color: var(--color-research);
  color: #FFFFFF;
}

.cfp-primary-action:hover,
.cfp-secondary-action:hover {
  transform: translateX(5px);
}

.cfp-primary-action:hover {
  background-color: var(--text-main);
  color: var(--color-events);
}

.cfp-secondary-action:hover {
  background-color: var(--text-main);
}

.cfp-section {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid #DADADA;
}

.cfp-section:last-child {
  margin-bottom: 0;
}

.cfp-section h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 52px);
  text-align: left;
}

.cfp-section > p,
.cfp-contact p {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
  text-align: left;
}

.cfp-section > p:last-child,
.cfp-contact p:last-child {
  margin-bottom: 0;
}

.cfp-list {
  display: grid;
  gap: 14px;
  padding-left: 24px;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.cfp-list li::marker {
  color: var(--color-research);
}

.cfp-theme-intro {
  margin-bottom: 32px !important;
}

.cfp-theme-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cfp-theme-card {
  padding: 28px;
  background-color: #F8F8F8;
  border-top: 7px solid var(--color-home);
}

.cfp-theme-card:nth-child(4n + 2) {
  border-top-color: var(--color-about);
}

.cfp-theme-card:nth-child(4n + 3) {
  border-top-color: var(--color-people);
}

.cfp-theme-card:nth-child(4n + 4) {
  border-top-color: var(--color-research);
}

.cfp-theme-card h3 {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.15;
  text-align: left;
}

.cfp-theme-card ul {
  display: grid;
  gap: 9px;
  padding-left: 19px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.cfp-theme-card li::marker {
  color: #777777;
}

.cfp-submission-note {
  padding: 24px 26px;
  margin-top: 28px !important;
  background-color: #F8F8F8;
  border-left: 7px solid var(--color-events);
}

.cfp-submission-note a,
.cfp-contact a {
  color: var(--color-research);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cfp-timeline-wrap {
  overflow-x: auto;
}

.cfp-timeline {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.45;
}

.cfp-timeline th,
.cfp-timeline td {
  padding: 17px 16px;
  border-bottom: 1px solid #DADADA;
  text-align: left;
  vertical-align: top;
}

.cfp-timeline th {
  background-color: var(--text-main);
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cfp-timeline td:first-child {
  width: 38%;
  font-weight: 700;
}

.cfp-contact {
  padding: 30px;
  background-color: #F8F8F8;
  border-left: 8px solid var(--color-research);
}

.cfp-contact p {
  font-size: 17px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .cfp-announcement {
    grid-template-columns: minmax(130px, 0.65fr) minmax(240px, 1.6fr) auto;
  }

  .cfp-announcement-deadline {
    grid-column: 1 / 3;
    justify-self: start;
  }

  .cfp-announcement-arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .cfp-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'sidebar'
      'content';
    gap: 60px;
  }

  .cfp-subtitle,
  .cfp-journal {
    max-width: 70%;
  }

  .cfp-sidebar {
    position: static;
  }

  .cfp-sidebar-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    column-gap: 32px;
  }

  .cfp-sidebar-card h2,
  .cfp-facts {
    grid-column: 1;
  }

  .cfp-primary-action,
  .cfp-secondary-action {
    grid-column: 2;
  }

  .cfp-primary-action {
    align-self: end;
  }

  .cfp-secondary-action {
    align-self: start;
  }
}

@media (max-width: 700px) {
  .cfp-announcement {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 58px 24px 24px;
  }

  .cfp-announcement-arrow {
    position: absolute;
    right: 22px;
    bottom: 22px;
  }

  .cfp-main {
    padding-top: 28px;
  }

  .cfp-hero {
    padding: 36px 26px 44px;
    margin-bottom: 40px;
  }

  .cfp-hero::after {
    display: none;
  }

  .cfp-subtitle,
  .cfp-journal {
    max-width: 100%;
  }

  .cfp-hero h1 {
    font-size: clamp(40px, 13vw, 66px);
    line-height: 0.96;
  }

  .cfp-sidebar-card {
    display: block;
    padding: 27px 24px;
  }

  .cfp-theme-grid {
    grid-template-columns: 1fr;
  }

  .cfp-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .cfp-timeline {
    font-size: 15px;
  }

  .cfp-timeline th,
  .cfp-timeline td {
    padding: 14px 10px;
  }

  .cfp-contact {
    padding: 24px;
  }
}
