:root {
  --deep-space-blue: #0b132b;
  --frozen-water: #8ecae6;
  --dusty-taupe: #b6a39a;

  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.78);
  --card: rgba(182, 163, 154, 0.12);
  --border: rgba(142, 202, 230, 0.22);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--deep-space-blue);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
}

h2 {
  font-size: 28px;
}

p {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--frozen-water);
  color: #061026;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  filter: brightness(1.03);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 43, 0.72);
  display: flex;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  color: rgba(142, 202, 230, 0.92);
  margin-bottom: 10px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 10px;
}

.hero__subtitle {
  max-width: 60ch;
  color: var(--muted);
}

.gallery {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery__item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.gallery__item img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transition: transform 180ms ease;
}

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

.gallery__label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 19, 43, 0.72);
  border: 1px solid rgba(142, 202, 230, 0.25);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}

.project {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
}

.project__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.project__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.project__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 16px 14px;
  background: rgba(11, 19, 43, 0.82);
}

.project__title {
  margin: 0 0 6px;
  font-size: 20px;
}

.project__desc {
  margin: 0;
  color: var(--muted);
}

.project__text {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
}

.section--thanks {
  border-top: 1px solid var(--border);
}

.media-carousel {
  margin: 18px 0 8px;
  display: grid;
  gap: 12px;
}

.media-carousel__row {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11, 19, 43, 0.28);
}

.media-carousel__track {
  width: max-content;
  display: flex;
  gap: 10px;
  padding: 10px;
  animation: carousel-move 72s linear infinite;
}

.media-carousel__track--reverse {
  animation-direction: reverse;
}

.media-carousel__item {
  width: 220px;
  height: 136px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(142, 202, 230, 0.2);
  background: rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.media-carousel__item img,
.media-carousel__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes carousel-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.footer__text {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero {
    height: 58vh;
    min-height: 380px;
  }

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

  .gallery__item img {
    height: 170px;
  }

  .project {
    grid-template-columns: 1fr;
  }

  .project__img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 44px 0;
  }

  .hero {
    min-height: 330px;
  }

  h2 {
    font-size: 24px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .media-carousel__item {
    width: 170px;
    height: 108px;
  }

  .media-carousel__track {
    gap: 8px;
    padding: 8px;
    animation-duration: 56s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .media-carousel__track {
    animation: none;
  }
}

