@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;
}

/* 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;
}

/* Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
  z-index: 10;
  margin: 40px 0 0 0;
}

.nav-group {
  --nav-duration: 0.6s;
  display: flex;
  list-style: none;
  align-items: center;
  gap: 4vw;
  position: relative;
}

.nav-group li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-group a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 16px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  transition: color var(--nav-duration) cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-group a.active-text {
  color: #fff;
}

/* 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;
}

/* Sliding Navigation Rectangle */
.nav-sliding-rect {
  position: absolute;
  z-index: 0;
  transition: all var(--nav-duration) cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  border-radius: 8px;
}

.nav-sliding-rect.visible {
  opacity: 1;
  transform: scale(1);
}

/* Hide old nav-circle elements */
.nav-circle {
  display: none !important;
}

/* 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%;
  aspect-ratio: 1/1.1;
  object-fit: cover;
  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;
}

.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;
}

/* Connect Page Specifics */
.connect-main {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 120px;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.connect-col-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.connect-col-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 200px;
}

.connect-heading {
  font-family: var(--font-heading);
  color: var(--color-connect);
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 24px;
  line-height: 1.1;
}

.connect-link {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 24px;
  transition: opacity 0.3s ease;
}

.connect-link:hover {
  opacity: 0.6;
}

.connect-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  max-width: 600px;
  margin: 0;
  text-align: inherit;
  line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-group {
    gap: 4vw;
  }

  .nav-group.left-links {
    padding: 0 4vw 0 0;
  }

  .nav-group.right-links {
    padding: 0 0 0 4vw;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .drawer-content {
    padding: 60px 24px 30px 24px;
  }

  header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
  }

  .logo-container {
    position: relative;
  }

  .nav-group.left-links,
  .nav-group.right-links {
    justify-content: center;
    gap: 30px;
    padding: 0;
  }

  .cluster-nav {
    gap: 24px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .cluster-nav::-webkit-scrollbar {
    display: none;
  }

  .cluster-btn {
    white-space: nowrap;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .connect-col-right {
    margin-top: 0;
    text-align: left;
    align-items: flex-start;
  }
}

/* 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;
}

.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;
}

/* Connect Page Specifics */
.connect-main {
  width: 100%;
  padding-top: 80px;
  padding-bottom: 120px;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

.connect-col-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.connect-col-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 200px;
}

.connect-heading {
  font-family: var(--font-heading);
  color: var(--color-connect);
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 24px;
  line-height: 1.1;
}

.connect-link {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 24px;
  transition: opacity 0.3s ease;
}

.connect-link:hover {
  opacity: 0.6;
}

.connect-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 24px);
  max-width: 600px;
  margin: 0;
  text-align: inherit;
  line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-group {
    gap: 4vw;
  }

  .nav-group.left-links {
    padding: 0 4vw 0 0;
  }

  .nav-group.right-links {
    padding: 0 0 0 4vw;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  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;
  }

  .nav-group.left-links,
  .nav-group.right-links {
    justify-content: center;
    gap: 30px;
    padding: 0;
  }

  .manifesto-title {
    margin-bottom: -5px;
    margin-top: 100px;
  }

  .cluster-nav {
    display: none;
  }

  .cluster-mobile-select-wrapper {
    display: block;
    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;
  }

  .connect-grid {
    grid-template-columns: 1fr;
    gap: 80px;
  }

  .connect-col-right {
    margin-top: 0;
    text-align: left;
    align-items: flex-start;
  }
}

/* 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: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);
}

@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);
}

@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;
  }
}