/* Homepage: hero slider and gradient logo band */

/* ---------- Hero slider ---------- */
.hhero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--dark);
}

.hslide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0s 0.9s;
}

.hslide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease;
}

.hslide__bg {
  position: absolute;
  inset: 0;
}

.hslide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slow settle-in on the background each time a slide arrives */
.hslide.is-active .hslide__bg img {
  animation: slideZoom 9s ease-out both;
}

@keyframes slideZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Left-edge shade so copy always sits on solid contrast */
.hslide__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(2, 6, 40, 0.55) 0%, rgba(2, 6, 40, 0.18) 45%, transparent 65%);
}

.hslide__copy {
  position: absolute;
  left: clamp(1.5rem, 7vw, 6.5rem);
  right: clamp(1.5rem, 40vw, 44rem);
  top: 50%;
  transform: translateY(-56%);
  max-width: 640px;
}

.hslide__eyebrow {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(237, 240, 255, 0.8);
}

.hslide h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.hslide h1 .dot { color: var(--primary); }

.hslide__sub {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}

.hslide__cta {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hslide__cta svg { width: 26px; transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.hslide__cta:hover svg { transform: translateX(6px); }

/* Copy cascades in each time its slide becomes active */
.hslide .anim {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}

.hslide.is-active .anim {
  animation: slideCopyIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hslide.is-active .anim:nth-of-type(1) { animation-delay: 0.25s; }
.hslide.is-active .anim:nth-of-type(2) { animation-delay: 0.40s; }
.hslide.is-active .anim:nth-of-type(3) { animation-delay: 0.55s; }
.hslide.is-active .anim:nth-of-type(4) { animation-delay: 0.70s; }

@keyframes slideCopyIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- Slide bars (bottom left) ---------- */
.hhero__bars {
  position: absolute;
  left: clamp(1.5rem, 7vw, 6.5rem);
  bottom: 3.2rem;
  z-index: 5;
  display: flex;
  gap: 1.1rem;
}

.hhero__bars button {
  width: 74px;
  height: 14px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.hhero__bars button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.3s ease, height 0.3s ease, top 0.3s ease;
}

.hhero__bars button.is-active::after,
.hhero__bars button:hover::after {
  background: #fff;
  height: 3px;
  top: 5.5px;
}

.hhero__bars button:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------- Right rail: counter + arrows ---------- */
.hhero__rail {
  position: absolute;
  right: clamp(1.2rem, 3vw, 2.6rem);
  top: 50%;
  transform: translateY(-32%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.hhero__count {
  text-align: center;
  color: #fff;
  line-height: 1.1;
}

.hhero__count .n {
  display: block;
  font-size: 2rem;
  font-weight: 600;
}

.hhero__count .of {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
}

.hhero__arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(199, 170, 254, 0.7);
  background: rgba(0, 10, 48, 0.25);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.hhero__arrow--prev { border-color: rgba(199, 170, 254, 0.35); color: rgba(255, 255, 255, 0.65); }

.hhero__arrow:hover,
.hhero__arrow:focus-visible {
  border-color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(177, 67, 245, 0.3);
}

.hhero__arrow:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.hhero__arrow svg { width: 18px; }

@media (max-width: 720px) {
  .hhero__rail { right: 1rem; gap: 1rem; }
  .hhero__count .n { font-size: 1.5rem; }
  .hslide__copy { right: 4.5rem; }
}

/* ---------- Gradient logo band ---------- */
.logo-band {
  position: relative;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-violet));
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hslide, .hslide.is-active { transition: none; }
  .hslide.is-active .hslide__bg img { animation: none; }
  .hslide .anim { opacity: 1; transform: none; filter: none; animation: none; }
}
