/* fl718-taos.css — Taos, New Mexico Location Page  v1.0.0
 *
 * All rules scoped to body.fl718-taos-page.
 * Extracted from taos-index.html prototype.
 * Fonts: IM Fell English, DM Sans (Google Fonts — loaded in functions.php)
 * No ScrollTrigger — IntersectionObserver only.
 * Grid: 2-col editorial layout (portrait-centric collection).
 */

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

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

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

/* ------------------------------------------------------------
   VISUALLY HIDDEN
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-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;
}

/* ------------------------------------------------------------
   MENU CURTAIN RECALL — thread + glyph
   ------------------------------------------------------------ */
body.fl718-taos-page #fl718-danlann-thread {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(196,139,60,0.6) 30%, rgba(196,139,60,0.85) 50%, rgba(196,139,60,0.6) 70%, transparent 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: height 0.2s ease;
}

body.fl718-taos-page #fl718-danlann-thread.fl718-danlann-thread--breathing {
  animation: fl718TnThreadBreathe 3.8s ease-in-out infinite;
}

@keyframes fl718TnThreadBreathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.95; }
}

body.fl718-taos-page #fl718-danlann-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 9998;
  display: none;
  cursor: pointer;
}

body.fl718-taos-page #fl718-menu-recall {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: rgba(196,139,60,0.75);
  user-select: none;
  line-height: 1;
}

body.fl718-taos-page #fl718-menu-recall:focus-visible {
  outline: 2px solid rgba(196,139,60,0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 56px);
  margin-top: -56px;
  overflow: clip;
  background-color: #e6d9cc;
}

body.fl718-taos-page .fl718-tn-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) contrast(0.9) saturate(0.7);
  transform: scale(1.022);
  transform-origin: 50% 55%;
}

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

body.fl718-taos-page .fl718-tn-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(12, 6, 2, 0.55) 0%,
    rgba(12, 6, 2, 0.22) 38%,
    transparent 60%
  );
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-hero__text {
  position: absolute;
  top: calc(56px + clamp(1.4rem, 2.6vw, 2.8rem));
  right: 0;
  max-width: clamp(280px, 30vw, 500px);
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  text-align: right;
}

body.fl718-taos-page .fl718-tn-hero__title {
  font-family: 'IM Fell English', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.7rem, 4.2vw, 5.0rem);
  letter-spacing: -0.01em;
  line-height: 0.98;
  text-transform: none;
  color: rgba(255, 252, 245, 0.92);
  display: block;
  margin: 0 0 0.55em 0;
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-hero__subtitle {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(0.6rem, 0.85vw, 0.75rem);
  letter-spacing: 0.22em;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255, 248, 232, 0.58);
  display: block;
  margin: 0;
  opacity: 0;
}

