/* ==========================================================================
   Qiskit Fall Fest 2026 — University of Windsor
   ========================================================================== */

:root {
  /* Palette */
  --ink: #07081a; /* page background */
  --light-blue: #dae5fc;
  --ink-2: #0d0f27; /* alternate section background */
  --panel: #141737; /* cards, panels */
  --panel-2: #1a1e45; /* raised card / hover */
  --line: #262b5c; /* hairlines and borders */
  --text: #31135e; /* primary text */
  --muted: #a2a7ce; /* secondary text */
  --muted-light: #d7d9ed; /* secondary text */
  --violet: #7b4dff; /* primary brand */
  --violet-soft: #b57bff;
  --cyan: #33e1e1; /* accent / active */
  --pink: #ff7eb6; /* accent 2 */

  /* 2026 picks */
  --flamingo: #ffafd2;
  --bright-pink: #ff7eb6;
  --purple: #be95ff;
  --soft-purple: #d4bbff;
  --indigo: #31135e;
  --dark-indigo: #31135e;
  --soft-blue: #dae5fc;
  --medium-blue: #9daede;
  --blue-bird: #4589ff;
  --grey: #878a98;
  --soft-grey: #bac0c6;

  /* Type */
  --font-display:
    "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --shell: 1180px;
  --gutter: 24px;
  --radius: 14px;
  --header-h: 0px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0px);
}

