
.pj-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.pj-card { animation: pj-in 0.7s var(--ease-out) both; animation-delay: calc(var(--i) * 0.04s); }
@keyframes pj-in { from { opacity: 0; transform: translateY(18px); } }
.pj-card a { display: grid; gap: 6px; text-decoration: none; }
.pj-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #dfe3e6; margin-bottom: 10px; }
.pj-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.pj-card a:hover img { transform: scale(1.04); }
.pj-card__meta { font-size: var(--t-0); color: var(--ink-2); }
.pj-card__name { font-size: var(--t-3); letter-spacing: -0.015em; line-height: 1.15; }
.pj-card__facts { color: var(--ink-2); }
.pj-card__facts b { font-weight: 500; color: var(--ink); }
@media (max-width: 1000px) { .pj-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pj-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pj-card { animation: none; } }
@keyframes pj2-pulse { 0% { opacity: 0.9; transform: scale(0.45); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes s2-in { from { opacity: 0; transform: translateY(10px); } }

/* 1 · featured: one pinned scene */
.pj2-feat { position: relative; height: calc(var(--n) * 110vh); }
.pj2-feat__stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 4vw, 72px); align-items: center; padding: 110px var(--edge) 40px; }
.pj2-feat__media { position: relative; height: calc(100svh - 170px); border-radius: 18px; overflow: hidden; background: #d9dee1; }
.pj2-feat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj2-feat__ticks { position: absolute; left: 20px; bottom: 20px; display: flex; gap: 6px; }
.pj2-feat__ticks li { width: 28px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.4); transition: background 0.4s, width 0.4s; }
.pj2-feat__ticks li.is-on { width: 48px; background: var(--white); }
.pj2-feat__ticks li.is-done { background: rgba(255, 255, 255, 0.75); }
.pj2-feat__copy { display: grid; gap: 18px; justify-items: start; animation: s2-in 0.6s var(--ease-out) both; }
.pj2-feat__k { font-size: var(--t-0); color: var(--sun-deep); }
.pj2-feat__name { color: #1c2a37; }
.pj2-feat__badge { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--sand); color: var(--sun-deep); font-size: var(--t-0); }
.pj2-feat__sum { color: var(--ink-2); max-width: 36ch; }
.pj2-feat__facts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line); }
.pj2-feat__facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pj2-feat__facts dt { font-size: var(--t-0); color: var(--ink-2); }
.pj2-feat__facts dd { margin: 3px 0 0; }
@media (max-width: 900px) {
  .pj2-feat__stick { grid-template-columns: 1fr; align-content: start; gap: 18px; padding: 96px var(--edge) 24px; }
  .pj2-feat__media { height: 38svh; }
  .pj2-feat__sum { display: none; }
  .pj2-feat__copy { gap: 12px; }
}

