.work-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: end; padding-block: 62px 58px; }
.work-hero .eyebrow { margin-bottom: 20px; }
.work-hero h1 { font-size: clamp(43px, 4.8vw, 64px); }
.work-intro { max-width: 370px; color: var(--muted); font-size: 18px; padding-bottom: 5px; }
.back-link { display: inline-flex; gap: 20px; align-items: center; color: var(--yellow); font-size: 14px; text-decoration: none; margin-top: 22px; }
.back-link:hover { text-decoration: underline; }
.project-browser { --ink: #232c31; --muted: #536068; --line: #d5dbde; background: #f5f6f6; color: var(--ink); padding-block: 48px 60px; }
.portfolio-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.portfolio-heading .eyebrow { color: #7d4a00; margin-bottom: 12px; }
.portfolio-heading > p { color: var(--muted); font-size: 14px; }
.portfolio-note { border-left: 4px solid var(--yellow); background: #fff; padding: 15px 20px; margin-bottom: 26px; }
.portfolio-note strong { font-family: var(--heading); font-weight: 700; font-size: 14px; }
.portfolio-note p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 24px; }
.project-card { --accent: var(--red); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); min-width: 0; }
.project-card.accent-amber { --accent: var(--amber); }
.project-card.accent-green { --accent: var(--green); }
.project-card summary { display: block; list-style: none; cursor: pointer; }
.project-card summary::-webkit-details-marker { display: none; }
.project-card summary::marker { content: ""; }
.project-card summary:focus-visible, .project-detail a:focus-visible { outline-color: var(--paper); outline-offset: 4px; }
.project-cover { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-bottom: 1px solid var(--line); }
.project-overview { display: block; padding: 22px; }
.project-category { display: block; font-family: var(--heading); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; }
.project-badge { display: inline-block; margin-top: 8px; padding: 2px 7px; background: #edf0f1; color: #536068; font-size: 10px; line-height: 1.6; }
.project-title { display: block; margin-top: 14px; font-family: var(--heading); font-size: 25px; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.project-summary { display: block; margin-top: 13px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-open { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 22px; font-family: var(--heading); font-size: 14px; font-weight: 600; }
.project-card .hide-case { display: none; }
.project-card[open] .view-case { display: none; }
.project-card[open] .hide-case { display: inline; }
.case-symbol { position: relative; width: 28px; height: 28px; background: var(--yellow); flex-shrink: 0; }
.case-symbol::before, .case-symbol::after { content: ""; position: absolute; inset: 13px 7px auto; height: 2px; background: var(--paper); }
.case-symbol::after { transform: rotate(90deg); }
.project-card[open] .case-symbol::after { display: none; }
.project-card summary:hover .project-open { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.project-detail { border-top: 1px solid var(--line); padding: 22px; }
.preview-copy, .case-section p { font-size: 14px; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.project-detail h4 { font-size: 17px; line-height: 1.4; margin-top: 22px; margin-bottom: 9px; }
.case-section:first-child h4 { margin-top: 0; }
.project-skills { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.project-skills li { position: relative; padding-left: 15px; margin-block: 6px; }
.project-skills li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; background: var(--accent); }
.project-tools { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.project-tools li { border: 1px solid var(--line); padding: 4px 8px; font-size: 12px; }
.project-gallery { display: grid; gap: 18px; margin-top: 24px; }
.project-gallery img { display: block; width: 100%; height: auto; }
.project-gallery figcaption { margin-top: 7px; color: var(--muted); font-size: 12px; }
.project-files { display: grid; gap: 12px; margin-top: 24px; font-size: 13px; }
.project-files a { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 1000px) {
  .work-hero { gap: 40px; }
  .project-grid { gap: 18px; }
  .project-overview, .project-detail { padding: 18px; }
  .project-title { font-size: 23px; }
}
@media (max-width: 840px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 760px) {
  .work-hero { grid-template-columns: 1fr; gap: 22px; padding-block: 38px; }
  .work-hero h1 { font-size: clamp(40px, 7.7vw, 54px); }
  .work-hero .eyebrow { margin-bottom: 17px; }
  .work-intro { max-width: 43ch; font-size: 16px; }
  .back-link { margin-top: 16px; }
  .project-browser { padding-block: 36px 40px; }
  .portfolio-heading { align-items: start; }
  .portfolio-note { padding: 14px 16px; }
}
@media (max-width: 580px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-overview, .project-detail { padding: 22px; }
  .project-title { font-size: 26px; }
}
