/* ================================
   Gallery Page Base
================================ */

.gallery-page {
  background: var(--color-white);
}

/* ================================
   Gallery Hero - Phase G2
================================ */

.gallery-hero {
  --color-focus: var(--color-white);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(28rem, 54vh, 36rem);
  padding-block: calc(var(--header-offset) + clamp(2rem, 4vw, 3.5rem)) clamp(2.5rem, 5vw, 4rem);
  overflow: clip;
  background: var(--color-black);
  color: var(--color-white);
  color-scheme: dark;
}

.gallery-hero__media,
.gallery-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.gallery-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.gallery-hero__overlay {
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(252, 149, 1, 0.24), transparent 24rem),
    linear-gradient(90deg, rgba(0, 1, 1, 0.9) 0%, rgba(0, 1, 1, 0.72) 42%, rgba(0, 1, 1, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 1, 1, 0.62) 0%, rgba(0, 1, 1, 0.18) 48%, rgba(0, 1, 1, 0.74) 100%);
}

.gallery-hero__inner {
  margin-inline: auto auto;
}

.gallery-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: clamp(0.8rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.76);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-hero__eyebrow::before {
  content: "";
  flex: 0 0 clamp(2rem, 5vw, 4.5rem);
  height: 2px;
  background: linear-gradient(90deg, var(--color-orange), rgba(252, 149, 1, 0.18));
}

.gallery-hero__title {
  color: var(--color-white);
  font-size: clamp(2.7rem, 4vw, 5.7rem);
  font-weight: var(--font-weight-normal);
  line-height: 0.98;
  letter-spacing: 0;
}

.gallery-hero .line-mask {
  display: block;
  overflow: hidden;
}

.gallery-hero .line-inner {
  display: block;
}

.gallery-hero__copy,
.gallery-hero__note {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.gallery-hero__copy {
  margin-top: clamp(1.15rem, 2vw, 1.45rem);
  font-size: var(--text-lg);
}

.gallery-hero__note {
  margin-top: 0.65rem;
  font-size: var(--text-base);
}

.gallery-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  margin-top: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-decoration: none;
}

.gallery-hero__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
}

.gallery-hero__link-icon {
  color: var(--color-orange);
  rotate: 90deg;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-hero__link:is(:hover, :focus-visible) .gallery-hero__link-icon {
    transform: translateX(0.25rem);
  }
}

@media (max-width: 47.999rem) {
  .gallery-hero {
    min-height: clamp(24rem, 50vh, 31rem);
    padding-block: calc(var(--header-offset) + 1.5rem) 2.5rem;
  }

  .gallery-hero__overlay {
    background:
      radial-gradient(ellipse at 16% 42%, rgba(252, 149, 1, 0.2), transparent 18rem),
      linear-gradient(90deg, rgba(0, 1, 1, 0.9) 0%, rgba(0, 1, 1, 0.68) 100%),
      linear-gradient(180deg, rgba(0, 1, 1, 0.7) 0%, rgba(0, 1, 1, 0.26) 45%, rgba(0, 1, 1, 0.8) 100%);
  }

  .gallery-hero__title {
    max-width: 90%;
    font-size: clamp(1.5rem, 12vw, 4.2rem);
  }

  .gallery-hero__copy {
    max-width: 34rem;
    font-size: var(--text-base);
  }

  .gallery-hero__note {
    display: none;
  }
}

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

.reduced-motion .gallery-hero__link-icon {
  transition: none;
  transform: none !important;
}

/* ================================
   Gallery Filters & Image Grid - Phase G3
================================ */

.gallery-work {
  --color-focus: var(--color-black);
  padding-block: clamp(3.5rem, 7vw, 7rem);
  background: #f7f4ef;
  color: var(--color-black);
  color-scheme: light;
}

.gallery-work__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.gallery-work__intro {
  max-width: 100%;
}

