/* Source-faithful Final Destination layout with original local project media. */
body.fd-import { color:#7e0000; --case-accent:#7e0000; }
body.fd-import header { position:sticky; top:0; z-index:20; background:#fff; color:#19191c; }
body.fd-import footer { color:#19191c; }
body.fd-import main.fd-layout { width:100%; max-width:1200px; margin:0 auto; }
body.fd-import h1,body.fd-import h2,body.fd-import h3 { font-weight:500; letter-spacing:-.03em; }
body.fd-import .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.fd-hero { height:695px; position:relative; display:flex; align-items:center; justify-content:center; padding:80px 32px; background:#080a08; }
.fd-hero-foreground { position:relative; z-index:1; width:931px; max-width:90%; }
.fd-media { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:10px; width:100%; aspect-ratio:var(--asset-ratio); min-height:100px; padding:20px; background:#fbf5f5; color:#8d4848; border:1px dashed #cda4a4; border-radius:8px; text-align:center; overflow:hidden; }
.fd-media>svg { display:block; width:34px; height:34px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.3; }
.fd-media>span { font-size:15px; line-height:1.4; }
.fd-media>small { font-size:11px; letter-spacing:.5px; text-transform:uppercase; }
.fd-hero-background { position:absolute; inset:0; height:100%; aspect-ratio:auto; border-radius:0; border:0; justify-content:start; align-items:start; background:#080a08; color:#bdc0b9; text-align:left; }
.fd-hero-background>svg { width:24px; height:24px; }
.fd-hero-foreground .fd-media { color:#e8e4e4; background:#1b1b1c; border-color:#656060; }
.fd-section { padding:64px; display:grid; grid-template-columns:218px minmax(0,1fr); gap:32px; scroll-margin-top:78px; }
.fd-section-label h2 { font-size:32px; line-height:1.15; }
.fd-section-content { min-width:0; }
.fd-section-content>h3 { font-size:24px; line-height:1.35; }
.fd-section-content>*+* { margin-top:32px; }
.fd-section-content>figure { margin:32px 0 0; }
.fd-copy { font-family:var(--font-body); font-size:18px; line-height:1.5; }
.fd-copy p { margin:0; }
.fd-copy p+p { margin-top:16px; }
.fd-copy strong { font-weight:600; }
.fd-copy em { font-family:inherit; color:inherit; }
.fd-layout figcaption { font-size:15px; line-height:1.5; margin-top:12px; text-align:center; }
.fd-overview-band { background:linear-gradient(180deg,#780000 41%,#000 100%); color:white; padding-bottom:64px; }
.fd-overview-band .fd-media { background:#240b0b; border-color:#925858; color:#efdddd; }
.fd-wide-media { margin:0 64px; }
.fd-credits { background:#000; color:#fff; display:grid; grid-template-columns:1fr 1fr 1fr; gap:32px; padding:64px; text-align:center; }
.fd-credits h2 { font-size:20px; font-weight:600; letter-spacing:0; line-height:1.4; margin-bottom:10px; }
.fd-credits .fd-copy { font-size:18px; }
.fd-credits .fd-copy+.fd-copy { margin-top:16px; }
.fd-credits .fd-copy+h2 { margin-top:30px; }
body.fd-import .fd-contents { margin:0 64px; padding:24px 0; justify-content:center; border-bottom:1px solid #eddddd; }
.fd-process-figure .fd-media { max-width:453px; margin:auto; }
.fd-icon { display:block; width:32px; height:32px; flex:0 0 32px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.fd-icon-heading { display:flex; align-items:center; gap:14px; }
.fd-section-label .fd-icon-heading { flex-direction:row-reverse; justify-content:flex-end; }
.fd-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; padding:0 64px; margin-bottom:64px; align-items:start; }
.fd-card { min-width:0; padding:12px; border-radius:4px; box-shadow:0 3px 12px #40000024; background:white; }
.fd-card .fd-media { min-height:0; border-radius:2px; padding:16px 10px; }
.fd-card .fd-media>span { font-size:12px; }
.fd-card-caption { display:block; margin:20px 0 12px; text-align:center; font-size:18px; font-weight:500; line-height:1.2; }
.fd-loop-comparison { display:grid; grid-template-columns:minmax(0,.43fr) 50px minmax(0,1fr); gap:34px; align-items:center; max-width:680px; margin-left:auto; margin-right:auto; }
.fd-loop-comparison>.fd-icon { width:50px; height:50px; }
.fd-pillars { padding:0 64px 64px; }
.fd-pillars>h2 { text-align:center; font-size:24px; margin-bottom:8px; }
.fd-pillars>.fd-copy { text-align:center; margin-bottom:30px; }
.fd-pillars>.fd-cards { padding:0; gap:30px; margin-bottom:0; }
.fd-test-iteration { margin-top:48px; }
.fd-test-iteration>h3 { font-size:24px; line-height:1.35; margin-bottom:16px; }
.fd-comparison { position:relative; width:92%; max-width:755px; margin:32px auto 0; padding:12px; background:#fff; box-shadow:0 3px 12px #40000024; border-radius:4px; }
.fd-flip-caption { font-size:20px; line-height:1.4; text-align:center; padding:24px 0 16px; }
.fd-showcase { padding:0 64px 64px; }
.fd-gameplay-title { margin:30px 0; text-align:center; font-family:var(--font-heading); font-size:24px; line-height:1.5; }
.fd-gameplay-title .fd-copy { font-family:inherit; font-size:inherit; }
.fd-demo-placeholder { min-height:400px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:16px; border:1px dashed #cda4a4; background:#fbf5f5; padding:24px; text-align:center; }
.fd-demo-placeholder strong { font-family:var(--font-heading); font-size:24px; font-weight:500; }
.fd-demo-placeholder>span { font-size:15px; }
.fd-section-label>.fd-small-media { width:40px; height:40px; min-height:40px; padding:5px; margin-top:20px; border-radius:50%; }
.fd-small-media>svg { width:24px; height:24px; }
.fd-small-media>span,.fd-small-media>small { display:none; }
.fd-reflections { padding:0 64px 64px; }
.fd-reflections>article+article { margin-top:30px; }
.fd-reflections h3 { font-size:24px; line-height:1.4; margin-bottom:12px; }
.fd-reflections h3 .fd-icon { width:40px; height:40px; flex-basis:40px; }
.fd-next { padding:0 64px 64px; scroll-margin-top:78px; }
.fd-next h3 { font-size:24px; margin-bottom:16px; }
body.fd-import .case-end { border:0; padding:30px 30px 45px; }
@media(max-width:1000px) {
 .fd-hero { height:auto; min-height:400px; padding:80px 32px; }
 .fd-section { padding:48px 36px; grid-template-columns:170px minmax(0,1fr); gap:28px; }
 .fd-section-label h2 { font-size:27px; }
 .fd-credits { padding:48px 36px; }
 .fd-wide-media { margin:0 36px; }
 .fd-cards { padding:0 36px; grid-template-columns:1fr 1fr; gap:28px; }
 .fd-pillars,.fd-showcase,.fd-reflections,.fd-next { padding-left:36px; padding-right:36px; }
 .fd-pillars>.fd-cards { gap:28px; }
 .fd-loop-comparison { grid-template-columns:minmax(0,.43fr) 35px minmax(0,1fr); gap:20px; }
 .fd-loop-comparison>.fd-icon { width:35px; height:35px; }
 body.fd-import .fd-contents { margin-left:36px; margin-right:36px; }
}
@media(max-width:640px) {
 .fd-hero { min-height:310px; padding:70px 22px 45px; }
 .fd-hero-foreground { max-width:100%; }
 .fd-hero-background { padding:15px; gap:5px; }
 .fd-hero-background>span { font-size:12px; }
 .fd-hero-background>small { display:none; }
 .fd-hero-foreground .fd-media { min-height:160px; }
 .fd-section { padding:36px 22px; grid-template-columns:1fr; gap:24px; }
 .fd-section-label h2 { font-size:26px; }
 .fd-section-content>h3 { font-size:22px; }
 .fd-section-content>*+* { margin-top:24px; }
 .fd-copy { font-size:17px; line-height:1.6; }
 .fd-media { padding:16px 10px; }
 .fd-media>span { font-size:13px; }
 .fd-credits { grid-template-columns:1fr; padding:36px 22px; gap:36px; }
 .fd-credits .fd-copy { font-size:17px; }
 .fd-wide-media { margin:0 22px; }
 .fd-overview-band { padding-bottom:36px; }
 .fd-layout figcaption { font-size:13px; }
 body.fd-import .fd-contents { margin:0 22px; justify-content:start; }
 .fd-cards { padding:0 22px; grid-template-columns:1fr; gap:22px; margin-bottom:36px; }
 .fd-card-caption { font-size:19px; line-height:1.4; }
 .fd-card-note { font-size:17px; }
 .fd-pillars,.fd-showcase,.fd-reflections,.fd-next { padding-left:22px; padding-right:22px; padding-bottom:36px; }
 .fd-loop-comparison { grid-template-columns:minmax(0,.43fr) 28px minmax(0,1fr); gap:14px; }
 .fd-loop-comparison .fd-media { padding:10px 5px; min-height:150px; }
 .fd-loop-comparison .fd-media>svg { width:24px; height:24px; }
 .fd-loop-comparison .fd-media>span { font-size:11px; }
 .fd-loop-comparison .fd-media>small { font-size:9px; }
 .fd-loop-comparison>.fd-icon { width:28px; height:28px; }
 .fd-test-iteration { margin-top:36px; }
 .fd-test-iteration>h3 { font-size:22px; }
 .fd-comparison { width:100%; }
 .fd-flip-caption { font-size:17px; padding:18px 0 10px; }
 .fd-gameplay-title { font-size:20px; }
 .fd-demo-placeholder { min-height:260px; }
 .fd-demo-placeholder strong { font-size:21px; }
 .fd-reflections h3 { font-size:22px; }
 .fd-icon { width:28px; height:28px; flex-basis:28px; }
}
.fd-section-content { counter-reset:fd-iteration; }
.fd-test-iteration { counter-increment:fd-iteration; }
.fd-test-iteration>h3::before { content:counter(fd-iteration) '. '; }
.fd-media.fd-loaded {position:relative;padding:0;border:0;background:transparent;min-height:0;overflow:hidden}
.fd-loaded>img {display:block;width:100%;height:auto;object-fit:contain}
.fd-hero-background.fd-loaded {position:absolute;inset:0;height:100%}
.fd-hero-background.fd-loaded>img {width:100%;height:100%;object-fit:cover}
.fd-hero-foreground .fd-loaded {background:transparent;border:0}
.fd-section-label>.fd-small-media.fd-loaded {width:40px;height:40px}
.fd-small-media.fd-loaded>img {width:40px;height:40px;object-fit:contain}
.fd-gameplay {display:grid;grid-template-columns:190px minmax(0,1fr);gap:32px;align-items:start}
.fd-tab-list {display:flex;flex-direction:column;gap:12px;position:sticky;top:90px}
.fd-tab-list a {border-radius:8px;background:#fff;padding:17px 20px;box-shadow:0 2px 8px #40000020;text-align:center;font:500 17px var(--font-heading);text-decoration:none}
.fd-tab-list a[aria-selected=true] {background:#7e0000;color:#fff}
.fd-tab-panel {padding:28px;border-radius:12px;background:white;box-shadow:0 2px 12px #40000025;scroll-margin-top:90px}
.fd-tab-panel+.fd-tab-panel {margin-top:24px}
.fd-tab-panel[hidden] {display:none}
.fd-tab-panel:focus-visible {outline:3px solid #b13939;outline-offset:5px}
.fd-tab-panel .fd-phase-diagram {max-width:540px;margin:0 auto 28px}
.fd-phase-description h3 {font-size:24px;line-height:1.4;margin-bottom:16px}
.fd-phase-description,.fd-phase-details {font:18px/1.6 var(--font-body)}
.fd-phase-description p,.fd-phase-details p {margin:0}
.fd-phase-details {margin-top:24px}
.fd-phase-video {margin-top:24px;aspect-ratio:16/9}
.fd-phase-video video {display:block;width:100%;height:auto;background:#000}
@media(max-width:640px) {
 .fd-gameplay {grid-template-columns:1fr;gap:20px}
 .fd-tab-list {position:static;flex-direction:row;flex-wrap:wrap;gap:8px}
 .fd-tab-list a {padding:12px;font-size:14px;flex:1 1 auto}
 .fd-tab-panel {padding:20px}
 .fd-phase-description,.fd-phase-details {font-size:17px}
 .fd-phase-description h3 {font-size:22px}
}
