/* fl718-monument-valley.css — Monument Valley Location Page  v1.0.2
 *
 * All rules scoped to body.fl718-monument-valley-page.
 * Extracted from monument-valley-index.html prototype.
 * Fonts: Abril Fatface, DM Sans (Google Fonts — loaded in functions.php)
 * No ScrollTrigger — IntersectionObserver only.
 */

/* ------------------------------------------------------------
   BASE RESET & BODY
   ------------------------------------------------------------ */
body.fl718-monument-valley-page {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #f2ece4;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

:where(body.fl718-monument-valley-page) *,
:where(body.fl718-monument-valley-page) *::before,
:where(body.fl718-monument-valley-page) *::after {
  box-sizing: border-box;
}

body.fl718-monument-valley-page img {
  max-width: 100%;
  display: block;
}

body.fl718-monument-valley-page .fl718-mv-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
body.fl718-monument-valley-page .fl718-mv-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: calc(100vh + 56px);
  margin-top: -56px;
  overflow: clip;
  background-color: #ede8e0;
}

body.fl718-monument-valley-page .fl718-mv-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.28;
}

body.fl718-monument-valley-page .fl718-mv-hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72 0.68' numOctaves='4' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: screen;
  opacity: 0;
}

body.fl718-monument-valley-page .fl718-mv-hero__grain-shadow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='grain2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65 0.71' numOctaves='3' seed='27' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23grain2)' opacity='0.85'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: multiply;
  opacity: 0;
}

body.fl718-monument-valley-page .fl718-mv-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.fl718-monument-valley-page .fl718-mv-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.22) 30%,
    transparent 54%
  );
  opacity: 0;
}

body.fl718-monument-valley-page .fl718-mv-hero__text {
  position: absolute;
  top: 0;
  right: 0;
  max-width: clamp(520px, 35vw, 640px);
  padding: calc(56px + clamp(1.25rem, 2.5vw, 2.75rem)) clamp(1.5rem, 3.5vw, 3.5rem) 0;
  text-align: right;
}

body.fl718-monument-valley-page .fl718-mv-hero__title {
  font-family: 'Abril Fatface', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 4.2vw, 5.0rem);
  letter-spacing: 0.04em;
  line-height: 0.92;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  display: block;
  margin: 0 0 0.5em 0;
  opacity: 0;
}

body.fl718-monument-valley-page .fl718-mv-hero__subtitle {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 0.9vw, 0.78rem);
  letter-spacing: 0.22em;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255, 255, 255, 0.68);
  display: block;
  margin: 0;
  opacity: 0;
}

/* ------------------------------------------------------------
   GALLERY GRID
   ------------------------------------------------------------ */
body.fl718-monument-valley-page .fl718-mv-grid {
  column-count: 3;
  column-gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(clamp(2.5rem, 5vw, 4rem) + 2rem) 25px clamp(4rem, 6vw, 6rem);
}

@media (max-width: 768px) {
  body.fl718-monument-valley-page .fl718-mv-grid {
    column-count: 2;
  }
}

@media (max-width: 480px) {
  body.fl718-monument-valley-page .fl718-mv-grid {
    column-count: 1;
  }
}

body.fl718-monument-valley-page .fl718-mv-item {
  break-inside: avoid;
  margin: 0 0 12px 0;
  overflow: clip;
  opacity: 0;
  cursor: pointer;
  position: relative;
  transform-origin: center center;
}

body.fl718-monument-valley-page .fl718-mv-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   HOVER OVERLAYS — "The Approach Through Grain"
   ------------------------------------------------------------ */
body.fl718-monument-valley-page .fl718-mv-item__veil {
  position: absolute;
  inset: 0;
  background: rgba(22, 12, 6, 0.18);
  pointer-events: none;
  z-index: 1;
}

body.fl718-monument-valley-page .fl718-mv-item__grain-screen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='gbc1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.68 0.72' numOctaves='4' seed='19' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gbc1)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 2;
}

body.fl718-monument-valley-page .fl718-mv-item__grain-mul {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='gbc2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.58 0.65' numOctaves='3' seed='34' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gbc2)' opacity='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
  mix-blend-mode: multiply;
  opacity: 0;
  z-index: 2;
}

