@media (min-width: 841px) {
  .hero-v2 .hero-title h1 { font-size: clamp(3.7rem, 5.1vw, 4.8rem); }
  .hero-v2 .hero-title .focus { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
}
.featured-content .contribution strong { color: var(--ink); font-weight: 700; }
.featured-project + .featured-project {
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 840px) {
  .featured-project {
    grid-template-areas: "title" "media" "lead" "contribution" "highlights" "actions";
    row-gap: 1.25rem;
  }
  .featured-content { display: contents; }
  .project-title { grid-area: title; }
  .featured-content .lead { grid-area: lead; }
  .featured-content .contribution { grid-area: contribution; }
  .featured-content .highlights { grid-area: highlights; }
  .featured-content .links { grid-area: actions; }
  .featured-content > :is(.lead, .contribution, .highlights, .links) { margin-top: 0; }
  .featured-project .project-title { --duration: 180ms; --enter-y: 4px; --enter-x: 0px; }
  .featured-project { margin-bottom: 2rem; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .combat-stills a img { transition: filter 160ms ease; }
  .combat-stills a:hover img { filter: brightness(1.07); }
}

.design-detail {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0;
  background: transparent; overflow: visible;
  max-width: none; max-height: none;
}
.design-detail::backdrop { background: rgb(12 13 18 / 92%); }
.design-detail img {
  display: block; width: auto; height: auto;
  max-width: 94vw; max-height: 80dvh;
}
.design-detail button {
  position: absolute; right: 0; bottom: calc(100% + 2px);
  border: 0; background: var(--canvas); color: var(--ink);
  width: 44px; height: 44px; font-size: 1.7rem; cursor: pointer;
}
html:has(.design-detail[open]) { overflow: hidden; }
@keyframes detail-backdrop { from { opacity: 0; } }
@keyframes project-rule { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: no-preference) {
  .design-detail[open]::backdrop { animation: detail-backdrop 200ms ease-out; }
  .project-title .meta { display: flex; align-items: baseline; gap: .6em; }
  .project-title .meta::before {
    content: ""; flex: 0 0 1.6rem; height: 2px; align-self: baseline;
    background: var(--signal); transform-origin: left;
  }
  .project-title.motion-enter .meta::before { animation: project-rule 320ms var(--ease-enter); }
  .featured-project .combat-player.motion-enter { animation: none; }
}

/* Each spread settles into its column as the reader scrolls it into view. */
@supports (animation-timeline: view()) {
  @media (min-width: 841px) and (prefers-reduced-motion: no-preference) {
    .featured-project {
      view-timeline-name: --project-entry;
      view-timeline-axis: block;
      --media-inset: 26px;
      --rule-origin: left;
    }
    .featured-project--reverse {
      --media-inset: -26px;
      --rule-origin: right;
    }
    .featured-project > figure {
      animation: desktop-media-entry linear both;
      animation-timeline: --project-entry;
      animation-range: entry 0% entry 60%;
    }
    .featured-project + .featured-project::before {
      content: "";
      position: absolute;
      inset: -1px 0 auto;
      height: 2px;
      background: var(--signal);
      pointer-events: none;
      transform-origin: var(--rule-origin) center;
      animation: desktop-project-divider linear both;
      animation-timeline: --project-entry;
      animation-range: entry 0% entry 75%;
    }
  }
}
@keyframes desktop-media-entry {
  from { translate: var(--media-inset) 14px; scale: .975; opacity: .78; }
  to { translate: 0 0; scale: 1; opacity: 1; }
}
@keyframes desktop-project-divider {
  0% { transform: scaleX(.03); opacity: .85; }
  68% { transform: scaleX(1); opacity: .75; }
  100% { transform: scaleX(1); opacity: 0; }
}
