.projects-page .app-page { max-width: 1240px; }
.projects-catalog { padding: 0 0 clamp(5rem, 9vw, 8rem); }
.projects-catalog > h1,
.projects-catalog > h1 + p { display: none; }

.projects-catalog__intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 7vw, 7rem); align-items: end; padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; }
.projects-catalog__eyebrow { color: var(--theme-accent); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.projects-catalog__intro h1 { max-width: 720px; margin: 0.75rem 0 0; color: var(--theme-text); font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: 0.98; letter-spacing: -0.06em; }
.projects-catalog__intro p { max-width: 680px; margin: 1.15rem 0 0; color: var(--theme-muted); font-size: 0.85rem; line-height: 1.75; }
.projects-catalog__stats { display: grid; grid-template-columns: repeat(3, minmax(75px, 1fr)); min-width: min(100%, 330px); margin: 0; border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); }
.projects-catalog__stats div { padding: 1rem; border-left: 1px solid var(--theme-border); }
.projects-catalog__stats div:first-child { border-left: 0; }
.projects-catalog__stats dt { color: var(--theme-muted); font-family: var(--font-mono); font-size: 0.53rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }
.projects-catalog__stats dd { margin: 0.4rem 0 0; color: var(--theme-text); font-family: var(--font-heading); font-size: 1.35rem; }

.projects-toolbar { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border); }
.projects-toolbar__filters { display: flex; gap: 0.35rem; }
.projects-toolbar__filters button { position: relative; min-height: 34px; padding: 0.4rem 0.62rem; border: 0; border-radius: 0; background: transparent; color: var(--theme-muted); font: 750 0.65rem var(--font-body); cursor: pointer; transition: color 150ms ease; }
.projects-toolbar__filters button::after { content: ""; position: absolute; right: 0.6rem; bottom: 0; left: 0.6rem; height: 2px; border-radius: 999px; background: var(--theme-accent); transform: scaleX(0); transition: transform 150ms ease; }
.projects-toolbar__filters button:hover { color: var(--theme-text); }
.projects-toolbar__filters button.is-active { color: var(--theme-text); }
.projects-toolbar__filters button.is-active::after { transform: scaleX(1); }
.projects-toolbar__search { display: flex; align-items: center; justify-self: end; width: min(100%, 320px); min-height: 38px; gap: 0.5rem; padding: 0 0.7rem; border: 1px solid transparent; border-radius: 9px; background: color-mix(in srgb, var(--theme-surface-soft) 74%, transparent); transition: border-color 150ms ease, background-color 150ms ease; }
.projects-toolbar__search:focus-within { border-color: color-mix(in srgb, var(--theme-accent) 42%, var(--theme-border)); background: var(--theme-surface-soft); }
.projects-toolbar__search svg { width: 15px; height: 15px; fill: none; stroke: var(--theme-muted); stroke-linecap: round; stroke-width: 1.7; }
.projects-toolbar__search input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--theme-text); font-size: 0.68rem; }
.projects-page .projects-toolbar__search input[type="search"] { width: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0; background: transparent !important; box-shadow: none !important; color: var(--theme-text); }
.projects-toolbar__search input::placeholder { color: var(--theme-muted); }
.projects-toolbar .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.projects-toolbar__count { color: var(--theme-muted); font-family: var(--font-mono); font-size: 0.58rem; text-align: right; }

.project-index { border-bottom: 1px solid var(--theme-border); }
.project-index__entry { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.8rem); padding: clamp(2rem, 4vw, 3.2rem) 0; border-bottom: 1px solid var(--theme-border); background: transparent; transition: opacity 180ms ease, transform 180ms ease; }
.project-index__entry:last-child { border-bottom: 0; }
.project-index__entry[hidden] { display: none; }
.project-index__number { color: var(--theme-accent); font-family: var(--font-mono); font-size: 0.62rem; font-weight: 800; }
.project-index__body { min-width: 0; }
.project-index__type { color: var(--theme-muted); font-family: var(--font-mono); font-size: 0.57rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.project-index__title { max-width: 900px; margin: 0.45rem 0 0; color: var(--theme-text); font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 3.3rem); line-height: 1.02; letter-spacing: -0.055em; }
.project-index__description { max-width: 860px; margin: 1rem 0 0; color: var(--theme-muted); font-size: 0.84rem; line-height: 1.75; }
.project-index__tags { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 1.15rem; }
.project-index__tags .chip { min-height: 27px; padding: 0.27rem 0.5rem; border-radius: 999px; font-size: 0.58rem; }
.project-index__updated { margin: 1.15rem 0 0; color: var(--theme-muted); font-family: var(--font-mono); font-size: 0.58rem; }
.project-index__actions { display: inline-flex; flex-wrap: wrap; align-items: stretch; width: fit-content; max-width: 100%; margin-top: 1.45rem; overflow: hidden; border: 1px solid color-mix(in srgb, var(--theme-border) 90%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--theme-surface-soft) 46%, transparent); }
.project-index__action { display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem; min-height: 38px; padding: 0.48rem 0.78rem; border: 0; border-left: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent); border-radius: 0 !important; background: transparent; color: var(--theme-muted); font: 800 0.64rem var(--font-body); text-decoration: none; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.project-index__action:first-child { border-left: 0; }
.project-index__action:hover { background: color-mix(in srgb, var(--theme-accent) 8%, transparent); color: var(--theme-accent); }
.project-index__action--primary { background: color-mix(in srgb, var(--theme-accent) 10%, transparent); color: var(--theme-accent); }
.project-index__action > span { font-size: 0.82rem; transition: transform 150ms ease; }
.project-index__action:hover > span { transform: translateX(2px); }
.project-index__action:focus-visible,
.projects-toolbar button:focus-visible,
.projects-toolbar input:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 3px; }

.projects-catalog__empty { display: grid; place-items: center; gap: 0.35rem; min-height: 180px; border-bottom: 1px solid var(--theme-border); color: var(--theme-muted); text-align: center; }
.projects-catalog__empty strong { color: var(--theme-text); font-family: var(--font-heading); font-size: 1rem; }
.projects-catalog__empty span { font-size: 0.7rem; }
.projects-catalog__empty.is-hidden { display: none; }

@media (max-width: 820px) {
    .projects-catalog__intro { grid-template-columns: 1fr; }
    .projects-catalog__stats { width: 100%; }
    .projects-toolbar { grid-template-columns: 1fr auto; }
    .projects-toolbar__filters { grid-column: 1 / -1; overflow-x: auto; }
    .projects-toolbar__search { justify-self: stretch; width: 100%; }
}

@media (max-width: 560px) {
    .project-index__entry { grid-template-columns: 1fr; }
    .project-index__number { margin-bottom: -0.35rem; }
    .projects-catalog__stats div { padding: 0.8rem 0.6rem; }
    .projects-toolbar { grid-template-columns: 1fr; }
    .projects-toolbar__count { text-align: left; }
    .project-index__actions { display: grid; width: 100%; }
    .project-index__action { justify-content: space-between; border-top: 1px solid color-mix(in srgb, var(--theme-border) 80%, transparent); border-left: 0; }
    .project-index__action:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .project-index__entry,
    .project-index__action,
    .project-index__action > span,
    .projects-toolbar__filters button,
    .projects-toolbar__filters button::after,
    .projects-toolbar__search { transition: none; }
}
