/* ====================
   MOBILE SPLASH SCREEN
==================== */
#mobile-splash {
  display: none;
}

@media (max-width: 1078px) {
  body > *:not(#mobile-splash) {
    display: none !important;
  }

  #mobile-splash {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(1, 1, 1, 0.63);
    color: #a6a6a6;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
  }

  #mobile-splash h2 {
    font-size: 2em;
  }

  .logotype h1 {
    font-size: 4em !important;
    line-height: 0.8em;
    margin-bottom: 60px;
    color: #a6a6a6;
  }

  .mobile-splash__inner {
    max-width: 90%;
  }
}

/* ====================
   PAGE STRUCTURE
==================== */
.pageContainer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 0 1.25em;
  gap: 1em;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ====================
   TYPOGRAPHY
==================== */
h2 {
  font-weight: 500;
  margin-bottom: 15px;
}

h2.pageTitle {
  font-size: 6em;
  text-transform: uppercase;
  line-height: 1em;
}

/* ====================
   HEADER
==================== */
header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.25em;
  gap: 1em;
}

.logoContainer {
  grid-column: span 2;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.primary-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1em;
}

/* ====================
   FOOTER
==================== */
footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  padding: 1.25em;
  bottom: 0;
  gap: 1em;
}

footer .grid-col-2 {
  justify-content: flex-start;
}

/* ====================
   HOMEPAGE + CONTENT
==================== */
section.pageContent,
section.storyContainer {
  display: flex;
  align-items: center;
  width: 100vw;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  justify-content: center;
  padding: 1.25em;
}
.page-home .sceneBox .grid-col-1 {
  height: calc(100vh - 240px);
    justify-content: center;
}

section.pageContent.home {
  background: #f2e6ff;
}

section.pageContent.about {
  background: #fffce6;
}

.parent-stories .storyContainer .videoBox {
    filter: blur(30px);
    opacity: 0.7;
}
.storyContainer ul.scene-btn {
    justify-content: center;
}
.storyContainer ul.scene-btn a {
    padding: 1em 1.2em;
    border-radius: 4px;
    backdrop-filter: blur(20px);
    background: #ffffff0f;
}
.parent-stories .storyContainer ul.scene-btn li {
    justify-content: center;
    display: flex;
}

.hero-text h1 {
  font-size: clamp(2rem, 30vw, 16rem);
  color: #fff;
  line-height: 0.8em;
  font-weight: 300;
}

/* ====================
   VIDEO BACKGROUND
==================== */
.videoBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
}

.videoBox video,
.videoBox img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  display: block;
}

.videoBox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at -25% 50%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 110%);
  pointer-events: none;
  z-index: 1;
}

.contentLeft .videoBox:before {
    rotate: 180deg;
}

.page-stories .videoBox video,
.page-stories .videoBox img {
  filter: blur(0px);
  transition: opacity 1s ease-in, filter 3s ease;
}

.page-stories .videoBox.loaded video,
.page-stories .videoBox.loaded img {
  opacity:0.3;
}

/* ====================
   LAYOUT HELPERS
==================== */
.grid-col-1 {
  grid-column-start: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid-col-2 {
  grid-column-start: 3;
  display: flex;
  justify-content: space-around;
  flex-direction: row;
}

.sceneBox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: calc(100vh - 240px);
  margin-bottom: 35px;
  width: 100%;
  gap: 1em;
  align-content: flex-start;
}

.sceneBox.fullWidth {
  grid-template-columns: 1fr;
  justify-content: center;
}

.sceneBox.contentLeft .grid-col-1 {
  grid-column-start: 3;
  order: 1;
}

.sceneBox.contentLeft .grid-col-1 .audioBox {
  display: flex;
  justify-content: end;
}

.sceneBox.contentLeft .grid-col-2 {
  grid-column-start: 1;
}

.sceneBox.contentMiddle .grid-col-1 {
  grid-column-start: 1;
}

.sceneBox.contentMiddle .grid-col-2 {
  grid-column-start: 2;
}

