/* Platform page */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* the six layers */
.layers { height: 560vh; }
.ly-head { position: absolute; top: calc(var(--hdr) + 4vh); left: 0; right: 0; z-index: 3; display: grid; gap: 20px; pointer-events: none; }
.ly-title { max-width: 9em; transition: opacity .5s; }
.ly-3d { position: absolute; top: 50%; left: 58%; width: min(70vw, calc(100vh * 1.25)); aspect-ratio: 4 / 3; transform: translate(-50%, -48%); }
.ly-3d canvas { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 64% 64% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 64% 64% at 50% 50%, #000 60%, transparent 100%); }
.ly-tags { position: absolute; inset: 0; pointer-events: none; }
.ly-tag { position: absolute; display: flex; align-items: center; gap: 10px; white-space: nowrap; transform: translate(0, -50%); opacity: 0; transition: color .3s; color: var(--mist); }
.ly-tag i { display: block; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.ly-tag b { font-weight: 500; }
.ly-tag.on { color: var(--paper); }
.ly-tag.on i { background: var(--marron); opacity: 1; width: 52px; }
.ly-panel { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); z-index: 3; pointer-events: none; }
.ly-card { max-width: 30em; display: grid; gap: 14px; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .7s var(--ease-out); }
.layers.detail .ly-card { opacity: 1; transform: none; }
.ly-card > * { transition: opacity .18s var(--ease); }
.ly-card.swap > * { opacity: 0; }
.ly-count .ids { color: var(--steel-t); }
.ly-tag .n { color: var(--marron-hi); margin-right: 4px; }
.ly-tag .nm { display: none; }
.ly-tag.on .nm { display: inline; }
.ly-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ly-points li { padding-left: 18px; position: relative; color: var(--paper); font-size: 15.5px; }
.ly-points li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--marron); }
.ly-prog { position: absolute; left: var(--m); right: var(--m); bottom: 18px; height: 1px; background: var(--line); }
.ly-prog i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--marron); }

/* the modules, on paper */
.modules { background: var(--paper); color: var(--k); --fg: var(--k); --fg-2: #5E636A; }
.modules .label { color: #5E636A; }
.modules .lead { color: var(--k); }
.m-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vh, 72px); max-width: 52em; }
.m-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.m-chip { height: 38px; padding: 0 14px; border: 1px solid var(--line-l); font-size: 14px; color: #3A3F45; display: inline-flex; align-items: center; gap: 10px; transition: background .25s, color .25s, border-color .25s; }
.m-chip .n { font-family: var(--mono); font-size: 11px; color: #8A8F95; }
.m-chip[aria-pressed="true"] { background: var(--k); color: var(--paper); border-color: var(--k); }
.m-chip[aria-pressed="true"] .n { color: var(--mist); }
.m-chip:hover { border-color: var(--k); }
.m-list { border-top: 1px solid var(--k); }
.m-group { border-bottom: 1px solid var(--line-l); }
.m-group[hidden] { display: none; }
.m-gh { display: grid; grid-template-columns: 90px 1fr auto; gap: var(--gut); padding: 30px 0 18px; align-items: baseline; }
.m-gh .h3 { font-weight: 400; }
.m-row { border-top: 1px solid var(--line-l); }
.m-btn { width: 100%; display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr) 24px; gap: var(--gut); padding: 18px 0; text-align: left; align-items: baseline; }
.m-btn .id { font-family: var(--mono); font-size: 13px; color: var(--marron); letter-spacing: .04em; }
.m-btn .t { font-size: 18px; font-weight: 450; }
.m-btn .b { color: #4b5056; font-size: 15.5px; }
.m-btn .pm { width: 14px; height: 14px; position: relative; justify-self: end; align-self: center; }
.m-btn .pm::before, .m-btn .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--k); transition: transform .35s var(--ease); }
.m-btn .pm::after { transform: rotate(90deg); }
.m-row.open .m-btn .pm::after { transform: rotate(0); }
.m-btn:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.m-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.m-row.open .m-more { grid-template-rows: 1fr; }
.m-more > div { overflow: hidden; }
.m-more .in { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.3fr) 24px; gap: var(--gut); padding: 0 0 26px; }
.m-steps { grid-column: 3; margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; }
.m-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; font-size: 15.5px; }
.m-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 11.5px; color: #8A8F95; padding-top: 3px; }
.m-bound { grid-column: 3; margin: 6px 0 0; font-size: 14.5px; color: #5E636A; border-left: 2px solid var(--marron); padding-left: 14px; }

/* live views */
.lv-head { display: grid; gap: 22px; margin-bottom: clamp(32px, 5vh, 56px); }
.lv-tabs { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); margin-bottom: 28px; }
.lv-tab { padding: 18px 26px 18px 0; display: inline-flex; gap: 12px; align-items: baseline; color: var(--steel-t); position: relative; font-size: 16px; transition: color .3s; }
.lv-tab[aria-selected="true"] { color: var(--paper); }
.lv-tab[aria-selected="true"]::before { content: ''; position: absolute; left: 0; right: 26px; top: -1px; height: 1px; background: var(--marron); }
.lv-tab:hover { color: var(--paper); }
.lv-screen video { aspect-ratio: 1600 / 908; }
.lv-caps { display: grid; margin-top: 22px; }
.lv-cap { grid-area: 1 / 1; margin: 0; max-width: 46em; color: var(--mist); opacity: 0; transition: opacity .4s; }
.lv-cap .label { display: block; margin-bottom: 6px; color: var(--paper); }
.lv-cap.on { opacity: 1; }


@media (max-width: 900px) {
  .layers { height: 480vh; }
  .ly-3d { left: 50%; top: 46%; width: 118vw; }
  .ly-title { font-size: clamp(36px, 10vw, 56px); }
  .ly-tag .nm { display: none; }
  .ly-tag i { width: 14px; }
  .ly-tag.on i { width: 22px; }
  .ly-points li { font-size: 14px; }
  .ly-card { background: linear-gradient(180deg, rgba(10,11,13,0), rgba(10,11,13,.92) 18%); padding-top: 24px; }
  .m-gh { grid-template-columns: 1fr auto; } .m-gh .label:first-child { display: none; }
  .m-btn { grid-template-columns: 64px minmax(0, 1fr) 20px; row-gap: 6px; }
  .m-btn .b { grid-column: 2 / 3; grid-row: 2; }
  .m-btn .pm { grid-column: 3; grid-row: 1; }
  .m-more .in { grid-template-columns: 64px minmax(0, 1fr); }
  .m-steps, .m-bound { grid-column: 2; }
  .lv-tab { padding-right: 18px; font-size: 14.5px; }
}