body.fl718-monument-valley-page .fl718-mv-item__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 45%,
    rgba(18, 8, 4, 0.12) 70%,
    rgba(14, 6, 2, 0.32) 100%
  );
}

body.fl718-monument-valley-page .fl718-mv-item__vignette--bw {
  background: radial-gradient(
    ellipse 90% 90% at 50% 50%,
    transparent 45%,
    rgba(8, 8, 8, 0.10) 70%,
    rgba(4, 4, 4, 0.28) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page .fl718-mv-item__veil,
  body.fl718-monument-valley-page .fl718-mv-item__grain-screen,
  body.fl718-monument-valley-page .fl718-mv-item__grain-mul,
  body.fl718-monument-valley-page .fl718-mv-item__vignette {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   LIGHTBOX — "The Long Road In"
   ------------------------------------------------------------ */
body.fl718-monument-valley-page .fl718-mv-lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(247, 243, 238, 0);
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

body.fl718-monument-valley-page .fl718-mv-lb.fl718-mv-lb--open {
  display: flex;
}

body.fl718-monument-valley-page .fl718-mv-lb__inner {
  position: relative;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.fl718-monument-valley-page .fl718-mv-lb__image {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.09),
    0 18px 48px rgba(0,0,0,0.07);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page .fl718-mv-lb__image {
    opacity: 1 !important;
  }
}

body.fl718-monument-valley-page .fl718-mv-lb__caption {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  font-weight: 300;
  color: #9a8a7a;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
  opacity: 0;
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page .fl718-mv-lb__caption {
    opacity: 1 !important;
  }
}

body.fl718-monument-valley-page .fl718-mv-lb__clone {
  position: fixed;
  pointer-events: none;
  z-index: 9500;
  display: block;
  box-shadow:
    0 1px 4px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.09),
    0 18px 48px rgba(0,0,0,0.07);
}

body.fl718-monument-valley-page .fl718-mv-lb__close {
  position: absolute;
  top: -52px;
  right: -8px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(80, 60, 40, 0.22);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: color 0.25s ease;
  opacity: 0;
}

body.fl718-monument-valley-page .fl718-mv-lb__close:hover {
  color: rgba(80, 60, 40, 0.7);
}

body.fl718-monument-valley-page .fl718-mv-lb__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 80px;
  background: none;
  border: none;
  color: rgba(80, 60, 40, 0.15);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: color 0.2s ease;
}

body.fl718-monument-valley-page .fl718-mv-lb__nav:hover {
  color: rgba(80, 60, 40, 0.5);
}

body.fl718-monument-valley-page .fl718-mv-lb__close:focus-visible,
body.fl718-monument-valley-page .fl718-mv-lb__nav:focus-visible {
  outline: 2px solid rgba(80, 60, 40, 0.5);
  outline-offset: 3px;
}

body.fl718-monument-valley-page .fl718-mv-lb__nav--prev { left: 0.5rem; }
body.fl718-monument-valley-page .fl718-mv-lb__nav--next { right: 0.5rem; }

body.fl718-monument-valley-page .fl718-mv-lb__counter {
  position: fixed;
  top: 1.75rem;
  left: 1.75rem;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(80, 60, 40, 0.22);
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  z-index: 9100;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page .fl718-mv-lb__counter {
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  body.fl718-monument-valley-page .fl718-mv-lb__inner {
    max-width: 100vw;
    max-height: 100svh;
  }
  body.fl718-monument-valley-page .fl718-mv-lb__image {
    max-height: calc(100svh - 140px);
  }
  body.fl718-monument-valley-page .fl718-mv-lb__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(180, 160, 140, 0.15);
    border-radius: 50%;
    color: rgba(80, 60, 40, 0.4);
  }
  body.fl718-monument-valley-page .fl718-mv-lb__nav--prev { left: 0; }
  body.fl718-monument-valley-page .fl718-mv-lb__nav--next { right: 0; }
}

/* ------------------------------------------------------------
   AFTER-CONTENT — "Horizon Line"
   ------------------------------------------------------------ */
body.fl718-monument-valley-page .fl718-mv-after {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem) 250px;
}

body.fl718-monument-valley-page .fl718-mv-after__rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ccc6bc;
  margin: 0 0 37px;
}

body.fl718-monument-valley-page .fl718-mv-after__acknowledgment {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #9a9088;
  line-height: 1.6;
  margin: 0 0 28px;
  font-style: italic;
}

