/* ==========================================================================
   Layout — Depth 00 (the home lattice) and Depth 01 (a space)
   ========================================================================== */

/* ---- Depth 00 : home ---- */
.home{
  min-height:100svh;display:flex;flex-direction:column;
  padding:34px var(--ils-gutter) 26px;
}
.home-foot{
  text-align:center;margin:20px 0 0;
  font-family:var(--ils-sc);font-size:.68rem;letter-spacing:var(--ils-track-label);
  text-indent:var(--ils-track-label);text-transform:uppercase;color:var(--ils-ivory-faint);
}

/* the stage: nodes + their lines. Coordinates are % of the stage, set per node by
   js/lattice-nav.js from content.js (--x/--y, and --x-sm/--y-sm on phones). */
.stage{
  position:relative;flex:1;min-height:430px;margin-top:6px;
}
.stage-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.stage-lines .ring        {fill:none;stroke-width:.35}
.stage-lines .ring.outer  {stroke:var(--ils-ring-outer);stroke-dasharray:1.4 1.8}
.stage-lines .ring.mid    {stroke:var(--ils-ring-mid)}
.stage-lines .ring.inner  {stroke:var(--ils-ring-inner)}
.stage-lines .spoke       {stroke:var(--ils-spoke);stroke-width:.35}
.stage-lines .chord       {stroke:var(--ils-chord);stroke-width:.35}

/* with no header above it, the stage IS the screen — its center is the heart's, (0,0) in the scene */
.home{position:relative}
.home > .stage:first-child{position:absolute;inset:0;margin:0;min-height:0}

/* the firm, small, at the foot — between the HUD's vitals and its ticker */
.home-mark{
  position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:var(--z-content);
  margin:0;white-space:nowrap;text-align:center;
  font-family:var(--ils-display);font-weight:700;font-size:.74rem;
  letter-spacing:.42em;text-indent:.42em;text-transform:uppercase;color:var(--ils-ivory-dim);
}
.home-mark-sub{color:var(--ils-gold);font-weight:400}
@media (max-width: 1240px){
  .home-mark{bottom:96px}          /* above the HUD when its counts would reach the middle */
}
@media (max-width: 760px){
  .home-mark{bottom:84px}
}

/* ---- Depth 01 : a space ---- */
.space{
  display:flex;min-height:100svh;flex-direction:column;
  padding:34px 22px 56px;
}
.space .depth-tag{margin-top:6px}
.space-inner{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;max-width:var(--ils-space-max);margin:0 auto;width:100%;
  animation:ils-descend var(--ils-descend) var(--ils-ease-descend) both;
}
.space-inner.top{justify-content:flex-start;padding-top:4vh}

@media (max-width: 560px){
  .stage{min-height:400px}
}