.gallery-work__eyebrow {
  margin-bottom: 0.8rem;
  color: var(--color-orange);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.gallery-work__intro h2 {
  font-size: clamp(2.1rem, 3vw, 4.6rem);
  font-weight: var(--font-weight-normal);
  line-height: 1;
  letter-spacing: 0;
}

.gallery-work__intro p:not(.gallery-work__eyebrow) {
  max-width: 39rem;
  margin-top: 1rem;
  color: rgba(0, 1, 1, 0.68);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.gallery-work__filters {
  display: flex;
  align-items: center;
  flex-wrap: nowrap !important;
  gap: 0.65rem;
  max-width: 100%;
  min-height: calc(2.65rem + 1.35rem);
  padding-block: 0.35rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  white-space: nowrap;
  transform: none !important;
  -webkit-overflow-scrolling: touch;
}

.gallery-work__filters::-webkit-scrollbar {
  display: none;
}

.gallery-work__filters > * {
  flex: 0 0 auto;
  white-space: nowrap;
}

.gallery-work__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 2.65rem;
  height: 2.65rem;
  box-sizing: border-box;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(0, 1, 1, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(0, 1, 1, 0.74);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.gallery-work__filter.is-active {
  border-color: rgba(252, 149, 1, 0.74);
  background: var(--color-black);
  color: var(--color-white);
}

.gallery-work__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
}

.gallery-work__item {
  position: relative;
  isolation: isolate;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(0, 1, 1, 0.08);
  border-radius: 0.5rem;
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: 0 1rem 2.6rem rgba(0, 1, 1, 0.08);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.gallery-work__item--featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 34rem;
}

.gallery-work__item--wide {
  grid-column: span 2;
}

.gallery-work__item--tall {
  grid-row: span 2;
  min-height: 34rem;
}

.gallery-work__item.is-hidden {
  display: none;
}

.gallery-work__item-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.gallery-work__item-button:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: -6px;
}

.gallery-work__item-button img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.gallery-work__item::after {
  display: none;
}

.gallery-work__item-button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 1, 1, 0.08) 0%, rgba(0, 1, 1, 0.35) 48%, rgba(0, 1, 1, 0.86) 100%),
    linear-gradient(90deg, rgba(252, 149, 1, 0.14), transparent 44%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.gallery-work__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(1rem, 2vw, 1.4rem);
  transition: transform 220ms ease;
}

.gallery-work__content p {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--color-orange);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-work__content h3 {
  color: var(--color-white);
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.05;
  letter-spacing: 0;
}

.gallery-work__content span {
  display: block;
  max-width: 24rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.gallery-work__empty {
  max-width: 30rem;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 1, 1, 0.1);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(0, 1, 1, 0.7);
  font-size: var(--text-sm);
}

@media (hover: hover) and (pointer: fine) {
  .gallery-work__filter:is(:hover, :focus-visible) {
    border-color: rgba(252, 149, 1, 0.7);
    color: var(--color-black);
    transform: translateY(-1px);
  }

  .gallery-work__filter.is-active:is(:hover, :focus-visible) {
    color: var(--color-white);
  }

  .gallery-work__item:is(:hover, :focus-within) {
    border-color: rgba(252, 149, 1, 0.64);
    box-shadow: 0 1.4rem 3rem rgba(0, 1, 1, 0.12);
    transform: translateY(-2px);
  }

  .gallery-work__item:is(:hover, :focus-within) .gallery-work__item-button img {
    transform: scale(1.045);
  }

  .gallery-work__item:is(:hover, :focus-within) .gallery-work__item-button::after {
    opacity: 0.92;
  }

  .gallery-work__item:is(:hover, :focus-within) .gallery-work__content {
    transform: translateY(-0.25rem);
  }
}

@media (max-width: 68.749rem) {
  .gallery-work__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-work__item--featured,
  .gallery-work__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 47.999rem) {
  .gallery-work {
    padding-block: 3.25rem;
  }

  .gallery-work__intro h2 {
    max-width: 11ch;
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .gallery-work__intro p:not(.gallery-work__eyebrow) {
    font-size: var(--text-base);
  }

  .gallery-work__filters {
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    margin-bottom: 0.75rem;
  }

  .gallery-work__grid {
    grid-template-columns: 1fr;
  }

  .gallery-work__item,
  .gallery-work__item--featured,
  .gallery-work__item--wide,
  .gallery-work__item--tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 22rem;
  }
}

