/* MadeByAustyn — small layer of styles Tailwind utilities don't cover.
   Kept intentionally lean; the CDN build handles the rest. */

:root {
  --accent: #ff5436;
}

/* Leave room for the sticky mobile CTA bar so it never covers content. */
@media (max-width: 1023px) {
  body {
    padding-bottom: 4.75rem;
  }
}

/* Sticky nav gets a frosted panel once the page scrolls. */
#nav.is-scrolled {
  background: rgba(246, 245, 241, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--tw-line, #e7e4dc);
  box-shadow: 0 1px 0 rgba(15, 15, 16, 0.04);
}

/* Scroll-reveal. Respects reduced-motion. */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
  }
}

/* Browser-chrome frame around portfolio screenshots. */
.browser-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e7e4dc;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(15, 15, 16, 0.35);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f1efe9;
  border-bottom: 1px solid #e7e4dc;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #cfcabd;
}
/* The screenshots are tall; show the top and let hover pan down. */
.browser-shot {
  height: 420px;
  overflow: hidden;
}
.browser-shot img {
  width: 100%;
  display: block;
  transition: transform 6s ease-in-out;
}
.browser-frame:hover .browser-shot img,
.browser-frame:focus-within .browser-shot img {
  transform: translateY(calc(-100% + 420px));
}

/* FAQ accordion */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item[open] .faq-answer,
.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}
.faq-answer > div {
  overflow: hidden;
}
.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.3s ease;
}

/* Logo / city marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
