/* Additions on top of base.css: motion states and the few parts the base file does not cover. */
html { scroll-behavior: smooth; }
:root { --ease: cubic-bezier(.22, 1, .36, 1); }

/* Hero entrance (CSS only, so the text shows without JavaScript) */
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-line { animation: line-up 1.1s var(--ease) .1s both; }
h1 > span:nth-child(2) .hero-line { animation-delay: .22s; }
.hero-fade { animation: fade-in .9s var(--ease) .6s both; }
.hero-fade-up { animation-name: fade-up; }

/* Scroll reveals */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal-lg { transform: translateY(40px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* Word band, gallery tiles, footer word: driven from site.js */
#band-1, #band-2, #services-row, #quote-img, #footer-word, .work-tile, .work-tile > img { will-change: transform; }
.js .work-tile { clip-path: inset(14%); }
.js .work-tile > img { transform: scale(1.35); }

/* Services: pinned horizontal scroll on desktop */
.services-progress { display: none; }
@media (min-width: 1024px) {
  #services.is-pinned #services-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  #services.is-pinned .services-progress { display: block; width: calc(100% - 4rem); max-width: 1216px; margin: 2.5rem auto 0; height: 2px; background: rgb(238 232 222 / .1); }
  #services-bar { height: 100%; background: rgb(var(--copper)); transform-origin: left; transform: scaleX(0); }
  #services.is-pinned .mx-auto.flex { padding-top: 5rem; }
}

/* Sticky step images */
.step-img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path .9s var(--ease), transform 1.4s var(--ease); }
.step-img.is-shown { clip-path: inset(0 0 0 0); }
.step-img.is-active { transform: none; }

/* Mission */
.mission-text { font-size: clamp(1.35rem, 2.4vw, 2.1rem); line-height: 1.4; max-width: 62rem; text-wrap: pretty; }
.featured-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .featured-grid { grid-template-columns: repeat(3, 1fr); } }
.featured-grid a { min-height: 13rem; }

/* Form chips */
.chip[aria-pressed="true"] { background: rgb(var(--copper)); border-color: rgb(var(--copper)); color: rgb(13 14 15); }

/* Mobile menu */
.mobile-menu { background: rgb(13 14 15 / .98); border-top: 1px solid rgb(238 232 222 / .1); padding: .5rem 1.25rem 1.5rem; display: flex; flex-direction: column; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .9rem 0; border-bottom: 1px solid rgb(238 232 222 / .1); font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; line-height: 1; }
.mobile-menu a.mobile-menu-cta { margin-top: 1.25rem; border: 0; background: rgb(var(--copper)); color: rgb(13 14 15); text-align: center; padding: 1rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: .025em; }
.mobile-menu a.mobile-menu-call { margin-top: .75rem; border: 1px solid rgb(238 232 222 / .3); text-align: center; padding: 1rem; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; letter-spacing: .025em; }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-line, .hero-fade { animation: none; }
  .js .reveal, .step-img { transition: none; transform: none; opacity: 1; }
  .js .work-tile { clip-path: none; }
  .js .work-tile > img { transform: none; }
}

/* Footer word: three words must fit the page width */
#footer-word { font-size: min(13.4vw, 10.75rem); }
