:root {
  --page-bg: #3E254C;
  --highlight-colour: #86FF7C;
  --ticker-bg: transparent;
  --ticker-text: #FFFFFF;
  --ticker-height: 50px;
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--page-bg);
  color: #FFFFFF;
  font-family: "Darumadrop One", sans-serif;
}

.page {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left-panel,
.right-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

.left-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--page-bg);
}

.synthbox-logo {
  display: block;
  width: min(50%, 32rem);
  height: auto;
}

.left-panel h1 {
  margin: 0;
  font-family: "Darumadrop One", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.left-panel h1 a {
  color: var(--highlight-colour);
}

.left-panel h1 b {
  color: var(--highlight-colour);
}

.ticket-link {
  color: inherit;
  text-decoration: none;
}

.ticket-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--highlight-colour);
}

.right-panel {
  background: #211429;
}

.social-links {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  transform: translate(-50%, -50%);
}

.social-links a {
  display: block;
  width: clamp(2.75rem, 6vw, 4.5rem);
  aspect-ratio: 1;
}

.social-links img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 2500ms ease-in-out;
  will-change: opacity, transform;
}

.photo-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.photo-slide.zoom-enabled {
  transform: scale(1.13);
}

body.is-ready .photo-slide.zoom-enabled.is-active {
  animation: ken-burns 12.5s ease-out both;
}

@keyframes ken-burns {
  from { transform: scale(1.04); }
  to { transform: scale(1.13); }
}

.ticker {
  position: fixed;
  z-index: 5;
  left: 0;
  width: 100%;
  height: var(--ticker-height);
  overflow: hidden;
  display: flex;
  align-items: center;
  visibility: hidden;
  background: var(--ticker-bg);
  color: var(--ticker-text);
}

body.is-ready .ticker { visibility: visible; }

.ticker-top {
  top: 0;
  margin-top: calc(var(--ticker-height) * 0.5);
}

.ticker-bottom {
  bottom: 0;
  margin-bottom: calc(var(--ticker-height) * 0.5);
}

.ticker-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ticker-copy {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 0 clamp(2rem, 5vw, 5rem);
  white-space: nowrap;
  font-size: var(--ticker-height);
  line-height: 1;
  animation-duration: 45s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

body.is-ready .ticker-copy { animation-play-state: running; }

.ticker-left-to-right .ticker-copy:first-child {
  animation-name: ticker-exit-to-right;
}

.ticker-left-to-right .ticker-copy:last-child {
  animation-name: ticker-enter-from-left;
}

.ticker-right-to-left .ticker-copy:first-child {
  animation-name: ticker-exit-to-left;
}

.ticker-right-to-left .ticker-copy:last-child {
  animation-name: ticker-enter-from-right;
}

.ticker b {
  color: var(--highlight-colour);
}

.ticker-copy img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--ticker-height);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes ticker-enter-from-left {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes ticker-exit-to-right {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes ticker-exit-to-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes ticker-enter-from-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-slide,
  .photo-slide.is-active,
  .ticker-copy {
    animation: none;
    transition: none;
  }

  .photo-slide.zoom-enabled { transform: scale(1); }
  .photo-slide:not(.is-active) { visibility: hidden; }
  .ticker-copy:last-child { display: none; }
}
