html, body {
  margin: 0;
  width: 100%;
  background: var(--thermal-black);
  color: var(--thermal-white);
}

.size-full {
  height: 100vh;
  width: 100%;
}

/* scroll reveal, mimics the original framer-motion whileInView fade/slide.
   Content is visible by default. The hidden starting state only applies
   once JS confirms it's running (via the .js class on <html>), so a
   failed or missing script.js never hides real content. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-line {
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* work card hover states */
.work-img {
  transition: transform 0.7s ease;
}
.work-card:hover .work-img {
  transform: scale(1.1);
}
.work-dim {
  transition: opacity 0.5s ease;
}
.work-card:hover .work-dim {
  opacity: 0.3;
}
.work-title {
  transition: text-shadow 0.3s ease;
}
.work-card:hover .work-title {
  text-shadow: 1px 0 0 var(--hover-color), -1px 0 0 var(--thermal-coral);
}
.work-bar {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.work-card:hover .work-bar {
  opacity: 1;
}

.contact-link {
  transition: opacity 0.2s ease, text-shadow 0.3s ease;
  text-decoration: none;
  width: fit-content;
}
.contact-link:hover {
  opacity: 0.8;
  text-shadow: 1px 0 0 var(--thermal-cyan), -1px 0 0 var(--thermal-coral);
}

.footer-link {
  transition: opacity 0.2s ease;
  text-decoration: none;
}
.footer-link:hover {
  opacity: 0.7;
}

/* smooth scroll to anchor targets */
html {
  scroll-behavior: smooth;
}

/* floating scroll nav, bottom right, appears after scrolling past hero */
.scroll-nav {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: flex;
  flex-direction: row;
  gap: 4px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--thermal-cyan);
  padding: 10px 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.scroll-nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--thermal-white);
  text-decoration: none;
  padding: 6px 12px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.scroll-nav-link:hover {
  color: var(--thermal-cyan);
}

@media (max-width: 640px) {
  .scroll-nav {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: space-between;
    padding: 8px;
  }
  .scroll-nav-link {
    padding: 4px 6px;
    font-size: 0.6rem;
  }
}
