/* ==========================================================================
   Worklow — layout layer: navigation, marquee, footer, sticky mobile CTA
   ========================================================================== */

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
}
.nav.is-stuck {
  background: rgba(10, 10, 10, .62);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 26px; }

.logo { display: inline-flex; align-items: baseline; gap: 2px; }
.logo-word {
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: -.045em; color: var(--ink);
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 14px 2px rgba(91, 95, 255, .9);
  align-self: center; margin-left: 3px;
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.5); opacity: .55; }
}

.nav-links { display: flex; gap: 2px; margin-left: 18px; }
.nav-links a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-size: .93rem; color: var(--ink-2);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(245, 243, 238, .06); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* language switch */
.lang {
  display: inline-flex; padding: 3px;
  background: rgba(245, 243, 238, .06);
  border: 1px solid var(--line); border-radius: 999px;
}
.lang button {
  padding: 6px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-3);
  font-family: var(--display); font-size: .78rem; font-weight: 500; letter-spacing: .08em;
  transition: color .25s, background .25s;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: rgba(245, 243, 238, .12); color: var(--ink); }

.nav-burger {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-burger span {
  display: block; width: 16px; height: 1.5px; margin: 4px auto; border-radius: 2px;
  background: var(--ink); transition: transform .35s var(--ease), opacity .2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* full-screen mobile panel */
.nav-panel {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10, 10, 10, .96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 28px) var(--pad) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.nav-panel.open { opacity: 1; visibility: visible; }
.nav-panel a.pl {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 500;
  letter-spacing: -.04em; color: var(--ink);
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.nav-panel .btn { margin-top: auto; width: 100%; }
.nav-panel .panel-meta { margin-top: 26px; display: grid; gap: 6px; font-size: .92rem; color: var(--ink-3); }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* --- Concept marquee ------------------------------------------------------ */
.marquee {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 20px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 46px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-track > span {
  display: inline-flex; align-items: center; gap: 46px;
  font-family: var(--display); font-size: clamp(.86rem, 1.5vw, 1.05rem);
  font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
.marquee-track b { color: var(--ink); font-weight: 500; }
.marquee-track i { color: var(--acc); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* --- Footer --------------------------------------------------------------- */
.footer {
  position: relative; z-index: 2;
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: clamp(60px, 9vw, 110px) 0 40px;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}
.footer-about p { margin-top: 18px; max-width: 30ch; color: var(--ink-3); font-size: .96rem; }
.footer-about .btn { margin-top: 26px; }
.footer h4 {
  font-family: var(--display); font-size: .72rem; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3);
  margin: 0 0 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span { color: var(--ink-2); font-size: .96rem; transition: color .25s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding-top: 28px; font-size: .86rem; color: var(--ink-3);
}
.footer-bottom .lang { background: transparent; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 34px; } }

/* --- Sticky mobile CTA ---------------------------------------------------- */
.mobile-cta {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 100;
  display: none; gap: 10px;
  padding: 9px; border-radius: 999px;
  background: rgba(17, 17, 17, .88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 46px -20px rgba(0, 0, 0, .9);
  transform: translateY(140%); transition: transform .45s var(--ease);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; padding: 13px 14px; font-size: .9rem; }
.mobile-cta .btn-ghost { flex: 0 0 auto; padding-inline: 18px; }
@media (max-width: 760px) { .mobile-cta { display: flex; } }