/* project page, draft 02: facts held beside the story */
.pd2-story { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 110px); align-items: start; }
.pd2-facts { position: sticky; top: 120px; display: grid; gap: 14px; }
.pd2-facts dl { border-top: 1px solid var(--ink); }
.pd2-facts dl > div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pd2-facts dt { font-size: var(--t-0); color: var(--ink-2); padding-top: 0.2em; }
.pd2-facts dd { margin: 0; }
.pd2-facts dd a { color: var(--sun-deep); text-decoration: none; }
.pd2-read { display: grid; gap: clamp(64px, 10vh, 110px); }
.pd2-blk { display: grid; gap: 20px; }
.pd2-lead { font-size: var(--t-4); line-height: 1.15; letter-spacing: -0.03em; color: #1c2a37; max-width: 24ch; }
.pd2-lead--sm { font-size: var(--t-3); letter-spacing: -0.01em; max-width: 34ch; }
.pd2-steps { position: relative; display: grid; gap: 0; }
.pd2-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 18px 0 18px 28px; border-bottom: 1px solid var(--line); color: rgba(19, 32, 45, 0.4); transition: color 0.5s; }
.pd2-steps li.is-on { color: var(--ink); }
.pd2-steps__dot { position: absolute; left: 0; top: 24px; width: 11px; height: 11px; border-radius: 50%; background: #e4e7ea; transition: background 0.5s, box-shadow 0.5s; }
.pd2-steps li.is-on .pd2-steps__dot { background: var(--sun); box-shadow: 0 0 0 4px rgba(30, 150, 241, 0.18); }
.pd2-steps__n { font-size: var(--t-0); color: var(--sun-deep); padding-top: 0.35em; }
.pd2-steps__name { font-size: var(--t-3); letter-spacing: -0.015em; }
.pd2-steps__items { grid-column: 2; font-size: var(--t-1); color: var(--ink-2); }
.pd2-more { justify-self: start; color: var(--sun-deep); text-decoration: none; }
.pd2-res p:last-child { max-width: 52ch; color: var(--ink-2); }
@media (max-width: 900px) {
  .pd2-story { grid-template-columns: 1fr; }
  .pd2-facts { position: relative; top: auto; }
}

/* split hero: totals as tiles, capacity chart beside them */
.pj3-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 4vw, 72px); align-items: end; padding: calc(var(--hero-top) + 20px + var(--crumb-gap)) var(--edge) clamp(40px, 7vh, 72px); background: var(--night); color: var(--white); }
.pj3-hero > .crumbs { position: absolute; top: var(--hero-top); left: var(--edge); }
.pj3-hero__h { color: var(--white); }
.pj3-tiles__v { display: flex; align-items: baseline; gap: 6px; font-size: var(--t-5); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.pj3-tiles__v > span:last-child { font-size: var(--t-2); color: rgba(251, 251, 250, 0.6); letter-spacing: 0; }
.pj3-tiles__l { font-size: var(--t-1); color: rgba(251, 251, 250, 0.7); }
.pj3-chart { padding: clamp(18px, 2vw, 28px); border-radius: 18px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pj3-chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.pj3-chart__t { font-size: var(--t-2); }
.pj3-chart__s { font-size: var(--t-0); color: rgba(251, 251, 250, 0.55); }
.pj3-chart a { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) 54px; gap: 14px; align-items: center; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; color: rgba(251, 251, 250, 0.85); text-decoration: none; font-size: var(--t-0); transition: background 0.3s; }
.pj3-chart a:hover { background: rgba(255, 255, 255, 0.07); color: var(--white); }
.pj3-chart__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj3-chart__track { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.pj3-chart__track i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 4px; background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; }
.pj3-hero.is-on .pj3-chart__track i { transform: none; transition: transform 1.2s var(--ease-out) calc(0.6s + var(--i) * 0.05s); }
.pj3-chart a:hover .pj3-chart__track i { background: #6cb8f5; }
.pj3-chart__v { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .pj3-hero { grid-template-columns: 1fr; }
}

/* hero v2: two squares side by side, a bento (title + totals) and the chart */
.pj3-hero { align-items: stretch; align-content: end; grid-template-columns: repeat(2, min(calc((100% - 16px) / 2), calc(100svh - var(--hero-top) - 20px - var(--crumb-gap) - clamp(40px, 7vh, 72px) - 4px))); justify-content: start; gap: 16px; }
.pj3-sq { aspect-ratio: 1; }
.pj3-bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.25fr 1fr 1fr; gap: 12px; }
.pj3-bento__title { grid-column: 1 / -1; display: flex; align-items: flex-end; padding: clamp(18px, 2vw, 28px); border-radius: 18px; background: linear-gradient(160deg, #18304d 0%, #10213a 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.pj3-bento__title .h1 { font-size: clamp(2rem, 0.8rem + 3vw, 4.2rem) !important; max-width: 13ch !important; }
.pj3-bento__tile { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 1.6vw, 22px); border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); opacity: 0; transform: translateY(16px); transition: opacity 0.7s, transform 0.9s var(--ease-out); transition-delay: calc(0.4s + var(--i) * 0.1s); }
.pj3-hero.is-on .pj3-bento__tile { opacity: 1; transform: none; }
.pj3-chart { display: flex; flex-direction: column; }
.pj3-chart ol { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
@media (max-width: 900px) {
  .pj3-hero { grid-template-columns: 1fr; }
  .pj3-sq { aspect-ratio: auto; }
  .pj3-bento { grid-template-rows: auto auto auto; }
  .pj3-bento__tile { min-height: 120px; }
}

/* hero v3: the night district behind, glass tiles over it */
.pj3-hero { overflow: hidden; }
.pj3-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: pj3-drift 14s ease-out both; }
@keyframes pj3-drift { from { transform: scale(1.12); } }
.pj3-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 28, 0.82) 0%, rgba(10, 18, 28, 0.45) 40%, rgba(10, 18, 28, 0.55) 100%); }
.pj3-hero > .crumbs, .pj3-sq { position: relative; z-index: 1; }
.pj3-hero > .crumbs { position: absolute; z-index: 2; }
.pj3-bento__tile, .pj3-chart { background: rgba(12, 22, 35, 0.42) !important; -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16) !important; }
.pj3-bento__title { position: relative; overflow: hidden; background: #10213a; }
.pj3-bento__title img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.pj3-bento__title::after { content: ""; position: absolute; inset: 0; background: linear-gradient(15deg, rgba(10, 18, 28, 0.88) 10%, rgba(10, 18, 28, 0.35) 70%, rgba(10, 18, 28, 0.15) 100%); }
.pj3-bento__title .h1 { position: relative; z-index: 1; }
.pj3-bento__title:hover img { transform: none; }
@media (prefers-reduced-motion: reduce) { .pj3-hero__bg { animation: none; } }

/* curtain: the hero holds still while the featured scene slides up over it */
@media (min-width: 901px) {
  .pj3-hero { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; min-height: 0; }
  .pj3-hero ~ .pj2-feat { position: relative; z-index: 1; background: var(--white); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.35); }
  .pj3-hero ~ .pj2-feat ~ * { position: relative; z-index: 1; }
}

