/* Elisa Sint Jago — motion.css
   Purpose: Motion + home lane-card grid + page-enter transitions.
   Major blocks:
     Page-enter / .js-ready — chrome.js toggles classes for soft fade-in.
     .lane-cards / .lane-card — HOME overview grid (01–08). Press=06 Contact=07.
     Hover lifts + image zooms; reduced-motion disables transforms.
     Hair thumb special-case: object-fit:contain so wig halo is not cropped.
   Gotchas: Feature card must NOT overlap this grid. feature-card.js watches
            .lane-card[data-lane="press"] and [data-lane="contact"] to auto-tuck.
*/


/* —— Page enter —— */
.page-enter {
  opacity: 0;
  transform: translateY(12px);
}

.page-enter.is-ready {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

@media (prefers-reduced-motion: reduce) {
  .page-enter,
  .page-enter.is-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* —— Lane hero (shorter than home) —— */
.lane-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.lane-hero .hero-bg img {
  object-position: center top;
}

.lane-hero .hero-content {
  padding: 5rem 0 2.75rem;
}

.lane-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
}

.lane-hero.lane-hero-compact {
  min-height: min(58vh, 480px);
}

/* Soft scroll-fade on hero only (light) */
.hero-bg img.hero-parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img.hero-parallax {
    transform: none !important;
    transition: none;
  }
}

/* —— Lane gallery —— */
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.5rem 0 0;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  position: relative;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid figure:hover img {
    transform: none;
  }
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg);
  background: linear-gradient(transparent, rgba(246, 240, 232, 0.92));
}

.gallery-wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .gallery-wide {
    grid-column: span 1;
  }
}

/* —— Next lane strip —— */
.next-strip {
  margin-top: 1rem;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.04));
}

.next-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.next-strip .eyebrow {
  margin-bottom: 0.35rem;
}

.next-strip h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 400;
  margin: 0 0 0.35rem;
  line-height: 1.1;
}

.next-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28rem;
}

.next-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.next-strip .next-meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* —— Overview lane cards (home) ——
   Purpose: 01–08 lane map on index.html (#lanes-overview).
   Press (06) + Contact (07): bottom of typical auto-fit grid — previously covered
   by the Feature card’s negative margin. Keep clear; data-lane attrs are required
   for feature-card.js intersection tuck. */
.lane-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lane-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
  min-height: 100%;
}

.lane-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .lane-card:hover {
    transform: none;
  }
}

.lane-card .thumb {
  position: relative;
  overflow: hidden;
}

.lane-card .thumb img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

/* Hair brand lockup — contain so halo/top hair is not clipped */
.lane-card .thumb img[src*="elise-medical-wigs"] {
  object-fit: contain;
  object-position: center center;
  background: #000;
  padding: 0.85rem 0.75rem 0.65rem;
}

.lane-card:hover .thumb img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .lane-card:hover .thumb img {
    transform: none;
  }
}

.lane-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lane-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin: 0 0 0.4rem;
}

.lane-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.lane-card .card-cta {
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.lane-card:hover .card-cta {
  text-decoration: underline;
}

/* —— Page body rhythm —— */
.page-lane main > section:first-of-type {
  /* hero already padded */
}

.section-cta {
  margin: 1.75rem 0 0;
}

.prose-block {
  max-width: 38rem;
}

.prose-block p + p {
  margin-top: 0.85rem;
}

/* Lane accent backgrounds on full pages */
body.page-beauty {
  /* tint via section classes */
}

body.page-hair .lane-hero .eyebrow,
body.page-hair .next-strip .next-meta {
  color: var(--rose);
}

body.page-hair .lane-card:hover,
body.page-hair .btn-ghost:hover {
  border-color: var(--rose);
}

/* Sticky nav active polish */
.nav-links a.is-active {
  color: var(--gold);
  position: relative;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

@media (max-width: 700px) {
  .nav-links a.is-active::after {
    display: none;
  }
}

/* Continuity band between overview preview + full page */
.continue-band {
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.continue-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 32rem;
}

.continue-band strong {
  color: var(--fg);
  font-weight: 500;
}
