/* ekplabz home — design source: prototype/index.html (styles copied as-is; markup is in front-page.php). */
/* title */
.title-plate {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.title-plate h1 {
  margin: 0; font-family: var(--tech); font-weight: 700; position: relative;
  font-size: clamp(38px, 6.5vw, 72px); line-height: .95; letter-spacing: .05em; color: var(--blue-900);
  text-shadow: 2px 2px 0 rgba(34, 227, 255, .45), -2px -1px 0 rgba(255, 43, 214, .35);
}
.title-plate h1 span { color: var(--blue-500); }
.title-plate p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 46em; }
.title-plate p b { color: var(--ink); font-weight: 700; }
.spec {
  font-family: var(--mono); font-size: 11px; line-height: 1.8; color: #a9b7da;
  background: linear-gradient(#0c1430, #070c1d); padding: 10px 14px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: inset 0 0 0 1px rgba(34, 227, 255, .3);
}
.spec em { font-style: normal; color: var(--cyan); }
.spec .ok { color: var(--lime); text-shadow: 0 0 6px var(--lime); }

/* machine layout */
.machine {
  position: relative; /* no z-index: the core image must multiply-blend with the bed behind it */
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr minmax(320px, 1.25fr) 1fr; gap: clamp(16px, 3vw, 44px);
  align-items: center;
}
.col { display: grid; gap: 18px; position: relative; z-index: 3; }

/* core */
.core { position: relative; aspect-ratio: 880 / 683; }
.core img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; z-index: 2; }
.core .glow {
  position: absolute; left: 22%; top: 30%; width: 48%; height: 44%; z-index: 3;
  border-radius: 50%; mix-blend-mode: screen; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse, rgba(34, 227, 255, .75), rgba(255, 43, 214, .25) 45%, transparent 70%);
}
.core.powered .glow { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
.core .tag { position: absolute; left: 2%; bottom: -2%; z-index: 4; font-family: var(--mono); font-size: 11px; color: var(--steel-700); letter-spacing: .1em; }
.core .tag b { color: var(--blue-700); }
.shock { /* energy ring */
  position: absolute; left: 50%; top: 45%; width: 20px; height: 20px; margin: -10px 0 0 -10px; z-index: 4;
  border-radius: 50%; pointer-events: none; opacity: 0;
  border: 3px solid var(--cyan); box-shadow: 0 0 20px var(--cyan), inset 0 0 20px var(--magenta);
}
.shock.go { animation: shock 1s cubic-bezier(.1, .7, .3, 1) forwards; }
.shock.go.b { animation-delay: .18s; border-color: var(--magenta); box-shadow: 0 0 20px var(--magenta), inset 0 0 20px var(--cyan); }
@keyframes shock { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(34); } }
.booting .core img, .powering .core img { clip-path: inset(0 100% 0 0); }
.core.built img { clip-path: inset(0 0 0 0); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: translate(-4px, 2px); } 40% { transform: translate(4px, -3px); } 60% { transform: translate(-3px, -2px); } 80% { transform: translate(2px, 3px); } }