body.fl718-monument-valley-page .fl718-mv-after__eyebrow {
  display: block;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9088;
  margin: 0 0 18px;
}

body.fl718-monument-valley-page .fl718-mv-after__eyebrow--second {
  margin-top: 32px;
}

body.fl718-monument-valley-page .fl718-mv-after__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fl718-monument-valley-page .fl718-mv-after__term {
  display: flex;
  align-items: baseline;
}

body.fl718-monument-valley-page .fl718-mv-after__link {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7d756c;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  transition: color 0.4s ease, background-size 0.4s ease;
}

body.fl718-monument-valley-page .fl718-mv-after__link:hover {
  color: #3d3530;
  background-size: 100% 1px;
}

body.fl718-monument-valley-page .fl718-mv-after__sep {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 13px;
  color: #ccc6bc;
  padding: 0 18px;
  user-select: none;
  position: relative;
  top: -1px;
}

@media (max-width: 600px) {
  body.fl718-monument-valley-page .fl718-mv-after {
    padding-bottom: 120px;
  }
  body.fl718-monument-valley-page .fl718-mv-after__link {
    font-size: 14px;
    letter-spacing: 0.1em;
  }
  body.fl718-monument-valley-page .fl718-mv-after__sep {
    font-size: 11px;
    padding: 0 12px;
  }
  body.fl718-monument-valley-page .fl718-mv-after__eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
  }
  body.fl718-monument-valley-page .fl718-mv-after__acknowledgment {
    font-size: 11px;
  }
}

@media (max-width: 375px) {
  body.fl718-monument-valley-page .fl718-mv-after__terms {
    flex-direction: column;
    gap: 14px;
  }
  body.fl718-monument-valley-page .fl718-mv-after__term[aria-hidden="true"] {
    display: none;
  }
}

/* ------------------------------------------------------------
   PREFERS-REDUCED-MOTION + NO-JS FALLBACKS
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page .fl718-mv-item {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  body.fl718-monument-valley-page .fl718-mv-lb__caption {
    animation: none !important;
    opacity: 1 !important;
  }
  body.fl718-monument-valley-page .fl718-mv-hero__image {
    opacity: 1 !important;
  }
  body.fl718-monument-valley-page .fl718-mv-hero__grain,
  body.fl718-monument-valley-page .fl718-mv-hero__grain-shadow {
    opacity: 0 !important;
    display: none;
  }
  body.fl718-monument-valley-page .fl718-mv-hero__gradient,
  body.fl718-monument-valley-page .fl718-mv-hero__title,
  body.fl718-monument-valley-page .fl718-mv-hero__subtitle {
    opacity: 1 !important;
  }
}

body.fl718-monument-valley-page:not(.fl718-js-loaded) .fl718-mv-item {
  opacity: 1;
}

body.fl718-monument-valley-page:not(.fl718-js-loaded) .fl718-mv-hero__image,
body.fl718-monument-valley-page:not(.fl718-js-loaded) .fl718-mv-hero__gradient,
body.fl718-monument-valley-page:not(.fl718-js-loaded) .fl718-mv-hero__title,
body.fl718-monument-valley-page:not(.fl718-js-loaded) .fl718-mv-hero__subtitle {
  opacity: 1;
}


/* ─── MENU CURTAIN ─────────────────────────────────────────────────────────── */

body.fl718-monument-valley-page #fl718-danlann-thread {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(185, 158, 98, 0.7);
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}

body.fl718-monument-valley-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
  animation: fl718-mv-thread-breathe 3s ease-in-out infinite;
}

body.fl718-monument-valley-page #fl718-danlann-hover-zone {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 10000;
  cursor: pointer;
}

body.fl718-monument-valley-page #fl718-menu-recall {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  color: rgba(185, 158, 98, 0.85);
  opacity: 0;
  z-index: 10001;
  cursor: pointer;
  pointer-events: none;
  user-select: none;
  letter-spacing: 0.05em;
}

body.fl718-monument-valley-page #fl718-menu-recall:hover {
  color: rgba(185, 158, 98, 1);
}

@keyframes fl718-mv-thread-breathe {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-monument-valley-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
    animation: none;
    opacity: 0.7;
  }
}
