/* ==================================================
   THE LOST PEARL
   Full Cinematic Landing Page CSS
   Use this as the complete style.css file.
================================================== */

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

html,
body {
  width: 100%;
  min-height: 100%;
  background: #02050a;
  color: #f7ead0;
  font-family: "Cormorant Garamond", serif;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}

/* ROTATING BACKGROUNDS */

.bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 5.5s ease-in-out, transform 18s ease-in-out;
  will-change: opacity, transform;
  z-index: 0;
}

/* OVERLAYS */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 205, 205, 0.06), transparent 28%),
    radial-gradient(circle at 70% 30%, rgba(0, 80, 130, 0.12), transparent 40%),
    radial-gradient(circle at center, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.38));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    repeating-radial-gradient(circle at 17% 32%,
      rgba(255,255,255,.3) 0,
      rgba(255,255,255,.3) 1px,
      transparent 1px,
      transparent 4px);
  mix-blend-mode: overlay;
}

/* SUBTLE OCEAN EFFECTS */

.plankton {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.11;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.45) 1px, transparent 1.2px),
    radial-gradient(circle, rgba(180,220,255,.25) 1px, transparent 1.2px),
    radial-gradient(circle, rgba(255,200,230,.18) 1px, transparent 1.2px);
  background-size: 220px 220px, 310px 310px, 420px 420px;
  animation: planktonFloat 120s linear infinite;
}

@keyframes planktonFloat {
  from {
    background-position: 0 0, 80px 120px, 160px 260px;
  }

  to {
    background-position: 0 -1800px, 80px -1650px, 160px -1900px;
  }
}

.light-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background:
    radial-gradient(circle at 70% 35%,
      rgba(255,255,255,.26),
      transparent 18%);
  mix-blend-mode: screen;
  animation: moonGlow 32s ease-in-out infinite;
}

@keyframes moonGlow {
  0%, 100% {
    opacity: 0.025;
    transform: scale(1);
  }

  50% {
    opacity: 0.075;
    transform: scale(1.025);
  }
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f2d9a6;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(0,0,0,1);
}

.brand span:last-child,
.brand {
  border-bottom: 1px solid rgba(242, 217, 166, 0.55);
  padding-bottom: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.nav a {
  color: #f2d9a6;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-shadow: 0 0 18px rgba(0,0,0,1);
  opacity: 0.92;
  transition: 0.3s ease;
}

.nav a:hover {
  opacity: 1;
  color: #fff2ca;
  text-shadow:
    0 0 14px rgba(255, 230, 175, 0.55),
    0 0 28px rgba(255, 190, 220, 0.25);
}

/* MAIN TITLE */

.hero-content {
  position: relative;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.title-wrap {
  opacity: 0;
  transform: translateY(20px);
  animation: titleReveal 3.4s ease forwards;
  animation-delay: 1.3s;
}

.small-title {
  font-family: "Cinzel", serif;
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.27em;
  text-transform: uppercase;
  color: #fff8e8;
  text-shadow:
    0 0 12px rgba(0,0,0,1),
    0 0 24px rgba(255, 255, 255, 0.42),
    0 0 46px rgba(218, 241, 255, 0.18);
}

h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(4.3rem, 9vw, 9.5rem);
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fffaf0;
  animation: titleGlow 9s ease-in-out infinite;
  text-shadow:
    0 0 8px rgba(255,255,255,.40),
    0 0 22px rgba(255,255,255,.52),
    0 0 42px rgba(218,241,255,.24),
    0 0 50px rgba(0,0,0,1),
    0 0 90px rgba(0,0,0,1);
}

.divider {
  width: min(560px, 78vw);
  margin: 20px auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #f0d3b0;
}

.divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(
    to right,
    transparent,
    rgba(240, 211, 176, 0.70),
    transparent
  );
}

.divider i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(240, 211, 176, 0.45);
  font-style: normal;
  font-size: 10px;
  box-shadow:
    0 0 14px rgba(255, 210, 180, 0.28),
    inset 0 0 10px rgba(255,255,255,0.16);
}

.title-wrap p {
  margin-top: 10px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  color: #f7ead0;
  text-shadow:
    0 0 16px rgba(0,0,0,1),
    0 0 38px rgba(0,0,0,1);
}

/* BUTTON */

.book-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 16px 48px;
  min-width: 235px;
  color: #f7e0b5;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border: 1px solid rgba(214, 175, 112, 0.55);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(0,0,0,0.22)),
    rgba(10, 8, 11, 0.45);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  box-shadow:
    0 0 22px rgba(0,0,0,0.9),
    inset 0 0 22px rgba(255, 220, 160, 0.08);
  backdrop-filter: blur(10px);
  transition: 0.35s ease;
  overflow: hidden;
}

.book-btn:hover {
  transform: scale(1.045);
  color: #fff0ca;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12), rgba(0,0,0,0.18)),
    rgba(38, 24, 28, 0.58);
  box-shadow:
    0 0 26px rgba(255, 190, 210, 0.20),
    inset 0 0 24px rgba(255, 220, 160, 0.13);
}

.book-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 260deg,
      rgba(255, 225, 160, 0.85) 300deg,
      transparent 340deg,
      transparent 360deg
    );
  animation: buttonGoldSweep 12s linear infinite;
  z-index: -1;
}

.book-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.07), rgba(0,0,0,0.22)),
    rgba(10, 8, 11, 0.82);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
  z-index: -1;
}

/* SOUND BUTTON */

.sound-btn {
  position: fixed;
  left: 44px;
  bottom: 34px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f2d9a6;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,0,0,1);
  transition: 0.3s ease;
}