/* title sits free on the photo, not in a tile */
.pj3-bento__title { background: none !important; box-shadow: none !important; padding: 0 0 8px !important; border-radius: 0; overflow: visible; }
.pj3-bento__title::after { content: none; }
.pj3-bento__title .h1 { text-shadow: 0 2px 30px rgba(7, 14, 23, 0.6); }
.pj3-bento__title { align-items: flex-start !important; padding: 0 !important; }
.pj3-bento__title .h1 { margin-top: -0.12em; }

/* list filters: sector tabs with a sliding underline, and a sort switch */
.pj4-bar { margin-top: clamp(28px, 4vh, 44px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; border-bottom: 1px solid var(--line); }
.pj4-tabs { position: relative; display: flex; gap: clamp(18px, 2.4vw, 36px); overflow-x: auto; scrollbar-width: none; }
.pj4-tabs button { position: relative; padding: 0 0 16px; border: 0; background: none; font: inherit; font-size: var(--t-2); letter-spacing: -0.01em; color: rgba(19, 32, 45, 0.45); white-space: nowrap; cursor: pointer; transition: color 0.3s; }
.pj4-tabs button:hover, .pj4-tabs button.is-on { color: var(--ink); }
.pj4-tabs sup { margin-left: 4px; font-size: 0.55em; color: var(--sun-deep); vertical-align: super; }
.pj4-tabs__line { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--sun); transition: transform 0.5s var(--ease-out), width 0.5s var(--ease-out); }
.pj4-tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; border-radius: 4px; }
.pj4-sort { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: rgba(19, 32, 45, 0.06); }
.pj4-sort button { height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: var(--t-0); color: var(--ink-2); cursor: pointer; transition: background 0.3s, color 0.3s; }
.pj4-sort button.is-on { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 27, 42, 0.08); }
@media (max-width: 800px) { .pj4-bar { flex-direction: column-reverse; align-items: stretch; } .pj4-sort { align-self: flex-start; margin-bottom: 0; } }

/* featured photo at 4:3 */
.pj2-feat__media { height: auto !important; aspect-ratio: 4 / 3; width: min(100%, calc((100svh - 170px) * 4 / 3)); }
@media (max-width: 900px) { .pj2-feat__media { width: 100%; } }

