/* ═════════ CLIENT PAGE · SECTION 1 · HERO + COVER ═════════
   Shared by all 19 client pages (built by projects-page.js).
   Until a cover image is added, the cover shows up to three previews of the work. */
.pd-section1 {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 30px;
  overflow: hidden;
}

.pd-section1::before {
  content: '';
  position: absolute;
  inset-inline-end: -10%;
  top: -14%;
  width: 70vw;
  height: 80vh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20, 99, 243, 0.2), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.pd-section1 .container {
  position: relative;
}

.pd1-title {
  font-size: clamp(2.8rem, 7.6vw, 6.8rem);
  line-height: 1;
  letter-spacing: -0.06em;
  padding-bottom: 0.04em;
}

.pd1-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 56px;
  align-items: end;
  margin-top: 30px;
}

.pd1-lead {
  max-width: 560px;
}

.pd1-meta {
  display: flex;
}

.pd1-meta > div {
  padding: 0 24px;
  border-inline-start: 1px solid var(--border);
}

.pd1-meta > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.pd1-meta > div:last-child {
  padding-inline-end: 0;
}

.pd1-meta dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.pd1-meta dd {
  font-size: 0.98rem;
  white-space: nowrap;
}

.pd1-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pd1-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
}

.pd1-status.is-live {
  color: var(--blue-soft);
}

.pd1-status.is-live::before {
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
  animation: mk-blink 1.6s steps(2) infinite;
}

/* ─── the cover ─── */
.pd1-cover {
  --lx: 50%;
  --ly: 100%;
  position: relative;
  margin-top: 56px;
  aspect-ratio: 16 / 8.2;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(55% 65% at 50% 105%, rgba(20, 99, 243, 0.32), transparent 70%),
    linear-gradient(180deg, #0A1124, #05080F);
  box-shadow: var(--highlight), 0 50px 100px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transform-origin: 50% 100%;
}

/* faint grid on the stage */
.pd1-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 80% at 50% 60%, #000, transparent);
  mask-image: radial-gradient(70% 80% at 50% 60%, #000, transparent);
  pointer-events: none;
}

/* soft light that follows the mouse */
.pd1-cover-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--lx) var(--ly), rgba(91, 149, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.pd1-cover--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pd1-shot {
  position: absolute;
  will-change: transform;
}

.pd1-shot-i {
  position: relative;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--highlight), 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 60px -30px var(--blue-glow);
  overflow: hidden;
}

.pd1-shot--main { z-index: 2; width: 50%; left: 25%; top: 16%; }
.pd1-shot--main .pd1-shot-i { aspect-ratio: 16 / 10.5; }
.pd1-shot--a { z-index: 3; width: 29%; left: 5%; top: 44%; }
.pd1-shot--a .pd1-shot-i { aspect-ratio: 4 / 3; }
.pd1-shot--b { z-index: 1; width: 27%; right: 5%; top: 10%; }
.pd1-shot--b .pd1-shot-i { aspect-ratio: 4 / 3; }

/* only one or two previews: give the main one more room */
.pd1-cover--1 .pd1-shot--main { width: 58%; left: 21%; top: 13%; }
.pd1-cover--2 .pd1-shot--main { left: 30%; }
.pd1-cover--2 .pd1-shot--a { left: 7%; }

@media (max-width: 900px) {
  .pd-section1 { padding: calc(var(--nav-h) + 36px) 0 20px; }
  .pd1-row { grid-template-columns: 1fr; margin-top: 22px; }
  .pd1-meta { flex-wrap: wrap; gap: 18px 0; }
  .pd1-meta dd { white-space: normal; }
  .pd1-cover { margin-top: 36px; aspect-ratio: 4 / 3.5; border-radius: 20px; }
  .pd1-shot-i { border-radius: 10px; }
  .pd1-shot--main,
  .pd1-cover--2 .pd1-shot--main { width: 74%; left: 13%; top: 14%; }
  .pd1-cover--1 .pd1-shot--main { width: 82%; left: 9%; top: 18%; }
  .pd1-shot--a,
  .pd1-cover--2 .pd1-shot--a { width: 46%; left: 3%; top: 54%; }
  .pd1-shot--b { width: 42%; right: 3%; top: 4%; }
}

@media (max-width: 560px) {
  .pd1-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .pd1-meta > div { padding: 0; border: 0; }
}
