/* The work fills the composition; the atmosphere continues behind it. */
main > #work { display: block; min-height: 0; padding-block: clamp(48px, 5.5vw, 80px); }
#work .work-introduction { display: block; margin-bottom: 22px; }
#work .work-introduction .eyebrow { color: var(--silver); font-size: .875rem; margin-bottom: 14px; }
#work .work-introduction h2 { max-width: 1050px; font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.08; letter-spacing: -.035em; text-transform: none; text-wrap: balance; }
#work .work-introduction-side > p { max-width: 690px; margin-top: 16px; font-size: 1rem; line-height: 1.65; }
#work .work-selectors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px clamp(24px, 3.2vw, 48px); margin-top: 20px; }
#work .work-selector { position: relative; min-height: 48px; max-width: 100%; padding: 10px 0; border: 0; background: none; color: #bec3c4; font: 600 1rem/1.5 var(--body); text-align: left; transition: color .22s; }
#work .work-selector::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; }
#work .work-selector:hover, #work .work-selector[aria-selected="true"] { color: var(--light); }
#work .work-selector[aria-selected="true"]::after { transform: scaleX(1); }
#work .project { margin: 0; padding: 0; border: 0; }
#work .project[hidden] { display: none; }
#work .work-projects { touch-action: pan-y; }
#work .work-previews { position: relative; display: block; padding: 0 0 4%; color: inherit; text-decoration: none; }
#work .work-previews:focus-visible { outline: 2px solid rgba(255, 122, 50, .9); outline-offset: 8px; border-radius: 4px; }
#work .work-previews figure { margin: 0; }
#work .work-desktop { width: 94%; overflow: hidden; border-radius: 3px; box-shadow: 0 20px 55px #0004, 0 0 0 1px rgba(255, 122, 50, .16); transition: transform .38s cubic-bezier(.22,.7,.25,1), box-shadow .38s ease; transform-origin: center center; }
#work .work-desktop img { display: block; width: 100%; height: auto; aspect-ratio: 1.86; object-fit: cover; object-position: top; }
#work .work-mobile { position: absolute; z-index: 1; width: 18.5%; right: 1%; bottom: 0; padding: 4px; border-radius: 17px; background: #191c1e; box-shadow: -12px 18px 36px #0009, 0 1px 0 #697074 inset, 0 0 0 1px rgba(255, 122, 50, .14); transition: transform .38s cubic-bezier(.22,.7,.25,1), box-shadow .38s ease; transform-origin: center bottom; }
#work .work-mobile img { display: block; width: 100%; height: auto; border-radius: 13px; }

/* Show enough of the Skies hero for its headline to read as a complete composition. */
.homepage #work .project-skies .work-desktop img { object-position: center 48%; }

@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .homepage #work .work-stack .work-previews:hover .work-desktop,
  .homepage #work .work-stack .work-previews:focus-visible .work-desktop {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 26px 68px #0007, 0 0 0 1px rgba(255, 122, 50, .72);
  }
  .homepage #work .work-stack .work-previews:hover .work-mobile,
  .homepage #work .work-stack .work-previews:focus-visible .work-mobile {
    transform: translateY(-5px) scale(1.02);
    box-shadow: -15px 24px 44px #000a, 0 1px 0 #697074 inset, 0 0 0 1px rgba(255, 122, 50, .68);
  }
}

