
.case-page>.foboh-projects{max-width:780px;margin-top:36px}.foboh-projects h2{max-width:580px;margin:0 auto 16px;color:#999}
.project-segments{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:5px;background:#ededed;border-radius:14px;isolation:isolate;max-width:580px;margin:0 auto 30px}
.project-segments button{position:relative;z-index:1;border:0;background:none;color:#777;font:13px/1.4 ui-sans-serif,system-ui,sans-serif;padding:12px 8px;border-radius:10px;cursor:pointer;transition:color .3s}
.project-segments button[aria-selected="true"]{color:#111}.project-segments button:hover{color:#111}
.segment-selection{position:absolute;left:5px;top:5px;bottom:5px;width:calc((100% - 18px)/3);border-radius:10px;background:#fff;box-shadow:0 2px 5px #00000010,0 1px 2px #00000008;transform:translateX(calc(var(--selected,0) * (100% + 4px)));transition:transform .58s cubic-bezier(.22,1,.36,1);z-index:0}
.ipad-stage{position:relative;height:auto;aspect-ratio:1.3;overflow:hidden;padding:28px 36px 42px;background:#f7f7f7;border-radius:18px}
.ipad-slide{position:absolute;inset:28px 36px 42px;display:grid;place-items:center}
.ipad-edge{position:relative;width:100%;aspect-ratio:1.36;padding:13px;background:linear-gradient(145deg,#242424,#090909 50%,#202020);border:2px solid #b9b9b9;border-radius:30px;box-shadow:0 2px 0 #666,0 20px 25px -14px #0005,0 4px 7px #0002}
.ipad-edge::before{content:'';position:absolute;left:-4px;top:17%;width:2px;height:30px;background:#999;border-radius:2px}.ipad-edge::after{content:'';position:absolute;right:12%;top:-4px;width:34px;height:2px;background:#aaa;border-radius:2px}
.ipad-screen{width:100%;height:100%;border-radius:17px;background-color:#fff;background-image:conic-gradient(#e4e4e4 25%,#fff 0 50%,#e4e4e4 0 75%,#fff 0);background-size:24px 24px}
.ipad-camera{position:absolute;left:5px;top:50%;width:4px;height:4px;border-radius:50%;background:#14232e;box-shadow:inset 0 0 0 1px #303b43}
.foboh-projects .foboh-project-description{max-width:580px;margin:22px auto 0;color:#777;min-height:46px}
@media(max-width:620px){.project-segments{gap:2px;padding:4px;border-radius:11px;margin-bottom:20px}.project-segments button{font-size:11px;padding:11px 5px}.segment-selection{left:4px;top:4px;bottom:4px;width:calc((100% - 12px)/3);transform:translateX(calc(var(--selected,0) * (100% + 2px)))}.ipad-stage{aspect-ratio:1.22;padding:20px 18px 28px;border-radius:12px}.ipad-slide{inset:20px 18px 28px}.ipad-edge{border-radius:20px;padding:9px}.ipad-screen{border-radius:10px;background-size:18px 18px}.ipad-camera{left:3px;width:3px;height:3px}.foboh-projects .foboh-project-description{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.segment-selection,.project-segments button{transition:none}}

/* Compact segmented controls, sized to the labels rather than the column. */
.project-segments{grid-template-columns:repeat(3,auto);width:fit-content;max-width:100%;margin-left:0;margin-right:0;padding:4px;gap:2px;border-radius:10px}
.project-segments button{font-size:11px;padding:8px 10px;border-radius:7px}
.segment-selection{left:0;top:4px;bottom:4px;width:var(--tab-width,0px);border-radius:7px;transform:translateX(var(--tab-x,4px))}
.home-foboh-projects{margin-top:24px}.home-foboh-projects h2{font-size:12px;margin-bottom:10px}.home-foboh-projects .ipad-stage{aspect-ratio:1.3}.home-foboh-projects .foboh-project-description{margin-top:16px;min-height:46px}
@media(max-width:620px){.project-segments button{padding:8px 6px;font-size:10px}.segment-selection{transform:translateX(var(--tab-x,4px));width:var(--tab-width,0px)}.home-foboh-projects .ipad-stage{aspect-ratio:1.22}}

/* The device matches the drawing board; extra transparent space holds its shadow. */
.foboh-projects .ipad-stage{width:min(812px,calc(100vw - 16px));max-width:none;left:auto;margin-left:calc(50% - min(406px,calc(50vw - 8px)));transform:none;background:transparent;border-radius:0;padding:20px 16px 40px}
.foboh-projects .ipad-slide{inset:20px 16px 40px}

.foboh-projects .foboh-project-description,.home-foboh-projects .foboh-project-description{margin:0 auto 12px;min-height:0}
.foboh-projects .project-segments{margin-bottom:14px}

/* A quiet, compact segmented control with a softly raised selection. */
.foboh-projects .project-segments{background:#f1f1f1;border:1px solid #e8e8e8;border-radius:12px;padding:4px;gap:2px;margin-bottom:16px;box-shadow:inset 0 1px 2px #00000003}
.foboh-projects .project-segments button{font-size:12px;line-height:18px;letter-spacing:-.01em;padding:7px 12px;color:#858585;border-radius:8px;transition:color .25s cubic-bezier(.22,1,.36,1)}
.foboh-projects .project-segments button[aria-selected="true"]{color:#222}.foboh-projects .project-segments button:hover{color:#333}
.foboh-projects .segment-selection{top:4px;bottom:4px;border-radius:8px;background:#fff;box-shadow:0 1px 3px #0000000d,0 3px 8px #00000005;transition:transform .55s cubic-bezier(.22,1,.36,1),width .55s cubic-bezier(.22,1,.36,1)}
.foboh-projects .project-segments button:focus-visible{outline:1px solid #999;outline-offset:-2px}
@media(max-width:620px){.foboh-projects .project-segments button{font-size:10px;line-height:15px;padding:7px 6px}}
@media(prefers-reduced-motion:reduce){.foboh-projects .segment-selection,.foboh-projects .project-segments button{transition:none}}

/* Align the controls with the reading column and center the wider device. */
.case-page>.foboh-projects .project-segments{margin-left:max(0px,calc((100% - 580px)/2));margin-right:0}
.case-page>.foboh-projects .foboh-project-description{max-width:580px;margin-left:auto;margin-right:auto;text-align:left}
.home-foboh-projects{margin-top:16px}

/* Give mobile previews more screen area and usable tab targets. */
@media(max-width:620px){.foboh-projects .ipad-stage{width:100%;margin-left:0;padding:12px 0 24px;aspect-ratio:1.3}.foboh-projects .ipad-slide{inset:12px 0 24px}.foboh-projects .ipad-edge{padding:7px;border-radius:18px}.foboh-projects .project-segments{width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}.foboh-projects .project-segments button{font-size:12px;line-height:16px;min-height:44px;padding:8px 4px}.foboh-projects .ipad-screen{border-radius:9px}}

/* Let the mobile tablet determine its own height and keep its shadow intact. */
@media(max-width:620px){.foboh-projects .ipad-stage,.home-foboh-projects .ipad-stage{width:100%;max-width:100%;margin-left:0;aspect-ratio:auto;height:auto;overflow:visible;padding:12px 6px 28px}.foboh-projects .ipad-slide{position:relative;inset:auto;width:100%;min-width:0}.foboh-projects .ipad-edge{width:100%;max-width:100%;min-width:0;box-shadow:0 2px 0 #666,0 12px 18px -12px #0004,0 3px 5px #0002}}
