/* Polish: reduced motion, focus, scroll reveal */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/*
 * Reveal: visible by default (content must never “disappear”).
 * JS only adds a light entrance when IntersectionObserver/GSAP runs.
 * Previously opacity:0 + GSAP autoAlpha left #materials stuck hidden.
 */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* QA typography pass: section headings one step stronger than the first prototype */
.signature__title,
.materials__title,
.layouts__title,
.amenities__title {
  font-size: 60px;
  line-height: 72px;
  font-weight: 700;
}

.paragraph-large,
.paragraph-medium,
.discover-card__text,
.signature__text,
.footer__lead,
.layout-card__area,
.layout-card__spec,
.layout-card__spec-label,
.materials__item-name {
  font-synthesis: weight;
}

@media (hover: none) and (pointer: coarse) {
  .hero__cta:hover,
  .hero__cta:focus-visible,
  .layout-card:hover,
  .layout-card__cta:hover,
  .materials__item:hover,
  .discover-card:hover,
  .footer__submit:hover,
  .footer__social-link:hover,
  .back-to-top:hover {
    background-color: inherit;
    box-shadow: none;
    border-color: inherit;
    color: inherit;
  }

  .materials__item:hover {
    border: 0;
  }
}

/* Optional soft entrance only before first paint of is-visible (IO path) */
html.js:not(.gsap-ready) .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

html.js:not(.gsap-ready) .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  html.js:not(.gsap-ready) .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll {
    animation: none;
  }
}
