/* Gallery — page-specific styles */

.content-page-body:has(.gallery-featured) {
  position: relative;
  background-color: #0a0a0a;
}

.content-page-body:has(.gallery-featured) > * {
  position: relative;
  z-index: 1;
}

/* —— Hero —— */
.hero.hero--scroll.hero--gallery .hero-bg {
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-color: #000;
  filter: none;
  background-image: url("/gallery/images/gallery-hero-image-new.webp?v=20260602u");
  background-size: cover;
  background-position: center bottom;
}

.hero.hero--gallery .hero-bg {
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  .hero.hero--scroll.hero--gallery .hero-bg {
    background-size: cover;
    background-position: center bottom;
  }
}

.hero-inner--gallery {
  max-width: var(--max);
}

.gallery-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.gallery-eyebrow-line {
  flex: 1;
  max-width: 4.5rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(223, 87, 0, 0.85), transparent);
}

.gallery-eyebrow-line:last-child {
  background: linear-gradient(90deg, transparent, rgba(223, 87, 0, 0.85));
}

.hero-headline--gallery {
  margin: 0 0 1rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-headline--gallery .hero-line {
  display: block;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(2.75rem, 6.5vw, 4.85rem);
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.75);
}

.hero-headline--gallery .hero-line--accent {
  color: var(--orange);
}

.hero-sub--gallery {
  max-width: 30rem;
  margin: 0 0 1.35rem;
  font-size: clamp(0.9rem, 1.55vw, 0.98rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75);
}

.hero-btns--gallery {
  margin: 0;
}

.btn-gallery-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 800;
}

.btn-gallery-explore .ico-gallery {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(223, 87, 0, 0.25));
}

/* Fold strip — stat-style labels */
.hero-strip--gallery .strip-grid-wrap {
  max-width: 1320px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transform: none;
}

.hero-strip--gallery .si-top {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
}

.hero-strip--gallery .si-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.35;
}

/* Mobile: strip at fold + lighter scrim (bg uses cover above) */
@media (max-width: 991px) {
  .hero.hero--gallery .hero-inner::after {
    content: "";
    flex: 1 1 auto;
    min-height: clamp(7rem, 28vh, 14rem);
  }

  .gallery-eyebrow {
    margin-bottom: 0.65rem;
    font-size: 0.66rem;
  }

  .hero-headline--gallery {
    margin-bottom: 0.45rem;
  }

  .hero-headline--gallery .hero-line {
    font-size: clamp(2.05rem, 8.8vw, 2.95rem);
    line-height: 0.92;
  }

  .hero-sub--gallery {
    font-size: clamp(0.84rem, 3.5vw, 0.94rem);
    line-height: 1.48;
    margin-bottom: 0.65rem;
  }

  .hero.hero--gallery .strip-item {
    padding: 0.85rem 0.65rem;
    min-height: 4.75rem;
  }

  .hero-strip--gallery .si-top {
    font-size: 0.95rem;
  }

  .hero-strip--gallery .si-sub {
    font-size: 0.58rem;
  }
}

/* —— Featured projects —— */
.gallery-featured {
  padding: clamp(3.75rem, 7.5vw, 6rem) 1.25rem clamp(4rem, 8vw, 5.75rem);
}

.gallery-featured .wrap {
  max-width: 1180px;
}

.gallery-featured-head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.85rem);
}

.gallery-featured-title {
  margin: 0 auto 0.85rem;
  max-width: 56rem;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(2.35rem, 5.4vw, 3.45rem);
  letter-spacing: 0.04em;
  line-height: 0.98;
  text-transform: uppercase;
  color: var(--white);
}

.gallery-featured-accent {
  color: var(--orange);
  text-decoration: underline;
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.14em;
}

.gallery-featured-lead {
  margin: 0 auto;
  max-width: 44rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-featured .wrap.reveal-stagger:not(.visible) > .gallery-featured-grid,
.gallery-featured .wrap.reveal-stagger.visible > .gallery-featured-grid {
  opacity: 1;
  transform: none;
  transition: none;
}

.gallery-featured .wrap.reveal-stagger:not(.visible) .gfeat-card {
  opacity: 0;
  transform: translateY(18px);
}

.gallery-featured .wrap.reveal-stagger.visible .gfeat-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-featured .wrap.reveal-stagger.visible .gfeat-card:nth-child(1) { transition-delay: 0.08s; }
.gallery-featured .wrap.reveal-stagger.visible .gfeat-card:nth-child(2) { transition-delay: 0.16s; }
.gallery-featured .wrap.reveal-stagger.visible .gfeat-card:nth-child(3) { transition-delay: 0.24s; }

.gallery-featured .wrap.reveal-stagger:not(.visible) .gallery-featured-bar {
  opacity: 0;
  transform: translateY(14px);
}

.gallery-featured .wrap.reveal-stagger.visible .gallery-featured-bar {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.32s;
}

.gallery-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.gfeat-card {
  min-width: 0;
}

.gfeat-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.4s ease,
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.gfeat-card-link:hover {
  border-color: rgba(223, 87, 0, 0.22);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(223, 87, 0, 0.08);
  transform: translateY(-3px);
}

.gfeat-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.gfeat-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.02) brightness(1.02);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.gfeat-card-link:hover .gfeat-img img {
  transform: scale(1.03);
  filter: contrast(1.06) saturate(1.04) brightness(1.03);
}

