:root {
  --bg: #02050a;
  --text: #f4f8fc;
  --muted: #9cacbd;
  --cyan: #64dcff;
  --orange: #ff9f43;
  --line: rgba(113, 204, 255, 0.25);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);

  background-color: var(--bg);
  background-image:
    linear-gradient(
      rgba(1, 4, 8, 0.45),
      rgba(1, 4, 8, 0.78)
    ),
    url("../../css/images/stars_background.png");

  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;

  padding:
    0.75rem
    max(1rem, calc((100% - var(--max)) / 2));

  border-bottom: 1px solid var(--line);

  background: rgba(2, 6, 11, 0.86);

  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.brand img {
  width: 45px;
  height: 45px;

  object-fit: contain;
}

.site-header nav {
  display: flex;
  gap: 1.2rem;
}

.site-header nav a {
  color: #b8c8d9;

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;

  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--cyan);
}

/* =========================================================
   PAGE WIDTH
   ========================================================= */

main,
footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: auto;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;

  gap: 3rem;
  align-items: center;

  padding: 4.5rem 0;
}

.hero-copy .eyebrow,
.section-heading .eyebrow {
  margin: 0 0 0.7rem;

  color: var(--cyan);

  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0 0 1rem;

  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;

  text-transform: uppercase;
}

.hero h1 span {
  color: transparent;

  -webkit-text-stroke:
    1px
    rgba(122, 218, 255, 0.95);
}

.hero p,
.section-intro {
  color: var(--muted);
  line-height: 1.75;
}

.hero-image {
  overflow: hidden;

  aspect-ratio: 16 / 10;

  border: 1px solid var(--line);
  border-radius: 18px;

  background: #030811;
}

.hero-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */

.content-section {
  margin-bottom: 2rem;

  padding: clamp(1.1rem, 3vw, 2.3rem);

  border: 1px solid var(--line);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(9, 18, 30, 0.95),
      rgba(4, 9, 16, 0.91)
    );
}

.section-heading {
  display: flex;
  gap: 1.4rem;

  margin-bottom: 1.4rem;
}

.section-number {
  margin: 0;

  color: rgba(100, 220, 255, 0.26);

  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.85;
}

.section-heading h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;

  text-transform: uppercase;
}

/* =========================================================
   GALLERY
   ========================================================= */

.gallery-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 0.75rem;
}

.gallery-item {
  position: relative;

  display: block;

  padding: 0;

  overflow: hidden;

  aspect-ratio: 4 / 3;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: #030811;

  cursor: pointer;
}

.gallery-item img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.04);
  opacity: 0.86;
}

.gallery-item span {
  position: absolute;

  right: 0.5rem;
  bottom: 0.5rem;

  padding: 0.35rem 0.45rem;

  border: 1px solid var(--line);
  border-radius: 4px;

  background: rgba(3, 8, 14, 0.82);

  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.08em;

  text-transform: uppercase;
}

/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {
  position: fixed;

  z-index: 100;
  inset: 0;

  display: none;

  grid-template-columns:
    56px
    minmax(0, 1fr)
    56px;

  align-items: center;

  gap: 1rem;

  padding: 1.2rem;

  background: rgba(0, 0, 0, 0.93);
}

.lightbox.open {
  display: grid;
}

.lightbox figure {
  margin: 0;

  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 86vh;

  border: 1px solid var(--line);
  border-radius: 10px;
}

.lightbox button {
  height: 48px;

  border: 1px solid var(--line);
  border-radius: 8px;

  color: var(--text);

  background: rgba(7, 16, 27, 0.95);

  font-size: 1.4rem;

  cursor: pointer;
}

.lightbox-close {
  position: fixed;

  top: 1rem;
  right: 1rem;

  width: 48px;
}

.lightbox-caption {
  margin: 0.65rem 0 0;

  color: var(--muted);

  font-size: 0.8rem;
}

/* =========================================================
   BACK LINK
   ========================================================= */

.back-link {
  display: inline-flex;

  margin-top: 1.2rem;

  padding: 0.75rem 1rem;

  border: 1px solid var(--line);
  border-radius: 7px;

  font-size: 0.74rem;
  font-weight: 900;

  text-decoration: none;
  text-transform: uppercase;
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: flex;
  justify-content: space-between;

  gap: 2rem;

  padding: 1.5rem 0 2.5rem;

  color: #718296;

  font-size: 0.76rem;
}

.footer-brand {
  font-weight: 900;
  letter-spacing: 0.13em;

  text-decoration: none;
}

footer p {
  margin: 0;

  text-align: right;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {
  body {
    background-attachment: scroll;
  }

  .site-header {
    gap: 0.8rem;
  }

  .site-header nav {
    gap: 0.65rem;
  }

  .site-header nav a {
    font-size: 0.62rem;
  }

  .brand span {
    display: none;
  }

  .gallery-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    grid-template-columns:
      42px
      minmax(0, 1fr)
      42px;

    gap: 0.4rem;

    padding: 0.5rem;
  }

  footer {
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}
