/* Showcase layer. Loaded after style.css and mobile.css. Uses only the existing palette tokens and type families. */
:root{--fs-small:16px;--fs-body:17px;--fs-read:19px;--fs-lead:20px;--fs-h3:clamp(24px,2vw,28px);--fs-h2:clamp(30px,2.8vw,42px);--fs-h1:clamp(42px,5vw,70px);--sp-section:56px;--sp-block:28px;--header-h:89px}

/* Home, first screen: the bench. Name and tool list on the left, the running tool on the right. */
.bench{display:grid;grid-template-columns:minmax(300px,.36fr) minmax(0,1fr);gap:40px;align-items:stretch;padding:32px 0 var(--sp-section);min-height:calc(100svh - var(--header-h))}
.bench-copy{display:flex;flex-direction:column;min-width:0}
.bench-copy h1{font-size:clamp(42px,5.1vw,80px);letter-spacing:-.045em}
.bench-role{font-size:var(--fs-body);color:var(--muted);margin-top:10px}
.bench-intro{font:var(--fs-lead)/1.4 var(--display);letter-spacing:-.01em;margin-top:18px;max-width:420px}
.bench-label{font:var(--fs-small) var(--mono);color:var(--muted);margin:32px 0 10px}
.bench-tabs{display:flex;flex-direction:column;gap:0;margin:0;flex-wrap:nowrap;border-top:1px solid var(--line)}
.bench-tab{display:grid;gap:2px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 14px 12px 16px;min-height:0;position:relative}
.bench-tab::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:transparent;transition:background var(--motion)}
.bench-tab:hover{transform:none;background:color-mix(in srgb,var(--panel) 70%,transparent)}
.bench-tab[aria-selected=true]{background:var(--panel);color:var(--ink)}
.bench-tab[aria-selected=true]::before{background:var(--accent)}
.bench-tab-name{font:var(--fs-lead)/1.25 var(--display);letter-spacing:-.01em}
.bench-tab-note{font-size:var(--fs-small);line-height:1.45;color:var(--muted)}
.bench-tab-note:empty{display:none}
.bench-links{display:flex;gap:24px;margin-top:auto;padding-top:24px;font:var(--fs-small) var(--mono)}
.bench-links a{text-decoration:none;border-bottom:1px solid var(--line)}
.bench-stage{display:flex;flex-direction:column;min-width:0;position:relative}
.bench-stage .live-frame{flex:1;display:flex;flex-direction:column}
.bench-stage .live-frame-body{flex:1;height:auto;min-height:clamp(520px,calc(100svh - var(--header-h) - 150px),820px)}
.bench-stage .live-frame figcaption{font-size:var(--fs-small)}
.bench-stage .live-project-link{align-self:flex-start}
.run-facade{position:absolute;inset:0;z-index:2;display:grid;place-items:center;overflow:hidden;background:var(--panel)}
.run-facade img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center;filter:saturate(.85)}
.run-facade .run-button{position:relative;z-index:1;box-shadow:0 18px 40px -18px #0008}

/* Home, second screen: the ring beside a text list of the same projects. */
.subject-band{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:48px;align-items:center;padding:var(--sp-section) 0;border-top:1px solid var(--line)}
.band-copy h2{font-size:var(--fs-h2);margin:10px 0 14px}
.band-copy .eyebrow{color:var(--muted)}
.band-lead{font-size:var(--fs-body);color:var(--muted);max-width:520px;margin-bottom:22px}
.band-subject{border-top:1px solid var(--line);padding:10px 0}
.band-subject summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:12px;font:var(--fs-lead) var(--display);cursor:pointer;min-height:44px}
.band-subject summary::-webkit-details-marker{display:none}
.band-subject summary>span:first-child{display:flex;align-items:center;gap:12px}
.band-subject .count{font:var(--fs-small) var(--mono);color:var(--muted)}
.band-subject ul{list-style:none;margin:4px 0 8px;padding:0 0 0 20px;columns:2 220px;column-gap:28px}
.band-subject li{break-inside:avoid}
.band-subject li a{display:flex;align-items:center;gap:10px;padding:6px 0;text-decoration:none;font-size:var(--fs-body)}
.band-subject li a:hover{color:var(--accent)}
.band-live{font:var(--fs-small) var(--mono);font-style:normal;color:var(--accent)}
.subject-band .navigator-top{justify-content:flex-end}
.subject-band .home-index{display:none!important}
.subject-band .navigator-bottom{justify-content:center;min-height:0}
.segment.is-live .segment-path{stroke:var(--accent);stroke-width:2}
.segment.is-live .segment-index{fill:var(--accent)}