/* ───────── unit plate (cyber) ───────── */
.unit {
  --acc: var(--cyan);
  position: relative; display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center;
  padding: 18px 32px 18px 18px; color: #fff; isolation: isolate;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  /* anodized aluminium: specular sheen + brushed grain + depth gradient */
  background:
    linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .22) 42%, rgba(255, 255, 255, .05) 50%, transparent 62%) var(--sheen, 0) 0 / 250% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, rgba(0, 0, 0, .07) 1px 2px, transparent 2px 3px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(255, 255, 255, .04) 37px 39px),
    linear-gradient(180deg, #4a72e0 0%, #2b4fb8 22%, #1d3a92 55%, #142a6e 85%, #0d1d4f 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .55),
    inset 2px 0 0 rgba(255, 255, 255, .18),
    inset -2px 0 0 rgba(0, 0, 0, .3),
    inset 0 -3px 0 rgba(0, 0, 0, .45),
    inset 0 0 0 5px rgba(0, 0, 0, .08);
  filter: drop-shadow(0 12px 12px rgba(5, 15, 50, .5)) drop-shadow(0 2px 1px rgba(0, 0, 0, .4));
  transition: transform .15s ease, background-position .8s ease;
}
.unit:hover { transform: translateY(-2px); background-position: -150% 0, 0 0, 0 0, 0 0; }
/* hex bolts */
.unit .bolt {
  position: absolute; width: 11px; height: 11px; border-radius: 50%; z-index: 3;
  background:
    conic-gradient(from 30deg, #8d96a5, #f3f5f8, #8d96a5, #4a5263, #8d96a5, #f3f5f8, #8d96a5) ;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.unit .bolt::after { content: ""; position: absolute; inset: 3px; border-radius: 1px; background: #3a4150; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.unit .b1 { left: 18px; top: 6px; } .unit .b2 { right: 8px; top: 6px; }
.unit .b3 { left: 8px; bottom: 6px; } .unit .b4 { right: 22px; bottom: 6px; }
.unit .edge { /* neon frame drawn inside the chamfer */
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(var(--acc), var(--acc)) 14px 0 / 40% 2px no-repeat,
    linear-gradient(var(--acc), var(--acc)) 100% 100% / 30% 2px no-repeat,
    linear-gradient(var(--acc), var(--acc)) 0 14px / 2px 30% no-repeat,
    linear-gradient(var(--acc), var(--acc)) 100% 0 / 2px 40% no-repeat;
  opacity: .35; transition: opacity .3s;
}
.unit.on .edge { opacity: 1; filter: drop-shadow(0 0 4px var(--acc)); }
.unit .hud { display: none; /* replaced by bolts; kept for easy revert */
  position: absolute; right: 8px; bottom: 8px; width: 14px; height: 14px; z-index: 1;
  border-right: 2px solid rgba(255, 255, 255, .35); border-bottom: 2px solid rgba(255, 255, 255, .35);
}
.window {
  position: relative; width: 66px; height: 66px; display: grid; place-items: center; z-index: 2;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02)), rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.window svg { width: 42px; height: 42px; stroke: #8fa5d9; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, filter .3s; }
.unit.on .window svg { stroke: var(--acc); filter: drop-shadow(0 0 5px var(--acc)); }
.unit .txt { position: relative; z-index: 2; }
.no {
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .14em;
  display: inline-block; padding: 1px 7px; color: var(--acc);
  border: 1px solid var(--acc); background: rgba(0, 0, 0, .35);
  text-shadow: 0 0 6px var(--acc);
}
.unit h2 { margin: 6px 0 2px; font-size: 19px; font-weight: 700; letter-spacing: .04em; }
.unit .en { font-family: var(--tech); font-weight: 600; font-size: 12px; letter-spacing: .2em; color: #8fa5d9; }
.led {
  position: absolute; right: 14px; top: 14px; width: 8px; height: 8px; border-radius: 50%; z-index: 2;
  background: #2a3354; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); transition: background .2s, box-shadow .2s;
}
.unit.on .led { background: var(--acc); box-shadow: 0 0 10px 2px var(--acc); animation: blink 3s steps(1) infinite; }
@keyframes blink { 92% { opacity: 1; } 94% { opacity: .2; } 96% { opacity: 1; } }
.unit .bar { position: absolute; left: 96px; right: 30px; bottom: 9px; height: 3px; z-index: 2; background: rgba(255, 255, 255, .08); }
.unit .bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 6px var(--acc); transition: width .6s ease; }
.unit.on .bar i { width: var(--lvl, 70%); }
/* shutter */
.shutter {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(180deg, #2b3550 0 9px, #11182c 9px 11px, #3a4566 11px 12px);
  transform-origin: top; transform: scaleY(0);
}
.booting .shutter, .powering .shutter { transform: scaleY(1); }
.unit.on .shutter { transform: scaleY(0); transition: transform .35s cubic-bezier(.7, 0, .3, 1); }
.unit.flash::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: var(--acc); mix-blend-mode: screen; animation: uflash .5s ease-out forwards;
}
@keyframes uflash { 0% { opacity: .9; } 100% { opacity: 0; } }

/* pipes */
.pipes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.pipes .tube { fill: none; stroke: #5a6375; stroke-width: 9; stroke-linecap: round; }
.pipes .tube-in { fill: none; stroke: #c7ced9; stroke-width: 5; stroke-linecap: round; }
.pipes .flow { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 14 16; animation: flow 1.1s linear infinite; opacity: 0; }
.pipes .flow.on { opacity: 1; transition: opacity .2s; }
.pipes .burst { fill: none; stroke-width: 4; stroke-linecap: round; opacity: 0; }
.pipes .joint { fill: #3d4556; stroke: #c7ced9; stroke-width: 2; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* sparks */
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; pointer-events: none; z-index: 20; }

/* conveyor */
.conveyor-wrap { max-width: 1200px; margin: 34px auto 0; position: relative; z-index: 3; }
.conveyor-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.conveyor-head h3 { margin: 0; font-family: var(--tech); font-size: 22px; letter-spacing: .14em; color: var(--blue-900); }
.conveyor-head span { font-family: var(--mono); font-size: 11px; color: var(--steel-700); }
.conveyor-head span::before { content: "●"; color: var(--lime); margin-right: 6px; text-shadow: 0 0 6px var(--lime); }
.belt {
  position: relative; padding: 16px 14px 30px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: repeating-linear-gradient(90deg, #252c3b 0 2px, #1b2130 2px 26px);
}
.belt.running { animation: beltmove .5s linear infinite; }
@keyframes beltmove { to { background-position: -28px 0; } }
.belt::after { /* rollers */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 12px; border-radius: 6px;
  background:
    radial-gradient(circle, #e7ebf0 0 2px, #7d8698 3px 4px, transparent 5px) 0 0 / 24px 12px,
    linear-gradient(#5d6676, #2b313d);
}
.belt.running::after { animation: roll .5s linear infinite; }
@keyframes roll { to { background-position: -24px 0, 0 0; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card {
  --acc: var(--cyan);
  position: relative; display: block; padding: 12px 12px 14px 15px;
  background: linear-gradient(#ffffff, #e9edf2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.card .meta { font-family: var(--mono); font-size: 10.5px; color: var(--steel-500); letter-spacing: .06em; display: flex; justify-content: space-between; gap: 8px; }
.card .meta b { color: var(--blue-700); font-weight: 700; }
.card h4 { margin: 6px 0 0; font-size: 14px; line-height: 1.45; font-weight: 500; }
.booting .card, .powering .card { opacity: 0; transform: translateX(-60px) scale(.96); }
.card.out { opacity: 1; transform: none; transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1); }

/* bay: a full-width link plate with its own machine (tools; .-flip puts the machine on the left) */
.bay-wrap { margin-top: 40px; }
.bay {
  --acc: var(--cyan);
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; min-height: 300px;
  color: var(--blue-900); text-decoration: none; isolation: isolate;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  background:
    linear-gradient(rgba(30, 60, 140, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(30, 60, 140, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, #ffffff, #e6ebf2);
  box-shadow: inset 0 0 0 1px rgba(30, 60, 140, .25);
  transition: box-shadow .25s;
}
.bay::before { /* accent rail + hazard stripe along the left edge */
  content: ""; position: absolute; left: 0; top: 22px; bottom: 0; width: 10px; z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--acc) 0 8px, #1b2130 8px 16px);
}
.bay::after { /* scan line on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 35%, transparent), transparent);
}
.bay:hover { box-shadow: inset 0 0 0 2px var(--acc), inset 0 0 40px color-mix(in srgb, var(--acc) 25%, transparent); }
.bay:hover::after { opacity: 1; animation: bayscan 1.1s ease-in-out; }
@keyframes bayscan { to { left: 100%; } }
.bay-txt { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: 30px 10px 30px 44px; }
.bay-no { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--steel-700); }
.bay-no b { color: var(--acc); text-shadow: 0 0 6px var(--acc); filter: brightness(.8); }
.bay-title { font-family: var(--tech); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: .08em; color: var(--blue-900); }
.bay-ja { font-size: 18px; font-weight: 700; color: var(--blue-700); }
.bay-d { font-size: 14px; line-height: 1.7; color: #3a4456; max-width: 34em; }
.bay-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bay-chips i {
  font-style: normal; font-family: var(--mono); font-size: 11px; padding: 3px 9px; color: var(--blue-900);
  border: 1px solid rgba(30, 60, 140, .35); background: rgba(255, 255, 255, .7);
}
.bay-go {
  align-self: flex-start; margin-top: 6px; padding: 10px 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: #fff;
  background: #1b2130; box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 0 var(--acc);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: box-shadow .25s;
}
.bay-go b { color: var(--acc); text-shadow: 0 0 6px var(--acc); margin-left: 8px; }
.bay:hover .bay-go { box-shadow: inset 0 0 0 1px var(--acc), 0 0 18px var(--acc); }
.bay-img { position: relative; z-index: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.bay-img img { display: block; width: 100%; max-width: 640px; height: auto; mix-blend-mode: multiply; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.bay:hover .bay-img img { transform: scale(1.03) translateY(-4px); }
.bay.-flip { grid-template-columns: 1.15fr 1fr; }
.bay.-flip .bay-img { order: -1; }
.bay.-flip::before { left: auto; right: 0; top: 0; bottom: 22px; }
.bay.-flip .bay-txt { padding: 30px 44px 30px 10px; }
/* glossary: deep blue plate with pink neon (same colours as the glossary pages); the machine sits in a light window */
.bay.-gl {
  color: #dfe7ff;
  background:
    linear-gradient(rgba(255, 43, 214, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 43, 214, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(135deg, #10245e, #050c26);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 214, .45);
}
.bay.-gl .bay-img { margin: 14px; background: linear-gradient(rgba(30, 60, 140, .07) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, rgba(30, 60, 140, .07) 1px, transparent 1px) 0 0 / 20px 20px, #f4f6fb; box-shadow: inset 0 0 0 2px #ff2bd6, inset 0 0 30px rgba(255, 43, 214, .25); }
.bay.-gl .bay-title { color: #fff; text-shadow: 0 0 12px #ff2bd6, 0 0 30px rgba(255, 43, 214, .6); }
.bay.-gl .bay-ja { color: #ff2bd6; }
.bay.-gl .bay-d { color: #c9d4f5; }
.bay.-gl .bay-no { color: #8fa0cf; }
.bay.-gl .bay-no b { filter: none; }
.bay.-gl .bay-chips i { color: #dfe7ff; border-color: rgba(255, 43, 214, .45); background: rgba(255, 255, 255, .05); }
.bay.-gl .bay-chips b { color: #ff2bd6; }
.bay.-gl .bay-go { background: #ff2bd6; box-shadow: none; }
.bay.-gl .bay-go b { color: #fff; text-shadow: none; }
.bay.-gl:hover .bay-go { box-shadow: 0 0 18px #ff2bd6; }
.bay-wrap + .bay-wrap { margin-top: 18px; }
.booting .bay, .powering .bay { opacity: 0; transform: translateY(20px); }
.bay { transition: box-shadow .25s, opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
@media (max-width: 760px) {
  .bay, .bay.-flip { grid-template-columns: 1fr; }
  .bay-img, .bay.-flip .bay-img { order: -1; padding: 10px 16px 0; }
  .bay-txt, .bay.-flip .bay-txt { padding: 4px 22px 26px 30px; }
}

/* parts bin (tag cloud) */
.bin {
  padding: 16px; clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px), linear-gradient(180deg, #474f60, #2a2f3a 40%, #1b1f28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.parts .conveyor-head span::before { color: var(--amber); text-shadow: 0 0 6px var(--amber); }

/* ───────── boot screen (dark) ───────── */
.bootscreen {
  position: fixed; inset: 0; z-index: 100; display: none; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #0b1636 0%, #03050c 70%);
  font-family: var(--mono); color: var(--cyan);
}
.booting .bootscreen { display: block; }
.bootscreen::before { /* CRT scanlines */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px);
}
.bootscreen::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 180px 40px #000;
}
.bs-grid {
  position: absolute; inset: -50%; z-index: 0; opacity: .5;
  background:
    linear-gradient(rgba(34, 227, 255, .14) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(34, 227, 255, .14) 1px, transparent 1px) 0 0 / 48px 48px;
  transform: perspective(600px) rotateX(58deg) translateY(10%);
  animation: gridrun 1.2s linear infinite;
}
@keyframes gridrun { to { background-position: 0 48px, 0 0; } }
.bs-log {
  position: absolute; left: clamp(16px, 4vw, 48px); top: clamp(16px, 4vw, 40px); z-index: 2;
  font-size: 12px; line-height: 1.75; white-space: pre; color: #7fd8ff;
}
.bs-log .ok { color: var(--lime); text-shadow: 0 0 6px var(--lime); }
.bs-log .warn { color: var(--amber); text-shadow: 0 0 6px var(--amber); }
.bs-log .mg { color: var(--magenta); text-shadow: 0 0 6px var(--magenta); }
.bs-center { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; }
.bs-title {
  font-family: var(--tech); font-weight: 700; font-size: clamp(44px, 9vw, 110px); letter-spacing: .08em; color: #fff;
  text-shadow: 0 0 12px var(--cyan), 0 0 40px var(--cyan), 3px 0 0 var(--magenta), -3px 0 0 var(--cyan);
  opacity: 0;
}
.bs-title.on { opacity: 1; animation: glitch .9s steps(2) 1; }
@keyframes glitch {
  0% { transform: translate(0); clip-path: inset(0 0 0 0); }
  15% { transform: translate(-6px, 2px); clip-path: inset(10% 0 55% 0); }
  30% { transform: translate(5px, -2px); clip-path: inset(60% 0 8% 0); }
  45% { transform: translate(-3px, 1px); clip-path: inset(30% 0 35% 0); }
  60% { transform: translate(4px, 0); clip-path: inset(0 0 0 0); }
  100% { transform: translate(0); }
}
.bs-sub { margin-top: 6px; font-size: 13px; letter-spacing: .4em; color: var(--magenta); text-shadow: 0 0 8px var(--magenta); opacity: 0; }
.bs-sub.on { opacity: 1; transition: opacity .3s; }
.bs-meter { width: min(420px, 70vw); height: 8px; margin: 22px auto 0; border: 1px solid rgba(34, 227, 255, .6); padding: 1px; opacity: 0; }
.bs-meter.on { opacity: 1; }
.bs-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--amber), var(--lime)); box-shadow: 0 0 10px var(--cyan); }
.bs-bp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.bs-bp * { fill: none; stroke-width: 1.5; }
.bs-bp text { stroke: none; font-family: var(--mono); font-size: 11px; }
.bs-beam {
  position: absolute; left: 0; right: 0; height: 3px; top: -10px; z-index: 2; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--magenta), transparent);
  box-shadow: 0 0 24px 6px rgba(34, 227, 255, .6);
}
.bs-beam.go { opacity: 1; animation: beam .9s ease-in-out; }
@keyframes beam { from { top: -10px; } to { top: 100%; } }
.whiteflash { position: fixed; inset: 0; z-index: 110; background: #fff; pointer-events: none; opacity: 0; }
.whiteflash.go { animation: wf .7s ease-out; }
@keyframes wf { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.skip {
  position: fixed; right: 16px; bottom: 16px; z-index: 120; display: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  padding: 9px 16px; border: 1px solid var(--cyan); cursor: pointer;
  background: rgba(3, 5, 12, .8); color: var(--cyan); text-shadow: 0 0 6px var(--cyan);
}
.booting .skip, .powering .skip { display: block; }
.status { position: absolute; left: 34px; bottom: 18px; z-index: 6; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--blue-700); }


@media (max-width: 900px) {
  .machine { grid-template-columns: 1fr 1fr; }
  .core { grid-column: 1 / -1; order: -1; max-width: 560px; width: 100%; justify-self: center; }
  .pipes { display: none; }
}
@media (max-width: 560px) {
  .machine { grid-template-columns: 1fr; }
  #header.top nav { display: none; } /* not ".top nav": SWELL puts "top" on <body> of the front page, which hid the mobile menu */
  .bs-log { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* WordPress / SWELL fit */
#content.l-content:has(.ekp-home) { max-width: none; padding: 0; margin: 0; }
.ekp-home .card, .ekp-home .unit, .ekp-home .card h4 { text-decoration: none; color: inherit; }
.ekp-home .card h4 { color: var(--ink); }
.ekp-home .unit { color: #fff; }

/* SWELL's own top-page parts are replaced by the machine */
.home #main_visual, .home #post_slider, .home .l-topTitleArea { display: none !important; }
