.logic-gallery{padding-top:24px;padding-bottom:var(--space-section);scroll-margin-top:24px}.logic-gallery-heading{justify-content:space-between;align-items:end;gap:48px;margin-bottom:18px;display:flex}.logic-gallery-heading h2{margin-bottom:0}.logic-gallery-heading>p{max-width:370px;margin-bottom:3px;font-size:15px}.logic-gallery-note{letter-spacing:.04em;color:var(--muted);font-size:11px;font-weight:500}.logic-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;margin-top:30px;display:grid}.logic-gallery-card{border:1px solid var(--line);background:#fffdf9;border-radius:24px;min-width:0;padding:24px}.logic-gallery-card-copy{gap:15px;min-height:128px;display:flex}.logic-gallery-number{color:#8f6042;background:#f3e8dd;border-radius:50%;flex:0 0 38px;place-items:center;width:38px;height:38px;font-size:12px;font-weight:600;display:grid}.logic-gallery-card:nth-child(3n+2) .logic-gallery-number{color:#71608c;background:#eee8f7}.logic-gallery-card:nth-child(3n) .logic-gallery-number{color:#426b67;background:#e5efeb}.logic-gallery-card h3{margin:2px 0 9px;font-size:27px}.logic-gallery-card p{max-width:630px;margin-bottom:22px;font-size:14px;line-height:1.65}.logic-gallery-screens{gap:18px;display:grid}.logic-gallery-screens figure{min-width:0;margin:0}.logic-gallery-image{background:var(--paper);cursor:zoom-in;text-align:left;border:1px solid #e7e3da;border-radius:14px;width:100%;padding:0;transition:border-color .2s,box-shadow .2s;display:block;position:relative;overflow:hidden}.logic-gallery-image>img{width:100%;height:auto;display:block}.logic-gallery-image:hover{border-color:#bdb2a4;box-shadow:0 9px 24px #3e302011}.logic-gallery-enlarge{color:var(--ink);background:#fffdf9ed;border:1px solid #ddd8cd;border-radius:20px;align-items:center;gap:7px;padding:7px 10px;font-size:10px;display:flex;position:absolute;bottom:10px;right:10px;box-shadow:0 2px 6px #4030200a}.logic-gallery-shapes{grid-column:1/-1}.logic-gallery-shapes .logic-gallery-card-copy{min-height:auto}.logic-gallery-shapes .logic-gallery-screens{grid-template-columns:repeat(3,minmax(0,1fr))}.logic-gallery-screens figcaption{color:#66557f;text-align:center;margin:13px 0 0;font-size:13px;font-weight:600}.logic-gallery-next{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:24px;margin-top:32px;padding:24px 0;display:flex}.logic-gallery-next p{margin:0}.logic-gallery-dialog{background:var(--paper);width:min(1240px,100vw - 32px);max-width:none;max-height:calc(100dvh - 32px);color:var(--ink);border:1px solid #ddd8cd;border-radius:22px;padding:0;box-shadow:0 25px 100px #15132144}.logic-gallery-dialog::backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#292532b8}.logic-gallery-dialog-inner{padding:22px}.logic-gallery-dialog header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;display:flex}.logic-gallery-dialog h2{margin:7px 0 0;font-size:28px}.logic-gallery-icon-button{width:44px;height:44px;color:var(--ink);background:#fffdf8;border:1px solid #ddd8cd;border-radius:50%;flex:0 0 44px;justify-content:center;align-items:center;display:inline-flex}.logic-gallery-icon-button:hover{background:#eee9df}.logic-gallery-large-image{object-fit:contain;border-radius:12px;width:100%;height:auto;max-height:calc(100dvh - 235px);display:block}.logic-gallery-dialog footer{justify-content:space-between;align-items:center;gap:24px;margin-top:18px;display:flex}.logic-gallery-dialog footer p{max-width:690px;margin:0;font-size:13px;line-height:1.6}.logic-gallery-dialog nav{flex-shrink:0;align-items:center;gap:16px;display:flex}.logic-gallery-dialog nav span{text-align:center;min-width:40px;font-size:12px}@media (max-width:1000px){.logic-gallery-heading{display:block}.logic-gallery-heading>p{max-width:600px;margin:20px 0 0}.logic-gallery-card{padding:18px}.logic-gallery-card-copy{min-height:148px}.logic-gallery-enlarge{padding:6px 8px;font-size:9px}}@media (max-width:700px){.logic-gallery-grid{grid-template-columns:minmax(0,1fr);gap:20px}.logic-gallery-card-copy{min-height:auto}.logic-gallery-shapes .logic-gallery-screens{grid-template-columns:minmax(0,1fr);gap:24px}.logic-gallery-shapes{grid-column:auto}.logic-gallery-next{flex-direction:column;align-items:start;gap:12px}.logic-gallery-dialog{border-radius:16px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.logic-gallery-dialog-inner{padding:14px}.logic-gallery-dialog h2{font-size:22px}.logic-gallery-dialog footer{flex-direction:column;align-items:stretch;gap:16px}.logic-gallery-dialog nav{justify-content:center}.logic-gallery-large-image{max-height:calc(100dvh - 285px)}}@media (prefers-reduced-motion:reduce){.logic-gallery-image{transition:none}}
