/* =====================================================================
   Phase 6C — Projects filter / Logos / Video / What-we-do
   ===================================================================== */

/* ---------- Latest projects ---------- */
.wn-projects__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.wn-projects__aside {
  display: grid;
  gap: 0.7rem;
  justify-items: start;
}

.wn-projects__aside p {
  margin: 0;
  color: var(--tb-muted, #8c7d72);
  font-size: 0.92rem;
  line-height: 1.7;
}

.wn-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0;
}

.wn-filter-pills button {
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(42, 26, 18, 0.18);
  border-radius: var(--tb-radius-pill, 999px);
  background: transparent;
  color: var(--tb-text-dark, #2a1a12);
  font: 600 0.78rem/1.2 var(--tb-font-body, Arial, sans-serif);
  cursor: pointer;
  transition:
    background var(--tb-duration-fast, 180ms) var(--tb-ease, ease),
    color var(--tb-duration-fast, 180ms) var(--tb-ease, ease),
    border-color var(--tb-duration-fast, 180ms) var(--tb-ease, ease);
}

.wn-filter-pills button:hover {
  border-color: var(--tb-orange, #e8541e);
  color: var(--tb-orange, #e8541e);
}

.wn-filter-pills button.is-active {
  background: var(--tb-orange, #e8541e);
  border-color: var(--tb-orange, #e8541e);
  color: var(--tb-white, #fff);
}

.wn-filter-pills button:focus-visible {
  outline: 2px solid var(--tb-orange, #e8541e);
  outline-offset: 2px;
}

.wn-projects-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 40px 32px !important;
  transition: opacity 0.35s var(--tb-ease, ease);
}

.wn-projects-grid.is-fading {
  opacity: 0;
}

.wn-filter-status {
  margin-top: 0.9rem;
  color: var(--tb-muted, #8c7d72);
  font-size: 0.8rem;
}

.wn-projects-trust {
  margin: clamp(1.6rem, 3.5vw, 2.4rem) 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(42, 26, 18, 0.1);
  color: var(--tb-muted, #8c7d72);
  font-size: 0.82rem;
  text-align: center;
}

/* Skeleton loader */
.tb-skeleton {
  border-radius: var(--tb-radius-card, 1.375rem);
  background: linear-gradient(100deg, rgba(42, 26, 18, 0.06) 40%, rgba(42, 26, 18, 0.12) 50%, rgba(42, 26, 18, 0.06) 60%);
  background-size: 200% 100%;
  animation: tb-shimmer 1.3s linear infinite;
  aspect-ratio: 4 / 5;
}

@keyframes tb-shimmer {
  to {
    background-position: -200% 0;
  }
}

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

/* ---------- Video ---------- */
.wn-video {
  height: 100vh;
  height: 100svh;
  min-height: 650px;
  padding: 0;
  background: var(--tb-bg-dark, #1a0d08);
}

.wn-video__shell {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #1f0a0a;
  isolation: isolate;
}

.wn-video__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wn-video__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 8, 2, 0.12) 0%, rgba(20, 8, 2, 0.05) 42%, rgba(20, 8, 2, 0.78) 100%);
}

.wn-video__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  padding: 2px 0 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.wn-video__play:hover,
.wn-video__play:focus-visible {
  background: #ec3e21;
  transform: translate(-50%, -50%) scale(1.06);
}

.wn-video__play:focus-visible {
  outline: 3px solid var(--tb-amber, #f6b800);
  outline-offset: 4px;
}

.wn-video__play-core {
  font-size: 30px;
  line-height: 1;
}

.wn-video__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  padding: 0 30px 60px;
  color: #fff;
  text-align: left;
  box-sizing: border-box;
}

.wn-video__eyebrow {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.wn-video__copy h2 {
  max-width: 640px;
  margin: 14px 0 0;
  color: #fff;
  font: 600 clamp(2rem, 1.3rem + 2.2vw, 2.375rem)/1.3 "Inter Tight", var(--tb-font-heading, Georgia, serif);
  letter-spacing: normal;
}

.wn-video__copy h2 em {
  color: #ec3e21;
  font-style: normal;
  font-weight: 600;
}

.wn-video__text {
  max-width: 547px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .wn-video {
    min-height: 520px;
  }
  .wn-video__content {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 24px 30px;
  }
  .wn-video__text {
    max-width: 640px;
  }
}

@media (max-width: 760px) {
  .wn-video {
    min-height: 460px;
  }
  .wn-video__shell {
    width: 100%;
    height: 100%;
  }
  .wn-video__play {
    width: 90px;
    height: 90px;
  }
  .wn-video__play-core {
    font-size: 22px;
  }
  .wn-video__content {
    padding: 0 18px 22px;
  }
  .wn-video__copy h2 {
    font-size: 1.7rem;
    line-height: 1.2;
  }
  .wn-video__text {
    font-size: 0.82rem;
    line-height: 1.45;
  }
}

/* ---------- What we do ---------- */
.wn-numbers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.wn-number-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}

.wn-stat-card {
  display: grid;
  gap: 0.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(42, 26, 18, 0.1);
  border-radius: var(--tb-radius-lg, 1.25rem);
  background: var(--tb-white, #fff);
}

.wn-stat-icon {
  color: var(--tb-orange, #e8541e);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.wn-stat-card .tb-stat__value {
  font: 600 1.9rem/1.1 var(--tb-font-heading, Georgia, serif);
  color: var(--tb-text-dark, #2a1a12);
}

.wn-stat-label,
.wn-stat-card > span:last-child {
  color: var(--tb-muted, #8c7d72);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wn-number-photo figure {
  margin: 0;
}

.wn-number-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  border-radius: var(--tb-radius-xl, 1.5rem);
}

.wn-what-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem 1.8rem;
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  padding: 1.4rem 1.8rem;
  border: 1px solid rgba(42, 26, 18, 0.1);
  border-radius: var(--tb-radius-xl, 1.5rem);
  background: var(--tb-white, #fff);
}

.wn-what-foot .wn-button {
  background: var(--tb-amber, #f6b800);
  border-color: var(--tb-amber, #f6b800);
  color: var(--tb-text-dark, #2a1a12);
  border-radius: var(--tb-radius-pill, 999px);
  padding: 0.75rem 1.35rem;
  font: 700 0.8rem/1.2 var(--tb-font-body, Arial, sans-serif);
  text-decoration: none;
}

.wn-what-foot .wn-button:hover {
  background: var(--tb-orange, #e8541e);
  border-color: var(--tb-orange, #e8541e);
  color: var(--tb-white, #fff);
}

.wn-what-phone {
  color: var(--tb-text-dark, #2a1a12);
  font-weight: 600;
  font-size: 0.9rem;
}

.wn-what-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
  color: var(--tb-muted, #8c7d72);
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .wn-projects__head,
  .wn-numbers-grid {
    grid-template-columns: 1fr;
  }
  .wn-projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .wn-what-rating {
    margin-left: 0;
  }
}

/* Ensure [hidden] wins over display utilities on filter controls */
.wn-center [data-tb-load-more][hidden],
[data-tb-load-more][hidden],
.wn-filter-status[hidden] {
  display: none !important;
}