@media (max-width: 24rem) {
  .gallery-work__item,
  .gallery-work__item--featured,
  .gallery-work__item--wide,
  .gallery-work__item--tall {
    min-height: 19rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-work__filter,
  .gallery-work__item,
  .gallery-work__item-button,
  .gallery-work__item-button img,
  .gallery-work__item-button::after,
  .gallery-work__content {
    transition: none !important;
    transform: none !important;
  }
}

.reduced-motion .gallery-work__filter,
.reduced-motion .gallery-work__item,
.reduced-motion .gallery-work__item-button,
.reduced-motion .gallery-work__item-button img,
.reduced-motion .gallery-work__item-button::after,
.reduced-motion .gallery-work__content {
  transition: none !important;
  transform: none !important;
}

/* ================================
   GSAP Flip Gallery Modal - Phase G4
================================ */

.gallery-modal {
  --color-focus: var(--color-orange);
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lightbox) + 2);
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  color: var(--color-white);
  color-scheme: dark;
  pointer-events: none;
  visibility: hidden;
}

.gallery-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.gallery-modal.is-open .gallery-modal__backdrop {
  opacity: 1;
}

.gallery-modal.is-open .gallery-modal__dialog {
  opacity: 1;
  transform: none;
}

.gallery-modal.is-animating .gallery-modal__image {
  opacity: 0;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(252, 149, 1, 0.16), transparent 28rem),
    rgba(0, 1, 1, 0.9);
  opacity: 0;
  cursor: pointer;
}

.gallery-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.55fr);
  width: min(100%, 82rem);
  max-height: min(86vh, 48rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  background: #050403;
  box-shadow: 0 2rem 6rem rgba(0, 1, 1, 0.48);
  opacity: 0;
  transform: translateY(1rem);
}

.gallery-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  min-width: var(--target-size);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 1, 1, 0.52);
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-modal__media-wrap {
  display: grid;
  place-items: center;
  min-height: 28rem;
  background: #000101;
}

.gallery-modal__image {
  width: 100%;
  height: 100%;
  max-height: min(86vh, 48rem);
  object-fit: contain;
}

.gallery-modal__content {
  display: grid;
  align-content: end;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(252, 149, 1, 0.08), transparent 32%),
    #080604;
}

.gallery-modal__category {
  margin-bottom: 0.7rem;
  color: var(--color-orange);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-modal__title {
  color: var(--color-white);
  font-size: clamp(2rem, 3.2vw, 3.75rem);
  font-weight: var(--font-weight-normal);
  line-height: 1;
  letter-spacing: 0;
}

.gallery-modal__caption {
  max-width: 28rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-base);
  line-height: 1.65;
}

.gallery-modal__flip-clone {
  position: fixed;
  z-index: calc(var(--z-lightbox) + 4);
  object-fit: cover;
  pointer-events: none;
  border-radius: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-modal__close:is(:hover, :focus-visible) {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: scale(1.04);
  }
}

@media (max-width: 47.999rem) {
  .gallery-modal {
    align-items: end;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .gallery-modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 88dvh;
    overflow-y: auto;
  }

  .gallery-modal__media-wrap {
    min-height: 18rem;
    max-height: 54dvh;
  }

  .gallery-modal__image {
    max-height: 54dvh;
  }

  .gallery-modal__content {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-modal__dialog,
  .gallery-modal__close,
  .gallery-modal__flip-clone {
    transition: none !important;
    transform: none !important;
  }
}

.reduced-motion .gallery-modal__dialog,
.reduced-motion .gallery-modal__close,
.reduced-motion .gallery-modal__flip-clone {
  transition: none !important;
  transform: none !important;
}

/* ================================
   Video Gallery - Phase G5
================================ */

.gallery-videos {
  --color-focus: var(--color-white);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(3.75rem, 7vw, 7rem);
  background:
    radial-gradient(ellipse at 82% 0%, rgba(252, 149, 1, 0.16), transparent 30rem),
    linear-gradient(180deg, #0b0703 0%, #000101 48%, #050302 100%);
  color: var(--color-white);
  color-scheme: dark;
}

.gallery-videos::before {
  content: "";
  position: absolute;
  inset-inline: var(--page-gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 149, 1, 0.42), transparent);
}

.gallery-videos__inner {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.75rem);
}

.gallery-videos__intro {
  max-width: 100%;
}

.gallery-videos__eyebrow,
.gallery-videos__label,
.gallery-video-modal__label {
  color: var(--color-orange);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-videos__eyebrow {
  margin-bottom: 0.8rem;
}

.gallery-videos__intro h2 {
  max-width: 100%;
  color: var(--color-white);
  font-size: clamp(2.1rem, 4vw, 4.6rem);
  font-weight: var(--font-weight-normal);
  line-height: 1;
  letter-spacing: 0;
}

.gallery-videos__intro p:not(.gallery-videos__eyebrow) {
  max-width: 42rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.gallery-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
}

.gallery-videos__card {
  min-width: 0;
}

.gallery-videos__play {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: #000101;
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.gallery-videos__play::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 1, 1, 0.04), rgba(0, 1, 1, 0.42)),
    radial-gradient(circle at 50% 50%, rgba(252, 149, 1, 0.14), transparent 34%);
  pointer-events: none;
}