/* ====================
   COMPONENTS
==================== */
.contentBox {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3em 2em 3em 3em;
    width: 76.5%;
    backdrop-filter:saturate(1.5)blur(24px);
    background: rgba(0,0,0,0);
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    max-height: 70vh;
    overflow: hidden;
    margin-top: 1.25vw;
    box-shadow:0 0 30px 13px rgba(0, 0, 0, 0.05);
}
.navContainer {
  transition: opacity 0.5s ease;
  opacity: 1;
}

.btn .countdown-label {
  opacity: 1;
  display: block;
}

.btn .button-label {
  opacity: 0;
  display: none;
}

.contentBox .content {
  overflow-y: auto;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.contentBox .content div {
    margin-right: 1vw;
}


.blurredContentWrapper {
    height: 100%;
    overflow: hidden;
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
}

/* Style Scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

/* Chrome, Edge, Safari */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: background 0.3s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

.audioBox button {
    width: auto;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 0.5em 1em;
    opacity: 1;
    backdrop-filter:blur(20px);
    background: #00000005;
    outline: none;
    transition: opacity 0.3s;
}

.audioBox button:hover {
  border: 1px solid #ffffff1a;
  opacity: 1;
}



.page-home .grid-col-2 {
    justify-content: flex-start;
}
.page-home .courseBlock {
    border-radius: 26px;
    padding: 1.25em;
    padding-top: 1.5em;
}
.page-home .programUrl a {
    border-radius: 14px;
}

.courseBlock {
    background: #ffffff0a;
    padding: 0.6em;
    width: 100%;
    max-width: 480px;
    backdrop-filter: blur(20px);
    color: #fff;
    animation: fadeUp 1s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
    border-radius: 26px;
    border: 1px solid #ffffff0f;
    box-shadow: 0px 0px 14px #00000026;
}
.courseBlock video {
    border-radius: 15px;
}
.cbContent {
    padding: 1.4em 0.8em 0.8em;
}

.courseBlock .courseTitle {
  font-weight: 500;
  font-size: 1em;
  margin-bottom: 16px;
}

.courseBlock .programDescription {
  font-size: 1.1em;
  line-height: 1.2em;
  margin-bottom: 16px;
  font-weight: 300;
}

.courseBlock .programMeta {
  border-top: 1px solid hsla(0, 0%, 100%, 0.2);
  margin-bottom: 16px;
}

.programMeta ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 16px;
}

.programMeta ul li:nth-child(even) {
  text-align: right;
}

.programUrl a {
  width: 100%;
  color: #51007D;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-weight: 500;
  background: #DC9BFF;
  padding: 1.1em;
  border-radius:12px;
}

.programUrl i {
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0.8;
  transform: translateX(-5px);
}

.programUrl:hover i {
  transform: translateX(0px);
  opacity: 1;
}

/* ====================
   STORY COMPONENTS
==================== */
.storyContent main {
  padding: 1.25em;
}

.story-content {
  margin-bottom: 35px;
  font-weight: 500;
  text-align: center;
  max-width: 590px;
}

.content h2 {
    font-weight: 400;
    font-size: 1em;
    opacity: 0.3;
}

ul.scene-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-start;
  align-items:center;
  min-height:40px;
}

ul.scene-btn li {
  width:100%;
}

ul.scene-btn li a.plainText {
  font-weight: 600;
}

ul.scene-btn li a.sceneButton {
  background: #0707072e;
  border: 1px solid #ffffff40;
  color: #ffffff;
  padding: 1em;
  border-radius: 7px;
  margin-top: 1em;
  display: flex;
  justify-content: center;
}

.storyLink i {
  font-size: 1.2em;
  margin-left: 10px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0.8;
  transform: translateX(-5px);
}

.storyLink .btn-content:hover i {
  transform: translateX(0px);
  opacity: 1;
}

.story-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(0, 440px));
  justify-content: center;
  max-width: calc((440px * 3) + (1rem * 3));
  margin: 0 auto;
}

/* ====================
   ANIMATIONS
==================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ====================
   MODAL STYLES
==================== */

#modal main {
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 1em;
}

#modal .content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: #111;
  color: #fff;
  border-radius: 12px;
}



/* ====================
   RESPONSIVE STYLES
==================== */
@media (max-width:1660px){ 
  .sceneBox {
    margin-bottom:0;
  }
  .contentBox {
    width:100%;
    min-height:100%;
    padding:2.25em;
    margin-top:0;
  }
}