/* Project pages only. Static links and a readable grid remain without JavaScript. */
body.site-subpage[data-site-layout="light-1"][data-site-page="arbeiten"][data-project-showroom] {
  --showroom-ink:#182840; --showroom-muted:#55647a; --showroom-line:#d5deea;
  --showroom-ease:cubic-bezier(.22,.7,.22,1);
  .case-index-page > section > .container,.case-library > .container,.case-feature > .container,
  .interactive-projects > .container,.project-tabs.container {width:calc(100% - 96px);max-width:1760px}
  .case-index-hero {padding-block:140px 56px;background:linear-gradient(120deg,#f5fbfc 5%,#f0f4fc 70%,#eeedf9);overflow:clip}
  .case-index-hero .breadcrumb {margin-bottom:36px}
  .site-portfolio-hero-grid {grid-template-columns:minmax(280px,.65fr) minmax(0,1.35fr);gap:5vw;align-items:center}
  .site-portfolio-intro h1 {font-size:clamp(48px,5.2vw,88px);line-height:1.02;letter-spacing:-.055em;max-width:8ch;margin:22px 0}
  .site-portfolio-intro p {font-size:17px;line-height:1.75;max-width:38ch;color:var(--showroom-muted)}
  .case-index-marquee {gap:7px 15px;margin-top:24px}
  .case-index-marquee span {font-size:11px;letter-spacing:.025em}
  .showroom-opening {position:relative;isolation:isolate;height:clamp(510px,41vw,690px);perspective:1600px;direction:ltr}
  .showroom-opening-window {position:absolute;display:block;width:55%;color:var(--showroom-ink);text-decoration:none;background:#fff;border:1px solid #bdcadb;border-radius:9px;box-shadow:0 35px 50px -28px #132a5c70,0 4px 12px #132a5c12;overflow:hidden;transition:transform 480ms var(--showroom-ease),box-shadow 480ms;transform-origin:center;outline-offset:6px}
  .showroom-opening-window:nth-child(1) {left:0;top:0;transform:rotateY(10deg) rotate(-6deg);z-index:1}
  .showroom-opening-window:nth-child(2) {right:0;top:13%;transform:rotateY(-9deg) rotate(5deg);z-index:2}
  .showroom-opening-window:nth-child(3) {left:18%;top:38%;transform:rotateY(3deg) rotate(-2deg);z-index:3}
  .showroom-opening-window:is(:hover,:focus-visible) {z-index:5;transform:translateY(-12px) rotate(0) scale(1.035);box-shadow:0 45px 70px -26px #132a5c80}
  .showroom-opening-window img {display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:contain;object-position:top;background:#e9edf3}
  .showroom-window-caption {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 15px;font-size:12px;line-height:1.5;background:#fff}
  .showroom-window-caption strong {font-weight:650}
  .showroom-window-caption > span {color:#405b93;font-size:11px;white-space:nowrap}
  .showroom-browser-bar {height:31px;display:flex;align-items:center;gap:13px;padding:0 15px;background:#f8fafc;border-bottom:1px solid #d7deea;direction:ltr;color:#57677e;font-size:11px;font-weight:500;line-height:1.3}
  .showroom-browser-bar i {width:5px;height:5px;background:#8c9aaf;border-radius:50%;box-shadow:8px 0 #b6c2d1,16px 0 #d6dfe8;margin-right:18px;flex:none}
  .showroom-browser-bar span {white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
  .showroom-browser-bar small {margin-left:auto;color:#65748a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50%;font-size:10px}
  .project-tabs {padding-block:28px;gap:8px;background:#fff}
  .project-tabs a {font-size:15px;font-weight:650;border-radius:8px;padding:16px 26px;border:1px solid var(--showroom-line);color:var(--showroom-muted);background:#f4f6fa;transition:background .25s,color .25s,box-shadow .25s}
  .project-tabs a[aria-selected=true] {background:var(--showroom-ink);border-color:var(--showroom-ink);color:#fff;box-shadow:inset 0 -3px #62d8ce}
  .case-library {padding-block:52px 74px;background:#f3f6fb;overflow:clip}
  .case-library-head {display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:28px}
  .case-library-head h2 {font-size:clamp(26px,2.3vw,40px);line-height:1.2;letter-spacing:-.035em;max-width:22ch;margin-bottom:0}
  .case-filter {display:flex;flex-wrap:wrap;gap:6px;max-width:630px;justify-content:flex-end}
  .case-filter button {min-height:44px;padding:11px 16px;border-radius:5px;border:1px solid transparent;background:transparent;color:#4f6079;font-size:13px;transition:background .2s,color .2s}
  .case-filter button.is-active {background:white;color:#243d6b;border-color:#b4c4df;box-shadow:0 3px 7px #263c6610}
  .case-filter button.is-active::after {content:'';display:block;height:2px;background:#5b5ccc;margin-top:4px}
  .showroom {position:relative;min-width:0;--showroom-width:72%}
  .showroom-controls {display:none;direction:ltr}
  .showroom.is-ready .showroom-controls {display:flex;justify-content:space-between;align-items:center;gap:18px;width:var(--showroom-width);margin:0 auto 12px;min-height:50px}
  .showroom-position {font-size:12px;line-height:1.5;color:#586882;font-variant-numeric:tabular-nums;letter-spacing:.04em}
  .showroom-controls > div {display:flex;gap:9px}
  .showroom-controls button {display:grid;place-items:center;width:48px;height:48px;min-width:48px;border:1px solid #bfcde1;background:#fff;border-radius:50%;color:#263f68;font-size:24px;line-height:1;cursor:pointer;transition:background .2s,transform .2s}
  .showroom-controls button:hover:not(:disabled) {background:#e2f1f3;transform:translateY(-2px)}
  .showroom-controls button:disabled {opacity:.35;cursor:default}
  .showroom-controls .showroom-playback {font-size:17px;background:#e8f3f5;border-color:#b3cdd3}
  .showroom-viewport {padding:25px 0 0;overflow:visible;perspective:2000px}
  .showroom-track {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
  .showroom-project {display:block;min-width:0;margin:0;background:none;border:0;align-self:start}
  .showroom-live-preview {display:block;position:relative;overflow:hidden;border:1px solid #bcc9da;border-radius:9px;color:var(--showroom-ink);text-decoration:none;background:#eef1f6;box-shadow:0 30px 50px -27px #152c5a70,0 3px 12px #11264812;transform:rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg));transition:transform 250ms var(--showroom-ease),box-shadow .3s;transform-origin:center}
  .showroom-live-preview img {display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:contain;object-position:top center;background:#eef1f6}
  .showroom-live-preview .showroom-browser-bar {height:36px}
  .showroom-live-preview::after {content:'↗';position:absolute;right:15px;bottom:15px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#fff;color:#22324d;box-shadow:0 3px 12px #0c22452b;font-size:20px}
  .showroom-info {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:28px;padding:28px 2px 22px;text-align:start;direction:inherit}
  .showroom-info[dir=rtl] {direction:rtl}
  .showroom-title > span {display:block;font-size:11px;line-height:1.6;letter-spacing:.06em;color:#52627d;margin:0 0 9px;text-transform:uppercase}
  .showroom-title h3 {font-size:clamp(25px,2.25vw,39px);line-height:1.12;letter-spacing:-.035em;margin:0;color:var(--showroom-ink);overflow-wrap:anywhere}
  .showroom-description > p {margin:0 0 12px;font-size:15px;line-height:1.7;color:var(--showroom-muted)}
  .showroom-description > .showroom-original-heading {font-weight:650;color:#253d60;margin-bottom:7px}
  .showroom-description a {display:inline-block;margin:9px 16px 0 0;padding:11px 17px;min-height:46px;border:1px solid #cad5e5;border-radius:5px;background:#fff;color:#283f70;font-size:13px;line-height:1.7;font-weight:650;text-decoration:none}
  .showroom-description a:hover {background:#e9f5f5;border-color:#92b7bd}
  .showroom.is-ready .showroom-track {grid-template-columns:minmax(0,1fr);gap:0;isolation:isolate;direction:ltr}
  .showroom.is-ready .showroom-project {grid-area:1/1;width:var(--showroom-width);margin-inline:auto;position:relative;visibility:hidden;opacity:0;pointer-events:none;transform:translateX(125%) scale(.75);transition:transform 550ms var(--showroom-ease),opacity 400ms ease,visibility 550ms;z-index:0}
  .showroom.is-ready .showroom-project.is-before {transform:translateX(-125%) scale(.75)}
  .showroom.is-ready .showroom-project:is(.is-previous,.is-next) {visibility:visible;opacity:.62;z-index:1}
  .showroom.is-ready .showroom-project.is-previous {transform:translateX(-78%) scale(.78) rotateY(9deg);transform-origin:right 28%}
  .showroom.is-ready .showroom-project.is-next {transform:translateX(78%) scale(.78) rotateY(-9deg);transform-origin:left 28%}
  .showroom.is-ready .showroom-project.is-active {visibility:visible;opacity:1;pointer-events:auto;transform:none;z-index:3}
  .showroom.is-ready .showroom-project .showroom-info {visibility:hidden;opacity:0;transition:opacity 350ms ease}
  .showroom.is-ready .showroom-project.is-active .showroom-info {visibility:visible;opacity:1}
  .showroom.is-ready .showroom-project:not(.is-active) .showroom-live-preview::after {display:none}
  .showroom-thumbnails {display:none}
  .showroom.is-ready .showroom-thumbnails {display:flex;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#9aadc9 #e6ecf6;width:var(--showroom-width);margin:0 auto;padding:15px 4px 20px;border-top:1px solid var(--showroom-line);scroll-padding:4px;direction:ltr}
  .showroom-thumb {flex:0 0 132px;display:flex;flex-direction:column;gap:9px;padding:7px;min-height:120px;background:transparent;border:1px solid transparent;border-radius:6px;text-align:start;color:#52627b;scroll-snap-align:start;cursor:pointer;transition:background .2s,border-color .2s}
  .showroom-thumb img {width:116px;height:72px;object-fit:contain;object-position:top;background:#e3e9f2;display:block;border-radius:3px;border:1px solid #d3dbe7}
  .showroom-thumb span {font-size:11px;line-height:1.4;white-space:normal;display:block}
  .showroom-thumb[aria-current=true] {background:#fff;border-color:#7282ba;color:#203855;box-shadow:inset 0 -3px #5d5ebf}
  .showroom-thumb:hover {background:#e9eef9;border-color:#adbed8}
  .showroom-thumb[hidden] {display:none}
  .case-filter-empty {padding:28px;border:1px solid var(--showroom-line);border-radius:6px}
  .case-filter-empty button {margin-top:16px;background:#fff;border:1px solid #aebed8;padding:12px 18px;display:block;border-radius:5px;color:#263e64}
  .showroom-empty .showroom-viewport,.showroom-empty .showroom-thumbnails {display:none!important}
  .interactive-projects {background:#f3f6fb;overflow:clip;padding-top:48px}
  .interactive-projects-head {max-width:1300px;margin-inline:auto}
  .interactive-projects-head h2 {font-size:clamp(28px,3vw,44px);letter-spacing:-.035em;line-height:1.18}
  .case-feature {padding-block:90px;background:#fff}
  .case-feature-grid {grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:6vw;align-items:center}
  .case-feature-media {box-shadow:0 35px 65px -28px #172b5350;transform:perspective(1700px) rotateY(4deg);border-radius:7px;border-color:#c8d3e2}
  .case-feature-media img {object-fit:contain;max-height:none}
  .case-feature-copy {display:block}
  .case-feature-copy h2 {font-size:clamp(27px,2.7vw,43px);line-height:1.2;letter-spacing:-.035em;margin:15px 0 25px}
  .case-feature-copy dl {display:block;margin-block:25px}
  .case-feature-copy dl > div {padding:13px 0;border-top:1px solid #e0e6ee}
  .case-feature-copy dd {margin:6px 0 0;font-size:14px;line-height:1.7}
  .case-feature-copy .button-row {gap:16px;flex-wrap:wrap}
  .showroom-status {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
  :is(.showroom,.showroom-opening,.case-filter,.project-tabs) :is(a,button):focus-visible {outline:3px solid #6555c5;outline-offset:4px}
  .showroom.is-offscreen .showroom-project {transition:none}
  /* Keep persistent helper controls in the outer margin of the project stage. */
  &.showroom-in-view .helfano-assistant__hint {visibility:hidden;pointer-events:none}
  &.showroom-in-view .google-review-badge {max-width:92px;padding:10px;gap:5px}
  &.showroom-in-view .google-review-badge__label,&.showroom-in-view .google-review-badge__stars {display:none}
  @media(min-width:1800px) {.showroom {--showroom-width:70%}.showroom-opening-window{width:53%}}
  @media(max-width:1050px) {
    .case-index-page > section > .container,.case-library > .container,.case-feature > .container,.interactive-projects > .container,.project-tabs.container {width:calc(100% - 56px)}
    .site-portfolio-hero-grid {grid-template-columns:.8fr 1.2fr;gap:24px}
    .site-portfolio-intro h1 {font-size:55px}.showroom-opening{height:460px}.showroom-opening-window{width:65%}
    .showroom-opening-window:nth-child(2){top:25%}.showroom-opening-window:nth-child(3){left:7%;top:46%}
    .case-library-head {align-items:start;flex-direction:column}.case-filter{justify-content:start;max-width:none}
    .showroom{--showroom-width:80%}.showroom-info{grid-template-columns:1fr 1.25fr;gap:22px}
    .case-feature-grid {grid-template-columns:1fr;gap:38px}.case-feature-media{transform:none}.case-feature-copy{max-width:720px}
  }
  @media(max-width:760px) {
    .case-index-page > section > .container,.case-library > .container,.case-feature > .container,.interactive-projects > .container,.project-tabs.container {width:calc(100% - 36px)}
    .case-index-hero{padding:110px 0 26px}.case-index-hero .breadcrumb{margin-bottom:28px}
    .site-portfolio-hero-grid{display:block}.site-portfolio-intro h1{font-size:52px;max-width:9ch;margin:16px 0}.site-portfolio-intro p{font-size:16px;line-height:1.65;max-width:40ch}
    .site-portfolio-intro .site-section-action{margin-top:20px}.case-index-marquee{display:none}
    .showroom-opening {display:flex;gap:15px;height:auto;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#aebbd0 transparent;padding:30px 3px 25px;margin:10px -3px 0;perspective:none;overscroll-behavior-x:contain}
    .showroom-opening-window:nth-child(n) {position:relative;flex:0 0 90%;width:90%;left:auto;right:auto;top:auto;transform:none!important;scroll-snap-align:center;box-shadow:0 14px 24px -18px #18355c80}
    .showroom-window-caption {padding:11px 12px;gap:10px;font-size:11px}.showroom-window-caption > span{font-size:10px}
    .project-tabs{padding-block:20px;gap:8px}.project-tabs a{padding:14px 10px;font-size:12px;flex:1 1 0;min-width:0}
    .case-library{padding-block:30px 42px}.case-library-head{gap:22px;margin-bottom:18px}.case-library-head h2{font-size:29px;max-width:25ch}
    .case-filter {gap:5px;justify-content:start}.case-filter button{font-size:12px;padding:9px 12px}
    .showroom{--showroom-width:100%}.showroom.is-ready .showroom-controls{width:calc(100% - 86px);margin-inline:0;min-height:44px;gap:10px}
    .showroom-controls button{width:44px;height:44px;min-width:44px}.showroom-controls > div{gap:6px}.showroom-position{font-size:11px}
    .showroom-viewport{padding-top:10px;perspective:none}.showroom-track{grid-template-columns:1fr}
    .showroom.is-ready .showroom-project:is(.is-previous,.is-next){visibility:hidden;opacity:0;transform:translateX(110%)}
    .showroom.is-ready .showroom-project.is-previous{transform:translateX(-110%)}
    .showroom-live-preview{border-radius:6px;box-shadow:0 18px 28px -20px #152c5a70;transform:none!important}
    .showroom-live-preview .showroom-browser-bar{height:29px;padding-inline:10px;font-size:9px}.showroom-browser-bar small{display:none}
    .showroom-live-preview::after{width:29px;height:29px;bottom:10px;left:10px;right:auto;font-size:18px}
    .showroom-info{display:block;padding:23px 2px 24px;min-height:310px}.showroom-title > span{font-size:10px}.showroom-title h3{font-size:29px;margin-bottom:16px;max-width:calc(100% - 45px)}
    .showroom-description > p{font-size:14px;line-height:1.7;margin-bottom:10px}.showroom-description a{font-size:12px;margin-top:10px;max-width:calc(100% - 86px)}
    .showroom.is-ready .showroom-thumbnails{width:calc(100% - 86px);margin-inline:0;padding-top:12px;gap:7px}
    .showroom-thumb{flex-basis:124px;padding:6px;min-height:116px}.showroom-thumb img{width:110px;height:68px}.showroom-thumb span{font-size:10px}
    .interactive-projects{padding-block:30px 42px}.interactive-projects-head{padding-bottom:24px}.interactive-projects-head h2{font-size:30px}
    .case-feature{padding-block:50px}.case-feature-copy h2{font-size:30px}
    &.showroom-in-view .google-review-badge,&.showroom-in-view .v3-back-to-top{visibility:hidden;pointer-events:none}
  }
  @media(prefers-reduced-motion:reduce) {
    .showroom-opening-window,.showroom-project,.showroom-info,.showroom-live-preview,.showroom-controls button{animation:none!important;transition:none!important}
    .showroom-opening-window:nth-child(n),.showroom-live-preview,.case-feature-media{transform:none!important}
    .showroom.is-ready .showroom-project.is-previous{transform:translateX(-90%) scale(.78)}
    .showroom.is-ready .showroom-project.is-next{transform:translateX(90%) scale(.78)}
  }
}
