/* Accepted R8 media presentation; no review controls. */
.r8-project { --r8-accent: #45c6df; }
.r8-project .main-nav a[aria-current="location"] { color: var(--paper); }
.r8-project .main-nav a[aria-current="location"]::after { right: 0; }
.r8-project .home-footer-nav a[aria-current="location"] { color: var(--cyan); }
.r8-project a:where(:not(.skip-link)):hover { color: var(--cyan); }
.r8-project a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.r8-project :is(a,button,[id]) { scroll-margin-top: 116px; }
.r8-project .project-gallery-grid:has(> .project-work:only-child) { max-width: 1100px; margin-inline: auto; }
.r8-work { --work-accent: var(--r8-accent); --card-accent: var(--r8-accent); }
.r8-figure { margin: 0; }
.r8-media-link { position: relative; display: block; border: 1px solid #284455; background: #091321; transition: border-color .2s ease; }
.r8-media-link:hover { border-color: var(--r8-accent); }
.r8-media-link > img, .r8-media-link > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 1586/992; }
.r8-image-action { display: grid; place-items: center; position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border: 1px solid #376675; background: #091321; color: #b2edfa; opacity: 0; transition: opacity .2s ease; }
.r8-media-link:is(:hover,:focus-visible) .r8-image-action { opacity: 1; }
.r8-figure figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 4px; min-height: 44px; color: var(--muted); font-size: 12px; }
.r8-figure figcaption a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); text-decoration: none; }
.r8-figure figcaption .ui-icon { width: 16px; height: 16px; }
.r8-copy { display: grid; grid-template-columns: minmax(240px,.85fr) minmax(0,1fr); gap: 20px 64px; padding-top: 12px; }
.r8-copy .project-work-meta { justify-content: flex-start; gap: 24px; }
.r8-copy :is(h2,h3) { margin: 12px 0 8px; font: 400 clamp(36px,3.8vw,52px)/1.25 var(--headline-font); letter-spacing: 0; animation: none; }
.r8-code { font-family: var(--display-font); font-size: .93em; font-weight: 500; letter-spacing: -.035em; }
.r8-copy .r8-subtitle { margin: 0; color: var(--paper); font-size: 18px; line-height: 1.7; }
.r8-copy .r8-description { align-self: end; margin: 0; padding-bottom: 3px; color: var(--gallery-body); font-size: 16px; line-height: 1.9; max-width: 520px; }
.r8-concept-page { padding-block: 48px 64px; }
.r8-concept-page h1 { margin: 12px 0; font: 400 clamp(34px,4vw,52px)/1.2 var(--headline-font); }
.r8-concept-page h1 span { font: 400 14px/1.5 var(--body-font); color: var(--muted); margin-left: 20px; }
.r8-concept-page header > p:last-child { color: var(--gallery-body); font-size: 16px; margin-bottom: 28px; }
.r8-concept-page > img, .r8-concept-page > picture > img { display: block; width: 100%; height: auto; aspect-ratio: 1586/992; border: 1px solid #284455; }
.r8-concept-caption { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 16px; }
.r8-return-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; }
.r8-return-links a { display: inline-flex; align-items: center; gap: 16px; min-height: 48px; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.r8-media-link > picture, .r8-concept-page > picture { display: block; }
@media(max-width:800px) {
 .r8-copy { gap: 20px 32px; grid-template-columns: minmax(190px,.8fr) minmax(0,1fr); }
}
@media(max-width:600px) {
 .r8-copy { grid-template-columns: minmax(0,1fr); gap: 16px; padding-top: 8px; }
 .r8-copy :is(h2,h3) { font-size: 38px; }
 .r8-copy .r8-subtitle { font-size: 17px; }
 .r8-image-action { display: none; }
 .r8-concept-page { padding-top: 32px; }
}
@media(prefers-reduced-motion:reduce) {
 .r8-project *, .r8-project *::before, .r8-project *::after { animation: none !important; transition: none !important; }
 html:has(.r8-project) { scroll-behavior: auto; }
}
