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

body {
  background-color: var(--color-5);
  font-family: sans-serif;
  color: var(--Text-Color);
  overflow-x: hidden;
}

/* Desktop only: lock vertical scroll when overlay is active */
body.desktop-locked {
  overflow: hidden;
}

/* ------------------------------
   STAGE (desktop: fixed, no scroll)
--------------------------------*/
.about-stage {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* BIO panel: full-screen, always visible */
.about-bio-panel {
  position: absolute;
  inset: 0;
  background: var(--color-5);
  z-index: 1;
}

.panel-inner {
  height: 100%;
  width: 100%;
  padding: 110px 50px 50px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Bio content width */
.about-content {
  width: 100%;
  max-width: 90vw;
}

.about-content h1 {
  font-family: "Dublin-Bold", sans-serif;
  font-size: 2.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.bio-lead {
  font-size: 1.35rem;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0.95;
}

.about-content p {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.bio-outro {
  margin-top: 24px;
}

/* REVIEWS panel: full-screen overlay that slides in from right */
.reviews-panel {
  position: absolute;
  inset: 0;
  background: #0f1016;
  z-index: 2;
  transform: translateX(100vw); /* hidden off-screen to the right by default */
  will-change: transform;
  display: flex;
  flex-direction: row;
}

.reviews-photo {
  flex: 1;
  background-image: url("../images/reviews-img.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2a2a35;
}

.reviews-inner {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.reviews-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 60px 50px;
}

.reviews-content h2 {
  font-family: "Dublin-Bold", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.reviews-content blockquote {
  margin: 0;
  padding: 20px;
  border-left: 3px solid rgba(241, 239, 236, 0.5);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: italic;
}

.reviews-content blockquote span {
  display: block;
  margin-top: 12px;
  opacity: 0.85;
  font-size: 0.95rem;
  font-style: normal;
  color: var(--color-7);
}

/* Small hint bottom-right */
.scroll-hint {
  position: absolute;
  right: 28px;
  bottom: 22px;
  z-index: 3;
  font-family: "Dublin-Thin", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.8;
  pointer-events: none;
}

/* ------------------------------
   Waterfall fade
--------------------------------*/
.fade-in {
  opacity: 0;
  animation: fadeInUp 1.3s ease-out forwards;
  animation-delay: calc(var(--i) * 0.18s);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =========================================================
   LARGE TABLETS – LANDSCAPE (iPad Pro 12.9 etc)
   Up to 1366px wide
   → Use scrollable stacked layout instead of desktop stage
========================================================= */
@media (max-width: 1366px) and (orientation: landscape) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Unlock scroll if desktop lock class is present */
  body.desktop-locked {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .about-stage {
    height: auto;
    width: 100%;
    overflow: visible;
  }

  /* Panels should behave like normal page sections */
  .about-bio-panel,
  .reviews-panel {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none !important;
  }

  .reviews-panel {
    display: block;
  }

  .reviews-inner {
    padding: 20px 20px 40px;
    height: auto;
    display: block;
  }

  .reviews-photo {
    width: 100%;
    height: 55vh;
    background-position: center 30%;
  }

  .reviews-content {
    max-width: 100%;
    padding: 24px 20px 40px;
  }

  .scroll-hint {
    display: none;
  }
}

/* ------------------------------
   Mobile/Tablet: normal scroll + reviews stacked
--------------------------------*/
@media (max-width: 1024px) {
  body {
    overflow: auto;
    overflow-x: hidden;
  }

  .about-stage {
    height: auto;
    overflow: visible;
  }

  .about-bio-panel,
  .reviews-panel {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none !important; /* ignore JS transforms on mobile */
  }

  .reviews-inner {
    padding: 20px 20px 40px;
    height: auto;
    display: block;
  }

  .reviews-panel {
    display: block;
  }

  .reviews-photo {
    width: 100%;
    height: 40vh;
    /* min-height: 30vh; */
    background-position: center 30%;
  }

  .reviews-content {
    max-width: 100%;
    padding: 24px 20px 40px;
  }

  .scroll-hint {
    display: none;
  }
}

@media (max-width: 768px) {
  .reviews-photo {
    min-height: 220px;
    background-position: center 31%;
    margin-bottom: 2rem;
  }

  .reviews-content {
    padding: 0 16px 32px;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .reviews-photo {
    min-height: 350px;
    background-position: center 25%;
  }
}

/* View transitions */
@view-transition {
  navigation: auto;
}
::view-transition-group(*) {
  animation-duration: 1s;
}
