/* ==========================================================================
   LU Photo Portal — dark, minimal "ecosystem" hub page for the photography
   universe. Structural/interaction concept: fixed nav clock + hint line,
   giant split-text hero, a tap-to-navigate orbit of ecosystem nodes, and a
   card grid below. All copy below is original LUCHEN copy.
   ========================================================================== */

:root {
  --lppz-nav-h: 80px;
  --lppz-bg: #06000a;
  --lppz-ink: #f4f1ea;
  --lppz-ink-dim: rgba(244, 241, 234, 0.62);
  --lppz-ink-faint: rgba(244, 241, 234, 0.34);
  --lppz-gold: #cab88b;
  --lppz-rose: #d99a9c;
  --lppz-teal: #7ec8b9;
  --lppz-azure: #8fb6e0;
}

.lppz-page {
  background: var(--lppz-bg);
  color: var(--lppz-ink);
}

.lppz-page * {
  box-sizing: border-box;
}

/* ---- Preloader ----------------------------------------------------------- */
.lppz-preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--lppz-bg);
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.lppz-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lppz-preloader-mark {
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 600;
  letter-spacing: 0.32em;
  font-size: clamp(0.75rem, 3.2vw, 1.15rem);
  color: var(--lppz-gold);
}

.lppz-preloader-count {
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-size: 1.00rem;
  font-weight: 300;
  color: var(--lppz-ink);
  letter-spacing: 0.02em;
}

.lppz-preloader-pct {
  color: var(--lppz-ink-faint);
  font-size: 0.72rem;
  margin-left: 2px;
}

/* ---- Ambient background canvas ------------------------------------------- */
.lppz-bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- Layout shell --------------------------------------------------------- */
.lppz-main {
  position: relative;
  z-index: 1;
}

.lppz-hero {
  position: relative;
  min-height: 100vh;
  padding: var(--lppz-nav-h) clamp(20px, 6vw, 80px) clamp(40px, 8vh, 96px);
  display: grid;
  place-items: center;
}

