/* Homepage intro — replaces the LayerSlider "paint2" slider.
   Layer positions come from the slider's 1280×720 canvas; sizes are in cqw so the
   whole composition scales like the original. */

.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stage {
  container-type: inline-size;
  position: relative; width: min(1080px, 100%); aspect-ratio: 1280 / 720; overflow: hidden;
}
.stage > *, .stage .nav-link { position: absolute; }
.stage > nav { display: contents; }
.stage .layer { left: 0; top: 0; width: 100%; height: 100%; object-fit: fill; max-width: none; }

.stage .t { white-space: nowrap; margin: 0; }
.stage .moheet { left: 1.72%; top: 0; font: 700 2.037cqw/5.556cqw var(--serif); letter-spacing: -.185cqw; color: rgba(25, 34, 43, .6); }
.stage .word { font: 400 1.574cqw/4.259cqw var(--serif); letter-spacing: .185cqw; color: #474343; }
.stage .w-design { left: 52.5%; top: 31.25%; }
.stage .w-painting { left: 50.55%; top: 34.03%; }
.stage .w-architecture { left: 35.55%; top: 44.44%; font-size: 3.333cqw; letter-spacing: .37cqw; }
.stage .w-caricature { left: 44.53%; top: 52.08%; }

.stage .nav-link {
  display: flex; align-items: center; gap: 1cqw;
  font: 300 1.944cqw/2.685cqw var(--sans); letter-spacing: .926cqw; color: #fff;
}
.stage .nav-link::before { content: ""; width: .278cqw; height: 1.389cqw; background: #fff; flex: none; }
.stage .nav-link:hover { color: var(--yellow); }
.stage .n-portfolio { color: var(--yellow); left: 39.06%; top: 77.78%; }
.stage .n-about { left: 44.14%; top: 82.64%; }
.stage .n-feeds { left: 78.13%; top: 77.78%; }
.stage .n-events { left: 70.31%; top: 82.64%; }
.stage .n-contact { left: 67.58%; top: 87.5%; }

.stage .icon { width: 2.222cqw; height: 2.222cqw; top: 94.6%; color: #f17e14; --glyph: #fff; }
.stage .icon svg { width: 100%; height: 100%; display: block; }
.stage .i1 { left: .94%; }
.stage .i2 { left: 4.14%; }
.stage .i3 { left: 7.34%; }
.stage .i4 { left: 10.55%; }

/* Entrance animation, timings from the original slider config */
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-100%); } }
.stage .a { animation: fade-in var(--dur, 2000ms) cubic-bezier(.86, 0, .07, 1) var(--delay, 0ms) both; }
.stage .s { animation-name: slide-in; }

/* Phones: the scaled-down menu would be unreadable, so show it under the picture */
.mobile-nav { display: none; }
@media (max-width: 699px) {
  .stage .nav-link, .stage .icon, .stage .layer-band { display: none; }
  .mobile-nav {
    display: block; width: 100%;
    background: linear-gradient(90deg, #aa9090 0%, #8e6c6c 60%, #886464 100%);
    padding: 18px 20px 22px; animation: fade-in 1.5s ease 1s both;
  }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; justify-items: start; }
  .mobile-nav a { display: flex; align-items: center; gap: 8px; font-size: 19px; letter-spacing: 5px; color: #fff; padding: 4px 0; }
  .mobile-nav a::before { content: ""; width: 3px; height: 15px; background: #fff; }
  .mobile-nav .n-portfolio { color: var(--yellow); }
  .mobile-nav .social-row { display: flex; gap: 12px; margin-top: 18px; }
  .mobile-nav .social-row a { width: 30px; height: 30px; color: #f17e14; --glyph: #fff; padding: 0; }
  .mobile-nav .social-row a::before { display: none; }
  .mobile-nav .social-row svg { width: 100%; height: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .stage .a, .mobile-nav { animation: none; }
}