.gfeat-body {
  position: relative;
  padding: 1.65rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(14, 14, 14, 0.98) 0%, rgba(8, 8, 8, 0.99) 100%);
}

.gfeat-ico {
  position: absolute;
  top: -1.35rem;
  left: 1.1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 87, 0, 0.4);
  background: radial-gradient(circle at 50% 45%, rgba(20, 20, 20, 0.55) 0%, rgba(0, 0, 0, 0.82) 100%);
  box-shadow: 0 0 18px rgba(223, 87, 0, 0.12);
}

.gfeat-ico img {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  filter: brightness(1.12) drop-shadow(0 0 8px rgba(223, 87, 0, 0.2));
}

.gfeat-title {
  margin: 0 0 0.45rem;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.05;
}

.gfeat-copy {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.gfeat-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.gfeat-arrow {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  background-color: var(--orange);
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.172 12l-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z'/%3E%3C/svg%3E");
}

.gallery-featured-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: center;
  padding: clamp(1.15rem, 2.2vw, 1.55rem);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(110% 140% at 0% 50%, rgba(223, 87, 0, 0.14) 0%, transparent 55%),
    linear-gradient(145deg, rgba(18, 18, 18, 0.92) 0%, rgba(6, 6, 6, 0.92) 100%);
  box-shadow:
    0 26px 66px rgba(0, 0, 0, 0.62),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.gfeat-bar-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid rgba(223, 87, 0, 0.35);
  background: radial-gradient(circle at 50% 45%, rgba(20, 20, 20, 0.55) 0%, rgba(0, 0, 0, 0.78) 100%);
  box-shadow: 0 0 18px rgba(223, 87, 0, 0.1);
}

.gfeat-bar-icon img {
  width: 1.65rem;
  height: 1.65rem;
  object-fit: contain;
  filter: brightness(1.12) drop-shadow(0 0 10px rgba(223, 87, 0, 0.22));
}

.gfeat-bar-copy {
  text-align: left;
  min-width: 0;
}

.gfeat-bar-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.gfeat-bar-title {
  margin: 0 0 0.2rem;
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.gfeat-bar-lead {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

.gallery-featured .gfeat-bar-btn .btn-hero-call {
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .gallery-featured-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
    margin-left: auto;
    margin-right: auto;
  }

  .gallery-featured-bar {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.35rem 1.1rem 1.25rem;
  }

  .gfeat-bar-copy {
    text-align: center;
    width: 100%;
  }

  .gfeat-bar-eyebrow {
    letter-spacing: 0.14em;
    line-height: 1.45;
    text-wrap: balance;
  }

  .gfeat-bar-title {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    text-wrap: balance;
  }

  .gfeat-bar-lead {
    font-size: 0.84rem;
    line-height: 1.52;
    text-wrap: pretty;
  }

  .gfeat-bar-btn {
    width: 100%;
    max-width: 22rem;
  }

  .gallery-featured .gfeat-bar-btn .btn-hero-call {
    display: flex;
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 0.95rem 1rem;
    line-height: 1.25;
  }
}

@media (max-width: 560px) {
  .gallery-featured-cta {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-featured .wrap.reveal-stagger:not(.visible) .gfeat-card,
  .gallery-featured .wrap.reveal-stagger:not(.visible) .gallery-featured-bar {
    opacity: 1;
    transform: none;
  }

  .gallery-featured .wrap.reveal-stagger.visible .gfeat-card,
  .gallery-featured .wrap.reveal-stagger.visible .gallery-featured-bar {
    transition: none;
  }

  .gfeat-card-link,
  .gfeat-img img {
    transition: none;
  }

  .gfeat-card-link:hover,
  .gfeat-card-link:hover .gfeat-img img {
    transform: none;
  }
}
