/* Magic Bento by David Haz / React Bits. See kanzen-beams-LICENSE.txt. */
.numbers,
.stages {
  --mb-glow: 203, 247, 97;
  --mb-pad: clamp(1.25rem, 2.1vw, 2rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: .7rem;
  border: 0;
}
.numbers > article:nth-child(n),
.stages > li:nth-child(n) {
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  grid-column: span 4;
  padding: var(--mb-pad);
  border: 1px solid #34363a;
  border-radius: .6rem;
  background: linear-gradient(152deg,#18191b 0%,#111214 50%,#101113 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%);
}
.numbers > article::before,
.stages > li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(275px circle at var(--mb-x,-600px) var(--mb-y,-600px),
    rgba(var(--mb-glow),.066), rgba(var(--mb-glow),.04) 45%, transparent 100%);
  opacity: var(--mb-near,0);
}
.numbers > article::after,
.stages > li::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(180px circle at var(--mb-x,-600px) var(--mb-y,-600px),
    rgba(var(--mb-glow),.86),rgba(var(--mb-glow),.36) 42%,transparent 100%);
  opacity: var(--mb-near,0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}
.numbers > article:focus-within,.stages > li:focus-within { border-color: #7b8667; }
.numbers :is(strong, .num-type, p, a),.stages > li > * { position:relative; }
.numbers .num-type {
  font: 500 .78rem/1.4 var(--mono);
  color: #c9ccce;
  letter-spacing: .025em;
}
.numbers strong {
  font-size: clamp(3.4rem,6vw,6.3rem);
  line-height: .98;
  letter-spacing: -.082em;
  margin: clamp(2rem,2.7vw,3rem) 0 1.1rem;
}
.numbers p { max-width: 39ch; font-size: 1rem; line-height: 1.56; }
.numbers a { padding-top: 1.4rem; text-decoration-color: #696c70; }
.numbers a:hover,.monitor-link:hover { text-decoration-color: #cbf761; color:#f1f5eb; }
.stages { gap: .65rem; margin-top: 2.25rem; }
.stages .stage-head {
  width: 100%;
  min-height: 56px;
  display:flex;
  align-items:flex-start;
  margin-bottom: 1.4rem;
}
.stage-head::before {
  color: #adb1b5;
  font: 450 .78rem/1.4 var(--mono);
  letter-spacing: .02em;
  border: 1px solid #424548;
  border-radius: .22rem;
  padding: 2px 6px;
}
.stages .stage-head > .kb-glyph {
  display: block;
  width: clamp(76px,8.3vw,119px);
  height: auto;
  stroke: #aaafb2;
  stroke-width: 1.35;
}
.kb-glyph .kb-dim {stroke:#545a61}
.kb-glyph .kb-signal {stroke:#cbf761}
.stages h3 { margin:0; font-size:clamp(1.15rem,1.5vw,1.48rem); line-height:1.2; letter-spacing:-.04em; }
.stages li p { margin-top:.7rem; font-size:1rem; line-height:1.55; max-width:52ch; }
.stages .monitor-link { margin-top:auto; padding-top:1rem; }
@media(min-width:1120px){
  .stages > li:nth-child(1),.stages > li:nth-child(5){grid-column:span 3}
  .stages > li:nth-child(2),.stages > li:nth-child(6){grid-column:span 5}
}
@media(min-width:701px) and (max-width:960px) {
  .numbers {gap:.45rem; --mb-pad:1.08rem}
  .numbers .num-type { letter-spacing:0; }
  .stages > li:nth-child(n) {grid-column:span 6}
}
@media(min-width:721px) and (max-width:810px) {
  .numbers strong{font-size:3.15rem}
}
@media(max-width:700px) {
  .numbers,.stages {grid-template-columns:minmax(0,1fr); gap:.6rem }
  .numbers > article:nth-child(n),.stages > li:nth-child(n) {grid-column:auto}
  .numbers > article:nth-child(n) {
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
    column-gap:1.05rem;
    align-content:start;
  }
  .numbers strong { grid-column:1; grid-row:2 / span 2; margin:.85rem 0 0; font-size:clamp(3rem,7.4vw,4.6rem); }
  .numbers .num-type {grid-column:1/-1}
  .numbers p {margin-top:.6rem; grid-column:2}
  .numbers a {grid-column:2; padding-top:.65rem;}
  .stages .stage-head {min-height:42px; margin-bottom:.6rem}
  .stages .stage-head > .kb-glyph {width:84px}
}
@media(max-width:480px) {
  .numbers > article:nth-child(n) { display:flex; padding:1.25rem; }
  .numbers strong {margin:1.2rem 0 .6rem}
  .numbers p {margin:0}
  .numbers a {padding-top:1rem}
}
@media(prefers-reduced-motion:reduce), (hover:none){
  .numbers > article::before,.numbers > article::after,.stages > li::before,.stages > li::after {display:none}
}