.sound-btn:hover {
  color: #fff2ca;
  text-shadow:
    0 0 14px rgba(255, 230, 175, 0.5),
    0 0 26px rgba(255, 190, 220, 0.22);
}

#soundIcon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(242, 217, 166, 0.42);
  border-radius: 50%;
  font-size: 11px;
}

/* ANIMATIONS */

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255,255,255,.34),
      0 0 22px rgba(255,255,255,.46),
      0 0 42px rgba(218,241,255,.18),
      0 0 50px rgba(0,0,0,1),
      0 0 90px rgba(0,0,0,1);
    filter: brightness(1);
  }

  50% {
    text-shadow:
      0 0 12px rgba(255,255,255,.52),
      0 0 30px rgba(255,255,255,.62),
      0 0 58px rgba(218,241,255,.28),
      0 0 58px rgba(0,0,0,1),
      0 0 100px rgba(255,255,255,.18);
    filter: brightness(1.08);
  }
}

@keyframes buttonGoldSweep {
  to {
    transform: rotate(360deg);
  }
}

/* ==================================================
   MOBILE ONLY
   Nothing below affects desktop.
================================================== */

@media (max-width: 900px) {
  .site-header {
    padding: 18px 18px 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.12em;
  }

  .nav {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .hero,
  .hero-content {
    min-height: 100vh;
  }

  .hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
  }

  .title-wrap {
    width: 100%;
    transform: translateY(105px);
  }

  .small-title {
    font-size: 1.15rem;
    letter-spacing: 0.32em;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1;
  }

  .divider {
    width: min(360px, 78vw);
    margin: 16px auto 18px;
  }

  .title-wrap p {
    max-width: 310px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .book-btn {
    margin-top: 24px;
    min-width: 205px;
    padding: 13px 28px;
    font-size: 12px;
  }

  .sound-btn {
    left: 18px;
    bottom: 20px;
    font-size: 10px;
  }

}

@media (max-width: 390px) {
  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 8px;
    letter-spacing: 0.11em;
  }

  .title-wrap {
    transform: translateY(85px);
  }

  h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.4rem);
    letter-spacing: 0.015em;
  }

  .title-wrap p {
    font-size: 1.18rem;
  }

  .book-btn {
    min-width: 190px;
    font-size: 11px;
  }
}

.pearl-divider {
  display: block;
  width: 250px;
  max-width: 60%;
  height: auto;
  margin: 18px auto;
}

/* ==================================================
   VERSION GATE
================================================== */

.gate-page {
  min-height: 100%;
  overflow: auto;
  background: #000;
}

.age-gate {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(126, 89, 42, 0.10), transparent 34%),
    #000;
}

.age-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 15%, rgba(0, 0, 0, 0.72) 78%);
}

.age-gate__content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  opacity: 0;
  transform: translateY(18px);
  animation: titleReveal 1.8s ease forwards;
}

.age-gate__eyebrow {
  margin-bottom: 18px;
  color: #d8bb80;
  font-family: "Cinzel", serif;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.age-gate__title {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.age-gate__copy {
  max-width: 560px;
  margin: 24px auto 0;
  color: rgba(247, 234, 208, 0.76);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.age-gate__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 38px;
}

.gate-btn {
  margin-top: 0;
  min-width: 210px;
}

.age-gate__notice {
  max-width: 600px;
  margin: 30px auto 0;
  color: rgba(247, 234, 208, 0.48);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 620px) {
  .age-gate__actions {
    flex-direction: column;
    gap: 16px;
  }

  .gate-btn {
    width: min(270px, 90vw);
  }
}

/* ==================================================
   VERSION GATE — MOBILE TYPE FIX
   Keeps the gate typography inside narrow phone screens.
================================================== */
@media (max-width: 620px) {
  .age-gate {
    padding-left: 20px;
    padding-right: 20px;
  }

  .age-gate__content {
    width: 100%;
    max-width: 100%;
  }

  .age-gate__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .age-gate__title {
    /* Override the site's general mobile h1 sizing/nowrap. */
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: 0.025em;
    white-space: normal;
    overflow-wrap: normal;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .age-gate__copy {
    width: 100%;
    max-width: 330px;
    margin-top: 20px;
    padding: 0 4px;
    font-size: clamp(1rem, 4.8vw, 1.2rem);
    line-height: 1.4;
  }

  .age-gate__notice {
    max-width: 330px;
    padding: 0 4px;
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .age-gate__title {
    font-size: clamp(1.42rem, 7vw, 1.75rem);
    letter-spacing: 0.015em;
  }

  .age-gate__copy {
    max-width: 300px;
    font-size: 1rem;
  }
}

/* ==================================================
   VERSION GATE — RESPONSIVE TITLE FINAL
   Desktop: one cinematic line when space allows.
   Mobile/tablet: balanced, centered wrapping.
================================================== */
.age-gate__content {
  width: 100%;
  max-width: none;
  padding-left: 2rem;
  padding-right: 2rem;
}

.age-gate__title {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(3.2rem, 6.5vw, 8rem);
  line-height: 0.95;
  letter-spacing: 0.07em;
  white-space: nowrap;
  text-align: center;
}

@media (max-width: 900px) {
  .age-gate__content {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  .age-gate__title {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 9vw, 4.5rem);
    line-height: 1;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
    text-wrap: balance;
  }
}

@media (max-width: 620px) {
  .age-gate__title {
    font-size: clamp(1.75rem, 8.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0.025em;
    text-align: center;
    text-wrap: balance;
  }
}

@media (max-width: 390px) {
  .age-gate__title {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
    letter-spacing: 0.018em;
  }
}
