/* ================================================================
   LAMINART COLLECTION — Premium Redesign v2
   Page-specific CSS — loaded after mameri.css
   All .lam-* selectors override the base definitions in mameri.css
   ================================================================ */

/* ─── Page body ──────────────────────────────────────────────── */
body[data-cms-page="laminart"] {
  background: #0a0806;
}

/* ================================================================
   HERO — Complete redesign
   ================================================================ */
.lam-hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: center;      /* vertically centred, not flush-bottom */
  overflow: hidden;
}

.lam-hero-slider {
  position: absolute;
  inset: 0;
}

.lam-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}
.lam-hero-slide.active { opacity: 1; }

/* Overlay: strong left-to-right gradient + bottom vignette */
.lam-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(5, 4, 2, 0.82) 0%,
      rgba(5, 4, 2, 0.52) 45%,
      rgba(5, 4, 2, 0.14) 100%
    ),
    linear-gradient(0deg,
      rgba(5, 4, 2, 0.55) 0%,
      transparent 50%
    );
  z-index: 1;
}

/* Content wrapper — left-aligned, generous padding */
.lam-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 7vw, 120px);
  max-width: 860px;
  width: 100%;
  /* Entrance: JS adds .lam-ready to .lam-hero, children animate via delay */
}

/* Individual entrance animations */
.lam-hero-eyebrow,
.lam-hero-title,
.lam-hero-rule,
.lam-hero-sub,
.lam-hero-ctas,
.lam-hero-indicators {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.95s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
}
.lam-hero.lam-ready .lam-hero-eyebrow    { opacity: 1; transform: none; transition-delay: 0.20s; }
.lam-hero.lam-ready .lam-hero-title      { opacity: 1; transform: none; transition-delay: 0.40s; }
.lam-hero.lam-ready .lam-hero-rule       { opacity: 1; transform: none; transition-delay: 0.60s; }
.lam-hero.lam-ready .lam-hero-sub        { opacity: 1; transform: none; transition-delay: 0.75s; }
.lam-hero.lam-ready .lam-hero-ctas       { opacity: 1; transform: none; transition-delay: 0.90s; }
.lam-hero.lam-ready .lam-hero-indicators { opacity: 1; transform: none; transition-delay: 1.08s; }

/* Eyebrow */
.lam-hero-eyebrow {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

/* Title */
.lam-hero-title {
  font-size: clamp(2.8rem, 6.8vw, 6.4rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  letter-spacing: -0.025em;
  text-transform: none;
  margin-bottom: 0;
}
.lam-hero-title em {
  font-style: italic;
  font-weight: 200;
  color: var(--white);
  display: block;
}

/* Gold rule under title */
.lam-hero-rule {
  display: block;
  width: 52px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 28px 0;
}

/* Subtitle */
.lam-hero-sub {
  font-size: clamp(0.86rem, 1.4vw, 1rem);
  font-weight: 300;
  line-height: 1.82;
  color: rgba(248, 245, 240, 0.70);
  max-width: 500px;
  margin-bottom: 44px;
}

/* CTA row */
.lam-hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Hide the old dot indicators */
.lam-hero-dots { display: none; }

/* New progress-bar indicators */
.lam-hero-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lam-hero-bar {
  display: block;
  width: 28px;
  height: 2px;
  border: none;
  padding: 0;
  background: rgba(248, 245, 240, 0.22);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: width 0.35s var(--ease);
  flex-shrink: 0;
}
.lam-hero-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: var(--gold);
}
.lam-hero-bar.active {
  width: 56px;
}
.lam-hero-bar.active::after {
  width: 100%;
  transition: width 5.8s linear;
}

/* Scroll hint — bottom-right */
.lam-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  right: clamp(24px, 5vw, 80px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 1.6s;
}
.lam-hero.lam-ready .lam-scroll-hint { opacity: 1; }
.lam-scroll-hint-label {
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.38);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
.lam-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(196, 160, 90, 0.65), transparent);
  animation: lam-scroll-pulse 2s 2.2s infinite ease-in-out;
}
@keyframes lam-scroll-pulse {
  0%,100% { opacity: 0.5; transform: scaleY(1); transform-origin: top; }
  50%     { opacity: 1;   transform: scaleY(0.6); transform-origin: top; }
}

/* ================================================================
   INTRO — Editorial 2-column
   ================================================================ */
.lam-intro {
  background: #090704;
  padding: 0;
  overflow: hidden;
}

.lam-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 700px;
  max-width: 100%;
}

/* Text column */
.lam-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 9vw, 120px) clamp(36px, 5.5vw, 88px) clamp(72px, 9vw, 120px) clamp(24px, 6.5vw, 100px);
  max-width: 600px;
  margin-left: auto;
}

.lam-intro-eyebrow {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.lam-intro-title {
  font-size: clamp(1.85rem, 3vw, 2.9rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--cream);
  letter-spacing: -0.025em;
  text-transform: none;
  margin-bottom: 0;
}

.lam-intro-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 26px 0;
}

