* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: #fff;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem 0;
  pointer-events: none;
}

.glass-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  padding: 0.65rem clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 100px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.14) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.glass-nav__link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.15rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.glass-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.glass-nav__link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

/* Same frosted treatment as .glass-nav — sponsorship tier panels */
.sponsor-tier-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.14) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -1px 0 rgba(0, 0, 0, 0.08) inset;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.hero {
  width: 100%;
  /* svh stays stable while mobile browser chrome hides/shows; dvh tracks that change and rescales cover backgrounds */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #1a1a1a;
  background-image: url("assets/hero_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  padding: max(5.5rem, calc(env(safe-area-inset-top) + 4rem)) 1.25rem 2rem;
}

.hero-title {
  font-weight: 400;
  font-size: calc(2rem * 3.05);
  line-height: 1.1;
  text-align: center;
}

.hero-subtitle {
  font-weight: 400;
  font-size: calc(1.17rem * 2.35);
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 700px) {
  .hero-subtitle {
    font-size: calc((1.17rem * 2.35) * 0.75);
  }
}

.events-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #1a1a1a;
  background-image: url("assets/events_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Same inset top + bottom so flex centering matches the viewport middle; top clears the nav */
  padding: max(5.5rem, calc(env(safe-area-inset-top) + 4rem)) 1.25rem
    max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
}

.events-inner {
  width: 100%;
  max-width: 1100px;
}

.events-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.events-heading {
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.sponsorship-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #1a1a1a;
  background-image: url("assets/sponsorship_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(5.5rem, calc(env(safe-area-inset-top) + 4rem)) 1.25rem
    max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
}

.contact-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background-color: #1a1a1a;
  background-image: url("assets/contact_background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  /* Symmetric vertical padding like other sections — avoids mobile dvh/svh + flex jump with cover backgrounds */
  padding: max(5.5rem, calc(env(safe-area-inset-top) + 4rem)) 1.25rem
    max(5.5rem, calc(env(safe-area-inset-top) + 4rem));
}

.contact-page__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}

.contact-inner {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.contact-profile-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 3px;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25))
    drop-shadow(0 16px 40px rgba(0, 0, 0, 0.2));
}

.contact-profile-link:hover {
  transform: translateY(-3px);
}

.contact-profile-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 6px;
}

.contact-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: 3px;
  background-color: #f0ebe4;
  background-image: url("assets/business card background.png");
  background-size: 320px auto;
  background-repeat: repeat;
  background-position: center top;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.contact-profile__photo {
  width: min(220px, 70vw);
  height: min(220px, 70vw);
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-profile__name {
  font-weight: 400;
  font-size: clamp(0.925rem, 2.5vw, 1.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #141414;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.contact-profile__bio {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  max-width: 38ch;
  color: rgba(20, 20, 20, 0.82);
}

@media (max-width: 700px) {
  .contact-profile__name {
    font-size: clamp(1.18rem, 5.4vw, 1.48rem);
    line-height: 1.22;
  }
}

.sponsorship-inner {
  width: 100%;
  max-width: 1100px;
}

.sponsorship-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.sponsorship-heading {
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.sponsorship-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
}

.sponsor-tier-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 360px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.95);
}

.sponsor-tier-card__title {
  font-weight: 400;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  color: #fff;
  text-align: center;
}

.sponsor-tier-card__price {
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  text-align: center;
  color: #fff;
  letter-spacing: 0.02em;
}

.sponsor-tier-card__benefits {
  margin: 0;
  padding: 0 0 0 1.2rem;
  list-style: disc;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.sponsor-tier-card__benefits li {
  margin-bottom: 0.5rem;
}

.sponsor-tier-card__benefits li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .sponsorship-cards {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-tier-card {
    max-width: 420px;
    width: 100%;
  }
}

.sponsor-carousel {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  width: 100%;
}

.sponsor-carousel__viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}

.sponsor-carousel__track {
  display: flex;
  width: max-content;
  animation: sponsor-carousel-marquee 55s linear infinite;
  will-change: transform;
}

.sponsor-carousel__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(2.25rem, 5vw, 3.75rem);
  padding: 0.5rem clamp(1rem, 2vw, 1.5rem);
}

.sponsor-carousel__logo {
  display: block;
  height: clamp(32px, 5.5vw, 48px);
  width: auto;
  max-width: min(150px, 26vw);
  object-fit: contain;
  opacity: 0.95;
}

@media (hover: hover) {
  .sponsor-carousel:hover .sponsor-carousel__track {
    animation-play-state: paused;
  }
}

@keyframes sponsor-carousel-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

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

  .sponsor-carousel__group--duplicate {
    display: none;
  }

  .sponsor-carousel__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .sponsor-carousel__group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
}

.events-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  width: 100%;
}

.event-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.event-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  perspective: 1100px;
  outline: none;
  cursor: pointer;
}

.event-card__frame:focus-visible {
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 255, 255, 0.65);
}

.event-card__flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@media (hover: hover) {
  .event-card__frame:hover .event-card__flip-inner,
  .event-card__frame:focus-within .event-card__flip-inner {
    transform: rotateY(180deg);
  }
}

@media (hover: none) {
  .event-card__frame.is-flipped .event-card__flip-inner {
    transform: rotateY(180deg);
  }
}

.event-card__flip-face {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.event-card__flip-face--back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(
    160deg,
    rgba(28, 28, 32, 0.97) 0%,
    rgba(12, 12, 16, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.event-card__flip-back-inner {
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.event-card__flip-back-inner p {
  margin: 0;
}

.event-card__flip-back-inner--sponsors {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.event-card__flip-attendees {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.event-card__flip-back-inner--reserve {
  gap: 0.5rem;
}

.event-card__flip-presenting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.25rem 0 0.65rem;
  margin-bottom: 0.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.event-card__flip-presenting-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.82);
}

.event-card__flip-presenting-logo {
  display: block;
  height: clamp(46px, 11vw, 58px);
  width: auto;
  max-width: min(240px, 88%);
  object-fit: contain;
  opacity: 0.98;
}

.event-card__flip-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}

.event-card__flip-sponsor-logo {
  display: block;
  height: 26px;
  width: auto;
  max-width: min(104px, 32vw);
  object-fit: contain;
  opacity: 0.95;
}

.event-card__flip-back-inner--sponsors .event-card__flip-sponsor-logo[src$=".svg"] {
  height: 24px;
  max-width: min(120px, 36vw);
}

.event-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .event-card__flip-inner {
    transition-duration: 0.01ms;
  }
}

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

.event-card__title {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.event-card__date {
  display: block;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

@media (max-width: 700px) {
  .events-cards {
    flex-direction: column;
    align-items: center;
  }

  .event-card {
    max-width: 420px;
    width: 100%;
  }
}