.gallery-videos__play video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.gallery-videos__play-icon {
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(252, 149, 1, 0.62);
  border-radius: 50%;
  background: rgba(0, 1, 1, 0.5);
  color: var(--color-white);
  transform: translate(-50%, -50%);
  transition: background-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.gallery-videos__play-icon .icon {
  margin-left: 0.16rem;
  font-size: 1.15rem;
}

.gallery-videos__play:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 4px;
}

.gallery-videos__content {
  padding-top: 1rem;
}

.gallery-videos__label {
  margin-bottom: 0.45rem;
}

.gallery-videos__content h3 {
  color: var(--color-white);
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  font-weight: var(--font-weight-normal);
  line-height: 1.05;
  letter-spacing: 0;
}

.gallery-videos__content p:not(.gallery-videos__label) {
  max-width: 28rem;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.gallery-video-modal {
  --color-focus: var(--color-orange);
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-lightbox) + 3);
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  color: var(--color-white);
  color-scheme: dark;
  pointer-events: none;
  visibility: hidden;
}

.gallery-video-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.gallery-video-modal.is-open .gallery-video-modal__backdrop {
  opacity: 1;
}

.gallery-video-modal.is-open .gallery-video-modal__dialog {
  opacity: 1;
  transform: none;
}

.gallery-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(252, 149, 1, 0.16), transparent 28rem),
    rgba(0, 1, 1, 0.92);
  opacity: 0;
  cursor: pointer;
}

.gallery-video-modal__dialog {
  position: relative;
  display: grid;
  width: min(100%, 76rem);
  max-height: 88dvh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  background: #050403;
  box-shadow: 0 2rem 6rem rgba(0, 1, 1, 0.5);
  opacity: 0;
  transform: translateY(1rem) scale(0.98);
}

.gallery-video-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  min-width: var(--target-size);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(0, 1, 1, 0.58);
  color: var(--color-white);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-video-modal__player-wrap {
  display: grid;
  background: #000101;
}

.gallery-video-modal__player {
  width: 100%;
  max-height: 68dvh;
  background: #000101;
  aspect-ratio: 16 / 9;
}

.gallery-video-modal__content {
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background:
    linear-gradient(90deg, rgba(252, 149, 1, 0.09), transparent 38%),
    #080604;
}

.gallery-video-modal__title {
  margin-top: 0.45rem;
  color: var(--color-white);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: var(--font-weight-normal);
  line-height: 1;
  letter-spacing: 0;
}

.gallery-video-modal__caption {
  max-width: 42rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-base);
  line-height: 1.6;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-videos__play:is(:hover, :focus-visible) {
    border-color: rgba(252, 149, 1, 0.66);
    box-shadow: 0 1.4rem 3rem rgba(0, 1, 1, 0.24);
    transform: translateY(-2px);
  }

  .gallery-videos__play:is(:hover, :focus-visible) video {
    transform: scale(1.04);
  }

  .gallery-videos__play:is(:hover, :focus-visible) .gallery-videos__play-icon {
    background: var(--color-orange);
    color: var(--color-black);
    transform: translate(-50%, -50%) scale(1.05);
  }

  .gallery-video-modal__close:is(:hover, :focus-visible) {
    border-color: var(--color-orange);
    color: var(--color-orange);
    transform: scale(1.04);
  }
}

