/* Written case studies remain ordinary links alongside the photograph gallery. */
.project-story-index {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}
.project-story-index h3 { font-size: clamp(26px, 2.1vw, 30px); letter-spacing: -.03em; font-weight: 600; }
.project-story-index ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.project-story-index li { border-bottom: 1px solid var(--line); }
.project-story-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.project-story-link > span { flex-shrink: 0; font-size: 11px; font-weight: 400; }
.project-story-link:hover { color: #496128; }
@media (max-width: 620px) { .project-story-index ul { grid-template-columns: 1fr; } .project-story-link { align-items: flex-start; flex-direction: column; gap: 10px; } }

/* ---------------------------------------------------------------------
 * 2.7: accessibility, motion and rendering polish (all pages).
 * ------------------------------------------------------------------- */

/* WCAG 2.2 target size: small standalone links get a 24px hit area. */
.field-location-bar a, .sg-breadcrumb a, .page-breadcrumb a, .product-links a, footer a, .footer-credentials a, .lc-card dd a, .review-card a, .review-more { display: inline-flex; align-items: center; min-height: 24px; }

/* One consistent, visible focus ring; components may refine it. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #486a28; outline-offset: 3px; }
:where(.fg-chapter-projects, .sg-chapter-evidence, .pj-chapter-archive, .fg-quote, .sg-hero-charge, .sg-hero-contour, .mobile-actions, footer) :where(a, button, input, summary):focus-visible { outline-color: #153c2e; }

/* Off-screen chapters render when they approach the viewport. */
main.field-guide-service > section.fg-chapter ~ section.fg-chapter,
main.field-guide-home > section.fg-chapter ~ section.fg-chapter { content-visibility: auto; contain-intrinsic-size: auto 900px; }

@media (prefers-reduced-motion: no-preference) {
	/* Cinematic, GPU-friendly page transitions between pages of the site. */
	@view-transition { navigation: auto; }
	.field-header { view-transition-name: site-header; }
	::view-transition-old(root) { animation: 220ms cubic-bezier(.4, 0, 1, 1) both fg-vt-out; }
	::view-transition-new(root) { animation: 420ms cubic-bezier(.2, .7, .3, 1) both fg-vt-in; }

	/* Hero photographs open like a shutter; painted from the first frame, so LCP is unaffected. */
	.sg-hero-media > picture img, .sg-hero-media > img, .fg-hero-media > picture img, .fg-hero-media > img, .pj-mosaic-1 img, .jn-cover img, .pj-case-media img {
		animation: fg-shutter 1.15s cubic-bezier(.2, .7, .3, 1) both;
	}

	/* Scroll-linked image settle and reading progress, where supported; no JavaScript. */
	@supports (animation-timeline: view()) {
		.sg-evidence-media img, .jn-card-media img, .fg-project-photo-media img, .pj-study-media img {
			animation: fg-settle linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 40%;
		}
	}
	@supports (animation-timeline: scroll()) {
		.single-post .jn-article::before {
			content: ""; position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px;
			background: #153c2e; transform-origin: 0 50%;
			animation: fg-progress linear both; animation-timeline: scroll(root);
		}
	}

	/* Arrows glide on hover. */
	.button span[aria-hidden], .sg-text-link span[aria-hidden], .sg-network-arrow { transition: transform .35s cubic-bezier(.2, .7, .3, 1); }
	.button:hover span[aria-hidden], .sg-text-link:hover span[aria-hidden] { transform: translate(3px, -3px); }
}
@keyframes fg-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fg-vt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fg-shutter { from { clip-path: inset(0 0 9% 0); scale: 1.06; } to { clip-path: inset(0); scale: 1; } }
@keyframes fg-settle { from { scale: 1.08; } to { scale: 1; } }
@keyframes fg-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Reduced motion: no animation or smooth scrolling anywhere. */
@media (prefers-reduced-motion: reduce) {
	*, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
