/* Projects hero in the shared style: a passport page with one stamp per project. Loaded on projects.html only. */
.page-hero.ph-fan { padding-block: 108px 40px; overflow: hidden; }
.ph-fan .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ph-fan .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 8px; rotate: -2.5deg; background: var(--green); color: var(--navy); letter-spacing: 0.12em; }
.ph-fan h1 { margin-top: 18px; line-height: 1.05; }
.ph-fan .ph-text p { font-size: 1.15rem; }
.pp { justify-self: center; width: min(360px, 100%); padding: 20px 20px 22px; border-radius: 6px 16px 16px 6px; background: #fbf7ec; color: var(--navy); rotate: 3deg; box-shadow: -10px 0 0 #e9e2cf, 0 28px 48px rgba(10,15,46,0.4); background-image: repeating-linear-gradient(0deg, transparent 0 26px, rgba(10,15,46,0.05) 26px 27px); transition: rotate .5s cubic-bezier(.3,1.8,.5,1); }
.pp:hover { rotate: 0deg; }
.pp-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 2px solid rgba(10,15,46,0.12); }
.pp-head b { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6d2f; }
.pp-head .tk-logo { background: var(--navy); padding: 5px 9px; border-radius: 6px; }
.pp-stamps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; align-items: center; justify-items: center; }
.ps { display: grid; justify-items: center; gap: 2px; padding: 12px 10px; min-width: 128px; border: 3px solid currentColor; border-radius: 12px; text-align: center; opacity: 0.88; line-height: 1.1; }
.ps small { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ps b { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; }
.ps i { font-style: normal; font-size: 0.7rem; font-weight: 700; }
.ps0 { color: #18a957; rotate: -10deg; border-radius: 50%; aspect-ratio: 1; align-content: center; min-width: 0; width: 128px; }
.ps1 { color: var(--blue); rotate: 8deg; outline: 1.5px solid currentColor; outline-offset: 3px; }
.ps2 { color: #d64545; rotate: -4deg; }
.ps3 { color: #7a4fd6; rotate: 6deg; border-radius: 50%; aspect-ratio: 1; align-content: center; min-width: 0; width: 128px; }
.ps-next { grid-column: 1 / -1; border-style: dashed; color: rgba(10,15,46,0.4); font-size: 1.4rem; rotate: -2deg; min-width: 0; padding: 8px 16px; }
@media (max-width: 900px) { .ph-fan .wrap { grid-template-columns: 1fr; gap: 34px; } .pp { width: min(320px, 92%); } }
@media (max-width: 420px) { .ps0, .ps3 { width: 112px; } .ps { min-width: 112px; } }
@media (prefers-reduced-motion: reduce) { .pp { transition: none; } }
@media (max-width: 520px) { .pj-filter .tabs { gap: 6px; } .pj-filter .tab { padding: 7px 11px; font-size: 0.82rem; } }

/* Shorter project bands: less padding, clamped description, smaller photo on phones */
.pj { padding: 72px 0 80px; }
.pj-grid { gap: 56px; }
.pj-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; margin-bottom: 6px; }
.pj-desc.open { display: block; -webkit-line-clamp: unset; }
.pj-more-btn { all: unset; cursor: pointer; margin: 0 0 20px; font-weight: 800; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; color: inherit; opacity: 0.85; }
.pj-more-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.pj-more-btn[hidden] { display: none; }
.pj-desc:not(.open) + .pj-more-btn[hidden] ~ * { margin-top: 0; }
@media (max-width: 860px) {
  .pj { padding: 48px 0 56px; }
  .pj-grid { gap: 26px; }
  .pj-pic { width: min(240px, 66%); margin: 0 auto; }
  .pj-pol .hand { font-size: 1.4rem; }
  .pj-pol small { display: none; }
  .pj-note { display: none; }
  .pj-meta { margin-top: 12px; font-size: 0.75rem; }
  .pj h2 { margin-bottom: 12px; }
  .pj-desc { -webkit-line-clamp: 3; line-clamp: 3; font-size: 1rem; }
  .pj-chips { gap: 7px; margin-bottom: 18px; }
  .pj-chips li { padding: 6px 12px; font-size: 0.8rem; }
}

/* Project ticket as a real boarding pass: route, facts and a tear-off stub with the topics */
.bp { display: grid; grid-template-columns: minmax(0, 1fr) 190px; margin: 0 0 28px; color: var(--navy); filter: drop-shadow(0 2px 2px rgba(0,0,0,0.16)) drop-shadow(0 16px 20px rgba(0,0,0,0.22)); rotate: -1deg; }
.pj-flip .bp { rotate: 1deg; }
.bp-main { padding: 18px 22px 20px; min-width: 0; background: #fff; border-radius: 18px 0 0 18px; -webkit-mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at 100% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.bp-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 2px dashed #e1e5f6; }
.bp-head b { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.bp-head .tk-logo { background: var(--blue); padding: 5px 9px; border-radius: 6px; }
.bp-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 14px 0 12px; }
.bp-route > div:last-child { text-align: right; }
.bp-route small, .bp-facts dt, .bp-stub small { display: block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #6a7194; }
.bp-route strong { display: block; font-size: 2.1rem; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.bp-route span { display: block; font-size: 0.78rem; font-weight: 700; color: #4a5170; }
.bp-plane { width: 100%; height: 22px; color: var(--blue); rotate: 90deg; scale: 1 1; background: none; }
.bp-route .bp-plane { width: 22px; justify-self: center; position: relative; }
.bp-route { background: linear-gradient(90deg, transparent 0, transparent 0) ; }
.bp-route::after { content: none; }
.bp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin: 0; padding-top: 12px; border-top: 2px dashed #e1e5f6; }
.bp-facts .bp-date { grid-column: 1 / -1; }
.bp-facts dd { margin: 3px 0 0; font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.bp-facts .bp-date dd { font-size: 1.25rem; color: var(--blue); }
.bp-facts .tk-cc { display: flex !important; flex-wrap: wrap; gap: 3px; }
.bp-facts .tk-cc i { font-style: normal; font-size: 0.68rem; font-weight: 800; padding: 3px 5px; border-radius: 5px; background: var(--navy); color: #fff; }
.bp-stub { position: relative; padding: 18px 18px 20px; border-radius: 0 18px 18px 0; background: var(--green); color: var(--navy); border-left: 2px dashed rgba(10,15,46,0.3); -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 0 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.bp-stub small { color: var(--navy); opacity: 0.7; }
.bp-stub ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.bp-stub li { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.88rem; line-height: 1.2; }
.bp-stub li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.pj.pj-flip .bp-stub { background: var(--blue); color: #fff; }
.pj.pj-flip .bp-stub small { color: #fff; }
.pj.pj-flip .bp-stub li::before { background: var(--green); }
@media (max-width: 620px) {
  .bp { grid-template-columns: 1fr; }
  .bp-main { padding: 16px 16px 18px; border-radius: 18px 18px 0 0; -webkit-mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat; }
  .bp-route strong { font-size: 1.7rem; }
  .bp-facts dd { font-size: 0.95rem; }
  .bp-stub { border-radius: 0 0 18px 18px; border-left: 0; border-top: 2px dashed rgba(10,15,46,0.3); padding: 16px; -webkit-mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 11px at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat; }
  .bp-stub ul { grid-template-columns: 1fr 1fr; }
}
.bp { grid-template-columns: minmax(0, 1fr) 168px; }
.bp-facts dd { white-space: nowrap; font-size: 0.98rem; }
.bp-facts .bp-date dd { font-size: 1.2rem; white-space: normal; }
.bp-facts { grid-template-columns: auto auto 1fr; column-gap: 18px; }
.bp-stub { display: flex; flex-direction: column; }
.bp-bar { margin-top: auto; padding-top: 14px; display: block; height: 34px; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px, currentColor 5px 8px, transparent 8px 10px, currentColor 10px 11px, transparent 11px 14px) content-box; opacity: 0.75; }
@media (max-width: 620px) { .bp-bar { display: none; } }
.bp { grid-template-columns: minmax(0, 1fr) 180px; }
.bp-stub { padding: 18px 14px 18px 18px; }
.bp-stub li { font-size: 0.8rem; }
.bp-facts .tk-cc { flex-wrap: wrap; }
@media (max-width: 620px) { .bp { grid-template-columns: 1fr; } .bp-stub li { white-space: normal; } .bp-facts .tk-cc { flex-wrap: wrap; } }
