/* Stacked project panels keep a full title strip exposed. */
.selected-projects{padding:48px 6% 96px;background:var(--paper,#fdfdfb);color:#22241f;scroll-margin-top:72px;overflow:visible}
.projects-heading{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:36px}.projects-eyebrow{font-size:10px;font-weight:500;letter-spacing:.12em;margin:0 0 16px;color:#62665f}.projects-heading h2{font-family:'Barlow Condensed','DM Sans',sans-serif;font-weight:500;letter-spacing:-.025em;text-transform:uppercase;margin:0}.projects-heading h2 span{color:#0f52ba}.projects-heading>p{font-size:14px;line-height:1.6;margin:0}
.projects-stack{--stack-top:40px;--tab-height:76px;display:grid;gap:104px;padding-bottom:24px;isolation:isolate}
.project-item{position:sticky;top:var(--stack-top);scroll-margin-top:var(--stack-top)}.project-item:nth-child(2){top:calc(var(--stack-top) + var(--tab-height));scroll-margin-top:calc(var(--stack-top) + var(--tab-height))}.project-item:nth-child(3){top:calc(var(--stack-top) + var(--tab-height)*2);scroll-margin-top:calc(var(--stack-top) + var(--tab-height)*2)}.project-item:focus-within{z-index:5}
.project-card{--card-ink:#202124;--card-muted:#5c626b;--card-rule:#20212435;--card-accent:#0f52ba;min-height:480px;background:#fff;color:var(--card-ink);border:1px solid #e0e2e6;border-radius:12px 12px 0 0;overflow:hidden}
.project-cny{--card-ink:#fff;--card-muted:#c4c7cf;--card-rule:#ffffff45;--card-accent:#9abfff;background:#171819;border-color:#171819}
.project-bielak{--card-ink:#fff;--card-muted:#e1eafb;--card-rule:#ffffff65;--card-accent:#fff;background:#0f52ba;border-color:#0f52ba}
.project-card-top{height:var(--tab-height);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 32px}
.project-card-top h3{font-family:'DM Sans',sans-serif;font-size:30px;font-weight:450;letter-spacing:-.04em;line-height:1;margin:0;color:var(--card-ink)}.project-number{font-size:10px;letter-spacing:.08em;color:var(--card-muted)}
.project-card-body{display:grid;grid-template-columns:.85fr 1.4fr;align-items:center;gap:40px;padding:16px 32px 32px}
.project-category{font-size:10px;letter-spacing:.06em;color:var(--card-muted);margin:0 0 24px}
.project-headline{font-size:clamp(20px,2.1vw,30px);line-height:1.17;letter-spacing:-.035em;max-width:370px;margin:0 0 18px}.project-description{font-size:13px;line-height:1.65;color:var(--card-muted);max-width:360px;margin:0 0 22px}
.project-scope{display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:0}.project-scope li{font-size:10px;color:var(--card-muted);border:1px solid var(--card-rule);border-radius:20px;padding:6px 9px}
.project-links{display:flex;flex-wrap:wrap;gap:16px;margin-top:24px}.project-links a{color:var(--card-ink);text-decoration:none;font-size:12px;padding:6px 0;border-bottom:1px solid var(--card-rule)}.project-links a span[aria-hidden]{display:inline-block;color:var(--card-accent);margin-left:10px;transition:transform .25s}.project-links a:hover span[aria-hidden]{transform:translate(3px,-3px)}.selected-projects a:focus-visible{outline:2px solid var(--card-accent,#0f52ba);outline-offset:5px}
.project-visual{margin:0;min-width:0}.project-visual img{width:100%;height:auto;display:block;border-radius:5px}.project-visual figcaption{font-size:9px;letter-spacing:.02em;color:var(--card-muted);margin-top:12px}
@media(min-width:1800px){.selected-projects{padding-left:max(6%,calc((100vw - 1600px)/2));padding-right:max(6%,calc((100vw - 1600px)/2))}}
@media(max-width:900px){.project-card-top{padding:0 24px}.project-card-body{padding:12px 24px 28px;gap:24px;grid-template-columns:1fr 1.2fr}.project-card-top h3{font-size:26px}.project-description{font-size:12px}.projects-heading>p{font-size:12px}}
@media(max-width:650px){.selected-projects{padding:32px 6% 64px}.projects-heading{display:block}.projects-stack{--stack-top:16px;--tab-height:52px;gap:72px}.project-card{min-height:0;border-radius:10px 10px 0 0}.project-card-top{padding:0 20px}.project-card-top h3{font-size:22px}.project-number{font-size:9px}.project-card-body{display:flex;flex-direction:column;align-items:stretch;gap:24px;padding:12px 20px 24px}.project-category{font-size:9px;margin-bottom:16px}.project-headline{font-size:21px;margin-bottom:12px}.project-description{font-size:12px;margin-bottom:16px}.project-scope li{font-size:9px;padding:5px 8px}.project-links{margin-top:18px}.project-visual figcaption{margin-top:9px}}

@media(prefers-reduced-motion:reduce){.project-item,.project-item:nth-child(2),.project-item:nth-child(3){position:relative;top:auto}.project-links a span{transition:none}.projects-stack{gap:24px;padding-bottom:24px}}
.motion-paused .project-item{position:relative;top:auto}.motion-paused .project-links a span{transition:none}.motion-paused .projects-stack{gap:24px;padding-bottom:24px}
@media print{.projects-stack{padding-bottom:0!important}.project-item{position:relative!important;top:auto!important}.project-card{break-inside:avoid}}
/* Sapphire is anchored to the phrase rather than a separate illustration. */
.projects-heading{min-height:180px;align-items:center;margin-bottom:36px}
.projects-heading h2{font-size:clamp(38px,4.8vw,72px);line-height:1.08}
.projects-heading h2 .projects-title-line{display:inline-block;position:relative;color:#22241f;padding-bottom:20px;isolation:isolate}
.projects-title-stroke{position:absolute;left:-2%;bottom:0;width:104%;height:28px;pointer-events:none;z-index:-1;color:#0f52ba}
.projects-title-stroke path{stroke:currentColor;stroke-width:7;stroke-linecap:round;stroke-linejoin:round}
.projects-heading>p{max-width:280px;color:#4f555e}
@media(max-width:900px){.projects-heading{min-height:160px}.projects-heading h2{font-size:42px}.projects-title-stroke{height:23px}}
@media(max-width:650px){.projects-heading{min-height:0;margin-bottom:28px}.projects-heading h2{font-size:42px}.projects-heading h2 .projects-title-line{padding-bottom:20px}.projects-heading>p{margin-top:14px;font-size:13px}.projects-title-stroke{height:23px}}

@media(min-width:901px){.projects-heading h2{white-space:nowrap}.projects-title-break{display:none}}

/* A content spacer extends the sticky containing block; padding alone does not. */
.projects-stack::after{content:"";display:block;height:clamp(220px,45svh,420px);pointer-events:none}
@media(prefers-reduced-motion:reduce),print{.projects-stack::after{display:none}}
.motion-paused .projects-stack::after{display:none}

/* One continuous title; only the final dot carries the brand accent. */
.projects-heading #projects-title{white-space:nowrap;color:#22241f}
.projects-heading #projects-title .projects-title-period{display:inline;color:#0f52ba}
