/* Quiet scroll motion. Everything is off for people who prefer reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.mo [data-r] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); transition-delay: var(--d, 0ms); }
  html.mo [data-r].in { opacity: 1; transform: none; }
  html.mo .photo img, html.mo .sell-bg { will-change: transform; }
  html.mo .photo img { transform: scale(1.1) translate3d(0, var(--py, 0px), 0); }
  html.mo #heroPlan .plot { animation: plotin .55s cubic-bezier(.2,.6,.2,1) both; animation-delay: calc(var(--n, 0) * 28ms + 150ms); }
  html.mo #heroPlan:not(.play) .plot, html.mo #heroPlan:not(.play) .roadfill { opacity: 0; }
  html.mo #heroPlan.play .roadfill { animation: roadin .9s ease both; }
  @keyframes plotin { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
  @keyframes roadin { from { opacity: 0; } to { opacity: 1; } }
  .grid > * { animation: gin .6s cubic-bezier(.2,.6,.2,1) both; animation-delay: calc(min(var(--gi, 0), 12) * 35ms); }
  @keyframes gin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .btn { transition: transform .2s ease, filter .2s ease, background-color .2s ease; }
  .btn:hover { transform: translateY(-1px); }
}
#sp { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* page settles in */
  body { animation: pgin .6s ease both; }
  @keyframes pgin { from { opacity: 0; } to { opacity: 1; } }
  /* hero headline: soft focus pull */
  .hero h1, .ahero h1, .phero h1 { animation: hin 1s cubic-bezier(.2,.6,.2,1) both .1s; }
  @keyframes hin { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  .hero h1 em, .ahero h1 em { background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; animation: uline 1.1s ease .9s forwards; }
  @keyframes uline { to { background-size: 100% 1px; } }
  /* blueprint draw of the plan: outlines trace, then fill */
  html.mo #heroPlan.play .plot rect { animation: trace 1.1s ease both; animation-delay: calc(var(--n, 0) * 28ms); }
  @keyframes trace { from { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; } 60% { fill-opacity: 0; } to { stroke-dasharray: 1; stroke-dashoffset: 0; fill-opacity: 1; } }
  html.mo #heroPlan .plot { animation: none; }
  /* photos open like a window */
  html.mo .photo[data-r] { opacity: 1; transform: none; clip-path: inset(10% 6% 10% 6% round 6px); transition: clip-path 1.1s cubic-bezier(.2,.6,.2,1); transition-delay: var(--d, 0ms); }
  html.mo .photo[data-r].in { clip-path: inset(0 0 0 0 round 6px); }
  /* eyebrow rule draws in */
  html.mo [data-r] .eyebrow, html.mo .eyebrow[data-r] { position: relative; }
  html.mo section .eyebrow::after { content: ""; display: block; height: 1px; width: 0; margin-top: 10px; background: var(--brass); transition: width .9s ease .25s; }
  html.mo section .in .eyebrow::after, html.mo section .eyebrow.in::after { width: 44px; }
  /* nav underline slides */
  .links a { border-bottom: 0 !important; background: linear-gradient(var(--brass), var(--brass)) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
  .links a:hover, .links a[aria-current="page"] { background-size: 100% 1px; }
  /* gentle hover life */
  .plot { transition: opacity .2s; }
  .fact { transition: transform .3s ease; }
  .fact:hover { transform: translateY(-3px); }
  .tile { transition: transform .4s ease, box-shadow .4s ease; }
  .tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px rgba(6, 20, 16, .5); }
}
