/* Product stage on the two home pages. All assets are local. */
.studio-home {
  --studio-ink: #0c1011;
  --studio-mint: #6ce5d0;
  --studio-border: #283032;
  --studio-width: min(1376px, calc(100% - 2 * clamp(24px, 5.2vw, 82px)));
  --studio-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 74px;
}
.studio-home .site-header {
  background: rgba(12,16,17,.97);
  border-bottom: 1px solid #272d2e;
  color: #f1f5f4;
}
.studio-home .header-inner { width: var(--studio-width); gap: clamp(18px,3.4vw,54px); }
.studio-home .site-header .logo { color: #f5f7f6; }
.studio-home .site-header .logo .on-light { display: none; }
.studio-home .site-header .logo .on-dark { display: block; width: auto; height: 35px; }
.studio-home .site-header .wordmark { font-size: 1.02rem; letter-spacing: -.04em; }
.studio-home .site-header .wordmark span:first-child { color: #69d5c7; }
.studio-home .main-nav { margin-left: auto; }
.studio-home .main-nav ul { gap: clamp(8px,1.45vw,22px); }
.studio-home .main-nav a { padding: 10px 1px; color: #b5bebd; font-size: .86rem; background: transparent; }
.studio-home .main-nav a:hover,.studio-home .main-nav a[aria-current] { color: #fff; }
.studio-home .main-nav a[aria-current]::after { content:""; position: absolute; left: 1px; right: 1px; bottom: 3px; height: 2px; background: var(--studio-mint); }
.studio-home .header-actions { gap: 16px; }
.studio-home .header-actions .seg { background: transparent; border: 0; padding: 0; gap: 0; }
.studio-home .header-actions .seg a { border-radius: 0; font: 500 12px/1 var(--studio-mono); color: #9fa9aa; background: none; padding: 4px 7px; }
.studio-home .header-actions .seg a[aria-current] { color: #fff; }
.studio-home .header-actions .seg a + a::before { content: "/"; margin-left:-8px; margin-right: 0; color: #657273; }
.studio-home .header-actions .icon-btn { border-color: #323b3c; background: transparent; color: #d9dfde; }
.studio-home .header-actions .icon-btn:hover { border-color: #72928e; }
.studio-home .menu-open .site-header { background: #0c1011; }
.studio { color-scheme: dark; color: #f5f6f5; background: var(--studio-ink); }
.studio :focus-visible,.studio-home .site-header :focus-visible { outline-color: var(--studio-mint); }
.studio-scene { overflow: hidden; background: radial-gradient(ellipse at 77% 70%, #142020 0%, #101617 31%, #0c1011 66%); }
.studio-layout { width: var(--studio-width); margin: auto; display: grid; grid-template-columns: minmax(0,.80fr) minmax(0,1.20fr); align-items: center; min-height: clamp(550px, 68vh, 744px); padding-block: clamp(37px,4.8vh,70px); gap: clamp(0px,.6vw,12px); }
.studio-copy { z-index: 1; padding-block: 10px 16px; }
.studio-kicker { display: flex; align-items: center; gap: 12px; color: var(--studio-mint); font: 500 .69rem/1.5 var(--studio-mono); text-transform: uppercase; letter-spacing: .15em; }
.studio-kicker i { width: 29px; height: 2px; background: var(--studio-mint); }
.studio h1 { margin: clamp(18px,2vw,32px) 0 0; color: #f4f6f3; font-size: clamp(4rem, 6.8vw, 7.1rem); font-weight: 600; line-height: .97; letter-spacing: -.062em; hyphens: none; text-wrap: initial; }
.studio h1 span { display: block; }
.studio h1 span:last-child { color: var(--studio-mint); background: linear-gradient(106deg,#90f4da 1%, #60d6c5 59%, #32b8ae 95%); width: fit-content; background-clip: text; -webkit-text-fill-color: transparent; }
.studio-intro { max-width: 39ch; margin-top: 23px; font-size: clamp(1rem,1.15vw,1.13rem); line-height: 1.58; color: #b6c0c0; text-wrap: pretty; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 13px clamp(16px,1.7vw,28px); align-items: center; margin-top: 29px; }
.studio-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-size: .88rem; font-weight: 600; min-height: 46px; }
.studio-actions svg { width: 17px; height: 17px; transition: transform .2s ease; }
.studio-actions a:hover svg { transform: translateX(3px); }
.studio-primary { border-radius: 999px; padding: 0 20px; color: #07221e; background: var(--studio-mint); transition: background .2s, box-shadow .2s; }
.studio-primary:hover { background: #9ff2de; box-shadow: 0 4px 30px #4dceac22; }
.studio-link { color: #e0e8e6; }
.studio-link svg { color: var(--studio-mint); }
.study { width: 100%; min-width: 0; position: relative; align-self: center; }
.study-frame {
  position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.44;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none;
}
.study-grid {
  position:absolute;inset:0;pointer-events:none;
  clip-path:inset(0 0 0 var(--wipe-cut,50%));opacity:0;transition:opacity .2s ease;
  background-color:#0e2229;
}
.studio[data-view="planning"] .study-grid {
  opacity:1;background-image:linear-gradient(#4e7f8740 1px,transparent 1px),
    linear-gradient(90deg,#4e7f8740 1px,transparent 1px),radial-gradient(ellipse at 48% 50%,#1b3840,transparent 85%);
  background-size:28px 28px,28px 28px,100% 100%;
}
.studio[data-view="simulation"] .study-grid {
  opacity:1;background-color:#101c22;background-image:radial-gradient(circle,#54727880 .8px,transparent 1px),
    radial-gradient(ellipse at 55% 60%,#233940,transparent 75%);background-size:20px 20px,100% 100%;
}
.robot-annotation {position:absolute;inset:0;pointer-events:none;clip-path:inset(0 0 0 var(--wipe-cut,50%));}
.worker-annotation {
  position:absolute;inset:0;z-index:2;pointer-events:none;
  clip-path:inset(0 calc(100% - var(--wipe-cut,50%)) 0 0);
}
.worker-remark {
  position:absolute;width:max-content;max-width:12rem;transform:translate(calc(-100% - 10px),calc(-100% - 5px));
  padding:6px 10px;border:1px solid #a5b7b2;border-radius:9px 9px 2px 9px;
  color:#18332b;background:#f0f5ed;box-shadow:0 2px 7px #0b181d54;
  font:600 clamp(.76rem,.92vw,.89rem)/1.2 var(--font);
}
.worker-remark::after {
  content:"";position:absolute;width:7px;height:7px;right:-4px;bottom:1px;
  background:#f0f5ed;border-right:1px solid #a5b7b2;border-top:1px solid #a5b7b2;transform:skewY(33deg);
}
/* The diagram's head sits level with its scoreboard. The note goes underneath
   to keep the LED rows and the operator's face clear. */
.study[data-renderer="diagram"] .worker-remark {
  transform:translate(calc(-100% - 10px),clamp(13px,2.3vw,25px));border-radius:9px 2px 9px 9px;
}
.study[data-renderer="diagram"] .worker-remark::after {bottom:auto;top:1px;transform:skewY(-33deg);}
.worker-announcement {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.study-poster,.study-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.study-poster { display:grid; place-items:center; }
.study-poster img { width:100%; height:100%; object-fit:contain; }
.study-canvas { visibility:hidden; }
.study[data-renderer] .study-poster { display:none; }
.study[data-renderer="gpu"] [data-engine="gpu"],.study[data-renderer="diagram"] [data-engine="diagram"] { visibility:visible; }
.study-hall {position:absolute;pointer-events:none;}
.studio[data-view="plant"] .study-ident,.study-process {
  min-height:24px; border:1px solid #7b96923d; border-radius:99px; background:#101a1de3;
  color:#e1ebe8; padding:4px 9px; backdrop-filter:blur(6px);
}
.studio[data-view="plant"] .study-ident { top:10px; left:10px; }
.study-process {
  position:absolute; top:10px; right:10px; pointer-events:none; display:inline-flex; align-items:center;
  font:500 .62rem/1.25 var(--studio-mono); letter-spacing:.035em;
}
.study-process::before { content:""; width:5px; height:5px; margin-right:7px; border-radius:50%; background:#8cd9c8; }
.study-process[data-step="miss"]::before,.study-process[data-step="inspect"]::before { background:#f8ca79; }
.study-process[data-step="outfeed"]::before { background:#8feda9; }
.study-ident {
  position:absolute; top:6px; left:5px; display:flex; gap:9px; align-items:center; pointer-events:none;
  color:#afc2bc; font:500 .59rem/1.4 var(--studio-mono); text-transform:uppercase; letter-spacing:.14em;
}
.study-ident i { width:6px; height:6px; border-radius:50%; background:#79e4c7; box-shadow:0 0 8px #65d2a633; }
.study-cursor-layer { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.study-cursor { position:absolute; left:0;top:0; width:0;height:0; visibility:hidden; pointer-events:none; }
.study-frame.has-pointer { cursor:none; }
.study-frame.has-pointer .study-cursor { visibility:visible; }
.jaw-pointer {
  position:absolute; width:38px; height:41.8px; max-width:none; left:-19px; top:-35.15px;
  transform:rotate(29deg); transform-origin:50% 84.1%; filter:drop-shadow(0 2px 2px #000d);
}
.study figcaption { position:relative; margin-top:16px; display:grid; align-content:start; gap:12px; }
.study-toolbar { display:flex; gap:12px; align-items:center; }
.study [hidden] { display:none; }
.study-modes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:1; gap:6px; }
.study-toolbar button,.study-text-button {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; background:transparent;
  border:0; color:#acbbb7; cursor:pointer; font:500 .82rem/1.15 var(--font);
}
.study-modes button { position:relative; min-height:42px; padding:10px 5px 5px; justify-content:flex-start; border-radius:2px; }
.phase-track { position:absolute; top:0; left:0; right:0; height:2px; background:#3c4845; overflow:hidden; }
.phase-track::before { content:""; position:absolute; inset:0; background:var(--studio-mint); transform-origin:left; transform:scaleX(0); }
.study-modes button[aria-pressed="true"] { color:#dffff6; }
.study-modes button[aria-pressed="true"] .phase-track { background:#50766b; }
.study-modes button[aria-pressed="true"] .phase-track::before { transform:scaleX(var(--phase-fill,0)); }
.study-modes button[aria-pressed="true"] svg { color:var(--studio-mint); }
.study-modes button:hover,.study-text-button:hover,.study-motion:hover { color:#f2fff9; }
.study-toolbar svg,.study-text-button svg { width:15px;height:15px; flex:none; }
.study .study-motion { flex:none; width:39px; height:39px; border:1px solid #384542; border-radius:50%; background:#141c1d; color:#c8d6d1; display:grid; place-items:center; cursor:pointer; }
.study-motion .play-icon,.studio[data-paused="true"] .pause-icon {display:none;}
.studio[data-paused="true"] .play-icon {display:block;}
.study-copyline { font-size:clamp(.84rem, .94vw, .98rem); line-height:1.5; max-width:48ch; color:#bfd0c9; margin:0; text-wrap:pretty; }
.study-text-button { color:var(--studio-mint); font-size:.75rem; padding:1px 0; min-height:26px; white-space:nowrap; }
.study-text-button svg { width:13px; height:13px; }
.study-keys { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.study-frame:focus-visible { outline:2px solid var(--studio-mint); outline-offset:2px; border-radius:5px; }
.study-frame:focus-visible ~ figcaption .study-keys {
  position:static; width:auto; height:auto; clip-path:none; font-size:.72rem; line-height:1.5; color:#c3d6d1;text-align:center;
}
@media (forced-colors:active) {
  .study-frame.has-pointer { cursor:crosshair; }
  .study-cursor-layer { display:none; }
}
.studio-rail { border-top:1px solid var(--studio-border); border-bottom:1px solid var(--studio-border); background:#101617; }
.studio-rail-inner { width:var(--studio-width); margin:auto; min-height:94px;display:flex;align-items:center;gap:28px; }
.studio-facts { display:flex;align-items:center;gap:0;margin:0; }
.studio-facts div { display:flex;align-items:baseline;gap:10px;padding-inline:clamp(18px,2.8vw,46px); border-right:1px solid #35403f; }
.studio-facts div:first-child { padding-left:0; }
.studio-facts div:last-child { padding-right:0;border-right:0; }
.studio-facts dd { order:-1;margin:0;font:600 clamp(1.65rem,2.3vw,2.35rem)/1 var(--display);letter-spacing:-.055em;color:#f1f5f2; }
.studio-facts dt,.studio-place { color:#a9b5b3;font-size:.78rem; }
.studio-place { margin-left:auto;white-space:nowrap;display:flex;align-items:center;gap:8px; }
.studio-place svg { width:15px;height:15px;color:var(--studio-mint); }
.studio-down { display:grid;place-items:center;height:36px;width:36px;border-radius:50%;border:1px solid #394442;margin-left:4px;color:#c5d3d0; }
.studio-down:hover { border-color:var(--studio-mint);color:var(--studio-mint); }
.studio-down svg { width:16px; }
.studio-home #was .container { width:var(--studio-width); }
.studio-home #was { padding-block:clamp(54px,6.2vw,96px); }
.studio-home #was .head { align-items: start; }
.studio-home #was .head h2 { letter-spacing:-.05em; }
@keyframes studio-arrive { from{opacity:0; transform:translateY(14px);} to{opacity:1; transform:translateY(0);} }
@media (prefers-reduced-motion:no-preference) {
  .studio-copy > * { animation: studio-arrive .72s cubic-bezier(.21,.71,.21,1) backwards; }
  .studio h1 { animation-delay:.05s; }.studio-intro { animation-delay:.12s; }.studio-actions { animation-delay:.19s; }
}
@media (min-width:1600px) { .studio-layout { min-height:690px; } }
@media (min-width:861px) and (max-width:1100px) {
  .studio-home { --studio-width:calc(100% - 64px); }
  .studio-layout { grid-template-columns:.91fr 1.09fr; min-height:520px; }
  .studio h1 {font-size:clamp(4.1rem,7.1vw,5rem);}
}
@media (max-width:860px) {
  .studio-home { --header-h:65px; --studio-width:calc(100% - 2 * clamp(20px,5.4vw,42px)); }
  .studio-layout { grid-template-columns:1fr; min-height:0; padding-block:44px 27px; gap:20px; }
  .studio-copy { padding:0; }
  .studio h1 {font-size:clamp(3.6rem,8.5vw,4.7rem);line-height:.99;margin-top:18px;}
  .studio h1 span {display:inline;} .studio h1 span+span::before {content:" ";}
  .studio h1 span:last-child {display:block;}
  .studio h1 span:last-child::before {content:none;}
  .studio-intro {font-size:1rem;max-width:47ch;margin-top:17px;}
  .studio-actions { margin-top:22px; }
  .study { max-width:630px; justify-self:center; }
  .study-frame {aspect-ratio:1.6;}
  .study figcaption {margin-top:9px;}
  .studio-rail-inner { min-height:84px;gap:12px;}
  .studio-facts { flex:1;justify-content:space-between; }
  .studio-facts div {padding:0 15px;border:0;}
  .studio-place { display:none; }
}
@media (max-width:550px) {
  .studio-home .header-actions {gap:10px;}
  .studio-home .site-header .logo .on-dark {height:32px;}
  .studio-layout { padding-block:33px 20px; gap:22px; }
  .studio-kicker { font-size:.6rem; gap:9px;letter-spacing:.13em; }
  .studio-kicker i {width:22px;}
  .studio h1 {font-size:clamp(3rem,11.25vw,3.75rem);}
  .studio h1 span {display:block;} .studio h1 span+span::before {content:none;}
  .studio-intro {max-width:34ch;font-size:.96rem;line-height:1.5;}
  .studio-actions {gap:16px;}
  .studio-actions a {font-size:.8rem;gap:7px;min-height:44px;}
  .studio-primary {padding:0 15px;}
  .study-frame {aspect-ratio:1.42;}
  .study-toolbar {gap:5px;}
  .study-copyline {max-width:100%;}
  .study figcaption {gap:6px;}
  .study-toolbar svg {width:13px;height:13px;}
  .study-modes {gap:4px;}
  .study-modes button {padding:8px 1px 2px;min-height:37px;font-size:.72rem;gap:4px;}
  .study .study-motion {width:39px;height:39px;}
  .studio-facts {width:100%;justify-content:space-between;}
  .studio-facts div {display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:0;}
  .studio-facts dd {font-size:1.6rem;}
  .studio-facts dt {font-size:.68rem;}
  .studio-down {width:32px;height:32px;flex:none;margin-left:8px;}
}
@media (max-width:365px) {
  .study-modes button {padding-inline:0;}
  .study-toolbar svg {width:12px;}
  .study-modes button svg { display:none; }
  .studio-actions {gap:8px;}
  .studio-down {display:none;}
}
@media (prefers-reduced-motion:reduce) {
  .studio *, .studio *::before { transition-duration:0s!important; }
}

/* One edge-to-edge stage for the hall, the machine and its two station displays. */
.studio-home #inhalt {
  --page-veil:color-mix(in srgb,var(--bg) 95%,transparent);
  background:linear-gradient(var(--page-veil),var(--page-veil)),url("../img/hero/production-hall.webp") center top / cover fixed;
}
.studio-layout {
  --stage-height:clamp(478px,43vw,800px); --edge:max(5.2vw,calc((100% - 1570px)/2));
  position:relative; isolation:isolate; width:100%; margin:0; padding:0;
  display:grid; grid-template-columns:minmax(0,1fr); gap:0; min-height:0;
}
.study,.studio-copy {grid-area:1/1;}
.study {width:100%;max-width:none;margin:0;align-self:start;position:relative;}
.study-frame {--wipe-cut:50%;width:65%;height:var(--stage-height);margin-left:auto;aspect-ratio:auto;overflow:hidden;}
.study-frame::before {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(ellipse 57% 67% at 54% 43%,#07141769 0%,#09161940 49%,transparent 97%);
}
.studio-layout > .study-hall {
  inset:0 0 auto; height:var(--stage-height); z-index:-1; border-radius:0;
  background:linear-gradient(90deg,#071016ce 0%,#091215b5 17%,#10191c75 30%,#111b1d17 45%,transparent 64%),
             linear-gradient(0deg,#0b141859,transparent 20%,transparent 85%,#08121632),
             url("../img/hero/production-hall.webp") center 58% / cover;
}

.studio-copy {
  z-index:2; align-self:start; width:min(33vw,490px); margin-left:var(--edge); padding:0;
  height:var(--stage-height); display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
  pointer-events:none;
}
.studio-copy a {pointer-events:auto;}
.studio h1 {font-size:clamp(3.65rem,5.35vw,6rem);text-shadow:0 2px 24px #0003;}
.studio-intro {color:#d0dcd8;max-width:36ch;}
.studio-actions {gap:12px 22px;}
.study figcaption {
  width:100%; margin:0; padding:12px var(--edge) 15px; gap:10px clamp(22px,4vw,84px);
  display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.2fr) auto;align-items:center;
  background:linear-gradient(90deg,#101819,#142021);border-top:1px solid #64867c50;
}
.study figcaption:has(.study-toolbar[hidden]) {grid-template-columns:1fr;}
.studio[data-comparison="manual"] .study figcaption {grid-template-columns:auto 1fr auto;}
.study-copyline {max-width:60ch;}
.study .study-process[data-step="miss"] {right:auto;left:14px;}

.study figcaption .study-keys {grid-column:1/-1;}
.study-poster img {object-fit:contain;width:100%;height:100%;margin:0;justify-self:center;}
.study-frame.over-robot:hover,.study-frame.over-worker:hover {cursor:pointer;}
.study-frame.has-pointer:hover {cursor:none;}
.studio[data-operation="fault"] .study-frame {touch-action:none;}
.studio[data-operation="fault"] .study-frame {box-shadow:inset 0 -2px 0 #ec8067;}
.studio[data-operation="fault"] .cell-leds {display:none;}
.hand-target {
  position:absolute;z-index:1;pointer-events:none;user-select:none;
  width:26px;height:15px;transform:translate(-50%,-50%);color:#b3ffdf;
  border:1.5px solid currentColor;border-radius:50%;
  box-shadow:0 0 0 1px #142d28c4,inset 0 0 0 1px #163e33b0;
}
.hand-target span {
  position:absolute;left:50%;top:calc(100% + 4px);transform:translateX(-50%);
  padding:2px 6px;border-radius:3px;color:#e1faef;background:#101c1de8;
  font:600 clamp(.65rem,.75vw,.76rem)/1.25 var(--font);white-space:nowrap;
}
.study .study-ident {top:auto;bottom:13px;left:auto;right:var(--edge);z-index:1;}
.studio[data-view="plant"] .study-ident {display:none;}
.study .study-process {top:auto;bottom:13px;right:var(--edge);z-index:1;}
.wipe-overlay,.cell-led-layer {position:absolute;inset:0;pointer-events:none;}
.cell-led-layer[data-wipe-world="manual"] {clip-path:inset(0 calc(100% - var(--wipe-cut)) 0 0);}
.cell-led-layer[data-wipe-world="robot"] {clip-path:inset(0 0 0 var(--wipe-cut));}
.wipe-overlay {z-index:3;}
.wipe-rule {
  position:absolute; top:0; bottom:0; left:var(--wipe-cut); width:2px; transform:translateX(-1px);
  background:linear-gradient(to bottom,#d5f0e878,#e5f4ee 18%,#fff 73%,#c6e1dca8);
  box-shadow:0 0 0 1px #101c1c66,0 0 9px #10202455;
}
.wipe-control {
  --handle-space:25px;position:absolute;inset:0;
  outline:0;cursor:ew-resize;pointer-events:none;touch-action:none;user-select:none;
}
.studio[data-comparison="both"] .wipe-control::before {
  content:"";position:absolute;top:0;bottom:0;left:var(--wipe-cut);
  width:8px;transform:translateX(-50%);pointer-events:auto;
}
.wipe-grip {
  position:absolute;top:clamp(12px,4%,24px);left:clamp(var(--handle-space),var(--wipe-cut),calc(100% - var(--handle-space)));
  transform:translateX(-50%);display:grid;place-items:center;pointer-events:auto;
  width:44px;height:30px;border-radius:16px;border:1px solid #e6f1efc7;color:#fff;
  background:linear-gradient(145deg,#2a3c3ded,#111c20f5);box-shadow:0 3px 14px #07101485,inset 0 1px 1px #e6f3e72b;
}
.wipe-grip svg {width:32px;height:16px;display:block;}
.wipe-control:focus-visible .wipe-grip,.wipe-control:hover .wipe-grip,.is-wiping .wipe-grip {
  color:#0a211e;background:#a8f2de;border-color:#c9fbea;
}
.wipe-control:focus-visible .wipe-grip {outline:2px solid #99efdf;outline-offset:4px;}
.study-frame.is-wiping {cursor:ew-resize;}
.wipe-keys {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.hmi-hotspot {
  position:absolute; z-index:2; display:grid; place-items:center; width:22px; height:16px;
  transform:translate(-50%,-50%); padding:0; background:transparent; border:0; border-radius:6px;
  color:#a2efdb; cursor:pointer; touch-action:manipulation;
}
.studio[data-operation="auto"] .hmi-hotspot {pointer-events:none;}
.hmi-hotspot::before {
  content:""; width:18px; height:12px; border:1px solid currentColor; border-radius:2px;
  box-shadow:0 0 0 1px #102829a8,inset 0 0 5px #65d9bb29; opacity:.75;
}
.hmi-hotspot:hover::before,.hmi-hotspot:focus-visible::before {opacity:1;box-shadow:0 0 0 2px #203d39,0 0 9px #8bf4cb80;}
.studio[data-operation="fault"] .hmi-hotspot {color:#ffc19d;}
.hmi-hotspot:focus-visible,.cell-controls:focus {outline:2px solid #a6ffdf;outline-offset:2px;}
.cell-controls {
  --hmi-light:#86e4bb; --hmi-state:#d5f1df;
  box-sizing:border-box; position:relative; z-index:3; width:max-content; max-width:100%;
  display:grid; grid-auto-flow:column; align-items:center; gap:8px; padding:8px 10px;
  margin:6px var(--edge) 8px auto; color:#e0e9e6; background:linear-gradient(155deg,#364348,#202b30 35%,#182127);
  border:1px solid #5c6c70; border-radius:9px;
  box-shadow:inset 0 1px 0 #c1d1ce38,inset 0 -1px 0 #050b0d,0 3px 10px #07101463;
  scroll-margin-block:70px 20px;
}
.hmi-title {
  display:flex; align-items:center; gap:7px; margin:0; color:#dce6e4;
  font:600 .74rem/1.15 var(--font); letter-spacing:.025em; white-space:nowrap;
}
.hmi-title span {
  padding-right:7px; border-right:1px solid #7787878f; color:#a6bab9;
  font:600 .62rem/1.15 var(--studio-mono); letter-spacing:.1em;
}
.cell-state {
  display:flex; align-items:center; gap:7px; min-height:32px; padding:4px 9px;
  border:1px solid #0b1517; border-radius:3px; background:linear-gradient(100deg,#112022,#151d20);
  box-shadow:inset 0 1px 3px #020707a6,0 1px 0 #84928c39;
  color:var(--hmi-state); font:550 .79rem/1.3 var(--font);
}
.cell-state::before {
  content:""; flex:0 0 7px; height:7px; border-radius:50%; background:var(--hmi-light);
  box-shadow:0 0 6px color-mix(in srgb,var(--hmi-light) 42%,transparent);
}
.studio[data-paused="true"] .cell-controls {--hmi-light:#e8c67e;--hmi-state:#f1e2c3;}
.studio[data-operation="fault"] .cell-controls {--hmi-light:#ff8c67;--hmi-state:#ffd5bd;}
.hmi-reset {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; padding:6px 11px;
  border:1px solid #c8a186; border-radius:4px; color:#fff0de;
  background:linear-gradient(#5a4841,#40342f); box-shadow:inset 0 1px 0 #f9d6b92e,0 2px 0 #0c1113;
  font:650 .77rem/1.2 var(--font); cursor:pointer;
}
.hmi-reset:hover {background:#624d40;border-color:#f7c9a7;}
.hmi-reset:active {box-shadow:inset 0 1px 4px #130f0d;}
.tour-replay {justify-self:end; min-height:44px; padding-inline:3px;}
.tour-replay:hover {text-decoration:underline;text-underline-offset:3px;}
@media (min-width:1360px) {
  .cell-controls {
    position:absolute; top:var(--stage-height); right:clamp(12px,1.2vw,26px);
    transform:translateY(calc(-100% - 16px)); width:clamp(182px,13.1vw,207px); margin:0;
    grid-auto-flow:row; align-items:stretch; gap:7px; padding:10px;
  }
  .hmi-title::after {
    content:""; width:15px; height:5px; margin-left:auto;
    background:repeating-linear-gradient(90deg,#111d21 0 2px,#566466 2px 3px,transparent 3px 5px);
  }
  .study .study-ident,.study .study-process {bottom:auto;top:12px;right:14px;}
}
@media (min-width:1081px) and (max-width:1359px) {
  .study {display:grid;grid-template-columns:minmax(0,1fr) auto;}
  .study-frame {grid-area:1/1/2/-1;}
  .cell-controls {
    grid-area:2/2; align-self:center; width:181px; margin:8px var(--edge) 8px 0;
    grid-auto-flow:row; gap:6px;
  }
  .study figcaption {grid-area:2/1/3/-1;padding-right:calc(var(--edge) + 201px);}
}
.studio[data-pinned="true"] .phase-track::before {display:none;}
.study-modes button:disabled {opacity:.55;cursor:default;}
.cell-leds {position:absolute;inset:0;pointer-events:none;overflow:hidden;}
.cell-led {
  position:absolute; display:flex; flex-direction:column; justify-content:center; gap:0;
  container-type:size; padding:0; overflow:hidden; color:#dbe9d2; line-height:1;
  font-family:var(--studio-mono); font-variant-numeric:tabular-nums;
  background:radial-gradient(ellipse,#b9cca51a 17%,transparent 35%) center / 3px 3px;
}
.cell-led-name,.cell-led dl {margin:0 5%;padding:0;}
.cell-led-name {display:block;font-size:min(10.2cqw,22cqh);font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;line-height:1.18;color:#c2efe2;text-shadow:0 0 .11em #c2efe256;white-space:nowrap;}
.cell-led dl {display:grid;gap:1cqh;margin-top:2cqh;}
.cell-led dl div {display:flex;align-items:baseline;justify-content:space-between;gap:2px;}
.cell-led dt {font-size:min(10.2cqw,23cqh);line-height:1.1;letter-spacing:0;color:#d2dfd4;}
.cell-led dd {margin:0;font-size:min(14.4cqw,30cqh);line-height:1;font-weight:700;color:#ffd68b;
  letter-spacing:.025em;text-shadow:0 0 .11em #f6b85b99;}
.studio[data-worker-event="miss"] [data-score="manual-lost"] {color:#ffae79;text-shadow:0 0 .15em #fb8b4d8a;}
@media(min-width:1800px) {
  .studio-copy {width:490px;}
}
@media(max-width:1080px) {
  .studio-layout {--edge:clamp(18px,5.2vw,48px);--stage-height:auto;display:block;}
  .studio-layout > .study-hall {inset:0;height:auto;
    background:linear-gradient(180deg,#0a1013f5 0%,#0b1415df 14%,#0b14157a 33%,#10191c15 54%,#111b1f13 90%,#0b1316cc),
      url("../img/hero/production-hall.webp") center / cover;
    /* Size the photo independently of control rows that can wrap below the picture. */
    --hall-height:calc(330px + 70vw);background-size:100% var(--hall-height),auto var(--hall-height);
    background-position:center top;background-repeat:no-repeat;}
  .studio-copy {height:auto;width:auto;margin:0;padding:clamp(28px,5vw,50px) var(--edge) 0;
    position:relative;display:block;pointer-events:auto;}
  .studio h1 {font-size:clamp(3.1rem,7.1vw,4.8rem);margin-top:14px;}
  .studio h1 span {display:inline;}
  .studio h1 span+span::before {content:" ";}
  .studio-intro {max-width:48ch;font-size:1rem;margin-top:10px;}
  .studio-actions {margin-top:15px;}
  .study {padding-top:0;}
  .study-frame {width:100%;height:auto;aspect-ratio:1.55;}

  .study figcaption,.studio[data-comparison="manual"] .study figcaption {grid-template-columns:1fr auto;gap:6px 16px;padding:10px var(--edge) 14px;}
  .study-copyline {grid-column:1/-1;grid-row:2;}
  .study .study-ident,.study .study-process {right:var(--edge);bottom:7px;}
  .study-poster img {width:100%;margin:0;justify-self:center;}
  .studio-home #inhalt {background-attachment:scroll;background-size:auto,auto 100vh;background-repeat:repeat-y;}
}
@media(max-width:550px) {
  .studio-copy {padding-top:26px;}
  .studio h1 {font-size:clamp(2.7rem,10.7vw,3.7rem);line-height:.98;}
  .studio h1 span:last-child {display:block;}
  .studio h1 span:last-child::before {content:none;}
  .studio-kicker {font-size:.64rem;}
  .studio-intro {font-size:.92rem;max-width:40ch;}
  .studio-actions {margin-top:12px;}
  .study-frame {aspect-ratio:1.4;}

}
@media(max-width:720px) {
  .study[data-renderer="gpu"] .worker-remark {transform:translate(calc(-100% - 10px),4px);border-radius:9px 2px 9px 9px;}
  .study[data-renderer="gpu"] .worker-remark::after {bottom:auto;top:1px;transform:skewY(-33deg);}
  .study figcaption,.studio[data-comparison="manual"] .study figcaption {grid-template-columns:1fr auto;}
  .study-toolbar {grid-column:1/-1;}
  .study-copyline {grid-column:1/-1;}
  .studio[data-comparison="manual"] .study-toolbar {grid-column:1;}
  .tour-replay {grid-column:1/-1;justify-self:start;}
  .cell-controls {
    width:calc(100% - 2 * var(--edge)); margin:6px var(--edge) 9px;
    grid-auto-flow:row; grid-template-columns:minmax(0,1fr) auto; gap:5px 9px;
  }
  .hmi-title,.cell-state {grid-column:1;}
  .cell-state {min-height:28px;}
  .hmi-reset {grid-column:2;grid-row:1/3;}
  .wipe-grip {width:40px;height:28px;}
}
@media(forced-colors:active) {
  .hand-target {border-color:Highlight;box-shadow:none;}
  .hand-target span {color:CanvasText;background:Canvas;}
  .worker-remark,.worker-remark::after {background:Canvas;color:CanvasText;border-color:CanvasText;}
  .wipe-rule {background:CanvasText;}
  .wipe-grip {background:Canvas;border-color:ButtonText;color:ButtonText;}
  .cell-led {color:CanvasText;background:Canvas;}
  .cell-controls,.cell-state,.hmi-reset,.hmi-hotspot::before {border-color:ButtonText;}
  .cell-state::before {background:CanvasText;}
}
