/* Portfolio hub and project case studies */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-link-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 64px rgba(16, 16, 16, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-link-card:hover,
.project-link-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 30px 84px rgba(16, 16, 16, 0.15);
}

.project-link-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ecece8;
}

[data-project-card][hidden] {
  display: none !important;
}

.project-link-content {
  min-height: 142px;
  padding: 22px;
}

.project-link-content span,
.project-kicker {
  color: #087f72;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-link-content h2,
.project-link-content h3 {
  margin-top: 10px;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-link-content p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.projects-actions {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.projects-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.projects-filters .filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.projects-filters .filter.active {
  background: var(--dark);
  color: #fff;
}

.projects-filters .filter:focus-visible {
  outline: 3px solid rgba(16, 16, 16, 0.22);
  outline-offset: 3px;
}

.projects-hero {
  padding: 94px 0 72px;
}

.projects-hero-inner {
  max-width: 900px;
}

.projects-hero h1,
.project-hero h1 {
  letter-spacing: 0;
}

.project-page {
  --project-accent: #087f72;
}

.project-page .project-kicker {
  color: var(--project-accent);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-hero {
  padding: 76px 0 64px;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 64px;
  align-items: center;
}

.project-hero .lead {
  max-width: 600px;
}

.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.project-facts span {
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.project-video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-load-button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 68px;
  padding: 0 0 0 5px;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 50%;
  background: rgba(16, 16, 16, 0.9);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.3);
}

.video-load-button:hover,
.video-load-button:focus-visible {
  background: var(--project-accent);
}

.project-story {
  background: #fff;
}

.project-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 72px;
}

.project-story h2 {
  font-size: clamp(38px, 4vw, 60px);
  letter-spacing: 0;
}

.project-title-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  margin-top: 32px;
  border-radius: 30px;
  background: #f6f3ee;
  background: color-mix(in srgb, var(--project-accent) 13%, #fff);
  color: var(--project-accent);
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--project-accent) 45%, transparent);
}

.project-title-icon::after {
  content: "";
  position: absolute;
  inset: -11px;
  border: 1.5px dashed color-mix(in srgb, var(--project-accent) 32%, transparent);
  border-radius: 40px;
  pointer-events: none;
}

.project-title-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-story-copy {
  display: grid;
  gap: 34px;
}

.project-story-copy h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.project-story-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.project-related h2 {
  font-size: clamp(36px, 3.6vw, 56px);
  letter-spacing: 0;
}

.project-format-section {
  background: #eef3fb;
}

.project-format-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 80px;
  align-items: center;
}

.project-format-copy {
  max-width: 700px;
}

.project-format-copy h2 {
  margin-top: 16px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.project-format-copy > p:not(.tag) {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.project-format-video {
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

/* BestZenBuddy: campagne multiformat */
.bzb-section-head {
  max-width: 780px;
}

.bzb-ugc-section {
  background: #f4e8ed;
}

.bzb-ugc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.bzb-video-card {
  min-width: 0;
}

.project-video-shell.is-vertical {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
}

.bzb-video-card h3 {
  margin-top: 14px;
  font-size: 17px;
  letter-spacing: 0;
}

.bzb-micro-section {
  background: #fff;
}

.bzb-micro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 80px;
  align-items: center;
}

.bzb-micro-copy {
  max-width: 660px;
}

.bzb-micro-copy h2,
.bzb-carousel-copy h2 {
  margin-top: 16px;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.bzb-micro-copy > p:last-child,
.bzb-carousel-copy > p:last-child {
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.bzb-micro-video {
  width: 100%;
  max-width: 390px;
  justify-self: end;
}

.bzb-carousel-section {
  background: #f2ede7;
}

.bzb-carousel-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 560px);
  gap: 80px;
  align-items: center;
}

.project-carousel {
  min-width: 0;
  outline: none;
}

.project-carousel:focus-visible .project-carousel-viewport {
  outline: 3px solid rgba(215, 79, 103, 0.35);
  outline-offset: 4px;
}

.project-carousel-viewport {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #8f52ed;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.project-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
}

.project-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.carousel-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.carousel-arrow:hover,
.carousel-arrow:focus-visible {
  border-color: var(--project-accent);
  color: var(--project-accent);
}

.carousel-count {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c2b8b1;
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--project-accent);
  transform: scale(1.35);
}

.bzb-performance-section {
  background: #fff;
}

.bzb-performance-head {
  max-width: 850px;
}

.campaign-results-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.campaign-result-visual {
  min-width: 0;
  margin: 0;
}

.campaign-result-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.campaign-result-visual figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.performance-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.performance-result {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--project-accent);
  border-radius: 8px;
  background: #fff;
}

.performance-result-title span {
  color: var(--project-accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.performance-result-title h3 {
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: 0;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 20px;
}

.performance-metrics div {
  min-width: 0;
}

.performance-metrics dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.performance-metrics dd {
  margin: 7px 0 0;
  font-size: 28px;
  font-weight: 950;
}

.performance-result > p,
.performance-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.performance-note {
  max-width: 820px;
  margin: 18px 0 0;
}

@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero-grid,
  .project-story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .performance-results {
    grid-template-columns: 1fr;
  }

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

  .bzb-micro-grid,
  .bzb-carousel-layout,
  .project-format-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .bzb-micro-video,
  .project-carousel,
  .project-format-video {
    width: min(100%, 520px);
    justify-self: center;
  }
}

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

  .projects-hero,
  .project-hero {
    padding: 64px 0 54px;
  }

  .project-link-content {
    min-height: auto;
    padding: 18px;
  }

  .projects-filters {
    gap: 8px;
    margin-bottom: 26px;
  }

  .projects-filters .filter {
    min-height: 40px;
    padding: 0 14px;
  }

  .project-video-shell {
    border-radius: 18px;
  }

  .project-video-shell.is-vertical,
  .project-carousel-viewport {
    border-radius: 8px;
  }

  .bzb-ugc-grid {
    gap: 12px;
  }

  .performance-result {
    padding: 22px 18px;
  }

  .performance-metrics {
    gap: 8px;
  }

  .performance-metrics dt {
    font-size: 10px;
  }

  .performance-metrics dd {
    font-size: 23px;
  }

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