/* =========================================================
   HOME — editorial split + auto-advancing tableau (H-01)
   ========================================================= */

.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding-block: var(--space-9) var(--space-8);
  gap: var(--space-8);
}
@media (min-width: 960px) {
  .home-hero--split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-9);
    padding-block: var(--space-10);
    align-items: stretch;
    min-height: calc(100vh - var(--nav-height) - var(--space-10));
  }
  .home-hero--solo {
    grid-template-columns: minmax(0, var(--content-narrow));
    justify-content: start;
    padding-block: var(--space-10);
    min-height: calc(100vh - var(--nav-height) - var(--space-10));
  }
  .home-hero--solo .home-hero__title { font-size: clamp(3.5rem, 8vw, 7rem); }
}

.home-hero__copy { display: grid; gap: var(--space-6); align-content: center; }
.home-hero__title {
  font-family: var(--font-serif);
  font-size: var(--type-display);
  line-height: 0.95;
  letter-spacing: -0.015em;
  font-weight: 400;
  margin: 0;
}
.home-hero__title em { font-style: italic; color: var(--accent); }
.home-hero__lede { max-width: 36ch; font-size: var(--type-md); line-height: var(--leading-relaxed); color: var(--text-muted); margin: 0; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }

/* ---------- TABLEAU ---------- */
.tableau {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: var(--space-3);
}
.tableau__stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
@media (min-width: 960px) {
  .tableau__stack { aspect-ratio: auto; height: 100%; min-height: 480px; }
}

.tableau__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s var(--ease-in-out);
  pointer-events: none;
}
.tableau__slide[data-active="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
/* no-js: just show the first slide statically; ignore data-active fade */
html.no-js .tableau__slide[data-active="true"] { transition: none; }
.tableau__slide img,
.tableau__slide picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 12s var(--ease-out);
}
.tableau__slide[data-active="true"] img,
.tableau__slide[data-active="true"] picture {
  transform: scale(1.07);
}
@media (prefers-reduced-motion: reduce) {
  .tableau__slide,
  .tableau__slide img,
  .tableau__slide picture { transition: none !important; transform: none !important; }
}

.tableau__caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  z-index: 2;
  color: #F5F2EC;
  font-family: var(--font-serif);
  font-size: var(--type-sm);
  background: rgba(26, 23, 20, 0.5);
  padding: var(--space-2) var(--space-4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
}
.tableau__series {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(245, 242, 236, 0.65);
}

.tableau__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-2);
}
@media (min-width: 960px) {
  .tableau__dots {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    padding-top: 0;
  }
}
.tableau__dot {
  width: 36px;
  height: 2px;
  padding: 0;
  border: 0;
  background: var(--stone);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity var(--dur-fast), background var(--dur-fast), width var(--dur-base);
  border-radius: 0;
}
@media (min-width: 960px) {
  .tableau__dot { background: rgba(245, 242, 236, 0.55); opacity: 0.6; }
}
.tableau__dot:hover { opacity: 1; }
.tableau__dot[aria-selected="true"] {
  background: var(--accent);
  opacity: 1;
  width: 56px;
}
@media (min-width: 960px) {
  .tableau__dot[aria-selected="true"] { background: #F5F2EC; }
}
.tableau__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