body {
  margin: 0;
  /* min-width: 320px; */
  overflow-x: hidden;
  background: var(--light-blue);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-bird);
  text-decoration: none;
  font-weight: bold;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 600;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--violet-soft);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(123, 77, 255, 0.9);
}
.btn-primary:hover {
  background-color: var(--violet);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

/* ---------- Shared section furniture ---------- */

.section {
  padding: 80px 0 0 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.35em;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.sub-head {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: none;
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s var(--ease);
  transition: transform 0.3s ease;
}
.site-header.is-stuck {
  /* box-shadow: 0 12px 32px -22px #000; */
}
.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  min-height: var(--header-h);
  max-height: 120px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}

.uni-logo {
  /* padding-top: 18px; */
  padding-left: 0;
  height: 7rem;
}

.site-nav {
  margin-top: 0rem;
  margin-left: auto;
}
.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 8px;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.site-nav a:hover {
  color: var(--indigo);
  background: #b5ccf4;
  text-decoration: none;
}
.site-nav a.is-active {
  color: var(--blue-bird);
  font-weight: 600;
  background: #b5ccf4;
}

/* Menu dropdowns */
/* ---- About dropdown (desktop) ---- */
.has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.dropdown-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 8px;
}
.dropdown-toggle svg {
  transition: transform 0.18s var(--ease);
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 208px;
  background: #89abe5;
  border-radius: 10px;
  padding: 6px;
  display: grid;
  gap: 2px;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.16s var(--ease),
    transform 0.16s var(--ease),
    visibility 0.16s var(--ease);
  z-index: 40;
}
.dropdown a {
  font-size: 13.5px;
  white-space: nowrap;
  color: white;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.has-dropdown:focus-within .dropdown-toggle svg,
.has-dropdown:hover .dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: var(--soft-grey);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] {
  transform: translateY(-10px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.3em;
}
.hero h1 .year {
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--violet-soft);
}
.hero-lede {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.8em;
}
.hero-text {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero-details {
  font-size: 1.3em;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.hero-detail {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 40px;
}

.hero-actions a {
  max-width: 200px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-stats dd {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.hero-media-art {
  /* position: relative; */
}

.hero-media img {
  height: 270px;
}

.hero-media figcaption {
  margin-top: 12px;
  text-align: right;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

/* HERO ANIMATION */
/* ---------- Flying flock behind the cloud ---------- */
.hero-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

@media (max-width: 1000px) {
  .hero-media {
    display: none;
  }
}

.flamingo-funny {
  position: absolute;
  bottom: 80px;
  left: 20rem;
  max-height: 200px;
  transform: scaleX(-1);
  display: inline-block;
  animation: flamingo-jump 6s ease-in-out infinite;
}

@keyframes flamingo-jump {
  0%,
  85% {
    transform: scaleX(-1) translateY(0);
  }
  90% {
    transform: scaleX(-1) translateY(-14px);
  }
  95% {
    transform: scaleX(-1) translateY(0);
  }
  100% {
    transform: scaleX(-1) translateY(0);
  }
}
@media (max-width: 1000px) {
  .flamingo-funny {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flamingo-funny {
    animation: none;
  }
  .flamingo-funny {
    transform: scaleX(-1); /* keep the flip even with motion disabled */
  }
}

.hero-cloud {
  width: 70%;
  margin-left: 2.5%;
  position: relative;
  z-index: 1;
  animation: cloud-pulse 4s ease-in-out infinite;
}

@keyframes cloud-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

.hero-cloud-2 {
  width: clamp(200px, 60vw, 340px);
  bottom: 8rem;
  left: clamp(1rem, 8vw, 10rem);
  position: relative;
  z-index: 1;
  transform: scaleX(-1);
  animation: cloud-pulse 6s ease-in-out infinite;
}

.hero-cloud-3 {
  width: clamp(100px, 40vw, 140px);
  bottom: 3.5rem;
  right: 4rem;
  position: absolute;
  z-index: 1;
  animation: none;
  animation: cloud-pulse 1s ease-in-out infinite;
}

.sky-flock {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flyer {
  z-index: 5;
  position: absolute;
  top: var(--top, 20%);
  left: -155%;
  will-change: left;
  animation: flyRight var(--fly-duration, 18s) linear infinite;
  animation-delay: var(--fly-delay, 0s);
}

.flyer.fly-left {
  animation-name: flyLeft;
  right: -115%;
}

.flyer.mirror {
  transform: scaleX(-1);
}

.flyer img,
.flyer svg {
  width: var(--size, 60px);
  height: auto;
  animation: bob var(--bob-duration, 3s) ease-in-out infinite;
  animation-delay: var(--bob-delay, 0s);
}

@keyframes flyRight {
  from {
    left: -15%;
  }
  to {
    left: 115%;
  }
}

@keyframes flyLeft {
  from {
    left: 95%;
  }
  to {
    left: -15%;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .flyer,
  .flyer img,
  .flyer svg {
    animation: none;
  }
}

/* PEEKER */
.peeker {
  position: absolute;
  bottom: var(--peek-bottom, 50%);
  right: var(--peek-left, 20%);
  width: var(--peek-size, 100px);
  animation: peek-cycle var(--peek-duration, 11s) ease-in-out infinite;
  animation-delay: var(--peek-delay, 0s);
}

@media (max-width: 600px) {
  .peeker {
    bottom: 48% !important;
    width: 50px !important;
  }
}

.peeker img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes peek-cycle {
  0%,
  72% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-34%);
  }
  85% {
    transform: translateY(-38%);
  }
  90% {
    transform: translateY(-34%);
  }
  96%,
  100% {
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   About
   ========================================================================== */

.about-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.about-row:hover {
  border-color: var(--violet);
  transform: translateY(-3px);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--cyan);
  background: var(--panel-2);
  transform: translateY(-3px);
}
.card-tag {
  display: block;
  margin-bottom: 14px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.2em;
  color: var(--cyan);
}
.card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.97rem;
}

/* ==========================================================================
   Schedule
   ========================================================================== */

/* ==========================================================================
   Hackathon
   ========================================================================== */

.hack-lede {
  font-size: 1.12rem;
  color: var(--text);
  max-width: 62ch;
}

/* ==========================================================================
   Speakers
   ========================================================================== */

/* ==========================================================================
   People grids (faculty + team)
   ========================================================================== */
.people {
  display: grid;
  gap: 24px;
}

.people-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* align-items: stretch; */
}

.person {
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition:
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.person:hover {
  border-color: var(--cyan);
  background: var(--panel-2);
  transform: translateY(-4px);
}
.person img {
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}
.person h3 {
  font-size: 1.06rem;
  margin-bottom: 0.3em;
}
.person .role {
  margin: 0;
  font-size: 0.87rem;
  color: var(--cyan);
}
.person .org {
  margin: 0.3em 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ==========================================================================
   FAQs
   ========================================================================== */

/* ==========================================================================
   Location
   ========================================================================== */
.location {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 38px;
  align-items: start;
}

.location-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}
.loc-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.loc-block:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.loc-block h4 {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.loc-block address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}
.loc-block p {
  color: var(--muted);
  font-size: 0.97rem;
}
.loc-block strong {
  color: var(--text);
}

.pills li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pills li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
}

.location-map {
  margin: 0;
}
.location-map img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}
.location-map a:hover img {
  border-color: var(--cyan);
}
.location-map figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
}

.location-map iframe {
  width: 100%;
  aspect-ratio: 800 / 520;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease);
}

.location-map:hover iframe {
  border-color: var(--cyan);
}

/* ==========================================================================
   Register band
   ========================================================================== */
/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: 62px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img {
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.2em;
  color: var(--blue-bird);
}
.footer-brand .org {
  color: var(--cyan);
  font-size: 0.93rem;
  margin-bottom: 1em;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.93rem;
}

.footer-col h4 {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-bird);
  margin-bottom: 18px;
}
.footer-col ul {
  display: grid;
  gap: 11px;
}
.footer-col li,
.footer-col a {
  color: var(--muted);
  font-size: 0.93rem;
}
.footer-col a:hover {
  color: var(--cyan);
}

.partner-logos {
  gap: 14px;
}
.partner-logos img {
  width: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.footer-base {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.footer-base p {
  margin: 0;
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--soft-grey);
  border: none;
  border-radius: 50%;
  background: var(--purple);
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s var(--ease),
    border-color 0.2s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover {
  border-color: var(--blue-bird);
  color: var(--blue-bird);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .people-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: grid;
    gap: 8px;
    padding: 18px var(--gutter) 26px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s var(--ease),
      transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .site-nav a {
    padding: 13px 14px;
    font-size: 1rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    /* gap: 44px; */
  }
  .hero-media {
    order: 1;
  }

  .hack {
    grid-template-columns: 1fr;
  }
  .hack-panel {
    position: static;
  }
  .location {
    grid-template-columns: 1fr;
  }

  /* ---- About dropdown (mobile): always expanded ---- */
  .has-dropdown {
    flex-direction: column;
    align-items: stretch;
  }
  .dropdown-toggle {
    display: none; /* no toggle needed, submenu is always visible */
  }
  .dropdown {
    position: static;
    min-width: 0;
    background: none;
    border: none;
    padding: 2px 0 2px 14px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    display: grid;
    gap: 2px;
  }
  .dropdown a {
    font-size: 0.92rem;
    color: var(--muted);
    padding: 10px 14px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 24px 0;
  }
  .section-head {
    margin-bottom: 38px;
  }
  .cards-3 {
    grid-template-columns: 1fr;
  }
  .about-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .people-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  :root {
    --gutter: 18px;
  }
  .people-3 {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .to-top,
  .hero-grid,
  .hero-media,
  body {
    background: #fff;
    color: #000;
  }
}

/* TEAM CARDS */
.team-member {
  width: 100%;
  /* height: 100%; */
  /* background-color: red; */
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  align-items: center;
  border: 1px black solid;
  border-radius: 10%;
}

.team-member-photo {
  margin-top: 24px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgb(156, 186, 186);
}

.team-member-photo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  display: block;
  object-position: center;
}

.team-member-photo-2 {
  margin-top: 24px;
  width: 150px;
  height: 150px;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background-color: rgb(156, 186, 186);
}

.team-member-photo-2 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.team-member-photo-2 img[src*="nasrin"] {
  object-position: center 25%;
}

.team-member-text {
  flex: 1;
  text-align: center;
  width: 90%;
  margin-left: 5%;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.team-member-name {
  font-size: 18px;
  color: var(--violet);
}

.team-member-position {
  text-transform: uppercase;
  font-size: 12px;
  color: rgb(56, 56, 150);
  font-weight: 600;
}
.team-member-bio {
  text-align: left;
  flex: 1;
}

.highlight {
  font-weight: bold;
  color: var(--blue-bird);
}
.highlight a:hover {
  font-weight: bold;
  color: var(--violet-soft);
}
.team-member-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  background: none; /* remove the red background */
}

.team-member-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.team-member-socials a:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.team-member-socials svg {
  width: 16px;
  height: 16px;
}

/* MORE ABOUT */
.about-img {
  width: 100%;
  margin: 0;
}
.about-img img {
  width: 80%;
  margin-left: 10%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 600px) {
  .about-img img {
    width: 100%;
    margin-left: 0;
  }
}
.about-img figcaption {
  margin-top: 16px;
  font-size: 0.87rem;
  color: var(--muted);
  text-align: center;
}
.sub-head-text {
  margin-bottom: 32px;
}

.hero-copy {
  margin-top: 3rem;
}
@media (max-width: 1000px) {
  .hero-copy {
    margin-top: 0rem;
  }
}

.branch-bird {
  position: absolute;
  bottom: 4rem;
  left: 0rem;
  z-index: 5;
  transform: scaleX(-1);
}

.branch-bird img {
  width: clamp(120px, 25vw, 170px);
  height: auto;
  display: block;
}

.rotator {
  position: absolute;
  width: clamp(120px, 25vw, 120px);
  height: 40px;
  bottom: 80px;
  right: 60px;
}

.rotator-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1000;
  animation: rotate-fade 10s infinite;
}

.rotator-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps the image proportional, no stretching/cropping */
  display: block;
}

.item-1 {
  animation-delay: 0s;
}
.item-2 {
  animation-delay: 2s;
}
.item-3 {
  animation-delay: 4s;
}
.item-4 {
  animation-delay: 6s;
}
.item-5 {
  animation-delay: 8s;
}

@keyframes rotate-fade {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  19% {
    opacity: 1;
  }
  25% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.sponsors {
  width: 100%;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 760px) {
  .sponsors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .sponsors {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.sponsor {
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.sponsor-logo {
  width: 100%;
  padding: 12px;
  margin: 0;
  border-radius: 8px;
  /* background: #eceff5; */
  background: linear-gradient(to bottom, #eef3fc 0%, #bfcfed 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 10px -4px rgba(49, 19, 94, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition:
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.sponsor-logo:hover {
  box-shadow: 0 8px 20px -6px rgba(69, 137, 255, 0.28);
  transform: translateY(-3px);
  text-decoration: none;
}

.sponsor-logo img {
  max-height: 100px;
}

.sponsor-name {
  padding-left: 5%;
  margin: 0;
}

.sponsor-caption {
  margin-top: 10px;
  text-align: center;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  /* color: var(--muted); */
}

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule-list {
  max-width: 800px;
  display: grid;
  gap: 16px;
  margin-bottom: 48px;
}

.schedule-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  /* background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%); */
  /* background: linear-gradient(135deg, #fff5f9 0%, var(--soft-purple) 100%); */
  /* background: linear-gradient(160deg, var(--soft-blue) 0%, #ffffff 60%); */
  background: linear-gradient(135deg, #eef3fc 0%, #cedcf9 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 2px 10px -4px rgba(49, 19, 94, 0.12);
  border: 1px solid var(--medium-blue);
  border-radius: 10px;
  padding: 12px 26px 12px 34px;
  overflow: hidden;
  /* box-shadow: 0 2px 10px -4px rgba(49, 19, 94, 0.12); */
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.schedule-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--blue-bird);
}

.schedule-item:hover {
  border-color: var(--blue-bird);
  box-shadow: 0 8px 20px -6px rgba(69, 137, 255, 0.28);
  transform: translateY(-3px);
}

.schedule-time {
  flex: 0 0 120px;
  font: 600 15px/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  color: #5f4688;
  padding-top: 5px;
}

.schedule-details {
  flex: 1;
}

.schedule-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 4px;
}

.schedule-meta {
  font-size: 0.92rem;
  /* color: var(--grey); */
  color: #6c627c;
}

/* Stack on small screens */
@media (max-width: 600px) {
  .schedule-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px 18px 28px;
  }
  .schedule-time {
    flex: none;
  }
}

/* TOOLTIP */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--indigo);
  color: #fff;
  font: 600 12px/1 var(--font-body);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s var(--ease);
  z-index: 20;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 6px solid transparent;
  border-top-color: var(--indigo);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    visibility 0.18s var(--ease);
  z-index: 20;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus-visible::after,
.tooltip:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mobile-hero-art {
  display: none;
}

.mobile-hero-art {
  display: none;
}
.mobile-hero-art {
  display: none;
}

@media (max-width: 1000px) {
  .mobile-hero-art {
    display: block;
    position: relative;
    height: 200px;
    overflow: hidden;
    margin: 0 15px;
  }

  .mobile-cloud {
    position: absolute;
    top: 20px;
    left: 0%;
    padding: 0 5px;
  }

  .mobile-bird {
    position: absolute;
    left: 0;
    width: 80px;
    height: auto;
    transform: translateX(0) scaleX(-1);
  }

  .mobile-bird img {
    width: 100%;
    height: auto;
    display: block;
    animation: mobile-bird-bob 2s ease-in-out infinite;
  }

  .mobile-bird-1 {
    top: 30px;
    width: 110px;
    animation: mobile-bird-fly 3s linear infinite;
  }

  .mobile-bird-2 {
    top: 100px;
    width: 80px;
    left: auto;
    right: 0;
    transform: translateX(0) scaleX(1);
    animation: mobile-bird-fly-2 8s linear infinite;
    animation-delay: 1.2s;
  }

  .mobile-bird-3 {
    top: 60px;
    width: 60px;
    left: -60px;
    opacity: 0;
    z-index: 2;
    animation: none;
  }
}

@keyframes mobile-bird-fly {
  from {
    transform: translateX(0) scaleX(-1);
  }
  to {
    transform: translateX(100vw) scaleX(-1);
  }
}

@keyframes mobile-bird-fly-2 {
  from {
    transform: translateX(0) scaleX(1);
  }
  to {
    transform: translateX(-100vw) scaleX(1);
  }
}

@keyframes mobile-bird-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.mobile-bird-3.is-flying {
  opacity: 1;
  animation: mobile-bird-fly-fast 2.2s linear forwards;
}

@keyframes mobile-bird-fly-fast {
  from {
    transform: translateX(0) scaleX(-1);
  }
  to {
    transform: translateX(var(--fly-distance, 300px)) scaleX(-1);
  }
}

.bird-score-display {
  position: absolute;
  bottom: 0px;
  right: 8px;
  font: 700 13px/1 var(--font-mono);
  color: var(--indigo);
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 15;
}

.bird-score-popup {
  position: absolute;
  font: 700 18px/1 var(--font-display);
  color: var(--blue-bird);
  pointer-events: none;
  animation: bird-score-float 0.9s ease-out forwards;
  z-index: 10;
}

@keyframes bird-score-float {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

@media (max-width: 1000px) and (prefers-reduced-motion: reduce) {
  .mobile-bird,
  .mobile-bird img {
    animation: none;
  }
}
