/* Project-list additions only: the original 3D homepage and theme remain unchanged. */
.showcase-entry{scroll-margin-top:28px}
.showcase-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:28px;padding:30px;align-items:center}
.showcase-card:hover{transform:none}
.showcase-visual{min-width:0;display:flex;align-items:center;justify-content:center;gap:15px;min-height:390px;padding:20px 12px;border-radius:11px;background:radial-gradient(ellipse at 75% 15%,#fcebd8,transparent 65%),linear-gradient(145deg,#efebfc,#eef3fc)}
.device-lane{min-width:0;display:flex;flex-direction:column;align-items:center;gap:18px}
.device-stage{width:100%;position:relative;display:flex;flex-direction:column;align-items:center}
.device-frame{position:relative;background:linear-gradient(145deg,#424755,#202633);box-shadow:0 12px 25px #45536d24;flex:none}
.phone-lane{width:175px;max-width:100%}
.phone-frame{padding:10px 7px;border-radius:25px;width:100%;border:2px solid #5b6070;box-shadow:inset 0 0 0 1px #1d2230,0 12px 25px #45536d24}
.phone-frame:before{content:'';height:3px;width:30px;border-radius:3px;position:absolute;top:4px;left:calc(50% - 15px);background:#131722}
.phone-frame .device-screen{aspect-ratio:9/19.5;border-radius:17px}
.desktop-lane{width:100%}
.desktop-frame{border:1px solid #666d7c;border-radius:9px;padding:12px 7px 9px;width:100%}
.computer-camera{position:absolute;top:4px;left:50%;width:3px;height:3px;border-radius:50%;background:#8791a6}
.desktop-frame .device-screen{aspect-ratio:16/10;border-radius:2px}
.computer-neck{width:16%;height:19px;background:linear-gradient(90deg,#9ca6b5,#e1e5ed,#b4bdcc)}
.computer-foot{height:5px;width:45%;background:linear-gradient(#dfe4ed,#a2acbd);border-radius:7px 7px 2px 2px;box-shadow:0 4px 7px #45536d1a}
.device-screen{width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:#bcc5d7 #f2f4f8;background:#fff;overscroll-behavior:contain}
.screen-image{display:flex;align-items:center;justify-content:center;padding:0;margin:0;width:100%;height:100%;cursor:zoom-in}
.screen-image img{display:block;width:100%;height:100%;object-fit:contain;background:white}
.long-screen .screen-image{display:block;height:auto;min-height:100%}
.long-screen .screen-image img{height:auto;object-fit:contain}
.device-screen video{display:block;width:100%;height:100%;object-fit:contain;background:#111;max-width:100%}
.carousel-controls{display:flex;gap:6px;align-items:center;justify-content:center;flex-wrap:wrap;font-size:11px;color:#64738b;width:100%}
.carousel-controls button{display:grid;place-items:center;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid #d6d9e7;background:#ffffffb5;color:#7054b3;font-size:21px}
.carousel-controls button:hover{background:#fff;border-color:#a28bda}
.carousel-controls button:disabled{opacity:.35;cursor:default}
.carousel-controls .carousel-play{font-size:10px;width:38px;border-radius:5px}
.carousel-count{font-variant-numeric:tabular-nums;text-align:center;min-width:36px;font-size:10px}
.mode-dual{gap:12px;padding:28px 10px}
.mode-dual .desktop-lane{flex:1 1 65%;width:65%}
.mode-dual .phone-lane{flex:0 1 32%;width:32%;max-width:140px}
.mode-dual .phone-frame{padding:9px 5px;border-radius:20px}
.mode-dual .phone-frame .device-screen{border-radius:12px}
.mode-dual .carousel-controls{gap:3px}
.mode-dual .carousel-controls .carousel-play{flex-basis:48px;margin:2px 16px 0}
.showcase-card h3{font-size:25px}
.showcase-card .timeline-card-body>p{margin-bottom:17px}
.subproject-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:19px 0 15px}
.subproject-tabs button{font-size:11px;padding:7px 9px;border:1px solid #dfd7ef;border-radius:6px;color:#73658b;background:#faf8fd}
.subproject-tabs button[aria-pressed=true]{background:#8364b7;border-color:#8364b7;color:white}
.subproject-title{font-size:14px;margin:16px 0 7px;color:#485670}
.showcase-card .subproject-copy{font-size:12px;margin:0 0 16px}
.showcase-card .media-caption{font-size:11px;line-height:1.6;margin:7px 0;color:#8a93a7;overflow-wrap:anywhere}
.current-media-labels{border-top:1px solid #eeeaf4;padding-top:10px}
.showcase-empty{display:grid;gap:14px;text-align:center;font-size:13px;color:#8a7f9d;place-content:center}
.empty-symbol{font-size:35px;color:#b4a4cc}
.showcase-lightbox{width:min(1200px,96vw);height:90svh;max-height:94svh;max-width:96vw;padding:48px 25px 20px;background:#f5f7fc;border:1px solid #dce1ed;border-radius:12px;text-align:center;color:#354560;overflow:auto}
.showcase-lightbox::backdrop{background:#1f284dcc;backdrop-filter:blur(5px)}
.showcase-lightbox img{display:block;width:auto;max-width:100%;height:auto;margin:auto;max-height:none}
.showcase-lightbox p{font-size:13px;color:#7b889d}
.showcase-close{position:fixed;top:7svh;right:max(4vw,calc((100vw - 1160px)/2));border-radius:50%;background:#7656d9;color:white;width:34px;height:34px;font-size:24px;z-index:2}
@media(min-width:761px) and (max-width:1150px){.showcase-entry{grid-template-columns:75px 18px 1fr;gap:12px}.showcase-card{grid-template-columns:minmax(0,1fr) minmax(180px,.85fr);padding:22px;gap:20px}.showcase-visual{min-height:340px;padding:16px 8px}.showcase-card h3{font-size:22px}.mode-dual .phone-lane{min-width:86px}.mode-dual .carousel-controls .carousel-play{margin:2px 4px 0}.mode-dual .carousel-controls button{width:23px;height:23px}}
@media(max-width:760px){.showcase-card{grid-template-columns:1fr;padding:20px;gap:22px}.showcase-visual{min-height:320px}.showcase-card h3{font-size:22px}.phone-lane{width:170px}.mode-dual .phone-lane{width:32%;max-width:125px}.showcase-lightbox{padding:44px 12px 15px}.showcase-close{right:7vw}}
@media(max-width:400px){.showcase-card{padding:13px}.showcase-visual{padding:18px 8px;min-height:310px}.mode-dual{gap:7px}.mode-dual .phone-lane{min-width:79px}.mode-dual .carousel-controls{gap:2px}.mode-dual .carousel-controls button{width:23px;height:23px}.mode-dual .carousel-controls .carousel-play{margin:2px 3px 0}}

/* Reference slides already include device frames; preserve them without a second shell. */
.device-stage.preframed .device-frame{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.device-stage.preframed .device-frame:before,.device-stage.preframed .computer-camera,.device-stage.preframed .computer-neck,.device-stage.preframed .computer-foot{display:none}
.device-stage.preframed .device-screen{aspect-ratio:auto;border-radius:0;background:transparent;overflow:visible}
.device-stage.preframed .screen-image,.device-stage.preframed .screen-image img{height:auto;background:transparent}

/* Keep mobile UI readable in single-device and mixed-device case galleries. */
.showcase-card.has-phone{grid-template-columns:minmax(0,1.65fr) minmax(220px,1fr)}
.phone-lane{width:280px;max-width:100%}
.mode-dual{flex-wrap:wrap;gap:28px 20px;padding:24px 16px}
.mode-dual .desktop-lane{flex:1 1 300px;width:300px;max-width:100%}
.mode-dual .phone-lane{flex:0 1 280px;width:280px;max-width:100%;min-width:0}
.mode-dual .phone-frame{padding:10px 7px;border-radius:25px}
.mode-dual .phone-frame .device-screen{border-radius:17px}
.mode-dual .carousel-controls{gap:6px}
.mode-dual .carousel-controls .carousel-play{flex-basis:auto;margin:0}
@media(min-width:761px) and (max-width:1150px){
 .showcase-card.has-phone{grid-template-columns:minmax(0,1.6fr) minmax(200px,1fr)}
 .mode-dual .carousel-controls button{width:28px;height:28px}
}
@media(max-width:760px){
 .showcase-card.has-phone{grid-template-columns:1fr}
 .mode-dual .desktop-lane{flex-basis:100%;width:100%}
 .phone-lane,.mode-dual .phone-lane{width:280px;max-width:100%}
 .mode-dual .carousel-controls button{width:28px;height:28px}
}

.device-stage.preframed .screen-image.cropped-media{position:relative;display:block;height:0;overflow:hidden;border-radius:12px}
.device-stage.preframed .cropped-media img{position:absolute;left:0;top:0;height:auto;transform-origin:top left}

/* Landscape game footage is presented on a Pad, without a desktop stand. */
.tablet-frame{width:100%;padding:12px 17px;border:2px solid #596070;border-radius:24px;background:linear-gradient(145deg,#343947,#161c28);box-shadow:inset 0 0 0 1px #111722,0 12px 25px #45536d24}
.tablet-frame:before{content:'';position:absolute;left:6px;top:calc(50% - 3px);width:5px;height:5px;border-radius:50%;background:#111722;box-shadow:inset 0 0 0 1px #536073}
.tablet-frame .device-screen{aspect-ratio:4/3;border-radius:10px;background:#101522}
.tablet-frame .screen-image img{background:#101522}

/* POS terminal: receipt slot and compact handheld casing. */
.pos-frame{width:100%;padding:50px 12px 38px;border:2px solid #4f5765;border-radius:26px 26px 34px 34px;background:linear-gradient(145deg,#3d4551,#202733);box-shadow:inset 0 0 0 1px #111722,0 12px 25px #45536d24}
.pos-frame:before{content:'';position:absolute;left:28px;right:28px;top:20px;height:8px;border-radius:5px;background:#101722;box-shadow:0 2px 0 #646c78}
.pos-frame:after{content:'POS';position:absolute;bottom:12px;left:0;right:0;color:#aeb8c8;text-align:center;font-size:11px;letter-spacing:3px}
.pos-frame .device-screen{aspect-ratio:9/16;border-radius:8px}

/* Business sections keep the original gallery layout and identify each field by text and color. */
.showcase-group-filters{display:flex;flex-wrap:wrap;gap:9px;margin:30px 0 18px}
.showcase-group-filters button{--group-accent:#7357c7;padding:10px 14px;border:1px solid #dce1ed;border-radius:7px;background:#fff;color:var(--group-accent);font-size:13px;line-height:1.5;text-align:left}
.showcase-group-filters button[aria-pressed=true]{background:var(--group-accent);border-color:var(--group-accent);color:#fff}
.showcase-group-filters button:hover{border-color:var(--group-accent)}
.technical-filter-panel{margin:0 0 32px;color:#69778e;font-size:12px}
.technical-filter-panel summary{cursor:pointer;width:fit-content;padding:8px 0}
.technical-filter-panel .timeline-filters{margin:12px 0 0}
.timeline-entries{gap:54px}
.showcase-business-group{min-width:0;scroll-margin-top:28px}
.showcase-group-heading{position:relative;inset:auto;z-index:auto;display:flex;align-items:center;gap:22px;margin:0 0 24px;padding:25px 28px;border:1px solid color-mix(in srgb,var(--group-accent) 18%,white);border-left:4px solid var(--group-accent);border-radius:12px;background:linear-gradient(110deg,var(--group-tint),#ffffff);backdrop-filter:none;box-shadow:none;width:auto;height:auto}
.showcase-group-number{font:500 37px/1 monospace;color:var(--group-accent);opacity:.7}
.showcase-group-intro{min-width:0;flex:1}
.showcase-group-heading h3{margin:0 0 7px;font-size:25px;line-height:1.4;color:var(--group-accent);letter-spacing:0}
.showcase-group-heading p{margin:0;color:#728097;font-size:13px;line-height:1.7}
.showcase-group-count{font-size:12px;color:var(--group-accent);white-space:nowrap}
.showcase-group-projects{display:grid;gap:24px}
.showcase-business-group .timeline-marker:before{background:var(--group-accent);border-color:var(--group-tint)}
.showcase-business-group .timeline-marker:after{background:color-mix(in srgb,var(--group-accent) 20%,white)}
.showcase-business-group .timeline-type{color:var(--group-accent);background:var(--group-tint)}
.showcase-business-group .showcase-visual{background:linear-gradient(145deg,var(--group-tint),#f5f7fb)}
.showcase-business-group .timeline-card:hover{border-color:color-mix(in srgb,var(--group-accent) 45%,white)}
.showcase-business-group .carousel-controls button,.showcase-business-group .timeline-visit{color:var(--group-accent)}
.showcase-business-group .subproject-tabs button[aria-pressed=true]{background:var(--group-accent);border-color:var(--group-accent)}
@media(max-width:760px){.showcase-group-heading{padding:20px 16px;gap:13px;flex-wrap:wrap}.showcase-group-number{font-size:29px}.showcase-group-heading h3{font-size:21px}.showcase-group-heading p{font-size:12px}.showcase-group-count{margin-left:42px}.showcase-group-filters{gap:7px}.showcase-group-filters button{font-size:12px;padding:9px 10px}.timeline-entries{gap:38px}}
