/* Shared "more projects" ending block — used on Molnia, LiveVoice,
   kathTreff, RANDOM. Reproduces the landing page's non-scrolling
   topbar/floating-canvas/footer layout at the true bottom of a
   normally-scrolling page. See design-canvas/README.md's
   "More projects ending" section for the full reasoning. */

.landing-echo { min-height: 100vh; position: relative; display: flex; flex-direction: column; }
.more-projects { flex: 1; position: relative; overflow: hidden; padding: 0; min-height: 340px; }

.cards-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transform-origin: center center;
}
.bg-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.project-frame {
  position: absolute;
  background: none;
  border: 1px solid transparent;
  padding: 0;
  z-index: 3;
  transition: padding .2s ease, border-color .2s ease, background-color .2s ease;
}
.project-frame:not(.bare):hover {
  background: #fff;
  border-color: var(--ink);
  padding: 5px;
}
.project-frame.current {
  background: #fff;
  border-color: var(--accent);
  padding: 5px;
}
.project-frame.current .frame-info { opacity: 1; }

@keyframes cs-float-1 { 0%, 100% { transform: translate3d(0,0, 0); } 50% { transform: translate3d(11px, -13px, 0); } }
@keyframes cs-float-2 { 0%, 100% { transform: translate3d(0,0, 0); } 50% { transform: translate3d(-12px, 9px, 0); } }
@keyframes cs-float-3 { 0%, 100% { transform: translate3d(0,0, 0); } 50% { transform: translate3d(9px, 12px, 0); } }
@keyframes cs-float-4 { 0%, 100% { transform: translate3d(0,0, 0); } 50% { transform: translate3d(-10px, -8px, 0); } }
.project-frame.float-1 { animation: cs-float-1 7s ease-in-out infinite; }
.project-frame.float-2 { animation: cs-float-2 8.5s ease-in-out infinite; }
.project-frame.float-3 { animation: cs-float-3 6.5s ease-in-out infinite; }
.project-frame.float-4 { animation: cs-float-4 9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .project-frame { animation: none !important; }
}
.cards-canvas:has(.project-frame:hover) .project-frame { animation-play-state: paused; }
/* keeps the animated node on its own stable compositor layer so the
   browser doesn't repeatedly re-rasterize the image at a lower
   resolution and snap back — the momentary blur/sharpen flicker.
   translate3d (in the keyframes) forces GPU compositing; backface-
   visibility/perspective pin that layer so it doesn't get redrawn at
   a fractional pixel offset each frame. */
.project-frame {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}
.project-frame img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

.frame-inner { width: 100%; height: 100%; overflow: hidden; position: relative; }
/* every card is now sized (js/frame-size.js) to match its own image's
   real aspect ratio, so cover never actually needs to crop anything —
   kept as a safety net for sub-pixel rounding only */
.project-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.frame-expand {
  position: absolute;
  top: -9px; right: -9px;
  width: 18px; height: 18px;
  background: #fff;
  border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  z-index: 6;
}
/* overlays the node itself on hover, matching the landing page's own
   hover card — z-index below .frame-expand so the corner expand-icon
   square stays visible instead of getting covered by this white box */
.frame-info {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; padding: 14px; z-index: 5; opacity: 0;
  transition: opacity .2s ease; pointer-events: none;
}
.project-frame:hover .frame-info { opacity: 1; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-family: 'B612 Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink);
}
.info-row:last-child { border-bottom: none; }
.info-row .info-label { color: var(--muted); text-align: left; white-space: nowrap; flex: none; }
/* value can wrap instead of overflowing the card when it's long */
.info-row span:not(.info-label) { text-align: right; flex: 1; min-width: 0; }
.frame-desc {
  font-family: 'IBM Plex Sans', Helvetica, Arial, sans-serif;
  text-transform: none;
  font-size: 11px; line-height: 1.4; letter-spacing: 0.1px; color: var(--muted);
  margin-top: 8px;
}

/* footer pinned to the bottom of this last full-viewport block only —
   position:absolute anchored to .landing-echo, not position:fixed to
   the viewport, so it does not follow scroll anywhere else on the page */
.landing-echo .bottombar {
  position: absolute;
  left: 30px; right: 30px;
  bottom: 30px;
  padding: 0;
  z-index: 10;
}

/* footer bio / status / photo match the landing page's corner block */
.landing-echo .bottombar { pointer-events: none; }
.landing-echo .bottombar > * { pointer-events: auto; }
.landing-echo .corner-bio { width: min-content; max-width: none; }
.landing-echo .status { flex: none; white-space: nowrap; }
.landing-echo .bio { font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: -0.2px; }
.landing-echo .bio-line { white-space: nowrap; }
/* pixelate-on-hover photo (js/photo-pixelate.js) linking to About */
.landing-echo .bottombar .photo { position: relative; }
.landing-echo .photo-pixels {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; pointer-events: none;
}
.landing-echo .photo-link { display: block; width: 100%; height: 100%; }

@media (max-width: 767px) {
  /* the whole floating-canvas ending (including its footer) is a
     desktop-only construct; mobile gets a plain "more projects" card
     list instead — same pattern as mobile-landing's — placed directly
     in the page markup after .mobile-sections */
  .landing-echo { display: none; }
}
