.case-list,.case-process{margin:20px 0 28px;padding-left:22px;color:var(--muted);font-size:var(--text-body);line-height:var(--text-body-leading)}
.case-list li,.case-process li{padding-left:4px;margin-bottom:12px}
.case-roles{margin:24px 0}
.case-roles>div{padding:20px 0;border-top:1px solid var(--line)}
.case-roles dt{font-size:var(--text-label-small);line-height:1.5;font-weight:500;color:var(--fg)}
.case-roles dd{margin:8px 0 0;font-size:var(--text-body);line-height:var(--text-body-leading);color:var(--muted)}
.case-figure{margin:28px 0 40px}
.case-image-link{display:block;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden;cursor:zoom-in}
.case-figure img{display:block;width:100%;height:auto;max-height:720px;object-fit:contain}
.case-figure-compact img{max-height:460px}
.case-figure figcaption{margin-top:10px;text-align:center;font-size:var(--text-body-small);line-height:var(--text-body-small-leading);color:var(--muted)}
.case-image-dialog{width:min(1320px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--fg);overflow:auto}
.case-image-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
.case-image-dialog header{position:sticky;top:0;z-index:1;background:var(--bg);display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 20px;border-bottom:1px solid var(--line)}
.case-image-dialog p{font-size:var(--text-body-small);line-height:var(--text-body-small-leading);margin:0;color:var(--muted)}
.case-image-dialog button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:8px;background:var(--soft);color:var(--fg);font-size:24px;cursor:pointer}
.case-image-dialog img{display:block;width:100%;height:auto;background:#fff}
body:has(.case-image-dialog[open]){overflow:hidden}

.case-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;margin:28px 0 40px}
.case-gallery .case-figure{min-width:0;margin:0}
.case-gallery .case-image-link{aspect-ratio:4/5;display:flex;align-items:center;justify-content:center}
.case-gallery img{width:100%;height:100%;max-height:none;object-fit:contain}
#testes-em-papel .case-gallery .case-image-link,#resultado .case-gallery .case-image-link{aspect-ratio:1}
@media(min-width:1280px){.case-media-wide{width:min(880px,calc(100vw - 500px));position:relative;left:50%;transform:translateX(-50%)}}
@media(min-width:720px) and (max-width:999.98px){.case-media-wide{width:calc(100vw - 64px);position:relative;left:50%;transform:translateX(-50%)}}
@media(max-width:599.98px){.case-gallery{grid-template-columns:1fr;gap:24px}.case-gallery .case-image-link{aspect-ratio:auto}.case-gallery img{height:auto;max-height:540px}}

