.fe-page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.fe-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.85rem, 2vw, 1.25rem) var(--page-padding-x);
  background: linear-gradient(to bottom, rgba(2, 7, 15, 0.92), rgba(2, 7, 15, 0));
  pointer-events: none;
}

.fe-top-bar a {
  pointer-events: auto;
}

.fe-back-link {
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.fe-back-link:hover,
.fe-back-link:focus-visible {
  color: #fff;
}

.fe-back-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.fe-hero {
  position: relative;
  min-height: clamp(320px, 72vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
}

.fe-hero__media {
  position: absolute;
  inset: 0;
}

.fe-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.fe-hero__video--mobile {
  display: none;
}

@media (max-width: 768px) {
  .fe-hero__video--desktop {
    display: none;
  }

  .fe-hero__video--mobile {
    display: block;
  }
}

.fe-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(2, 7, 15, 0.35) 0%,
      rgba(2, 7, 15, 0.2) 40%,
      rgba(2, 7, 15, 0.88) 100%
    );
  pointer-events: none;
}

.fe-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(5rem, 14vh, 8rem) var(--page-padding-x) var(--page-padding-y);
}

.fe-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: clamp(0.68rem, 1.1vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #67d9e8;
}

.fe-hero__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 300;
  line-height: 1.15;
  text-wrap: balance;
}

.fe-hero__intro {
  margin: 1rem 0 0;
  max-width: 42ch;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  color: var(--muted);
}

.fe-gallery-section {
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--page-padding-x)
    clamp(3rem, 8vh, 5rem);
}

.fe-gallery-header {
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  text-align: center;
}

.fe-gallery-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fe-gallery-header p {
  margin: 0.75rem auto 0;
  max-width: 50ch;
  color: var(--muted);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  line-height: 1.6;
}

.fe-gallery__error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fe-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.2vw, 0.85rem);
}

@media (min-width: 640px) {
  .fe-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .fe-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
  }
}

.fe-gallery__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: #0a1018;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fe-gallery__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.fe-gallery__item:focus-visible {
  outline: 2px solid #67d9e8;
  outline-offset: 3px;
}

.fe-gallery__item picture,
.fe-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
}

.fe-gallery__item img {
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fe-gallery__item:hover img {
  transform: scale(1.03);
}

.fe-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(2, 7, 15, 0.94);
  backdrop-filter: blur(6px);
}

.fe-lightbox[hidden] {
  display: none;
}

body.fe-lightbox-open {
  overflow: hidden;
}

.fe-lightbox__dialog {
  position: relative;
  width: min(1100px, 100%);
  max-height: 90vh;
  display: grid;
  gap: 0.75rem;
}

.fe-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.fe-lightbox__image-wrap {
  display: block;
  max-height: calc(90vh - 5rem);
  overflow: hidden;
  background: #000;
}

.fe-lightbox__image-wrap picture,
.fe-lightbox__image-wrap img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 5rem);
  object-fit: contain;
}

.fe-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.fe-lightbox__caption {
  margin: 0;
  color: var(--text);
}

.fe-lightbox__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fe-lightbox__btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(2, 7, 15, 0.65);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fe-lightbox__btn:hover {
  background: rgba(2, 7, 15, 0.9);
  border-color: rgba(103, 217, 232, 0.65);
}

.fe-lightbox__btn:focus-visible {
  outline: 2px solid #67d9e8;
  outline-offset: 3px;
}

.fe-lightbox__prev {
  left: -0.25rem;
}

.fe-lightbox__next {
  right: -0.25rem;
}

.fe-lightbox__close {
  top: -0.25rem;
  right: 0;
  transform: none;
  font-size: 1.5rem;
}

@media (max-width: 720px) {
  .fe-lightbox__prev {
    left: 0.25rem;
  }

  .fe-lightbox__next {
    right: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fe-gallery__item,
  .fe-gallery__item img,
  .fe-lightbox__btn,
  .fe-back-link {
    transition: none;
  }

  .fe-gallery__item:hover {
    transform: none;
  }

  .fe-gallery__item:hover img {
    transform: none;
  }
}
