/* h3apOS home: the stage of the base in a first screen, then the monitor, then the end. */
.hero { position: relative; height: var(--vh); min-height: 560px; overflow: hidden; z-index: 1; }
.stage {
  --W: max(100vw, calc(var(--vh) * 16 / 9));
  --H: calc(var(--W) * 9 / 16);
  position: absolute;
  width: var(--W);
  height: var(--H);
  left: clamp(calc(100vw - var(--W)), calc(50vw - var(--W) * .472), 0px);
  top: clamp(calc(var(--vh) - var(--H)), calc(var(--vh) * .46 - var(--H) * .425), 0px);
}
.reach { display: block; object-fit: fill; mix-blend-mode: lighten; pointer-events: none; }
.play {
  position: absolute; left: 47.2%; top: 42.5%;
  width: calc(var(--u) * 46); height: calc(var(--u) * 46);
  margin: calc(var(--u) * -23) 0 0 calc(var(--u) * -23);
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(140, 140, 140, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; transition: background-color .3s, color .3s; -webkit-tap-highlight-color: transparent;
}
.play svg { display: block; width: calc(var(--u) * 13); height: calc(var(--u) * 15); margin-left: calc(var(--u) * 2.5); fill: currentColor; }
.play.is-touching { background: rgba(236, 235, 232, .92); color: #161616; }
.caption {
  position: absolute; left: 47.2%; top: calc(42.5% + var(--u) * 40);
  transform: translateX(-50%); text-align: center; white-space: nowrap;
}
.caption .name { font-size: calc(var(--u) * 54); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.caption p { font-size: calc(var(--u) * 12); line-height: 1.7; color: var(--caption); }
.caption .name + p { margin-top: calc(var(--u) * 12); }
.hero-actions {
  position: absolute; left: 0; right: 0; bottom: calc(var(--k) * 46);
  display: flex; justify-content: center; align-items: center; gap: 22px; z-index: 2;
}

.monitor {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: calc(var(--u) * 80); align-items: center;
  min-height: var(--vh); padding: calc(var(--u) * 140) calc(var(--u) * 110);
}
.mon-copy h2, .closing h2 { font-size: max(26px, calc(var(--u) * 40)); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.mon-copy ol { list-style: none; margin-top: calc(var(--u) * 34); display: grid; gap: calc(var(--u) * 16); counter-reset: n; }
.mon-copy li { counter-increment: n; display: grid; grid-template-columns: 3em 1fr; font-size: max(13px, calc(var(--u) * 14)); line-height: 1.6; color: var(--dim); }
.mon-copy li::before { content: "0" counter(n); color: var(--caption); }

.term {
  border: 1px solid var(--outline); background: rgba(20, 20, 20, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: calc(var(--u) * 26) calc(var(--u) * 28); font-size: max(12px, calc(var(--u) * 14));
}
.term-top { display: flex; justify-content: space-between; color: var(--caption); font-size: max(11px, calc(var(--u) * 11)); padding-bottom: calc(var(--u) * 16); border-bottom: 1px solid var(--hair); margin-bottom: calc(var(--u) * 18); }
.row { display: grid; grid-template-columns: 9.5em 1fr 8.5em; gap: 16px; align-items: center; padding: calc(var(--u) * 12) 0; }
.row .label { color: var(--dim); }
.row b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.meter { position: relative; height: calc(var(--u) * 14); min-height: 10px; border: 1px solid var(--hair); }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink); }
.meter--cost i { background: transparent; border-right: 2px solid var(--ink); }
.meter--none { border: 0; }
.row--gap b { color: var(--coral); }
.log { list-style: none; margin-top: calc(var(--u) * 18); padding-top: calc(var(--u) * 14); border-top: 1px solid var(--hair); min-height: 5.6em; color: var(--caption); font-size: max(11px, calc(var(--u) * 12)); line-height: 1.8; }
.log li.hot { color: var(--coral); }

.closing {
  position: relative; z-index: 1; text-align: center;
  padding: calc(var(--u) * 160) 24px calc(var(--u) * 120);
}
.closing p { max-width: 36em; margin: calc(var(--u) * 24) auto 0; color: var(--dim); font-size: max(13px, calc(var(--u) * 14)); line-height: 1.6; }
.closing-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: calc(var(--u) * 40); }

@media (max-width: 767.98px) {
  .caption .name { font-size: 40px; }
  .caption p { font-size: 11.5px; }
  .hero-actions { bottom: 48px; }
  .monitor { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 110px 5vw 70px; }
  .row { grid-template-columns: 7.2em 1fr 7.4em; gap: 10px; }
  .term { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .play { transition: none; } }