/* ---- Top-center cycling clock --------------------------------------------- */
.lppz-topline {
  position: absolute;
  top: calc(var(--lppz-nav-h) + clamp(10px, 2.4vh, 26px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  letter-spacing: 0.14em;
  color: var(--lppz-ink-dim);
  pointer-events: none;
}

.lppz-bracket {
  color: var(--lppz-ink-faint);
}

.lppz-clock-loc {
  color: var(--lppz-ink);
  min-width: 3ch;
  text-align: center;
}

.lppz-clock-time {
  color: var(--lppz-ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Headline (bottom-left) + About pill ---------------------------------- */
.lppz-hero-foot {
  position: absolute;
  left: clamp(20px, 6vw, 80px);
  bottom: clamp(34px, 8vh, 84px);
  z-index: 5;
  max-width: min(46vw, 640px);
  text-align: left;
}

.lppz-headline {
  margin: 0;
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 3.6vw, 3.45rem);
  color: var(--lppz-ink);
}

.lppz-headline-group {
  display: block;
  line-height: 1.25;
}

.lppz-headline-group--name .lppz-word:nth-of-type(2) {
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.13em;
}

.lppz-headline .lppz-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.lppz-headline .lppz-word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.lppz-headline-group.is-revealed .lppz-word-inner {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* ---- Ecosystem dial --------------------------------------------------------- */
.lppz-dial-w {
  position: relative;
  --lppz-dial-scale: 1;
  width: clamp(320px, 60vh, 620px);
  height: clamp(320px, 60vh, 620px);
  max-width: 88vw;
  max-height: 88vw;
  transform: scale(var(--lppz-dial-scale));
  transform-origin: center center;
  /* faint lifted glow so the lens emerges from darkness */
  isolation: isolate;
}

.lppz-dial-w::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 132%;
  height: 132%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(150, 165, 195, 0.06) 0%, rgba(120, 135, 170, 0.03) 34%, rgba(0, 0, 0, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1281px) {
  .lppz-dial-w {
    --lppz-dial-scale: clamp(1, calc(1 + (100vw - 1280px) / 640px), 1.25);
  }
}

/* The global 24px mobile-menu blur turns the animated WebGL dial into a
   low-detail raster on mobile GPUs. Keep the glass character on this page
   with a lighter blur and a denser neutral tint. */
@media (max-width: 991px) {
  .lppz-page .navigation-mobile .menu-list-wrapper {
    background-color: rgba(6, 0, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

.lppz-dial-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* WebGL ring surface (real per-pixel lighting) */
.lppz-ring-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: none;
  pointer-events: none;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

.lppz-dial-w.lppz-ring-webgl .lppz-ring-canvas {
  display: block;
}

/* when WebGL drives the rings, the SVG dial is redundant */
.lppz-dial-w.lppz-ring-webgl .lppz-dial-svg {
  display: none;
}

/* physics-driven depth layers get their transforms set per-frame in JS */
.lppz-layer {
  will-change: transform;
}

.lppz-dividers line {
  stroke: rgba(0, 0, 0, 0.55);
  stroke-width: 2;
}

/* subtle living rotation of the directional arrows */
.lppz-arrows-spin {
  transform-box: view-box;
  transform-origin: 300px 300px;
  animation: lppz-spin 46s linear infinite;
}

.lppz-dial-w:hover .lppz-arrows-spin {
  animation-play-state: paused;
}

@keyframes lppz-spin {
  to { transform: rotate(360deg); }
}

.lppz-ring-brand text {
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.28em;
  fill: rgba(244, 241, 234, 0.34);
}

.lppz-ring-label {
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.07em;
  fill: rgba(244, 241, 234, 0.42);
  transition: fill 0.35s ease;
}

.lppz-ring-label.is-active {
  fill: var(--lppz-ink);
}

.lppz-ring-arrow path {
  fill: none;
  stroke: rgba(244, 241, 234, 0.42);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lppz-ring-arrow path:last-child {
  fill: rgba(244, 241, 234, 0.42);
  stroke: none;
}

/* ---- Glassy camera-lens center -------------------------------------------- */
.lppz-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40%;
  height: 40%;
  /* --hub-x/y = cursor parallax, --hub-s = proximity micro-expansion (JS) */
  transform: translate(calc(-50% + var(--hub-x, 0px)), calc(-50% + var(--hub-y, 0px))) scale(var(--hub-s, 1));
  z-index: 4;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(210, 222, 245, 0.16);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.72),
    0 0 0 6px rgba(0, 0, 0, 0.32),
    inset 0 0 16px rgba(230, 240, 255, 0.12),
    inset 0 0 42px rgba(0, 0, 0, 0.9),
    inset 0 -18px 36px rgba(0, 0, 0, 0.72),
    0 22px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  will-change: transform;
  transition: border-color 0.35s ease;
}

.lppz-hub:hover,
.lppz-hub:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
}

.lppz-hub-photo-w {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

/* WebGL lens surface */
.lppz-lens-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lppz-hub.lppz-webgl .lppz-lens-canvas {
  opacity: 1;
}

/* when WebGL drives the lens, the flat photo + CSS glass are redundant */
.lppz-hub.lppz-webgl .lppz-hub-photo-w img {
  opacity: 0;
}

.lppz-hub.lppz-webgl .lppz-hub-glass {
  display: none;
}

.lppz-hub-photo-w img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* --ca = chromatic refraction offset driven by proximity (JS) */
  filter: saturate(0.95) contrast(1.08) brightness(0.9)
    drop-shadow(var(--ca, 0px) 0 0 rgba(255, 40, 40, 0.35))
    drop-shadow(calc(-1 * var(--ca, 0px)) 0 0 rgba(40, 120, 255, 0.35));
  transition: opacity 0.4s ease;
}

.lppz-hub-photo-w img.is-fading {
  opacity: 0;
}

/* the reflective "lens glass" over the photo — its highlight slides slowly
   and independently from the metal (soft, liquid optical reflection) */
.lppz-hub-glass {
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(var(--glass-x, 0px), var(--glass-y, 0px));
  will-change: transform;
  background:
    radial-gradient(120% 120% at 38% 30%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 22%, rgba(0, 0, 0, 0) 46%),
    radial-gradient(130% 130% at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.55) 100%);
  mix-blend-mode: screen;
}

.lppz-hub-glass::after {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.22), inset 0 -10px 24px rgba(0, 0, 0, 0.5);
}

/* ---- Quadrant hotspots (hover to preview, click to enter) ----------------- */
.lppz-hot {
  position: absolute;
  width: 50%;
  height: 50%;
  z-index: 3;
  display: block;
  text-decoration: none !important;
}

.lppz-hot.is-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

.lppz-hot.is-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

/* The outer metal/brand ring is the default LUCHEN Watson state. These four
   thin hit zones sit above the broad section hotspots without covering the
   inner GALLERY ONE / Gears Showcase ring. */
.lppz-default-hot {
  position: absolute;
  z-index: 5;
  display: block;
  pointer-events: auto;
}

.lppz-default-hot.is-top,
.lppz-default-hot.is-bottom {
  left: 0;
  width: 100%;
  height: 18%;
}

.lppz-default-hot.is-top { top: 0; }
.lppz-default-hot.is-bottom { bottom: 0; }

.lppz-default-hot.is-left,
.lppz-default-hot.is-right {
  top: 18%;
  width: 18%;
  height: 64%;
}

.lppz-default-hot.is-left { left: 0; }
.lppz-default-hot.is-right { right: 0; }

@media (max-width: 640px) {
  .lppz-hero-foot {
    max-width: min(88vw, 640px);
    bottom: clamp(24px, 5vh, 48px);
  }

  .lppz-ring-brand text {
    font-size: 12px;
    letter-spacing: 0.2em;
  }

  .lppz-ring-label {
    font-size: 14px;
    letter-spacing: 0.03em;
  }
}

/* ---- Ecosystem grid --------------------------------------------------------- */
.lppz-ecosystem {
  position: relative;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 6vw, 80px) clamp(80px, 12vh, 140px);
  max-width: 1280px;
  margin: 0 auto;
}

.lppz-ecosystem-head {
  max-width: 46ch;
  margin-bottom: clamp(36px, 6vh, 56px);
}

.lppz-ecosystem-head h2 {
  margin: 0 0 12px;
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--lppz-ink);
}

.lppz-ecosystem-head p {
  margin: 0;
  font-family: var(--jost-font, "Poppins"), sans-serif;
  color: var(--lppz-ink-dim);
  line-height: 1.6;
}

.lppz-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
}