/* LRM's own circuit language comes alive only while its project is in shot. */
#work .project-lrm .work-desktop,
#work .project-lrm .work-mobile { isolation: isolate; }
#work .project-lrm .work-desktop { position: relative; }
#work .lrm-circuit-motion {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: 0;
  -webkit-mask-image: linear-gradient(105deg, transparent 0 42%, #0002 46%, #000 49%, #000 51%, #0002 54%, transparent 58%);
  mask-image: linear-gradient(105deg, transparent 0 42%, #0002 46%, #000 49%, #000 51%, #0002 54%, transparent 58%);
  -webkit-mask-size: 240% 100%;
  mask-size: 240% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: lrm-circuit-sweep 4.8s linear infinite paused;
}
#work .project-lrm .work-mobile .lrm-circuit-motion { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); border-radius: 13px; }
#work .project-lrm.is-current.is-in-shot .lrm-circuit-motion { opacity: .92; animation-play-state: running; }
@keyframes lrm-circuit-sweep {
  from { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  to { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}
html[data-motion-paused="true"] #work .lrm-circuit-motion { animation-play-state: paused !important; }
#work .work-caption { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 48px; margin-top: 18px; }
#work .work-caption h3 { font: 600 clamp(24px, 2.2vw, 32px)/1.2 var(--display); text-transform: none; letter-spacing: -.015em; }
#work .work-caption .work-services { margin-top: 8px; font-size: .875rem; color: var(--silver); }
#work .work-caption .work-description { margin-top: 9px; font-size: 1rem; line-height: 1.65; }
#work .work-visit { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--light); font: 600 .9375rem/1.5 var(--body); white-space: nowrap; text-underline-offset: 6px; }
#work .work-visit:hover { color: var(--yellow); text-decoration: underline; }
#work .work-visit span { color: var(--yellow); transition: transform .2s ease; }
#work .work-visit:hover span { transform: translateX(3px); }
#work .project.is-active .work-previews, #work .project.is-active .work-prototype { animation: work-reveal .5s cubic-bezier(.22,.7,.25,1) both; }
#work .project.is-active .work-caption { animation: work-caption-in .4s .08s ease both; }
#work.has-work-view-transitions .project.is-active { view-transition-name: work-project; }
::view-transition-old(work-project) { animation: work-crossfade-out .22s ease both; }
::view-transition-new(work-project) { animation: work-crossfade-in .42s cubic-bezier(.22,.7,.25,1) both; }
@keyframes work-reveal { from { opacity: 0; transform: translateY(12px) scale(.993); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes work-caption-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes work-crossfade-out { to { opacity: 0; transform: translateY(-5px) scale(.996); } }
@keyframes work-crossfade-in { from { opacity: 0; transform: translateY(9px) scale(.995); } }
#work.has-work-view-transitions .project.is-active .work-previews, #work.has-work-view-transitions .project.is-active .work-prototype, #work.has-work-view-transitions .project.is-active .work-caption { animation: none; }
#work .work-prototype { display: flex; flex-direction: column; justify-content: center; min-height: clamp(280px, 43vw, 620px); }
#work .work-prototype > span { font-size: 14px; color: var(--muted); }
#work .work-prototype > strong { font: 600 clamp(64px, 9vw, 128px)/.95 var(--display); letter-spacing: -.04em; margin-block: 24px; }
#work .work-prototype > p { font-size: 16px; }
#work .work-prototype .work-prototype-status { margin-top: 24px; font-size: .875rem; }
@media (max-width: 700px) {
  #work .work-introduction { display: block; margin-bottom: 20px; }
  #work .work-introduction h2 { font-size: clamp(2.125rem, 6.5vw, 3rem); }
  #work .work-introduction-side > p { margin-top: 14px; font-size: 1rem; }
  #work .work-selectors { gap: 0 24px; margin-top: 10px; }
  #work .work-selector { font-size: .875rem; min-height: 48px; }
  #work .work-previews { padding-bottom: 9%; }
  #work .work-desktop { width: 94%; }
  #work .work-desktop img { aspect-ratio: 1.48; }
  #work .work-mobile { width: 25%; right: 0; padding: 3px; border-radius: 12px; box-shadow: -6px 10px 22px #0008; }
  #work .work-mobile img { border-radius: 9px; }
  .homepage #work .project-skies .work-desktop img { object-position: top; }
  #work .work-caption { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 24px; }
  #work .work-visit { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  #work .work-selector, #work .work-selector::after, #work .work-visit span, #work .work-desktop, #work .work-mobile { transition: none; }
  .homepage #work .work-stack .work-previews:hover .work-desktop, .homepage #work .work-stack .work-previews:focus-visible .work-desktop,
  .homepage #work .work-stack .work-previews:hover .work-mobile, .homepage #work .work-stack .work-previews:focus-visible .work-mobile { transform: none; }
  #work .project.is-active .work-previews, #work .project.is-active .work-prototype, #work .project.is-active .work-caption { animation: none; }
  #work .lrm-circuit-motion { animation: none; opacity: 0; }
  ::view-transition-old(work-project), ::view-transition-new(work-project) { animation: none; }
}
