/* Styles for build-generated pages: project pages and the changelog. */
.gen-page { max-width: 1280px; margin: 0 auto; width: 100%; padding: clamp(1.5rem, 3vw, 3rem) var(--pad, 5vw) clamp(4rem, 7vw, 7rem) }
.gen-page .lab-back { margin: 0 0 1.5rem; padding: 0 }
.gen-page .eyebrow { margin: 0 0 1rem }
.gen-page h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: .9; letter-spacing: -.08em; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem) }
.video-facade, .video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #111116; border: 0 }
.video-facade { overflow: hidden }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 54%, rgba(0,0,0,.72)) }
.video-facade img { display: block; width: 100%; height: 100%; object-fit: cover }
.video-facade .play, .video-facade .duration { position: absolute; z-index: 2; bottom: 1rem; color: #fff; font: 500 .75rem "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase }
.video-facade .play { left: 1rem; border-bottom: 1px solid currentColor; padding-bottom: .18rem }
.video-facade .duration { right: 1rem }
.video-facade:focus-visible, .video-frame:focus-visible { outline: 2px solid #fff; outline-offset: 4px }
.project-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18) }
.project-meta p { grid-column: 1; margin: 0; max-width: 46rem; color: #dbd3e4; font-size: 1.05rem; line-height: 1.65 }
.project-meta .btn-ghost { grid-column: 2; grid-row: 1 / span 2 }
.project-tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none }
.project-tags li { padding: .3rem .6rem; border: 1px solid rgba(255,255,255,.25); color: #faf8fc; font: 500 .65rem "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase }
.breakdowns { display: grid; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem) }
.breakdown { margin: 0 }
.breakdown figcaption { margin-top: .75rem; color: #dbd3e4; font-size: .9rem; line-height: 1.6 }
.compare { --cut: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111116; cursor: ew-resize; touch-action: pan-y; user-select: none }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none }
.compare-before { clip-path: inset(0 calc(100% - var(--cut)) 0 0) }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--cut); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.6) }
.compare-handle::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; transform: translate(-50%, -50%); border-radius: 50%; background: #faf8fc; color: #070609; font-size: 1rem }
.compare:focus-visible { outline: 2px solid #fff; outline-offset: 4px }
.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18) }
.project-nav a { display: grid; gap: .3rem; min-height: 44px; font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em }
.project-nav a[rel="next"] { text-align: right }
.project-nav span { color: #b9b9bd; font: 500 .65rem "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase }
.project-nav a:hover { color: #dbd3e4 }
.project-cta { margin: 2rem 0 0 }
.changelog-intro { margin: -1rem 0 2.5rem; color: #dbd3e4; max-width: 40rem }
.release-entry { display: grid; gap: .9rem; padding: 1.75rem 0; border-top: 1px solid rgba(255,255,255,.18) }
.release-entry header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem }
.release-entry h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.045em }
.release-entry h2 span { color: #b9b9bd; font-weight: 500 }
.release-entry time { color: #b9b9bd; font: 500 .75rem "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase }
.release-entry ul { display: grid; gap: .5rem; margin: 0; padding-left: 1.1rem; color: #dbd3e4; line-height: 1.65; max-width: 46rem }
.release-entry .btn-ghost { justify-self: start }
@media (max-width: 760px) {
  .project-meta { grid-template-columns: 1fr }
  .project-meta .btn-ghost { grid-column: 1; grid-row: auto; justify-self: start }
  .project-nav a { font-size: 1rem }
}
