/* Project pages (base.css holds tokens, menu and footer).
   The pages are generated by site-fonte/tools/build-projects.mjs. */

.pj { background: var(--black); color: var(--white); }

/* ---------- opening ---------- */
.pj-hero { position: relative; padding: clamp(130px, 15vw, 250px) 0 clamp(40px, 5vw, 90px); overflow: hidden; }
.pj-beam {                                      /* one soft, smoky beam falling across the title */
  position: absolute; top: 0; right: -6%; width: min(70vw, 1100px); height: 135%; transform-origin: 78% 0; transform: rotate(16deg);
  filter: blur(8px); pointer-events: none; animation: beam-up 1.6s ease-out both;
}
.pj-beam::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, .34) 28%, rgba(255, 255, 255, .1) 75%, transparent 100%);
  clip-path: polygon(76% 0, 80% 0, 100% 100%, 0 100%);
  -webkit-mask: var(--smoke) 0 0 / 700px 700px; mask: var(--smoke) 0 0 / 700px 700px; animation: smoke-drift 46s linear infinite;
}
@keyframes smoke-drift { to { -webkit-mask-position: 700px 350px; mask-position: 700px 350px; } }
@keyframes beam-up { from { opacity: 0; } to { opacity: 1; } }
.pj-hero .wrap { position: relative; }
/* small emblem beside the title (the hexagon, the wave) */
.pj-emblem { position: absolute; right: 0; top: 0; width: clamp(64px, 8.5vw, 150px); height: auto; aspect-ratio: auto; object-fit: contain; }
.pj-cue { display: flex; align-items: center; gap: .8em; font-size: clamp(13px, 1.1vw, 17px); text-transform: uppercase; color: #fff; }
.pj-cue span:last-child { color: var(--grey-on-dark); }
.pj-led { width: .62em; height: .62em; border-radius: 50%; background: #b00000; }
.pj-hero h1 { margin-top: clamp(18px, 2vw, 36px); font: 700 clamp(44px, 9.4vw, 170px) / .94 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.pj-meta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 80px); margin-top: clamp(36px, 5vw, 90px); padding-top: clamp(18px, 2vw, 30px); border-top: 2px solid #fff; }
.pj-tags li { padding: .55em 0; border-bottom: 1px solid #3a3a3a; font-size: clamp(13px, 1.05vw, 17px); text-transform: uppercase; color: #d6d6d6; }
.pj-tags li::before { content: ""; display: inline-block; width: .55em; height: .55em; margin-right: .8em; background: var(--accent); }
.pj-lead p { max-width: 58ch; font: 400 clamp(18px, 1.7vw, 28px) / 1.42 var(--sans); color: #f1f1f1; }
.pj-lead p + p { margin-top: 1em; }

/* ---------- media and text ---------- */
.pj-flow { padding-bottom: clamp(70px, 9vw, 160px); }
.pj-row { display: flex; gap: clamp(6px, .8vw, 14px); margin-top: clamp(6px, .8vw, 14px); }
.pj-row figure { flex: var(--r) 1 0; min-width: 0; aspect-ratio: var(--r); overflow: hidden; background: #0c0c0c; }
.pj-row img, .pj-row video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pj-split { align-items: center; gap: clamp(24px, 5vw, 100px); margin-block: clamp(30px, 5vw, 90px); }
.pj-split figure { flex: 0 1 56%; }
.pj-side { flex: 1 1 0; }
.pj-text-first .pj-side { order: -1; }
.pj-text, .pj-side { font: 400 clamp(17px, 1.45vw, 23px) / 1.5 var(--sans); color: #e2e2e2; }
.pj-text { max-width: 62ch; margin: clamp(48px, 6.5vw, 120px) 0 clamp(48px, 6.5vw, 120px) auto; padding-left: clamp(16px, 1.6vw, 28px); border-left: 4px solid var(--accent); }
.pj-text p + p, .pj-side p + p { margin-top: 1em; }
.pj-side { min-width: min(100%, 300px); }
.pj-side p { max-width: 46ch; }

/* ---------- next cue ---------- */
.pj-next { display: block; padding: clamp(40px, 6vw, 110px) 0; border-top: 2px solid #fff; text-decoration: none; color: #fff; transition: background-color .3s ease, color .3s ease; }
.pj-next .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 30px; }
.pj-next .mono { font-size: clamp(13px, 1.05vw, 17px); text-transform: uppercase; color: var(--grey-on-dark); grid-column: 1 / -1; transition: color .3s ease; }
.pj-next strong { font: 700 clamp(34px, 7vw, 124px) / .98 var(--sans); letter-spacing: -.03em; }
.pj-next .pj-go { grid-column: auto; padding: .8em 1.3em; border: 2px solid currentColor; border-radius: 999px; font-weight: 700; color: inherit; }
@media (hover: hover) {
  .pj-next:hover { background: var(--accent-ink); color: #fff; }
  .pj-next:hover .mono:first-child { color: #fff; }
}

@media (max-width: 760px) {
  .pj-meta { grid-template-columns: 1fr; }
  .pj-row { flex-direction: column; }
  .pj-row figure, .pj-split figure { flex: none; width: 100%; }
  .pj-split { gap: 22px; }
  .pj-text-first .pj-side { order: 0; }
  .pj-text { margin-left: 0; }
  .pj-beam { width: 120vw; right: -30%; }
}
@media (prefers-reduced-motion: reduce) { .pj-beam, .pj-beam::before { animation: none; } .pj-next { transition: none; } }
