/* ==========================================================
   SEGNO — Hero Slider + Scroll Gallery
   Full-bleed auto-sliding hero (Eona-style) + scroll-driven
   image gallery, built with original line-art illustrations
   (no stock photography) using the existing Segno palette.
   ========================================================== */

/* ---------------- Hero slider ---------------- */

.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.15);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease, border-color .25s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
.hero-arrow-prev { left: 28px; }
.hero-arrow-next { right: 28px; }

/* Footer: dots + counter */
.hero-slider-footer {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}
.hero-dot.is-active { background: var(--white); transform: scale(1.25); }
.hero-counter {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
}
.hero-counter-current { color: var(--white); font-weight: 600; }

/* Progress bar */
.hero-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: rgba(255,255,255,0.12);
  z-index: 4;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brass-light);
}
.hero-progress-bar.is-animating { transition: width 6s linear; }

@media (max-width: 860px) {
  .hero-slider { height: 100vh; min-height: 520px; }
  .hero-arrow { width: 40px; height: 40px; font-size: 18px; }
  .hero-arrow-prev { left: 14px; }
  .hero-arrow-next { right: 14px; }
  .hero-slider-footer { left: 20px; right: 20px; bottom: 20px; }
}

/* ---------------- Scroll gallery ---------------- */

.scroll-gallery {
  padding: 100px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.scroll-gallery-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 70px;
}

.scroll-gallery-sticky {
  position: relative;
}

.scroll-gallery-frame {
  position: sticky;
  top: 110px;
  aspect-ratio: 3/3.8;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-gallery-art {
  position: absolute;
  width: 60%;
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity .6s ease, transform .6s cubic-bezier(.16,.84,.44,1);
}
.scroll-gallery-art.is-active { opacity: 1; transform: scale(1); }

.scroll-gallery-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  background: rgba(255,253,248,0.85);
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.scroll-gallery-steps { display: flex; flex-direction: column; gap: 60px; padding: 4vh 0; }

.gallery-step {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transition: opacity .5s ease;
  max-width: 460px;
}
.gallery-step.is-active { opacity: 1; }
.gallery-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin: 10px 0 14px;
  color: var(--ink);
}
.gallery-step p { font-size: 16px; color: var(--ink-soft); line-height: 1.7; }

@media (max-width: 860px) {
  .scroll-gallery-grid { grid-template-columns: 1fr; gap: 40px; }
  .scroll-gallery-sticky { position: static; }
  .scroll-gallery-frame { position: static; aspect-ratio: 4/3; }
  .scroll-gallery-steps { gap: 40px; padding: 0; }
  .gallery-step { opacity: 1; }
}