/* =============================================================
   Freezil — shared site styles
   Design language: taste-skill + soft-skill (high-end)
   ============================================================= */
html { scroll-behavior: smooth; background: #FDFBF7; }
body { font-feature-settings: "ss01", "cv11"; }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Mandala / logo continuous rotation */
@keyframes mandalaSpin { to { transform: rotate(360deg); } }
.mandala-spin { animation: mandalaSpin 110s linear infinite; will-change: transform; }

/* Marquee */
@keyframes marqueeShift { to { transform: translateX(-50%); } }
.marquee-track { animation: marqueeShift 55s linear infinite; will-change: transform; }
.marquee-track:hover { animation-duration: 95s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  filter: blur(12px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* Focus */
:focus-visible { outline: 2px solid #0F1115; outline-offset: 4px; border-radius: 6px; }

/* Manifesto word reveal */
.manifesto-word {
  opacity: 0.22;
  transition: opacity 500ms cubic-bezier(0.32, 0.72, 0, 1);
}
.manifesto-word.lit { opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* Services list hover reveal-bar */
.svc-row { position: relative; overflow: hidden; }
.svc-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #0F1115;
  transform: translateX(-101%);
  transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1);
}
.svc-row:hover::before { transform: translateX(0); }
.svc-row .svc-name,
.svc-row .svc-tags { transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1); }
.svc-row:hover .svc-name { transform: translateX(8px); }
.svc-row:hover .svc-tags { transform: translateX(-8px); }

/* Case hover */
.case { transition: transform 700ms cubic-bezier(0.32, 0.72, 0, 1); }
.case:hover { transform: translateY(-4px); }
.case .case-art { transition: transform 900ms cubic-bezier(0.32, 0.72, 0, 1); }
.case:hover .case-art { transform: scale(1.04); }

/* Magnetic button */
.btn-magnetic { transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1), background 300ms; }
.btn-magnetic:hover { transform: translateY(-1px); }
.btn-magnetic:active { transform: scale(0.98); }
.btn-magnetic .btn-icon {
  transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.btn-magnetic:hover .btn-icon { transform: translate(3px, -2px) scale(1.06); }

/* Nav pill blur */
.nav-pill {
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

/* FAQ details */
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.2px solid #0F1115;
  border-bottom: 1.2px solid #0F1115;
  transform: rotate(45deg);
  transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
  margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* Aurora accent bg */
.aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 80% 20%, rgba(245, 197, 24, 0.12), transparent 60%),
    radial-gradient(50% 50% at 15% 70%, rgba(15, 17, 21, 0.05), transparent 60%);
  filter: blur(60px);
}

/* Filter pill — for work archive */
.filter-pill {
  transition: all 300ms cubic-bezier(0.32, 0.72, 0, 1);
}
.filter-pill.active {
  background: #0F1115;
  color: #FDFBF7;
  border-color: #0F1115;
}
