.projects-page { padding-bottom: 56px; }
.projects-section-heading { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 24px; }
.projects-section-heading h2 { font-size: 1.1rem; margin: 0; }
.projects-section-heading > span { color: var(--muted); font-size: .8rem; }
.projects-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px 28px; }
.project-card { display: flex; flex-direction: column; min-width: 0; scroll-margin-block: calc(var(--header-height) + 24px); }
.project-cover { position: relative; display: flex; aspect-ratio: 8 / 5; overflow: hidden; border-radius: 14px; text-decoration: none; isolation: isolate; }
.project-thumbnail { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.paper-cover { background: #d5f0f4; flex-direction: column; justify-content: center; padding: 20px; color: var(--bg); }
.slides-cover { background: #20234e; color: var(--text); flex-direction: column; padding: 24px; }
.paper-preview { display: flex; align-items: center; flex-direction: column; gap: 8px; width: 100%; font-size: .8rem; }
.file-after { display: flex; gap: 8px; align-items: center; background: var(--text); padding: 10px; border-radius: 6px; }
.pdf-icon { font-size: .6rem; }
.cover-caption { position: absolute; bottom: 10px; left: 20px; font-size: .7rem; }
.slides-label { font-size: .65rem; letter-spacing: .15em; }
.slides-title { font-size: 1.2rem; }
.slides-title > span { display: block; font-size: 3.5rem; line-height: 1.15; }
.slides-signature { position: absolute; bottom: 16px; font-size: .75rem; }
.project-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding-top: 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .75rem; }
.project-live { color: var(--teal); }
.project-live::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; background: currentColor; vertical-align: middle; }
.project-body h3 { margin: 10px 0 8px; font-size: 1.25rem; line-height: 1.5; }
.project-body p { color: var(--muted); font-size: .95rem; line-height: 1.85; margin: 0 0 16px; }
.project-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; margin-top: auto; padding-block: 8px; border-bottom: 1px solid #8a7257; color: var(--accent); text-decoration: none; font-size: .9rem; }
.project-pending { color: var(--muted); font-size: .85rem; }
@media (min-width: 40em) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 76em) { .projects-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }

/* AI Playground */
.playground-page section + section { margin-top: 56px; }
.playground-cover { flex-direction: column; justify-content: space-between; padding: 22px 24px; color: var(--text); }
.playground-prompt-cover { background: #1d2a2b; }
.playground-game-cover { background: #3a2346; }
.playground-cover-label { font-size: .65rem; letter-spacing: .15em; color: var(--teal); }
.playground-cover-title { font-size: 1.35rem; line-height: 1.45; max-width: 14em; }
.playground-cover-cursor { position: absolute; right: 24px; bottom: 18px; font-size: 1rem; color: var(--teal); animation: playground-blink 1.1s steps(2, start) infinite; }
.playground-cover-credit { font-size: .75rem; color: var(--muted); }
.playground-credit { color: var(--muted); font-size: .8rem !important; margin: -2px 0 10px !important; }
.playground-credit a { color: var(--accent); }
.playground-note { font-size: .85rem !important; border-left: 2px solid var(--line); padding-left: 10px; }
@keyframes playground-blink { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .playground-cover-cursor { animation: none; } }