/* ------------------------------------------------------------
   GALLERY GRID — 2-col editorial layout
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 4rem);
  padding-top: 14vh;
  padding-bottom: 12vh;
}

body.fl718-taos-page .fl718-tn-item {
  overflow: clip;
  opacity: 0;
  cursor: pointer;
  position: relative;
  transform-origin: center center;
  margin: 0;
}

body.fl718-taos-page .fl718-tn-item img {
  width: 100%;
  height: auto;
  display: block;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(odd) {
  width: 64%;
  margin-left: auto;
  margin-bottom: 14vh;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(even) {
  width: 64%;
  margin-right: auto;
  margin-bottom: 14vh;
}

body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  body.fl718-taos-page .fl718-tn-grid {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10vh;
  }
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(odd),
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8vh;
  }
  body.fl718-taos-page .fl718-tn-grid .fl718-tn-item:last-child {
    margin-bottom: 0;
  }
}

/* ------------------------------------------------------------
   HOVER OVERLAYS — "Dust in the Frame"
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-item__veil {
  position: absolute;
  inset: 0;
  background: rgba(28, 14, 8, 0.16);
  pointer-events: none;
  z-index: 1;
}

body.fl718-taos-page .fl718-tn-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='gtn1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.70 0.74' numOctaves='4' seed='23' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gtn1)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  mix-blend-mode: screen;
  opacity: 0;
  z-index: 2;
}

body.fl718-taos-page .fl718-tn-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='gtn2'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.60 0.66' numOctaves='3' seed='41' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23gtn2)' 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-taos-page .fl718-tn-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(22, 10, 4, 0.12) 70%,
    rgba(18, 7, 2, 0.30) 100%
  );
}

body.fl718-taos-page .fl718-tn-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-taos-page .fl718-tn-item__veil,
  body.fl718-taos-page .fl718-tn-item__grain-screen,
  body.fl718-taos-page .fl718-tn-item__grain-mul,
  body.fl718-taos-page .fl718-tn-item__vignette {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   LIGHTBOX — "The Dust Field"
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-defs-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-page-blur {
  position: fixed;
  inset: 0;
  z-index: 8000;
  backdrop-filter: blur(0px) brightness(1);
  -webkit-backdrop-filter: blur(0px) brightness(1);
  pointer-events: none;
  background: rgba(230, 217, 204, 0);
}

body.fl718-taos-page .fl718-tn-lb-grain {
  position: fixed;
  inset: 0;
  z-index: 8100;
  background: rgba(215, 188, 156, 0);
  filter: url(#tnDustGrain);
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-grain--active {
  pointer-events: auto;
  cursor: default;
}

body.fl718-taos-page .fl718-tn-lb-stage {
  position: fixed;
  inset: 0;
  z-index: 8200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}

body.fl718-taos-page .fl718-tn-lb-stage--active {
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100dvh - 160px);
  filter: drop-shadow(0 8px 40px rgba(30, 14, 5, 0.45)) drop-shadow(0 2px 8px rgba(30, 14, 5, 0.3));
}

body.fl718-taos-page .fl718-tn-lb-image {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border: 8px solid rgba(248, 240, 230, 0.94);
  box-sizing: border-box;
  will-change: opacity, transform;
}

body.fl718-taos-page .fl718-tn-lb-caption {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  font-weight: 300;
  color: rgba(255, 248, 232, 0.55);
  text-align: center;
  margin-top: 1.2rem;
  letter-spacing: 0.14em;
  opacity: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.fl718-taos-page .fl718-tn-lb-ui {
  position: fixed;
  inset: 0;
  z-index: 8300;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-ui--active {
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-close {
  position: absolute;
  top: clamp(1rem, 2vh, 1.75rem);
  right: clamp(1rem, 2vw, 1.75rem);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: rgba(255, 248, 232, 0.4);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: color 0.2s ease;
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-close:hover {
  color: rgba(255, 248, 232, 0.85);
}

body.fl718-taos-page .fl718-tn-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 80px;
  background: none;
  border: none;
  color: rgba(255, 248, 232, 0.28);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transition: color 0.2s ease;
  pointer-events: auto;
}

body.fl718-taos-page .fl718-tn-lb-nav:hover {
  color: rgba(255, 248, 232, 0.7);
}

body.fl718-taos-page .fl718-tn-lb-nav--prev { left: 0.5rem; }
body.fl718-taos-page .fl718-tn-lb-nav--next { right: 0.5rem; }

body.fl718-taos-page .fl718-tn-lb-counter {
  position: absolute;
  top: clamp(1rem, 2vh, 1.75rem);
  left: clamp(1rem, 2vw, 1.75rem);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 248, 232, 0.35);
  opacity: 0;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-film-badge {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  right: clamp(1rem, 2vw, 1.75rem);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 248, 232, 0.38);
  opacity: 0;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-lb-close:focus-visible,
body.fl718-taos-page .fl718-tn-lb-nav:focus-visible {
  outline: 2px solid rgba(255, 248, 232, 0.5);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.fl718-taos-page .fl718-tn-lb-image-wrap {
    max-width: 100vw;
    max-height: 100svh;
  }
  body.fl718-taos-page .fl718-tn-lb-image {
    max-height: calc(100svh - 140px);
    border-width: 4px;
  }
  body.fl718-taos-page .fl718-tn-lb-nav--prev { left: 0; }
  body.fl718-taos-page .fl718-tn-lb-nav--next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-taos-page .fl718-tn-lb-caption { opacity: 1 !important; }
}

/* ------------------------------------------------------------
   AFTER-CONTENT — "The Room After"
   ------------------------------------------------------------ */
body.fl718-taos-page .fl718-tn-after {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 4rem) 250px;
}

body.fl718-taos-page .fl718-tn-after__rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: #cfc5b8;
  margin: 0 0 37px;
}

body.fl718-taos-page .fl718-tn-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 52px;
  font-style: italic;
}

body.fl718-taos-page .fl718-tn-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-taos-page .fl718-tn-after__eyebrow--second {
  margin-top: 48px;
}

body.fl718-taos-page .fl718-tn-after__terms {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.fl718-taos-page .fl718-tn-after__break {
  width: 100%;
  height: 0;
  pointer-events: none;
}

body.fl718-taos-page .fl718-tn-after__term {
  display: flex;
  align-items: baseline;
}

body.fl718-taos-page .fl718-tn-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-taos-page .fl718-tn-after__link:hover {
  color: #3d3530;
  background-size: 100% 1px;
}

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

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

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

/* ------------------------------------------------------------
   PREFERS-REDUCED-MOTION + NO-JS FALLBACKS
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.fl718-taos-page .fl718-tn-item {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  body.fl718-taos-page .fl718-tn-hero__image {
    filter: none !important;
    transform: scale(1) !important;
  }
  body.fl718-taos-page .fl718-tn-hero__gradient,
  body.fl718-taos-page .fl718-tn-hero__title,
  body.fl718-taos-page .fl718-tn-hero__subtitle {
    opacity: 1 !important;
  }
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-item {
  opacity: 1;
  filter: none;
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__image {
  opacity: 1;
  filter: none;
  transform: scale(1);
}

body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__gradient,
body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__title,
body.fl718-taos-page:not(.fl718-js-loaded) .fl718-tn-hero__subtitle {
  opacity: 1;
}
