/* ============================================================
   HOMEPAGE
   ============================================================ */

/* HERO */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero .container { position: relative; z-index: 2; width: 100%; }

/* Full-bleed background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-image: url("assets/golden/hero_cinematic_1200.webp");
  background-size: cover;
  background-position: 65% 50%;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% 50%;
  display: block;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,10,0.92) 0%, rgba(5,7,10,0.78) 30%, rgba(5,7,10,0.32) 60%, rgba(5,7,10,0.18) 100%),
    linear-gradient(180deg, rgba(5,7,10,0.55) 0%, rgba(5,7,10,0) 35%, rgba(5,7,10,0) 65%, rgba(5,7,10,0.7) 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-text { position: relative; padding-right: 12px; padding-top: 28px; }
.hero-text .eyebrow { margin-bottom: 28px; }
.hero-text .h-display {
  font-size: clamp(3.6rem, 8.4vw, 8.6rem);
  margin-top: 8px;
  margin-bottom: 32px;
}
.hero-text .h-display .word { display: block; }
.hero-text .lede { max-width: 38ch; margin-bottom: 36px; font-size: 1.05rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-cue .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  display: grid; place-items: center;
  color: var(--primary);
  animation: cue 2.5s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(4px); opacity: 0.7; }
}

/* Facts rail (now sits in right column over the hero bg) */
.facts-rail {
  justify-self: end;
  width: 220px;
  display: flex; flex-direction: column;
  background: rgba(5,7,10,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.facts-rail .row {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212,175,55,0.10);
  display: flex; flex-direction: column; gap: 2px;
}
.facts-rail .row:last-child { border-bottom: none; }
.facts-rail .label {
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
}
.facts-rail .val { color: var(--cream); font-size: 0.95rem; }
.facts-rail .source-row .val { font-size: 0.78rem; line-height: 1.45; color: var(--text-secondary); }

@media (max-width: 1100px) { .facts-rail { display: none; } }
@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 110px; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-bg img,
  .hero-bg video { object-position: 70% 40%; }
  .hero-vignette { background:
    linear-gradient(180deg, rgba(5,7,10,0.78) 0%, rgba(5,7,10,0.4) 50%, rgba(5,7,10,0.92) 100%); }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .hero-bg video {
    display: none;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(5,7,10,0.86) 0%, rgba(5,7,10,0.56) 42%, rgba(5,7,10,0.95) 100%);
  }

  .hero-text {
    padding-top: 0;
    padding-right: 0;
    max-width: 100%;
  }

  .hero-text .eyebrow {
    margin-bottom: 20px;
  }

  .hero-text .h-display {
    font-size: clamp(3.05rem, 19vw, 4.8rem);
    line-height: 0.9;
    margin-bottom: 24px;
    overflow-wrap: anywhere;
  }

  .hero-text .lede {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: 0.98rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .scroll-cue {
    margin-top: 36px;
    letter-spacing: 0.2em;
  }
}

/* STAT STRIP */
.stat-strip {
  position: relative;
  margin-top: -56px;
  z-index: 4;
}
.stat-strip .glass {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-cell {
  padding: 28px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  border-right: 1px solid rgba(212,175,55,0.10);
  position: relative;
  transition: background .3s ease;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(212,175,55,0.04); }
.stat-cell:hover .stat-icon { box-shadow: 0 0 0 6px rgba(212,175,55,0.06); }
.stat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: box-shadow .3s ease;
}
.stat-content .label {
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700; display: block;
}
.stat-content .score {
  font-family: var(--ff-display); font-size: 1.6rem; line-height: 1;
  color: var(--primary); margin: 4px 0 4px;
}
.stat-content p { margin: 0; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.45; }

@media (max-width: 1000px) {
  .stat-strip .glass { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(212,175,55,0.10); }
}
@media (max-width: 560px) {
  .stat-strip .glass { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(212,175,55,0.10); }
  .stat-cell:last-child { border-bottom: none; }
}

/* OVERVIEW */
.overview .panel { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: 56px; align-items: start; }
.overview .left .h-1 { margin: 18px 0 24px; }
.overview .left p { color: var(--text-secondary); max-width: 36ch; margin-bottom: 32px; }
.overview .cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.editorial-card {
  display: block;
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.editorial-card:hover { transform: translateY(-6px); border-color: var(--border-medium); box-shadow: var(--shadow-md); }
.editorial-card .img-wrap { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.editorial-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.editorial-card:hover .img-wrap img { transform: scale(1.05); }
.editorial-card .img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5,7,10,0.85) 100%);
}
.editorial-card .body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
  z-index: 2;
}
.editorial-card .index { font-family: var(--ff-display); color: var(--primary); font-size: 0.95rem; letter-spacing: 0.08em; }
.editorial-card .title { font-family: var(--ff-display); font-weight: 600; font-size: 1.4rem; color: var(--cream); line-height: 1.15; letter-spacing: -0.015em; }
.editorial-card .desc { font-size: 0.85rem; color: var(--text-secondary); margin: 4px 0 0; line-height: 1.45; }
.editorial-card .arrow {
  position: absolute; right: 18px; bottom: 18px;
  color: var(--primary);
  width: 36px; height: 36px;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(5,7,10,0.5);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
  z-index: 3;
}
.editorial-card:hover .arrow { transform: translate(4px,-4px); background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

@media (max-width: 980px) {
  .overview .panel { grid-template-columns: 1fr; gap: 32px; }
  .overview .cards { grid-template-columns: 1fr; }
}

/* GALLERY teaser */
.gallery-teaser .panel { display: grid; grid-template-columns: 0.65fr 2fr; gap: 40px; align-items: center; }
.gallery-teaser .left .h-1 { margin: 16px 0 18px; }
.gallery-teaser .left p { color: var(--text-secondary); margin-bottom: 24px; max-width: 32ch; }

.carousel-wrap { position: relative; }
.gallery-teaser .panel > *,
.carousel-wrap,
.carousel {
  min-width: 0;
  max-width: 100%;
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, min(72vw, 220px));
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .slide {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease;
}
.carousel .slide:hover { border-color: var(--primary); }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s ease; }
.carousel .slide:hover img { transform: scale(1.04); }
.carousel .slide .cap {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); background: rgba(5,7,10,0.55); padding: 4px 8px; border-radius: 2px;
}
.carousel-controls {
  position: absolute; right: 0; bottom: -42px;
  display: flex; gap: 8px;
}
.car-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  color: var(--primary);
  display: grid; place-items: center;
  background: rgba(5,7,10,0.4);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.car-btn:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