/* Case studies: only work that cannot run here. A labeled figure is never shrunk below its reading size. */
.case.has-figure{grid-template-columns:1fr;gap:28px}
.case.has-figure .case-art{order:2}
.case.has-figure .case-text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px;align-items:start}
.case.has-figure .case-text>.eyebrow,.case.has-figure .case-text>h3{grid-column:1}
.case.has-figure .case-text>p{grid-column:1}
.case.has-figure .case-metrics{grid-column:2;grid-row:1/4;margin-top:0}
.case.has-figure .case-text>.button{grid-column:1}

/* Project pages: the thing itself comes first, facts in one strip under it. */
.project-header.is-live,.project-header.is-shots,.project-header.is-system{padding:28px 0 28px;align-items:start}
.project-live,.project-shots,.project-system{padding:0 0 var(--sp-block)}
.project-try{font-size:var(--fs-read);margin:0 0 14px;max-width:880px}
.project-try b{font-weight:600}
.project-live .live-frame-body{height:var(--frame-h,clamp(560px,calc(100svh - 170px),860px))}
.fact-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));column-gap:32px;border-bottom:1px solid var(--line);margin:0 0 8px}
.fact-strip>div{border-top:1px solid var(--line);padding:14px 0}
.fact-strip .stack-row{grid-column:span 2}
.shot-open{display:block;width:100%;padding:0;cursor:zoom-in;text-align:left}
.project-shots .browser-frame img{aspect-ratio:auto;max-height:78svh;object-fit:contain;background:var(--paper)}
.shot-strip{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:18px}
.shot-strip img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top;border:1px solid var(--line);border-radius:10px}
.shot-strip span{display:block;font-size:var(--fs-small);color:var(--muted);margin-top:8px}
.shots-reason{font-size:var(--fs-small);color:var(--muted);margin-top:14px}
.shot-dialog{width:min(1400px,100% - 32px);max-height:92svh;padding:0;border:1px solid var(--line);background:var(--panel);overflow:auto}
.shot-dialog::backdrop{background:#101814c0}
.shot-dialog img{width:100%;height:auto}
.shot-dialog .icon-button{position:sticky;top:12px;float:right;margin:12px;background:var(--paper)}
.project-system .story-figure-head{margin-bottom:24px}
.project-system .story-figure{padding:clamp(18px,3vw,44px)}
.live-narrow{display:none}

/* Figure-only cards show one number instead of an unlabeled diagram. */
.is-type{display:grid!important;align-content:center;justify-items:start;gap:6px;padding:18px 22px!important;background:color-mix(in srgb,var(--seg) 10%,var(--panel))!important}
.is-type b{font:clamp(30px,3vw,44px)/1 var(--display);letter-spacing:-.03em;color:var(--ink);font-weight:400}
.is-type small{font-size:var(--fs-small);line-height:1.4;color:var(--muted);max-width:28ch}
.index-thumb.is-type small,.neighbor-art.is-type small{display:none}
.index-thumb.is-type b,.neighbor-art.is-type b{font-size:22px}

@media(max-width:1100px){
.bench{grid-template-columns:1fr;min-height:0;gap:24px}
.bench-tabs{flex-direction:row;overflow-x:auto;scroll-snap-type:x mandatory;border-top:0;gap:10px;padding-bottom:6px}
.bench-tab{flex:0 0 auto;scroll-snap-align:start;border:1px solid var(--line);border-radius:12px;max-width:260px}
.bench-tab::before{display:none}
.bench-links{margin-top:18px}
.bench-stage .live-frame,.bench-stage .live-frame-body{flex:none}
.bench-stage .live-frame-body{min-height:0;height:70svh}
.subject-band{grid-template-columns:1fr}
.subject-band .navigator{order:-1;max-width:640px;margin:auto}
.case.has-figure .case-text{display:block}
}
@media(max-width:760px){
:root{--sp-section:36px;--header-h:124px}
.bench{padding-top:20px}
.bench-copy h1{font-size:44px}
.bench-intro{font-size:var(--fs-lead)}
.bench-label{margin-top:20px}
.bench-tab-note{display:none}
.bench-stage .live-frame-body{height:72svh}
.bench-stage:not(.is-running) .live-frame-body{height:auto;aspect-ratio:16/10}
.subject-band .navigator{display:none}
.band-subject ul{columns:1}
.case.has-figure .case-art{display:none}
.fact-strip{grid-template-columns:1fr 1fr}
.fact-strip .stack-row{grid-column:1/-1}
.project-live .live-frame-body{height:75svh}
.shot-strip{grid-template-columns:1fr 1fr;gap:12px}
}
@media(max-width:600px){
.project-live.is-wide-only .live-frame,.project-live.is-wide-only .project-try{display:none}
.project-live.is-wide-only .live-narrow{display:grid;gap:14px;text-decoration:none;color:inherit}
.live-narrow .browser-frame{margin:0}
.live-narrow .button{justify-self:start}
}
