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

html,
body{
    width: 100%;
    height: 100%;
}


body{
    font-family: "gilroy", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: visible;
    overflow-y: hidden;
    background: #fff;
    color: #000;
    transition:
      background-color 220ms ease,
      color 220ms ease;
}

@font-face {
  font-family: "Bagoss";
  src: url("../client/assets/fonts/BagossCondensedTRIAL-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bagoss";
  src: url("../client/assets/fonts/BagossCondensedTRIAL-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.font-bagoss {
    font-family: "Bagoss", sans-serif;
}

#stack-inner > div:hover > div {
  width: 30vh;
  z-index: 50;
}

.nav-btn {
  position: relative;
  overflow: hidden;
}

/* shared text styles */
.nav-text {
  display: block;
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap;
}

/* default visible text */
.nav-text-main {
  transform: translateX(0%);
}

/* hidden text waiting on the right */
.nav-text-hover {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(100%);
}

/* 🔥 hover animation */
.nav-btn:hover .nav-text-main {
  transform: translateX(-100%);
}

.nav-btn:hover .nav-text-hover {
  transform: translateX(0%);
}

.mirror-btn {
  border: 0;
  background: #AFAEA7;
  color: #000;
  padding: 0px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
}

/* INNER CONTAINER */
.text-viewport {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-text {
  display: block;
  white-space: nowrap;
  transition: transform 0.5s cubic-bezier(.22,1,.36,1);
}

/* base visible */
.btn-main {
  transform: translateX(0%);
}

/* hidden left */
.btn-hover {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
}

/* hover */
.mirror-btn:hover .btn-main {
  transform: translateX(100%) skewX(0deg);
}

.mirror-btn:hover .btn-hover {
  transform: translateX(0%) skewX(0deg);
}

.filter-item {
  color: #b8b1a4;
  transform: translateX(0);
  transition:
    color 180ms ease,
    transform 260ms cubic-bezier(.16,1,.3,1);
}

.filter-item:hover,
.filter-item.is-active {
  color: #000;
  transform: translateX(4px);
}

.nav-menu-btn.is-hidden {
  display: none;
}

.theme-toggle {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  border: 1px solid #000;
  background: transparent;
  color: #000;
  padding: 0.45rem 0.8rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

#site-logo {
  color: #000;
  transition: color 220ms ease;
}

.about-page {
  display: none;
  align-items: flex-end;
  max-width: min(44rem, 82vw);
  padding: 0 0 1.1rem 0;
  min-height: calc(100vh - 6rem);
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}

.about-copy p {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.22rem, 2.2vw, 1.82rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: rgba(0, 0, 0, 0.7);
}

.about-copy .about-intro {
  color: #000;
}

body.about-open {
  overflow: hidden;
}

body.about-open #stack-wrapper,
body.about-open #event-info-panel,
body.about-open #filter-list,
body.contact-open #stack-wrapper,
body.contact-open #event-info-panel,
body.contact-open #filter-list {
  display: none;
}

body.about-open .about-page {
  display: flex;
}

body.about-open #theme-toggle,
body.contact-open #theme-toggle {
  display: none;
}

.contact-page {
  display: none;
  min-height: calc(100vh - 6rem);
  padding: clamp(5.5rem, 11vh, 7rem) 0 1.1rem 0;
}

.contact-sheet {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.contact-grid {
  width: min(40rem, 78vw);
  margin-left: auto;
  margin-right: clamp(2rem, 11vw, 12rem);
  display: grid;
  gap: 0.8rem;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(8rem, 11rem) 1fr;
  column-gap: 1.25rem;
  align-items: start;
}

.contact-label,
.contact-value {
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.18;
}

.contact-label {
  color: rgba(0, 0, 0, 0.92);
}

.contact-value {
  color: rgba(0, 0, 0, 0.68);
}

.contact-link {
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  color: #000;
  transform: translateX(3px);
}

.contact-loop {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0.45rem 0;
}

.contact-loop::before,
.contact-loop::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}

.contact-loop::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.contact-loop::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

.contact-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: contactLoop 22s linear infinite;
}

.contact-track:hover {
  animation-play-state: paused;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  min-width: 15rem;
  margin-right: 2rem;
  color: rgba(0, 0, 0, 0.46);
  font-size: clamp(0.98rem, 1.22vw, 1.08rem);
  transition: color 180ms ease, transform 180ms ease;
}

.contact-card:hover {
  color: #000;
  transform: scale(1.03);
}

body.contact-open .contact-page {
  display: block;
}

@keyframes contactLoop {
  from {
    transform: translateX(0);
  }

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

.event-info-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(.16,1,.3,1);
}

#event-info-panel {
  will-change: transform;
}

.event-info-shell.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.event-info-meta,
.event-info-title {
  display: inline-block;
  background: rgba(175, 174, 167, 0.78);
  backdrop-filter: blur(2px);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  width: fit-content;
  max-width: min(28rem, 32vw);
}

.event-info-meta {
  margin: 0;
  padding: 0.18rem 0.7rem 0.18rem 0.42rem;
  font-size: clamp(1.18rem, 1.28vw, 1.34rem);
  line-height: 1.05;
  font-weight: 500;
  white-space: normal;
  overflow-wrap: anywhere;
}

.event-info-title {
  margin: 0;
  padding: 0.18rem 0.42rem;
  font-size: clamp(0.78rem, 0.92vw, 0.95rem);
  line-height: 1;
  font-weight: 450;
  max-width: min(14rem, 18vw);
  color: #000;
}

body.dark-mode {
  background: #000;
  color: #fff;
}

body.dark-mode #site-logo {
  color: #fff;
}

body.dark-mode .theme-toggle {
  border-color: #fff;
  color: #fff;
}

body.dark-mode .mirror-btn {
  background: #AFAEA7;
  color: #000;
}

body.dark-mode .filter-item {
  color: #b8b1a4;
}

body.dark-mode .filter-item:hover,
body.dark-mode .filter-item.is-active {
  color: #fff;
}

body.dark-mode .event-info-meta,
body.dark-mode .event-info-title {
  background: rgba(175, 174, 167, 0.78);
  color: #000;
}

body.dark-mode .about-copy p {
  color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .about-copy .about-intro {
  color: #fff;
}

body.dark-mode .contact-label {
  color: rgba(255, 255, 255, 0.92);
}

body.dark-mode .contact-value,
body.dark-mode .contact-card {
  color: rgba(255, 255, 255, 0.68);
}

body.dark-mode .contact-link:hover,
body.dark-mode .contact-card:hover {
  color: #fff;
}

body.dark-mode .contact-loop::before {
  background: linear-gradient(to right, #000, transparent);
}

body.dark-mode .contact-loop::after {
  background: linear-gradient(to left, #000, transparent);
}