@media (max-width: 980px) {
  .gallery-teaser .panel { grid-template-columns: 1fr; }
  .carousel-controls { position: static; margin-top: 16px; }
}

/* CARE */
.care .panel { display: grid; grid-template-columns: 0.95fr 2fr; gap: 48px; align-items: start; position: relative; }
.care .left .h-1 { margin: 16px 0 20px; }
.care .left p { color: var(--text-secondary); margin-bottom: 28px; max-width: 34ch; }

.care-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.care-cell {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 22px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.care-cell:hover { transform: translateY(-4px); border-color: var(--border-medium); background: var(--surface-raised); }
.care-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--primary);
}
.care-cell .label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cream); font-weight: 700;
}
.care-cell p { margin: 0; color: var(--text-secondary); font-size: 0.86rem; flex: 1; }
.care-cell .link {
  color: var(--primary); font-size: 0.7rem; letter-spacing: 0.16em;
  font-weight: 700; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
}
.care-cell .link:hover { color: var(--primary-soft); }

@media (max-width: 1100px) { .care-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) { .care .panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .care-grid { grid-template-columns: 1fr; } }

/* HISTORY */
.history .panel { display: grid; grid-template-columns: 0.85fr 2fr; gap: 48px; align-items: start; }
.history .left .h-1 { margin: 16px 0 20px; }
.history .left p { color: var(--text-secondary); max-width: 32ch; margin-bottom: 28px; }

.timeline-wrap { position: relative; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(220px + 12px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium) 8%, var(--border-medium) 92%, transparent);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
}
.timeline.in-view::before { transform: scaleX(1); }
.timeline-item { display: flex; flex-direction: column; }
.timeline-item .img-wrap {
  aspect-ratio: 4/3;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  filter: sepia(0.35) saturate(0.85);
  height: 220px;
  background: #111;
}
.timeline-item .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.era-card {
  height: 220px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, rgba(212,175,55,0.06), rgba(16,20,25,0.6));
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.era-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(140px 100px at 20% 100%, rgba(212,175,55,0.18), transparent 70%);
  pointer-events: none;
}
.era-decoration {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  color: var(--primary);
  line-height: 1;
  opacity: 0.85;
  align-self: flex-start;
}
.era-year {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--cream);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
  margin-top: auto;
}
.era-place {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 700;
  margin-top: 6px;
  display: block;
}
.timeline-item .node {
  position: relative;
  width: 12px; height: 12px;
  margin: 18px auto 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline.in-view .timeline-item .node { opacity: 1; transform: scale(1); }
.timeline.in-view .timeline-item:nth-child(1) .node { transition-delay: .4s; }
.timeline.in-view .timeline-item:nth-child(2) .node { transition-delay: .7s; }
.timeline.in-view .timeline-item:nth-child(3) .node { transition-delay: 1s; }
.timeline.in-view .timeline-item:nth-child(4) .node { transition-delay: 1.3s; }
.timeline-item .date {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--cream);
  text-align: center;
  margin-bottom: 4px;
}
.timeline-item .t-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  color: var(--cream);
  text-align: center;
  margin: 0 0 6px;
}
.timeline-item .t-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .history .panel { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before {
    top: 0; bottom: 0; left: 14px; right: auto;
    width: 1px; height: auto;
    transform-origin: top center;
    transform: scaleY(0);
    background: linear-gradient(180deg, transparent, var(--border-medium) 8%, var(--border-medium) 92%, transparent);
  }
  .timeline.in-view::before { transform: scaleY(1); }
  .timeline-item { flex-direction: row; gap: 18px; padding-left: 36px; position: relative; }
  .timeline-item .img-wrap { width: 120px; height: 120px; flex-shrink: 0; }
  .timeline-item .node { position: absolute; left: 8px; top: 16px; margin: 0; }
  .timeline-item .text { flex: 1; }
  .timeline-item .date, .timeline-item .t-title, .timeline-item .t-desc { text-align: left; }
}
