:root {
  --screens-to-end: 1.1;
}

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

html {
  background-color: #ffffff; /* Ensure hard white background */
  overscroll-behavior-y: none; /* Prevent upward overscroll bounce */
  overflow-y: scroll; /* Enable scrolling */
  scrollbar-width: none; /* Firefox - hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera - hide scrollbar */
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #ffffff;
  color: #000000;
  overflow-x: hidden;
  overscroll-behavior-y: none; /* Prevent upward overscroll bounce */
}

#intro-stage {
  position: relative;
  width: 100%;
  height: calc(var(--screens-to-end, 1.1) * 100vh);
}

#intro-sticky-layer {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Original content */
#original-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 2rem;
  transition: opacity 0.3s ease;
}

/* Interactive elements */
#whats-in-the-box-text {
  position: fixed;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.38rem; /* 10% bigger than 2.166rem */
  font-weight: 700;
  color: #000000;
  z-index: 3;
  pointer-events: none;
  line-height: 1;
  text-align: right;
  letter-spacing: -0.02em; /* 2% reduction in letter spacing */
  opacity: 0; /* Will fade in immediately via JS */
}

#pointing-finger {
  position: fixed;
  width: 80px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform-origin: center center;
  opacity: 0; /* Prevent flash before JS positions it */
}

/* Seminar content */
#seminar-content {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 4rem 2rem;
  background-color: #000000;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#seminar-content.active {
  pointer-events: auto;
}

.seminar-container {
  max-width: 900px;
  width: 100%;
  color: white;
}

/* On wide screens, make container occupy 45% of screen width */
@media (min-width: 1024px) {
  .seminar-container {
    max-width: 40;
    width: 40%;
  }
  
  /* Header breaks out to full width to prevent line-breaking */
  .seminar-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
  }
}

.black-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 6rem;
  background-color: #000000;
  z-index: 10;
}

.orange-box {
  position: fixed;
  top: 6rem;
  left: 0;
  width: 100vw;
  height: 50px;
  background-color: rgb(255, 160, 0);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scrolling-terms {
  font-family: 'Space Grotesk', sans-serif;
  color: #000000;
  font-weight: 600;
  font-feature-settings: 'ss02' on, 'ss03' on;
  white-space: nowrap;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background-color: rgb(255, 160, 0);
  font-size: 1.9rem;
  line-height: 1.2rem;
}

.scrolling-terms.hidden {
  display: none;
}

.seminar-header {
  padding-top: 6rem;
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'DotGothic16', 'Space Grotesk',sans-serif;
}

.header-image {
  width: 103.5%;
  height: auto;
  display: block;
  margin-left: -1.75%;
  margin-right: auto;
}

.seminar-header .subtitle {
  font-family: 'DotGothic16', 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  text-align: justify;
  line-height: 1.1;
}

.seminar-description-container {
  width: 60%;
  margin-top: 1rem;
}

.seminar-header .seminar-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: #ffffff;
  text-align: left;
  line-height: 1.1;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.seminar-header .seminar-description a {
  color: rgb(255, 160, 0);
  text-decoration: underline;
}

.seminar-header .seminar-description a:hover {
  color: rgb(255, 200, 100);
}

.seminar-banner {
  background-color: #1f2937;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.seminar-banner p {
  font-size: 1.125rem;
  text-align: center;
}

.talks-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.talk-item {
  width: 100%;
  margin-bottom: 1.3rem;
}

.talk-date-title {
  font-family: 'DotGothic16', sans-serif;
  font-size: 1.375rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.talk-speaker {
  font-family: 'DotGothic16', sans-serif;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.talk-description {
  font-family: 'Space Grotesk', sans-serif;
  text-align: justify;
  color: #ffffff;
  line-height: 1.1;
}