@media (max-width: 63.999rem) {
  .gallery-videos__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 47.999rem) {
  .gallery-videos {
    padding-block: 3.25rem;
  }

  .gallery-videos__intro h2 {
    max-width: 11ch;
    font-size: clamp(2rem, 10vw, 3.25rem);
  }

  .gallery-videos__intro p:not(.gallery-videos__eyebrow) {
    font-size: var(--text-base);
  }

  .gallery-video-modal {
    align-items: end;
    padding-inline: max(0.75rem, env(safe-area-inset-left, 0px)) max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .gallery-video-modal__dialog {
    width: 100%;
    max-height: 88dvh;
    overflow-y: auto;
  }

  .gallery-video-modal__close {
    top: 0.75rem;
    right: 0.75rem;
  }

  .gallery-video-modal__content {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-videos__play,
  .gallery-videos__play video,
  .gallery-videos__play-icon,
  .gallery-video-modal__dialog,
  .gallery-video-modal__close {
    transition: none !important;
    transform: none !important;
  }

  .gallery-videos__play-icon {
    transform: translate(-50%, -50%) !important;
  }
}

.reduced-motion .gallery-videos__play,
.reduced-motion .gallery-videos__play video,
.reduced-motion .gallery-videos__play-icon,
.reduced-motion .gallery-video-modal__dialog,
.reduced-motion .gallery-video-modal__close {
  transition: none !important;
  transform: none !important;
}

.reduced-motion .gallery-videos__play-icon {
  transform: translate(-50%, -50%) !important;
}

/* ================================
   Gallery CTA - Phase G6
================================ */

.gallery-cta {
  --color-focus: var(--color-white);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4rem, 8vw, 7.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(252, 149, 1, 0.1), transparent 30rem),
    linear-gradient(180deg, #050302 0%, #000101 100%);
  color: var(--color-white);
  color-scheme: dark;
}

.gallery-cta::after {
  content: "";
  position: absolute;
  inset-inline: var(--page-gutter);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(252, 149, 1, 0.34), rgba(255, 255, 255, 0.12), transparent);
}

.gallery-cta__glow {
  position: absolute;
  inset: 14% 8% auto auto;
  z-index: -1;
  width: min(36rem, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 149, 1, 0.18), transparent 68%);
  pointer-events: none;
}

.gallery-cta__eyebrow {
  margin-bottom: 1rem;
  color: var(--color-orange);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-cta__title {
  max-width: 14ch;
  color: var(--color-white);
  font-size: clamp(2.45rem, 5.2vw, 6rem);
  font-weight: var(--font-weight-normal);
  line-height: 0.98;
  letter-spacing: 0;
}

.gallery-cta .line-mask {
  display: block;
  overflow: hidden;
}

.gallery-cta .line-inner {
  display: block;
}

.gallery-cta__copy {
  max-width: 45rem;
  margin-top: clamp(1.15rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--text-lg);
  line-height: 1.65;
}

.gallery-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: clamp(1.45rem, 2.4vw, 2rem);
}

.gallery-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.2rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.75rem;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-decoration: none;
}

.gallery-cta__button--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--color-orange);
  color: var(--color-black);
  box-shadow: 0 1rem 2.4rem rgba(252, 149, 1, 0.12);
}

.gallery-cta__button--primary > * {
  position: relative;
  z-index: 1;
}

.gallery-cta__button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0.1) 66%, transparent 100%);
  opacity: 0;
  transform: translateX(-125%) skewX(-16deg);
  pointer-events: none;
}

.gallery-cta__button--secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: var(--color-white);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.gallery-cta__button-icon {
  rotate: -45deg;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-cta__button--secondary:is(:hover, :focus-visible) {
    border-color: rgba(252, 149, 1, 0.62);
    background: rgba(252, 149, 1, 0.12);
    color: var(--color-orange);
  }

  .gallery-cta__button--primary:is(:hover, :focus-visible)::before {
    opacity: 1;
    transform: translateX(125%) skewX(-16deg);
    transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
  }
}

@media (max-width: 47.999rem) {
  .gallery-cta {
    padding-block: 3.5rem;
  }

  .gallery-cta__glow {
    inset: 8% -35% auto auto;
  }

  .gallery-cta__title {
    max-width: 10.5ch;
    font-size: clamp(2.2rem, 10vw, 3.75rem);
  }

  .gallery-cta__copy {
    font-size: var(--text-base);
  }

  .gallery-cta__actions {
    display: grid;
  }

  .gallery-cta__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-cta__button,
  .gallery-cta__button--secondary,
  .gallery-cta__button--primary::before {
    transition: none !important;
    transform: none !important;
  }

  .gallery-cta__button--primary::before {
    display: none;
  }
}

.reduced-motion .gallery-cta__button,
.reduced-motion .gallery-cta__button--secondary,
.reduced-motion .gallery-cta__button--primary::before {
  transition: none !important;
  transform: none !important;
}

.reduced-motion .gallery-cta__button--primary::before {
  display: none;
}