@media (max-width: 760px) {
  .lppz-ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

.lppz-eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none !important;
  background: rgba(244, 241, 234, 0.03);
  border: 1px solid rgba(244, 241, 234, 0.1);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.lppz-eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.lppz-eco-card[data-color="gold"]:hover { border-color: rgba(202, 184, 139, 0.55); }
.lppz-eco-card[data-color="rose"]:hover { border-color: rgba(217, 154, 156, 0.55); }
.lppz-eco-card[data-color="teal"]:hover { border-color: rgba(126, 200, 185, 0.55); }
.lppz-eco-card[data-color="azure"]:hover { border-color: rgba(143, 182, 224, 0.55); }

.lppz-eco-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.lppz-eco-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.82);
  transition: filter 0.35s ease, transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.lppz-eco-card:hover .lppz-eco-media img {
  filter: saturate(1) brightness(0.95);
  transform: scale(1.04);
}

.lppz-eco-copy {
  position: relative;
  padding: 20px clamp(18px, 3vw, 26px) 24px;
}

.lppz-eco-index {
  display: block;
  font-family: ui-monospace, "Courier New", monospace;
  font-size: 0.72rem;
  color: var(--lppz-ink-faint);
  margin-bottom: 8px;
}

.lppz-eco-copy h3 {
  margin: 0 0 8px;
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--lppz-ink);
}

.lppz-eco-copy p {
  margin: 0;
  font-family: var(--jost-font, "Poppins"), sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--lppz-ink-dim);
}

/* ---- Cookie bar -------------------------------------------------------------- */
.lppz-cookie {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  max-width: 560px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(14, 12, 10, 0.85);
  border: 1px solid rgba(244, 241, 234, 0.12);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.4s ease;
}

.lppz-cookie[hidden] {
  display: flex !important;
  pointer-events: none;
}

.lppz-cookie.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.lppz-cookie-text {
  flex: 1 1 260px;
  margin: 0;
  font-family: var(--jost-font, "Poppins"), sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--lppz-ink-dim);
}

.lppz-cookie-text a {
  color: var(--lppz-gold) !important;
}

.lppz-cookie-actions {
  display: flex;
  gap: 8px;
}

.lppz-cookie-btn {
  padding: 9px 16px;
  border-radius: 30px;
  font-family: var(--primary-font, "Montserrat"), sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(244, 241, 234, 0.25);
  background: transparent;
  color: var(--lppz-ink-dim);
  transition: all 0.2s ease;
}

.lppz-cookie-btn.is-solid {
  background: var(--lppz-gold);
  border-color: var(--lppz-gold);
  color: #1a1408;
}

.lppz-cookie-btn:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .lppz-preloader,
  .lppz-cookie,
  .lppz-headline-group .lppz-word-inner,
  .lppz-hub,
  .lppz-hub-photo-w img,
  .lppz-ring-label {
    transition: none !important;
  }

  .lppz-arrows-spin {
    animation: none !important;
  }
}
