/* ===========================================================================
   V8 — projects.

   Text-only cards: name, three lines of what we did, tags. No imagery, so a
   project with no artwork yet sits next to a finished one without the grid
   falling apart. The same card is used on the landing and in the archive; the
   archive adds a filter bar.
   ======================================================================== */

.v8p {
  --paper: #fff;
  --ink: var(--black, #1b1b1b);
  --mute: var(--grey--50, #8b8b8b);
  --hair: var(--grey--10, #e8e8e8);
  --live: var(--green, #10d07f);
  --beam: var(--blue-primary, #0f9ded);

  position: relative;
  font-family: Poppins, sans-serif;
  background: var(--paper);
  color: var(--ink);
  padding: 104px 0;
  border-top: 1px solid var(--hair);
}

.v8p.is-archive { min-height: 100vh; border-top: 0; padding-top: 150px; }

.v8p-wrap {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* --- Head ----------------------------------------------------------------*/
.v8p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .9375rem;
  font-weight: 400;
  color: var(--mute);
}

.v8p-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  flex: 0 0 auto;
}

.v8p-head {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: end;
  gap: 64px;
  margin-top: 22px;
}

.v8p-head h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  font-weight: 500;
  max-width: 15ch;
}

/* The count, set as a display figure rather than a line of copy. */
.v8p-total {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 4px;
}

.v8p-total-num {
  font-size: clamp(3.25rem, 6.4vw, 5.5rem);
  line-height: .86;
  letter-spacing: -.05em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.v8p-total-label {
  font-size: .9375rem;
  line-height: 1.4;
  color: var(--mute);
  padding-bottom: .35em;
}

.v8p-more-num {
  margin-left: 9px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.v8p-head p {
  margin: 0 0 6px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--mute);
}

/* --- Filter bar ----------------------------------------------------------*/
.v8p-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--hair);
}

.v8p-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.v8p-filters button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: #fff;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  color: var(--mute);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.v8p-filters button:hover { color: var(--ink); border-color: var(--grey--20, #cecece); }

.v8p-filters button.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.v8p-count { margin-left: auto; font-size: .875rem; color: var(--mute); }

/* --- Grid ----------------------------------------------------------------*/
/* Two per row, with the lead project running the full width above them. */
.v8p-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.v8p-card.is-lead { grid-column: span 2; }

.v8p-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--hair);
  text-decoration: none;
  color: inherit;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1),
              box-shadow .4s cubic-bezier(.22, .61, .36, 1),
              border-color .4s ease;
}

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

/* Only cards that lead somewhere react to the pointer. */
.v8p-card:not(.is-soon):hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 26px 50px -26px rgba(16, 60, 110, .26);
}

.v8p-card.is-soon { pointer-events: none; }

/* --- Cover ---------------------------------------------------------------*/
.v8p-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--hair);
  display: grid;
  place-items: center;
}

.v8p-card.is-lead .v8p-media { aspect-ratio: 24 / 9; }

.v8p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}

.v8p-card:hover .v8p-media img { transform: scale(1.04); }

.v8p-ph { font-size: .875rem; color: var(--grey--30, #b8b8b8); }

.v8p-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px 26px 26px;
}

.v8p-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.v8p-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.02em;
  font-weight: 500;
}

.v8p-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
}

.v8p-go svg {
  width: 13px;
  height: 13px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}

.v8p-card:hover .v8p-go { color: var(--beam); }
.v8p-card:hover .v8p-go svg { transform: translate(3px, -3px); }

/* --- What we did ---------------------------------------------------------*/
.v8p-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  flex: 1 1 auto;
}

.v8p-list li {
  position: relative;
  padding-left: 18px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.v8p-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--beam);
}

.v8p-pending {
  margin: 18px 0 0;
  flex: 1 1 auto;
  font-size: .9375rem;
  color: var(--grey--30, #b8b8b8);
}

.v8p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.v8p-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: .75rem;
  color: var(--mute);
}

/* --- Section footer ------------------------------------------------------*/
.v8p-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}

.v8p-more-btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--grey--20, #cecece);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .22s ease, transform .22s ease;
}

.v8p-more-btn:hover { border-color: var(--ink); transform: translateY(-1px); }

/* --- Reveal --------------------------------------------------------------*/
.v8p-card {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .65s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
              transform .65s cubic-bezier(.22, .61, .36, 1) var(--d, 0ms),
              box-shadow .4s ease, border-color .4s ease;
}

.v8p-card.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .v8p-card { opacity: 1; transform: none; transition: none; }
}

/* --- Responsive ----------------------------------------------------------*/
@media (max-width: 900px) {
  .v8p-grid { grid-template-columns: 1fr; }
  .v8p-card.is-lead { grid-column: auto; }
  .v8p-card.is-lead .v8p-media { aspect-ratio: 16 / 10; }
}

@media (max-width: 991px) {
  .v8p { padding: 72px 0; }
  .v8p.is-archive { padding-top: 104px; }
  .v8p-wrap { padding: 0 24px; }
  .v8p-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .v8p-head h2 { max-width: none; }
  .v8p-count { margin-left: 0; }
}



/* The sharpest number the project has, sitting between the name and the three
   lines of work. Tabular figures so the digits line up across a row of cards. */
.v8p-stat {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--beam, #0f9ded);
  font-variant-numeric: tabular-nums;
}

.v8p-card.is-lead .v8p-stat { font-size: 15px; }

/* Motion cover. Sits in the same slot as a still and crops the same way, so a
   card with one and a card without stay the same size.

   No hover scale here, unlike the still covers: scaling a playing video forces
   the compositor to resample every frame, which showed as the loop going soft
   and hitching under the cursor. The cover is already moving; it does not need
   the hover to say so. */
.v8p-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Match the cover's own ground so nothing flashes before the first frame
   paints, and so the seam between slot and video is invisible. */
.v8p-media:has(video) { background: #ebebeb; }
