.portfolio-section { scroll-margin-top: calc(var(--header-height, 75px) + 1rem); }
.portfolio-section > h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.055em; }
.cap-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; }
.cap-tile {
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
    min-height: 16rem; padding: clamp(1rem, 3vw, 1.75rem); border-radius: 1.15rem; border: 1px solid var(--edge);
    grid-column: span 5; background: radial-gradient(ellipse at 90% 20%, var(--glow), #111b2e 73%);
    color: #f4f7ff; text-decoration: none;
}
.cap-tile:hover, .cap-tile:focus-visible { border-color: var(--accent); color: #fff; }
.cap-software, .cap-support { grid-column: span 7; }
.cap-software { --edge: #64619a; --glow: #423363; --accent: #d5cbff; }
.cap-cloud { --edge: #38617d; --glow: #174b64; --accent: #b0ecff; }
.cap-api { --edge: #806048; --glow: #5c3722; --accent: #ffdaab; }
.cap-support { --edge: #3e7166; --glow: #225e50; --accent: #b3f9dc; }
.cap-copy { max-width: 28rem; width: 100%; position: relative; }
.cap-copy h3 { margin-bottom: .35rem; font-size: clamp(1.3rem, 3vw, 1.9rem); }
.cap-copy p { color: #e0e8f8; margin: 0 0 .65rem; max-width: 35ch; }
.cap-copy > span { color: var(--accent); font-weight: 750; }
.cap-copy i { font-style: normal; display: inline-block; }
.cap-art {
    position: absolute; top: .85rem; right: 1rem; width: clamp(5.5rem, 15vw, 10rem); height: 5.1rem; color: var(--accent);
    transform: rotate(-8deg); opacity: .7; pointer-events: none;
}
.cap-window, .cap-device { position: absolute; border: 1px solid currentColor; border-radius: .5rem; display: grid; align-content: center; gap: .4rem; padding: .5rem; background: #31284e; }
.cap-window { inset: 8% 15% 10% 2%; }
.cap-device { inset: 28% 4% 0 67%; }
.cap-window i, .cap-device i { height: .24rem; background: currentColor; border-radius: 1rem; opacity: .72; }
.cap-stack { display: grid; gap: .45rem; padding-inline: 12%; transform: skewY(-8deg); }
.cap-stack i { height: 1.1rem; border: 1px solid currentColor; border-radius: .25rem; background: #3e8ca45c; box-shadow: 0 .25rem 0 #112838; }
.cap-wire { display: flex; align-items: center; justify-content: space-between; margin-top: 1.6rem; border-bottom: 1px dashed currentColor; height: 1px; }
.cap-wire i, .cap-wire b { background: #513425; border: 1px solid currentColor; border-radius: 50%; width: 1.5rem; height: 1.5rem; display: grid; place-content: center; }
.cap-radar { margin-inline: auto; width: 4.75rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; background: conic-gradient(#97ffcd80, transparent 30%), repeating-radial-gradient(transparent 0 19%, #abffe663 20% 22%, transparent 23% 31%); }
@media (prefers-reduced-motion: no-preference) {
    .cap-art, .cap-copy i { transition: transform .35s ease, opacity .35s ease; }
    .cap-tile:is(:hover, :focus-visible) .cap-art { transform: rotate(0) scale(1.12); opacity: 1; }
    .cap-tile:is(:hover, :focus-visible) .cap-copy i { transform: translate(.18rem, -.18rem); }
}
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-feature, .project-card { border: 1px solid #3b526b; border-radius: 1.2rem; overflow: hidden; background: #122035; }
.project-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.project-copy { padding: clamp(1.1rem, 3vw, 2rem); }
.project-copy h3 { font-size: clamp(1.5rem, 3.25vw, 2.7rem); margin: 0 0 .5rem; line-height: 1.06; }
.project-copy p:not(.eyebrow) { color: #c9d8ea; }
.project-copy .button { margin: .4rem 0 .9rem; }
.project-copy .text-link { display: block; }
.project-art { position: relative; min-height: 225px; display: grid; place-content: center; overflow: hidden; }
.project-sorter { min-height: 270px; background: radial-gradient(ellipse at 55% 65%, #24594e, #102b32 78%); }
.project-sheet, .project-label { border: 1px solid #6eb8a7; background: #163d3b; color: #e8fff4; border-radius: .65rem; box-shadow: 0 1rem 2rem #04181488; }
.project-sheet { min-width: min(230px, 59vw); padding: .85rem; transform: rotate(7deg) translate(12%, 14%); }
.project-sheet div { display: grid; grid-template-columns: .65fr 1fr .55fr; gap: .3rem; font-size: .75rem; padding-top: .35rem; border-top: 1px solid #467669; }
.project-label { position: absolute; top: 24%; left: 12%; z-index: 1; display: grid; padding: .6rem .75rem; transform: rotate(-9deg); }
.project-label span, .project-label small { font-size: .7rem; }
.miru-art { background: radial-gradient(ellipse at 50% 86%, #f3cad7, #b384ab 80%); color: #482b4d; }
.miru-phone {
    width: 10.8rem; padding: .55rem .75rem .8rem; border: 3px solid #59395e; border-radius: 1.4rem; display: grid; gap: .4rem;
    background: #fff4f8; transform: rotate(-7deg); box-shadow: 1rem 1rem 2rem #4b27475e;
}
.miru-phone > b { color: #703662; font: italic 700 1.4rem Georgia, serif; }
.miru-notch { width: 1.6rem; height: .2rem; border-radius: 1rem; background: #a4789e; margin-inline: auto; }
.miru-week { display: grid; border-radius: .55rem; padding: .45rem .55rem; background: #f3d7e8; }
.miru-week small { font-size: .54rem; letter-spacing: .1em; font-weight: 750; }
.miru-routine { font-size: .72rem; border-bottom: 1px solid #edd8e2; }
.miru-routine span { margin-right: .25rem; color: #895380; }
.art-caption { position: absolute; bottom: .5rem; right: .65rem; padding: .15rem .4rem; border-radius: .25rem; color: #3c223e; background: #fff1f9; font-size: .62rem; }
.dispatch-art { background: radial-gradient(ellipse at 50% 78%, #425e9b, #1e2c50 78%); }
.dispatch-mini, .dispatch-mini-phone { display: grid; padding: .75rem; border: 1px solid #8dace6; border-radius: .6rem; background: #182947; box-shadow: 0 .8rem 1.5rem #0a122680; }
.dispatch-mini { transform: translateX(-14%); }
.dispatch-mini-phone { transform: translate(28%, -20%) rotate(8deg); background: #244073; }
.dispatch-mini small, .dispatch-mini-phone small, .dispatch-mini span { font-size: .68rem; color: #bfddff; }
@media (max-width: 750px) {
    .cap-tile { grid-column: span 6; }
}
@media (max-width: 570px) {
    .cap-tile { grid-column: 1 / -1; min-height: 14.5rem; }
    .project-grid, .project-feature { grid-template-columns: 1fr; }
    .project-sorter { min-height: 220px; }
}
.project-local { border-color: #65785b; }
#local-first-project { scroll-margin-top: calc(var(--header-height, 75px) + 1rem); }
.local-features { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.local-features li { color: #dcf3d0; background: #243d36; border: 1px solid #526f5e; border-radius: 1rem; padding: .23rem .7rem; font-size: .78rem; }
.local-art { min-height: 275px; padding: 1rem 1rem 1.65rem; background: radial-gradient(ellipse at 55% 52%, #acba78, #435a41); }
.local-window { width: min(22rem, 100%); background: #f8f4e5; color: #25362a; border: 1px solid #cbd4a9; border-radius: .8rem; padding: .75rem; box-shadow: 0 .9rem 2rem #1b2d2466; }
.local-window-head { display: flex; justify-content: space-between; gap: .75rem; align-items: center; border-bottom: 1px solid #cbd4ba; padding-bottom: .35rem; }
.local-window-head strong { font: 700 1.1rem Georgia, serif; }
.local-window-head span { color: #426147; font-size: .7rem; }
.local-window-title { font: 700 1.2rem Georgia, serif; margin: .55rem 0; }
.local-products { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.local-products > div { display: grid; gap: .18rem; font-size: .72rem; line-height: 1.25; }
.local-products small { color: #425c48; }
.local-products i { display: grid; place-items: center; height: 3rem; border-radius: .35rem; }
.local-produce { background: #e5d79c; }
.local-ceramic { background: #e5c7af; }
.local-products i::before { content: ""; display: block; }
.local-produce::before { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #a94f38; box-shadow: .72rem .2rem 0 #c08032, -.62rem .25rem 0 #775228; }
.local-ceramic::before { width: 1.6rem; height: 1.2rem; border-radius: .2rem .2rem .75rem .75rem; background: #8a5347; border-top: .18rem solid #b67d68; }
.local-caption { position: absolute; bottom: .4rem; right: .65rem; color: #f4f7e7; font-size: .68rem; }
.cap-tile.cap-ai { grid-column: 1 / -1; --edge: #7661a4; --glow: #4b3272; --accent: #e9d3ff; }
.cap-ai-flow { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.cap-ai-flow i { display: grid; place-items: center; width: 29%; aspect-ratio: 1; border-radius: .5rem; border: 1px solid currentColor; background: #513879; font-style: normal; }
.ai-exhibit { background: radial-gradient(ellipse at 50% 10%, #3b275e, #141c32 80%); border-color: #645180; }
.ai-exhibit figcaption { background: #201b37; }
.ai-exhibit figcaption strong { color: #e9d3ff; }
.ai-flow { margin: 0; padding: clamp(1rem, 3vw, 2rem); list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ai-flow li { padding: 1rem; background: #191c34; border: 1px solid #68518c; border-radius: .75rem; display: grid; align-content: start; gap: .5rem; }
.ai-flow li p { margin: 0; color: #d6d3ea; }
.ai-icon { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: .5rem; color: #f2dcff; background: #513879; }
@media (max-width: 650px) { .ai-flow { grid-template-columns: 1fr; } }
.project-facts { padding-left: 1.2rem; color: #c9d8ea; }
.project-facts li + li { margin-top: .55rem; }
.project-card[id] { scroll-margin-top: calc(var(--header-height, 75px) + 1rem); }
