html, body { margin: 0; background: #111113; overflow-x: hidden; }
a { text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #3d5bff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Hover states (shared class names across pages; harmless if a page has none of a given class) */
a.nav-link:hover { color: #3d5bff !important; }
a.case-link:hover { opacity: 0.7; }
a.social-link:hover { color: #f5f4f0 !important; }
a.brand-link:hover { color: #3d5bff !important; }
a.footer-link:hover { color: #f5f4f0 !important; }
.work-row:hover { background: #1a1a1c; }

/* Card hover lift for thumbnails / process screenshots */
.work-thumb, .process-grid > div {
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.35s ease;
}
.work-thumb:hover, .process-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

/* The process-grid screenshots are tall portrait phone shots; on narrow
   screens a taller box (vs. the near-square desktop one) renders them
   noticeably bigger while keeping the two columns side by side. */
@media (max-width: 560px) {
  .process-grid {
    padding-left: 12px !important;
    padding-right: 12px !important;
    gap: 12px !important;
  }
  .process-grid > div {
    aspect-ratio: 2/3 !important;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.8,0.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Pull quote */
.pull-quote {
  border-left: 3px solid #3d5bff;
  margin: 40px 0;
  padding: 2px 0 2px 24px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 600;
  color: #f5f4f0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1c;
  border: 1px solid #2b2b2d;
  color: #f5f4f0;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 40;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: #232326; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.2s ease; }
}
