.projects-hero { padding: 42px 0 44px; border-bottom: 1px solid var(--line); }
.projects-hero .eyebrow { margin-top: 32px; }
.projects-hero h1 { max-width: 950px; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: 1.08; letter-spacing: -.045em; margin: 16px 0 28px; }
.projects-hero h1 span { color: var(--mint); }
.projects-intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.projects-intro p { max-width: 620px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; margin: 0; }
.projects-intro .btn { flex-shrink: 0; }
.projects-section { padding: 36px 0 80px; }
.projects-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.project-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.project-filters[hidden], .project-card[hidden] { display: none; }
.project-filters button { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 12px 16px; min-height: 46px; border-radius: 100px; font: inherit; font-size: .94rem; font-weight: 600; cursor: pointer; }
.project-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.project-filters button:hover { border-color: var(--mint); }
.projects-count { color: var(--mint); font-size: .9rem; margin: 0; }
.projects-help { color: var(--muted); font-size: .94rem; margin: 18px 0 28px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; align-items: start; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; height: 100%; }
.project-photo { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); cursor: zoom-in; }
.project-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.project-photo:hover img { transform: scale(1.035); }
.project-category { position: absolute; left: 14px; top: 14px; max-width: calc(100% - 78px); border-radius: 100px; padding: 6px 10px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.project-enlarge { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 1.35rem; }
.project-copy { padding: 22px; }
.project-location { color: var(--mint); font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin: 0 0 8px; }
.project-copy h2 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 12px; }
.project-description { color: var(--muted); font-size: .96rem; line-height: 1.6; margin: 0 0 18px; }
.project-spec { font-size: .82rem; font-weight: 600; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; margin: 0; }
.gallery-open { overflow: hidden; }
.gallery-dialog { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #43524d; border-radius: 18px; color: #fff; background: #15251f; overscroll-behavior: contain; }
.gallery-dialog::backdrop { background: rgba(5, 15, 11, .88); }
.gallery-viewer { padding: 18px 24px 24px; }
.gallery-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 16px; color: #d1ded8; }
.gallery-close, .gallery-arrow { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #63756c; background: #243c31; color: #fff; cursor: pointer; font: inherit; min-width: 46px; min-height: 46px; border-radius: 50%; flex-shrink: 0; }
.gallery-close { padding: 8px 16px; gap: 12px; border-radius: 100px; }
.gallery-close span { font-size: 1.7rem; line-height: 1; }
.gallery-arrow { font-size: 1.35rem; }
.gallery-close:hover, .gallery-arrow:hover { background: #345443; }
.gallery-stage { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 16px; }
#gallery-image { display: block; width: 100%; height: min(58dvh, 650px); object-fit: contain; background: #101d17; touch-action: pan-y pinch-zoom; }
.gallery-caption { max-width: 820px; margin: 20px auto 0; }
#gallery-location { color: #9fd9b9; font-size: .85rem; margin: 0 0 6px; }
#gallery-title { color: #fff; font-size: 1.5rem; margin: 0 0 10px; line-height: 1.25; }
#gallery-description { color: #d1ded8; line-height: 1.6; margin: 0 0 8px; }
#gallery-spec { color: #b8d8c7; font-size: .85rem; margin: 0; }
.project-photo:focus-visible, .project-filters button:focus-visible, .gallery-dialog button:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-intro { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 600px) {
  .projects-hero { padding: 26px 0 32px; }
  .projects-hero .eyebrow { font-size: .73rem; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .projects-section { padding-top: 26px; }
  .projects-intro p { font-size: 1rem; }
  .project-copy { padding: 20px; }
  .project-filters button { padding: 10px 13px; font-size: .88rem; }
  .gallery-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .gallery-viewer { padding: 12px; }
  .gallery-stage { grid-template-columns: minmax(0, 1fr) 1fr; gap: 12px; }
  #gallery-image { grid-column: 1 / -1; grid-row: 1; height: 48dvh; }
  .gallery-arrow { border-radius: 100px; min-height: 46px; width: 100%; }
  .gallery-caption { margin-top: 18px; }
  #gallery-title { font-size: 1.3rem; }
  #gallery-description { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) { .project-photo img { transition: none; } }
