:root {
    --pp-bg: #0f141a;
    --pp-surface: #171e26;
    --pp-surface-2: #1e2731;
    --pp-ink: #f4f7fa;
    --pp-muted: #a5b0bd;
    --pp-line: rgba(255,255,255,.11);
    --pp-blue: #77b8ff;
    --pp-blue-strong: #2f8df4;
}

.projects-public-page { background: var(--pp-bg); color: var(--pp-ink); }
.projects-public-page .main-content-wrapper { background: var(--pp-bg); }
.pp-shell { width: min(1480px, calc(100% - 64px)); margin: 0 auto; padding: clamp(72px, 8vw, 122px) 0 110px; }
.pp-eyebrow { color: var(--pp-blue); text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 780; }

/* Overview hero */
.pp-index-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(330px,.55fr); gap: clamp(50px,8vw,130px); align-items: end; max-width: none; padding: 14px 0 clamp(66px,8vw,112px); border-bottom: 1px solid var(--pp-line); }
.pp-index-hero .pp-eyebrow { grid-column: 1/-1; }
.pp-index-hero h1 { max-width: 980px; margin: 0; font-size: clamp(3.7rem, 7vw, 7.5rem); line-height: .87; letter-spacing: -.072em; font-weight: 610; text-wrap: balance; }
.pp-index-hero p { max-width: 600px; margin: 0 0 8px; color: var(--pp-muted); font-size: clamp(1.05rem,1.3vw,1.2rem); line-height: 1.75; }

