/* Black Frog Elektro — custom rules */

/* Self-hosted Montserrat fonts (replaces Google Fonts CDN) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/montserrat-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/montserrat-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/montserrat-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/montserrat-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/montserrat-800.woff2') format('woff2');
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Honor reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Force Montserrat globally */
body {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom eyebrow spacing */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Slow bob for the scroll chevron */
@keyframes bfBob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
.bf-bob {
  animation: bfBob 2.4s ease-in-out infinite;
}

/* Hover reveal for project cards */
.project-card .reveal {
  opacity: 0;
  transition: opacity 200ms ease;
}
.project-card:hover .reveal,
.project-card:focus-within .reveal {
  opacity: 1;
}

/* Visible focus rings */
:focus-visible {
  outline: 2px solid #D4A24A;
  outline-offset: 3px;
}

/* Filter hiding for projects */
.project-card.is-hidden {
  display: none !important;
}

/* ---------------------------------------------------------------
   Hero reveal animations — sequenced fade-up on page load.
   Elements start invisible + slightly translated and ease into place
   in a staggered cascade. Honors prefers-reduced-motion.
--------------------------------------------------------------- */
@keyframes bf-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bf-reveal {
  opacity: 0;
  animation: bf-reveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bf-reveal[data-delay="1"] { animation-delay: 0.10s; }
.bf-reveal[data-delay="2"] { animation-delay: 0.25s; }
.bf-reveal[data-delay="3"] { animation-delay: 0.40s; }
.bf-reveal[data-delay="4"] { animation-delay: 0.55s; }
.bf-reveal[data-delay="5"] { animation-delay: 0.70s; }

/* Hairline that grows in alongside the eyebrow */
@keyframes bf-line-grow {
  from { width: 0;     opacity: 0; }
  to   { width: 3rem;  opacity: 1; }
}

.bf-line-grow {
  width: 0;
  animation: bf-line-grow 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .bf-reveal { opacity: 1; transform: none; animation: none; }
  .bf-line-grow { width: 3rem; opacity: 1; animation: none; }
}

/* Optional: image placeholder background for slots that have not been filled yet */
.bf-img-fallback {
  background-color: #0F2A3A;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  rgba(255,255,255,0.04) 25%, transparent 25%);
  background-size: 24px 24px;
}
