/* How It Works — cinematic full-bleed gallery (restored from original) */

#gallery-section { padding: 0; }

#gallery-section .gallery-showcase {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

#gallery-section .gallery-band-header {
  position: absolute;
  z-index: 12;
  left: 0;
  right: 0;
  top: 0;
  padding: clamp(1.1rem, 2.8vw, 1.85rem) clamp(1.1rem, 3vw, 2rem) 0;
  pointer-events: none;
}

#gallery-section .gallery-band-header .section-h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.95rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.55rem;
  color: #ffffff;
}

#gallery-section .gallery-band-lede {
  margin: 0;
  max-width: 40em;
  font-size: clamp(0.62rem, 1.15vw, 0.76rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.82);
}

#gallery-section .gallery-band-footer {
  position: absolute;
  z-index: 210;
  left: 50%;
  bottom: clamp(0.85rem, 2.2vw, 1.35rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  pointer-events: none;
}

#gallery-section .gallery-band-footer .gallery-controls { margin-top: 0; pointer-events: auto; }
#gallery-section .gallery-band-footer .gallery-progress { margin-top: 0; pointer-events: auto; }
#gallery-section .gallery-band-footer .gallery-arrow { pointer-events: auto; position: relative; z-index: 1; }
#gallery-section .gallery-band-footer .gallery-progress span { pointer-events: auto; }

#gallery-section .gallery-slides {
  position: relative;
  width: 100%;
  height: clamp(440px, 52vw, 640px);
  min-height: 440px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0.65s;
}

.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gallery-slide--hero-bg {
  grid-template-columns: 1fr;
  justify-items: stretch;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.gallery-slide-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gallery-slide-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

.gallery-slide--hero-center .gallery-slide-bg img { object-position: center center; }
.gallery-slide--hero-right .gallery-slide-bg img { object-position: 78% center; }
.gallery-slide--hero-stats .gallery-slide-bg img { object-position: 68% center; }

.gallery-slide--hero-warm .gallery-slide-bg::after {
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(6, 10, 18, 0.38) 100%),
    linear-gradient(90deg, rgba(6, 10, 18, 0.58) 0%, rgba(6, 10, 18, 0.22) 42%, transparent 68%);
}

.gallery-slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 58%, rgba(6, 10, 18, 0.42) 100%),
    linear-gradient(90deg, rgba(6, 10, 18, 0.62) 0%, rgba(6, 10, 18, 0.18) 38%, transparent 62%);
}

#gallery-section .gallery-slide--hero-phone .gallery-slide-content {
  gap: clamp(0.75rem, 2vw, 1.5rem);
  max-width: 100%;
}

#gallery-section .gallery-slide--hero-phone .gallery-slide-copy {
  flex: 1;
  min-width: 0;
  max-width: min(420px, 52%);
}

.gallery-slide-phone-float {
  flex-shrink: 0;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
}

.gallery-slide-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.gallery-slide-content .gallery-slide-copy {
  text-align: left;
  max-width: min(520px, 92%);
  padding: 0;
}

#gallery-section .gallery-slide--hero-bg .gallery-slide-content {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(5.5rem, 13vw, 7.5rem);
  bottom: clamp(3.75rem, 8vw, 5rem);
  height: auto;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 clamp(1.1rem, 3vw, 2rem);
}

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-content {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-copy {
  flex: 0 1 auto;
  max-width: min(400px, 46%);
  align-self: center;
}

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float {
  margin-left: auto;
  margin-right: clamp(0.25rem, 2vw, 2rem);
  align-self: stretch;
  display: flex;
  align-items: center;
  max-height: 100%;
}

.iphone-frame {
  position: relative;
  z-index: 1;
  background: #161616;
  border-radius: 44px;
  border: 2px solid #2a2a2a;
  overflow: hidden;
  box-shadow: 0 0 0 1px #0d0d0d, 0 40px 80px rgba(0, 0, 0, 0.75);
}

.iphone-frame::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 27px;
  background: #0d0d0d;
  border-radius: 20px;
  z-index: 10;
}

.iphone-frame img { display: block; width: 100%; height: auto; }
.crop-gallery-app img { margin-top: 0; }

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float .iphone-frame {
  height: 100%;
  max-height: 100%;
  width: auto;
  aspect-ratio: 473 / 1024;
  max-width: min(260px, 22vw);
  border-radius: clamp(30px, 3.2vw, 40px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
}

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float .iphone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

#gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float .iphone-frame::before {
  width: clamp(64px, 7vw, 88px);
  height: clamp(18px, 2vw, 26px);
  top: clamp(7px, 1vw, 10px);
}

#gallery-section .gallery-slide--hero-bg .gallery-slide-copy h3 {
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.9vw, 1.28rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

#gallery-section .gallery-slide--hero-bg .gallery-slide-copy p {
  text-transform: uppercase;
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  letter-spacing: 0.06em;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.9);
}

.gallery-slide-copy h3 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.gallery-slide-copy p {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: #cbd5e1;
  line-height: 1.65;
}

.gallery-progress {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.gallery-progress span {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  width: 28px;
  transition: background 0.35s, width 0.35s;
  cursor: pointer;
}

.gallery-progress span.is-active {
  background: #00bcd4;
  width: 40px;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
}

.gallery-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-arrow:hover {
  border-color: rgba(0, 188, 212, 0.7);
  color: #00bcd4;
  background: rgba(0, 188, 212, 0.1);
}

@media (max-width: 767px) {
  #gallery-section .gallery-band-footer {
    bottom: clamp(1.25rem, 4vw, 2rem);
  }
  #gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-content {
    flex-direction: column;
    align-items: flex-start;
  }
  #gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-copy { max-width: 100%; }
  #gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float {
    align-self: flex-end;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    max-height: min(340px, 48vh);
  }
  #gallery-section .gallery-slide--hero-bg.gallery-slide--hero-phone .gallery-slide-phone-float .iphone-frame {
    height: 100%;
    max-width: min(220px, 58vw);
  }
  #gallery-section .gallery-slides:not(:has(.gallery-slide--hero-bg.is-active)) {
    height: clamp(420px, 72vh, 560px);
  }
}

@media (min-width: 768px) {
  .gallery-slide {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
    justify-items: stretch;
  }
  .gallery-slide--hero-bg { grid-template-columns: 1fr; }
  #gallery-section .gallery-slides { height: clamp(440px, 52vw, 640px); }
  .gallery-slide-copy { text-align: left; max-width: none; padding: 0 1rem 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide { transition: none !important; }
}