/* Portfolio grid */
.pp-list-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-top: 28px; }
.pp-index-card { display: flex; flex-direction: column; overflow: hidden; min-height: 0; border: 1px solid var(--pp-line); border-radius: 24px; background: var(--pp-surface); color: inherit; text-decoration: none; transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.pp-index-card-featured { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1.32fr) minmax(340px,.68fr); min-height: 600px; }
.pp-index-card:hover { color: inherit; transform: translateY(-4px); border-color: rgba(255,255,255,.20); box-shadow: 0 32px 80px rgba(0,0,0,.26); }
.pp-index-media { min-height: 360px; overflow: hidden; background: #222c36; }
.pp-index-card-featured .pp-index-media { min-height: 100%; }
.pp-index-media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; object-position: center top; display: block; transition: transform .62s cubic-bezier(.2,.75,.2,1); }
.pp-index-card:hover .pp-index-media img { transform: scale(1.018); }
.pp-media-placeholder { width: 100%; height: 100%; min-height: inherit; display: grid; place-items: center; padding: 40px; background: radial-gradient(circle at 20% 0%, #34495f, #202934 62%); color: #cad3dc; text-align: center; font-size: 1.2rem; font-weight: 700; }
.pp-index-copy { display: flex; flex-direction: column; padding: clamp(28px,3.5vw,48px); }
.pp-index-card-featured .pp-index-copy { justify-content: center; padding: clamp(42px,5vw,76px); }
.pp-card-meta { display: flex; gap: 9px 18px; flex-wrap: wrap; color: #8693a2; font-size: .69rem; text-transform: uppercase; letter-spacing: .105em; font-weight: 760; }
.pp-index-copy h2 { margin: 13px 0 14px; color: #fff; font-size: clamp(2rem,3.1vw,3.55rem); line-height: .98; letter-spacing: -.055em; font-weight: 620; }
.pp-index-card-featured .pp-index-copy h2 { font-size: clamp(3rem,4.6vw,5.2rem); }
.pp-index-copy p { margin: 0; color: var(--pp-muted); line-height: 1.72; font-size: 1rem; }
.pp-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 20px; }
.pp-tags span { padding: .4rem .65rem; border-radius: 999px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.11); color: #c2ccd6; font-size: .7rem; font-weight: 680; }
.pp-tags-large { margin-top: 20px; }
.pp-link { display: inline-flex; gap: 9px; align-items: center; margin-top: auto; padding-top: 30px; color: var(--pp-blue); font-weight: 720; }
.pp-link i { transition: transform .18s ease; }
.pp-index-card:hover .pp-link i { transform: translateX(3px); }
.pp-empty { margin-top: 28px; padding: 70px 0; border-top: 1px solid var(--pp-line); border-bottom: 1px solid var(--pp-line); background: transparent; text-align: left; }
.pp-empty h2 { font-size: 2rem; }
.pp-empty p { color: var(--pp-muted); }

/* Detail */
.pp-back { display: inline-flex; gap: 8px; align-items: center; color: #8c99a8; text-decoration: none; font-weight: 650; margin: 0 0 36px; }
.pp-back:hover { color: #fff; }
.pp-detail-hero { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(44px,6vw,90px); align-items: center; min-height: 640px; margin-bottom: 90px; }
.pp-detail-copy { padding: 24px 0; }
.pp-detail-copy h1 { margin: 15px 0 22px; color: #fff; font-size: clamp(3.2rem,6vw,6.6rem); line-height: .89; letter-spacing: -.07em; font-weight: 610; }
.pp-detail-copy > p { max-width: 640px; color: var(--pp-muted); font-size: 1.13rem; line-height: 1.74; }
.pp-detail-media { min-height: 580px; overflow: hidden; border-radius: 28px; background: #202a34; box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.pp-detail-media img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; display: block; }
.pp-story-grid { border-top: 1px solid var(--pp-line); margin: 0 0 94px; }
.pp-story-block { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 34px; padding: 52px 0; border-bottom: 1px solid var(--pp-line); }
.pp-story-number { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(47,141,244,.12); color: var(--pp-blue); font-weight: 800; font-size: .76rem; }
.pp-story-block h2 { margin: 0 0 16px; color: #fff; font-size: clamp(1.9rem,2.8vw,3rem); letter-spacing: -.045em; }
.pp-richtext { max-width: 940px; color: #aab5c1; line-height: 1.82; font-size: 1.04rem; }
.pp-richtext p:last-child { margin-bottom: 0; }
.pp-richtext ul,.pp-richtext ol { padding-left: 1.25rem; }
.pp-section-heading { margin-bottom: 30px; }
.pp-section-heading h2 { margin: 8px 0 0; color: #fff; font-size: clamp(2.2rem,4vw,4rem); letter-spacing: -.057em; font-weight: 620; }
.pp-gallery { margin: 0 0 94px; }
.pp-gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.pp-gallery-item { margin: 0; overflow: hidden; border-radius: 20px; background: var(--pp-surface); border: 1px solid var(--pp-line); }
.pp-gallery-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.pp-gallery-item figcaption { padding: 14px 17px; color: var(--pp-muted); font-size: .84rem; }
.pp-facts { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; padding: 34px; border: 1px solid var(--pp-line); border-radius: 22px; background: var(--pp-surface); margin-bottom: 90px; }
.pp-btn { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; padding: .8rem 1.18rem; border: 1px solid transparent; font-weight: 720; text-decoration: none; }
.pp-btn-primary { background: #fff; color: #111821; }
.pp-btn-primary:hover { background: #edf2f7; color: #111821; }
.pp-btn-light { background: #fff; color: #111821; }
.pp-cta { margin-top: 90px; display: flex; align-items: flex-end; justify-content: space-between; gap: 42px; padding: clamp(38px,5vw,70px); border-radius: 28px; color: #fff; background: radial-gradient(900px 400px at 10% 0%, rgba(47,141,244,.28), transparent 60%), #10253d; overflow: hidden; }
.pp-cta .pp-eyebrow { color: #9dccff; }
.pp-cta h2 { margin: 10px 0 12px; font-size: clamp(2.4rem,4.5vw,4.6rem); letter-spacing: -.06em; line-height: .94; font-weight: 610; }
.pp-cta p { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.7; }

.pp-index-card:focus-visible,.pp-back:focus-visible,.pp-btn:focus-visible { outline: 3px solid rgba(119,184,255,.42); outline-offset: 4px; }

@media (max-width: 1050px) {
    .pp-shell { width: min(100% - 40px,1480px); }
    .pp-index-hero { grid-template-columns: 1fr; gap: 28px; }
    .pp-index-hero .pp-eyebrow { grid-column: auto; }
    .pp-index-hero p { max-width: 760px; }
    .pp-list-grid { grid-template-columns: 1fr 1fr; }
    .pp-index-card-featured { grid-template-columns: 1fr; min-height: 0; }
    .pp-index-card-featured .pp-index-media { min-height: 500px; }
    .pp-detail-hero { grid-template-columns: 1fr; min-height: 0; }
    .pp-detail-media,.pp-detail-media img { min-height: 0; aspect-ratio: 16/10; }
}

@media (max-width: 700px) {
    .pp-shell { width: min(100% - 24px,1480px); padding: 42px 0 68px; }
    .pp-index-hero { padding-bottom: 50px; }
    .pp-index-hero h1,.pp-detail-copy h1 { font-size: clamp(2.9rem,14vw,4.7rem); }
    .pp-list-grid { grid-template-columns: 1fr; gap: 18px; }
    .pp-index-card,.pp-index-card-featured { display: flex; grid-column: auto; border-radius: 20px; }
    .pp-index-media,.pp-index-card-featured .pp-index-media { min-height: 0; aspect-ratio: 16/10; }
    .pp-index-copy,.pp-index-card-featured .pp-index-copy { padding: 25px; }
    .pp-index-card-featured .pp-index-copy h2,.pp-index-copy h2 { font-size: 2.15rem; }
    .pp-detail-hero { gap: 22px; margin-bottom: 56px; }
    .pp-detail-media { border-radius: 21px; }
    .pp-story-block { grid-template-columns: 1fr; gap: 15px; padding: 34px 0; }
    .pp-gallery-grid { grid-template-columns: 1fr; }
    .pp-facts { align-items: stretch; flex-direction: column; padding: 24px; }
    .pp-cta { align-items: stretch; flex-direction: column; border-radius: 22px; margin-top: 58px; }
    .pp-cta .pp-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-index-card,.pp-index-media img,.pp-link i { transition: none; }
    .pp-index-card:hover { transform: none; }
    .pp-index-card:hover .pp-index-media img { transform: none; }
}
