.real-works { --work-surface: #eceae2; --work-line: #d9d9ce; min-width: 0; }
.category-real-works { margin: 72px 0; padding-top: 48px; border-top: 1px solid var(--line,#d9d9ce); }
.real-works-supply { max-width: 700px; margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
#real-works,#construction-ideas { scroll-margin-top: 110px; }
.real-works [hidden] { display: none !important; }
.real-works-toolbar { margin-bottom: 30px; }
.real-works-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.real-works-filters button { min-height: 44px; border: 1px solid var(--work-line); border-radius: 6px; padding: 9px 16px; background: transparent; color: var(--ink); font-size: 14px; font-weight: 550; line-height: 1.35; transition: background .15s, border-color .15s, color .15s; }
.real-works-filters button:hover { border-color: #6a7668; background: #e8ece3; }
.real-works-filters button[aria-pressed="true"] { background: #2d352e; color: #fffdf5; border-color: #2d352e; }
.real-works-status { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.real-works-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 24px; }
.real-work-card { min-width: 0; }
.real-work-photo { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--work-surface); border: 1px solid #dfdfd5; border-radius: 9px; }
.real-work-photo img { width: 100%; height: 100%; object-fit: contain; }
.real-work-photo:hover { border-color: #788675; }
.real-work-photo:focus-visible { outline: 2px solid var(--focus-ring,#657263); outline-offset: 3px; }
.real-work-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #ffffff80; border-radius: 50%; color: #fffdf5; background: #242c26df; box-shadow: 0 2px 10px #1720181a; }
.real-work-expand svg { width: 18px; height: 18px; }
.real-work-copy { padding: 17px 1px 0; }
.real-work-stage { display: inline-block; padding: 4px 9px; margin-bottom: 9px; border: 1px solid #d3dccc; border-radius: 5px; background: #e8ece2; color: #4b5e46; font-size: 11px; font-weight: 550; line-height: 1.4; }
.real-work-copy h3 { font-size: clamp(20px,1.8vw,27px); line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.real-work-copy p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.real-work-copy p:empty { display: none; }
.work-lightbox:not([open]) { display: none; }
.work-lightbox { position: fixed; inset: 0; margin: auto; padding: 0; width: min(1280px,calc(100% - 48px)); height: min(940px,calc(100dvh - 40px)); max-width: none; max-height: none; border: 1px solid #586254; border-radius: 12px; color: #f5f4ec; background: #252c27; overflow: hidden; box-shadow: 0 24px 100px #0008; }
.work-lightbox::backdrop { background: #101611d9; }
.work-lightbox-shell { display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: 100%; height: 100%; padding: 12px 22px 20px; }
.work-lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; color: #c8d0c3; font-size: 12px; letter-spacing: .035em; }
.work-lightbox-image { min-height: 0; display: grid; place-items: center; background: #1c221e; border-radius: 6px; overflow: hidden; }
.work-lightbox-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.work-lightbox-loading { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 48px); color: #f0f4e9; font-size: 12px; line-height: 1.4; text-align: center; }
.work-lightbox-loading:not(:empty) { padding: 8px 12px; border: 1px solid #66725f; border-radius: 5px; background: #293226f2; }
.work-lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; }
.work-lightbox-copy { min-width: 0; max-width: 800px; max-height: min(25dvh,170px); overflow: auto; overscroll-behavior: contain; }
.work-lightbox-copy h2 { font-size: clamp(20px,2.1vw,29px); line-height: 1.15; letter-spacing: -.035em; }
.work-lightbox-copy p { margin-top: 7px; color: #c8d0c3; font-size: 14px; line-height: 1.5; }
.work-lightbox-copy p:empty { display: none; }
.work-lightbox-stage { display: block; margin-bottom: 6px; color: #b9c8ac; font-size: 11px; }
.work-lightbox-stage:empty { display: none; }
.work-lightbox-navigation { display: flex; align-items: center; gap: 10px; flex: none; }
.work-lightbox-counter { min-width: 62px; font: 12px var(--mono,monospace); text-align: center; color: #d9dfd4; white-space: nowrap; }
.work-lightbox-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; flex: none; border: 1px solid #626d5f; border-radius: 50%; background: transparent; color: #f7f7f0; }
.work-lightbox-button svg { width: 21px; height: 21px; }
.work-lightbox-button:hover { background: #46523f; border-color: #91a285; }
.work-lightbox-button:focus-visible { outline: 2px solid var(--focus-ring,#c1cab9); outline-offset: 3px; }
.work-lightbox-button:disabled { opacity: .35; cursor: default; }
.real-works-modal-open,.real-works-modal-open body { overflow: hidden; }
@media(max-width:1000px) { .real-works-grid { gap: 30px 18px; } .real-work-copy h3 { font-size: 22px; } }
@media(max-width:800px) { .real-works-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .real-works--home .real-work-card:last-child:nth-child(3) { grid-column: 1/-1; max-width: calc((100% - 18px)/2); } }
@media(max-width:580px) {
  .real-works-toolbar { margin-bottom: 22px; }
  .real-works-filters { gap: 7px; }
  .real-works-filters button { padding: 8px 12px; font-size: 13px; }
  .real-works-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .real-works--home .real-work-card:last-child:nth-child(3) { grid-column: auto; max-width: none; }
  .real-work-copy { padding-top: 14px; }
  .real-work-copy h3 { font-size: 23px; }
  .real-work-copy p { margin-top: 8px; }
  .work-lightbox { width: calc(100% - 16px); height: calc(100dvh - 16px); border-radius: 9px; }
  .work-lightbox-shell { padding: 8px 10px max(12px,env(safe-area-inset-bottom)); }
  .work-lightbox-top { padding-bottom: 8px; }
  .work-lightbox-bottom { flex-direction: column; align-items: stretch; gap: 15px; padding-top: 14px; }
  .work-lightbox-copy { max-height: 24dvh; }
  .work-lightbox-copy p { font-size: 13px; }
  .work-lightbox-navigation { justify-content: center; }
}
@media(prefers-reduced-motion:reduce) { .real-works-filters button { transition: none; } }
