/* Furniture-only addition. The approved gallery and résumé layout are untouched. */
.resume-portfolio-entry { background: #171719; }
.portfolio-entry-hit { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 5%; border: 0; background: linear-gradient(transparent 78%, #0b0b0bc9); color: #fff; cursor: pointer; text-align: left; }
.portfolio-entry-hit > span { display: flex; justify-content: space-between; font-size: clamp(18px, 2.2vw, 30px); font-weight: 600; }
.portfolio-entry-hit small { margin-top: 9px; color: #c6c2bb; font-size: 11px; letter-spacing: .1em; }
.portfolio-entry-hit b { font-size: 30px; font-weight: 400; }
.portfolio-entry-hit:focus-visible { outline: 3px solid #e4c595; outline-offset: -5px; }
.portfolio-motion-toggle { position: absolute; top: 18px; right: 18px; z-index: 5; width: 36px; height: 36px; border: 1px solid #ffffff50; border-radius: 50%; background: #19191ab3; color: white; cursor: pointer; }
[data-resume-state="closing"] .portfolio-entry-hit, [data-resume-state="closing"] .portfolio-motion-toggle { opacity: 0; pointer-events: none; }
.portfolio-cover-fallback { position: absolute; inset: 0; overflow: hidden; background: #19191b; }
.portfolio-cover-fallback img { position: absolute; object-fit: cover; box-shadow: 0 12px 35px #0008; }
.portfolio-cover-fallback svg { width: 100%; height: 100%; display: block; background: #101113; }
.furniture-portfolio, .furniture-lightbox { box-sizing: border-box; width: calc(100vw - 32px); max-width: 1800px; height: calc(100dvh - 32px); max-height: none; padding: 0; border: 1px solid #ffffff20; border-radius: 22px; background: #141416; color: #f6f3ed; overflow: hidden; font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
.furniture-portfolio::backdrop, .furniture-lightbox::backdrop { background: #000b; backdrop-filter: blur(10px); }
.furniture-portfolio[open] { display: flex; flex-direction: column; }
.portfolio-header { padding: 25px 38px 22px; border-bottom: 1px solid #ffffff14; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex: none; }
.portfolio-header p { color: #b49d7d; font-size: 10px; letter-spacing: .16em; margin: 0 0 7px; }
.portfolio-header h2 { margin: 0; font-size: clamp(23px, 3vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.portfolio-return { display: inline-flex; align-items: center; gap: 12px; border: 1px solid #ffffff3b; border-radius: 30px; background: transparent; color: #eee9e0; padding: 12px 19px; cursor: pointer; font-size: 12px; white-space: nowrap; }
.portfolio-return:hover { background: #ede0cb; color: #171719; }
.portfolio-toolbar { padding: 17px 38px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: none; }
.portfolio-filter { border: 1px solid #ffffff20; border-radius: 22px; color: #a6a3a1; background: transparent; padding: 9px 14px; font-size: 11px; cursor: pointer; }
.portfolio-filter[aria-pressed="true"] { background: #e2c69c; border-color: #e2c69c; color: #141416; }
.portfolio-comparison { margin-left: auto; color: #c4ad8b; font-size: 11px; text-decoration: none; }
.portfolio-scroll { overflow: auto; overscroll-behavior: contain; flex: 1; min-height: 0; padding: 8px 38px 60px; scrollbar-width: thin; scrollbar-color: #595149 #141416; position: relative; }
.portfolio-group { margin: 22px 0 65px; }
@media(min-width: 1000px) { .portfolio-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 44px; } .portfolio-group .portfolio-group-heading { flex-direction: column; align-items: flex-start; justify-content: flex-start; border-bottom: 0; padding-top: 24px; gap: 20px; } .portfolio-group .portfolio-profile { width: 100%; max-width: 640px; margin-right: 0; } .portfolio-group .portfolio-grid { grid-column: 1 / -1; } }
.portfolio-group[hidden] { display: none; }
.portfolio-group-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid #ffffff1b; }
.portfolio-group-heading p { margin: 0 0 9px; color: #b49d7d; font-size: 11px; letter-spacing: .1em; }
.portfolio-group-heading h3 { font-size: clamp(20px, 2.3vw, 32px); margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.portfolio-group-heading small { font-size: 11px; color: #938e88; white-space: nowrap; }
.portfolio-profile { max-width: 1000px; margin: 0 auto 32px; }
.portfolio-image-button { display: block; border: 0; padding: 0; width: 100%; background: transparent; cursor: zoom-in; border-radius: 12px; overflow: hidden; color: inherit; }
.portfolio-original { display: block; width: 100%; height: auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; align-items: start; }
.portfolio-work { min-width: 0; margin: 0; }
.portfolio-work figcaption { padding: 13px 0 0; display: flex; gap: 14px; font-size: 12px; color: #c7c2ba; line-height: 1.65; }
.portfolio-work figcaption span { color: #877c6e; font-size: 10px; padding-top: 2px; }
.portfolio-note { font-size: 11px; color: #8d8882; line-height: 1.9; padding: 0 0 20px; }
.portfolio-gpu-host { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.portfolio-gpu-host canvas { display: block; width: 100%; height: 100%; }
.furniture-portfolio[data-renderer="webgl"] .portfolio-original { opacity: 0; }
.furniture-lightbox[open] { display: flex; flex-direction: column; background: #0c0c0e; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 30px; border-bottom: 1px solid #ffffff18; flex: none; }
.lightbox-header p { margin: 0; color: #bbb6af; font-size: 12px; }
.lightbox-image-area { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 24px; }
.lightbox-image-area img { display: block; max-width: 100%; width: auto; height: auto; max-height: none; flex: none; }
.lightbox-footer { display: flex; justify-content: center; gap: 16px; padding: 14px; border-top: 1px solid #ffffff18; flex: none; }
.lightbox-footer button { border: 1px solid #ffffff30; border-radius: 20px; padding: 9px 20px; color: #ddd6ca; background: transparent; cursor: pointer; }
@media(max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .portfolio-comparison { margin-left: 0; } }
@media(max-width: 560px) { .furniture-portfolio, .furniture-lightbox { width: calc(100vw - 14px); height: calc(100dvh - 14px); border-radius: 14px; } .portfolio-header, .portfolio-toolbar { padding: 18px; } .portfolio-scroll { padding: 0 18px 30px; } .portfolio-grid { gap: 22px 12px; } .portfolio-group-heading { align-items: flex-start; flex-direction: column; gap: 10px; } .portfolio-return { padding: 10px 12px; } }
@media(prefers-reduced-motion: reduce) { .portfolio-motion-toggle { display: none; } }
