.project-card { display:flex; flex-direction:column; }
.portfolio-visual {
  display:grid; place-items:center; height:auto; aspect-ratio:1.56; overflow:hidden; position:relative;
  border-bottom:1px solid var(--line); container-type:inline-size;
}
.pepper-stage { background:radial-gradient(ellipse at 44% 47%,#716c58 0%,#45483c 47%,#202822 100%); }
.tsuki-stage { background:radial-gradient(ellipse at 55% 43%,#6d4f81 0%,#48365d 50%,#241d37 100%); }
.laptop { width:86%; position:relative; transform:translateY(1%); }
.laptop-lid {
  width:88%; margin-inline:auto; padding:1.25% 1.25% 1.6%; background:#101014; position:relative;
  border:1px solid #777780; border-bottom:0; border-radius:3.1% 3.1% 1% 1% / 5% 5% 1% 1%;
  box-shadow:0 12px 28px #08070e8c; overflow:hidden;
}
.laptop-lid::after { content:""; position:absolute; width:1.8%; aspect-ratio:1; border-radius:50%; background:#2b2b37; inset:.5% auto auto 49.1%; }
.screen { isolation:isolate; width:100%; height:auto; aspect-ratio:1.66; overflow:hidden; position:relative; color:#f3efe5; }
.laptop-base {
  position:relative; height:2.25cqw; border-radius:0 0 7cqw 7cqw / 0 0 1.65cqw 1.65cqw;
  background:linear-gradient(#7f7e85,#a9a8ac 25%,#474750 70%,#25242d); box-shadow:0 2.8cqw 4.7cqw #08070ebb;
}
.laptop-base::before { content:""; position:absolute; width:15%; height:43%; inset:0 42.5% auto; background:#24242d; border-radius:0 0 24px 24px; }
.pepper-screen {
  display:grid; align-items:center;
  background:linear-gradient(90deg,#101311 4%,#101311e8 26%,#101311ab 43%,#1013110a 82%),url('assets/pepper-screen.webp') center 82% / cover no-repeat;
}
.pepper-menu {
  position:absolute; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between;
  gap:5%; height:10%; padding:0 5%; background:#181a16; color:#f1ede0; font-size:1.45cqw;
}
.pepper-menu img { width:20%; height:auto; aspect-ratio:auto; object-fit:contain; background:transparent; }
.pepper-screen-copy { padding-left:6%; padding-top:6%; display:grid; justify-items:start; line-height:1.14; gap:1.6cqw; }
.mock-label { font-size:1.8cqw; letter-spacing:.14em; text-transform:uppercase; color:#e1cc9d; font-weight:700; }
.pepper-screen-copy strong { font-size:8.2cqw; line-height:.82; letter-spacing:-.055em; text-transform:uppercase; }
.mock-description { font-size:1.76cqw; }
.mock-button { color:#191c16; background:#e5ddc9; padding:.8cqw 1.4cqw; font-size:1.6cqw; font-weight:700; }
.tsuki-screen { background:radial-gradient(ellipse at 50% 24%,#685478 0%,#2d233e 30%,#161328 61%,#100d1d 92%); }
.tsuki-screen img { background:transparent; display:block; aspect-ratio:auto; object-fit:contain; position:absolute; }
.tsuki-screen .screen-moon { width:15%; height:auto; top:9%; left:42.5%; filter:drop-shadow(0 0 2.2cqw #ebd1ffb0); }
.tsuki-screen .screen-cloud { width:70%; height:auto; }
.cloud-back { top:1%; left:26%; opacity:.38; transform:rotate(-6deg); }
.cloud-front { top:9%; left:0; opacity:.70; transform:rotate(5deg); }
.tsuki-screen-copy { position:absolute; top:41%; inset-inline:0; display:grid; justify-items:center; text-align:center; }
.tsuki-screen-copy strong { font:400 8cqw/.95 Georgia,serif; letter-spacing:.15em; padding-left:.15em; color:#fff0d7; }
.screen-crescent { margin-top:1.3cqw; width:1.4cqw; aspect-ratio:1; border-radius:50%; box-shadow:-.33cqw .16cqw 0 #e4b869; transform:rotate(-19deg); }
.tsuki-screen-copy img { width:22%; height:auto; position:static; margin-top:1cqw; }
.screen-tour { position:absolute; bottom:6%; left:50%; translate:-50%; padding:.45cqw 1.4cqw; font-size:1.45cqw; color:#fff0d7; border:1px solid #e8cf9c90; border-radius:2cqw; white-space:nowrap; }
.project-gallery { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0; padding:0 27px; }
.project-gallery:last-child { padding-bottom:24px; }
.project-gallery figure { margin:0; min-width:0; }
.project-gallery img { width:100%; height:auto; object-fit:cover; aspect-ratio:1; border-radius:7px; border:1px solid var(--line); }
.project-gallery figcaption { margin-top:7px; color:var(--muted); font-size:0.75rem; line-height:1.3; }
.project-social {
  display:inline-flex; align-self:flex-start; align-items:center; gap:9px; padding:9px 11px; min-height:42px;
  margin:20px 27px 24px; border:1px solid var(--line); border-radius:7px; color:var(--accent); font-size:0.8125rem; font-weight:650;
}
.project-social:hover { border-color:var(--accent); background:var(--surface); }
.project-social .arrow { margin-left:3px; }
@media (max-width:420px) {
  .project-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; padding-inline:17px; }
  .project-text { padding-inline:17px; }
  .project-social { margin-inline:17px; }
}
.demo-open { margin-top:18px; }
