/* Home: single-panel news carousel (left) + reserved side slot (right). Loaded only by Pages/Home/Index. */
.home-landing-inner--carousel { grid-template-rows: minmax(0, 1fr); }
.home-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 0.75rem;
}

/* ---- Carousel ---- */
.home-carousel {
  position: relative;
  min-height: 0;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  outline: none;
}
.home-carousel:focus-visible { box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.6); }
.home-carousel--empty { display: grid; }
.home-carousel-track { display: grid; height: 100%; }
.home-slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}
.home-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease, visibility 0s; z-index: 1; }
.home-slide-media { grid-area: 1 / 1; position: relative; min-height: 0; overflow: hidden; display: block; }
.home-slide-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 7s ease-out; }
.home-slide.is-active .home-slide-media img { transform: scale(1.06); }
.home-slide-media .img-placeholder { height: 100%; font-size: 2.5rem; font-weight: 900; letter-spacing: 0.3em; background: radial-gradient(circle at 30% 30%, rgba(212,160,23,.18), transparent 60%), #0a0a10; }
.home-slide-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 11, 0.95) 0%, rgba(7, 7, 11, 0.55) 32%, rgba(7, 7, 11, 0.05) 62%, transparent 100%);
  pointer-events: none;
}
.home-slide-body {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 3.4rem;
  max-width: 46rem;
}
.home-slide-title { margin: 0.4rem 0 0.45rem; font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.home-slide-title a:hover, .home-slide-title a:focus-visible { color: var(--accent-soft); }
.home-slide-excerpt {
  margin: 0;
  color: rgba(243, 240, 234, 0.86);
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-slide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.85rem; }
.home-slide-cta { font-size: 0.85rem; }
.home-slide-more { font-size: 0.88rem; font-weight: 700; color: var(--accent-soft); }
.home-slide-more:hover, .home-slide-more:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

.home-carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 11, 0.55);
  color: var(--foreground);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 0 0.15rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.75;
}
.home-carousel:hover .home-carousel-arrow, .home-carousel-arrow:focus-visible { opacity: 1; }
.home-carousel-arrow:hover, .home-carousel-arrow:focus-visible { background: rgba(212, 160, 23, 0.85); border-color: var(--accent); color: #07070b; outline: none; }
.home-carousel-arrow--prev { left: 0.8rem; }
.home-carousel-arrow--next { right: 0.8rem; }

.home-carousel-bar {
  position: absolute;
  z-index: 3;
  left: 1.5rem;
  bottom: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.home-carousel-dots { display: flex; gap: 0.45rem; }
.home-carousel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.home-carousel-dot[aria-current="true"] { width: 1.6rem; background: var(--accent); }
.home-carousel-dot:hover { background: rgba(255, 255, 255, 0.7); }
.home-carousel-dot:focus-visible, .home-carousel-pause:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.home-carousel-pause {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 7, 11, 0.55);
  color: var(--foreground);
  font-size: 0.55rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.home-carousel[data-reduced-motion="true"] .home-carousel-pause { display: none; }

/* ---- Reserved side slot (#home-side-slot) ---- */
.home-side-slot { min-height: 0; display: flex; }
.home-side-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.5rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(212, 160, 23, 0.35);
  background:
    radial-gradient(circle at 50% 35%, rgba(212, 160, 23, 0.09), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 12px, transparent 12px 24px),
    var(--card);
}
.home-side-mark { font-size: 1.8rem; color: var(--accent); opacity: 0.8; }
.home-side-placeholder .section-kicker { margin: 0; }
.home-side-title { margin: 0; font-size: 1.2rem; font-weight: 800; }
.home-side-text { margin: 0; max-width: 18rem; color: var(--muted); font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  .home-slide, .home-slide.is-active { transition: none; }
  .home-slide-media img, .home-slide.is-active .home-slide-media img { transition: none; transform: none; }
  .home-carousel-dot { transition: none; }
}

/* Phone / narrow: page scrolls; carousel first, then the side slot. */
@media (max-width: 960px) {
  .home-stage { display: flex; flex-direction: column; gap: 1rem; }
  .home-slide { grid-template-rows: 13rem auto; }
  .home-slide-media { grid-area: 1 / 1; }
  .home-slide-body { grid-area: 2 / 1; padding: 0.9rem 1rem 3.2rem; max-width: none; }
  .home-slide-media::after { background: linear-gradient(to top, rgba(18, 18, 26, 0.9) 0%, transparent 45%); }
  .home-slide-title { font-size: 1.35rem; text-shadow: none; }
  .home-carousel-arrow { top: 5.2rem; width: 2.3rem; height: 2.3rem; opacity: 0.9; }
  .home-carousel-bar { left: 1rem; bottom: 0.9rem; }
  .home-side-placeholder { min-height: 12rem; }
}