/* The original Figma artwork scrolls inside the device, independently of the case. */
.descomplica-preview{margin:32px 0 40px}
.macbook{position:relative;padding-bottom:8px;isolation:isolate}
.macbook-display{position:relative;width:92%;margin:0 auto;padding:18px 10px 21px;border:2px solid #56585d;border-radius:16px 16px 3px 3px;background:#161719;box-shadow:inset 0 0 0 1px #09090a}
.macbook-camera{position:absolute;top:6px;left:calc(50% - 2px);width:4px;height:4px;border-radius:50%;background:#29313b;box-shadow:inset 0 0 0 1px #080a0d}
.macbook-screen{aspect-ratio:16/10;overflow:auto;position:relative;border-radius:3px;background:#003818;color-scheme:dark;scrollbar-width:thin;scrollbar-color:#92969c #242628}
.macbook-screen img{display:block;width:100%;height:auto;max-height:none}
.macbook-screen:focus-visible{outline:2px solid #b6bdc7;outline-offset:3px}
.macbook-name{position:absolute;bottom:3px;left:0;width:100%;text-align:center;font-size:8px;line-height:14px;color:#a7a9ad;letter-spacing:.02em}
.macbook-base{position:relative;height:12px;border-radius:2px 2px 50% 50% / 2px 2px 100% 100%;background:linear-gradient(#c7c9cd 0%,#96999e 45%,#66696e 100%);box-shadow:0 8px 12px -8px #0006}
.macbook-base::before{content:"";position:absolute;top:0;left:41%;width:18%;height:4px;border-radius:0 0 8px 8px;background:#888b90;box-shadow:inset 0 -1px 1px #d3d5d8}
.descomplica-preview figcaption{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px;font-size:var(--text-body-small);line-height:var(--text-body-small-leading);color:var(--muted)}
.descomplica-expand{display:inline-flex;align-items:center;flex:none;gap:6px;min-height:36px;text-decoration:none;color:var(--fg)}
.descomplica-expand svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.descomplica-dialog{width:min(1000px,calc(100% - 32px));max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid var(--line);border-radius:14px;background:var(--bg);color:var(--fg);overflow:hidden}
.descomplica-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}
.descomplica-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;border-bottom:1px solid var(--line)}
.descomplica-dialog h2{font-size:var(--text-label-small);line-height:1.5;font-weight:500;letter-spacing:0;margin:0}
.descomplica-controls{display:flex;align-items:center;gap:8px;flex:none}
.descomplica-controls button{font:inherit;cursor:pointer;border:1px solid var(--line);background:var(--soft);color:var(--fg);border-radius:8px;min-height:36px}
.descomplica-controls .descomplica-zoom{padding:6px 10px;font-size:var(--text-body-small);white-space:nowrap}
.descomplica-zoom[aria-pressed=true]{background:var(--fg);color:var(--bg)}
.descomplica-controls .descomplica-close{width:36px;padding:0;border:0;font-size:24px;line-height:1}
.descomplica-controls button:focus-visible,.descomplica-viewer:focus-visible{outline:2px solid var(--fg);outline-offset:-3px}
.descomplica-viewer{max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;background:var(--soft);scrollbar-width:thin}
.descomplica-viewer img{display:block;width:100%;max-width:824px;height:auto;margin:0 auto}
.descomplica-viewer.is-zoomed img{width:1648px;max-width:none;margin:0}
body:has(.descomplica-dialog[open]){overflow:hidden}
@media(max-width:599.98px){.macbook-display{padding:12px 6px 17px;border-radius:10px 10px 2px 2px}.macbook-camera{top:4px;width:3px;height:3px}.macbook-name{font-size:6px;bottom:1px}.macbook-base{height:8px}.macbook-base::before{height:3px}.descomplica-preview figcaption{gap:12px}.descomplica-dialog header{padding:12px}.descomplica-dialog h2{font-size:14px}.descomplica-controls{gap:6px}}
@media print{.case-media-wide{width:100%;left:auto;transform:none}.macbook-display{width:100%;padding:0;border:0;background:none;box-shadow:none}.macbook-screen{aspect-ratio:auto;overflow:visible}.macbook-base,.macbook-camera,.macbook-name,.descomplica-expand{display:none}}
/* Live page replaces the low-resolution image; Safari chrome stays fixed. */
.macbook-screen{display:flex;flex-direction:column;overflow:hidden;container-type:inline-size;color-scheme:light}
.macos-menubar{height:clamp(13px,2.8cqw,24px);flex:none;display:flex;align-items:center;justify-content:space-between;gap:3%;padding:0 1.2%;font-family:Arial,sans-serif;font-size:clamp(5px,1.1cqw,9px);color:#28272b;background:#dedde2}
.macos-menubar>div{display:flex;align-items:center;gap:1.1em;white-space:nowrap}.macos-menubar strong{font-weight:700}.macos-menubar b{font-size:1.2em}.macos-battery{width:1.7em;height:.8em;border:1px solid currentColor;border-radius:2px;position:relative}.macos-battery::after{content:"";position:absolute;inset:1px;background:currentColor;border-radius:1px}
.safari-toolbar{flex:none;height:clamp(22px,5.4cqw,43px);display:flex;align-items:center;justify-content:space-between;gap:3%;padding:0 1.5%;color:#717176;background:linear-gradient(#f4f3f5,#e8e7eb);border-bottom:1px solid #ccc;font-size:clamp(8px,1.7cqw,14px);font-family:Arial,sans-serif}.safari-left,.safari-right{display:flex;align-items:center;gap:1em}.safari-lights{display:flex;gap:.4em;margin-right:.6em}.safari-lights i{width:.6em;height:.6em;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px #0002}.safari-lights i:nth-child(2){background:#febc2e}.safari-lights i:nth-child(3){background:#28c840}.safari-address{display:flex;justify-content:space-between;align-items:center;gap:1em;width:54%;background:#dddce0;border-radius:5px;padding:.4em .7em;font-size:clamp(5px,1.1cqw,9px);white-space:nowrap}.safari-address span:nth-child(2){overflow:hidden;text-overflow:ellipsis}.prototype-frame{display:block;width:100%;min-height:0;flex:1;border:0;background:#fff}.descomplica-expand{font:inherit;padding:0;border:0;background:none;cursor:pointer;min-height:36px}.descomplica-expand .link-label::after{transition:transform .38s cubic-bezier(.22,1,.36,1)}.descomplica-expand:hover .link-label::after,.descomplica-expand:focus-visible .link-label::after{transform:scaleX(1)}.descomplica-dialog{width:min(1320px,calc(100% - 32px))}.descomplica-viewer{overflow:hidden;height:calc(100dvh - 110px);max-height:900px;padding:0}.descomplica-viewer iframe{display:block;border:0;width:100%;height:100%;background:#fff}
.macos-apple{font-family:-apple-system,BlinkMacSystemFont,sans-serif}.safari-lock{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.2;flex:none}

/* Printed iterations in three columns; visual identity in pairs. */
@media(min-width:600px){#testes-em-papel .case-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
#identidade .case-gallery .case-image-link{aspect-ratio:auto;align-self:start}
#identidade .case-gallery img{height:auto;object-fit:contain}
#fundamentos .case-gallery .case-figure:last-child{grid-column:1/-1}
.iptu-spacing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.iptu-spacing-grid .case-figure{margin:0;min-width:0}
.iptu-spacing-grid .case-image-link{display:flex;align-items:center;justify-content:center;aspect-ratio:1;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.iptu-spacing-grid .case-figure img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0}
.iptu-spacing-grid figcaption{font-size:11px;line-height:1.5;margin-top:10px}
@media(max-width:599px){.iptu-spacing-grid{gap:8px}.iptu-spacing-grid figcaption{font-size:10px}.iptu-spacing-grid .case-image-link{border-radius:6px}}

/* Original Figma exports have transparent annotation areas with black text. */
.case-figure-original .case-image-link,.case-figure-original img{background:#fff}
