:root {
  --black: #050505;
  --white: #ffffff;
  --ink: #0a0a0a;
  --line: rgba(0, 0, 0, 0.16);
  --page-pad: 28px;
  --gap: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter Tight", Arial, sans-serif;
  font-weight: 400;
}

button, a { font: inherit; }

button { color: inherit; }

.black-header {
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--page-pad);
  background: var(--black);
  color: var(--white);
}

.brand-mark {
  color: inherit;
  font-family: "Syne", Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.07em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.marquee {
  display: flex;
  align-items: center;
  height: clamp(116px, 8.8vw, 172px);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: marquee 25s linear infinite;
}

.marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  padding-right: 0.42em;
  white-space: nowrap;
  font-family: "Syne", Arial, sans-serif;
  font-size: clamp(4.2rem, 6.4vw, 7.75rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.marquee-group span::after {
  content: "  ";
  white-space: pre;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.social-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  min-height: 410px;
  padding: 86px var(--page-pad) 76px;
  align-items: start;
}

.eyebrow {
  margin: 7px 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-intro h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Syne", Arial, sans-serif;
  font-size: clamp(3rem, 4.8vw, 5.8rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.filter-shell {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 0 var(--page-pad);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.filters {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 62px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.filters::-webkit-scrollbar { display: none; }

.filter-button {
  position: relative;
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-button::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.filter-button:hover::after,
.filter-button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.gallery-wrap {
  padding: 28px var(--page-pad) 100px;
}

.masonry {
  --gallery-columns: 5;
  column-count: var(--gallery-columns);
  column-gap: var(--gap);
}

/* Filtered views keep the exact same card width as the All view. */
.masonry.is-filtered {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
  gap: var(--gap);
  columns: initial;
}

.masonry.is-filtered .social-card {
  margin-bottom: 0;
}

.social-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--gap);
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #e9e9e9;
  color: var(--white);
  cursor: pointer;
  break-inside: avoid;
  vertical-align: top;
  isolation: isolate;
}

.social-card[hidden] { display: none; }

.social-card.video-card { aspect-ratio: 9 / 16; }
.social-card.ratio-4x5 { aspect-ratio: 4 / 5; }
.static-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.static-shell img,
.placeholder-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.social-card.ratio-1x1 { aspect-ratio: 1 / 1; }

.preview-shell,
.preview-shell iframe,
.placeholder-art,
.card-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.preview-shell {
  background:
    linear-gradient(135deg, rgba(255,255,255,.02), rgba(0,0,0,.12)),
    #d9d9d9;
}

.preview-shell::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  content: "";
  opacity: .9;
  transform: translate(-50%, -50%);
}

.preview-shell::after {
  position: absolute;
  top: 50%;
  left: calc(50% + 2px);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255,255,255,.95);
  content: "";
  transform: translate(-50%, -50%);
}

.preview-shell iframe {
  z-index: 1;
  border: 0;
  pointer-events: none;
  transform: scale(1.008);
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.card-overlay {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.77) 0%, rgba(0,0,0,.34) 48%, rgba(0,0,0,.15) 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.social-card:hover .card-overlay,
.social-card:focus-visible .card-overlay {
  opacity: 1;
}

.social-card:hover .preview-shell iframe,
.social-card:focus-visible .preview-shell iframe {
  transform: scale(1.03);
}

.overlay-client,
.overlay-status {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overlay-title {
  margin: 6px 0 18px;
  font-family: "Syne", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.45rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.placeholder-art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #161616;
  background:
    linear-gradient(135deg, transparent 42%, rgba(0,0,0,.07) 42%, rgba(0,0,0,.07) 58%, transparent 58%),
    linear-gradient(45deg, #ececec, #d7d7d7);
}

.placeholder-art::before,
.placeholder-art::after {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(0,0,0,.17);
  border-radius: 50%;
  content: "";
}

.placeholder-art::after {
  width: 42%;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  padding: 9px 12px;
  border: 1px solid rgba(0,0,0,.2);
  background: rgba(255,255,255,.72);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(250px, 0.42fr);
  gap: 34px;
  width: min(900px, 100%);
  max-height: calc(100vh - 48px);
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  background: #080808;
  color: var(--white);
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.modal-player {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 9 / 16;
  justify-self: center;
  overflow: hidden;
  border-radius: 7px;
  background: #000;
}

.modal-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 28px;
}

.modal-copy .overlay-title {
  margin-bottom: 26px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.modal-copy .overlay-status { opacity: .72; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: var(--white);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: var(--white);
  cursor: pointer;
  font-size: 1.1rem;
  transform: translateY(-50%);
}

.modal-prev { left: 12px; }
.modal-next { right: 12px; }
.modal-player.is-static {
  background: #fff;
}

.modal-player.is-static.ratio-4x5 {
  aspect-ratio: 4 / 5;
}

.modal-player.is-static.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.modal-player.is-static img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.prototype-note {
  padding: 0 var(--page-pad) 36px;
  color: rgba(0,0,0,.55);
  font-size: .72rem;
}

@media (max-width: 1280px) {
  .masonry { --gallery-columns: 4; }
}

@media (max-width: 980px) {
  .social-intro {
    min-height: 350px;
  }

  .masonry { --gallery-columns: 3; }
}

@media (max-width: 700px) {
  :root {
    --page-pad: 16px;
    --gap: 8px;
  }

  .site-header {
    height: 56px;
  }

  .site-nav { gap: 16px; }
  .site-nav a:first-child { display: none; }

  .marquee {
    height: 88px;
  }

  .marquee-group {
    font-size: 3.55rem;
  }

  .social-intro {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 62px;
  }

  .social-intro h1 {
    font-size: clamp(2.75rem, 13vw, 4.2rem);
  }

  .filters {
    gap: 22px;
    min-height: 56px;
  }

  .gallery-wrap { padding-top: 16px; }

  .masonry {
    --gallery-columns: 2;
    column-gap: var(--gap);
  }

  .social-card { border-radius: 7px; }

  .card-overlay {
    display: none;
  }

  .modal {
    align-items: stretch;
    padding: 0;
  }

  .modal-panel {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-height: none;
    min-height: 100svh;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .modal-player {
    width: min(100%, 56.25svh);
    max-width: 100%;
    border-radius: 0;
  }

  .modal-copy {
    width: 100%;
    padding: 24px 22px 38px;
  }

  .modal-copy .overlay-title {
    margin: 6px 0 20px;
    font-size: 1.8rem;
  }

  .modal-close {
    position: fixed;
    top: 14px;
    right: 14px;
  }

  .modal-nav { top: 42%; }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation-play-state: paused; }
  .preview-shell iframe,
  .card-overlay,
  .modal { transition: none; }
}
