/* Shared listing rhythm. Desktop proportions: legacy 2/3 + 1/3, 40px gutter. */
.ip-project-detail { width:min(1400px,calc(100% - 80px)); margin:32px auto 80px; color:var(--ip-color-text); font:400 16px/1.5 Manrope,sans-serif; }
.ip-project-detail *, .ip-project-lightbox * { box-sizing:border-box; }
.ip-project-detail :is(h1,h2,h3,p,figure,dl,blockquote) { margin:0; }
.ip-project-detail a { color:inherit; text-decoration:none; }
.ip-project-detail button { font:inherit; cursor:pointer; }
.ip-project-detail svg { width:20px; height:20px; flex-shrink:0; }
.ip-project-detail :is(button,a,input,summary):focus-visible { outline:2px solid var(--ip-color-focus); outline-offset:4px; }
.ip-project-detail [hidden] { display:none!important; }
.ip-project-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:40px; align-items:stretch; }
.ip-project-body-content,.ip-project-sidebar { min-width:0; }
.ip-project-hero-gallery { display:grid; gap:8px; aspect-ratio:3/2; border-radius:var(--ip-gallery-radius,20px); overflow:hidden; background:var(--ip-color-surface-subtle); }
.ip-project-hero-gallery[data-count="1"] { grid-template-columns:1fr; }
.ip-project-hero-gallery[data-count="2"] { grid-template-columns:1fr 1fr; }
.ip-project-hero-gallery[data-count="3"] { grid-template-columns:2fr 1fr; grid-template-rows:1fr 1fr; }
.ip-project-hero-gallery[data-count="3"]>button:first-child { grid-row:span 2; }
.ip-project-hero-gallery>button { position:relative; padding:0; border:0; overflow:hidden; min-width:0; min-height:0; background:transparent; }
.ip-project-hero__image { width:100%; height:100%; display:block; object-fit:cover; transition:transform 300ms var(--ip-ease,ease); }
.ip-project-hero-gallery>button:hover .ip-project-hero__image { transform:scale(1.015); }
.ip-project-hero-gallery__all { display:inline-flex; align-items:center; gap:8px; position:absolute; bottom:16px; right:16px; min-height:40px; padding:9px 13px; background:var(--ip-color-control-glass); color:var(--ip-color-text); border:1px solid var(--ip-color-border-strong); border-radius:10px; font-size:13px; font-weight:600; }
.ip-project-hero-gallery__all svg { width:16px; height:16px; }
.ip-project-article[data-template="calendar"] .ip-project-hero__image,.ip-project-article--campaign .ip-project-hero__image { object-fit:contain; }
.ip-project-hero { margin-bottom:32px; }
.ip-project-labels { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ip-project-labels>span { display:inline-flex; align-items:center; gap:7px; padding:6px 10px; border-radius:8px; background:var(--ip-color-surface-related); font-size:12px; line-height:18px; color:var(--ip-color-text-muted); }
.ip-project-status i { width:6px; height:6px; border-radius:50%; background:var(--ip-color-success); }
.ip-project-status[data-state="completed"] i { background:var(--ip-color-brand); }
.ip-project-status[data-state="paused"] i { background:var(--ip-color-severity-high); }
.ip-project-status[data-state="cancelled"] i { background:var(--ip-color-text-muted); }
.ip-project-heading { margin-bottom:28px; }
.ip-project-heading .ip-title-actions { justify-content:flex-end; margin:-8px -8px 14px 0; }
.ip-project-heading .ip-title-action { font-size:14px; min-height:36px; padding-block:6px; font-weight:500; }
.ip-project-heading .ip-title-action svg { width:16px; height:16px; }
.ip-project-detail h1 { font-size:26px; line-height:32px; font-weight:600; letter-spacing:-.45px; margin-bottom:16px; text-wrap:balance; }
.ip-project-hero__summary { font-size:16px; line-height:24px; color:var(--ip-color-text-muted); }
.ip-project-promoter { display:flex; align-items:center; gap:10px; font-size:13px; margin-top:20px; }
.ip-project-promoter img { object-fit:contain; border-radius:50%; background:var(--ip-white); }
.ip-project-promoter strong { font-weight:600; }
.ip-project-aside__sticky { position:sticky; top:calc(var(--ip-header-height,91px) + 24px); }
.ip-project-detail .ip-project-action-card { padding:24px; border:1px solid var(--ip-color-border); border-radius:var(--ip-radius-lg); background:var(--ip-color-surface); box-shadow:var(--ip-shadow-card); }
.ip-project-detail .ip-project-action-card h2 { font-size:18px; line-height:24px; font-weight:600; letter-spacing:-.2px; margin-bottom:20px; }
.ip-project-actions { display:grid; gap:12px; }
.ip-project-actions .ip-button { width:100%; gap:9px; min-height:44px; border-radius:20px; font-size:14px; font-weight:600; line-height:20px; }
.ip-project-actions .ip-button+.ip-button { margin:0; }
.ip-project-goal { margin:0 0 24px; }
.ip-project-goal__numbers { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; }
.ip-project-goal__numbers strong { font-size:28px; line-height:36px; font-weight:600; letter-spacing:-.5px; }
.ip-project-goal__numbers span,.ip-project-goal__note { font-size:12px; line-height:18px; color:var(--ip-color-text-muted); }
.ip-project-goal progress { appearance:none; display:block; width:100%; height:7px; border:0; border-radius:8px; overflow:hidden; background:var(--ip-color-surface-related); margin:12px 0 8px; }
.ip-project-goal progress::-webkit-progress-bar { background:var(--ip-color-surface-related); }
.ip-project-goal progress::-webkit-progress-value { background:var(--ip-color-brand); border-radius:8px; }
.ip-project-goal progress::-moz-progress-bar { background:var(--ip-color-brand); border-radius:8px; }
.ip-project-highlights { padding:0 0 28px!important; margin:0 0 32px!important; border-bottom:1px solid var(--ip-color-border); }
.ip-project-highlights .ip-field-copy strong { font-size:20px; font-weight:600; }
.ip-project-highlights .ip-field-copy>span { font-size:14px; }
.ip-project-bio-heading { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.ip-project-bio-avatar { width:64px; height:64px; border-radius:50%; object-fit:cover; }
.ip-project-detail .ip-project-bio-heading h2 { margin:0 0 4px; }
.ip-project-bio-heading span { color:var(--ip-color-text-muted); font-size:13px; }
.ip-project-bio { margin-bottom:24px; font-size:14px; line-height:22px!important; }
.ip-project-detail .ip-project-action-card--dark { --ip-color-surface:var(--ip-ink-900); --ip-color-surface-subtle:var(--ip-ink-850); --ip-color-text:var(--ip-ink-100); --ip-color-text-muted:var(--ip-ink-300); --ip-color-border:var(--ip-ink-700); --ip-color-border-strong:var(--ip-ink-600); --ip-color-action:var(--ip-purple-300); --ip-color-action-hover:var(--ip-purple-200); --ip-color-on-action:var(--ip-ink-950); --ip-color-link:var(--ip-purple-200); color:var(--ip-color-text); }
.ip-project-participation { margin-bottom:24px; }
.ip-project-participation details { border-bottom:1px solid var(--ip-color-border); }
.ip-project-participation summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; padding:16px 0; font-size:15px; font-weight:600; cursor:pointer; }
.ip-project-participation summary::-webkit-details-marker { display:none; }
.ip-project-participation details[open] summary svg { transform:rotate(45deg); }
.ip-project-participation .ip-project-richtext { padding-bottom:16px; font-size:14px; line-height:22px; }
.ip-project-hero .ip-project-section { margin:0; }
.ip-project-hero .ip-project-comparison>div { aspect-ratio:3/2; }
.ip-project-section { margin-bottom:40px; scroll-margin-top:124px; }
.ip-project-detail h2 { font-size:22px; font-weight:600; line-height:28px; letter-spacing:-.3px; margin-bottom:22px; }
.ip-project-detail h3 { font-size:17px; font-weight:600; line-height:1.4; margin-bottom:12px; }
.ip-project-richtext { color:var(--ip-color-text-muted); font-size:16px; line-height:24px; overflow-wrap:anywhere; }
.ip-project-richtext p+p,.ip-project-richtext :is(ul,ol)+p { margin-top:16px; }
.ip-project-richtext :is(ul,ol) { margin:16px 0; padding-left:24px; }
.ip-project-richtext li+li { margin-top:8px; }
.ip-project-richtext :is(strong,b) { color:var(--ip-color-text); font-weight:600; }
.ip-project-richtext a { color:var(--ip-color-link); text-decoration:underline; text-underline-offset:3px; }
.ip-project-richtext :is(h2,h3,h4) { margin:24px 0 12px; color:var(--ip-color-text); }
.ip-project-inline-image { display:block; max-width:100%; max-height:500px; object-fit:contain; margin-top:24px; border-radius:20px; }
.ip-project-updates { border-left:1px solid var(--ip-color-border); margin-left:5px; padding-left:27px; }
.ip-project-updates>article { position:relative; margin-bottom:32px; }
.ip-project-updates>article::before { position:absolute; content:""; width:9px; height:9px; border-radius:50%; background:var(--ip-color-brand); left:-32px; top:7px; box-shadow:0 0 0 5px var(--ip-color-page); }
.ip-project-updates time { display:block; font-size:12px; color:var(--ip-color-text-muted); margin-bottom:8px; }
.ip-project-documents { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.ip-project-documents a { display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:600; padding:10px 12px; border:1px solid var(--ip-color-border); border-radius:12px; }
.ip-project-documents a:hover { background:var(--ip-color-surface-related); }
.ip-project-documents a svg:last-child { width:14px; height:14px; }
.ip-project-gallery__tools { display:flex; justify-content:space-between; align-items:center; margin:-8px 0 16px; }
.ip-project-gallery__tools>span { color:var(--ip-color-text-muted); font-size:12px; }
.ip-project-gallery__tools>div { display:flex; gap:8px; }
.ip-project-gallery__tools button { width:34px; height:34px; }
.ip-project-gallery__tools button:disabled { opacity:.35; cursor:default; }
.ip-project-gallery__track { display:flex; gap:14px; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x mandatory; }
.ip-project-gallery__track::-webkit-scrollbar { display:none; }
.ip-project-gallery__track>button { flex:0 0 calc((100% - 28px)/3); display:block; padding:0; border:0; border-radius:16px; overflow:hidden; background:var(--ip-color-surface-related); scroll-snap-align:start; }
.ip-project-gallery__track img { display:block; width:100%; aspect-ratio:1; object-fit:cover; transition:transform 300ms ease; }
.ip-project-gallery__track>button:hover img { transform:scale(1.025); }
.ip-project-gallery__track>button>span { display:block; padding:10px; font-size:12px; }
.ip-project-gallery--calendar .ip-project-gallery__track>button { flex-basis:calc((100% - 14px)/2); }
.ip-project-gallery--calendar .ip-project-gallery__track img { aspect-ratio:1.414; object-fit:contain; }
.ip-project-comparison { border-radius:20px; overflow:hidden; position:relative; background:var(--ip-color-surface-related); }
.ip-project-comparison>div { aspect-ratio:4/3; position:relative; }
.ip-project-comparison img { display:block; width:100%; height:100%; object-fit:cover; }
.ip-project-comparison__before { position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--comparison)) 0 0); }
.ip-project-comparison__label { position:absolute; top:16px; padding:5px 10px; border-radius:10px; background:var(--ip-color-surface-glass); font-size:12px; font-weight:600; }
.ip-project-comparison__label--before { left:16px; }.ip-project-comparison__label--after { right:16px; }
.ip-project-comparison i { position:absolute; left:var(--comparison); top:0; bottom:0; width:2px; background:white; display:flex; align-items:center; justify-content:center; pointer-events:none; }
.ip-project-comparison i svg { width:20px; padding:5px 1px; height:34px; background:white; color:#222; box-sizing:content-box; }
.ip-project-comparison i svg:first-child { border-radius:22px 0 0 22px; }.ip-project-comparison i svg:last-child { border-radius:0 22px 22px 0; }
.ip-project-comparison input { position:absolute; inset:0; display:block; width:100%; height:100%; margin:0; opacity:0; z-index:2; cursor:ew-resize; }
.ip-project-comparison:has(input:focus-visible) { outline:2px solid var(--ip-color-focus); outline-offset:4px; }
.ip-project-media-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
.ip-project-media-grid figure:has(audio) { grid-column:1/-1; }
.ip-project-media-grid :is(video,audio) { display:block; width:100%; border-radius:16px; background:var(--ip-color-surface-related); }
.ip-project-media-grid video { aspect-ratio:4/3; object-fit:contain; }
.ip-project-media-grid figcaption { font-size:12px; color:var(--ip-color-text-muted); margin-top:10px; }
.ip-project-video-link { position:relative; display:grid; place-items:center; aspect-ratio:16/9; overflow:hidden; border-radius:16px; background:var(--ip-color-surface-related); text-decoration:none; isolation:isolate; }
.ip-project-video-link > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; }
.ip-project-video-link__play { display:grid; place-items:center; width:52px; height:52px; border-radius:50%; color:#fff; background:rgb(0 0 0 / .72); transition:transform 180ms ease; }
.ip-project-video-link__play .ip-icon { width:28px; height:28px; }
.ip-project-video-link__label { position:absolute; right:10px; bottom:10px; display:flex; align-items:center; gap:6px; padding:5px 9px; border-radius:8px; background:rgb(0 0 0 / .72); color:#fff; font-size:12px; }
.ip-project-video-link__label .ip-icon { width:14px; height:14px; }
.ip-project-video-link:hover .ip-project-video-link__play { transform:scale(1.06); }
.ip-project-expenses details { border:1px solid var(--ip-color-border); border-radius:16px; padding:0 20px; margin-bottom:12px; }
.ip-project-expenses summary { display:flex; align-items:center; justify-content:space-between; cursor:pointer; font-weight:700; padding:18px 0; }
.ip-project-expenses details[open] summary svg { transform:rotate(180deg); }
.ip-project-expenses dl { margin-bottom:14px; }
.ip-project-expenses dl>div { display:flex; gap:20px; align-items:baseline; justify-content:space-between; padding:12px 0; border-top:1px solid var(--ip-color-border); font-size:13px; }
.ip-project-expenses dt { color:var(--ip-color-text-muted); flex:1; }.ip-project-expenses small { display:block; }
.ip-project-expenses dd { margin:0; white-space:nowrap; font-weight:700; }
.ip-project-participants { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.ip-project-participant { display:flex; align-items:center; gap:12px; padding:16px; border-radius:16px; border:1px solid var(--ip-color-border); font-size:14px; font-weight:600; }
.ip-project-participant>span:not(.ip-project-participant__icon) { flex:1; }
.ip-project-participant__icon { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--ip-color-surface-related); color:var(--ip-color-text-muted); flex-shrink:0; }
.ip-project-participant>svg { width:16px; height:16px; }
.ip-project-participant img { width:64px; height:48px; object-fit:contain; background:#fff; border-radius:8px; padding:4px; }
.ip-project-participant:hover { background:var(--ip-color-surface-subtle); }
.ip-project-faq details { border-bottom:1px solid var(--ip-color-border); }
.ip-project-faq summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0; font-weight:600; font-size:15px; cursor:pointer; }
.ip-project-faq summary::-webkit-details-marker { display:none; }
.ip-project-faq summary>span { display:grid; place-items:center; color:var(--ip-color-brand); }
.ip-project-faq details[open] summary>span { transform:rotate(45deg); }
.ip-project-faq .ip-project-richtext { padding:0 32px 24px 0; font-size:14px; }
.ip-project-products,.ip-project-collection-points { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ip-project-products img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:16px; margin-bottom:16px; }
.ip-project-products p,.ip-project-collection-points p { color:var(--ip-color-text-muted); font-size:14px; margin-bottom:12px; }
.ip-project-products a { display:flex; gap:8px; margin-top:16px; }
.ip-project-article--campaign .ip-project-hero__image { object-fit:contain; }
.ip-project-detail .ip-project-lightbox { position:fixed; margin:auto; padding:20px 24px; width:min(1100px,92vw); max-width:92vw; height:min(850px,90vh); max-height:90vh; background:var(--ip-color-surface); border:1px solid var(--ip-color-border); border-radius:24px; color:var(--ip-color-text); box-shadow:0 24px 90px #0005; }
.ip-project-lightbox::backdrop { background:#000b; backdrop-filter:blur(5px); }
.ip-project-lightbox header { display:flex; align-items:center; justify-content:space-between; height:40px; margin-bottom:16px; font-size:13px; }
.ip-project-lightbox button { display:grid; place-items:center; flex:0 0 36px; width:36px; height:36px; border:0; border-radius:50%; background:var(--ip-color-surface-related); color:var(--ip-color-text); }
.ip-project-lightbox__stage { display:flex; gap:16px; align-items:center; height:calc(100% - 56px); }
.ip-project-lightbox__stage figure { display:flex; flex:1; min-width:0; height:100%; flex-direction:column; align-items:center; justify-content:center; gap:12px; }
.ip-project-lightbox__stage img { display:block; min-height:0; max-width:100%; max-height:calc(100% - 36px); object-fit:contain; border-radius:8px; }
.ip-project-lightbox__stage figcaption { font-size:12px; color:var(--ip-color-text-muted); text-align:center; }
@media(prefers-reduced-motion:reduce) { .ip-project-detail * { transition:none!important; scroll-behavior:auto!important; } }
.ip-project-press__track { display:flex; align-items:stretch; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; padding:4px 0; }
.ip-project-press__track::-webkit-scrollbar { display:none; }
.ip-project-press-card { display:flex; flex-direction:column; flex:0 0 calc((100% - 16px)/2); scroll-snap-align:start; padding:24px; border:1px solid var(--ip-color-border); border-radius:var(--ip-radius-lg); background:var(--ip-color-surface); }
.ip-project-press-card header { display:flex; align-items:center; justify-content:space-between; gap:16px; height:48px; margin-bottom:20px; }
.ip-project-press-logo { display:block; width:96px; height:48px; padding:6px; object-fit:contain; border-radius:8px; background:var(--ip-white); }
.ip-project-press-platform { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--ip-color-surface-related); margin-left:auto; }
.ip-project-press-platform svg { width:18px; height:18px; }
.ip-project-detail .ip-project-press-card h3 { font-size:16px; line-height:22px; margin-bottom:5px; }
.ip-project-press-subtitle { color:var(--ip-color-text-muted); font-size:12px; line-height:18px; }
.ip-project-detail .ip-project-press-card blockquote { font-size:15px; line-height:23px; margin:20px 0 24px; color:var(--ip-color-text-muted); }
.ip-project-press-card>a { display:flex; align-items:center; gap:8px; font-weight:600; font-size:13px; margin-top:auto; text-decoration:underline; text-underline-offset:3px; }
.ip-project-press-card>a svg { width:16px; height:16px; }
.ip-project-participant img { width:56px; height:56px; padding:3px; }
.ip-project-article--campaign .ip-project-gallery__track>button { flex-basis:calc((100% - 14px)/2); }
.ip-project-article--campaign .ip-project-gallery__track img { aspect-ratio:4/3; object-fit:contain; }

.ip-project-campaign-socials { display:flex; justify-content:center; gap:12px; margin:0 0 24px; }
.ip-project-campaign-socials a { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--ip-color-border); border-radius:50%; color:var(--ip-color-text); }
.ip-project-campaign-socials a:hover { background:var(--ip-color-surface-subtle); }

.ip-project-article--campaign .ip-project-hero-gallery { aspect-ratio:16/9; }

.ip-project-card-state { display:flex; justify-content:flex-end; margin-bottom:16px; }
.ip-project-card-state .ip-project-status { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border-radius:8px; font-size:12px; line-height:18px; background:var(--ip-color-surface-related); color:var(--ip-color-text-muted); }
.ip-project-action-card--dark .ip-project-card-state .ip-project-status { background:var(--ip-ink-800); }

.ip-project-contact-list,.ip-project-donations {display:grid;gap:12px;margin-top:20px}
.ip-project-contact-list>a,.ip-project-donations a {display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ip-color-text)}
.ip-project-contact-list svg,.ip-project-donations svg {width:18px;height:18px;flex:none}
.ip-project-donations>div {display:grid;gap:6px;padding-top:14px;border-top:1px solid var(--ip-color-border);overflow-wrap:anywhere}
.ip-project-donations strong {font-size:14px}.ip-project-donations small {color:var(--ip-color-text-muted)}
.ip-project-gallery--grid .ip-project-gallery__tools {display:none}
.ip-project-gallery--grid .ip-project-gallery__track {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}
.ip-project-gallery--grid .ip-project-gallery__track>button {width:100%;min-width:0}
.ip-project-months {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}
.ip-project-months>a {display:flex;align-items:center;gap:10px;border:1px solid var(--ip-color-border);border-radius:14px;padding:14px;color:var(--ip-color-text);font-size:14px}
.ip-project-months img {width:40px;height:40px;object-fit:cover;border-radius:8px}.ip-project-months svg {width:18px;height:18px;flex:none}.ip-project-months span{flex:1}
