/* ==========================================================================
   Light Zone Photography - landing page
   --------------------------------------------------------------------------
   Only the landing page uses these: the full-height WebGL hero, the scrolling marquee and the testimonial quotes.

   Loaded by: the landing page only
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: calc(var(--header-h) + 2rem);
  overflow: hidden;
  isolation: isolate;
}

/* The Three.js canvas lives behind the type, never above it */
.hero__stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

/* The renderer appends its canvas as the last child; on the interior pages
   that child follows a cover <img>, so it has to be taken out of flow. */
.hero__stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to top, var(--ink-900) 2%, rgba(8, 8, 12, 0.35) 42%, transparent 70%),
    linear-gradient(to right, rgba(8, 8, 12, 0.7), transparent 55%);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}

/* Slightly tighter than --fs-display. The longest line ("Your actual day.")
   runs about 5.1x the font size, and the shared display scale sizes it past
   the column on mid-width screens, which wraps the line and breaks the
   three-beat rhythm. This scale keeps all three lines unwrapped everywhere. */
.hero__title {
  font-size: clamp(2.9rem, min(9.4vw, 15vh), 9rem);
  line-height: 0.86;
  letter-spacing: -0.042em;
}
.hero__title span { display: block; }

/* The keyword line beneath the headline. Sits under the last mask line and
   picks up the same left edge, so the left column reads as one block. */
.hero__standfirst {
  margin: clamp(1.1rem, 2.2vw, 1.6rem) 0 0;
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--text-dim);
}
.hero__standfirst strong {
  font-weight: 500;
  color: var(--text);
}

/* Each line rises from below its own 3D floor */
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line-mask > span {
  display: block;
  transform: translateY(105%) rotateX(-42deg);
  transform-origin: top center;
  opacity: 0;
  transition: transform 1.15s var(--ease-out), opacity 0.9s var(--ease-out);
}
.is-ready .line-mask > span { transform: none; opacity: 1; }
.is-ready .line-mask:nth-of-type(2) > span { transition-delay: 0.12s; }
.is-ready .line-mask:nth-of-type(3) > span { transition-delay: 0.24s; }

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  max-width: 22rem;
  padding-bottom: 0.75rem;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollpulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(1); opacity: 1; transform-origin: top; }
  50% { transform: scaleY(0.35); opacity: 0.45; transform-origin: top; }
}

/* Compact hero for interior pages */

/* --- Marquee ----------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-block: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee__item::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }


/* --- Testimonials ------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.quote {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  display: grid;
  gap: 1.5rem;
  align-content: start;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out), border-color 0.6s, box-shadow 0.7s;
}
.quote:hover {
  transform: perspective(var(--depth)) translateZ(34px) rotateX(3deg);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: var(--shadow-lift);
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.3;
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--text);
}
.quote__by { display: grid; gap: 0.2rem; }
.quote__name { font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; }
.quote__role { font-size: var(--fs-small); color: var(--text-faint); }

/* --- Live Google rating -------------------------------------------------- */
/* Filled by tools/fetch-google-reviews.ps1. Text only, no review schema:
   Google penalises a business marking up its own reviews as structured data. */

.reviews__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.reviews__score {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--text);
}

.stars {
  display: inline-flex;
  gap: 0.12em;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  letter-spacing: 0.06em;
  color: var(--accent);
  /* The glyphs are text, so they inherit the gold without an image request. */
  line-height: 1;
}

.reviews__count {
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.quote__stars {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

/* Shown while data/reviews.json has no entries, in place of the quote grid. */
.reviews__empty {
  margin: 0 auto;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-dim);
}

/* The link across to the Google listing, under whichever of the two appears. */
.reviews__cta {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  text-align: center;
}


/* --- Responsive ---------------------------------------------------------- */

/* The meta column holds its width while the headline column shrinks, so the
   two stop coexisting well above the tablet breakpoint - the headline is given
   the full width from here down. */
@media (max-width: 1180px) {
  .hero__inner { grid-template-columns: 1fr; }
  /* Stacked, the meta column would run the full page width; capped so the
     lead keeps a readable measure. */
  .hero__meta { max-width: 42rem; }
}

@media (max-width: 1024px) {
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  /* The standfirst repeats what the lead says two lines later once the columns
     are stacked, so only the lead survives on phones. */
  .hero__standfirst { display: none; }
  .quotes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .line-mask > span { opacity: 1 !important; transform: none !important; }
}