/* Page transition: staggered accent bars + project view */
#tx { position: fixed; inset: 0; z-index: 300; display: flex; pointer-events: none; visibility: hidden }
#tx.on { visibility: visible; pointer-events: auto }
#tx i { flex: 1 0 auto; width: calc(100% / var(--n, 8) + 1px); margin-right: -1px; height: 100%; background: var(--acc); transform: scaleY(0); transform-origin: 50% 100% }
#tx.on i { will-change: transform }

#proj { position: fixed; inset: 0; z-index: 120; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); color: var(--fg); visibility: hidden; opacity: 0 }
#proj.open { visibility: visible; opacity: 1 }
html.px-open, html.px-open body { overflow: hidden }

#proj .px { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--top) + env(safe-area-inset-top, 0px)) var(--pad) calc(var(--bot) + env(safe-area-inset-bottom, 0px)) }
#proj .pt { display: flex; justify-content: space-between; align-items: center; font-size: var(--nfs); line-height: 1.2 }
#proj .pb { display: inline-flex; align-items: center; gap: .5em; font: inherit; color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer }
#proj .pb svg { width: .8em; height: .8em; transform: rotate(-135deg); color: var(--acc) }
#proj .pb:hover { color: var(--acc) }
#proj .pk { color: var(--acc) }
#proj h2 { margin: clamp(48px, 9 * var(--vw), 140px) 0 0; font: 700 clamp(30px, 6.6 * var(--vw), 110px)/.92 'Cottorway', 'Outfit', sans-serif; text-transform: uppercase; max-width: 16ch }
#proj .pm { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: clamp(28px, 3.4 * var(--vw), 64px); font-size: var(--fs) }
#proj .pm span { color: var(--mut) }
#proj .tg2 { align-self: center; border: 1px solid var(--acc); color: var(--acc); border-radius: 999px; padding: 2px 14px; font-size: .75em }
#proj p { margin-top: clamp(24px, 3 * var(--vw), 56px); max-width: 38em; font: 400 var(--fs)/1.35 'Outfit', sans-serif; color: var(--fg) }
#proj .pn { margin-top: auto; padding-top: clamp(56px, 8 * var(--vw), 140px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 0 }
#proj .pn button { font: inherit; font-size: var(--fs); color: var(--fg); background: none; border: 0; padding: 0; cursor: pointer; text-align: left }
#proj .pn button:hover { color: var(--acc) }
#proj .pn small { display: block; font-size: .6em; color: var(--mut); margin-bottom: 4px }
@media (max-width: 700px) {
  #proj h2 { font-size: 11.5vw; max-width: none }
  #proj .pm { gap: 6px 24px }
}
@media (prefers-reduced-motion: reduce) { #tx { display: none } }
#proj:focus { outline: none }

#proj .pbody { flex: 1 0 auto; min-height: 50vh }

/* Upcoming view (placeholder for rows that have no write-up yet) */
#proj .up { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(14px, 1.6 * var(--vw), 28px) }
#proj .up .uk { max-width: 34em; font: 400 var(--fs)/1.25 'Outfit', sans-serif; color: var(--mut) }
#proj .up h2.uh { margin: 0; max-width: none; color: var(--acc); font-size: clamp(44px, 15vw, 300px); line-height: .9; letter-spacing: -.01em }
#proj .up .um { display: block; overflow: hidden; padding: .06em 0 }
#proj .up .um > span { display: block; animation: upRise 1.1s cubic-bezier(.16, 1, .3, 1) .5s both }
#proj .up .us { margin: 0; max-width: none; color: var(--fg); animation: upFade .9s ease 1s both }
@keyframes upRise { from { transform: translateY(110%) } to { transform: none } }
@keyframes upFade { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { #proj .up .um > span, #proj .up .us { animation: none } }
#proj .up .zb { margin-top: clamp(4px, .6 * var(--vw), 12px); font: 400 var(--fs)/1.2 'Outfit', sans-serif; color: var(--acc); background: none; border: 1px solid var(--acc); border-radius: 999px; padding: .2em .9em .25em; cursor: pointer; animation: upFade .9s ease 1.2s both; transition: background-color .35s, color .35s }
#proj .up .zb:hover { background: var(--acc); color: #000 }
@media (prefers-reduced-motion: reduce) { #proj .up .zb { animation: none } }
