/* Nothing to see here */


/* Default state: Reduced opacity */
body.story-content-page header, body.story-content-page footer {
    opacity: 0.3;
    transition: opacity 0.3s ease; /* Smooth fade effect */
}

/* Hover state: Fully visible */
body.story-content-page header:hover, body.story-content-page footer:hover,
body.story-content-page header:hover ~ footer, body.story-content-page footer:hover ~ header {
    opacity: 1;
}


/* Fix Barba Flash */
[data-barba="container"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}

[data-barba="container"].is-hidden {
  opacity: 0;
}
.videoBox {
  background-color: #000;
}
[data-barba="container"] {
  background-color: transparent;
}
[data-barba="container"].is-hidden {
  opacity: 0;
  pointer-events: none;
}


/* Fade to black barb */
.videoOverlay {
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

/* Fullscreen overlay for the fade effect */
.fade-overlay {
  position: fixed;
  inset: 0;
  background: #000000; /* Match page background */
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.fade-overlay.hidden {
  opacity: 0;
}

/* Modal Styles */
#modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 9999;
  backdrop-filter: blur(0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    backdrop-filter 0.4s ease,
    background 0.4s ease,
    opacity 0.3s ease,
    visibility 0s linear 0.4s; /* delay hiding until fade-out finishes */
}

#modal.active {

  backdrop-filter: blur(100px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    backdrop-filter 0.4s ease,
    background 0.4s ease,
    opacity 0.3s ease,
    visibility 0s linear 0s; /* show immediately */
}

#modal .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

#modal .content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    max-width: 960px;
    width:70%;
    max-height: 80%;
    height:auto;
    margin: 5% auto;
    display: flex;
    flex-direction: column;
    color: #000;
    border-radius: 10px;
    justify-content: center;
    overflow:scroll;
}
.modal_header {
    padding: 1.125em 2.125em;
    border-bottom: 1px solid #e2e2e2;
    font-size: 1.4em;
    font-weight: 400;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
}
.modal_body {
    padding: 4.125em 3.125em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: center;
}
.modal_body .page-content {
max-width: 100%;
    text-align: left;
    margin-bottom: 2.5em;
    background: #fbf2ff;
    padding: 2em;
    border-radius: 9px;
    border: 1px solid #a700ff;
}
/* Default: visible */
.page-content { display: block; }

/* Once form container is marked submitted */
.modal_body.submitted .page-content {
  display: none !important;
}
.modal_body form {
    display: flex;
    flex-direction: column;
    justify-items: center;
    width:100%;
}
.modal_body form label {
    font-size: 1.375em;
    font-weight: 300;
    display: flex;
    flex-direction: row;
    justify-content: left;
    text-align:left;
    margin-bottom: 1rem;
}
.modal_body form input, .modal_body form textarea {
    border: 1px solid;
    border-color: rgba(75, 85, 99, 0.2);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
    border-radius: 0.375em;
    margin-bottom: 1.0375em;
}
.modal_body form button {
    width: auto;
    background: #a700ff;
    padding: 0.85rem 2.25rem;
    display: flex;
    margin: initial;
    color: #fff;
}
.modal_success .page-content {
    margin-bottom: 2em;
    font-size: 1.375em;
    font-weight: 400;
}
.modal_success ul.scene-btn li a {
    width: auto;
    background: #0d0d0d;
    padding: 0.85rem 2.25rem;
    display: flex;
    margin: 0 auto;
    color: #fff;
    border-radius: 4px;
    text-align: center !important;
    flex-direction: column;
}

/* Fix Modal Overflow Issue */
/* Make the modal a two-row flex box: sticky header + scrolling body */
#modal .content {
  display: flex;
  flex-direction: column;
  /* contain scroll to the body; avoid double scrollbars */
  overflow: hidden;
  /* ensure it can never exceed the viewport */
  max-height: auto;
}

/* Header stays visible while body scrolls */
#modal .modal_header {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

/* Body becomes the scroll container */
#modal .modal_body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* don’t vertically centre on small screens; start at top */
  justify-content: flex-start;
  align-items: flex-start;
}

/* Mobile/smaller screens: use full viewport and remove outer margins/radius */
@media (max-width: 900px) {
  #modal .content {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }
}

/* Add Blur Effect to Decisions */
.videoBox.blurred:before {
    backdrop-filter: blur(30px);
}
.videoBox.blurred {
    opacity: 0.5;
    filter: grayscale(1);
}
.videoFadeOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  z-index: 2;
}
.videoFadeOverlay.active {
  opacity: 1;
}


/* Reflections */
.reflections_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 2em;
}

/* Contact Slide In */
.contact-panel {
  position: fixed;
  top: 0;
  left: -80vw; /* hidden off screen */
max-width: 600px;
    width: 80vw;
    height: 100%;
    backdrop-filter: saturate(1.5) blur(60px);
    background: #000000ba;
    color: #ffffff;
    overflow-y: hidden;
    transition: left 0.4s ease;
    z-index: 9999;
    padding: 2rem;
}

.contact-panel.active {
  left: 0;
}

.contact-panel__content {
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
  height:100%;
}

.contact-panel.active .contact-panel__content {
  opacity: 1;
}

.close-contact {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    width: 70px;
    height: 70px;
}
body.contact-open {
  overflow: hidden;
}

.panel_details > div {
    width: 100%;
}
.panel_details {
    justify-content: space-between;
    flex-direction: column;
    border: none;
    height: 100%;
    padding-block: 1.5em;
}
.pd_bottom {
    border-radius: 5px;
    padding: 1.5em;
    background: #ffffff0a;
}
.pd_bottom p {
    margin-bottom: 0;
}


.contact-panel .fui-row input, .contact-panel .fui-row textarea {
    border: 1px solid;
    border-color: #ffffff38;
    background: #ffffff0f;
}
.contact-panel .fui-row {
    margin-bottom: 7px;
}
.contact-panel .fui-row label {
    font-weight: 400;
}

body:before {
  content:'';
  width:100vw;
  height:100vh;
  position:absolute;
  top:0;
  left:0;
  backdrop-filter: blur(0px);
  z-index:-1;
}

body.contact-open:before {
  content:'';
  width:100vw;
  height:100vh;
  position:absolute;
  top:0;
  left:0;
  backdrop-filter: blur(6px);
  z-index:1000;
  overflow:hidden;
  display:block;
  transition: backdrop-filter 1s ease-in-out;
}
.contact-panel .fui-submit {
    background: #DC9BFF;
    border-radius: 7px;
    padding-block: 1.25em;
    color:#000;
}


[data-fui-page]:not([data-fui-page-hidden]) {
  display: block !important;
  visibility: visible !important;
}


/* Style Gate */
.gate-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
}
.gate-modal[hidden] {
  display: none;
}
.gate-modal__dialog {
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  color: #101010;
}
.gate-modal__close {
  position: relative;
  border: 0;
  color: #000;
  font-size: 24px;
  line-height: 0;
  cursor: pointer;
  width: 39px;
  height: 37px;
  right: -9px;
  top: -7px;
}
.gate-modal__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.gate-modal__help {
  color: #bbb;
  font-size: 0.9rem;
  margin-top: 12px;
}
.gate-modal .fui-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap:1em;
    text-align: center;
}
.gate-modal .fui-btn-wrapper .fui-submit {
    background: #7d06bd;
    border: none;
    padding-block: 1em;
    margin: 0px;
}
.gate-error {
    display: block;
    width: 100%;
    position: relative;
    margin: 0;
    color: red;
    font-size:0.9em;
}
.gate_header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.fui-reset input,
.fui-reset textarea {
  width: 100%;
}
