.projects-hero{min-height:0}
.projects-hero .hero-copy{padding-top:clamp(1.8rem,4.2vw,4.1rem);padding-bottom:clamp(2.15rem,4vw,3.85rem)}
.projects-hero .projects-kicker{max-width:none;font-size:clamp(.69rem,.89vw,.86rem);letter-spacing:.21em;text-transform:uppercase;font-weight:800;margin:0 0 .75rem}
.projects-hero h1{font-size:clamp(2.9rem,8.35vw,8.1rem);line-height:1;transform:none}
.projects-hero .projects-deck{margin:.62rem auto 0;max-width:unset;font-size:clamp(.95rem,1.44vw,1.37rem)}
.projects-hero [aria-current=page]{text-decoration:underline;text-underline-offset:.3em;text-decoration-color:#8849a1}
.projects-main{padding-top:clamp(1.5rem,3vw,2.9rem)}
.projects-feature{display:grid;align-items:center;gap:clamp(1.35rem,3vw,2.85rem);grid-template-columns:minmax(0,.8fr) minmax(0,1fr);background:radial-gradient(ellipse at 90% 20%,#4c264e,#321232 70%);border:1px solid #aa75ac4d;border-radius:20px;padding:clamp(1.2rem,2.6vw,2.5rem)}
.projects-feature-copy .eyebrow{font-size:clamp(.68rem,.94vw,.88rem);margin-bottom:.65rem;letter-spacing:.15em}
.projects-feature-copy h2{font-size:clamp(2.35rem,5.1vw,4.9rem);font-weight:850;letter-spacing:-.065em;line-height:1.02;margin:0}
.projects-feature-copy h2+p{margin:.8rem 0 1rem;color:var(--soft);font-size:clamp(.96rem,1.22vw,1.16rem);max-width:42ch}
.project-tech{display:flex;flex-wrap:wrap;gap:.38rem;margin:0 0 1.4rem;padding:0;list-style:none}
.project-tech li{border:1px solid #e9b4e966;color:#f0dbef;padding:.24rem .62rem;font-size:.74rem;border-radius:999px}
.projects-feature .actions{gap:.65rem clamp(.9rem,1.42vw,1.36rem)}
.projects-feature .action,.projects-feature .live{font-size:clamp(.86rem,1.16vw,1.1rem)}
.projects-feature .action{border-radius:12px}
.projects-feature-preview{width:100%;height:auto;border-radius:13px}
.projects-archive{padding:clamp(2.25rem,4.7vw,4.5rem) 0 clamp(2.5rem,5vw,4.8rem)}
.archive-heading{display:flex;align-items:end;justify-content:space-between;gap:1.2rem;flex-wrap:wrap;margin-bottom:1.35rem}
.archive-heading .eyebrow{font-size:.78rem;letter-spacing:.17em;margin-bottom:.43rem}
.archive-heading h2{font-size:clamp(1.65rem,3vw,2.85rem);letter-spacing:-.05em;margin:0;line-height:1.12;font-weight:800}
.work-filters{display:flex;flex-wrap:wrap;gap:.5rem}
.work-filters[hidden],.portfolio-card[hidden]{display:none}
.work-filters button{cursor:pointer;border:1px solid #a778ab;background:transparent;color:var(--white);border-radius:999px;padding:.58rem .92rem;min-height:40px;font:650 .79rem/1.12 var(--font)}
.work-filters button:hover{background:#633963}
.work-filters button[aria-pressed=true]{background:#eab8f3;color:var(--ink);border-color:#eab8f3}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.9rem,1.65vw,1.6rem);align-items:stretch}
.portfolio-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:15px;background:#371437;border:1px solid #ac82ac55;scroll-margin-top:1rem}
.portfolio-art{display:block;overflow:hidden}
.portfolio-art:focus-visible{outline-offset:-5px}
.portfolio-card img{width:100%;height:auto;aspect-ratio:760/450;object-fit:cover;background:#2e162f;transition:transform .24s ease}
.portfolio-art:hover img{transform:scale(1.035)}
.portfolio-card-body{display:flex;flex-direction:column;flex:1;padding:clamp(.96rem,1.47vw,1.42rem)}
.card-category{color:var(--lilac);font-size:.7rem;letter-spacing:.14em;font-weight:800;text-transform:uppercase;margin:0 0 .43rem}
.portfolio-card-title{margin:0;color:var(--white);font-size:clamp(1.1rem,1.78vw,1.7rem);letter-spacing:-.033em;line-height:1.14;font-weight:800}
.card-summary{color:#f0e1f0;font-size:clamp(.82rem,1.07vw,1.03rem);margin:.46rem 0 .9rem}
.portfolio-card-actions{
  display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;
  gap:.45rem clamp(.48rem,1.05vw,1rem);margin-top:auto;border-top:1px solid #a67ca55e;padding-top:.8rem
}
.portfolio-card-actions .action{
  border-radius:999px;min-height:42px;padding:.65em .9em;
  font-size:clamp(.72rem,1vw,.98rem);gap:.4em
}
.portfolio-card-actions .line-link{font-size:clamp(.72rem,1vw,.94rem);gap:.35em;min-height:42px}
.portfolio-card-actions svg{width:1.04em;height:1.04em}
.card-site-status{font-size:clamp(.72rem,.9vw,.87rem);color:var(--soft)}
@media(max-width:1140px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .projects-hero h1{font-size:clamp(2.37rem,10.7vw,4.3rem)}
  .projects-hero .projects-deck{max-width:30ch}
  .projects-feature{grid-template-columns:1fr}
  .project-tech{margin-bottom:1.05rem}
}
@media(max-width:690px){.project-grid{grid-template-columns:1fr}.work-filters{gap:.4rem}.work-filters button{padding-inline:.64rem}}

#work,#all-projects{scroll-margin-top:1.25rem}
.home-project-archive{padding-top:clamp(1.45rem,2.5vw,2.5rem)}
.home-project-archive h3{font-size:clamp(1.3rem,2.05vw,2rem);margin:0 0 .8rem .06em;color:var(--white);font-weight:800;letter-spacing:-.043em}
@media(max-width:360px){
  .portfolio-card-body{padding-inline:.55rem}
  .portfolio-card-actions{column-gap:.45rem}
  .portfolio-card-actions .action{padding-inline:.55em}
  .portfolio-card-actions .line-link{white-space:nowrap}
}

/* Center a two-card final row in the desktop All Projects grid. */
@media (min-width: 1141px) {
  #all-projects .project-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #all-projects .project-grid > .portfolio-card {
    grid-column: span 2;
  }

  #all-projects .project-grid > .portfolio-card:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  #all-projects .project-grid > .portfolio-card:nth-child(3n + 1):nth-last-child(2) + .portfolio-card {
    grid-column: 4 / span 2;
  }
}