/* =========================================================================
   home.css — Home page only
   ========================================================================= */

/* ---------- Hero: "the interrogation room" ---------- */
.hero {
  position: relative;
  height: calc(100svh - var(--header-h) - var(--tray-h));
  min-height: 540px;
  max-height: 880px;
  overflow: hidden;
  background: var(--aubergine);
  color: var(--white);
  isolation: isolate;
}
.hero-banner-btn{
  margin-left: 112px;}

.hero__slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img {
  object-fit: cover;
  object-position: 30% 50%;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}
.hero__slide.is-active img { transform: scale(1); }

/* Legibility wash toward the copy side */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(37,16,44,0) 38%, rgba(37,16,44,.55) 72%, rgba(37,16,44,.8) 100%);
  pointer-events: none;
}

/* The lamp flicker between suspects */
.hero__flicker {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0d0510;
  opacity: 0;
  pointer-events: none;
}
.hero.is-flickering .hero__flicker { animation: lamp-flicker 1s steps(1, end) both; }
@keyframes lamp-flicker {
  0%   { opacity: 0; }
  12%  { opacity: .92; }
  24%  { opacity: .25; }
  34%  { opacity: .88; }
  52%  { opacity: .1; }
  60%  { opacity: .6; }
  72%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Copy */
.hero__content {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  width: min(500px, 42%);
  transform: translateY(-50%);
}
.hero__wing { width: 100%; margin-bottom: 22px; }
.hero__title {
  margin: 0;
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title sup { font-weight: 600; font-size: .32em; vertical-align: 1.6em; margin-left: 2px; }
.hero__title-sub {
  display: block;
  margin-top: 6px;
  font-weight: 100;
  font-size: .62em;
  letter-spacing: .02em;
}
.hero__generic {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.35);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.3;
}
.hero__dose {
  margin: 4px 0 30px;
  font-size: 16px;
  color: rgba(255,255,255,.82);
}

/* Controls */
.hero__controls {
  position: absolute;
  z-index: 3;
  bottom: 26px;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero__dots { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero__dot {
  width: 12px; height: 12px;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: transparent;
  transition: background-color .2s ease, transform .2s ease;
}
.hero__dot[aria-current="true"] { background: var(--white); transform: scale(1.15); }
.hero__pause {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: rgba(37,16,44,.35);
  color: var(--white);
}
.hero__pause svg { width: 12px; height: 12px; }
.hero__pause:hover { background: rgba(255,255,255,.18); }
.hero :focus-visible { outline-color: var(--white); }

/* Hero — tablet */
@media (max-width: 1024px) {
  .hero__content { width: min(420px, 46%); }
}

/* Hero — mobile: image on top, copy below */
@media (max-width: 768px) {
  .hero-banner-btn {margin-left: 63px;}
  .hero { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero::before { display: none; }
  .hero__stage { position: relative; width: 100%; height: min(112vw, 50svh); }
  .hero__slides, .hero__flicker { position: absolute; inset: 0; }
  .hero__slide img { object-position: 50% 50%; }
  .hero__stage::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
    background: linear-gradient(180deg, rgba(37,16,44,0), var(--aubergine));
    z-index: 2;
  }
  .hero__content {
    position: relative;
    top: auto; right: auto;
    width: 100%;
    transform: none;
    padding: 0 var(--gutter) 84px;
    margin-top: -64px;
  }
  .hero__wing { width: 65%; margin-bottom: 12px; }
  .hero__generic { margin-top: 18px; padding-top: 14px; }
  .hero__dose { margin-bottom: 22px; }
  .hero__title { font-size: clamp(38px, 11vw, 56px); }
  .hero__controls { right: var(--gutter); bottom: 28px; }
}

/* ---------- At a glance ---------- */
.glance { padding-block: clamp(56px, 8vw, 104px); }
.glance__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.glance__head h2 {
  margin: 0 0 10px;
  color: var(--plum);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
}
.glance__head p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.glance__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0; padding: 0;
  list-style: none;
}
.glance__item {
  display: flex;
  flex-direction: column;
  padding: 8px clamp(20px, 3vw, 40px) 8px;
}
.glance__item + .glance__item { border-left: 1px solid var(--rule); }
.glance__item:first-child { padding-left: 0; }
.glance__item:last-child { padding-right: 0; }
.glance__icon { width: 84px; height: 84px; margin-bottom: 22px; }
.glance__item h3 {
  margin: 0 0 10px;
  color: var(--aubergine);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
}
.glance__item p { margin: 0 0 20px; font-size: 16px; line-height: 1.65; }
.glance__item .text-link,
.glance__item .btn { margin-top: auto; align-self: flex-start; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--plum);
}
.text-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(3px); }

@media (max-width: 900px) {
  .glance__list { grid-template-columns: 1fr; }
  .glance__item,
  .glance__item:first-child,
  .glance__item:last-child { padding: 28px 0; }
  .glance__item + .glance__item { border-left: 0; border-top: 1px solid var(--rule); }
  .glance__item { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; }
  .glance__icon { width: 64px; height: 64px; grid-row: span 3; margin: 0; }
}

/* ---------- Explore the site ---------- */
.explore {
  background: var(--plum);
  color: var(--white);
  padding-block: clamp(52px, 7vw, 88px);
}
.explore h2 {
  margin: 0 0 clamp(26px, 4vw, 40px);
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
}
.explore__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(28px, 5vw, 72px);
  margin: 0; padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255,255,255,.3);
}
.explore__list li { border-bottom: 1px solid rgba(255,255,255,.3); }
.explore__link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  color: var(--white);
  text-decoration: none;
}
.explore__link:hover { color: var(--white); }
.explore__title { display: block; font-weight: 600; font-size: 19px; line-height: 1.3; }
.explore__desc { display: block; margin-top: 4px; font-size: 15px; color: rgba(255,255,255,.8); }
.explore__arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1.5px solid rgba(255,255,255,.6);
  border-radius: 50%;
  transition: background-color .2s ease, color .2s ease;
}
.explore__arrow svg { width: 14px; height: 14px; }
.explore__link:hover .explore__arrow { background: var(--white); color: var(--plum); }
.explore__link:hover .explore__title { text-decoration: underline; text-underline-offset: 4px; }
.explore :focus-visible { outline-color: var(--white); }

@media (max-width: 800px) {
  .explore__list { grid-template-columns: 1fr; }
}