/* project page: sample content, tighter hero */
.pd-hero__top { padding-bottom: 12px !important; }
.pd2 .pd-win__frame { clip-path: inset(calc((1 - var(--k)) * 2vh) calc((1 - var(--k)) * var(--edge)) calc((1 - var(--k)) * 18vh) calc((1 - var(--k)) * var(--edge)) round calc((1 - var(--k)) * 18px)) !important; }
.pd2-body { color: var(--ink-2); max-width: 56ch; }
.pd2-steps__name em { margin-left: 12px; font-style: normal; font-size: var(--t-0); color: var(--ink-2); }
.pd2-res__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pd2-res__grid li { padding-top: 18px; border-top: 1px solid var(--ink); }
.pd2-res__v { display: flex; align-items: baseline; gap: 6px; font-size: var(--t-5); line-height: 1; letter-spacing: -0.04em; font-weight: 500; color: #1c2a37; }
.pd2-res__v span { font-size: var(--t-1); letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.pd2-res__l { margin-top: 10px; font-size: var(--t-1); color: var(--ink-2); }
@media (max-width: 700px) { .pd2-res__grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .pj3-hero { position: sticky; top: var(--cur-top, 0px); z-index: 0; }
  .pj3-hero ~ .pj2-feat { position: relative; z-index: 1; background: var(--white); border-radius: 22px 22px 0 0; box-shadow: 0 -24px 50px rgba(0, 0, 0, 0.3); }
  .pj3-hero ~ .pj2-feat ~ * { position: relative; z-index: 1; }
}

/* listing: arrow shows each card opens */
.pj-card a { position: relative; }
.pj-card__go { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(251, 251, 250, 0.92); color: var(--ink); box-shadow: 0 6px 16px rgba(15, 27, 42, 0.15); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.pj-card a:hover .pj-card__go { background: var(--sun); color: var(--white); transform: translate(2px, -2px); }
@media (max-width: 600px) {
  .pj-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .pj-card__img { margin-bottom: 6px; border-radius: 12px; }
  .pj-card__name { font-size: var(--t-2); }
  .pj-card__meta, .pj-card__facts { font-size: 12px; }
  .pj-card__go { width: 30px; height: 30px; right: 8px; top: 8px; border-radius: 8px; }
}

/* featured: carousel on phones (the pinned scene stays on desktop) */
.pj-car { display: none; }
@media (max-width: 900px) {
  .pj2-feat { height: auto !important; padding: 40px 0 48px; }
  .pj2-feat__stick { display: none; }
  .pj-car { display: block; }
  .pj-car__head { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--edge); margin-bottom: 16px; }
  .pj-car__arrows { display: flex; gap: 8px; }
  .pj-car__arrows button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #eef1f3; color: var(--ink); font: inherit; cursor: pointer; transition: background 0.3s, opacity 0.3s; }
  .pj-car__arrows button:disabled { opacity: 0.35; }
  .pj-car__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--edge); scroll-padding: 0 var(--edge); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pj-car__track::-webkit-scrollbar { display: none; }
  .pj-car__track li { flex: 0 0 86%; scroll-snap-align: start; }
  .pj-car__track a { display: grid; height: 100%; border-radius: 20px; overflow: hidden; background: #f1f3f4; text-decoration: none; color: var(--ink); }
  .pj-car__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
  .pj-car__img img { width: 100%; height: 100%; object-fit: cover; }
  .pj-car__body { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px 18px 22px; }
  .pj-car__name { font-size: var(--t-4); letter-spacing: -0.03em; line-height: 1.05; font-weight: 500; color: #1c2a37; }
  .pj-car__facts { font-size: var(--t-0); color: var(--ink-2); }
  .pj-car__facts b { font-weight: 500; color: var(--ink); }
  .pj-car__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-weight: 500; font-size: var(--t-1); }
  .pj-car__go span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--sun); color: var(--white); }
  .pj-car__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .pj-car__dots li { width: 8px; height: 8px; border-radius: 4px; background: #d3d9de; transition: width 0.4s var(--ease-out), background 0.3s; }
  .pj-car__dots li.is-on { width: 24px; background: var(--sun); }
}

/* delivery steps: dot, number and title on one line */
.pd2-steps li { grid-template-columns: 12px 32px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; align-items: baseline; font-size: var(--t-3); }
.pd2-steps__dot { position: static; align-self: start; margin-top: calc(0.65em - 6px); width: 12px; height: 12px; }
.pd2-steps__n { padding-top: 0; line-height: 1.3; }
.pd2-steps__name { line-height: 1.3; }
.pd2-steps__name em { display: block; margin: 2px 0 0; }
.pd2-steps__items { grid-column: 3; }
.pj-car .pj2-feat__badge { height: auto; padding: 5px 12px; line-height: 1.35; }
/* steps: dot, number and title centred on each other */
.pd2-steps li { grid-template-columns: 12px 30px minmax(0, 1fr); align-items: center; gap: 4px 12px; }
.pd2-steps__dot { grid-row: 1; grid-column: 1; align-self: center; margin-top: 0; }
.pd2-steps__n { grid-row: 1; grid-column: 2; align-self: center; line-height: 1; padding: 0; }
.pd2-steps__name { grid-row: 1; grid-column: 3; align-self: center; line-height: 1.25; }
.pd2-steps__when { grid-row: 2; grid-column: 3; font-size: var(--t-0); color: var(--ink-2); }
.pd2-steps__items { grid-row: 3; grid-column: 3; }