.lam-intro-body {
  font-size: clamp(0.84rem, 1.25vw, 0.94rem);
  font-weight: 300;
  line-height: 1.92;
  color: rgba(248, 245, 240, 0.58);
  max-width: 480px;
}

/* Image mosaic column */
.lam-intro-images {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 700px;
  overflow: hidden;
}
.lam-intro-img-main {
  grid-row: 1 / -1;
  position: relative;
  overflow: hidden;
}
.lam-intro-img-a,
.lam-intro-img-b {
  position: relative;
  overflow: hidden;
}
.lam-intro-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.lam-intro-img-main:hover img,
.lam-intro-img-a:hover img,
.lam-intro-img-b:hover img { transform: scale(1.05); }

/* Override old centering from mameri.css */
.lam-intro .lam-intro-inner {
  text-align: left;
  padding: 0;
  margin: 0;
  max-width: none;
}

/* ================================================================
   GALLERY STRIP — Cinematic (FIX height collapse bug)
   ================================================================ */
.lam-projects {
  background: #090704;
  padding: 3px 0 0;
  overflow: hidden;
}
.lam-proj-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.lam-proj-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;   /* ← CRITICAL: gives the item an explicit height */
  cursor: pointer;
  display: block;
}
.lam-proj-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 4, 2, 0.45) 0%,
    transparent 55%
  );
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.lam-proj-item:hover::after { opacity: 0.2; }

.lam-proj-img-wrap {
  position: absolute;
  inset: 0;
}
.lam-proj-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.lam-proj-item:hover .lam-proj-img { transform: scale(1.07); }

/* ================================================================
   MATERIALS GRID — Premium showcase
   ================================================================ */
.lam-materials {
  padding: clamp(80px, 10vw, 130px) 0;
  background: var(--cream);
}

.lam-materials-header {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  text-align: center;
  margin-bottom: clamp(52px, 7vw, 84px);
}

.lam-materials-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
}

/* Card */
.lam-mat-card {
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 20px rgba(14, 12, 9, 0.06);
  transition:
    box-shadow 0.45s var(--ease),
    transform  0.45s var(--ease);
  border-radius: 0;
  position: relative;
}
.lam-mat-card:hover {
  box-shadow: 0 22px 64px rgba(14, 12, 9, 0.14);
  transform: translateY(-6px);
}

/* Image container */
.lam-mat-img-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--stone-100);
}
.lam-mat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.lam-mat-card:hover .lam-mat-img { transform: scale(1.06); }

/* Hover CTA overlay on the image */
.lam-mat-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22px;
  background: linear-gradient(
    to top,
    rgba(5, 4, 2, 0.60) 0%,
    rgba(5, 4, 2, 0.08) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.lam-mat-card:hover .lam-mat-hover { opacity: 1; }

.lam-mat-cta-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  border: 1px solid rgba(248, 245, 240, 0.45);
  border-radius: 40px;
  padding: 9px 20px;
  transform: translateY(10px);
  transition:
    transform 0.4s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
.lam-mat-card:hover .lam-mat-cta-label {
  transform: translateY(0);
  background: rgba(196, 160, 90, 0.14);
  border-color: rgba(196, 160, 90, 0.7);
  color: var(--gold-light);
}

/* Card body */
.lam-mat-body {
  padding: 20px 22px 24px;
}
.lam-mat-type {
  font-size: 0.50rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.lam-mat-name {
  font-size: clamp(0.92rem, 1.4vw, 1.04rem);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin-bottom: 9px;
}
.lam-mat-desc {
  font-size: 0.79rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.72;
}

/* ================================================================
   STATS BAND — Premium redesign
   ================================================================ */
.lam-stats {
  background: #07060a;
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid rgba(196, 160, 90, 0.10);
  border-bottom: 1px solid rgba(196, 160, 90, 0.10);
}
.lam-stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.lam-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(16px, 2.5vw, 36px);
  position: relative;
}
.lam-stat-item + .lam-stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(196, 160, 90, 0.18);
}
.lam-stat-number {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 200;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}
.lam-stat-em { color: var(--gold); font-weight: 200; }
.lam-stat-label {
  font-size: 0.60rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.38);
  line-height: 1.6;
  max-width: 120px;
}

/* ================================================================
   CTA SECTION — Premium closing
   ================================================================ */
