.accent-periwinkle { --project-accent: #c7caff; --project-tone: #252942; }
.accent-lime { --project-accent: #c5f277; --project-tone: #273222; }
.accent-peach { --project-accent: #ffcfac; --project-tone: #3a2921; }
.accent-mint { --project-accent: #a8e6d8; --project-tone: #1f3532; }

.portfolio .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portfolio .product-card { display: flex; flex-direction: column; min-width: 0; }
.portfolio .product-photo { flex: none; }
.portfolio .product-description { display: flex; flex: 1; flex-direction: column; }
.portfolio .product-description p { min-height: 0; max-width: none; }
.portfolio .product-dot { color: var(--project-accent); }
.portfolio .product-link { margin-top: auto; }
.portfolio .product-link > span:first-child { color: #a1ad99; }
.portfolio .product-link > span:last-child { color: var(--project-accent); }
.card-features { list-style: none; padding: 0; margin: 19px 0 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.card-features li { border-radius: 5px; background: var(--project-tone); color: var(--project-accent); padding: 6px 9px; font-size: 11px; }
.school-cover { display: grid; place-items: center; background: radial-gradient(ellipse at 65% 26%, #424972, #23273a 60%, #1a1e2b); }
.school-cover img { width: 100%; height: 100%; }

.project-header { justify-content: space-between; height: 94px; }
.portfolio-back, .demo-jump { color: #bdc5b8; font-size: 13px; }
.portfolio-back:hover, .demo-jump:hover { color: var(--project-accent); }
.portfolio-back span, .demo-jump span { color: var(--project-accent); }
.project-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); align-items: end; gap: clamp(24px, 6vw, 100px); padding: clamp(50px, 7vw, 110px) 0 66px; }
.project-lead .eyebrow, .project-number, .project-lead h1 span { color: var(--project-accent); }
.project-lead h1 { font: 550 clamp(44px, 6vw, 86px)/1.06 var(--heading); letter-spacing: -.065em; margin: 17px 0 22px; }
.project-tagline { font: 500 clamp(20px, 3vw, 30px)/1.25 var(--heading); letter-spacing: -.03em; margin: 0 0 14px; }
.project-summary, .preview-note { font-size: 15px; line-height: 1.75; color: #acb6a8; margin: 0; max-width: 580px; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin-top: 26px; }
.project-actions .primary { background: var(--project-accent); }
.project-index { display: grid; gap: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 16px 22px; }
.project-index .eyebrow { margin-bottom: 16px; color: #a8b1a3; }
.project-index a, .project-other a { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 14px; }
.project-index a span, .project-index a b, .project-other a span { color: var(--project-accent); }
.project-index a b, .project-other a span { margin-left: auto; }
.project-index a:hover, .project-other a:hover { color: var(--project-accent); }
.project-section { border-top: 1px solid var(--border); padding: 52px 0 64px; }
.project-section h2 { font: 550 clamp(28px, 4vw, 44px)/1.15 var(--heading); letter-spacing: -.045em; margin: 16px 0 22px; }
.project-features { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.project-features li { border: 1px solid var(--border); border-radius: 10px; padding: 19px; background: var(--surface); }
.project-features li > span { color: var(--project-accent); font: 12px monospace; }
.project-features h3 { margin: 12px 0 8px; font-size: 16px; }
.project-features p, .screen-demo figcaption p { margin: 0; color: #a8b1a3; line-height: 1.55; font-size: 13px; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; margin-top: 25px; }
.screen-demo { margin: 0; min-width: 0; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); padding: clamp(10px, 2vw, 22px); }
.demo-window { border: 1px solid #465045; border-radius: 8px; background: #202520; overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #141814; border-bottom: 1px solid #465045; color: #b0baac; padding: 9px 12px; font: 10px monospace; }
.demo-dots { color: var(--project-accent); font-size: 8px; }
.demo-content { padding: clamp(12px, 2vw, 24px); }
.demo-app { color: var(--project-accent); font-size: 11px; font-weight: 700; margin: 0; }
.demo-content h3 { font: 650 clamp(16px, 2vw, 23px)/1.25 var(--heading); margin: 5px 0 12px; }
.demo-tags, .demo-catalog { list-style: none; padding: 0; }
.demo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 15px; }
.demo-tags li { color: var(--project-accent); background: var(--project-tone); padding: 5px 8px; border-radius: 4px; font-size: 11px; }
.demo-content table { width: 100%; border-collapse: collapse; text-align: left; font-size: clamp(10px, 1.2vw, 13px); overflow-wrap: anywhere; }
.demo-content th, .demo-content td { border-bottom: 1px solid #414a40; padding: 9px 6px; }
.demo-content th { background: #2c352c; color: #d7dfd3; font-weight: 600; }
.demo-content td:last-child { color: var(--project-accent); }
.demo-catalog { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.demo-catalog li { display: grid; gap: 5px; padding: 7px; background: #2e322c; border-radius: 5px; }
.demo-catalog li > span { display: grid; place-items: center; color: #352820; background: #f2c9a9; border-radius: 4px; min-height: 42px; font-size: 25px; }
.demo-catalog li:nth-child(2) > span { background: #dbcced; }
.demo-catalog li:nth-child(3) > span { background: #c8deb3; }
.demo-catalog small { color: var(--project-accent); font-size: 9px; }
.demo-catalog strong { font-size: 10px; overflow-wrap: anywhere; }
.lesson-preview { display: flex; align-items: center; gap: 16px; padding: 19px 15px; min-height: 108px; border-radius: 6px; background: linear-gradient(135deg, #3b4167, #262a44); }
.lesson-preview > span { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--project-accent); color: #292d47; font-size: 15px; }
.lesson-preview small, .lesson-preview strong { display: block; }
.lesson-preview small { color: var(--project-accent); font: 10px monospace; margin-bottom: 5px; }
.lesson-preview p { margin: 4px 0 0; color: #c1c5df; font-size: 12px; }
.screen-demo figcaption { padding: 15px 2px 2px; }
.screen-demo figcaption strong { display: block; margin-bottom: 5px; }
.project-next { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.project-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-block: 24px; color: #a8b1a3; font-size: 12px; }

@media (max-width: 760px) {
  .portfolio .product-grid, .project-intro, .demo-grid, .project-next { grid-template-columns: minmax(0, 1fr); }
  .project-header { height: 78px; }
  .project-index { margin-top: 8px; }
  .project-section { padding-block: 39px; }
  .portfolio .footer-bottom > div { width: 100%; gap: 10px 17px; }
}
