:root {
  --bg: #080b10;
  --panel: #101620;
  --line: #2a3648;
  --text: #f1f3f7;
  --muted: #95a3b6;
  --accent: #74f2d1;
  --container: min(1240px, 94vw);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 80% 0%, #162236 0%, var(--bg) 35%), var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
}

.container {
  width: var(--container);
  margin: 0 auto;
}
.header-section {
  padding: 4.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: #080b10cc;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.brand img.logo {
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

.social-links {
  display: flex;
  gap: 0.6rem;
}

.social-link {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #304158;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #dbe7f7;
  text-decoration: none;
  background: #0f1a2a;
}

.social-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.social-link:hover {
  color: #ffffff;
  border-color: #4e87ac;
  background: #1a304a;
}

.intro {
  padding: 4.5rem 0 2rem;
}
.outro {
  padding: 0 0 2rem;
}

.kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 9vw, 6rem);
  line-height: 0.94;
  margin-top: 0.8rem;
}

.portfolio {
  padding: 1.6rem 0 4rem;
}

.collections {
  padding: 0 0 4rem;
}

.clients {
  padding: 0 0 4rem;
}

.contact {
  padding: 0 0 4rem;
}

.contact-head {
  margin-bottom: 1rem;
}

.contact-head h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.contact-head p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-card {
  display: flex;
  gap:15px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0f1622 0%, #121f31 100%);
  padding: 1rem;
}

.contact-card h3 {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.contact-card p {
  margin-top: 0.45rem;
  color: #bcd0ea;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.contact-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  color: #d7e6f8;
}

.contact-icon img {
  filter: brightness(0) invert(1);
  width: 100%;
  height: 100%;
  display: block;
}

.clients-head {
  margin-bottom: 1rem;
}

.clients-head h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.clients-carousel {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.clients-track {
  display: flex;
  width: max-content;
  gap: 0.85rem;
  animation: clientsMarquee 34s linear infinite;
}

.client-logo-item {
  min-width: 200px;
  height: 100px;
  border: 1px solid #2a3648;
  border-radius: 12px;
  background: #0d141f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.client-logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /*filter: brightness(0) invert(1);*/
  opacity: 0.92;
}

.client-logo-fallback {
  color: #e6edf8;
  font-size: 0.86rem;
  text-align: center;
  line-height: 1.2;
}

.collections-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.collections-head h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
  gap: 0.8rem;
}

.portfolio-head h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
}

.portfolio-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-grid {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.masonry-column {
  flex: 1 1 0;
  min-width: 0;
}

.portfolio-sentinel {
  height: 1px;
  width: 100%;
}

.video-card {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  opacity: 1;
  transform: none;
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  transition: filter 0.28s ease, transform 0.28s ease;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.video-card.is-vertical img {
  aspect-ratio: 9 / 16;
}

.video-meta {
  padding: 0.78rem 0.85rem 0.9rem;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.video-meta h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.video-meta p {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.video-card:hover img {
  filter: saturate(0.9) brightness(0.55) contrast(1.02);
  transform: scale(1.02);
}

.video-card:hover::after {
  opacity: 1;
}

.video-card:hover .video-meta {
  opacity: 1;
  transform: translateY(0);
}

.cta-card {
  margin-top: 0.4rem;
  border: 1px solid #3a4b65;
  background: linear-gradient(110deg, #13233a 0%, #1d3356 50%, #204b69 100%);
}

.cta-card::after {
  display: none;
}

.cta-card .video-meta {
  display: none;
}

.cta-card-inner {
  padding: 1.2rem;
}

.cta-kicker {
  margin: 0;
  color: #9debd8;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.cta-card h3 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.cta-link {
  margin: 0.7rem 0 0;
  color: #d2e2ff;
  font-size: 0.92rem;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.collection-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, #0f1622 0%, #121f31 100%);
  padding: 1rem;
  min-height: 180px;
}

.collection-kicker {
  color: #9debd8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.collection-card h3 {
  margin-top: 0.45rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.collection-description {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.group-videos-head {
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.group-videos-head h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}

.group-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.group-filter-btn {
  border: 1px solid #35506c;
  background: #0f1a2a;
  color: #d6e4f5;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.group-filter-btn.is-active {
  background: #204b69;
  border-color: #4e87ac;
  color: #fff;
}

.group-videos-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.group-videos-grid .video-card {
  margin: 0;
}

.group-videos-grid .video-card.is-vertical img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.group-videos-grid .video-card.is-vertical::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--thumb-image);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.9);
  transform: scale(1.08);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}

.group-videos-grid .video-card.is-vertical .video-meta {
  z-index: 2;
}


.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
}

.video-modal-dialog {
  position: relative;
  width: min(1100px, 94vw);
  z-index: 2;
}

.video-modal-close {
  position: absolute;
  top: -2.2rem;
  right: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #425571;
  border-radius: 999px;
  background: #101a29;
  color: #eaf0fa;
  font-size: 1.2rem;
  cursor: pointer;
}

.video-modal-frame-wrap {
  border: 1px solid #34465f;
  border-radius: 12px;
  overflow: hidden;
  background: #05070b;
  display: flex;
  justify-content: center;
}

.video-modal-frame-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-modal.is-vertical .video-modal-dialog {
  width: min(560px, 92vw);
}

.video-modal.is-vertical .video-modal-frame-wrap iframe {
  aspect-ratio: 9 / 16;
  height: 80vh;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
}

.video-modal.is-horizontal .video-modal-dialog {
  width: min(1100px, 94vw);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }

  .video-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 980px) {
  .video-card.is-vertical img,
  .video-card.is-horizontal img {
    aspect-ratio: 16 / 9;
  }

  .video-meta {
    opacity: 1;
    transform: translateY(0);
    position: static;
    background: linear-gradient(180deg, rgba(10, 15, 24, 0.1), rgba(10, 15, 24, 0.88));
  }

  .video-card::after {
    display: none;
  }

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

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

  .contact-actions {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  .video-modal-dialog {
    width: 96vw;
  }

  .nav {
    gap: 0.4rem;
    padding: 20px;
  }

  .portfolio-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .collections-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .group-videos-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-videos-grid {
    grid-template-columns: 1fr;
  }

  .clients-track {
    animation-duration: 24s;
  }

}