.lam-cta {
  position: relative;
  padding: clamp(88px, 11vw, 144px) 0;
  background: #0a0806;
  overflow: hidden;
  text-align: left;
}
.lam-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 110%,
      rgba(196, 160, 90, 0.09) 0%,
      transparent 70%
    );
  pointer-events: none;
}
/* Decorative side rule */
.lam-cta::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.35;
}
.lam-cta-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  text-align: center;
}
.lam-cta .eyebrow {
  color: var(--gold);
  margin-bottom: 22px;
}
.lam-cta-title {
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-transform: none;
  margin-bottom: 22px;
}
.lam-cta-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0 auto 28px;
}
.lam-cta-sub {
  font-size: clamp(0.84rem, 1.3vw, 0.94rem);
  font-weight: 300;
  line-height: 1.88;
  color: rgba(248, 245, 240, 0.50);
  max-width: 500px;
  margin: 0 auto 48px;
}
.lam-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================================================
   MODAL — Lightbox premium
   ================================================================ */
.lam-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 64px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.38s ease, visibility 0.38s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lam-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.lam-modal {
  background: #fff;
  max-width: 980px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-width: thin;
}
.lam-modal-overlay.open .lam-modal {
  transform: translateY(0) scale(1);
}

/* Close button */
.lam-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background: rgba(14, 12, 9, 0.06);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lam-modal-close:hover {
  background: rgba(14, 12, 9, 0.14);
  transform: scale(1.08);
}

/* Left: image pane */
.lam-modal-img-pane {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: var(--stone-100);
}
.lam-modal-img-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Right: content pane */
.lam-modal-content {
  padding: clamp(36px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.lam-modal-type {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.lam-modal-name {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 0;
}
.lam-modal-rule {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 20px 0;
}
.lam-modal-desc {
  font-size: 0.86rem;
  font-weight: 300;
  color: var(--text-light);
  line-height: 1.88;
  margin-bottom: 36px;
  flex: 1;
}
.lam-modal-action {
  align-self: flex-start;
}

/* ================================================================
   FOOTER override — ensure cream bg on this dark page
   ================================================================ */
body[data-cms-page="laminart"] .site-footer {
  background: #0a0806;
  border-top: 1px solid rgba(196, 160, 90, 0.10);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .lam-intro-inner { grid-template-columns: 1fr; }
  .lam-intro-text  { max-width: none; margin-left: 0; padding: clamp(56px,8vw,96px) clamp(24px,5vw,64px); }
  .lam-intro-images {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto;
    min-height: 380px;
  }
  .lam-intro-img-main { grid-row: auto; }
  .lam-materials-grid { grid-template-columns: repeat(2, 1fr); }
  .lam-stats-inner { max-width: 800px; }
}

/* Tablet ≤ 768px */
@media (max-width: 768px) {
  .lam-hero-content { padding: 0 clamp(20px, 5.5vw, 48px); }
  .lam-hero-ctas { flex-direction: column; gap: 10px; max-width: 260px; }
  .lam-scroll-hint { display: none; }

  .lam-intro-images {
    min-height: 300px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px;
  }
  .lam-intro-img-b { display: none; }

  .lam-proj-strip { grid-template-columns: 1fr 1fr; }
  .lam-proj-strip .lam-proj-item:last-child { display: none; }
  .lam-proj-item { aspect-ratio: 3 / 2; }

  .lam-materials-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .lam-stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 0;
  }
  .lam-stat-item + .lam-stat-item::before { display: none; }
  .lam-stat-item:nth-child(odd) {
    border-right: 1px solid rgba(196, 160, 90, 0.18);
  }

  .lam-modal { grid-template-columns: 1fr; }
  .lam-modal-img-pane { min-height: 260px; }

  .lam-cta-btns { flex-direction: column; align-items: center; }
}

/* Mobile ≤ 480px */
@media (max-width: 480px) {
  .lam-hero-title { font-size: clamp(2.1rem, 10vw, 2.9rem); }
  .lam-hero-sub   { font-size: 0.86rem; }

  .lam-intro-images { display: none; }  /* hide on smallest screens, text takes full width */
  .lam-intro-text {
    padding: clamp(52px, 10vw, 80px) clamp(20px, 5vw, 36px);
    text-align: center;
  }
  .lam-intro-rule { margin-left: auto; margin-right: auto; }
  .lam-intro-body { max-width: none; }

  .lam-proj-strip { grid-template-columns: 1fr; }
  .lam-proj-strip .lam-proj-item:last-child { display: block; }
  .lam-proj-item { aspect-ratio: 16 / 9; }

  .lam-materials-grid { grid-template-columns: 1fr; gap: 16px; }
  .lam-mat-img-wrap { aspect-ratio: 16 / 9; }

  .lam-stats-inner { grid-template-columns: 1fr 1fr; }
  .lam-stat-number { font-size: clamp(1.9rem, 9vw, 2.8rem); }

  .lam-modal-content { padding: 28px 22px; }
}

/* ================================================================
   STAGGER DELAYS — materials grid reveal
   ================================================================ */
.lam-materials-grid .lam-mat-card.reveal:nth-child(3n+2) { transition-delay: 0.08s; }
.lam-materials-grid .lam-mat-card.reveal:nth-child(3n+3) { transition-delay: 0.16s; }
