/* Motion is progressive enhancement: the page stays readable without JS. */
html { scroll-padding-top: 88px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.reveal { opacity: 1; transform: none; }
.hero-media img { animation: none; transform: none; object-position: 65% center; }
.hero-stage { position: relative; }
.hero { min-height: 720px; }
.hero-heading { transform-origin: left center; }
.hero-heading:focus-within { opacity: 1; }
.scroll-mark { display: none; }
.hero-scroll {
  position: absolute;
  z-index: 3;
  right: max(24px, calc((100vw - 1260px) / 2));
  bottom: 30px;
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e5d3aa;
}
.hero-scroll > span:last-child { font-size: 22px; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.mobile-contact { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity .75s var(--ease), transform .9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .motion-ready .reveal.visible,
  .motion-ready .reveal:focus-within { opacity: 1; transform: none; }
  .motion-ready .hero-media img {
    transform: translate3d(0, var(--hero-pan, 0px), 0) scale(var(--hero-scale, 1));
    transform-origin: 70% 40%;
  }
  .motion-ready .hero-heading {
    opacity: var(--heading-opacity, 1);
    transform: translate3d(0, var(--heading-lift, 0px), 0);
  }
  .motion-ready .hero-kicker { animation: arrival .9s var(--ease) both; }
  .motion-ready .hero h1 { animation: arrival 1.15s .12s var(--ease) both; }
  .motion-ready .hero-bottom { animation: arrival 1.1s .24s var(--ease) both; }
  .motion-ready .portrait-frame img,
  .motion-ready .promise-image img {
    transform: translate3d(0, var(--image-pan, 0px), 0) scale(1.07);
  }
  .motion-ready .eyebrow::before {
    transform-origin: left;
    transition: transform .9s var(--ease);
  }
  .motion-ready .reveal:not(.visible) .eyebrow::before { transform: scaleX(.2); }
  .hero-scroll > span:last-child { animation: scrollInvitation 2.6s var(--ease) 2; }
  @keyframes arrival {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to { opacity: 1; transform: none; }
  }
  @keyframes scrollInvitation {
    0%, 100% { transform: none; }
    50% { transform: translateY(5px); }
  }
}

@media (min-width: 901px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  .motion-ready .hero-stage { height: 148svh; }
  .motion-ready .hero { position: sticky; top: 0; height: 100svh; min-height: 660px; }
}

@media (max-width: 900px) {
  .hero-scroll { display: none; }
  .hero-media img { object-position: 66% center; }
  .motion-ready .reveal { transform: translate3d(0, 10px, 0); transition-duration: .5s; }
  .motion-ready .reveal.visible { transform: none; }
  .motion-ready .hero-heading { opacity: 1; transform: none; }
  .motion-ready .portrait-frame img,
  .motion-ready .promise-image img { transform: none; }
  /* A filtered header would otherwise confine the fixed mobile menu. */
  .nav.scrolled { backdrop-filter: none; }
  .menu-open .nav { position: fixed; top: 0; animation: none; }
  .nav-links { height: 100dvh; padding: 95px 22px 40px; overflow-y: auto; }
  .nav-links a { flex-shrink: 0; }
  .menu-btn { width: 44px; height: 44px; }
  footer { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); }
  .mobile-contact {
    position: fixed;
    z-index: 19;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    min-height: 58px;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--forest);
    border: 1px solid rgba(213, 185, 121, .5);
    box-shadow: 0 6px 24px rgb(16 27 21 / 16%);
    color: var(--paper);
  }
  .mobile-contact > span { max-width: 110px; font-size: 10px; line-height: 1.4; color: #c4cabe; }
  .mobile-contact strong { font-size: 11px; font-weight: 500; }
  .mobile-contact strong span { color: #d6bc7d; padding-left: 8px; }
  .motion-ready .mobile-contact { opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
  .motion-ready .mobile-contact.is-visible { opacity: 1; visibility: visible; transform: none; }
  .menu-open .mobile-contact { display: none; }
}

@media (max-width: 560px) {
  /* Long editorial words must still fit at 320px and at larger text sizes. */
  .hero h1 { font-size: clamp(46px, 13.5vw, 68px); }
  .hero h1 em { padding-left: 0; }
  .hero-content { padding-top: 130px; padding-bottom: 60px; }
  .hero { height: auto; min-height: max(740px, 100svh); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-heading, .portrait-frame img, .promise-image img,
  .motion-ready .reveal { transform: none !important; }
  .hero-heading, .motion-ready .reveal { opacity: 1 !important; }
  .hero-stage { height: auto !important; }
  .hero { position: relative !important; }
  .hero-scroll > span:last-child { animation: none; }
}
