/* =========================================
   Layout primitives
   Containers, header, navigation, sections,
   grids and footer scaffolding
========================================= */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  margin-bottom: 0;
  backdrop-filter: blur(10px);
  background: linear-gradient(340deg, #1c7fa1 0%, #10002b 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(var(--scroll-progress, 0%), 100%);
  max-width: 100%;
  height: 3.8px;
  background: #0089f3;
  transition: width 0.08s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  background: transparent;
  color: var(--text);
  border: 2.5px solid #2196f3;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-toggle:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.nav-toggle__icon {
  font-size: 1.2rem;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 1.15rem;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #e0e4eb;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 220ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: width 260ms cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav a:hover {
  color: #2196f3;
}

.nav a:hover::after {
  width: 100%;
}

.nav a[aria-current="page"] {
  color: #fff;
}

.nav a[aria-current="page"]::after {
  left: 50%;
  bottom: -0.6rem;
  width: 70%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(94, 117, 255, 0.95),
    rgba(46, 205, 222, 0.95)
  );
  transform: translateX(-50%);
}

.nav a[aria-current="page"]:hover {
  color: #fff;
}

.section {
  margin: 40px 0 40px;
  padding: 8px 0 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  font-family: "Raleway", sans-serif;
  text-wrap: balance;
}

.section-foot {
  margin-top: 2rem;
  text-align: center;
}

.section[id] {
  scroll-margin-top: 9rem;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 12px;
}

.grid.two {
  grid-template-columns: 1fr;
  justify-items: center;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.grid.four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}

.grid.team {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
}

/* =========================================
   Section / component layout blocks
========================================= */

.grid.team .card {
  max-width: 320px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.avatar {
  width: 240px;
  height: 240px;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar img {
  width: 101%;
  height: 100%;
  object-fit: cover;
}

.person:hover .avatar {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.person-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.35rem;
}

.person-links a {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.92rem;
}

.eventlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.25);
}

.event-date {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(124, 92, 255, 0.15);
  padding: 0.6rem 0.4rem;
  display: grid;
  place-items: center;
}

.event-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.project {
  display: block;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.project:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 229, 157, 0.35);
}

.card.project h3 {
  margin: 0.3rem 0 0.25rem;
}

.card.project p {
  margin: 0;
}

.video-embed {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border: 1px solid transparent;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)) padding-box,
    linear-gradient(135deg, #332929, #cfcfcf, #9a9a9a, #d3caca) border-box;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(900px 300px at 10% 0%, rgba(124, 92, 255, 0.25), transparent 50%),
    radial-gradient(700px 260px at 90% 20%, rgba(46, 229, 157, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(17, 21, 38, 0.92), rgba(15, 19, 34, 0.72));
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.press-section {
  position: relative;
}

.press-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

@media (max-width: 1080px) {
  .header-inner {
    padding: 1.5rem 0;
  }

  .section {
    margin: 36px 0 64px;
  }

  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .container {
    width: min(var(--container), calc(100% - 1.5rem));
  }

  .header-inner {
    padding: 1rem 0;
  }

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

  .nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(320px, calc(100vw - 1.5rem));
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin-right: 0;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 19, 34, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s ease;
  }

  .nav a {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
  }

  .nav a::after {
    display: none;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav a[aria-current="page"] {
    color: #fff;
    border-left: 3px solid rgba(46, 205, 222, 0.9);
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-checkbox:checked ~ .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    margin: 36px 0 56px;
  }

  .section[id] {
    scroll-margin-top: 7rem;
  }

  .section-head h2 {
    font-size: 1.8rem;
    letter-spacing: 0.28em;
  }
}

@media (max-width: 900px) {
  .press-head {
    margin-bottom: 2rem;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--container), calc(100% - 1rem));
  }

  .section {
    margin: 44px 0 44px;
    padding: 4px 0 12px;
  }

  .section-head {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  .section-head h2 {
    font-size: 1.55rem;
    letter-spacing: 0.18em;
  }

  .grid.three,
  .grid.four,
  .grid.team {
    grid-template-columns: 1fr;
  }

  .grid.four {
    gap: 1rem;
  }
}
